text:
Https websockets

Hi,
we are having trouble with adonis websockets+https configuration
we did websockets configuration according to this tutorial: http://adonisjs.com/docs/3.2/websocket
and https configuration via this article: https://github.com/adonisjs/adonis-framework/issues/313
as a result at client side js we have following error in browser console that this link: https://localhost:3004/socket.io/?EIO=3&transport=polling&t=LhCkSzv not found
if we open it: https://localhost:3004/socket.io/?EIO=3&transport=polling&t=LhCkSzv we see exception

HttpException
Route not found /socket.io/

but under http all works perfectly ...
http://localhost:3004/socket.io/?EIO=3&transport=polling&t=LhCkSzv is reachable
is https websockets supported in adonis ?
or what we are missing ?
Thanks,
Armen

How are you running the https server?

We have modified in bootstrap/http.js
this
const Server = use('Adonis/Src/Server')
Server.listen(Env.get('HOST'), Env.get('PORT'))
if (typeof (callback) === 'function') {
callback()
}
to
const Server = use('Adonis/Src/Server');
const https = require('https');
const fs = require('fs');
var certOptions = {
	key: fs.readFileSync(Helpers.appPath()+'/../../crt/'+Env.get('HTTPS_CREDENTIALS_KEY'), 'utf8'),
    cert: fs.readFileSync(Helpers.appPath()+'/../../crt/'+Env.get('HTTPS_CREDENTIALS_CERT'), 'utf8'),
}
https
      .createServer(certOptions, Server.handle.bind(Server))
      .listen(Env.get('PORT'), Env.get('HOST'));

if (typeof (callback) === 'function') {
      callback()

}

Till that time the Websocket server is already using the http option inside of https. What you need to do is move this line https://github.com/adonisjs/adonis-app/blob/develop/bootstrap/http.js#L81 after https.createServer statement.

I did as you sugested
  const Server = use('Adonis/Src/Server');
  const https = require('https');
  const fs = require('fs');

  var certOptions = {
	key: fs.readFileSync(Helpers.appPath()+'/../../crt/'+Env.get('HTTPS_CREDENTIALS_KEY'), 'utf8'),
	cert: fs.readFileSync(Helpers.appPath()+'/../../crt/'+Env.get('HTTPS_CREDENTIALS_CERT'), 'utf8'),
  }
  https
      .createServer(certOptions, Server.handle.bind(Server))
      .listen(Env.get('PORT'), Env.get('HOST'));

 // moved here
  use(Helpers.makeNameSpace('Ws', 'socket'));

  if (typeof (callback) === 'function') {
      callback()
  }

but this link: https://localhost:3004/socket.io/?EIO=3&transport=polling&t=LhCkSzv still gives

Route not found /socket.io/

That seems to be weird, lemme try to reproduce the issue

Hey, really sorry for getting late on same. So there have been couple of things we need to take care off and my request suggestion was more of guess.
I have tried following and worked fine for me.
bootstrap/http.js
const httpsServer = https.createServer(options, Server.handle.bind(Server))

// very important to update the internal http instance
Server.httpInstance = httpsServer

// make sure to move these 2 line to the bottom instead of top
use(Helpers.makeNameSpace('Ws', 'kernel'))
use(Helpers.makeNameSpace('Ws', 'socket'))

// Start the server
server.listen(Env.get('PORT'), Env.get('HOST'))

Yes i was missing Server.httpInstance = httpsServer part thanks

authors: armenmargaryan thetutlage

repo: adonisjs/adonis-framework


text:
Exit non zero code when there is test failure

exit 2 when test failed
exit 3 when there's no test

Signed-off-by: renfeiw renfeiw@ca.ibm.com

related PR:https://github.com/adoptium/aqa-tests/pull/4000

passed: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/5714/
no test: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/5715/
failed: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/5716/

source: gharchive/pull-request

repo: adoptium/TKG

license_type: permissive

license_source: github-api


text:
Can I be added as a member to this repo please?

Browser:

@chrisguindon should people's access be getting mirrored over to GitHub yet?

@gdams I am not sure I understand your question.

source: gharchive/issue

authors: chrisguindon gdams karianna


text:
AQAVit Test Eclipse Temurin 17 binaries

This epic covers the AQAVit testing of the core binaries only.  Binary Production, Linux Installers, Containers, Compliance Testing, Website, API, and communication activities will be covered in separate Epics in their relevant repository.

All issues contained in this EPIC are now closed.

authors: karianna smlambert

repo: adoptium/aqa-tests


text:
Teslamate says I did not provide an encryption key (I did) and will not accept my tokens (generated using Tesla Auth)

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
I added an encryption key to docker-compose.yml, pulled the latest version, and started Teslamate.
There was an initial issue as the encryption key had a "$" which I didn't know would cause issues.  I fixed that by replacing "$" with "*" and it seemed to start up fine in Docker.
Upon navigating to Teslamate, I get the "No encryption key provided" message.  Is this perhaps because I initially had an issue, and I'm not using the auto-generated key, but my own?  Can I change the key or do I have to use the one that was generated?
And why won't it accept my Tesla tokens?
Expected Behavior
See above.
Steps To Reproduce
See above.
Relevant log output
All I see in the logs that's relevant is the following:

teslamate_1  | 2022-07-16 11:00:22.915 [warning] Could not decrypt API tokens!

Screenshots
No response
Additional data
No response
Type of installation
Docker
Version
v1.27

What was your fix?

I'm not sure.  I nuked my Teslamate containers and volumes and did a fresh install of 1.27.  Then I restored a backup of my database.  This caused me to lose 5 days of data (because I only run backups once per week), but I'm just glad to be back up and running.  I have everything tied into Home Assistant for automations and don't think I could live without that for very long!

I'm still having issues with the ENCRYPTION_KEY= line in the docker file. Is everyone encolsing it in "" or '' and using any fancy characters they like?

I did not, just a space after the = if I recall correctly.

So your entry in the yml file looks like:
ENCRYPTION_KEY= some(@*$)(*#@$DSKSALKDJFKLstringhere
?

I just got home and checked the file.  Turns out I lied, it's like this:
environment:

ENCRYPTION_KEY=stringoftextsymbolsandnumbers

I guess the space I was thinking of was around the "-"
SORRY!

Yep, thanks. I wonder if my KEY was just too long (64 characters). I created a new one (no space or quotes before/after it):
teslamate_1  | 2022-07-17 22:45:35.169 [warning] Could not decrypt API tokens!
...
teslamate_1  | 2022-07-17 22:45:35.242 car_id=1 [error] Error / not_signed_in
teslamate_1  | 2022-07-17 22:45:35.251 car_id=5 [error] Error / not_signed_in
teslamate_1  | 2022-07-17 22:45:35.265 [info] MQTT connection has been established
teslamate_1  | 2022-07-17 22:45:38.111 [info] tzdata release in place is from a file last modified Fri, 22 Oct 2021 02:20:47 GMT. Release file on server was last modified Wed, 16 Mar 2022 13:36:02 GMT.
teslamate_1  | 2022-07-17 22:45:43.444 [info] Tzdata has updated the release from 2021e to 2022a
teslamate_1  | 2022-07-17 22:45:54.927 [info] GET /settings
teslamate_1  | 2022-07-17 22:45:54.960 [info] Sent 200 in 32ms
teslamate_1  | 2022-07-17 22:46:34.338 [notice]     :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_1_api_error, :fuse_blown}}
teslamate_1  | 2022-07-17 22:46:34.338 [notice]     :alarm_handler: {:set, {TeslaMate.Vehicles.Vehicle_5_api_error, :fuse_blown}}
teslamate_1  | 2022-07-17 22:50:01.790 [info] GET /
teslamate_1  | 2022-07-17 22:50:01.795 [info] Sent 302 in 5ms
teslamate_1  | 2022-07-17 22:50:01.827 [info] GET /sign_in
teslamate_1  | 2022-07-17 22:50:01.838 [info] Sent 200 in 10ms
teslamate_1  | 2022-07-17 22:50:10.301 [info] POST https://auth.tesla.com/oauth2/v3/token -> 200 (367.950 ms)
teslamate_1  | 2022-07-17 22:50:10.321 [info] Scheduling token refresh in 6 h

I'm guessing this means it took it and it shouldn't prompt for a key again?

That's similar to what happened to me even after my initial mistake of having an "$". It also wouldn't accept my tokens. I had to wipe it and do a clean install.

I'm having the same problem. Just updated my docker instance and was told to add an encryption key.
I first added it to my env and inserted the variable in my docker-compose file. That did not work. I then added it directly in the docker-compose file, which also did not work. I then created my own simple password and put it in the docker-compose file and I'm still getting the "
No encryption key provided"...
So my install and data is hosed now?
I should be able to get my database from my daily backup. Still not sure what the best way forward is.

Pretty simple (albeit annoying) to nuke your install and restore your last backup. I don't know why but it seems like if you do anything wrong with the encryption key the whole thing goes wonky.

I just wanted to add, that I shouldn't debug something late at night...
I added the encryption key to my teslamate_db service instead of my teslamate..
Luckily I saved the first key that teslamate generated for me the first time. After inserting it at the correct position it seems to be up and working without needing to restore from backup.

Nice! I tried to find the key generated by Teslamate but I had no idea where it was. How did you find it?

Nice! I tried to find the key generated by Teslamate but I had no idea where it was. How did you find it?

It is in the container logs.

That's what I looked at but couldn't find it. I'm not very skilled at reading logs though!

That's what I looked at but couldn't find it. I'm not very skilled at reading logs though!

It's at the very top of the logs. In its own block. If it helps, send the logs to a text file and open in your preferred text reader application.
docker-compose logs teslamate > logs.txt

I added the auto-generated encryption key from the logs and then used this site to grab my tokens (I guess maybe I had to do this originally when I installed TeslaMate, I forgot). After that the Home Screen loads fine and my data is all there. I tested a reboot and I'm still logged in. So I'm good to go?

authors: Stokel cwanja krelltunez natrlhy petebocken

repo: adriankumpf/teslamate

license: MIT


text:
可以支持多张号轮询吗

免费的4o有使用限额，希望多配置几个帐号轮询

目前比较难，还是多起几个服务吧

authors: BaeKey adryfish

repo: adryfish/llm-web-api


text:
.DS_Store should be ignored in dropdowns

These are automatically created if you're fussing around ~/.password-store with Finder.

Fixed in 7265f2db1c1063a9f0863089fd7f98e266d2a25e
Thank you for your contribution!


text:
Cannot navigate to source location

Gateway Version: 2023.3.4
CLion Version: 2023.3.4
Plugin Version: 1.2.0
When clicking on a finding in the SARIF viewer, I would expect it to navigate to the location in the source.
Instead, nothing happens.
Maybe this is connected to using CLion through Jetbrains Gateway, but this might also be unrelated.

Hello @LittleHuba,
I just took the time to test the SARIF viewer plugin with JetBrain Gateway. I am able to navigate to the location in the source.
How did you get the SARIF file? Did you use the GitHub integration or just import a local SARIF file ?

Thanks for the reply!
I used a local SARIF file that I imported.

ok, the SARIF file may not have the same path or at least doesn't start the relative path at the root of your CLion workspace.
Maybe I need to add a quick message to explain that when the location can't be resolved.

Hi,
I looked at the SARIF file again and the paths start at the root of the CLion workspace and the file is present under the exact path.
Can I provide some kind of debug logs? I did not find anything in the logs of the IDE.

Hello,
I have released a new version that fix an issue when navigating into file in the steps. I also added a message when we can't resolve the location.
Let me know if it helped

