Unable to create function

Getting the following error, am unable to create an SSS function.

FYI, able to neither create new nor update existing functions.

Could it be that the function itself isn’t working? Just found this: https://github.com/graphcool/api-bugs/issues/83
If so, might be good to have a different feedback mechanism.

Yes I was about to say as much. This behaviour is observed when you have a syntax error in the function itself, or we were not able to import a specified npm module or similar.
We're already working on returning a user friendly error message in these cases instead 🙂 Could you check your code for syntax errors? (might be a missing bracket or brace, for example)

Thanks! Will check the code again.

Just noticed this is the functions repo. For the future, please report errors like this in https://github.com/graphcool/api-bugs/ instead. Let's discuss this error here though 🙂

Ok. FYI, here’s the query and function.
subscription {
  User(filter: {
    mutation_in: [CREATED]
  }) {
    updatedFields
    node {
      id
      firstName
      lastName
      email
      isPaid
    }
  }
}

module.exports = function (event) {
  var sg = require("sendgrid@4.7.0")(___SENDGRID_API___)
  var request = sg.emptyRequest()
  request.body = [{
    "email": event.data.node.email,
    "first_name": event.data.node.firstName,
    "last_name": event.data.node.lastName,
    "LPA_paid": event.data.node.isPaid,
    "SOURCE": "LPA"
  }];
  request.method = "POST"
  request.path = "/v3/contactdb/recipients"
  return new Promise(function(resolve, reject) {
    sg.API(request, function (error, response) {
      if (error) {
        console.log("Error response received")
        reject(error)
      }
      console.log(response.statusCode)
      console.log(response.body)
      console.log(response.headers)
      resolve(response)
    })
  }
}

Downgraded sendgrid from @4.7.0 to @3.0.7 as per https://tehsis.github.io/webtaskio-canirequire/#sendgrid (they must have changed it—it used to be 4.7.0, will create PR for other sendgrid example). Still not working. Will keep checking.

Can you try

Is the API key wrapped as a "string"? Tried both.

yes, it is

For reference: https://github.com/sendgrid/sendgrid-nodejs/blob/master/examples/contactdb/contactdb.js#L253-L279

Per @marktani: You missed a ) in the second last line, this is the correct code you need to use
module.exports = function (event) {
  var sg = require("sendgrid")(___SENDGRID_API_KEY___)
  var request = sg.emptyRequest()
  request.body = [{
    "email": event.data.node.email,
    "first_name": event.data.node.firstName,
    "last_name": event.data.node.lastName
  }];
  request.method = "POST"
  request.path = "/v3/contactdb/recipients"
  return new Promise(function(resolve, reject) {
    sg.API(request, function (error, response) {
      if (error) {
        console.log("Error response received")
        reject(error)
      }
      console.log(response.statusCode)
      console.log(response.body)
      console.log(response.headers)
      resolve(response)
    })
  })
}

Thanks!


Pseudo unit problem

// before processing
body {
  width: 1rem;
}
body: after {
  width: 2rem;
}
// after transformation
body {
  width: 1rem;
}
body: after{
  width: 16px;
  width: 1rem;
}

I set browserlist to ['> 1%', 'last 2 versions', 'Firefox ESR', 'Opera 12.1', 'ie > 8', 'Android >= 4.0', 'iOS > 7'].
It should not contain px unit, but for pseudo element, it did.

Probably related to https://github.com/MoOx/postcss-cssnext/issues/341

Maybe. but there are some difference.
Only in pseudo element was transformed to px unit.
Temporarily, I use { features: { rem: false }} to disable the feature


traverse_util.flatten_dict function works differently in two different python environments despite same version of flax being installed

Hello,
I have two python environments both with flax 0.4.0 on two different VMs. In one of the python environments, traverse_util.flatten_dict cannot be used with the keyword argument sep. In the other python environment, traverse_util.flatten_dict works with the keyword argument sep. I have posted screenshots below showing this.

Thanks

You should install flax==0.4.1 if you want to use flatten_dict() with the sep= param, see:
https://github.com/google/flax/compare/v0.4.0...v0.4.1
Your problem is probably that you installed a version between 0.4.0 and 0.4.1 releases in the first example above.

This works and prints 0.4.1

!pip install -q flax==0.4.1
import flax
print(flax.__version__)
flax.traverse_util.flatten_dict({'x': 0}, sep='/');

This prints 0.4.0 and fails

!pip install -q flax==0.4.0
import flax
print(flax.__version__)
flax.traverse_util.flatten_dict({'x': 0}, sep='/');

This prints 0.4.0 and works

!pip install -q git+https://github.com/google/flax.git@63a286137d723666466632b9ed91902fbd092ddd
import flax
print(flax.__version__)
flax.traverse_util.flatten_dict({'x': 0}, sep='/')

Thanks for the help


Image preprocessing

Hellow,
I want to ask how the image is registered about 3T to 7T.

@wangken1994 Thanks for your interest. Personally, I donot involve in the data preprocessing, but i have asked the guy who did this work, and I'll let you know if he answered me.
Thanks.

@wangken1994 We use flirt dof=6 for registration. We use rigid registration here and donot use non-rigid registration.

Thank you ,Is the 3T image of each individual registered to the 7T image? Or register data from all training sets to a standard space such as ICBM152?    Is the input of the 2D model a slice in one direction? Such as axial。Is the input to the 3D model the .nii data for the entire brain? I am a newbie, thank you very much for answering my question.

The 3T image of each individual is registered to the corresponding 7T image.

@ginobilinie Thank you very much.

Hellow,
What dose dFA ，dSeg ，step mean in extract23DPatch4MultiModalImg.py？

What is the data size of MR and CT data？ 15319350？

dFA is one of the input modality, dSeg is the output Modality, step size is the stride during patch extraction in a sliding window manner.
MR/CT size: 256x256x(120-320)

hellow

Why MRI is [5,64,64],ct[1,64,64]?

Both of them should be [1,64,64] 。  Did I get it wrong？

@wangken1994 I'd like to make use 5 slices of source modality to predict the corresponding middle slice of the target slice. That's why I set 5x64x64->1x64x64. Actually, if your gpu allows, you can set up large patches, like 5x240x240->1x240x240


Only shows a few images on Line Webtoon

I'm not sure if this is specific to Line Webtoon.
Miniflux shows one or two images of a comic and then ends.

Same thing happens on New York Times for example. The images are loaded with Javascript afterwards, the returned HTML doesn't have it.

If you curl this link: https://www.nytimes.com/2018/10/26/world/europe/elizabeth-coppin-magdalene-laundries-abuse-ireland.html
Here is the first image HTML:

Image<img alt="" class="css-1m50asq" src="https://static01.nyt.com/images/2018/10/27/world/europe/27coppin2/27coppin2-articleLarge.jpg?quality=75&auto=webp&disable=upscale" srcset="https://static01.nyt.com/images/2018/10/27/world/europe/27coppin2/27coppin2-articleLarge.jpg?quality=90&auto=webp 600w,https://static01.nyt.com/images/2018/10/27/world/europe/27coppin2/27coppin2-jumbo.jpg?quality=90&auto=webp 1024w,https://static01.nyt.com/images/2018/10/27/world/europe/27coppin2/27coppin2-superJumbo.jpg?quality=90&auto=webp 2048w" sizes="((min-width: 600px) and (max-width: 1004px)) 84vw, (min-width: 1005px) 80vw, 100vw" itemprop="url" itemid="https://static01.nyt.com/images/2018/10/27/world/europe/27coppin2/27coppin2-articleLarge.jpg?quality=75&auto=webp&disable=upscale">

At left, a copy of the complaint Mrs. Coppin filed with the Irish police 20 years ago about her treatment in Ireland’s “industrial schools.” At right, Mrs. Coppin points at herself in a photograph outside Nazareth House industrial school in Tralee.CreditOlivia Harris for The New York Times

Here's the third "image" HTML:

Image

Mrs. Coppin and her husband met at a dance in the Hammersmith Palais after she fled Ireland for London. “When I met him it was the first time I ever felt loved,” she said.CreditOlivia Harris for The New York Times

This one has no img.

@fallerOfFalls You should provide the feed URL, screenshots and more context about your issue.

Feed URL: https://www.webtoons.com/en/drama/aerial-magic/rss?title_no=1358
Here's what I see on my phone:

That's with Brave browser on a nexus 5, but the same happens on Firefox on Debian (Linux) on my desktop.
I'm not sure what more context you need.
When I offer the feed to w3c it's not happy, but I don't know if that's the reason.

Ah. Note to self: next time a website doesn't work, try it with another feed reader.
I apologise for wasting your time.


Could we get a 3.2 series release?

Any chance of a 3.2 series point release? I'm especially interested in https://github.com/fruux/sabre-dav/issues/889, which has the fix already merged in the 3.2 branch and others.

Hi @daniellandau ,
I just made some changes for 3.2.1 and also  tagged it. The internet is too slow where I am to generate a build  and upload it,  but on composer 3.2.1 is now the latest stable. .zip build will follow later this weekend.

This is now publicly released.

Great, thanks!


PettingZoo wrapper

Hi, I'd like to contribute a PettingZoo wrapper and a corresponding Stable-Baselines3 training script using PPO with parameter sharing for Meltingpot to complement the current rllib example.
We've tested the harvest_commons_open and clean_up environments with the wrapper, and it should work similarly for all environments. I can also add documentation where neccessary.