authors: LittleHuba adrienpessu

repo: advanced-security/SARIF-viewer


text:
keepassXC logo

URL for the brand / site / app
https://keepassxc.org/
Logo resources for the icon
https://app.codecov.io/gh/keepassxreboot/keepassxc
Anything else?
No response

No, that's not what I mean with title. There's intructions in the form that reads:

⚠ Remember to add name of the brand / site / app at the end of "Icon request:" part on top, do not change the formatting of the title!

Please use proper capitalization for the name (check the capitalization from their app / website).

Stop rushing at making the issues and read.
I'm already regretting of opening issues section...

No, that's not what I mean with title. There's intructions in the form that reads:

⚠ Remember to add name of the brand / site / app at the end of "Icon request:" part on top, do not change the formatting of the title!

Please use proper capitalization for the name (check the capitalization from their app / website).

Stop rushing at making the issues and read.
I'm already regretting of opening issues section...

okey.

Rejected, KeepassXC doesn't support 2FA / TOTP for database protection.
Source: https://keepassxc.org/docs/#faq-yubikey-otp

Q: But the feature list says KeePassXC supports TOTP. I am confused.
A: We do support generation of timed one-time passwords (TOTP), but do not (and cannot) support it for securing your KeePassXC database.

repo: aegis-icons/aegis-icons


text:
Question

If i have  a workflow where a task or tasks fail,
how do i roll back to valid state?
Do you have a retry framework incorporated in such a case?

Yes, If a task fails:
- The retryCount option allows to retry a task a certain number of times in case of
  failure. Defaults to 0 (no retry).
- The retryTimeout option indicates the waiting time between two tries in milliseconds.
  Defaults to 1500ms.

If the workflow fails: https://github.com/aelassas/wexflow/wiki/Samples#workflow-events
but you need to edit the workflow from xml view for retry options and workflow events.

repo: aelassas/wexflow


text:
Portfolio: mobile version

I learnt the following:

how to parse a Figma design to create a UI.
Use Flexbox to place elements in the page.
Use CSS Grid to place elements in the page.
Build a personal portfolio site.

I have fixed the Linters error.
Apologies for the mistake as I am a beginner.
Looking forward to getting a favorable review


text:
allow the use of hard-tabs as whitespace

Using a tab character inside a ZZ-program's source emits a parse error.
This commit modifies the pest-grammar to allow tab characters as
whitespace.

thanks!

authors: aep karroffel

repo: aep/zz


text:
[RFC] Moving server configuration in a separate file

Hi,
First, thank you for this Plum library and its associated bundle. Both of them rock and are very well coded.
As deployment information are sensitive, I suggest to move them to another configuration file instead of config_dev.yml. The file that contains server information should not be deployed for security reasons. I think we should expose such an app/config/deployment.yml.dist or app/config/deployment.ini.dist file that contains the servers information and add this file to the excluded files list.
What do you think?
Cheers.

Thanks a lot!
You're absolutely right. Deployment informations must not be deployed. I have two solutions in mind :

Instead of having informations in the config_dev.yml change for
  imports:
      - { resource: deployment.yml }

But it brings a problem: when the application is deployed, the dev env does not work anymore because the deployment.yml file is not present.

Or this solution which is a little be more tricky :
  // AppKernel.php
  public function registerContainerConfiguration(LoaderInterface $loader)
  {
      $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');

      if (in_array($this->getEnvironment(), array('dev', 'test'))) {
          if (file_exists($deployment = __DIR__.'/config/deployment.yml.dist')) {
              $loader->load($deployment);
          } elseif (file_exists($deployment = __DIR__.'/config/deployment.yml')) {
              $loader->load($deployment);
          }
      }
  }

Something like this. And with an empty configuration for the dist file.

Hum, I think you should just provide a sample config file in Resources/config/deployment.yml.dist.
In the config_dev.yml you can just add the following lines:
madalynn_plum:
    deployers:
        - Plum\Deployer\RsyncDeployer
    servers: %kernel.root_dir%/config/deployment.yml

In your Extension class, you can just get the path to the file and check if it exist or not, so that you can load it. The big gain is that you can load the bundle for any environment and move the server configuration anywhere.

authors: aerialls hhamon

repo: aerialls/MadalynnPlumBundle

license: mit

license_source: bigquery


text:
Integration with Apache Camel K, Debezium and Apache Kafka

TODO

[ ]  create sample Camel K integration to simulate "Entries" to complete test this. In the meantime I am using Mongo shell not so ideal. We can use GraphQL mutation till this is done.
[x] Update OpenShift template to include Kafka , DBZ connector etc
[ ] Polish the UI, maybe @kingsleyzissou or @wtrocki can step in here?

Attached are screenshots:

/cc @wtrocki

The first image is a toast that appears on "all actions" page whenever there is a checkin
Once the toast is clicked, we land on the second page
still on the details page, which gets updated as the volunteer picks up actions. We can see this by the number of actions count which will increase as soon as the VolunteerEntry document is updated. Once the volunteer checks out, a toast appears indicating so. Clicking this will redirect to "all actions" page.

@machi1990 happy to jump in and have a look at the UI

@machi1990 happy to jump in and have a look at the UI

Thanks @kingsleyzissou, really cool. I'll ping you once this branch is stable enough.

@machi1990 I will swap this to Ionic one when you happy.

@machi1990 I will swap this to Ionic one when you happy.

@wtrocki thanks, I still have https://github.com/aerogear/OpenVolunteerPlatform/blob/be0b7d97139b088f4b0b746ecf23b1eaccf2f19e/platform/server/README.md#todo to be wrapped.

@machi1990 Amazing work. I will be looking to push that on the openshift cluster we got.
Keycloak and services are already there. We can set up things manually first and record some quick demo video early in the morning (I can do that no problem).
Let's collaborate on this!

@machi1990 Amazing work. I will be looking to push that on the openshift cluster we got.
Keycloak and services are already there. We can set up things manually first and record some quick demo video early in the morning (I can do that no problem).
Let's collaborate on this!

Only minor details (building new image, website and admin) are left. We can chat tomorrow / early monday about this.

@wtrocki @kingsleyzissou all good here and this branch is stable enough. I've pushed all the changes, plus image.

If we model this feature as addon we can easily merge that to master (while not requiring openshift to get things done)

If we model this feature as addon we can easily merge that to master (while not requiring openshift to get things done)

Yes, we might need feature flags / feature toggling for this.

The first image is a toast that appears on "all actions" page whenever there is a checkin

Struggled to see this toast appear for me. Looking at the code, a check-in is when on CREATE_VOLUNTEERENTRY? This is probably just me being unfamilar with this.

@craicoverflow This is cluster based effort and it involves some custom setup (Knative, Camel K). Things like RFID reader etc.
Going to share demo soon

The first image is a toast that appears on "all actions" page whenever there is a checkin

Struggled to see this toast appear for me. Looking at the code, a check-in is when on CREATE_VOLUNTEERENTRY? This is probably just me being unfamilar with this.

Is the Debezium connector setup as suggested here https://github.com/aerogear/OpenVolunteerPlatform/blob/a4c9492238888c73637429c879243ef9b2a5bc20/platform/server/README.md#debezium-connector-initialisation?  We can have quick chat tomorrow to have this properly setup on your "local" machine too and how you can simulate the checkin events via shell commands or api call.

No, I missed that part. I will give it a go today!

Since this project is really overgrown what OVP is we have decided to move that to separate repository.
OVP will still utilize Kafka streaming and Debezium but in form of extension that we going to build upon rather than thing that we have directly in the repository. There is also alarming number of supporting files that will not be needed once we demo it etc.

authors: craicoverflow kingsleyzissou machi1990 wtrocki

repo: aerogear/OpenVolunteerPlatform


text:
fix: path to main module

Motivation
Getting errors in bundler after running react-native run-android:
https://gist.github.com/psturc/4aab28264d8ef5e7c7b940d4b015e0a6
Description
As described in the error, the path specified in packages/core/package.json was incorrect.

It happens when two folders are included in compilation path.
Fixed in https://github.com/aerogear/aerogear-js-sdk/pull/24

authors: psturc wtrocki

repo: aerogear/aerogear-js-sdk


text:
[Feat] Service architecture

Motivation
Reorganize graphback structure into individual subfolders that can be later stripped into individual packages. Introduce abstraction of service layer.
This is SUPER BREAKING PR that is going to be long-running to cover most of the critical changes we need to in graphback. Creating early for visibility and collaboration.
I would try to maintain backward compatibility where possible
New folder structure

Inputs (abstraction for input types
Generators (generators that can be future - GraphQL-Code-Generator packages)
Components (like logging, subscription etc.)
Additional capabilities added to generation
Layers (configurable and extendable data and service layers for generated applications)
Migrations (database migrations - for db layers that need it)

Each of these folders will be later split into individual packages or pushed to upstream.
New architecture

TODO explain service
TODO explain components
Progress

[x] Implement database layer
[x] Implement service layer
[x] Add abstraction for ts/js generation in schema
[x] Implement resolvers generator for service layer (file and inmem)
[x] Adjust template for the changes
[x] Adjust the cli for the changes
[x] SQL Lite support
[x] Remove legacy not needed generators
[x] Integration tests for db layer
[x] Integration tests for service layer
[x] Reorganize package structure

Breaking changes notes

Changed the way templates connect to the database.
The template itself needs to define a connection to the database
Generated resolvers will no longer contain SQL queries
Schema templates do not compile automatically - developers need to use gql themselves

Verification
Runtime layer
Temporary changes were added to the sample app.
Please review runtime.ts file.
The sample application will work now without generation when config.runtume === true
Steps to verify

Execute graphback migrate (as migration at runtime is not supported yet)
Start server :)
Enjoy runtime API :)

Useful queries:
# Write your query or mutation here
query find {
  findAllUsers{
    name
  }
}

mutation create {

  createUser(input:{name: "test"}){
    id
  }
}

@craicoverflow 942ce7d contains most of the API changes. I will rebase and append changes to that to make it complete.

There seems to be an issue with findBy.
Executing a basic query using the generic filter query fails. See example:
query fetchTasks {
  findTasks(fields: {id:"1"}) {
    id
    text
  }
}

Console output:
querying object task with filter undefined

Prints the following stacktrace:
{
  "errors": [
    {
      "message": "The operator \"undefined\" is not permitted",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "findTasks"
      ],
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "exception": {
          "stacktrace": [
            "TypeError: The operator \"undefined\" is not permitted",
            "    at Formatter.operator (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/formatter.js:203:13)",
            "    at QueryCompiler_PG.whereBasic (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/query/compiler.js:657:22)",
            "    at QueryCompiler_PG.where (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/query/compiler.js:379:34)",
            "    at components.map (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/query/compiler.js:116:69)",
            "    at Array.map (<anonymous>)",
            "    at QueryCompiler_PG.select (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/query/compiler.js:116:35)",
            "    at QueryCompiler_PG.toSQL (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/query/compiler.js:64:29)",
            "    at Builder.toSQL (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/query/builder.js:76:44)",
            "    at /home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/knex/lib/runner.js:30:36",
            "    at tryCatcher (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/util.js:16:23)",
            "    at /home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/using.js:185:26",
            "    at tryCatcher (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/util.js:16:23)",
            "    at Promise._settlePromiseFromHandler (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:547:31)",
            "    at Promise._settlePromise (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:604:18)",
            "    at Promise._settlePromise0 (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:649:10)",
            "    at Promise._settlePromises (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:729:18)",
            "    at Promise._fulfill (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:673:18)",
            "    at PromiseArray._resolve (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise_array.js:127:19)",
            "    at PromiseArray._promiseFulfilled (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise_array.js:145:14)",
            "    at Promise._settlePromise (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:609:26)",
            "    at Promise._settlePromise0 (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:649:10)",
            "    at Promise._settlePromises (/home/endaphelan/code/src/github.com/aerogear/graphback/templates/apollo-starter-ts/node_modules/bluebird/js/release/promise.js:729:18)"
          ]
        }
      }
    }
  ],
  "data": null
}

@craicoverflow fixed

I'm working on integration tests for service layer. Target is to merge this PR with still some things unfinished - like relationships and from now on create smaller PR's for codegeneration.
As PR is a huge preferred way to verify it is to review docs in the new sample application and try all methods that are currently implemented. I'm not going to provide review steps as it is best to test it using some empirical way an see if this breaks.
Huge thanks for @b1zzu and @craicoverflow for initial ideas.
@craicoverflow once this is merged we can create a suggested issue for hacktoberfest.

I will work on draft for extra tasks in the gist: https://gist.github.com/wtrocki/a0811bf32245f43a77927d281c02d0a3

@craicoverflow I think we can merge migrations work into this branch and make it pass

authors: craicoverflow wtrocki

repo: aerogear/graphback


text:
Remove bidirectional relationships that break schema

Motivation
Remove bidirectional relationships that are not supported at the moment and cause validation issues

We need to remove https://github.com/aerogear/graphback/blob/relations-client/packages/graphback-codegen-schema/src/targetSchemaContext.ts#L141-L166

This is still not mergeable - InputTypes should support relationships so we can actually update the tables.

datamodel.graphql should be updated to reflect relationship change.

type Note {
  id: ID!
  title: String!
  description: String!
}

type Comment {
  id: ID!
  title: String!
  description: String!
  note: Note!
}

How will we query notes and also return related comments?
query getNotes {
  findAllNotes {
    id
    comments {
      id
    }
  }
}

Looks good. With the migrations work the following schema will be represented as expected in the database.
type Note {
  id: ID!
  title: String!
  description: String!
  comments: [Comment]
}

type Comment {
  id: ID!
  title: String!
  description: String!
  note: Note!
}

Tables

note

id
title
description

comment

id
title
description
noteId

But as you said - database queries and mutations will need to be fixed.
The following query is valid according to the generated schema:
query getComments {
  findAllComments {
    id
    description
    note {
      id
      title
      description
    }
  }
}

This throws error select * from \"note\" where \"commentId\" in ($1) - column \"commentId\" does not exist as the underlying database query is wrong.

noteId as field name is assumption that will need to be build into core model or relationships.
Users should be able to change that as well to whatever they feel.
I think this entire comment should be moved out to https://github.com/aerogear/graphback/issues/539 and we should close this PR - to merge it we will need to provide validation for bidirectional stuff.

CC @craicoverflow This got outdated as changes were merged in your PR


text:
AEROGEAR-2407

Motivation
MCP needs public docs on how to manage mobile client apps in both UI and CLI.
Description
Adds documentation on how to create and manage mobile clients in mcp.

@maleck13 I moved it to its own file

@JameelB That is a good point about the UI But I do like the visual aspect of it too

repo: aerogear/mobile-core


text:
Fix logs new lines in UI

In UI new lines are broken. Seems to be a newline issues.

The reason of the issue is that Kubernetes API returns data with \n used as line endings. Currently xterm.js used in Selenoid UI expects \r\n to be used.

Won't fix in current UI. Will be fixed in completely new UI.

repo: aerokube/moon


text:
Please add chrome 59

Please add chrome 59

@zero-master I don't see Debian packages yet. Should be available during next days. Then will certainly do.

My previous statement was wrong. Will do today.

Done. Please use selenoid/chrome:59.0 and selenoid/vnc:chrome_59.0 images respectively. Added image information to docs in https://github.com/aerokube/selenoid/pull/125.

authors: vania-pooh zero-master

repo: aerokube/selenoid-images


text:
Create multiple containers with different ports

Hi,
Is there any way to create multiple containers from the same image, but using different ports in order to access remotely to the container and launch tests. As default the values ara  5900 and for Selenium 4444.
Thanks :)

@jacorgaz this is what Selenoid or Moon are actually doing. Both are launching several parallel containers and are compatible with Selenium protocol.

@vania-pooh I´ll have a look how it works for the windows image.
Thanks for your prompt replay :)

Closing because of inactivity. Feel free to reopen if still having issues.

authors: jacorgaz vania-pooh

repo: aerokube/windows-images


text:
OM149 - secret agent dashboard

this is the initial version of secret-agent dashboard

closing the PR as it is wrongly created on master

repo: aerospike/aerospike-monitoring


text:
Remove px4 submodule

Basic Info

Info
Please fill out this column