Thank you for sending this pull request.
We will take a closer look later. Just a few comments from the top of my head: It seems like this change would require adding several new dependencies. You probably should make an explicit split between an RLLib example, and this PettingZoo example in setup.py. You should also update the documentation on how to run this, to improve it usability.
We'll get back to you with a detailed review in the next few days.
Thanks again!

Added a new setup.py extra and some documentation in the README.md

Hi @duenez, thanks for the detailed review!
I've fixed the module imports, and added some responses about the PettingZoo API. I hope this answers your questions; feel free to let me know if there's anything else you'd like me to change or answer.
Thank you for your time!

Sure, thank you for your time!

This is now merged into the main branch of the repo.


General: Docs for DetectedLanguage response CONFIDENCE_FIELD_NUMBER is incorrectly typed

Hi all,
Thanks for the great library. We've noticed on the docs site for Class DetectedLanguage of com.google.cloud.translate.v3, the CONFIDENCE_FIELD_NUMBER field is typed as an int but is indeed a float. Is this the right place to report this bug or is there another repo for the docs? Thanks!

Ah nvm the int is just the field type in the protobuf model -- all good.


Moved TtyCheck out of default package

The presence of the TtyCheck in the default package space causes problems when using this library from OSGI

Thanks @oconnormi - will merge. Sorry for the delay in noticing this PR.


Infra Template Migration

Summary
Updated several dashboard and quickstart templates with infra dashboard templates. These include:

AWS-Elastic Beanstalk
AWS-Appsync
AWS-Glue
Amazon-Athena
Amazon-FSX

AWS Elastic Beanstalk (environments) was combined into a tabbed dashboard experience with the Elastic Beanstalk (instances).
AWS-FSX and AWS-Athena naming was updated to Amazon FSx and Amazon Athena per AWS guides and docs.
Install plans were updated for all 4 template configs as they have cloudwatch metrics available.
I am leaving the Amazon Athena's 'athena.json' as it is using sample metrics. the template I've added is Metric based. The Quickstart has both available.

Pre merge checklist

[x] Did you check you NRQL syntax? - Does it work?
[x] Did you include an InstallPlan and Documentation reference?
[x] Are all documentation links publically accessible?
[x] Did you check your descriptive content for voice and tone?
[x] Did you check your descriptive content for spelling and grammar errors?

Dashboards

[x] Does the PR contain a screenshot for each of your dashboards?
[x] Do your screenshots show data?
[x] Has the sanitization script been run on each dashboard?

Alerts

[ ] Did you check that your alerts actually work?

amazon-athena.json and athena.json are both for AWS Athena, but the one I've added is Dimensional Metrics based, the athena.json which existed in IO is Sample Events based. I'm not sure if we want to remove one or leave both?


Unable to use Zigbee w/ HUSBZB-1

With a new install of Hass.io and completely wiping out all of the yamls in the config directory, using a clean generated configuration.yaml starts up fine with the USB stick inserted.  Adding the strings for zwave work fine as well.   When the zha strings are added, the web ui is inaccessible.
hassio host hardware
{
  "result": "ok",
  "data": {
    "serial": [
      "/dev/ttyUSB0",
      "/dev/ttyUSB1"
    ],
    "input": [],
    "disk": [],
    "audio": {
      "0": {
        "name": "bcm2835 - bcm2835 ALSA",
        "type": "ALSA",
        "devices": {
          "0": "digital audio playback",
          "1": "digital audio playback"
        }
      }
    }
  }
}

configuration.yaml
homeassistant:
  # Name of the location where Home Assistant is running
  name: Home
  # Location required to calculate the time the sun rises and sets
  latitude: 39.051
  longitude: -76.7285
  # Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 22
  # metric for Metric, imperial for Imperial
  unit_system: imperial
  # Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: America/New_York

# Show links to resources in log and frontend
#introduction:

# Enables the frontend
frontend:

# Enables configuration UI
config:

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
  # Optional, allows Home Assistant developers to focus on popular components.
  # include_used_components: true

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time
history:

# View all events in a logbook
logbook:

# Track the sun
sun:

# Weather prediction
sensor:
  - platform: yr

# Text to speech
tts:
  - platform: google

zwave:
  usb_path: /dev/ttyUSB0

zha:
  usb_path: /dev/ttyUSB1
  database_path: /config/zigbee.db

group: !include groups.yaml
automation: !include automations.yaml

logger:

core-ssh:~# hassio homeassistant logs
2017-08-15 14:05:49 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=7 from 2017-08-15 18:00:01.617517)
2017-08-15 14:05:49 DEBUG (Recorder) [homeassistant.components.recorder] Connected to recorder database
2017-08-15 14:05:49 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 2.1 seconds.
2017-08-15 14:05:49 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setting up http
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.1 seconds.
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setting up history
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setting up api
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=websocket_api>
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.1 seconds.
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=history>
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds.
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setting up frontend
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.1 seconds.
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded automation from homeassistant.components.automation
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded group from homeassistant.components.group
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded zwave from homeassistant.components.zwave
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded updater from homeassistant.components.updater
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded config from homeassistant.components.config
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded tts from homeassistant.components.tts
2017-08-15 14:05:50 INFO (MainThread) [homeassistant.loader] Loaded tts.google from homeassistant.components.tts.google
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.loader] Loaded zha from homeassistant.components.zha
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.setup] Setting up group
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.loader] Loaded sun from homeassistant.components.sun
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.setup] Setting up sun
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.6 seconds.
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=sun>
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.loader] Loaded sensor.yr from homeassistant.components.sensor.yr
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.setup] Setting up sensor
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sun.sun, old_state=None, new_state=<state sun.sun=above_horizon; next_dawn=2017                                                   -08-16T09:52:30+00:00, next_dusk=2017-08-16T00:31:24+00:00, next_midnight=2017-08-16T05:11:06+00:00, next_noon=2017-08-16T17:11:15+00:00, next_rising=2017-08-16T10:20:58+00:00, next_sett                                                   ing=2017-08-16T00:02:51+00:00, elevation=61.82, azimuth=209.11, friendly_name=Sun @ 2017-08-15T14:05:51.839850-04:00>>
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.setup] Setting up logbook
2017-08-15 14:05:51 INFO (MainThread) [homeassistant.setup] Setting up config
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logbook, service=log>
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.loader] Loaded config.group from homeassistant.components.config.group
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.group>
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.loader] Loaded config.hassbian from homeassistant.components.config.hassbian
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.loader] Loaded config.core from homeassistant.components.config.core
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.core>
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.loader] Loaded config.automation from homeassistant.components.config.automation
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.automation>
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.7 seconds.
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logbook>
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.7 seconds.
2017-08-15 14:05:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=reload>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=set>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=remove>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=set_visibility>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.setup] Setup of domain group took 2.5 seconds.
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=group>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.setup] Setting up automation
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=trigger>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=reload>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=toggle>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_on>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_off>
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.1 seconds.
2017-08-15 14:05:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=automation>
2017-08-15 14:05:55 INFO (MainThread) [homeassistant.setup] Setting up zwave
2017-08-15 14:05:58 INFO (MainThread) [homeassistant.setup] Setting up updater
2017-08-15 14:05:58 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.0 seconds.
2017-08-15 14:05:58 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater>
2017-08-15 14:06:01 INFO (MainThread) [homeassistant.setup] Setting up tts
2017-08-15 14:06:01 DEBUG (SyncWorker_8) [openzwave] Create network object.
2017-08-15 14:06:01 DEBUG (SyncWorker_8) [openzwave] Use sqlite version : ('3.18.0',)
2017-08-15 14:06:01 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-08-15 14:06:01 INFO (SyncWorker_8) [homeassistant.components.zwave] Z-Wave network autoheal is enabled
2017-08-15 14:06:01 INFO (MainThread) [homeassistant.setup] Setup of domain zwave took 6.4 seconds.
2017-08-15 14:06:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=zwave>
2017-08-15 14:06:01 INFO (MainThread) [homeassistant.loader] Loaded config.zwave from homeassistant.components.config.zwave
2017-08-15 14:06:01 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=config.zwave>
2017-08-15 14:06:02 INFO (MainThread) [homeassistant.setup] Setting up conversation
2017-08-15 14:06:02 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=conversation, service=process>
2017-08-15 14:06:02 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds.
2017-08-15 14:06:02 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=conversation>
2017-08-15 14:06:03 INFO (MainThread) [homeassistant.setup] Setting up zha
2017-08-15 14:06:05 DEBUG (MainThread) [bellows.zigbee.appdb] Loading application state from /config/zigbee.db
2017-08-15 14:06:05 DEBUG (MainThread) [bellows.uart] Sending: b'1ac038bc7e'
2017-08-15 14:06:05 INFO (MainThread) [homeassistant.setup] Setting up discovery
2017-08-15 14:06:05 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.0 seconds.
2017-08-15 14:06:05 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=discovery>
2017-08-15 14:06:07 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.yr
2017-08-15 14:06:07 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.yr_symbol, old_state=None, new_state=<state sensor.yr_symbol=unknown; at                                                   tribution=Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK., friendly_name=yr Symbol, entity_picture=//api.met.no/weatherapi/weathericon/1.1/?                                                   symbol=None;content_type=image/png @ 2017-08-15T14:06:07.217718-04:00>>
2017-08-15 14:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.yr_symbol, old_state=<state sensor.yr_symbol=unknown; attribution=Weathe                                                   r forecast from yr.no, delivered by the Norwegian Meteorological Institute and the NRK., friendly_name=yr Symbol, entity_picture=//api.met.no/weatherapi/weathericon/1.1/?symbol=None;cont                                                   ent_type=image/png @ 2017-08-15T14:06:07.217718-04:00>, new_state=<state sensor.yr_symbol=9; attribution=Weather forecast from yr.no, delivered by the Norwegian Meteorological Institute                                                    and the NRK., friendly_name=yr Symbol, entity_picture=//api.met.no/weatherapi/weathericon/1.1/?symbol=9;content_type=image/png @ 2017-08-15T14:06:08.347367-04:00>>
2017-08-15 14:06:08 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 16.6 seconds.
2017-08-15 14:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=sensor>
2017-08-15 14:06:08 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=tts, service=google_say>
2017-08-15 14:06:09 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=tts, service=clear_cache>
2017-08-15 14:06:09 INFO (MainThread) [homeassistant.setup] Setup of domain tts took 7.8 seconds.
2017-08-15 14:06:09 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=tts>
2017-08-15 14:06:13 WARNING (MainThread) [homeassistant.setup] Setup of zha is taking over 10 seconds.