Issue(s) this addresses
(add issues here #1)

ROS2 version tested on
(Humble, Galactic, Other)

Aerial platform tested on
(Ignition, Crazyflie, Tello, PX4, Other)

Description of contribution in a few bullet points

Description of documentation updates required from your changes

Future work that may be required in bullet points

Codecov Report

Merging #108 (f18ecf8) into main (4f631eb) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main    #108      +/-   ##
========================================
- Coverage   4.68%   4.57%   -0.11%
========================================
  Files         96      93       -3
  Lines       4806    4790      -16
  Branches     474     489      +15
========================================
- Hits         225     219       -6
+ Misses      4412    4386      -26
- Partials     169     185      +16

Flag
Coverage Δ

unittests
4.57% <0.00%> (-0.11%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...lude/as2_crazyflie_platform/crazyflie_platform.hpp
0.00% <ø> (ø)

.../as2_crazyflie_platform/src/crazyflie_platform.cpp
0.00% <0.00%> (ø)

as2_core/src/platform_state_machine.cpp
40.29% <0.00%> (-12.83%)
:arrow_down:

..._controller_manager/tests/find_mode_match_test.cpp
45.65% <0.00%> (-6.53%)
:arrow_down:

...state_estimator_plugin_mocap/tests/plugin_test.cpp
42.22% <0.00%> (-1.26%)
:arrow_down:

as2_core/src/utils/tf_utils.cpp
19.38% <0.00%> (ø)

as2_core/src/aerial_platform.cpp
0.00% <0.00%> (ø)

as2_core/src/utils/yaml_utils.cpp
0.00% <0.00%> (ø)

as2_core/include/as2_core/aerial_platform.hpp
0.00% <0.00%> (ø)

as2_core/include/as2_core/utils/yaml_utils.hpp
0.00% <0.00%> (ø)

... and 34 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


text:
Anniversary Edition Compatability

Are there any plans to make this fixes compatible to the new SKSE Version for the Skyrim Anniversary Edition?

I just saw that there is an updated version on Nexus.


text:
Unsafe browsing

Allow people to switch on - and off moderation (so they can see all tips - even hate speech and adult content).

Related to #536

repo: aeternity/superhero-ui

license: ISC


text:
b is undefined

The issue ocurred while trying to switch between networks (using build from develop branch - https://github.com/aeternity/superhero-wallet/commit/f404e6767d302c700fc5acc4ebd1422993280151)

Current version of wallet doesn't have such problems. Feel free to reopen this issue, if it will pop up again.

authors: CedrikNikita mradkov

repo: aeternity/superhero-wallet


text:
Minor ui changes

Text overlapping in buttons
translations
success screen in intro page edit
help button change url

Can you also fix this to be displayed cleaner, maybe with less padding ?

Can you also fix this to be displayed cleaner, maybe with less padding ? @vmangelovv

I'll put this in another issue, to not block the merging of the other fixes.

authors: mradkov vmangelovv


text:
Network Connections Causes Chrome To Hang

Firefox has no issue but in chrome (latest version) it hangs.

The demo  works fine for me in Chrome 44.0.2403.157 m. Can you provide more details about what exactly in the UI is hanging? Could it be network latency or the system can't handle the polling that is occurring per second?

@kitedevelopment any update?

authors: afaqurk kitedevelopment

repo: afaqurk/linux-dash


text:
Multiple Rollup schedules

any way to achieve either scenario:

Run Scheduled Rollup A nightly at 2am then run Rollup B after A is complete
Run Scheduled Rollup A nightly and Rollup B weekly

Hmmm another good one @JimBTek your on fire today! :+1:
Currently not in both regards, with the second one you can schedule the apexclass multiple times but in each case it will attempt to process the same schedule items. Some way to schedule a parameterised job and/or a means to express dependency, i suspet lack of this other feature is causing some other odd issues in schedule mode for folks that have a dependent rollups.
Marking as enhancement.... :+1:

Some discussion here

"Yeah but still with that schedule it would require some action to be taken on the record. Where as in a scheduled calculate ALL would allow for it to re-evaluate records that have not had any changes but no longer meet said constraints."

@afawcett I believe this is resolved with the new scheduler as you can set a specific rollup to run at any specified hour and even have it run every hour (which I am doing in several places).
I am closing this

Yes, good catch thanks! 👍

authors: JimBTek afawcett


text:
Added Waffle Grid

Added Waffle grid, an easy to use flexbox grid system

Wow, great job :)

Thanks a  lot!

authors: afonsopacifer lucasgruwez

repo: afonsopacifer/awesome-flexbox


text:
radiusTop, radiusBottom no longer work for cylinder geometry

regressed with https://github.com/aframevr/aframe-core/commit/9a8ab575#diff-8b1e057bd151892d8ced8a81e26b5ebbL134
reported on Slack @ https://aframevr.slack.com/archives/learning/p1450754060000471

There are now two primitives:
cylinder that takes a radius and height  cone that takes a radiusTop, radiusBottom and height
https://github.com/aframevr/aframe-core/blob/master/src/components/geometry.js#L123
The templates have to reflect the new API

authors: cvan dmarcos

repo: aframevr/aframe-core


text:
Editing one transform accidentally rewrites other transforms

Create an <a-entity>
Set position to 2.00  2.00  2.00.
Set rotation to 0.01  0.00  0.00.
Notice position has changed to 2.00  2.00  0.00 and rotation to 0.0  0.00  0.00.

I noticed a ton of weirdness such as with this. And now when I did it again, the rotation Z value became 0.02. Weird!

Fixed in https://github.com/aframevr/aframe-editor/pull/95

authors: cvan fernandojsg

repo: aframevr/aframe-editor


text:
下载种子文件失败

用拖拽，或者新建拖拽，或者新建选择，都无法创建torrent下载任务（一点反应都没得）

老铁，能按照issue模板提么？
你这样提我怎么知道用的是什么系统，应用什么版本呢？

错误描述
用拖拽，或者新建拖拽，或者新建选择，都无法创建torrent下载任务（一点反应都没得），尝试过其他torrent文件（10个），7个无法创建，3个创建后无下载速度
如何重现
重现步骤，如：
1.直接将torrent文件拖入程序
2.新建->种子文件->拖入torrent文件
3.新建->种子文件->选择torrent文件
预期的行为
无法创建下载任务
运行环境
操作系统类型：MacOS
具体版本： Mojave 10.14.3
Motrix 版本： v1.0.10
引擎版本：1.33.1
安装包类型：dmg

哈哈哈哈

错误描述
用拖拽，或者新建拖拽，或者新建选择，都无法创建torrent下载任务（一点反应都没得），尝试过其他torrent文件（10个），7个无法创建，3个创建后无下载速度
如何重现
重现步骤，如：
1.直接将torrent文件拖入程序
2.新建->种子文件->拖入torrent文件
3.新建->种子文件->选择torrent文件
预期的行为
无法创建下载任务
运行环境
操作系统类型：MacOS
具体版本： Mojave 10.14.3
Motrix 版本： v1.0.10
引擎版本：1.33.1
安装包类型：dmg

是不是种子不行啊，或者你的网不行

有很多游民和游侠上的热门种，网也OK，用迅雷完全可以正常下载……就很绝望

你是下种子失败呢？还是BT任务下载没速度？
有按照文档试过了么？
https://www.yuque.com/moapp/help/issues#zq40sh

你是下种子失败呢？还是BT任务下载没速度？
有按照文档试过了么？
https://www.yuque.com/moapp/help/issues#zq40sh

一共用了10个种子，7个无法创建下载任务，3个创建完了没有下行流量，你文档里也是要先跑通一个种子，关键是我这没有能跑通的……

@iampmxu 没速度的问题你得自己再探索一下
你把种子打包发我邮箱，我检查下种子的解析逻辑

用拖拽，或者新建拖拽，或者新建选择，都无法创建torrent下载任务（一点反应都没得）

我mbp上实测用种子文件无法开始下载，任务始终处于开始下载状态，但根本无法连接。使用folx虽然速度慢但好歹能下载。

错误描述
（网速一点反应都没有)，之前用破解版迅雷速度还能有个几M，现在Motrix速度基本为0.按照文档提示下载热门种子，速度只有11K。
操作系统类型：Windows10
具体版本： win10 1809
Motrix 版本： v1.2.2
安装包类型：.exe

你是下种子失败呢？还是BT任务下载没速度？
有按照文档试过了么？
https://www.yuque.com/moapp/help/issues#zq40sh

@iampmxu 没速度的问题你得自己再探索一下
你把种子打包发我邮箱，我检查下种子的解析逻辑

@iampmxu 没速度的问题你得自己再探索一下
你把种子打包发我邮箱，我检查下种子的解析逻辑
错误描述
我出现的问题是：之前用破解版迅雷速度还能有个几M，现在Motrix速度基本为0.按照文档提示下载热门种子，平均不到5KB。

操作系统类型：Windows10
具体版本： win10 1809
Motrix 版本： v1.2.2
安装包类型：.exe

同样BT任务下载无速度  一直是0KB

是的一直显示0kb，但是文件夹里面竟然显示有2g，但是视频打不开。

一样的问题，试了多个应该是热门的种子都无法开始下载，速度为0，用迅雷试了可以正常下载；
且打开文件夹，视频未下载就已经显示2G+大小，但无法打开（用迅雷尝试，没有这种问题，文件大小随着下载正常增大）；
mac os 10.14.3
Motrix最新版.dmg

motrix 1.3.8.2 @ windows 10 pro 1903下载磁力链接速度为0 或者下载失败，同样资源用uTorrent可以下载

特意搜索几个用来测试速度用的磁力链接同样下不动

同样磁力链接也无法下载……
操作系统：win10 1903 10.0.18362（试了一下MacOS同样无效）
Motrix 版本：v1.4.1
安装包类型：.exe
截图
种子文件应该不算冷门，同样使用ut下载无任何问题

我也是....磁力链接无法下载

authors: 35373632 DiumSuGie GaLeGayGay Jayxiang Zhaodoudou agalwood happyangry iampmxu onloner2012 szweee zhang-qi-yang

repo: agalwood/Motrix


text:
Title: Adding New Scrollbar

Is your feature request related to a problem? Please describe.
I want to add a new scrollbar which matches the theme of the website. Please assign me this issue.
Describe the solution you'd like.
Right now its just a default scrollbar. A themed scrollbar will enhance the look of the website.
Describe alternatives you've considered.
n/a
Add any other context or screenshots about the feature request here.
No response

It's already done


text:
face_recognition.face_encodings(...) doesn't work on multiprocessing

face_recognition version:lastest
Python version:3.6
Operating System:Ubuntu16.04

Description
I was trying to put face_recognition.face_encodings on multiprocessing cause it's time consuming.
But it seems like face_recognition didn't do anything on sub process.
What I Did
import cv2
import face_recognition as fr
import os
import numpy as np
from multiprocessing import Process,Pool
img_list = []
def multi_process(img):
    cnt=img_list.index( img)+1
    print(cnt)
    locations=fr.face_locations(img,number_of_times_to_upsample=2,model="cnn")
    print(cnt,locations)
    out_path = "./test/faces"

    encs = fr.face_encodings(img, locations, 500)

    for index, location in enumerate(locations):
        print(out_path + "/%d_%d_%d_%d_%d_%d.jpg" % (cnt, index, location[1], location[0]
                                                     , location[3], location[2]))
        img = cv2.rectangle(img, (location[1], location[0]), (location[3], location[2]), (0, 255, 0), 1)

        if not os.path.exists(out_path):
            os.makedirs(out_path)
        cv2.imwrite(out_path + "/%d_%d_%d_%d_%d_%d.jpg" % (cnt, index, location[1], location[0]
                                                           , location[3], location[2]), img)
        np.save(out_path + "/%d_%d" % (cnt, index), encs[index])
def preprocess(video_path):
    cap=cv2.VideoCapture(video_path)
    cnt=0
    out_path="./test/faces"
    while True:
        _,img=cap.read()
        cnt+=1
        if img is None:
            break
        img_list.append(img)
    pro_cnt=32
    print(len(img_list))
    locations = fr.face_locations(img_list[0], number_of_times_to_upsample=2, model="cnn")
    print(locations)
    for i in range(len(img_list)//pro_cnt):
        p = Pool(pro_cnt)
        for img_i in img_list[i*pro_cnt:i*pro_cnt+pro_cnt]:
            p.apply_async(multi_process,(img_i,))
        p.close()
        p.join()
if __name__=="__main__":
    video_path ="/path/to/test.avi"
    data_base = "./test"
    start=time.time()
    preprocess(video_path)
    end=time.time()
    print(end-start)

###Thanks
Pretty thank you all for watching my stupid issue.

import cv2
import face_recognition as fr
import os
import numpy as np
from raw_cluster import raw_cluster
from multiprocessing import Process,Pool
img_list = []
def multi_process(img):
cnt=img_list.index( img)+1
print(cnt)
locations=fr.face_locations(img,number_of_times_to_upsample=2,model="cnn")
print(cnt,locations)
out_path = "./test/faces"
encs = fr.face_encodings(img, locations, 500)

for index, location in enumerate(locations):
    print(out_path + "/%d_%d_%d_%d_%d_%d.jpg" % (cnt, index, location[1], location[0]
                                                 , location[3], location[2]))
    img = cv2.rectangle(img, (location[1], location[0]), (location[3], location[2]), (0, 255, 0), 1)

    if not os.path.exists(out_path):
        os.makedirs(out_path)
    cv2.imwrite(out_path + "/%d_%d_%d_%d_%d_%d.jpg" % (cnt, index, location[1], location[0]
                                                       , location[3], location[2]), img)
    np.save(out_path + "/%d_%d" % (cnt, index), encs[index])

def preprocess(video_path):
cap=cv2.VideoCapture(video_path)
cnt=0
out_path="./test/faces"
while True:
_,img=cap.read()
cnt+=1
if img is None:
break
img_list.append(img)
pro_cnt=32
print(len(img_list))
locations = fr.face_locations(img_list[0], number_of_times_to_upsample=2, model="cnn")
print(locations)
for i in range(len(img_list)//pro_cnt):
p = Pool(pro_cnt)
for img_i in img_list[ipro_cnt:ipro_cnt+pro_cnt]:
p.apply_async(multi_process,(img_i,))
p.close()
p.join()
if name=="main":
video_path ="/path/to/***.avi"
data_base = "./test"
start=time.time()
preprocess(video_path)
end=time.time()
print(end-start)

`import cv2
import face_recognition as fr
import os
import numpy as np
from raw_cluster import raw_cluster
from multiprocessing import Process,Pool
img_list = []
def multi_process(img):
cnt=img_list.index( img)+1
print(cnt)
locations=fr.face_locations(img,number_of_times_to_upsample=2,model="cnn")
print(cnt,locations)
out_path = "./test/faces"
encs = fr.face_encodings(img, locations, 500)

for index, location in enumerate(locations):
    print(out_path + "/%d_%d_%d_%d_%d_%d.jpg" % (cnt, index, location[1], location[0]
                                                 , location[3], location[2]))
    img = cv2.rectangle(img, (location[1], location[0]), (location[3], location[2]), (0, 255, 0), 1)

    if not os.path.exists(out_path):
        os.makedirs(out_path)
    cv2.imwrite(out_path + "/%d_%d_%d_%d_%d_%d.jpg" % (cnt, index, location[1], location[0]
                                                       , location[3], location[2]), img)
    np.save(out_path + "/%d_%d" % (cnt, index), encs[index])

def preprocess(video_path):
cap=cv2.VideoCapture(video_path)
cnt=0
out_path="./test/faces"
while True:
_,img=cap.read()
cnt+=1
if img is None:
break
img_list.append(img)
pro_cnt=32
print(len(img_list))
locations = fr.face_locations(img_list[0], number_of_times_to_upsample=2, model="cnn")
print(locations)
for i in range(len(img_list)//pro_cnt):
p = Pool(pro_cnt)
for img_i in img_list[ipro_cnt:ipro_cnt+pro_cnt]:
p.apply_async(multi_process,(img_i,))
p.close()
p.join()
if name=="main":
video_path ="/path/to/***.avi"
data_base = "./test"
start=time.time()
preprocess(video_path)
end=time.time()
print(end-start)`

https://github.com/ageitgey/face_recognition/issues/478

老哥

@windforce7 老哥，我的服务器有四块显卡，所以要想并行处理图片只能开四个进程把任务部署到四个显卡上吗？

Go to api.py and adapt
face_detector = dlib.get_frontal_face_detector()

to
import dlib.cuda as cuda

cuda.set_device(0)
face_detector_0 = dlib.get_frontal_face_detector()
cuda.set_device(1)
face_detector_1 = dlib.get_frontal_face_detector()

and do this to all other "dlib." resources (and relevant functions too). Then you can execute tasks on each cards. Threads are always more convenient than processes.


text:
Training KNN

face_recognition version: Latest
Python version: 3.6
Operating System: Ubuntu 18.04

I want to know how many images per class do we need for training a KNN. Because with 1 or 2 images model is not giving me an accurate result.
One more thing can we train it on GPU ?

Have the same question, @fadi212 i have trained the knn model with 15 to  20 images and its working well for me with tolerance=.04

KNN is not very suitable for a face recognition tool, try with a MLP classifier. 1 or 2 images are not a valid quantity for train a neural network.
With at least 6 photos, my neural network achieve good result:
https://github.com/alessiosavi/PyRecognizer


text:
Change license from LGPL3 to MIT

To encourage more permissive use of the code in this repository, we would like to move the license from LGPL3 over to MIT. This does not revoke the previous license but adds a more permissive license for future use.
@sperera, @kainagel, @osbornejr, @chambul, @gden173, @gwehr1, are you happy for any code you contributed to in this repository to date to be licensed under MIT going forward? If you could please add your response in comments below.
Thanks!

Hi @dhixsingh,
I have no issues with changing the licence to MIT.

Hi @dhixsingh , sounds good to me, happy for the licence to change.

Hi @dhixsingh, I'm also happy for the license to be changed.

Not sure if there is code from me in this repo but if there is it is ok to change its license.

Great, thanks all.

repo: agentsoz/ees


text:
socket.timeout: timed out

JJ@MacBook-Pro  autosub -S zh-CN -D en -K {Key} /Users/JJ/Desktop/1222.mp4
Converting speech regions to FLAC files: 100% |##################| Time: 0:00:01
Performing speech recognition: 100% |####################################################| Time: 0:01:55
Traceback (most recent call last):
File "/usr/local/bin/autosub", line 304, in
sys.exit(main())
File "/usr/local/bin/autosub", line 261, in main
src=args.src_language)
File "/usr/local/bin/autosub", line 95, in init
developerKey=self.api_key)
File "/usr/local/lib/python2.7/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/googleapiclient/discovery.py", line 224, in build
requested_url, discovery_http, cache_discovery, cache, developerKey)
File "/usr/local/lib/python2.7/site-packages/googleapiclient/discovery.py", line 274, in _retrieve_discovery_doc
resp, content = http.request(actual_url)
File "/usr/local/lib/python2.7/site-packages/httplib2/init.py", line 2135, in request
cachekey,
File "/usr/local/lib/python2.7/site-packages/httplib2/init.py", line 1796, in _request
conn, request_uri, method, body, headers
File "/usr/local/lib/python2.7/site-packages/httplib2/init.py", line 1701, in _conn_request
conn.connect()
File "/usr/local/lib/python2.7/site-packages/httplib2/init.py", line 1360, in connect
sock.connect(sockaddr)
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.timeout: timed out
autosub -S zh-CN -D zh-CN -K {Key} /Users/JJ/Desktop/1222.mp4
zh-CN转zh-CN可以成功
zh-CN转 en 就报上面的错误 Error

不排除是translation api过于陈旧无法使用，我对translation api并没有进行过测试。可以考虑参考我博客中所说的几个他人魔改的可能可以使用免费翻译api的版本。
另外你需要确保你的终端加载了http/https代理，或者你的系统走了全局（虚拟网卡级别）的代理，或者换句话说你的终端可以连接到google服务器。

3Q ~ 已经解决！是终端链接不到google的原因。

repo: agermanidis/autosub


text:
[BUG] Chapter 11: ExponentialDecay uses global step number instead of instance step number for learning rate update

The ExponentialDecay class defined in the chapter 11 notebook initializes an instance variable self.s that holds the number of steps. In the on_epoch_begin() method, the learning rate is updated, but it currently uses s instead of self.s when calculating the new learning rate:
class ExponentialDecay(keras.callbacks.Callback):
    def __init__(self, s=40000):
        super().__init__()
        self.s = s

    def on_batch_begin(self, batch, logs=None):
        # Note: the `batch` argument is reset at each epoch
        lr = K.get_value(self.model.optimizer.learning_rate)
        K.set_value(self.model.optimizer.learning_rate, lr * 0.1**(1 / s))

[...]

s = 20 * len(X_train) // 32 # number of steps in 20 epochs (batch size = 32)
exp_decay = ExponentialDecay(s)
history = model.fit(X_train_scaled, y_train, epochs=n_epochs,
                    validation_data=(X_valid_scaled, y_valid),
                    callbacks=[exp_decay])

The reason that this doesn't throw an exception is because s is defined in the global scope where it was used to initialize the exp_decay object. Still, I think the original intention was probably to use self.s in on_batch_begin(), right?

Oh good catch, thanks! I'll fix this now.

authors: ageron fkalbe


text:
Use in meteor