zha look your Startup. Please open a issue on Home-Assistant repository.

Hi,
Is this issue fixed ?

No. See: https://github.com/home-assistant/home-assistant/issues/8922

As mentioned, this is not an Hassio issue, but a Home Assistant related issue.
Therefore closing this one.


Fix universal_robot_performance_hand_eye_calibration code.

First of all, thanks for the great code 🙏.
There is a small error in your code, so I'm writing to issue.
There is an issue with indent. This code fixes the problem with indents.
"""
Script to generate a dataset and perform hand-eye calibration using a Universal Robot UR5e robot.
The script communicates with the robot through Real-Time Data Exchange (RTDE) interface.
More information about RTDE:
https://www.universal-robots.com/how-tos-and-faqs/how-to/ur-how-tos/real-time-data-exchange-rtde-guide-22229/
The entire sample consist of two additional files:
- universal_robots_hand_eye_script.urp: Robot program script that moves between different poses.
- robot_communication_file.xml: communication set-up file.
Running the sample requires that you have universal_robots_hand_eye_script.urp on your UR5e robot,
and robot_communication_file.xml in the same repo as this sample. Each robot pose
must be modified to your scene. This is done in universal_robots_hand_eye_script.urp on the robot.
Further explanation of this sample is found in our knowledge base:
https://support.zivid.com/latest/academy/applications/hand-eye/ur5-robot-%2B-python-generate-dataset-and-perform-hand-eye-calibration.html
"""
import argparse
import datetime
import time
from pathlib import Path
from typing import List, Tuple
import cv2
import numpy as np
import zivid
from rtde import rtde, rtde_config
from sample_utils.save_load_matrix import assert_affine_matrix_and_save, load_and_assert_affine_matrix
from scipy.spatial.transform import Rotation
def _options() -> argparse.Namespace:
"""Function for taking in arguments from user.
Returns:
    Arguments from user

"""
parser = argparse.ArgumentParser(description=__doc__)
mode_group = parser.add_mutually_exclusive_group(required=True)
mode_group.add_argument("--eih", "--eye-in-hand", action="store_true", help="eye-in-hand calibration")
mode_group.add_argument("--eth", "--eye-to-hand", action="store_true", help="eye-to-hand calibration")
parser.add_argument("--ip", required=True, help="IP address to robot")

return parser.parse_args()

def _write_robot_state(
con: rtde.RTDE,
input_data: rtde.serialize.DataObject,
finish_capture: bool = False,
camera_ready: bool = False,
) -> None:
"""Write to robot I/O registers.
Args:
    con: Connection between computer and robot
    input_data: Input package containing the specific input data registers
    finish_capture: Boolean value to robot_state that q_r scene capture is finished
    camera_ready: Boolean value to robot_state that camera is ready to capture images

"""
input_data.input_bit_register_64 = int(finish_capture)
input_data.input_bit_register_65 = int(camera_ready)

con.send(input_data)

def _initialize_robot_sync(host: str) -> Tuple[rtde.RTDE, rtde.serialize.DataObject]:
"""Set up communication with UR robot.
Args:
    host: IP address

Returns:
    con: Connection to robot
    robot_input_data: Package containing the specific input data registers

Raises:
    RuntimeError: If protocol do not match
    RuntimeError: If script is unable to configure output
    RuntimeError: If synchronization is not possible

"""
conf = rtde_config.ConfigFile(Path(Path.cwd() / "universal_robots_communication_file.xml"))
output_names, output_types = conf.get_recipe("out")
input_names, input_types = conf.get_recipe("in")

# port 30004 is reserved for rtde
con = rtde.RTDE(host, 30004)
con.connect()

# To ensure that the application is compatible with further versions of UR controller
if not con.negotiate_protocol_version():
    raise RuntimeError("Protocol do not match")

if not con.send_output_setup(output_names, output_types, frequency=200):
    raise RuntimeError("Unable to configure output")

robot_input_data = con.send_input_setup(input_names, input_types)

if not con.send_start():
    raise RuntimeError("Unable to start synchronization")

print("Communication initialization completed. \n")

return con, robot_input_data

def _save_zdf_and_pose(save_dir: Path, image_num: int, frame: zivid.Frame, transform: np.ndarray) -> None:
"""Save data to folder.
Args:
    save_dir: Directory to save data
    image_num: Image number
    frame: Point cloud stored as ZDF
    transform: 4x4 transformation matrix

"""
frame.save(save_dir / f"img{image_num:02d}.zdf")

assert_affine_matrix_and_save(transform, save_dir / f"pos{image_num:02d}.yaml")

def _generate_folder() -> Path:
"""Generate folder where the dataset will be stored.
Returns:
    Path: Location_dir to where the data will be saved

"""
location_dir = Path.cwd() / "datasets" / datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")

if not location_dir.is_dir():
    location_dir.mkdir(parents=True)

return location_dir

def _get_frame_and_transform_matrix(
con: rtde,
camera: zivid.Camera,
settings: zivid.Settings,
) -> Tuple[zivid.Frame, np.ndarray]:
"""Capture image with Zivid camera and read robot pose.
Args:
    con: Connection between computer and robot
    camera: Zivid camera
    settings: Zivid settings

Returns:
    frame: Zivid frame
    transform: 4x4 transformation matrix

"""
frame = camera.capture(settings)
robot_pose = np.array(con.receive().actual_TCP_pose)

translation = robot_pose[:3] * 1000
rotation_vector = robot_pose[3:]
rotation = Rotation.from_rotvec(rotation_vector)
transform = np.eye(4)
transform[:3, :3] = rotation.as_matrix()
transform[:3, 3] = translation.T

return frame, transform

def _camera_settings(camera: zivid.Camera) -> zivid.Settings:
"""Set camera settings.
Args:
    camera: Zivid camera

Returns:
    settings: Zivid Settings

"""
suggest_settings_parameters = zivid.capture_assistant.SuggestSettingsParameters(
    max_capture_time=datetime.timedelta(milliseconds=1200),
    ambient_light_frequency=zivid.capture_assistant.SuggestSettingsParameters.AmbientLightFrequency.none,
)

settings = zivid.capture_assistant.suggest_settings(camera, suggest_settings_parameters)

return settings

def _read_robot_state(con: rtde.RTDE) -> rtde.serialize:
"""Receive robot output recipe.
Args:
    con: Connection between computer and robot

Returns:
    robot_state: Robot state

"""
robot_state = con.receive()

assert robot_state is not None, "Not able to receive robot_state"

return robot_state

def _save_hand_eye_results(save_dir: Path, transform: np.ndarray, residuals: List) -> None:
"""Save transformation and residuals to folder.
Args:
    save_dir: Path to where data will be saved
    transform: 4x4 transformation matrix
    residuals: List of residuals

"""
assert_affine_matrix_and_save(transform, save_dir / "handEyeTransform.yaml")

file_storage_residuals = cv2.FileStorage(str(save_dir / "residuals.yaml"), cv2.FILE_STORAGE_WRITE)
residual_list = []
for res in residuals:
    tmp = list([res.rotation(), res.translation()])
    residual_list.append(tmp)

file_storage_residuals.write(
    "Per pose residuals for rotation in deg and translation in mm",
    np.array(residual_list),
)
file_storage_residuals.release()

def _image_count(robot_state) -> int:
"""Read robot output register 24.
Args:
    robot_state: Robot state

Returns:
    Number of captured images

"""
return robot_state.output_int_register_24

def _ready_for_capture(robot_state) -> bool:
"""Read robot output register 64.
Args:
    robot_state: Robot state

Returns:
    Boolean value that states if camera is ready to capture

"""
return robot_state.output_bit_register_64

def _verify_good_capture(frame: zivid.Frame) -> None:
"""Verify that checkerboard feature-points are detected in the frame.
Args:
    frame: Zivid frame containing point cloud

Raises:
    RuntimeError: If no feature points are detected in frame

"""
point_cloud = frame.point_cloud()
detection_result = zivid.calibration.detect_feature_points(point_cloud)

if not detection_result.valid():
    raise RuntimeError("Failed to detect feature points from captured frame.")

def _capture_one_frame_and_robot_pose(
con: rtde.RTDE,
camera: zivid.Camera,
settings: zivid.Settings,
save_dir: Path,
input_data: rtde.serialize.DataObject,
image_num: int,
ready_to_capture: bool,
) -> None:
"""Capture 3D image and robot pose for a given robot posture,
then signals robot to move to next posture.
Args:
    con: Connection between computer and robot
    camera: Zivid camera
    settings: Zivid settings
    save_dir: Path to where data will be saved
    input_data: Input package containing the specific input data registers
    image_num: Image number
    ready_to_capture: Boolean value to robot_state that camera is ready to capture images

"""
frame, transform = _get_frame_and_transform_matrix(con, camera, settings)
_verify_good_capture(frame)

# Signal robot to move to next position, then set signal to low again.
_write_robot_state(con, input_data, finish_capture=True, camera_ready=ready_to_capture)
time.sleep(0.1)
_write_robot_state(con, input_data, finish_capture=False, camera_ready=ready_to_capture)
_save_zdf_and_pose(save_dir, image_num, frame, transform)
print("Image and pose saved")

def _generate_dataset(app: zivid.Application, con: rtde.RTDE, input_data: rtde.serialize.DataObject) -> Path:
"""Generate dataset based on predefined robot poses.
Args:
    app: Zivid application instance
    con: Connection between computer and robot
    input_data: Input package containing the specific input data registers

Returns:
    Path: Save_dir to where dataset is saved

"""
with app.connect_camera() as camera:
    settings = _camera_settings(camera)
    save_dir = _generate_folder()

    # Signal robot that camera is ready
    ready_to_capture = True
    _write_robot_state(con, input_data, finish_capture=False, camera_ready=ready_to_capture)

    robot_state = _read_robot_state(con)

    print(
        "Initial output robot_states: \n"
        f"Image count: {_image_count(robot_state)} \n"
        f"Ready for capture: {_ready_for_capture(robot_state)}\n"
    )

    images_captured = 1
    while _image_count(robot_state) != -1:
        robot_state = _read_robot_state(con)

        if _ready_for_capture(robot_state) and images_captured == _image_count(robot_state):
            print(f"Capture image {_image_count(robot_state)}")
            _capture_one_frame_and_robot_pose(
                con,
                camera,
                settings,
                save_dir,
                input_data,
                images_captured,
                ready_to_capture,
            )
            images_captured += 1

        time.sleep(0.1)

_write_robot_state(con, input_data, finish_capture=False, camera_ready=False)
time.sleep(1.0)
con.send_pause()
con.disconnect()

print(f"\n Data saved to: {save_dir}")

return save_dir

def perform_hand_eye_calibration(
mode: str,
data_dir: Path,
) -> Tuple[np.ndarray, List[zivid.calibration.HandEyeResidual]]:
"""Perform had-eye calibration based on mode.
Args:
    mode: Calibration mode, eye-in-hand or eye-to-hand
    data_dir: Path to dataset

Returns:
    transform: 4x4 transformation matrix
    residuals: List of residuals

Raises:
    RuntimeError: If no feature points are detected
    ValueError: If calibration mode is invalid

"""
calibration_inputs = []
idata = 1
while True:
    frame_file_path = data_dir / f"img{idata:02d}.zdf"
    pose_file_path = data_dir / f"pos{idata:02d}.yaml"

    if frame_file_path.is_file() and pose_file_path.is_file():
        print(f"Detect feature points from img{idata:02d}.zdf")
        point_cloud = zivid.Frame(frame_file_path).point_cloud()
        detection_result = zivid.calibration.detect_feature_points(point_cloud)

        if not detection_result.valid():
            raise RuntimeError(f"Failed to detect feature points from frame {frame_file_path}")

        print(f"Read robot pose from pos{idata:02d}.yaml")
        pose_matrix = load_and_assert_affine_matrix(pose_file_path)

        calibration_inputs.append(
            zivid.calibration.HandEyeInput(zivid.calibration.Pose(pose_matrix), detection_result)
        )
    else:
        break

    idata += 1

    print(f"\nPerform {mode} calibration")

#########################################################################
  if mode == "eye-in-hand":
      calibration_result = zivid.calibration.calibrate_eye_in_hand(calibration_inputs)
  elif mode == "eye-to-hand":
      calibration_result = zivid.calibration.calibrate_eye_to_hand(calibration_inputs)
  else:
      raise ValueError(f"Invalid calibration mode: {mode}")

  transform = calibration_result.transform()
  residuals = calibration_result.residuals()

  print("\n\nTransform: \n")
  np.set_printoptions(precision=5, suppress=True)
  print(transform)

  print("\n\nResiduals: \n")
  for res in residuals:
      print(f"Rotation: {res.rotation():.6f}   Translation: {res.translation():.6f}")

return transform, residuals

############################################################################
def _main() -> None:
app = zivid.Application()
user_options = _options()
robot_ip_address = user_options.ip
con, input_data = _initialize_robot_sync(robot_ip_address)
con.send_start()

dataset_dir = _generate_dataset(app, con, input_data)

if user_options.eih:
    transform, residuals = perform_hand_eye_calibration("eye-in-hand", dataset_dir)
else:
    transform, residuals = perform_hand_eye_calibration("eye-to-hand", dataset_dir)

_save_hand_eye_results(dataset_dir, transform, residuals)

if name == "main":
_main()

Hi!
Thanks for catching this, we will fix it right away!


Mapping

Now mapping is done very crude. This should be doen more generic and with less copy paste code.

Duplicate with others so I close this.


Support for binary mode files (such as those returned from urllib.request.urlopen())

json_stream.load(fp) does not handle fps that produce bytes (such as those returned from urllib.request.urlopen()).
This issue was raised by @yyellin in #9.
See the discussion there for more details.

The changes in PR test the input "file" to see if it returns bytes or str and wraps any byte-file in an io.TextIOWrapper. The encoding is used by the TextIOWrapper is guessed from:

if it is a urllib-looking response, the Content-Type header encoding
otherwise UTF-8


I want Unison Local UI to have a quick view for dependents of an entry

Essentially a UI equivalent of dependents foo

This issue might be related: https://github.com/unisonweb/ui-core/issues/26

Yes, it does look like it! Well spotted!
Still, I'm going to leave this issue open because that's UI Core and this is UI Local UI, and I think Local UI is not folded into the Core repo, so it might get overlooked there. Heck, having it here might result in me thinking about it.
A cursory glance looks like the UI code for Local is here, but I guess the Core/UCM side of things is where the data for the local UI is served from, so this implementation likely requires work on both codebases.

This is definitely something we want. I think I've been a little worried about a good UX from Share's point of view (Share also uses ui-core) given the scope of dependents, but things seems simpler in local ui.

I was thinking that it'd be a rolling request of dependents instead of a tree of every single one. Like for whatever element you're viewing, you fetch two levels of dependents deep. Or maybe one. And then if you drill down, same thing. So there's never a big payload.
It would be helpful for what I'm doing now: First major thing I've written, I wasn't really thinking about namespacing everything I created at first, and about halfway through I started doing it. Now I'm cleaning up, and there's a lot of one-off types that I don't remember which GetBody type it belongs to, so I'm having to trace down the dependency trees and then sort them into, say, api.Lights.GetAllResBody.ControlStatusType


Interpret Transaction Type for CapitalOne transaction files

Capital One (C1) uses a single field for inflow and outflow transactions. In both cases, the dollar amounts are shown as a positive number!
In order to accurately represent whether the transaction increases or decreases the balance, C1 uses a separate field titled "Transaction Type", which can either be of "Debit" or "Credit".
Sample transaction table from C1:

Account Number
Transaction Description
Transaction Date
Transaction Type
Transaction Amount
Balance

0238
Salary Deposit
11/04/24
Credit
2000.00
4000.00

0238
Purchase at Grocery Store
11/04/24
Debit
50.00
3050.00

When processing a file like this, the "Transaction Type" field should be used to either flip the "Transaction Amount" field to a negative value or to add a column and use those as Inflow and Outflow columns. (Probably the former)
The resulting sample data file above would look like this:

Account Number
Transaction Description
Transaction Date
Transaction Type
Transaction Amount
Balance

0238
Salary Deposit
11/04/24
Credit
2000.00
4000.00

0238
Purchase at Grocery Store
11/04/24
Debit
-50.00
3050.00

OR - have the program attempt to detect the Inflow/Outflow vs Amount column and provide suggested mappings, where possible.


Add msg when user can't vote

https://github.com/threefoldtech/threefold_connect/issues/637

If user voted before with yes and chose to vote with yes again, error will appear but  instead now it will appear as You have votes successfully without sending the vote request.

https://github.com/user-attachments/assets/88cd7baa-7765-49a1-beb6-d266789cc747
https://github.com/user-attachments/assets/39b3a9c4-37aa-4b7b-9b17-af3b0443b25f


test: use RemoteRepositories for setPortCallback

The RootRepos/NonRootRepos fields are reset for every testcase, which required for the PortForwarder to be recreated with each testcase. This switches the reset function to use RemoteRepositories, which represents all Repositories that have been created (across test cases). This change enables us to create a single GitProvider in FreshTestEnv and share it across shared test environments. This also means there is only a single PortForwarder to the git server active at a given time, which is preferred.

/retest


D3D12RaytracingHelloWorld build fails