You might want to include in your documentation something like this for Meteor users:
"Use SQL in Meteor client-side querys.
Let's face it, Mongo sucks on common data operations, so having the ability to use SQL to query data (with JOINS, GRUP BY and so on) would relief a lot of pain.With  alaSQL you can do something like this in your helper:
productsSold:function(){
 var customerSalesHistory=salesHistory.find({customerId:Session.get('currentCustomer')}).fetch();
   var items=products.find().fetch();
   return alasql("select items.name, sales.ordered as quantity from ? sales, ? items
    where items.Id=sales.itemId",[customerSalesHistory,items]);
 }

"
Also, you might want to create the json to make alaSql a meteor package. Meteor users can only use minimongo, so there is a real need of a reactive way to make reactive querys on teh client.
Also, minimongo is not persistent, while I see that alaSql is. So for Meteor users, alaSql is the best thing ever.

@vchigne AlaSQL supports not only tables but also documents and graphs. Based on   Meteor-Postgres, we can produce a "Meteor-SQL" which make us sql tables, documents and graphs at the same time and use Postgres and OrientDB as backends. Months later OrientDB will release stable Live Query support, which make the reactivity of the database natively supported.
Publishing  AlaSQL as a Meteor Package is a good idea. "SQL ALL" is making history! @agershun

Many thanks for ideas! I will install Meteor and will learn how to create packages for it. Of course, it will take lot of  time to create and test it! I will make a research on this question and write about AlaSQL plans in Meteor area.

Could you help me with this question?
I tried to convert sample Meteor todo application from here with AlaSQL.

I stored alasql.min.js to the client/lib directory. This works fine.
Then I replaced the code:

   Template.body.helpers({
       tasks: function () {
       return Tasks.find({}, {sort: {createdAt: -1}});
  }

with this code:
   Template.body.helpers({
       tasks: function () {
       return alasql('SELECT * FROM ? ORDER BY createdAt DESC',[Tasks.find().fetch()]);
  }

This works fine.

I can add to AlaSQL this kind of logic: if the source instanceof Mongo.Collection, then apply source.find().fetch() automatically by default. This will allow to write:

   Template.body.helpers({
       tasks: function () {
       return alasql('SELECT * FROM ? ORDER BY createdAt DESC',[Tasks]);
  }

Is this functionality required?

Of course it is! I would result in less code and is a usual operation in meteor

I added this functionality.to the next version of AlaSQL (now you can download it from develop branch or from http://alasql.org/console/alasql.min.js.
Now you can simply write:
  Template.body.helpers({
       tasks: function () {
       return alasql('SELECT * FROM ? ORDER BY createdAt DESC',[Tasks]);
  }

May I ask you to test this function?

I will publish this functionality to master branch and npm  to the next release 0.1.4 on Monday.

Maybe yu might want to add a restriction to the collection, like:
Tasks ({owner:idOwner})
That's common too

Could you explain this with more details or reference to the code or manual (Sorry, I am absolutely dilettante with Meteor). Should this restriction to be set by default or this code is user specific?

Its user specific, Usually you use a scoped collection, You set the scope in the find clause with mongo usual sintax

Your example could be
Template.body.helpers({
tasks: function () {
return alasql('SELECT * FROM ? ORDER BY createdAt DESC',[Tasks({condition})]);
}
or
return alasql('SELECT * FROM ? ORDER BY createdAt DESC',[Tasks ("condition")]);

Some variants of the syntax to choose:
    1. alasql('SELECT * FROM METEOR(?,{condition}) ORDER BY createdAt DESC',[Tasks]);
    2. alasql('SELECT * FROM ? FIND {condition} ORDER BY createdAt DESC',[Tasks]);
    3. alasql('SELECT * FROM ? FIND ? ORDER BY createdAt DESC',[Tasks,{owner:idOwner}]);

Which one is better?
I already thought to add FIND clause to SELECT operator to work with Mongo-like queries (or on top of NoSQL databases.

I like the first one but if you have thought about FIND for a consistent way to speak to NoSQL databases, then 2 is more flexible whlie 3 will break the current convention of having only query origins in the array.

@wuxianliang  looks like a great idea but the team of meteor stream is doing something like that IIRC

Ok. I will try to construct something like this (you can use it in the both ways):
    alasql('SELECT * FROM METEOR(?,{condition}) ORDER BY createdAt DESC',[Tasks]);
    alasql('SELECT * FROM METEOR(?,?) ORDER BY createdAt DESC',[Tasks, {owner:idOwner}]);

10 minutes...

Ok its important to check if reactivity is maintained. Blaze should be able to notice the new query

Could you try this code:
Template.body.helpers({
tasks: function () {
    alasql.from.METEOR = function(filename, opts, cb, idx, query) {
       var res = filename.find(opts).fetch();
       if(cb) res = cb(res, idx, query);
        return res;
     };
     return alasql('SELECT * FROM METEOR(?,?)',[Tasks,{text:"Hello world!"}]);
   }
});

Let me adapt this to my current query, BRB

Do I need to install the development branch?

No, just copy alasql.min.js from here to the client/lib directory

It workd and, ITS REACTIVE :)

:+1:  Should we include this METEOR from-function into release?

Is METEOR is a good name or it should be something like: MONGOLIKE() or else?

BTW: you can use it with and without conditions:
return alasql('SELECT * FROM ?',[Tasks]);
return alasql('SELECT * FROM METEOR(?)',[Tasks]);
return alasql('SELECT * FROM METEOR(?,?)',[Tasks,{text:"Hello world!"}]);

I think this is usefull for all the mongo ecosystem,so mongoLike could be a good bame, but actually I'm starting to like the FIND  name.
But if you call it METEOR, then it will be clear that this querys are ALSO reactive :)
It's up to you

Ok, let it be METEOR(). I include this from-function and default converter into the next release 0.1.4.
I will reserve FIND for future integration with Mongo-like systems (for example AlaSQL on top of Mongo or minimongo with translation to {}-like conditions).

Victor, thank you! Please, let me know if you have other ideas or issues in this integration. I also will add our research to the documentation.

Thanks to you!
Actually, the biggest problems in meteor are:

Server Side: No SQL backend, Numtel and meteor stream are trying to solve that.
Client Side: - Minimongo! (alaSQL solves that)
- No persistent storage. That should be worked trying to define some connections as persistent and storing those in the client with automatic and manual syncronization.

I forgot, it's very important to have alaSql in a meteor package. It's not hard but I never have done this.
This is  the relevant section of the manual
http://docs.meteor.com/#/full/writingpackages

Thank you! I will learn on weekends how to do it.

I forgot something:
Minimongo has no transactions. If you can implement a set of upserts in a transactions, that would be crazy. Right now everyone is simply ignoring the issue, but it could be a huge problem specially in persistent collections.
Thanks again, I'll try to test whatever yo send me this weekend (but this sunday is Mothers Day here)
Regards

This should do the trick, but don't take my word on it :)
package.js
/* Information about this package */
Package.describe({
    // Short two-sentence summary.
    summary: "SQL DML and DDL for meteor collections",
    // Version number.
    version: "1.1.4",
    // Optional.  Default is package directory name.
    name: "agershun:alasql",
    // Optional github URL to your source repository.
    git: "https://github.com/agershun/alasql.git",
});

/* This defines your actual package */
Package.onUse(function (api) {
    // If no version is specified for an 'api.use' dependency, use the
    // one defined in Meteor 0.9.0.
    api.versionsFrom('1.0.0');
    // Use Underscore package, but only on the server.
    // Version not specified, so it will be as of Meteor 0.9.0.
    //api.use('underscore', 'server');
    // Use iron:router package, version 1.0.0 or newer.
    //api.use('iron:router@1.0.0');
    // Give users of this package access to the Templating package.
    //api.imply('templating')
    // Export the object 'alasql' to packages or apps that use this package.
    api.export('alaSql', 'client');
    api.export('alaSql', 'server');
    // Specify the source code for the package.
    api.addFiles('alasql.js');
    api.addFiles('alasql.js');
});

/* This defines the tests for the package */
Package.onTest(function (api) {
    // Sets up a dependency on this package
    //api.use('username:package-name');
    // Allows you to use the 'tinytest' framework
    //api.use('tinytest@1.0.0');
    // Specify the source code for the package tests
    //api.addFiles('email_tests.js', 'server');
});

/* This lets you use npm packages in your package*/
Npm.depends({
    //simplesmtp: "0.3.10",
    //"stream-buffers": "0.2.5"});/**

:+1:

I seems that I finaly published the alasql package, but cannot test it.

https://atmospherejs.com/agershun/alasql

Sorry, it still is not working. I will check tomorrow.

How is it going Andrey?

I put the source of Meteor package in /meteor directory, but still something wrong. Unfortunately, I cannot work on this issue until Friday .

Tested. I works (at least at my computer). It installs on the client and server side as well.
To install it, please use:
    meteor add agershun:alasql

Could you try it?

Great! It works! Both sides.

It rocks. Works in client and server :)

@wuxianliang @vchigne Many thanks for testing. May I ask you to test one more thing: how AlaSQL plugins system works.

Please, update current version of agershun:alasql package to version 0.1.13

    meteor update agershun:alasql

Try this code:

    alasql('REQUIRE ECHO');
    alasql('ECHO 123');

ECHO is a simple command stored in separate plugin file: alasql-echo.js (you can see it in the develop branch alasql-echo.js). The same approach in Node.js and browser
I am going to put all aside functionality outside the core via this plugin system.

Now the same REQUIRE ECHO code should also should work in the Meteor server in version  0.1.14.

@wuxianliang I did all urgent things for AlaSQL (including SQLLOGICTEST, Meteor integration, and plug-in system). Now I put the OrientDB compatibility in the first priority. Hope, we can test something very soon.

Sorry Andrey, I didn´t read your request to test on time.
It works well, but you already know it.
Regards

:+1:

Wow - so many things blooming - and I just looked away for 24 days.
Love that there is meteor support now!

Can you test this package?

Sure - I have been missing an excuse to get on the meteor (t)rain

Regarding the 3 ways
1. `alasql('SELECT * FROM METEOR(?,{condition}) ORDER BY createdAt DESC',[Tasks]);`
2. alasql('SELECT * FROM ? FIND {condition} ORDER BY createdAt DESC',[Tasks]);`
3. `alasql('SELECT * FROM ? FIND ? ORDER BY createdAt DESC',[Tasks,{owner:idOwner}]);`

Did we go with all 3 or what?

Now we have only two:
    // Without search conditions
    alasql('SELECT * FROM ? ORDER BY createdAt DESC',[Tasks]);

    // With search conditions
    alasql('SELECT * FROM METEOR(?,{condition}) ORDER BY createdAt DESC',[Tasks]);

authors: agershun mathiasrw vchigne wuxianliang

repo: agershun/alasql


text:
Virtual Areas

It would seem possible to create virtual areas to represent rooms without ESPHome base stations. Observed distances from each base station would localize to a point in the center of the virtual area. A radius or range of distances would define the room.
Is this a planned or available feature?
Person = n
Base station = A, B, C, D, E
Distance = d
dAn = distance between base station (A) and person (n)
dAn1 = distance between base station (A) and person (n) in the desired room, closest to base station (A)
dAn2 = distance between base station (A) and person (n) in the desired room, furthest from the base station (A)
Virtual location = (dAn, dBn, dCn, dDn)
Virtual Area/Room = (dAn1 < dAn <dAn2, dBn1 < dBn < dBn2, dCn1 < dCn < dCn2, dDn1 < dDn < dDn2)

Yes, this is definitely planned once we have trilateration working. At this stage I'm expecting to generate x/y(maybe z) co-ords that map to the floorplan.
I haven't quite settled on how we'd translate that to rooms directly, i think we'd define polygons for each room, and some magical numpy or pandas library would take that and tell you which room any given set of co-ords falls in.

I was here to suggest this very thing.  (Pats self on back for searching existing issues first)
I know the more ambitious goal of Bermuda is to do fancy math so solve for the entire set/general case, but based on my limited measurements from proxies in my house, it looks like virtual areas can also be solved using more brutish configuration. Especially when multiple floors are concerned.
Contrived example:
flowchart LR
    lr((LivingRoom)) --- Hallway --- dr((DiningRoom))

If I had a proxy in both LivingRoom and DiningRoom, then there would be some threshold combination of values which indicated hallway vs either room. Instead of polygon definitions I'd be happy enough with defining a set of spherical distances from each proxy with a "thickness"/error band for each or even just a Jinja blob to set an area based on arbitrary inputs.
In my actual use case with a multi-story house, when I walk from my office to the kitchen I walk over the kids playroom in the basement. It's impossible* to walk through the basement playroom in between the office and kitchen, but an intersection of officeproxy and kitchenproxy and playroomproxy is the dining room.
*Could overcomplicate this further by enforcing some state transition validations.

authors: User873902 agittins nebulous

repo: agittins/bermuda


text:
Create a blog post

Write a blog post about the effort to drive people to participate

greg wrote the blog post

repo: agrc/collaborative-trailheads


text:
Added => Maths_And_Stats => Number_Theory => Ugly Number => CPP

Assigned Issue Number ?
#710
Language Opted ?
C++
Number of files added or updated ?
1
Name of these files ?
Maths_And_Stats => Number_Theory => Ugly_Number.cpp
Checklist

[x] I've read the contribution guidelines.
[x] I've referred the correct issue number.
[x] I've fill up this entire template correctly.

@ahampriyanshu Thanks .I will do it.


text:
Thread 1: Fatal error: UIViewControllerRepresentables must be value types: ViewControllerResolver

Happens on iOS 16.

Similar issue online: https://developer.apple.com/forums/thread/709433

Fixed in https://github.com/aheze/SupportDocs/releases/tag/1.1.1

repo: aheze/SupportDocs


text:
Set a proxy server for all API requests

Now you can set a proxy server for all API requests. It will help when you need some instances with different proxy servers

@vitaliikapliuk I haven't enough time to check it , did you test it ? and are you sure ?

authors: ahmdrz vitaliikapliuk

repo: ahmdrz/goinsta


text:
ctrl-arrow

Hi!
you editor is almost perfect. Can you please add ctrl-arrow (jumping left-right a single word)?

@njskalski  Thank you!
This functionality is already present and tested on Windows Terminal. I am using Crossterm library for terminal interactions including event handling. And perhaps due to the challenge of parsing escape codes of different terminals (specially complex ones like CTRL+LEFT/RIGHT), the library might not be able to cater to all terminals.
Implementation of Ctrl+Left event handling:
https://github.com/ahmednooor/lino/blob/main/src/lino/handle.rs#L239-L241
https://github.com/ahmednooor/lino/blob/main/src/lino/keybindings.rs#L37
https://github.com/ahmednooor/lino/blob/main/src/lino/commands.rs#L44-L53
Implementation of Ctrl+Right event handling:
https://github.com/ahmednooor/lino/blob/main/src/lino/handle.rs#L261-L263
https://github.com/ahmednooor/lino/blob/main/src/lino/keybindings.rs#L38
https://github.com/ahmednooor/lino/blob/main/src/lino/commands.rs#L54-L63

authors: ahmednooor njskalski

repo: ahmednooor/lino


text:
Separate package godoc into doc.go

More idiomatic than having it in from.go.
@kalaninja please take a look and merge if it looks good to you.

Brilliant idea, I also thought that from.go is not a good place for that

authors: ahmetalpbalkan kalaninja

repo: ahmetalpbalkan/go-linq


text:
Added Position Property

Added a Bindable Position Property
Usage
<plugin:TabStripControl Position="2" />

Things to do prior to merging PR

Update usage docs
Update sample project to use latest CI build

repo: ahoefling/TabStrip


text:
🛑 Bot is down

In 052ab6b, Bot (https://ahq-miness.ahqsecret.repl.co/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bot is back up in 79e395f.


text:
Fix github pages deployment workflow

Edit the workflow to incorporate building to allow react app to build with backend URL
A secret ENV secret needs to be set and containing all env variables values and it will be directly passed to the build

This is a duplicated of https://github.com/ai-cfia/nachet-frontend/issues/75 and won't do since we are now deploying every thing to kubernetes

repo: ai-cfia/github-workflows


text:
As a DevOps, I would like to change the email address of cert-manager inside the GKE Cluster

Change the email email address of cert-manager inside the GKE Cluster. You can find the content inside kubernetes/system/cert-manager/issuer.yml

Maybe create a devops@inspection.gc.ca

Great idea, we could have devsecops@inspection.alpha.canada.ca for anything related internally and sre@inspection.alpha.canada.ca for any potential issues. Regarding production, will we have access to the DNS inspection.canada.ca?

Regarding production, will we have access to the DNS inspection.canada.ca?

Let us cross that bridge once we get there.

authors: ThomasCardin rngadam

repo: ai-cfia/infra


text:
New public release

Update public code to latest.

When we do this in the future, I would suggest having the first commit be a replacement rather than deletion of the code, so it's possible to see what files have changed. I don't think this is super important to review but I was curious to check it for any potential issues.

Personally, since I think this will be one of our more widely seen and used repositories, I think it feels better just to have only relevant files distributed in a package rather than our internal processing. I would vote for cleaning up scripts. BUT, I realize this also adds an inconvenient divergence when merging into this repository as those scripts might be updated in full-model and create conflicts if they are deleted here.

I'm not too worried about conflicts. I did already delete some of the things in the scripts directory but agreed there is a lot of stuff in data_process that is not widely applicable. I'll make a commit deleting everything other than get_stats.py and see what others think.

Also, what's the plan for the documentation? Add that in after this merge? We could also consider linking the ACE colab notebook with a note at the beginning of the quickstart.

Yes, building the docs / hosting on RTD will be a follow on PR. Agreed, once this is merged to main and the colab notebook can reflect that, we can add a link.


text:
cheat cs 입니다.

고마워요~~


text:
Digital Miner Problems

I am running a 1.10.2 server, and the Digital Miner will find ores, but will not pull them up, and I cannot connect anything to the back of it, where it ejects the items it pulls up.  I tried the logistical pipes from the mod itself, and they will not interface with the digital miner.  I have it powered by two advanced solar panels, and even though it isn't pulling up any ores, it is still pulling power.  I am running version 290 of the mod, I updated from 288, where the same issues were taking place.

I am also suffering the same issue
mekanism version 290
Forge 2056

Hi Hi Guys.
I' ve also this Problem.
But only on my Server.
In SP it works perfect.
I've tested it on three different Servers and it never worked.
I use Mekanism 9.1.0, Minecraft 1.7.10 (Forge 1614) in Bevos TechPack.
Hope this can be fixed soon.
Best Regards
Luci

1.10.2, same issue. Works on single player, doesn't work on servers. :/

Odd, works over on our network. This is most likely a permission missing that your server staff will need to fix as this is not an error in the mod.

Odd that we are running pure forge no plugins etc where do you get these "permissions" from ????? I think you should elaborate on thing a bit more than just blaming non existent permissions from a forge server that is running no plugins.

Strange. I am op on this server... so i have all permissions.
Without op i can't use the mekanism  blocks/machines/items...

After going through some older issues that were the same problem you need to op the fake player for mekanism  which is /mk op
I am assuming this is still just as valid irrespective of the version being 1.7.10 or 1.10.2 the fakeplayer side would not of changed since then
https://github.com/aidancbrady/Mekanism/issues/2909

repo: aidancbrady/Mekanism


text:
Power use in factories is incorrect

Using build 3f9cd82  Factories with maxed energy and speed upgrades are only using 2RF per slot which I believe is 100x lower than it should be.  Normal maxed factory running all 7 slots is 1400RF/T
Here are my config settings (default)
D:EUToJoules=0.1
B:EnableWorldRegeneration=false
D:EnergyPerHeat=1000.0
D:EnergyPerRedstone=10000.0
S:EnergyType=RF
I:EthyleneBurnTime=40
D:EvaporationHeatDissipation=0.02
D:EvaporationMaxTemp=3000.0
D:EvaporationSolarMultiplier=0.2
D:EvaporationTempMultiplier=0.1
D:ForgeToJoules=0.4
D:HeatPerFuelTick=4.0

Removing all the upgrades, picking up factory then reinstalling upgrades resets it properly


text:
Garden Cloche / Cardboard Box disappearing

Please use the search functionality before reporting an issue. Also take a look at the closed issues!
SEARCH: nothing
Issue description:
MODPACK: ENIGMATICA2:EXPERT
Placing a Cardboard Box (Mekanism) on a Garden Cloche (Immersive Engineering) deletes both the cloche, all it's contents and the cardboard box. (reporting issue to both mod groups)
Steps to reproduce:

Place Garden Cloche in world, fill with dirt, potato and bone meal,
Supply with water and power.
Place a Cardboard box onto the Garden Cloche.
Check every where for the drop.

Version (make sure you are on the latest version before reporting):
Forge: Mod Loader: 8.0.99.99
Minecraft Forge: 14.23.5.2781
Mekanism: 1.12.2-9.4.13.349
Other relevant version: Immersive Engineering: 0.12-88
If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)
[gist/pastebin/etc link here]
Willing to provide video if needed?

I reproduced this with IE and Mek in a standalone pack. It's worth noting that it only occurs when the block is larger than a single block. Also notable is that after setBlockState on a problematic block, the block state is AIR.

Hi @ke5hxf - I've fixed this in my fork and submitted a PR to this repo. The problem is that IE actually triggers it's own setBlockState whenever a cloche (or other double-high block) is broken - the work around is to first set the block in question to air, then place the cardboard box. Ideally we wouldn't have to do this two-step, but double-blocks are such a hack that I think this is a reasonable tradeoff.
I'll cut a new release of my fork tomorrow with this change.

Based on discussion with the author of IE, multiblock devices have been blacklisted for the cardboard box.
Even with working around the disappearing act, it won't come out of the box properly.

After removing the box, there is no 2nd block and your cloche will probably not work right without it.

authors: dizzyd ke5hxf thiakil


text:
add peer_address public method

This is to provide a public method peer_address for QuicConnection, H0Connection, H3Connection and use it in the http3_server.py example.

There is a test failure in windows-latest 3.8.  It seems not related to my diff, and it seems happened in some previous commits as well. Is this a known issue?  @jlaine
pasted from the log:
FAIL: test_send_max_stream_data_retransmit (tests.test_connection.QuicConnectionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "d:\a\aioquic\aioquic\tests\test_connection.py", line 1591, in test_send_max_stream_data_retransmit
    self.assertEqual(stream.max_stream_data_local_sent, 2097152)
AssertionError: 0 != 2097152

Thanks for taking the time to put this PR together, and double thanks for writing unit tests!
There are a couple of points I'm not entirely comfortable with:

so far, the QUIC stack has been as network-agnostic as possible. This means there is no guarantee about the form of the "peer address": it could be a traditional (address, port) tuple, but it doesn't have to be

the "peer_address" API obscures the fact there could be multiple network paths (although admitedly aioquic only uses one at any given time)

Any thoughts on this?

Not a problem.  Here's my thoughts:

In the patch, peer_address() returns NetworkAddress (if not None), which has the type of Any, i.e. does not constrain it to any particular address format. I agree that my comments seem to limit to only IP endpoint tuple. I can update the comments section to clarify this.

It's my understanding that the current / active peer address is always the 1st in _network_paths, and if changes, it will promote to _network_paths[0] .  If that's true, I can add more comments to clarify that.  If not true, I probably have to change code to handle different cases.

Thanks.

I've updated the diff based on my previous comments.

repo: aiortc/aioquic


text:
Breaking changes in object_changes deserialization for ActiveRecord::Enum?

We recently upgraded paper_trail from v4.0.2 to the latest version for Rails 5 migration, and find that there's something unexpected when reading changeset from version.
As of v4.0.2, changes of enums are stored as strings. For example, with the PostWithStatus model
post = PostWithStatus.create(status: :draft)
post.published! # version.object_changes should contain "---\nstatus:\n- draft\n- published"
post.versions.last.changeset #=> {"status"=>["draft","published"]}

Later a new serialization method was introduced which serializes enum to integer, and the changeset deserialization for older versions is broken.
post.versions.last.changeset #=> {"status"=>["draft","draft"]}

I think it's because the values are assumed to be integers, and it will be parsed to integers and used to reverse lookup in the enum mapping. 'string'.to_i returns 0, so values in the changeset will all be the 0th value of the enum.
I've tested with Rails 4 and 5 and think it's an issue of paper_trail. Please let me know if there's something I'm doing wrong or missing.

This may be a duplicate of https://github.com/airblade/paper_trail/issues/798, which has been fixed, but not released yet. Please try the master branch and let me know if it fixes your issue, thanks.

No, it's not fixed.

OK, thanks for testing. Please provide a failing test using our bug report template. Thanks.

Here's the bug report.
https://gist.github.com/hsluo/312d7c2bd9e062f67ea3e3a3d5a7334f

Thanks for the bug report, very helpful. I think we can incorporate your failing test into spec/models/post_with_status_spec.rb, and I'm guessing the fix will involve attribute_serializers/cast_attribute_serializer.rb.
The first idea that comes to mind is to do something ugly like this:
         def deserialize(attr, val)
-          @klass.type_for_attribute(attr).deserialize(val)
+          if defined_enums[attr] && val.is_a?(::String)
+            # Because PT 4 used to save the string version of enums to `object_changes`
+            val
+          else
+            @klass.type_for_attribute(attr).deserialize(val)
+          end
+        end

It sure feels like a hack, though. I hope someone else has a better idea :)

Fixed in #857, released in 5.2.1. Thanks @hsluo

Thanks!
On Sat, 3 Sep 2016 at 6:41 AM, Jared Beck notifications@github.com wrote:

Fixed in #857 https://github.com/airblade/paper_trail/pull/857,
released in 5.2.1. Thanks @hsluo https://github.com/hsluo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/airblade/paper_trail/issues/855#issuecomment-244503712,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAvp9PkpKU91__ITYeseXuzmu5ewNVU5ks5qmKYegaJpZM4JtJOI
.

authors: hsluo jaredbeck


text:
can't assign permissions for tables

When following the standard install instructions, example datasets are installed. If a new user is assigned the role 'Alpha', they are able to view the database, tables, slices and dashboards. If a new role is created by duplicating the Alpha role (e.g. 'Alpha_copy'), and the new user assigned this role instead, then the slices and dashboards are no longer visible, despite having an identical permission set. Is this expected?
A related issue is that if the 'Public' role is assigned the 'all datasource access on all_datasource_access' permission, and a user assigned both Gamma and Public roles, they also cannot see the slices and dashboards, as may be expected - as they can't seem to see the tables. The security page has permissions such as 'datasource access on [main].birth_names', which aren't available to me in the permissions auto-complete box after a clean install. Is this a bug or are the permission sets created before the tables in the install routine? If so how do you create permission properties for tables?
Thanks,
Sam

Alpha and Admin are special roles, some code rely on the exact names.
Permissions for tables iirc are created when you save the table, database, whatever. Also it does not make any sense to give a user more than one the default roles as Public and Gamma together. Usually you create other roles with specific permissions and compose what you need.

OK. Having recreated the sankey table from the example dataset, a new permission has appeared, so I can grant access to it via the public role. Might be worth stating this in the docs, as out of the box, you cannot assign permissions to the tables from the example data.
Re multiple roles, the security docs give an example of using a 'finance' role to give access to a specific dataset/table to some users. This makes a lot of sense to me, so admin/alpha/gamma roles are used to say what a user can do, and custom roles can be used to allow access to specific datasets.

PR clarifying the docs much appreciated! :)
Re multiple roles, what i was trying to say is choose one of the default caravel roles and add your specific roles on top of them.

I changed the installation instructions to do caravel init after caravel load_examples and that takes care of it

authors: mistercrunch samempson xrmx

repo: airbnb/caravel


text:
Shallow rendering fails to find sub component by class

Apologies if this falls under query selector fails. I don't think it does.
I'm rendering a child component
<CustomControlsButton className='foo' buttonType='play' onClick={onPlayClick} /> I'd initially set up to pass a className, but then refactored to setting up the class by buttonType instead within the component. custom-controls__${buttonType}
After I refactored I wasn't able to access this element by class name with a shallow test.
wrapper.find('.custom-controls__play').first().simulate('click'); but logging wrapper.html() confirmed the elements and classNames rendered as expected. Even wrapper.find(CustomControlsButton) found the correct length.
I mounted the parent component and that solved the issue. Wondering if I'm missing something. Haven't run into this before.
Thank you!

I believe https://github.com/airbnb/enzyme/issues/1216 is related
Sorry for the dup.

np, closing as a duplicate of #1216.

repo: airbnb/enzyme


text:
jsdom mount

I already make travis use nvm use 4 and the test involved mount method still fail, any solution?
link to build
link to file line

On this line, wrapper is the button - perhaps you just want wrapper.simulate('click')?

Yea, everything works fine local. Trying to get t work with Travis. I want to make sure it works before adding more test.

@n7best is there any way you can figure out what that stacktrace is pointing to?  undefined is not a function...  it would be nice to know what it is thinking is undefined.
i see you're using webpack to bundle it. When you run it locally, is it also running it bundled with webpack?

Yea. Everything is same except for Travis I add
'''
if (process.env.TRAVIS) {
configs.browsers = ['Chrome_travis_ci'];
}
'''
To karma config to make chrome work.  And all those error are from the one using mount. So I figure it's some where with Travis config where I manually insert nvm use 4 command where something still undefined

@n7best you don't want a manual nvm use command anywhere for travis tho - https://github.com/n7best/react-weui/blob/master/.travis.yml#L12 is unnecessary due to https://github.com/n7best/react-weui/blob/master/.travis.yml#L4. (also, https://github.com/n7best/react-weui/blob/master/.travis.yml#L13 is unnecessary since travis always prints that out)

Ha I was just hoping that might be the problem since it doesn't work without those. So, yea those didn't help any thing. You can see (this build)[https://travis-ci.org/n7best/react-weui/builds/95716852] are without those and have same problem before I added those.

It would help to know what line it is throwing on and what it is trying to invoke that is undefined. I suspect it is something that webpack is doing but I'm not sure what that would be

@lelandrichardson I am running out of idea how to debug this thing since it's only happening with travis. I add debug info and sourcemap to this [build]https://travis-ci.org/n7best/react-weui/builds/95830951) where you can see which function is trigger the problem.

@n7best

@n7best one thing i can see is that part of the stack trace is ReactPerf.js. Are you running the performance utils with react?  I'm not sure if we've ever tested that. It could be causing some problems.
It seems like component.getPublicInstance() is what is failing, thus getPublicInstance does not exist.  I'm not sure why that would happen :/

authors: lelandrichardson ljharb n7best


text:
Can't build a controlled component [Question]

updateNewValues ignores new props values when sliding.  This reduces the ability to build completely controlled components using Rheostat (rheostat controls rendering while sliding).
A specific use-case: I'm building a 3 handle slider where the outer handles represent the bounds and the inner handle, the midpoint.  When dragging an outer handle, I want to move the inner handle as well.  As it stands, rheostat only updates the values after I've released the handle (ie: slidingIndex is null).
Clearly the code to skip updates while sliding was added intentionally.  I was curious what the reasons are/were and, in general, if there's been consideration for such a use case as described above.
If I comment those lines out, my slider works as I'd expected.
For reference:
https://github.com/airbnb/rheostat/blob/master/src/Slider.jsx#L581
  updateNewValues(nextProps) {
    // Don't update while the slider is sliding
    if (this.state.slidingIndex !== null) {
      return;
    }

This is a case where a comment on why code was added would be super beneficial.
Anyway, if I recall correctly this was added so that Rheostat wouldn't be firing onChange events constantly which would cause all subscriptions to continuously update. I'm not sure if that's the case any more.

authors: bvandenbos goatslacker

repo: airbnb/rheostat


text:
[Schema] OSquery optional TLK

to:
cc: @airbnb/streamalert-maintainers
related to:
resolves:
Background
The following makes log_type an optional top-level key as this is only added by the TLS logger This fixes classification for Filebeat and other non-TLS sources such as Kolide Fleet.
Changes
Add log_type an optional top-level key to the OSquery Schema.
Testing
Steps for how this change was tested and verified

Coverage remained the same at 95.418% when pulling 1d57966c01cab64f450fde82fc431b8bf151bc2d on gavinelder:log_type into bbbbd9967b2f0634fabf3ea2e33ea99d81203c68 on airbnb:release-3-1-0.

@chunyong-lin All good now log_type is also added to batch, when using the tls logger but not part of the standard schema. I have added this to the batch schema.

authors: coveralls gavinelder

repo: airbnb/streamalert


text:
[parsers] support csv embedded within json logs

to: @austinbyers
cc: @airbnb/streamalert-maintainers
size: medium
Background
Some logs are csv format, but are embedded within a json object. Ideally, these could be extracted and still parsed as csv.
Changes

Adding support to the csv parser to allow for extracting csv data via a json_path.
Migrating some of this parsing from the JSONParser to the ParserBase class to be used across the subclasses.
Adding support for extracting 'envelope' keys for csv-in-json logs.

This logic was largely migrated from the JSONParser class to ParserBase with some exceptions. This can be improved at a later date.

Adding log patterns to cloudwatch:control_message so it does not get misclassified as another log type.
Adding cloudwatch:rds_aurora schema that leverages the new csv-in-json logic to extract the csv records and parser them.

Testing

Updating unit tests to include tests for the embedded csv within json.
Adding integration tests for aurora rds csv logs within json.
All current rule tests passing.

Coverage decreased (-0.06%) to 97.594% when pulling d15c9241454cc0c7a67077987053a07b65c5762e on ryandeivert-support-rds-aurora-via-cloudwatch into 44040e84e80d120178219a327a1e7870c9219146 on master.

Coverage decreased (-0.06%) to 97.594% when pulling d15c9241454cc0c7a67077987053a07b65c5762e on ryandeivert-support-rds-aurora-via-cloudwatch into 44040e84e80d120178219a327a1e7870c9219146 on master.

authors: coveralls ryandeivert


text:
Leave metrics empty if not specified

Issue:

we had a bug when user tries to explore a table generated from sqllab visualization flow, when columns are selected for table viz, count metrics is applied by default.

Solution:

since we support column-only table viz, there's no need to add count metrics by default

needs-review @mistercrunch

LGTM, please make sure that it gets to prod ASAP

authors: bkyryliuk vera-liu

repo: airbnb/superset


text:
Search and filtering doc - add users search section

We recently added the ability to search for errors by the affected user's email. We should describe this in our search and filtering doc

Screenshots of recent feature addition:

It looks like we've added quite a bit more search features. On the current page I've just described them without showing examples (I think they're pretty easy to figure out). Should I just update the screenshot and add the additional descriptions?

It looks like we've added quite a bit more search features. On the current page I've just described them without showing examples (I think they're pretty easy to figure out). Should I just update the screenshot and add the additional descriptions?

Sure, I think that's fine to not show a screenshot with all of possible search items. A list is fine.
Some things missing in the list in the doc:

Function
Version
User country
Remote country
URL

This issue has been resolved. The search doc does feature a user search description and screenshot now:
https://airbrake.io/docs/airbrake-faq/how-do-i-use-search-and-filtering/#filtering-by-custom-attributes

repo: airbrake/airbrake-docs


text:
Yagi not supported for IDA interactive debugging

Hi there,
IDA allow users to analyze between static & debugging. however, Yagi use F7 as hotkey, it will let users cannot do single-step in dynamic mode. besides, Yagi is not stable and easy to crash in dynamic mode :(

Hello,
Thanks for your feedback, indeed I changed because on linux i had some strange behavior with my first choice. I will switch to F3 key that seems to free for both distrubution.
Could you be more explicit vy "Yagi is not stable and easy to crash in dynamic mode" please?
Have a nice day,
Sylvain

Done in last release, please open another issur for crash.
Now decomilation is available using F3 key!
Have a nice day!

repo: airbus-cert/Yagi


text:
PermissionError: [Errno 1] Operation not permitted: '/opt/airflow/logs/hello_world/hello_task/2021-05-24T14:48:14.877499+00:00/1.log'

Hi , I have done the setup of airflow using airflow-helm charts in AKS . I have configured persistent volume for dags and logs. But worked pod is failed to start after configured PV for logs. I am getting below error logs from the worker pod,
BACKEND=postgresql+psycopg2
DB_HOST=apache-airflow-postgresql
DB_PORT=5432
WARNING:root:OSError while attempting to symlink the latest log directory
[2021-05-24 14:48:41,771] {dagbag.py:451} INFO - Filling up the DagBag from /opt/airflow/dags/hello_world.py
Traceback (most recent call last):
File "/home/airflow/.local/bin/airflow", line 8, in
sys.exit(main())
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/main.py", line 40, in main
args.func(args)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/cli/cli_parser.py", line 48, in command
return func(*args, **kwargs)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/cli.py", line 89, in wrapper
return f(*args, **kwargs)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/cli/commands/task_command.py", line 225, in task_run
ti.init_run_context(raw=args.raw)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 2016, in init_run_context
self._set_context(self)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 54, in _set_context
set_context(self.log, context)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/logging_mixin.py", line 174, in set_context
handler.set_context(value)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/file_task_handler.py", line 56, in set_context
local_loc = self._init_file(ti)
File "/home/airflow/.local/lib/python3.8/site-packages/airflow/utils/log/file_task_handler.py", line 258, in _init_file
os.chmod(full_path, 0o666)
PermissionError: [Errno 1] Operation not permitted: '/opt/airflow/logs/hello_world/hello_task/2021-05-24T14:48:14.877499+00:00/1.log'
Below pod are running in K8s,
apache-airflow-postgresql-0                                        1/1     Running
apache-airflow-scheduler-55cc877575-wtlqn              1/1     Running   0          20h
apache-airflow-web-6f9dcc5fff-tft5b                           1/1     Running   0          20h
helloworldhellotask.085186513e8f4012a3aa39f37fc5a967   0/1     Error     0          104m
Airflow Ver. -  2.0.2 with embedded postgresql.
Airflow executor type - KubernetesExecutor

@nike4122 what type of persistent volume are you using for logs? Does it support ReadWriteMany?

@thesuperzapper We are using "AzureFiles" which supports ReadWriteMany.
We can see other logs in the same pv ,

dag_processor_manager
scheduler

When we are executing a dag , a new folder is creating for particular job inside the PV, but 0 B of log data.
FOLDER PATH - hello_world/hello_task/2021-06-02T203613.037840+0000/1.log (0 B)

@nike4122 I am almost certain that this is caused by not having fsGroup set in your securityContext.
Very soon, there will be a new global airflow.extraSecurityContext value with {fsGroup: 0} as default.
(See PR https://github.com/airflow-helm/charts/pull/367 for more info).
This will be in 8.5.0 of the chart, to be released today/tomorrow.

repo: airflow-helm/charts


text:
Change in metadataSecretName does not redeploy scheduler

Checks

[X] I have checked for existing issues.
[X] This report is about the User-Community Airflow Helm Chart.

Chart Version
1.11.0
Kubernetes Version
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.9", GitCommit:"d15213f69952c79b317e635abff6ff4ec81475f8", GitTreeState:"archive", BuildDate:"2023-12-20T00:00:00Z", GoVersion:"go1.21.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"28", GitVersion:"v1.28.6-gke.1289000", GitCommit:"a53df8308e54c8cea2e8cf44be1842106e93d04f", GitTreeState:"clean", BuildDate:"2024-01-26T09:25:53Z", GoVersion:"go1.20.13 X:boringcrypto", Compiler:"gc", Platform:"linux/amd64"}

Helm Version
3.11.1

Description
I had a working Airflow deployment, connected to a CloudSQL Instance.
I then created a new CloudSQL Instance, restored a Backup into this new instance and changed the Kubernetes Secret with the Connection string to point to this new Instance.
The webserver correctly picked up the new secret, but the scheduler was not restarted with the new config. In the Webserver under Admin -> Configs I could see the new DB Connection being present.
Only after manually deleting the scheduler pod and re-applying the helm chart the scheduler was re-created and started with the correct DB connection.
Relevant Logs
No response
Custom Helm Values
airflow:
  executor: KubernetesExecutor
  ingress:
    web:
      enabled: True
      ingressClassName: nginx
      hosts:
        - name: airflow.OUR.TLD
          tls:
            enabled: true
            secretName: tls-cert
      annotations:
        cert-manager.io/cluster-issuer: letsencrypt
  postgresql:
    enabled: false
  data:
    metadataSecretName: connection-string
  networkPolicies:
    enabled: True
  config:
    scheduler:
      min_file_process_interval: 10
    webserver:
      expose_config: True
    providers.jdbc:
      allow_driver_class_in_extra: True
      allow_driver_path_in_extra: True
  extraEnv: |
    - name: AIRFLOW__CORE__LOAD_EXAMPLES
      value: 'True'

Update: the triggerer Pod is also not redeployed

This issue is related to the official chart, not the community chart, please raise it on the airflow/airflow repo.

authors: chillinger thesuperzapper


text:
LRAPA conversion

We should either do the LRAPA conversion by default or add it as an option.

Closing in favor of #215

repo: airq-dev/hazebot


text:
vux 官网演示demo报错了， Cannot find module "vux/undefined"

我也是这样子,是不是服务器更新了啥. 瞬间就报错了访问不了了

是时候来一波删库跑路了

demo 案例无法查看。

demo 打不开

是的，我还以为是我更新了chrome61之后出的问题

我的也是，现在想看东西，只能先拷贝demo源码到自己项目里面跑

臣附议。求赶快修好，么么哒

这么巧刚想用vux，官网demo就坏了。。

跟同事一波猛吹嘘，vue全家桶开发超快。。。然后，演示页就狗带了

boom，我以为我是第一个发现的

打不开

+1

+1

+1

+1

+1

+1

已修复，感谢大家的关注

authors: AndsteLyc Ge-Ge Jam1zhu YYmmlin backgroundColor ccw-kevin dzlishen gdutwyg helei112g jqjjian lichangji lisalin880505 luckelectricity mopetite moxiaonai qianlfeg1st splinfengwang wg5945 z575813129 zqinmiao

repo: airyland/vux


text:
x-textarea如何显示滚动条

这属于css问题，不在vux考虑范围内，抱歉