Other samples (for example D3D12HelloTriangle) compiles and run without errors.
Windows 10 version 2004 SDK 10.0.18362.0
Build output:
------ Build started: Project: D3D12RaytracingHelloWorld, Configuration: Debug x64 ------ stdafx.cpp some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1831,1): error C2504: 'D3D12_RESOURCE_DESC1': base class undefined some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1833,79): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1833,64): error C2143: syntax error: missing ',' before '&' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1834,31): error C2065: 'o': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1834,9): error C2614: 'CD3DX12_RESOURCE_DESC1': illegal member initialization: 'D3D12_RESOURCE_DESC1' is not a base or member some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1852,9): error C2065: 'Dimension': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1853,9): error C2065: 'Alignment': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1854,9): error C2065: 'Width': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1855,9): error C2065: 'Height': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1856,9): error C2065: 'DepthOrArraySize': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1857,9): error C2065: 'MipLevels': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1858,9): error C2065: 'Format': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1859,9): error C2065: 'SampleDesc': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1860,9): error C2065: 'SampleDesc': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1861,9): error C2065: 'Layout': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1862,9): error C2065: 'Flags': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1863,9): error C2065: 'SamplerFeedbackMipRegion': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1864,9): error C2065: 'SamplerFeedbackMipRegion': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1865,9): error C2065: 'SamplerFeedbackMipRegion': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1927,15): error C2065: 'Dimension': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1927,65): error C2065: 'DepthOrArraySize': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1929,15): error C2065: 'Dimension': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1929,65): error C2065: 'DepthOrArraySize': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1931,48): error C2065: 'Format': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1933,14): error C2065: 'MipLevels': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1935,69): error C2065: 'MipLevels': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1937,51): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1937,51): error C2143: syntax error: missing ',' before '&' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1938,1): error C2803: 'operator ==' must have at least one formal parameter of class type some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1938,1): error C2805: binary 'operator ==' has too few parameters some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1939,12): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1939,27): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1940,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1940,24): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1941,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1941,20): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1942,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1942,21): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1943,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1943,31): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1944,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1944,24): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1945,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1945,21): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1946,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1946,31): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1947,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1947,33): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1948,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1948,21): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1949,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1949,20): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1950,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1950,45): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1951,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1951,46): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1952,9): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1952,45): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1954,51): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1954,51): error C2143: syntax error: missing ',' before '&' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1955,1): error C2803: 'operator !=' must have at least one formal parameter of class type some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1955,1): error C2805: binary 'operator !=' has too few parameters some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1955,13): error C2065: 'l': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(1955,18): error C2065: 'r': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2332,86): error C2065: 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2332,124): error C2975: 'Type': invalid template argument for 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT', expected compile-time constant expression some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2304): message : see declaration of 'Type' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2332): error C2440: 'specialization': cannot convert from 'int' to 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2332): message : Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2332,124): error C2973: 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT': invalid template argument 'int' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2305): message : see declaration of 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2333,86): error C2065: 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2333,124): error C2975: 'Type': invalid template argument for 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT', expected compile-time constant expression some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2304): message : see declaration of 'Type' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2333): error C2440: 'specialization': cannot convert from 'int' to 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2333): message : Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2333,124): error C2973: 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT': invalid template argument 'int' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2305): message : see declaration of 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2475): error C2440: 'specialization': cannot convert from 'int' to 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2475): message : Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast) some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2475): message : see reference to class template instantiation 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT<D3D12_SHADER_BYTECODE,0,InnerStructType>' being compiled         with         [             InnerStructType=D3D12_SHADER_BYTECODE         ] some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2475,40): error C2973: 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT': invalid template argument 'int' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2305): message : see declaration of 'CD3DX12_PIPELINE_STATE_STREAM_SUBOBJECT' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2979,14): error C2065: 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2983,14): error C2065: 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2979,1): error C2051: case expression not constant some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(2983,1): error C2051: case expression not constant some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3739,78): error C2061: syntax error: identifier 'D3D12_RAYTRACING_PIPELINE_FLAGS' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3749,53): error C2833: 'operator D3D12_RAYTRACING_PIPELINE_CONFIG1' is not a recognized operator or type some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3749,53): error C2059: syntax error: 'newline' some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3749,72): error C2334: unexpected token(s) preceding '{'; skipping apparent function body some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3757,45): error C3646: 'm_Desc': unknown override specifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3757,45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3741,9): error C2065: 'm_Desc': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3742,9): error C2065: 'm_Desc': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3742,24): error C2065: 'Flags': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3746,16): error C2065: 'D3D12_STATE_SUBOBJECT_TYPE_RAYTRACING_PIPELINE_CONFIG1': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3754,9): error C2065: 'm_Desc': undeclared identifier some_path\DirectX-Graphics-Samples-master\Libraries\D3DX12\d3dx12.h(3756,46): error C2065: 'm_Desc': undeclared identifier Done building project "D3D12RaytracingHelloWorld.vcxproj" -- FAILED.

The  D3DX12.H header was updated for the latest version, which requires Windows 10 SDK (19041).


Tailwindcss support to web package.

Tailwindcss is a modern css library, it has built-in css utilities dedicated to style your app faster, highly recommended for this project.

I had an idea before of using react-native-web to share UI components between the web and mobile apps, but unfortunately Tailwindcss doesn't support it, so we have a bit of an issue here, wether we should use Tailwindcss or perhaps styled-componenets.

It's decided. Tailwind will not be added directly to the web package, instead it will be available on a separate standalone package of components.
Title of the issue and description will be updated!

After second thought, maybe I should add it to the web package instead of a standalone components package.


fix!: fix various 8.0.0 issues

Summary
This PR fixes some issues with the 8.0.0 release. It also addresses the issue of focus-trap-react and jsdom by requiring users to add focus-trap-react as a dependency to their projects with documentation on the issue so that they can ensure unit tests rendering Modal do not fail.

add css files to package.json exports (credit to mdmower-csnw)
add jest-dom to tsconfig types
add focus-trap-react as peer dependency and exclude from library bundle
update documentation to explain the focus-trap-react issue and to install focus-trap-react with react-uswds
update dependencies
updates and fixes presented yarn version (fixes errors when adding library via git)

Related Issues or PRs

#2807

How To Test

Use this branch for the version of react-uswds in your project
Verify that you can successfully import the index.css and uswds.css files in code
Verify that you can mock the focus-trap-react library to prevent errors when rendering Modal in unit tests

Temporarily moving to draft to fix git history

Rebased off of @mdmower-csnw 's css branch to ensure he is credited.


Usages examples docs

Add usage examples in documentation rather than showcasing in video, which  can be quickly be outdated and hard to update.

Good idea, thanks. Will gladly review any PR for that.


Development build fails on Windows

I followed the instructions to build card.js locally on my Server 2012 R2 box, and I receive the error below. I used a bash command prompt.
I also tried setting NODE_ENV as so:

     NODE_ENV=”production npm run compile”

     export NODE_ENV=”production npm run compile”

I also have latest npm and node installed.
Any ideas?
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":
"win32","arch":"x64"})
npm WARN<EMAIL_ADDRESS>No license field.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>prepublish: NODE_ENV=production npm run compile
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prepublish script 'NODE_ENV=production npm run compile'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the card package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     NODE_ENV=production npm run compile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs card
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls card
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Code\Git Projects\card\npm-debug.log

Fixed in 2.0.5.


TypeError at / '>' not supported between instances of 'NoneType' and 'datetime.datetime'

I logged on two different browsers. I logout from one browser and successfully logout. After that I refresh the page on second browser I got this error "TypeError at /
'>' not supported between instances of 'NoneType' and 'datetime.datetime"
Exception Location: | /Users/manpreet/Sites/venv/lib/python3.6/site-packages/django_keycloak/auth/backends.py in get_user, line 31

We are getting the same error in our logs. Thanks @missmanpreet for providing the scenerio

We are getting the same error in our logs. Thanks @missmanpreet for providing the scenerio

Did you manage to fix it?

Did you manage to fix it?

Same problem

i fixed this error i will create pull request shortly.Thanks


opera-gx: update to v106.0.4998.49

updated checkver regex to only match versions starting with 3-digits.
update manifest to latest version

Closes #12628

[x] I have read the Contributing Guide.

Oops, 37 minutes late to the party. @danielpauldd just made a request.

Hello @amreus, the PR #12206 only fixes the opera manifest (tbh I wasn't aware of opera-gx before).
I think you should reopen your PR and also link it to issue https://github.com/ScoopInstaller/Extras/issues/12628

Yeah it was a little confusing.  I am going to copy your manifest and adopt it to opera-gx since it has the same problem with the order of the version list. Thank you.

Use a script for checking version due to download page sorting alphebetically instead of by version.
Updated the manifest based on @danielpauldd's version

/verify

Just to have everything right, the PR and the code changes including the checkver part is from @gigabotan
I only reviewed the manifest and linked it to the current issue.

/verify


Removed RESP3 force, added exception

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
4911

Relevant Lines:
6056

💛  - Coveralls


Items are not shown in order

Items are not shown one after the other according to how they were arranged or added.

This seems to solve the problem
tutorials = new LinkedHashMap<>();


Route53 provider

Created this issue following the steps listed at Implementing Providers

@mholt, I also have the caddy-dns module ready... what's the best way to have it added to the caddy-dns org?

Went ahead and created https://github.com/danlsgiga/route53... can transfer ownership to the caddy-dns org whenever you want.

@danlsgiga Great! This is fantastic. I got you all set up with the repositories and gave you maintain privileges on them.
Thank you!!


Implement string parser

I've been looking into implementing a proper string parser that supports interpretation of escape sequences as mentioned in the CEL specification.
I based my implementation on snailquote, but had to change it so that it can support things from CEL specification.
So far it supports all escape sequences and raw strings. I plan to look into supporting triple quotes as well, but in a separate PR.
Please let me know what you think about this approach - maybe you had some different thoughts on how to do this differently, but generally this approach seem to work and could be scaled to other tokens such as byte strings and even numbers.
I'm very new to Rust and would appreciate your feedback. I will look into adding some tests, but need to learn how to do that.

Very nice! I'll dive into this and get back to you. Tests would be great, I've been adding them to the bottom of the files of the code they're testing. Checkout the functions.rs file for an example of how to annotate a test function.

I haven't looked at the PR itself yet, but a couple things right off the bat to consider:

It looks like there are some regressions on existing unit tests, so we'd want to make sure your PR addresses each of those first.
At some point in the near future when I get the time for the next major CEL project, I'd like to get #18 merged. That doesn't mean that we can't merge this PR first, it just means that if we do, we'll need to implement this twice (if it's not already supported in #18 which something in the back of my brain is tickling me).

I haven't looked at the PR itself yet, but a couple things right off the bat to consider:

It looks like there are some regressions on existing unit tests, so we'd want to make sure your PR addresses each of those first.
At some point in the near future when I get the time for the next major CEL project, I'd like to get Add chumsky parser #18 merged. That doesn't mean that we can't merge this PR first, it just means that if we do, we'll need to implement this twice (if it's not already supported in Add chumsky parser #18 which something in the back of my brain is tickling me).

Yes, I have noticed some test failing, but haven't looked into them until now. The regular expression was too greedy, so I asked ChartGPT for help and now tests are passing :)
I'm currently adding some tests for the string parser.
No worries if we have to replace the implementation if new parser comes into the picture. I use this as an opportunity to familiarise myself with Rust, so happy to help.

@clarkmcc I've got some time to work on this now, would you mind approving the workflow to see how it looks now?

Workflow approved! It's been a while since I looked at this PR but if I remember right there were a lot of allocations happening (String::from). It would be great if that could be optimized and I'm even wondering if using nom is the most efficient way to do this.
In any case, move in whatever direction you'd like to take this and we can look at performance after we've got something working.

@clarkmcc I have the removed the majority of String::from usages - only cases that handle unicode characters still use it, so I thing this should be good for now.
nom does look interesting indeed!

Actually checked the code once again and noticed that I was creating a string from a character when handling unicode - changed it to returned char instead.

Thanks! I'm out on vacation now but will review once I return next week.

Thanks for getting the tests working! Are you interested in adding parser benchmarks? I've been meaning to add them for a while and now seems like a good change. If not, no stress and I can get those added in myself.

Thanks for getting the tests working! Are you interested in adding parser benchmarks? I've been meaning to add them for a while and now seems like a good change. If not, no stress and I can get those added in myself.

I've added some simple benchmarks - do you think these are good enough for now or do you have anything else in mind?

This is great for now. I'm part way through a review with a few feedback items. I started this weekend but have been sidetracked this week. I hope to have a review finished this weekend.


Error building template

Godot version:
3.rc5
OS/device including version:
Windows 11
Issue description:
arm-vita-eabi-g++:arm-vita-eabi-g++:  error: error: /TP: No such file or directory
/I.: No such file or directory
arm-vita-eabi-g++:arm-vita-eabi-g++:  error: error: /Iplatform\vita: No such file or directory
/nologo: No such file or directory
arm-vita-eabi-g++: error: /DDEBUG_ENABLED: No such file or directory
arm-vita-eabi-g++: error: /DDEV_ENABLED: No such file or directory
arm-vita-eabi-g++: error: /DNO_EDITOR_SPLASH: No such file or directory
scons: *** [platform\vita\godot_vita.vita.debug.32.obj] Error 1
arm-vita-eabi-g++: error: /DMINIZIP_ENABLED: No such file or directory
arm-vita-eabi-g++: error: /Ithirdparty\freetype\include: No such file or directory
arm-vita-eabi-g++: error: scons: *** [platform\vita\joypad_vita.vita.debug.32.obj] Error 1
/Ithirdparty\libpng: No such file or directory
arm-vita-eabi-g++: error: /Ithirdparty\zlib: No such file or directory
arm-vita-eabi-g++: error: /IC:\msys64\usr\local\vitasdk\share\gcc-arm-vita-eabi\samples\common: Invalid argument
arm-vita-eabi-g++: error: /IC:\msys64\usr\local\vitasdk\arm-vita-eabi\include\freetype2: Invalid argument
arm-vita-eabi-g++: error: /IC:\msys64\usr\local\vitasdk\arm-vita-eabi\include: Invalid argument
arm-vita-eabi-g++: error: /I.: No such file or directory
arm-vita-eabi-g++: error: /Iplatform\vita: No such file or directory
scons: *** [platform\vita\audio_driver_vita.vita.debug.32.obj] Error 1

Steps to reproduce:
Cloning the project and running: scons platform=vita gives those errors. Not really sure why every path appears with "/I" in the beggining of it.

In linux it gives:
platform/vita/context_egl_vita.h:39:10: fatal error: EGL/egl.h: No such file or directory
   39 | #include <EGL/egl.h> // EGL library
      |          ^~~~~~~~~~~
compilation terminated.
In file included from platform/vita/context_egl_vita.cpp:31:
platform/vita/context_egl_vita.h:39:10: fatal error: EGL/egl.h: No such file or directory
   39 | #include <EGL/egl.h> // EGL library
      |          ^~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/os_vita.vita.debug.32.o] Error 1
scons: *** [platform/vita/context_egl_vita.vita.debug.32.o] Error 1
In file included from platform/vita/os_vita.h:35,
                 from platform/vita/godot_vita.cpp:37:
platform/vita/context_egl_vita.h:39:10: fatal error: EGL/egl.h: No such file or directory
   39 | #include <EGL/egl.h> // EGL library
      |          ^~~~~~~~~~~
compilation terminated.
scons: *** [platform/vita/godot_vita.vita.debug.32.o] Error 1
scons: building terminated because of errors.

This isn't a project problem. This is a setup problem.  You didn't actually fully install PVR_PSP2. You can install it in an easier manner from here


Add support for annotated_types.Not

Change Summary
Add support for annotated_types.Not
Related issue number
fix #10111
Checklist

[x] The pull request title is a good summary of the changes - it will be used in the changelog
[x] Unit tests for the changes exist
[x] Tests pass on CI
[ ] Documentation reflects the changes where applicable
[x] My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

please review


Update readme

@choldgraf After this lands, I'll try to move and combine content with doc directory files so we minimize duplication.

of course!

@choldgraf This PR now deduplicates the content between README and index.rst. Sphinx will include the README content in index.rst with the addition of this directive: https://github.com/jupyterhub/binderhub/pull/48/commits/7b07d5d654b9a41bd902a46c515d7ea2dd504a94#diff-0ced3dfd44ba156272e6db34a5247462R17
Here's a screenshot:


debug

Hi,
I have an idea / suggestion / found a bug / have question / want to contribute.
Here's some code
using Entitas;

public sealed class MyComponent : IComponent {
}

Cheers

Nice component :D
Will close ;)
Happy coding :)


Problem with ImageMagick

I am running this command:
baysor run -i 500 -n 10 -p -c ../../configs/starmap.toml -o ./output_dapi -p ./data/molecules.csv ./data/segmentation.tiff
using the docker container. But it stopped and wanting ImageMagick:
Fatal error:
[17:05:20] Error: ArgumentError("Package ImageMagick not found in current path:\n- Run import Pkg; Pkg.add(\"ImageMagick\") to install the ImageMagick package.\n")
|
|                 handle_error(::ArgumentError, ::FileIO.File{FileIO.DataFormat{:TIFF}}) at error_handling.jl:82
|                 handle_exceptions(::Array{Any,1}, ::String) at error_handling.jl:77
|                 load(::FileIO.Formatted; options::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at loadsave.jl:189
|                 load at loadsave.jl:169 [inlined]
|                 #load#13 at loadsave.jl:118 [inlined]
|                 load at loadsave.jl:118 [inlined]
|                 load_centers(::String; min_segment_size::Int64, kwargs::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol,Symbol},NamedTuple{(:x_col, :y_col),Tuple{Symbol,Symbo
l}}}) at CenterData.jl:62
|                 (::Baysor.var"#load_centers##kw")(::NamedTuple{(:x_col, :y_col, :min_segment_size),Tuple{Symbol,Symbol,Int64}}, ::typeof(Baysor.load_centers), ::String) at Ce
nterData.jl:54

Thank you for reporting this! There were two issues: first, DockerHub didn't rebuild the docker for quite long, and second, the ImageMagick dependency was implicit, and thus missing in the docker. I fixed the first problem yesterday (https://github.com/kharchenkolab/Baysor/commit/5e5d1f3171d0b8e2acc45a03c014e665c2b73c38), and the latest commit (https://github.com/kharchenkolab/Baysor/commit/775c52cf1e267fc2c3de0f0996ed1ab88e36cdd5) should hopefully fix the second issue. I'll test it today or tomorrow, and if it works, will make a patch release. Then the docker should work fine.

cool..I'll give it ago once that's done. Thanks!
Aster.
On Wed, Oct 28, 2020 at 9:03 AM Viktor Petukhov<EMAIL_ADDRESS>wrote:

Thank you for reporting this! There were two issues: first, DockerHub
didn't rebuild the docker for quite long, and second, the ImageMagick
dependency was implicit, and thus missing in the docker. I fixed the first
problem yesterday (5e5d1f3
https://github.com/kharchenkolab/Baysor/commit/5e5d1f3171d0b8e2acc45a03c014e665c2b73c38),
and the latest commit (775c52c
https://github.com/kharchenkolab/Baysor/commit/775c52cf1e267fc2c3de0f0996ed1ab88e36cdd5)
should hopefully fix the second issue. I'll test it today or tomorrow, and
if it works, will make a patch release. Then the docker should work fine.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kharchenkolab/Baysor/issues/6#issuecomment-718035517,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMLP6AUTHWTCACQKTAGWVITSNA6GJANCNFSM4TBEDTPQ
.

Alright, the version 0.4.1 is there. Please, try vpetukhov/baysor:master.

Hi Victor,
when I typed baysor inside the container now I get "ERROR: Unable to find
compatible target in system image".
Aster.
On Fri, Oct 30, 2020 at 8:04 AM Viktor Petukhov<EMAIL_ADDRESS>wrote:

Alright, the version 0.4.1 is there. Please, try vpetukhov/baysor:master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kharchenkolab/Baysor/issues/6#issuecomment-719606560,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMLP6ATJJVZJ7QWBFHHAUCDSNLIYHANCNFSM4TBEDTPQ
.


custom kubecontext

Is your feature request related to a problem? Please describe.
The kubecontext info is very useful but clutters my prompt, adding 47 chars to it!
Is your feature request related to new section on prompt? Then consider the following questions:

Will it clutter the prompt? NO
Is it worth to be aware of it? YES
Will it slow down the prompt? NO

Describe the solution you'd like
Allow adding a custom context (either mapping or slicing).
Currently showing:
 at ☸  gke_projectname-123518_asia-east1-b_projectname

Wishing to see:
 at ☸ gke_projectname

we could add a SPACESHIP_KUBECONTEXT_NAMEARRAY variable. If present, use the value for the current context instead.
SPACESHIP_KUBECONTEXT_NAMEARRAY=(
  gke_projectname-123518_asia-east1-b_projectname  gke_projectname
  gke_otherproject-111111_us-east1-a_otherproject  gke_otherproject
)

Nice suggestion @Fandekasp. It would be make the section adherent to our philosophy. This should doable with Zsh assoc arrays.

Why not just rename your context to a shorter name?

@maximbaz 	indeed, that was very simple:
$ kubectl config rename-context gke_very_long_context_name name

Closing this issue, thanks


BeagleBone + Custom Kernel (uBoot)

I am trying to put the patches from OSADL on my BeagleBone Black but the problem is that I need a pre-installed system on my SD card. With setup_sdcard, which comes with debian demo image, I couldn't update the uImage (which I already have compiled) or anything like that.
I used the --beagleboard.org-production because then I would have the boot/ partition outside of the rootfs/. I tried to delete the two uEnv.txt files and put the MLO and u-boot.img there instead. At the /rootfs/boot i put the uImag and /dts/am335x-boneblack.dtb. But it didn't worked...
That is someway, with the actual script, that could make it work (putting different uImage, in this case)?

Hi Robert,
I am building file system using build root. before that i was using Ubuntu 16.04 file system maintained by you as  mentioned in below link;
https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-HDMI
As build root does not provide "apt-get" support, i am not able to use bb.org-overlays for lcd dts loading
Could you please share your views how to create Ubuntu filesystem, so that i can customize and maintain for long period.
Kindly share your views.
Thanks,
Mrudula

@mrudulachougule
source is here https://github.com/beagleboard/bb.org-overlays/
Regards,

Hi Robert,
Greetings!! Thank you for sharing source path.
Could you please share your views on generating Ubuntu 16.04 root
fileSystem.
I am working on building root file system for beagle bone black using
Buildroot. Since Buildroot does not support gcc and few packages which
would be required to compile bb.org-overlays
https://github.com/beagleboard/bb.org-overlays/. Could you please share
details on creating Ubuntu 16.04 root file system from scratch.
Appreciate your Feedback/ suggestions/ views.
Thanks & regards,
Mrudula
On Thu, Dec 15, 2016 at 8:13 PM, Robert Nelson<EMAIL_ADDRESS>wrote:

@mrudulachougule https://github.com/mrudulachougule
source is here https://github.com/beagleboard/bb.org-overlays/
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobertCNelson/omap-image-builder/issues/43#issuecomment-267343956,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOUEXPJi35JiCabm0ynb65JLeIofdKstks5rIVIIgaJpZM4DD8JO
.

@mrudulachougule buildroot supports gcc..
this repo:
https://github.com/RobertCNelson/omap-image-builder
Generates ubuntu rootfs's
Regards,

Hi Robert,
Thank you for sharing details. You have done great Job!  It's good document
to start with.
I am able to build rootfs using "debootstrap". I want to customize this
rootfs and apt-get installation running on Beaglebone taking more time. So
want to emulate ARM platform on Ubuntu  16.04 using QEMU.
Can I use rootfs which is built using omap-image-builder
https://github.com/RobertCNelson/omap-image-builderon QEMU?
When I tried to load rootfs.img which is being created using
omap-image-builder on ubuntu with QEMU
(for your reference the command is "qemu-system-arm -M versatilepb -cpu
cortex-a8 -m 256 -drive file=rootfs.img,media=disk -kernel vmlinuz -append
'root=/dev/mmcblk0p1 rootwait console=ttyS0 rw' ")
But not able to get console/ display/ GUI.
Do you have any idea how to load rootfs using QEMU?
Please share your valuable views.
Appreciate your Feedback/ ideas/ Views.
Thanks,
Mrudula - Merry Christmas!!
https://github.com/RobertCNelson/omap-image-builder
On Wed, Dec 21, 2016 at 8:24 PM, Robert Nelson<EMAIL_ADDRESS>wrote:

@mrudulachougule https://github.com/mrudulachougule buildroot supports
gcc..
this repo:
https://github.com/RobertCNelson/omap-image-builder
Generates ubuntu rootfs's
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobertCNelson/omap-image-builder/issues/43#issuecomment-268541838,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOUEXMcQvA6ARQlkY_wZklBjTxBp-LYbks5rKT2bgaJpZM4DD8JO
.

Hi Robert,
I am working on Qt5 application development. Before that I want to
configure QT5 package for beagle bone board.
I am using *qt-everywhere-opensource-src-5.7.0 *source code and want to
configure / compile the same.
As I am installing packages directly in file system running on SD Card, it
is taking more time.
Can I create virtual environment on Host system and do the same
configuration, just to make this process faster?
Even I am not sure on the packages required for QT5 Configuration. Could
you please share minimal list of packages required to configure
qt-everywhere-opensource-src-5.7.0.
Please share your views.
Thanks,
Mrudula
On Mon, Dec 26, 2016 at 7:36 PM, Mrudula Chougule<EMAIL_ADDRESS>
wrote:

Hi Robert,
Thank you for sharing details. You have done great Job!  It's good
document to start with.
I am able to build rootfs using "debootstrap". I want to customize this
rootfs and apt-get installation running on Beaglebone taking more time. So
want to emulate ARM platform on Ubuntu  16.04 using QEMU.
Can I use rootfs which is built using omap-image-builder
https://github.com/RobertCNelson/omap-image-builderon QEMU?
When I tried to load rootfs.img which is being created using
omap-image-builder on ubuntu with QEMU
(for your reference the command is "qemu-system-arm -M versatilepb -cpu
cortex-a8 -m 256 -drive file=rootfs.img,media=disk -kernel vmlinuz -append
'root=/dev/mmcblk0p1 rootwait console=ttyS0 rw' ")
But not able to get console/ display/ GUI.
Do you have any idea how to load rootfs using QEMU?
Please share your valuable views.
Appreciate your Feedback/ ideas/ Views.
Thanks,
Mrudula - Merry Christmas!!
https://github.com/RobertCNelson/omap-image-builder
On Wed, Dec 21, 2016 at 8:24 PM, Robert Nelson<EMAIL_ADDRESS>wrote:

@mrudulachougule https://github.com/mrudulachougule buildroot supports
gcc..
this repo:
https://github.com/RobertCNelson/omap-image-builder
Generates ubuntu rootfs's
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobertCNelson/omap-image-builder/issues/43#issuecomment-268541838,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOUEXMcQvA6ARQlkY_wZklBjTxBp-LYbks5rKT2bgaJpZM4DD8JO
.

@mrudulachougule this is off topic for "omap-image-builder"..
qt-everywhere-opensource-src is not a package in debian, qtbase-opensource-src is available and built:
https://packages.debian.org/source/jessie/qtbase-opensource-src
Regards,

Hi Robert,
Thank you for sharing details. You have done great Job!  It's good document
to start with.
I am able to build rootfs using "debootstrap". I want to customize this
rootfs and apt-get installation running on Beaglebone taking more time. So
want to emulate ARM platform on Ubuntu  16.04 using QEMU.
Can I use rootfs which is built using omap-image-builder
https://github.com/RobertCNelson/omap-image-builderon QEMU?
When I tried to load rootfs.img which is being created using
omap-image-builder on ubuntu with QEMU
(for your reference the command is "qemu-system-arm -M versatilepb -cpu
cortex-a8 -m 256 -drive file=rootfs.img,media=disk -kernel vmlinuz -append
'root=/dev/mmcblk0p1 rootwait console=ttyS0 rw' ")
But not able to get console/ display/ GUI.
Do you have any idea how to load rootfs using QEMU?
Please share your valuable views.
Appreciate your Feedback/ ideas/ Views.
Thanks,
Mrudula

@mrudulachougule my kernel does not include support for versatile.
Regards,

All right!!
I am having some trouble in customizing your root file system.
I am following steps mentioned in this link
https://github.com/RobertCNelson/omap-image-builder,.
I have created file system for ubuntu xenial. Once
armhf-rootfs-ubuntu-xenial.tar is generated, I'm extracting it to ./rootfs
directory and doing chroot to rootfs (chroot ./rootfs/ /bin/bash)  for
installing LCD and touch screen driver.
After installation of custom packages, I have flashed ./rootfs directory to
Sd Card. I am able to boot up this on beagle bone green but permissions for
"/home/ubuntu " directory are getting changed to root.
Could you please share a way/ methos to customize your rootfs on native /
development system.
Thanks,
Mrudula
On Fri, Jan 6, 2017 at 4:10 AM, Robert Nelson<EMAIL_ADDRESS>wrote:

@mrudulachougule https://github.com/mrudulachougule my kernel does not
include support for versatile.
Regards,
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobertCNelson/omap-image-builder/issues/43#issuecomment-270778995,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOUEXLINh8-JIJazU6FD3OTX9AZMXNmwks5rPXFtgaJpZM4DD8JO
.


simple linear regression

Implemented fast version of the simple linear regression, as explained in https://en.wikipedia.org/wiki/Simple_linear_regression#Numerical_example.
Other codes are commented out. they will be rewritten later and we need to release the SLR.
R=@lpatiny

Was wondering if aa is faster than Math.pow(a,2) but no way to test ...
http://jsperf.com/lp-power
And also if a/b is as fast as 1/ba and this appears to be the case

I can run your power test. a*a is faster

I like the result of Safari. Math.pow is 50 times slower ...


IOException at the end

I see the following exception after a test finishes execution successfully. The exception has no impact on gradle build success. What is the exception about? I launch a native process listening on port 8080 in the ExecFork task.
Exception in thread "Thread-1124" java.io.IOException: Stream closed
        at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:269)
        at com.github.psxpaul.stream.InputStreamPipe$thread$1.run(InputStreamPipe.kt:48)
        at java.lang.Thread.run(Thread.java:745)

BUILD SUCCESSFUL in 4s
9 actionable tasks: 4 executed, 5 up-to-date

I think I know what this is. The remote process started by ExecFork crashes in my case. I think ExecFork is loosing connection and that's what we see here.

I've also been getting this error but came to a different conclusion. For me, it seems to be caused by logging things during shutdown such  as in the example at https://nodejs.org/api/process.html#process_signal_events. When I disabled the logging, the error went away.


Tap channels liquidity fixes

This PR adds some small fixes for liquidity related bugs that were reported on tap channels.

"Parent" PR (itest in litd) for more context & linked issues:
https://github.com/lightninglabs/lightning-terminal/pull/842

go.mod updated to point to the latest commit of lnd/0-19-staging, which includes the fixes this PR depends on


Allow passing environment variables to commands and aliases

Really love your project! One thing that would be nice to be able to pass environment variables to the different commands aliases, like PDM scripts.
For example, PDM allows you to set PDM_IGNORE_ACTIVE_VENV. This feature is only available via an environment variable. It would be useful to be able to set variables like this:
[tool.pyprojectx]
pdm = "pdm==2.10.0"
pdm.env = { PDM_IGNORE_ACTIVE_VENV= "true" }

or
[tool.pyprojectx.aliases]
lock = "pdm lock --refresh"
lock.env = { PDM_LOCKFILE = "file.lock" }

solved this by allowing default env variables (always added) and per-alias env variables:
[tool.pyprojectx]
env = { ENV_VAR1="ENV_VAR1"}
[tool.pyprojectx.aliases]
alias = { cmd = 'echo "$ENV_VAR1 $ENV_VAR2"', env = { ENV_VAR2="ENV_VAR2"}}


Add user-friendly tools for downloading stocks prices data

By default Lean only provides limited stocks prices data. I've stumbled upon this and according to the discussion forum downloading this data is not straightforward.
It would be beneficial to provide tools for bulk download of stocks prices data.  It could, for example,  support download all US stocks price data in bulk or download only S&P 500 stocks prices.
In my opinion the README should also be updated to describe how to download the price data.

Where would the equities data come from? QuantConnect only provides Cfd and Forex data for download. QuantConnect does not offer equities data that you can download.  If you are running a backtest on quantconnect.com, the equities data is provided to your algorithm.
One option is to develop the algos locally and then submit them for backtesting via the QuantConnect Api. Your algos would have access to the equities data QuantConnect offers that way.
QuantConnect also offers a live websocket that provides live forex data and 15min delayed equities data that you can use to simulate live trading locally.
There used to be an interface called the ApiDataFileProvider that would automatically download forex and cfd data that wasn't already available on the local file system and that you had purchased through QuantConnect. This interface has been removed because of recent shuffles to the lowest level of Lean, specifically, the IDataProvider and IDataCacheProvider.  It's definitely on my list to re-implement the ApiDataFileProvider functionality with the new QuantConnect data stack. You would still only have access to forex and cfd data, but you wouldn't have to predownload the data ahead of time.  Instead, Lean would download the data at runtime from QuantConnect.  This would mean implementing a new IDataProvider that would reach out to QuantConnect and download the necessary data.

I'm not sure this requires a very high-tech solution. In terms of downloading say, the entire S&P500, it wouldn't be a big stretch to pull the current tickers from a reliable source, execute the yahoo downloader in a loop and then fire off the coarse universe executable. Did I forget something?
It would also be useful to have a one button update that brings an existing data set up to date, and maybe even creates an update scheduled task.
I've thought seriously about throwing this together, but stopped short because I'm thinking "surely someone has done this before?".

Hi @andrewhart098, @jameschch
Thank you for your answers. I am very new to QuantConnect, so maybe I am asking very basic questions.
@andrewhart098

Where would the equities data come from?

There are few downloaders implemented already and I think they should be capable to download stocks data. But there are few issues with them. Build process does not generate "exe" files for them, they cannot download stocks in bulk, you need to provide list of stocks to use them in the first place, etc.

One option is to develop the algos locally and then submit them for backtesting via the QuantConnect Api. Your algos would have access to the equities data QuantConnect offers that way.

I think this significantly limits usability of the local backtesting. Would it be better if users could do backtesting locally at least on the coarse grained data? I am not sure what is your policy regarding the daily prices data, but would it be possible to cache stocks data as they are used by local algorithms?
In an algorithm that I was working on I was trying to access Universe of stocks:
 AddUniverse(Universe.DollarVolume.Percentile(98));

If I understand how it works, this should get both fundamentals for days in question and price data for all the stocks in this universe. Could QuantConnect download it as it is used (if this data is free)?
@jameschch

Did I forget something?

What about fundamentals data? If I understand correctly one need to get all stocks data to properly calculate it and I am not sure if there is a downloader for it.

but stopped short because I'm thinking "surely someone has done this before?"

That's what I thought! If everybody who need to do backtesting locally need to download datasets then there should be dozens of implementations out there. But right now the entry barrier for local backtesting is quite high.

The existing google downloader will take a list of symbols and can download a range of daily data.
Downloading today's S&P500 will be have selection bias as there are many symbols of the S&P500 which have disappeared over time. Coarse universe was invented to avoid selection bias by selecting based on a criteria.
Selection bias is the main reason why even daily data is sold by vendors -- a complete set including historical / delisted / mapped / split adjusted prices is hard to achieve without years of curation. Most vendors charge $1,000+ for a full daily dataset.
A quick and dirty universe could be done by downloading today's symbols; but it should be done with the understanding that it has selection bias and that the backtest will probably perform better than live trading.

Jared is absolutely right about survivorship bias with a limited set of equities. I can't imagine the set of delisted stocks from a major index is huge, but there would be some research involved if you wished to account for this. Besides, I've come across bad reports about the free yahoo data and think if you're working for anything above academic interest, the investment in quality data is likely to pay off.
You might also consider that the availability of data is one of the reasons many retail traders restrict themselves to forex markets. In many cases, the exchanges will supply their own data to you direct.

Hi @jaredbroad, @jameschch
Thank you for your answers.

The existing google downloader will take a list of symbols and can download a range of daily data.

You are right. I managed to use it, but it seems to be more work than it should be (unless I am doing something wrong). To use it I had to go QuantConnect.ToolBox project settings in Visual Studio, set startup object to GoogleDownloader. rebuilt the project. And then executed it in a shell for every stock name in a list that built from another source.
I am not saying it is impossible, it is just a bit cumbersome :)

Downloading today's S&P500 will be have selection bias

Good point. But my idea was to piggy-back on this selection bias :) I read about an algorithm in this book: "Stocks on the Move: Beating the Market with Hedge Fund Momentum Strategies". The strategy is based on trading only S&P 500 stocks. Now I wonder if this a good idea.

Selection bias is the main reason why even daily data is sold by vendors -- a complete set including historical / delisted / mapped / split adjusted prices is hard to achieve without years of curation. Most vendors charge $1,000+ for a full daily dataset.

Do I understand correctly that when I backtrack data on QuantConnect platform the algorithm is tested against an accurate, curated stocks data?
@jameschch

Besides, I've come across bad reports about the free yahoo data and think if you're working for anything above academic interest, the investment in quality data is likely to pay off

Would it make sense to backtest locally on a free data and then verify that an algorithm still demonstrates desirable performance?

You might also consider that the availability of data is one of the reasons many retail traders restrict themselves to forex markets

Do I understand you correctly that freely Forex markets data is more accurate?

Do I understand correctly that when I backtrack data on QuantConnect platform the algorithm is tested against an accurate, curated stocks data?
Yes

Would it make sense to backtest locally on a free data and then verify that an algorithm still demonstrates desirable performance?
Sure! You can use whatever workflow works best for you.

Do I understand you correctly that free Forex markets data is more accurate?
No. Accuracy isn't related to availability of data.

Closing ticket but if there's more LEAN related discussion feel free to reopen. For general strategy discussion post your questions to the forums - quantconnect.com/forum