Burst InSAR Golden Tests are Broken

Jira: https://asfdaac.atlassian.net/browse/TOOL-2961
Note: The above link is accessible only to members of ASF.

Describe the bug
Burst InSAR Golden Tests currently fail with the following error:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/asplayer/Downloads/hyp3-testing/hyp3_testing/compare.py", line 102, in images_are_within_offset_threshold
    _assert_within_offset_distance(reference=reference, secondary=secondary, pixel_size=pixel_size,
  File "/Users/asplayer/Downloads/hyp3-testing/hyp3_testing/compare.py", line 89, in _assert_within_offset_distance
    result = mgs_obj.calculate(data_main.data, data_deve.data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.8.1) :-1: error: (-5:Bad argument) in function 'calculate'
> Overload resolution failed:
>  - img1 data type = 14 is not supported
>  - Expected Ptr<cv::UMat> for argument 'img1'

This failure is a result of the introduction of wrapped_phase_rdr.tif images in the products. These images contain complex float32 data, which is not supported by OpenCV. This can be reproduced by manually running compare.images_are_within_offset_threshold on wrapped_phase_rdr.tif images.
Solution
Ideally, we split the real and imag components into two seperate real valued arrays and then compare. We could also manually exclude the wrapped_phase_rdr.tif images from comparisons using OpenCV. This could also be fixed by catching the error and passing.

Fixed in #90


remove shared global scene and attach it to every instance

Keep the weak map of local scene with each excalidraw element to avoid passing everywhere
fixes https://github.com/excalidraw/excalidraw/issues/1637

Some thoughts:

Let's rename GlobalScene class to LocalScene (this.localScene = new GlobalScene(); is super weird). Keep the file name for now so the diffs are reviewable.
Instead of having to keep in mind we need to populate localSceneMap on every element creation, let's add it as a param to all constructor functions so it's type checked.
As for LinearElementEditor.elementId → LinearElementEditor.element migration. As discussed privately, we'd want to revert this. As for how to map those, either we use a regular map which we reset on unmount, or something else. TBD.

I rebased onto this just now and fetching the scene from elements seems weird to me. We should probably have an easy way to get to both the React held appState and the scene from most code.

@xixixao we may want to map element → App instead of element → Scene so it's more versatile. It'd be exactly as weird as the scene workflow. Have you had something else in mind?


Actions SDK - How to Get Session and Project ID on Fulfillment Request?

I'm handling Fulfillments on Actions SDK. Is there a way to get the Project ID or any Session or Context information, during a Fulfillment Request?
I know that I can get on DialogFlow requests, but I can't find a way to get that on Actions SDK.
Thanks

I don't think there's a way to get the Project ID for Actions SDK as it's not exposed in the request.
But there is a conversation id you can get for the request which is basically a session id.
In the library you can access it with:
conv.id

If you want to track project id, you possibly can pass it as a parameter in your fulfillment url. So for example, if your webhook url was https://example.com/webhook, then you set a different url for each project like https://example.com/webhook?project=abc123.
From then, you can read the query parameters from Express or whatever framework you like using either framework metadata in the Actions on Google library middleware or fulfill to a different app instance before hitting the client library via a routing library like express.

Hey @Canain, thanks for the quick response.
The conv.id definitely can be used as the session ID. I was just hoping the JSON request from Actions SDK would have the same info as DialogFlow has.
I was trying to avoid the query params on the webhook url, but I guess that's the only way out.

Actually, it turns out there is a way but involves reading the headers not the request body.
In headers, there should be key which in lowercase is authorization. This header is mainly used for verifying the request comes from Google but in order to do that it also contains an aud or audience value which is the project id.
If you decode this token with a library like jwt-decode, then you can extract out aud to get the project id.
So something like this could work if you are using Express or Firebase Functions:
npm install jwt-decode

const { actionssdk } = require('actions-on-google')
const jwtDecode = require('jwt-decode')

const app = actionssdk()

app.middleware((conv, framework) => {
  if (framework.express) {
    const token = framework.express.request.headers['authentication']
    const decoded = jwtDecode(token)
    conv.projectId = decoded.aud
  }
})

app.intent('actions.intent.MAIN', conv => {
  conv.ask(`Hello ${conv.projectId}`)
})

@Canain  Nice, it worked for me. Thanks.
I'm actually using AWS Lambda. But I'm facing another issue now: I'm trying to create/update Actions projects through an AWS Lambda and an EC2. The reason: My app provides a way to publish actions projects for third parties, so I need to automate the process of creating actions, but I couldn't find another way without using the "gactions CLI". So far I'm struggling connecting to EC2 through Lambda. Would you have idea if there's an API for that?

It's also worth knowing that you can get this from the environment variables on Google Cloud if running on Cloud Functions or App Engine.

There is no public API for project management, so you'd need to use gactions.

Ok, and if I'm using the Actions SDK, is there a way to update the Fulfillment Url directly on the web console? Or I'm always dependent on the gactions CLI?

You have to use the gaction tool for that. The SDK is only a client library for the webhook APIs.

@igilham Ok =\
Let's hope they have API's to better manage the actions in the future.

I just accidentally discovered another way to get the project Id, but from the credentials JSON.
go to https://dialogflow.com/docs/reference/v2-auth-setup, follow the instructions but be careful to choose choose 'API Admin' instead of 'API Client'
when you've got the JSON, add it to your config and read in the ['project_id'] property.
const projectId = credentials['project_id'];
That seems to work for me, and I hope i've not misunderstood your question~


Models for list view item and detail view

I'm fetching some data from 3rd party library to access their API.
For example, i created two use cases(FetchUserList and FetchUserDetail) to fetch user list and user detail.
The user list will be displayed in recycler view but only the user name part. And in user detail view, user name and company name will be displayed.
The model received from the server(API model, as in the library) as follow:
class User {
   String name;
   Int companyId;
   ...
}

class Company {
   Int id;
   String companyName;
   ...
}

What model should i create in my domain layer?
Should i create two models, one for the fetch user list use case and another one for fetch detail use case?
Seems the result model will be dictated by the view, in recycler view i don't need company name(exclude unnecessary data), but in the detail view i need to display more data.
I'm thinking something like below, but in the user list view case i do not need the Company data
class UserModel {
    String name;
    Company company;
}

What would you suggest?
Thank you.

Hi :)
If you want show only the name on the recyclerview, your model view only should be the name...
You can use a Mapper to pass the domain's layer to view's layer.

There's a difference between the Entities in your Domain Layer and the ViewModels in your View Layer. Both don't need to be "in sync" with each other.
So your Domain entity can be
class UserModel {
    int userid;
    String name;
    Company company;
}

And you can have 2 View Models
class UserListViewModel {
    String name;
    int id;
}

class UserDetailsViewModel {
    String name;
   int id;
   String companyName;
   String companyUrl;
   ...
}

Each Use Case can get a UserModel or a List (whatever applies), and that should then be mapped to the correct ViewModel for your usage per use case.

@Trikke
I see, so in the case of FetchUserList use case, i do not need to get the company data from company repository, this would make the UserModel.company nullable.

To build on this, the idea of mapping and having your view models is that you only put in there the data you need, so you can have different UserDetailsView models for different purposes coming from the same UserDomainModel

hello.
so in above case if user had an edit/submit screen does . it need to create different models for it. and covert those model into domain model?

There is a totally new approach that I have been working on, written in Kotlin:
https://fernandocejas.com/2018/05/07/architecting-android-reloaded/


Fix tag name errors

Fixes #271
Signed-off-by: Dave Thaler<EMAIL_ADDRESS>

ok for me!
Albert


ShadowDOM Support Broken

In the commit "fixed default context option" (493bf006436250453ac24e2a1dfbe46d798676c8) the changes made broke shadow dom support. We're currently using this date picker in the shadow dom and the picker is now added to the global document of the page instead of the shadow dom.
The following change in src/js/render.js is the root of the issue.
-	instanceOptions.context.appendChild(calendarDiv);
+	document.body.appendChild(calendarDiv);

This change was originally intended to allow the date picker to be added to any element rather than only the document root. This would allow the picker to be used in shadow dom as well as inside iframes and other areas that aren't in the global document.
Is there a way this functionality can be reinstated?

Hi,
This change was made because MCDatepicker uses one calendar node for all calendar instances.
Before this commit, the calendar node was added only to the context of the first instance.
For example:  if you have 2 instances, the first one using document.body as context and the second one shadow root,
in this case, MCDatepicker will append the calendar node only to the document.body (the context of the first instance). The second instance will use its context just to search the node with the id specified in the el option and add a listener to it.

I see. In order to fully support shadow dom the element would need to be inserted there.
Perhaps the package can be modified so that a date picker is inserted into each context? That way you maintain support for multiple pickers while also supporting shadow dom.

Yes, I think it's a good idea!

Hi @mikecoj any update about this shadow dom support?
This issue can be fixed adding one more options to append the picker to the given Element.
Ex: appendTo : shadowEle

Hi there,
unfortunately, there are no updates on this.
Due to my involvement in other big projects, I had to dedicate more time to them and less time to this one. I hope this will change soon.
If you've found the solution, I'll be happy to receive a PR from you.
Thank you!


Cannot Create Objects (Schema is Frozen)

Describe your issue in as much detail as possible.
When launching parse-server, I cannot create new objects (on an empty MongoDB database installation). I get the following response whenever trying to save an object:
{"code":107,"error":"schema is frozen, cannot add: GameScore"}
Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.

I launch the server using test values for things like 'appId', 'masterKey', etc.

I launch the following CURL request:

curl -X POST
-H "X-Parse-Application-Id: testId"
-H "Content-Type: application/json"
-d '{"score":1337,"playerName":"Sean Plott","cheatMode":false}'
http://localhost:1337/parse/classes/GameScore
#### Expected Results
Normally, I would get the following response:
{
"objectId": "2ntvSpRGIK",
"createdAt": "2016-03-11T23:51:48.050Z"
}
Actual Outcome
Instead, this is the error I get:
{"code":107,"error":"schema is frozen, cannot add: GameScore"}
Environment Setup

Server

parse-server version: 2.2.10
Operating System:    Ubuntu 14.04.2 LTS
Hardware:            AWS Ubuntu EC2 instance
Localhost or remote server? AWS - Problem occurs on both localhost (OS X) and AWS (Ubuntu 14.04.2)

Database

MongoDB version: 3.2
Storage engine:  WiredTiger
Hardware:        It is a t2.micro EC2 instance (1 vCPU, 1GB RAM), however it also has the same issue on my OS X machine (32GB RAM, Intel Xeon e5-2630)
Localhost or remote server? Localhost (attempted both with local MongoDB instances, both on AWS and OS X)

### Logs/Trace
npm info it worked if it ends with ok
npm verb cli [ '/usr/local/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'start',
npm verb cli   '--databaseURI',
npm verb cli   'mongodb://localhost:27017/parseServer',
npm verb cli   '--verbose' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb run-script [ 'prestart', 'start', 'poststart' ]
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>
<EMAIL_ADDRESS>start /home/ubuntu/parse-server-example-master
node index.js "mongodb://localhost:27017/parseServer"

It looks like if I use the parse-dashboard, and I create the classes involved, it appears to work just fine! I would appreciate any further help here though since I haven't been able to get the parse-dashboard to correctly serve up on EC2. Thanks!

Brad

Can you include the configuration you use to start your server?

I had exactly the same issue and the only way to find out was eliminating all differences between the standard application (parse-server-example) and my own (there is a bunch of cloud code there), basically commented all cloud code related stuff. So than I started uncommenting importing + 1 file each iteration until I found the error! In my case it was the custom Array.prototype function.
Array.prototype.getUnique = function() {
   var u = {}, a = [];
   for(var i = 0, l = this.length; i < l; ++i) {
      if(u.hasOwnProperty(this[i])) {
         continue;
      }
      a.push(this[i]);
      u[this[i]] = 1;
   }
   return a;
}

Excellent! That completely fixed my issue. With that one little adjustment my Parse server is now running just as well as it did on Parse itself, everything works. Thank you so much BrainDDump. I really appreciate it.

@Nightsd01 @BrainDDump so any Array.prototype will affect the login? How are they related. I have the following in my cloud code but not related to login.
Array.prototype.randomElement = function () {
    return this[Math.floor(Math.random() * this.length)]
}


Update Mocha link

Coverage remained the same at 100.0% when pulling fea5ac83c2c9fc6a872f85361467486a5668206a on mortonfox:patch-1 into f69b01a1718252fa12190df7ad12d8cad08b4263 on compute-io:master.


Add check to see if the cache file has been opened successfully.

Add check after trying to create or open the cache file and log errors when it fails.

Signed the CLA.

Try again for the CLA.

/cc @Sarsate


Update es-base.json

Translated Unlocalized Entries.

Cant wait until tags are part of the editor! They seem super powerful!

Thank you for updating the translations.


fuzzier json number equatable

One potential implementation of fuzzier json number equality. When creating a double, I don't know how to check if below Double max similar to others if someone has suggestions.

@czechboy0 totally right, just updated!

Cool, just left one comment for something that I think should be fixed. Once that's done I'll merge, thanks @LoganWright! (Even though it's not 100% correct (Int.max gets cut when converted to Double), but 99.99% might be good enough here, it definitely is easier to use)


Fix silent test failures in test-size.R

This addresses #363 and #395 by avoding the try(test_that()) idiom in the helper functions test_size() and test_size_specific_error(). This fix surfaced a few new failures and a few previous failures that have silently been fixed.
@paciorek After this PR it should no longer be necessary to compare the text outputs against a golden file.
any change will be considered an error (both pass-to-fail and fail-to-pass). All changes will need to be accounted for in the knownProblem arguments. But at least we're more automated :smile: .
Note that the automated checking against golden knownProblem values required splitting that flag into a finer-grained pair of flags knownProblem and knownProblemWithConst.

I can't keep up with this right now. Feel free to do as you see fit and
I'll connect back in next week. An in person discussion might be helpful to
make sure we are all on the same page of how we want our testing process to
work.
On Wed, May 31, 2017 at 3:43 PM, Fritz Obermeyer<EMAIL_ADDRESS>wrote:

@fritzo commented on this pull request.
In packages/nimble/inst/tests/test_utils.R
https://github.com/nimble-dev/nimble/pull/400#discussion_r119492323:

     m <- nimbleModel(code = input$expr, data = input$data, inits = input$inits)

)
try(test_that(paste0("Test 1 of size/dimension check: ", input$name),

             expect_equal(!is(result, "try-error"), input$expectPass,

                         info = errorMsg)))

if(!is(result, "try-error")) {

   result <- try(

       { calculate(m); out <- calculate(m)} )

   try(test_that(paste0("Test 2 of size/dimension check: ", input$name),

                 expect_equal(!is(result, "try-error"), input$expectPass,

                             info = errorMsg)))

   calculate(m)  ## Calculates from scratch.

   calculate(m)  ## Uses cached value.

I was blindly preserving the existing code. @paciorek
https://github.com/paciorek ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nimble-dev/nimble/pull/400#discussion_r119492323, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACYr3hoYrBkNON4OSADILnH3NhNFuDYCks5r_e0RgaJpZM4NsQ6b
.

@perrydv Do you mind if I merge this?


Create a flatpak after each release

It'd be useful to have a nightly flatpak release that's automated

The flathubs repo yml file could be a starting point to get this implemented https://github.com/flathub/io.freetubeapp.FreeTube/blob/master/io.freetubeapp.FreeTube.yml
The maintainer of the Nightly AUR's repo could also be a resource
https://github.com/curbengh/freetube-nightly/releases


Allow custom stub file to be used for board.

allow custom stub file for board.
the custom path will be in /stubs/filament-kanban/board.stub.   if custom file  not found then we use the default one.

Thanks for the PR, but if you want this to be included in v2 you'll have to PR against the v2 branch.
The main branch has moved and will be present in v3.
Also, please make these changes:

Make sure to fix the styling. You can run pint for this.
Get rid of the $stub variable and inline it.
Get rid of the trim function since this method is not dynamic.

Thanks


Reorder menu screens

As discussed a while ago, I suggest that we change the order of menu screens so that the preview screen becomes the last screen before starting the game.
Then, modules are loaded before the preview screen opens and not reloaded for the actual game. As a consequence, the loading process becomes faster and the preview supports the full module environment (e.g. works with TtA). This should simply the code structure somewhat since the partial loading of the module environment will become obsolete.
Related:

redesign UI layout to get more space for content
list modules that will be loaded in the gameplay selection screen
add wait-dialog while modules are loading

Imho, this is the next big thing on the agenda.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/29205616-reorder-menu-screens?utm_campaign=plugin&utm_content=tracker%2F5279&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F5279&utm_medium=issues&utm_source=github).

Sounds great! Could be one step toward an eventual "world map" generation phase for world types that call for it? Think Dwarf Fortress or a PlaTec live integration/port. That's not yet but good direction :-)


Design breakages after merging one of recent PRs

So when trying to connect to another device like a Google Home device, the UI is basically broken, nothing shows up other than an text saying "Select another device" outside of the UI.

We will look into this issue asap
Sorry for the inconvenience
And thanks for reaching out

Happens after one of the PRs, which I didn't have time to look into.

The same PR also causes this design inconsistency on Linux:

So I suggest we change the subject to "Design breakages after merging one of recent PRs" instead for better traceability.

@windowz414 Ill go through all the recent commits and check what we missed. Asap
Thanks

@nimsandu, take your time, no need to rush. <3

Im experiencing the same error and after reading the answers here, I looked in the commits and clicked on a random one, a3db56fae6e586446ba01cc6871d4516cba90a73 and saw the merge of the pull-request #135 and since it said something with max-width in user.css I deleted this line and now the devices container just works fine!

Im experiencing the same error and after reading the answers here, I looked in the commits and clicked on a random one, a3db56f and saw the merge of the pull-request #135 and since it said something with max-width in user.css I deleted this line and now the devices container just works fine!

Time to turn it into a PR. Thanks @L3-N0X!

Today I tried to fix it on an other device and I applied the Bloom theme with only this one line deleted, and then the error still existed, so I added width: 200px; in the user.css for the device container. Then everything was fine, but I'm not sure if this is necessary because applying the theme was buggy for me because I had installed it twice, from marketplace and manually. So if just deleting the line is not helping, this may be changed somehow too. On the first device I may also had the line with width:200px; still in the user.css

@L3-N0X  @windowz414 would you look into #147 pr
He referenced another commit
Please

I think its the same commit, one of it is the merge of this and the other one is just the fix. Anyways both solutions talk about the same line and same fix in the user.css

@L3-N0X thanks a lot.
we will merge it once @windowz414 conform the validity.
i'm not going to take any risks now🥲

@windowz414 oh sorry, i forgot about this issue page. i closed #145 . now we can rename this issue as linux play/pause button issue right?

@windowz414 oh sorry, i forgot about this issue page. i closed #145 . now we can rename this issue as linux play/pause button issue right?

I...guess so. Do whatever you feel is right, @nimsandu.

@windowz414 oh sorry, i forgot about this issue page. i closed #145 . now we can rename this issue as linux play/pause button issue right?

I...guess so. Do whatever you feel is right, @nimsandu.

Issue is better in current topic. @windowz414 I guess

@windowz414 hello! are we ready to close this issue?

@nimsandu, unfortunately no, it still happens on Linux...

@nimsandu, unfortunately no, it still happens on Linux...
What exactly is the problem? Is it the buttons or the devices menu?

@nimsandu, unfortunately no, it still happens on Linux...

What exactly is the problem? Is it the buttons or the devices menu? All buttons issues should be fixed with this pr

https://github.com/nimsandu/spicetify-bloom/issues/138#issuecomment-1358869901
I'll try installing Bloom on my Chromebook's Linux Development Environment and see how it rolls.

Yep, seems all fine now, safe to close this issue.

Yep, seems all fine now, safe to close this issue. (Sorry, I couldn't take proper screenshot on my Chromebook.)

its alright @windowz414 !
thanks @SunsetTechuila


aws_iot: failed! mbedtls_ssl_handshake returned -0x6800 (IDFGH-3542)

Environment

Development Kit:      [none]
Kit version (for WroverKit/PicoKit/DevKitC): [v1|v2|v3|v4]
Module or chip used:  [ESP32]
IDF version (run git describe --tags to find it): v3.3
Build System:         [Make]
Compiler version (run xtensa-esp32-elf-gcc --version to find it): 1.22.0-80-g6c4433a
Operating System:     [Linux]
(Windows only) environment type:
Using an IDE?: [No]
Power Supply:         [external 3.3V]

Problem Description
After power up, sometimes device can not connect to AWS, then i make it restart use esp_restart, usually it is work well, i din't know where is the problem
Expected Behavior
Actual Behavior
Steps to reproduce
just power up device, usually i can get this problem
Code to reproduce this issue

void app_main()
{
    somecode;
    xTaskCreate(aws_iot_task, "aws_iot_task", 5120, NULL, 8, &pTaskAWSIotHandle);
}

void aws_iot_task(void *param)
{
    somecode;
    connectParams.keepAliveIntervalInSec = 60;
    connectParams.isCleanSession = true;
    connectParams.MQTTVersion = MQTT_3_1_1;
    /* Client ID is set in the menuconfig of the example */
    connectParams.pClientID = thingID;
    connectParams.clientIDLen = (uint16_t) strlen(thingID);
    connectParams.isWillMsgPresent = false;

    ESP_LOGI(TAG, "Connecting to AWS...");
    ESP_LOGD(TAG, "Stack remaining for task '%s' is '%d' bytes", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL));
    ESP_LOGD(TAG, "Free memory for application is '%d' bytes", esp_get_free_heap_size());
    // uint8_t conn_retry_cnt = 0;
    do {
        rc = aws_iot_mqtt_connect(&client, &connectParams);
        if(SUCCESS != rc) {
            ESP_LOGE(TAG, "Error(%d) connecting to %s:%d", rc, mqttInitParams.pHostURL, mqttInitParams.port);
            vTaskDelay(1000 / portTICK_RATE_MS);

            // if (++conn_retry_cnt > 15){
                // ESP_LOGE(TAG, "Failed to connecting to AWS more than 15 times, AWS task is going to be delete");
                ESP_LOGE(TAG, "Failed to connecting to AWS, reboot device");
                vTaskDelay(1000 / portTICK_RATE_MS);
                esp_restart();
            // }
        }
    } while(SUCCESS != rc);
}

Debug Logs
I (3861) main: Device connected to ap
I (3871) AWS Iot: AWS IoT SDK Version 3.0.1-
I (3871) tcp handle: master socket create success, socket fd: 54
I (3871) AWS Iot: Connecting to AWS...
I (3881) tcp handle: master socket bind success
D (3881) AWS Iot: Stack remaining for task 'aws_iot_task' is '3396' bytes
I (3891) tcp handle: master socket is listening on port 10000
D (3891) AWS Iot: Free memory for application is '4340516' bytes
I (3901) tcp handle: Waiting for TCP connections ...
D (3911) tcp handle: update readfds:        0
E (15291) aws_iot: failed! mbedtls_ssl_handshake returned -0x6800
E (15291) AWS Iot: Error(-4) connecting to a2f8ob0zg2vz65.iot.ap-northeast-1.amazonaws.com:8883
E (16291) AWS Iot: Failed to connecting to AWS, reboot device
I (17291) wifi: state: run -> init (0)
I (17291) wifi: pm stop, total sleep time: 7051647 us / 15152406 us

I (17291) wifi: new:<2,0>, old:<2,0>, ap:<255,255>, sta:<2,0>, prof:1
E (17291) event: system_event_sta_disconnected_handle_default 294 esp_wifi_internal_reg_rxcb ret=0x3014
E (17301) wifi: esp_wifi_connect 1134 wifi not start
I (17311) wifi: flush txq
I (17311) wifi: stop sw txq
I (17311) wifi: lmac stop hw txq
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:6356
load:0x40078000,len:11624
load:0x40080400,len:6648
entry 0x40080764
I (29) boot: ESP-IDF v3.3-dirty 2nd stage bootloader
I (29) boot: compile time 18:03:31
I (29) boot: Enabling RNG early entropy source...
I (34) boot: SPI Speed      : 40MHz
I (38) boot: SPI Mode       : DIO
I (42) boot: SPI Flash Size : 4MB
I (46) boot: Partition Table:
I (50) boot: ## Label            Usage          Type ST Offset   Length
I (57) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (64) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (72) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (79) boot:  3 ota_0            OTA app          00 10 00010000 001d0000
I (87) boot:  4 ota_1            OTA app          00 11 001e0000 001d0000
I (94) boot:  5 custom_data      unknown          40 00 003b0000 00020000
I (102) boot: End of partition table
I (106) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x33c08 (211976) map
I (190) esp_image: segment 1: paddr=0x00043c30 vaddr=0x3ffb0000 size=0x045b0 ( 17840) load
I (197) esp_image: segment 2: paddr=0x000481e8 vaddr=0x40080000 size=0x00400 (  1024) load
I (198) esp_image: segment 3: paddr=0x000485f0 vaddr=0x40080400 size=0x07a20 ( 31264) load
I (218) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018 size=0xb20f4 (729332) map
I (474) esp_image: segment 5: paddr=0x00102114 vaddr=0x40087e20 size=0x0db7c ( 56188) load
I (511) boot: Loaded app from partition at offset 0x10000
I (511) boot: Disabling RNG early entropy source...
I (512) psram: This chip is ESP32-D0WD
I (517) spiram: Found 64MBit SPI RAM device
I (521) spiram: SPI RAM mode: flash 40m sram 40m
I (526) spiram: PSRAM initialized, cache is in low/high (2-core) mode.
I (533) cpu_start: Pro cpu up.
I (537) cpu_start: Application information:
I (542) cpu_start: Project name:     IR_extender_ESP32
I (548) cpu_start: App version:      c909cff-dirty
I (553) cpu_start: Compile time:     Jun 24 2020 10:12:41
I (559) cpu_start: ELF file SHA256:  2348dc17122ab4da...
I (565) cpu_start: ESP-IDF:          v3.3-dirty
I (570) cpu_start: Starting app cpu, entry point is 0x400816ac
I (562) cpu_start: App cpu up.
I (1461) spiram: SPI SRAM memory test OK
I (1719) heap_init: Initializing. RAM available for dynamic allocation:
D (1726) heap_init: New heap initialised at 0x3ffae6e0
I (1732) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
D (1738) heap_init: New heap initialised at 0x3ffbdd68
I (1743) heap_init: At 3FFBDD68 len 00022298 (136 KiB): DRAM
I (1749) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (1756) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
D (1762) heap_init: New heap initialised at 0x4009599c
I (1767) heap_init: At 4009599C len 0000A664 (41 KiB): IRAM
I (1774) cpu_start: Pro cpu start user code
I (1779) spiram: Adding pool of 4096K of external SPI memory to heap allocator
D (1794) clk: RTC_SLOW_CLK calibration value: 3247526
D (126) intr_alloc: Connected src 46 to int 2 (cpu 0)
D (126) intr_alloc: Connected src 57 to int 3 (cpu 0)
D (127) intr_alloc: Connected src 24 to int 9 (cpu 0)
D (132) efuse: coding scheme 0
D (135) efuse: In EFUSE_BLK0__DATA3_REG is used 1 bits starting with 15 bit
D (142) efuse: coding scheme 0
D (145) efuse: In EFUSE_BLK0__DATA5_REG is used 1 bits starting with 20 bit
I (152) cpu_start: Chip Revision: 1
W (156) cpu_start: Chip revision is higher than the one configured in menuconfig. Suggest to upgrade it.
I (166) cpu_start: Starting scheduler on PRO CPU.
D (0) intr_alloc: Connected src 25 to int 2 (cpu 1)
I (0) cpu_start: Starting scheduler on APP CPU.
D (182) heap_init: New heap initialised at 0x3ffe0440
D (192) heap_init: New heap initialised at 0x3ffe4350
I (202) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
D (202) spiram: Allocating block of size 32768 bytes
D (212) intr_alloc: Connected src 16 to int 12 (cpu 0)
I (262) gpio: GPIO[25]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (262) gpio: GPIO[26]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (262) gpio: GPIO[27]| InputEn: 1|int is not set, use default
I (352) wifi: wifi driver task: 3ffce01c, prio:23, stack:3584, core=0
I (352) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (352) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (392) wifi: wifi firmware version: aeed694
I (392) wifi: config NVS flash: enabled
I (392) wifi: config nano formating: disabled
I (392) wifi: Init dynamic tx buffer num: 32
I (392) wifi: Init data frame dynamic rx buffer num: 32
I (402) wifi: Init
                   I (532) phy: phy_version: 4102, 2fa7a43, Jul 15 2019, 13:06:06, 0, 0
I (532) wifi: mode : sta (c4:4f:33:55:08:31)
I (532) main: ===========Firmware(1.0.0) build time: D (532) intr_alloc: Connected src 15 to int 3 (cpu 1)
Jun 24 2020 16:08:01==========
I (532) main: SYSTEM_EVENT_STA_START
I (532) gpio: GPIO[18]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:2
 (562) intr_alloc: Connected src 22 to int 4 (cpu 1)
;D (562) intr_alloc: Connected src 14 to int 9 (cpu 1)
32mI (552) main: Found ssid HeyGoogle
I (572) main: Found password remotecvpn
I (582) main: Connecting to HeyGoogle ...
I (702) wifi: new:<2,0>, old:<1,0>, ap:<255,255>, sta:<2,0>, prof:1
I (1842) wifi: state: init -> auth (b0)
I (1872) wifi: state: auth -> assoc (0)
I (1922) wifi: state: assoc -> run (10)
I (2062) wifi: connected with HeyGoogle, channel 2, HT20, bssid = ec:41:18:ef:6a:66
I (2142) wifi: pm start, type: 1

I (2862) event: sta ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (2862) main: SYSTEM_EVENT_STA_GOT_IP: 3712a8c0
I (2862) main: Device connected to ap
I (2862) AWS Iot: AWS IoT SDK Version 3.0.1-
I (2862) tcp handle: master socket create success, socket fd: 54
I (2882) AWS Iot: Connecting to AWS...
I (2882) tcp handle: master socket bind success
I (2892) tcp handle: master socket is listening on port 10000
D (2892) AWS Iot: Stack remaining for task 'aws_iot_task' is '3396' bytes
I (2892) tcp handle: Waiting for TCP connections ...
D (2902) tcp handle: update readfds:        0
D (2912) AWS Iot: Free memory for application is '4340520' bytes
D (18832) AWS Iot: sub topic: $aws/things/BW8453_550831/shadow/update/accepted
D (18832) AWS Iot: pub topic: $aws/things/BW8453_550831/shadow/update
I (18832) AWS Iot: Subscribing...
D (18982) AWS Iot: Stack remaining for task 'aws_iot_task' is '1252' bytes
I (18982) AWS Iot: Subscribed, Free memory for application is '4313284' bytes

@lxdemon Thanks for reporting, we will look into.

@lxdemon same problem here.

@lxdemon , the below lines indicate SSL timed out which generally can occur due to a network issue.
E (15291) aws_iot: failed! mbedtls_ssl_handshake returned -0x6800
E (15291) AWS Iot: Error(-4) connecting to a2f8ob0zg2vz65.iot.ap-northeast-1.amazonaws.com:8883

Did you have the 15 attempts logic always commented out? What happens if you keep retrying for some time?
Meanwhile, on a completely unrelated note, you need to use the new iot:Data-ATS MQTT endpoint as per Amazon's recommendations.

@lxdemon @alibasta Thanks for reporting, would you please help share if any updates for this issue? Thanks.

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates, thanks.

Hie @Alvin1Zhang, I am facing the same issue is there been any progress or is the issue been resolved because I am getting the same issue I am using esp-idf version 4.3.
I (6773) aws_iot: Shadow Connect
D (6773) aws_iot: Seeding the random number generator...
D (6783) aws_iot: Loading CA root certificate from file ...
D (6783) aws_iot: ok (0 skipped)
D (6793) aws_iot: Loading client cert from file...
D (6793) aws_iot: Loading client private key from file...
D (6803) aws_iot: ok
D (6803) aws_iot: Connecting to a3nwac7rt2fwp8-ats.iot.us-west-2.amazonaws.com/8883...
D (8493) aws_iot: ok
D (8493) aws_iot: Setting up the SSL/TLS structure...
D (8493) aws_iot: SSL state connect : 0
D (8493) aws_iot: ok
D (8493) aws_iot: SSL state connect : 0
D (8493) aws_iot: Performing the SSL/TLS handshake...
E (13503) aws_iot: failed! mbedtls_ssl_handshake returned -0x6800
E (13503) aws_iot: Shadow Connection Error
E (13503) run_device: Device exited with error from the manage_device_states function.


cell proliferation

I thought we were making this "not for direct annotation"? I still see lots of annotations, so i checked and I don't see any indication that only children should be annotated?

The rule has been created; it just needs to be implemented.
https://github.com/geneontology/go-site/blob/master/metadata/rules/gorule-0000051.md


ORM

I made an orm for https://github.com/AlexPikalov/cdrs a while ago: https://github.com/Jasperav/cdrs_orm. In short:

A lot of pre-generated queries (https://github.com/Jasperav/cdrs_orm/blob/master/cdrs_db_mirror/test_derived_equals/src/gen/generated_some_struct.rs)
Compile time type checked queries: https://github.com/Jasperav/cdrs_orm/blob/master/cdrs_query/cdrs_query_example/src/lib.rs
Automatic table mapping to Rust structs: https://github.com/Jasperav/cdrs_orm/blob/master/cdrs_to_rust/src/test_result/test_table.rs
JSON mapping: https://github.com/Jasperav/cdrs_orm/blob/master/cdrs_db_mirror/example_db_mirror/src/lib.rs

I see that Scylla has an ORM for Go: https://github.com/scylladb/gocqlx.
I think it's a good idea to make an ORM for this crate when it is production ready, maybe we can use cdrs_orm (my crate) as a starting point. I can help with the migration.

I assume it will take a while to make this crate production ready, so for the time being I cancel this issue.

It's actually perfectly fine for this issue to stay, even for a long time, so that people know it's on the roadmap - the decision is yours as the author, but feel free to reopen anytime :)

Any updates? I really want an orm for scylla in Rust

@Milo123459 I still want to migrate/rewrite the orm, but I won't do it until https://github.com/scylladb/scylla-rust-driver/issues/231 is fixed

Now that https://github.com/scylladb/scylla-rust-driver/pull/294 is a thing, once that is merged, will this be reopened?

@Milo123459 Yes once it is merged it takes some time to rewrite the cdrs_orm but I will be working on it :)

Wooooooooooooo!


Drop support for Python 3.6 due to end-of-life of that distribution.

Codecov Report

Merging #46 (ba749e8) into main (fc90b42) will decrease coverage by 6.61%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##              main      #46      +/-   ##
===========================================
- Coverage   100.00%   93.38%   -6.62%
===========================================
  Files            7        7
  Lines          363      363
===========================================
- Hits           363      339      -24
- Misses           0       24      +24

Impacted Files
Coverage Δ

.../statick_web/plugins/tool/stylelint_tool_plugin.py
85.29% <0.00%> (-14.71%)
:arrow_down:

src/statick_web/plugins/tool/eslint_tool_plugin.py
87.12% <0.00%> (-12.88%)
:arrow_down:

...c/statick_web/plugins/tool/htmllint_tool_plugin.py
98.33% <0.00%> (-1.67%)
:arrow_down:

Continue to review full report at Codecov.

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


ES Curator seemingly not deleting indices

To be investigated. Logs seem to indicate no work is being done (no matching indices found).

Moving to 1.0.0. Will be documented as (possible) known issue for 0.1.0.

I'm no longer observing this on my cluster, to the contrary:
kubectl logs --namespace=kube-ops curator-1531526460-jz7fk
2018-07-14 00:01:11,014 INFO      Preparing Action ID: 1, "delete_indices"
2018-07-14 00:01:11,023 INFO      Trying Action ID: 1, "delete_indices": Clean up ES by deleting old indices
2018-07-14 00:01:11,067 INFO      Deleting selected indices: ['logstash-2018.07.10', 'logstash-2018.07.11', 'logstash-2018.07.05', 'logstash-2018.07.06', 'logstash-2018.07.09', 'logstash-2018.07.07', 'logstash-2018.07.04', 'logstash-2018.07.03']
2018-07-14 00:01:11,067 INFO      ---deleting index logstash-2018.07.10
2018-07-14 00:01:11,067 INFO      ---deleting index logstash-2018.07.11
2018-07-14 00:01:11,067 INFO      ---deleting index logstash-2018.07.05
2018-07-14 00:01:11,068 INFO      ---deleting index logstash-2018.07.06
2018-07-14 00:01:11,068 INFO      ---deleting index logstash-2018.07.09
2018-07-14 00:01:11,068 INFO      ---deleting index logstash-2018.07.07
2018-07-14 00:01:11,068 INFO      ---deleting index logstash-2018.07.04
2018-07-14 00:01:11,068 INFO      ---deleting index logstash-2018.07.03
2018-07-14 00:01:18,216 INFO      Action ID: 1, "delete_indices" completed.
2018-07-14 00:01:18,216 INFO      Job completed.

I believe 'old' indices came back because of fluentd Pod restarts at which time the 'last seen' files are gone, and fluentd (re-)submits all logs it finds.
Not closing for now to get more validation, but may be a case of 'nothing to see here'.

Running 1.0.0-RC2:
(metal-k8s) $kubectl --namespace=kube-ops exec -ti es-data-0 curl http://elasticsearch:9200/_cat/indices
green open logstash-2018.07.12 7jhnmRS3QmicAHoUygjNsg 5 1 4846909 0 6.1gb   3gb
green open logstash-2018.07.14 0zntZbdBSry5hL3awQbDTQ 5 1 3914695 0 5.4gb 2.6gb
green open logstash-2018.07.13 sMoc3MguTsuN1CHMaUwgNg 5 1 4862429 0 6.2gb 3.1gb

See #148

Just incase, this was the result of my indicies
kubectl --namespace=kube-ops exec -ti es-data-1 curl http://elasticsearch:9200/_cat/indices
green open logstash-2018.07.13 tUA34q67TB6hhyceTJFhzg 5 1   65611 0 76.1mb  38.1mb
green open logstash-2018.07.12 sOmkvKHdScKWdAQxC1IHSQ 5 1   63932 0 74.2mb  37.1mb
green open logstash-2018.07.15 lW8h3k5SSsK_vN-4eeT6OQ 5 1 1510984 0  1.8gb 973.3mb
green open logstash-2018.07.09 XsLPJ9cVQfi4rMRM2Vm-JQ 5 1   42013 0   40mb  19.9mb
green open logstash-2018.07.10 vzBulrBfT8iMtPCywlzPvA 5 1   64717 0 74.9mb  37.4mb
green open logstash-2018.07.11 AkKrGGebR2CWOgTNTCYqTA 5 1   68011 0 79.6mb  39.9mb
green open logstash-2018.07.17 6z9L6JhNTU6_FpuKHWuukg 5 1 5706754 0  8.6gb   3.6gb
green open logstash-2018.07.16 6EiLI7nGQF67QoUFUf-ViA 5 1 6376584 0  5.9gb   2.9gb
green open logstash-2018.07.14 op8-I6YlTjy45vrBDD1CAA 5 1   43140 0 50.6mb  25.4mb

@ssalaues Could it be your fluentd daemons were restarted recenty? Could you check again after the next run of Curator, and check the Curator job logs?

The entire cluster was shutdown over the weekend and brought back up so that may be the restart? But the daemon has the Age of the cluster.
This is from the last Curator run but I'll post tomorrow when it runs again.
2018-07-15 00:01:05,523 INFO      Preparing Action ID: 1, "delete_indices"
2018-07-15 00:01:05,537 INFO      Trying Action ID: 1, "delete_indices": Clean up ES by deleting old indices
2018-07-15 00:01:05,706 INFO      Deleting selected indices: ['logstash-2018.07.09', 'logstash-2018.07.11', 'logstash-2018.07.10', 'logstash-2018.07.12']
2018-07-15 00:01:05,706 INFO      ---deleting index logstash-2018.07.09
2018-07-15 00:01:05,706 INFO      ---deleting index logstash-2018.07.11
2018-07-15 00:01:05,706 INFO      ---deleting index logstash-2018.07.10
2018-07-15 00:01:05,707 INFO      ---deleting index logstash-2018.07.12
2018-07-15 00:01:07,102 INFO      Action ID: 1, "delete_indices" completed.
2018-07-15 00:01:07,102 INFO      Job completed.

Also just realized that I was using a version just a couple days older than 0.1.0. I'll deploy a new one based off the release.


Add pre-commit GitHub workflow

Adds GitHub action for pre-commit
Adds Python linting

Similiar to cal-itp/eligibility-server#14

@machikoyasuda This PR is ready for your review!

@angela-tran Could you add the basic repo set up command instructions? I think I can guess them, but I don't want to mess it up and want to set it up as you've intended!

@machikoyasuda Sure thing. Just to make sure I understand, do you mean instructions kind of like these: https://docs.calitp.org/eligibility-server/#getting-started-with-the-app?

@machikoyasuda Sure thing. Just to make sure I understand, do you mean instructions kind of like these: https://docs.calitp.org/eligibility-server/#getting-started-with-the-app?

yes! just the basic commands to clone, build and run the container

@machikoyasuda I added a home page and a "Getting started" page to the docs, which, if approved, means we can close #9 🎉
Here is the rendered output that I see locally:

You should be able to just open the devcontainer in VS Code without having to build anything beforehand.


enable continuous background refresh for delta tables

@PeterKeDer can you give this commit a try?

@houqp what's the remaining tasks for this PR?


image failed to produce saying not enough memory

Using seed: 33636
Prompt: Create an realistic anime-style portrait of a black female character,  with the following characteristics:
Clean, smooth lines
Vibrant, soft colors (like pastels)
Slightly smiling facial features
expressive eyes with highlights
Soft shading for depth
long hair, lots of curls, green eyes
A warm, friendly smile
Dressed in dark suit, talking to students in auditorium, standing in behind a  podium speaking into a microphone
[!] Resizing input image from 2048x2560 to 2048x2560
[!] img2img mode
[!] Using schnell model for img2img
Using schnell model
Loaded LoRAs in 9.21s
0%|          | 0/16 [00:00<?, ?it/s]
6%|▋         | 1/16 [00:04<01:05,  4.37s/it]
12%|█▎        | 2/16 [00:09<01:10,  5.04s/it]
19%|█▉        | 3/16 [00:15<01:08,  5.26s/it]
25%|██▌       | 4/16 [00:20<01:04,  5.36s/it]
31%|███▏      | 5/16 [00:26<00:59,  5.41s/it]
38%|███▊      | 6/16 [00:31<00:54,  5.45s/it]
44%|████▍     | 7/16 [00:37<00:49,  5.47s/it]
50%|█████     | 8/16 [00:42<00:43,  5.48s/it]
56%|█████▋    | 9/16 [00:48<00:38,  5.49s/it]
62%|██████▎   | 10/16 [00:54<00:33,  5.50s/it]
69%|██████▉   | 11/16 [00:59<00:27,  5.52s/it]
75%|███████▌  | 12/16 [01:05<00:22,  5.52s/it]
81%|████████▏ | 13/16 [01:10<00:16,  5.53s/it]
88%|████████▊ | 14/16 [01:16<00:11,  5.53s/it]
94%|█████████▍| 15/16 [01:21<00:05,  5.54s/it]
100%|██████████| 16/16 [01:27<00:00,  5.54s/it]
100%|██████████| 16/16 [01:27<00:00,  5.45s/it]
Traceback (most recent call last):
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/cog/server/worker.py", line 354, in _predict
result = predict(**payload)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "/src/predict.py", line 391, in predict
output = pipe(**common_args, **flux_kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/pipelines/flux/pipeline_flux_img2img.py", line 835, in call
image = self.vae.decode(latents, return_dict=False)[0]
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/utils/accelerate_utils.py", line 46, in wrapper
return method(self, *args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/models/autoencoders/autoencoder_kl.py", line 321, in decode
decoded = self._decode(z).sample
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/models/autoencoders/autoencoder_kl.py", line 292, in _decode
dec = self.decoder(z)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/models/autoencoders/vae.py", line 337, in forward
sample = up_block(sample, latent_embeds)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/models/unets/unet_2d_blocks.py", line 2750, in forward
hidden_states = upsampler(hidden_states)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1553, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1562, in _call_impl
return forward_call(*args, **kwargs)
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/diffusers/models/upsampling.py", line 169, in forward
hidden_states = F.interpolate(hidden_states, scale_factor=2.0, mode="nearest")
File "/root/.pyenv/versions/3.10.15/lib/python3.10/site-packages/torch/nn/functional.py", line 4050, in interpolate
return torch._C._nn.upsample_nearest2d(input, output_size, scale_factors)
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate 15.00 GiB. GPU 0 has a total capacity of 79.10 GiB of which 3.74 GiB is free. Process 3089351 has 75.35 GiB memory in use. Of the allocated memory 63.90 GiB is allocated by PyTorch, and 10.78 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

Prediction failed.
Not enough memory available to process your request. Try reducing the size or number of any file inputs or outputs.
More details
CUDA out of memory. Tried to allocate 15.00 GiB. GPU 0 has a total capacity of 79.10 GiB of which 3.74 GiB is free. Process 3089351 has 75.35 GiB memory in use. Of the allocated memory 63.90 GiB is allocated by PyTorch, and 10.78 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation.  See documentation for Memory Management  (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

Hi @bsandmg. This looks like an error in the model rather than the Python client. If CUDA is running out of memory, then the problem is most likely that the model is configured to run on hardware that isn't supported. My advice would be to reach out to the owner of the model for help.


Update Titan

Update Titan to current master.
Signed-off-by: Yi Wu<EMAIL_ADDRESS>

Closing in favor of #336


Refactor to prevent macOS crashing on 3D->2D with visible Surface

Run CI

Codecov Report
Patch coverage: 100.00% and project coverage change: -0.04 :warning:

Comparison is base (45044be) 89.79% compared to head (2bb804a) 89.75%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
- Coverage   89.79%   89.75%   -0.04%
==========================================
  Files         611      611
  Lines       51574    51568       -6
==========================================
- Hits        46311    46285      -26
- Misses       5263     5283      +20

Impacted Files
Coverage Δ

napari/_vispy/layers/surface.py
93.02% <100.00%> (+0.63%)
:arrow_up:

... and 6 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Asynchronous item store

Data driven components like DataList<T>, DataTable<T> or CardView<T> use an ItemsStore<T> which is based on Items<T>.
Currently Items<T> and ItemsStore<T> are implemented in a way that expect all items to be present on the client in memory. Operations like filtering, sorting and paging are executed on the items in memory. This does not scale for large sets of items.
This feature request is about implementing an asynchronous version of Items<T> and / or ItemsStore<T>. This should be done in a way that integrates as smoothly as possible with the existing API. Optimally, the asynchronous variant should be able to be used in the same way as the synchronous variant.

I propose that components shouldn't take an ItemsStore at all (or any such hard coded strategies, even SortInfo...), maybe the Inversion Of Control principal should be applied here and just have them depend on interfaces that isolate only what they really need...
Also, I was wondering why you didn't use fritz2's concept of Repositories instead of Items? There's a concept of local repositories and remote there already...
And third thing, it might be worth it to replace ItemsStore with ItemsPageStore... which would only represent one page of data, then the repository could be used to paginate between pages. There could be a current page to such a store.

I propose that components shouldn't take an ItemsStore at all (or any such hard coded strategies, even SortInfo...), maybe the Inversion Of Control principal should be applied here and just have them depend on interfaces that isolate only what they really need...
Also, I was wondering why you didn't use fritz2's concept of Repositories instead of Items? There's a concept of local repositories and remote there already...
And third thing, it might be worth it to replace ItemsStore with ItemsPageStore... which would only represent one page of data, then the repository could be used to paginate between pages. There could be a current page to such a store.

Good points. The motivation behind the current implementation was to get you going as quick and as simple as possible. In the meantime fritz2 came up with repositories which is definitely something which might be useful resp. could replace the current implementation.

Good points. The motivation behind the current implementation was to get you going as quick and as simple as possible. In the meantime fritz2 came up with repositories which is definitely something which might be useful resp. could replace the current implementation.


Optionally Bundle Fonts

This isn't a pressing issue, but I decided to do a little experiment today in regards to the executable size of Neovide.
These were created with cargo build --release

While the fallback fonts are nice to have, it does make the resulting executable rather large. It might be worth making a way to opt out of font bundling.

I added an embed-fonts feature which triggers the font embedding.
The default features are now sdl2-static-link and embed-fonts. So doing a build without embedded fonts but normal everything else would look like this: cargo build --release --no-default-features --features sdl2-static-link.
Let me know if that works for you. I'm closing for now. Please reopen if you have further troubles with this feature.


Fix overflow

Fixes int overflow cause pulsar-publish-buffer-monitor thread not running

@codelipenghui  please take a look


Annotations should allow to not automatically bind the component's parent interface

Is your feature request related to a problem? Please describe.
The following setup is given:
interface Animal

@Single
class Dog : Animal

@Single
class Cat : Animal

@Module
@ComponentScan
class AnimalModule {

    @Single
    fun animal(cat: Cat, dog: Dog): Animal = if (randomBoolean()) cat else dog
}

We'd like to choose dynamically at runtime which implementation of the Animal interface we want to inject. However, the default behaviour of the Single annotation will automatically bind each of the 2 Animal implementations to the Animal class, which is wrong and adds unpredictability towards which of the 2 classes will be actually injected at runtime.
Describe the solution you'd like
There should be a way to turn off this behaviour and thus allow both 1) the injection of the individual implementations, such that they can still be injected in the AnimalModule as well as 2) the ability to bind ourselves manually which implementation we want to the Animal interface.

I can propose to fix this, by allowing to override default binding like follow:
@Single(binds = [])
class Dog : Animal

@Single(binds = [])
class Cat : Animal

@Module
@ComponentScan
class AnimalModule {

    @Factory
    fun animal(cat: Cat, dog: Dog): Animal = if (randomBoolean()) cat else dog
}

with binds = [] we force to empty any extra binding. Your case then work with get<Animal>()

That would solve the issue, indeed.
However, I'd argue that the API surface would look a bit weird. Would it be possible to automatically disable interface binding without manually specifying that with a empty array in case Koin detects multiple subclasses?

by design, we are scanning bound types automatically. It can be an option, to activate or not later.

I close the ticket for now 👍 The "explicit binding" mode can be discuss elsewhere

I'm confused. The current implementation of Single(binds: Array) automatically binds the calling component to its parent interface. Overriding the binds parameter doesn't change that. So this needs to be changed in order to support the code snippet from the initial comment. Why close down the issue then?

@arnaudgiuliani could you please elaborate more on the above?

Did you check last 1.2.2, I believe casting is better

Yep, I can confirm that with 1.2.2 the setup mentioned in https://github.com/InsertKoinIO/koin-annotations/issues/82#issuecomment-1568515279 works nicely. Thanks!


subtract add don't act as expected in some cases

The functions do not act as I would expect (as I think is intuitive) when the result of the add function is used as an argument for the subtract function.
Eg.
subtract(100%, add(1rem, 1em, false));
returns
calc(100% - 1rem + 1em)
I would expect
calc(100% - (1rem + 1em))
or
calc(100% - 1rem - 1em)

Thanks for reporting!
Would you mind providing a real example please, to help figure it out? I see your point but your examples are incorrect since our functions would have solved the rem addition or subtraction before any output.
Regardless, always providing parenthesis could break things (also I don't know which, just a possibility). I say we have two ways to handle this:

either we always add parenthesis and try to minimize side effects, considering there might not be any?
or we provide another parameter to change the output, just like $return-calc does already.

Not sure what's the best way for now, still thinking out loud.

Please, notice that the second number is in rem and the third is in em so they wouldn't be reduced to one number by the add function.
A real word example - one that actually made me realize the problem. A have the .btn element, with a text and and and icon inside. Inside of the .btn element I want to have a (absolutely positioned) ::before pseudo element. The width of the ::before should equal the with of the button minus the size of the of the icon and doubled horizontal padding of the button.
It would seam logical to me, to construct the formula like this (because the size of the icon and padding might (or might not) be expressed with the same unit):
width: subtract(100%, add(2 * $btn-padding-x, $btn-icon-size, false));

Now let's say:
$btn-padding-x: 0.75rem ;
$btn-icon-size: 1.2rem;

That outputs:
width: calc(100% - 2.7rem);

which is perfectly correct.
But if the size of the icon is expressed in em (instead of rem) which is a perfectly valid case:
$btn-padding-x: 0.75rem;
$btn-icon-size: 1.2em;

you get:
calc(100% - 1.5rem + 1.2em);

Witch is incorrect!!!
So one expression outputs correct and incorrect values depending on the units of the variables - that's very misleading.
It should output:
calc(100% - (1.5rem + 1.2em));

or
calc(100% - 1.5rem - 1.2em);

There's actually another way to tackle that problem - make the subtract function do the work.
If the arguments are not compatible (are expressed with different units) then it should check if the second argument is a complex expression (not a single value) and if it is :
option a) put it in parentheses (this would be more human understandable approach I think);
option b) change the sign of every component (this give slightly shorter output but may be problematic if custom properties are used within, though still doable I think).
As far as I know you may use parentheses in calc however you want (to establish computation order when needed - see mdn page). Actually I think calc with calc is valid as well (though not necessary).

Option a) seems a good idea to me!
Changing the sign will very likely introduce new edge cases, seems more risky.


APIs based on a SOAP service are not invokable

Try to create an API using WSDL.
Publish the API and subscribe and try to test.
API request fails with
ERROR - OAuthAuthenticator Swagger is missing in the gateway. Therefore, JWT authentication cannot be performed. WARN - APIAuthenticationHandler API authentication failure due to Internal Server Error
Reason being the relevant local entry which contains the swagger definition is not getting created.

Seeing in 3.0 alpha2.

fixed in AM 3.0.0 beta.


Wright Expression Precedence

Here is a list of applicable Wright expressions with in suggested precedence order.
{
  a::b; // scope resolution
  a.b; // member access
  a..b; // half open range
  a * b / c % d // multiplication/division/remainder
  a + b - c; // addition/subtraction
  a & b; // bitwise and
  a ^ b; // bitwise/logical xor
  a | b; // bitwise or
  a && b; // logical and
  a || b; // logical or
  a < b > c <= d >= e; // comparison
  a == b != c; // equality
  a = b; // assign
  let a = b; // variable creation and jump expressions (e.g. return)
}

This order follows the precedence order in C-like languages, with the additions of variable creation and jump expressions binding at the lowest precedence.
Expressions like { a } and if a { b } else { c } don't need precedence because they do not expose a bare expression at the head or the tail.

Closed due to feature merge


[Schema Registry] Force authorization when kafkaEnableMultiTenantMetadata is false

Motivation
Currently when the schema registry and authorization are both enabled, the authorization is only performed when kafkaEnableMultiTenantMetadata is false. It's not reasonable because the role of the token must have the write permission to the schema registry topic.
Modifications

In performAuthorizationValidation, do not check kafkaEnableMultiTenantMetadata.
Add the testSchemaWrongAuth to verify that a wrong role cannot be used to create an Avro produce.
Separate the default namespace and the default schema namespace in KafkaAuthorizationTestBase so that the authorization requirements will be clear.

Documentation
Check the box below.
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[x] no-need-doc
(Please explain why)

[ ] doc
(If this PR contains doc changes)

@BewareMyPower Can you help resolve conflicts?

Okay, I forgot this PR for some time.


Add better example schemas and custom page docs

Show examples with:

[ ] Multiple APIs

[ ] Different Services
[ ] Different Versions

[ ] Multi File examples #23
[ ] Different schames rather all being petstore yaml
[ ] Document custom pages

[ ] Document hooks separately - https://github.com/rohit-gohri/redocusaurus/issues/273
[ ] Document components separately

@rohit-gohri not sure if "custom page docs" is what I'm trying to do but here's my topic:
There doesn't seem to be any docs to embed regular markdown docs into the generated api docs, e.g., to show an "introduction" page before showing the specfile contents. Is this even possible?

There doesn't seem to be any docs to embed regular markdown docs into the generated api docs, e.g., to show an "introduction" page before showing the specfile contents. Is this even possible?

Do you mean importing a markdown file in the info.description section of the openapi yaml?

I mean adding a page that is is own element in the generated sidebar.


Add clearOnEnter as foldOption

Add option 'clearOnEnter' to foldcode.js and default it to true. This option determines whether the marker added when folding a line clears when the cursor enters it.

Thanks. Merged as bda854e


Fail before creating cluster if ssh passphrase is incorrect

Ideally the cluster creation should fail before creating the cluster if you typed the ssh passphrase wrong or handle the error differently.
2018/03/12 15:20:40 Creating new cluster sour-razororange with 1 master(s), 1 worker(s), HA: false
Enter passphrase for ssh key /Users/orhan/.ssh/id_rsa:
2018/03/12 15:20:43 creating server 'sour-razororange-master-01'...
  12s [====================================================================] 100%
2018/03/12 15:21:03 Created node 'sour-razororange-master-01' with IP <IP_ADDRESS>
2018/03/12 15:21:03 creating server 'sour-razororange-worker-01'...
  16s [====================================================================] 100%
2018/03/12 15:21:28 Created node 'sour-razororange-worker-01' with IP <IP_ADDRESS>
2018/03/12 15:21:28 sleep for 30s...
parse key failed:x509: decryption password incorrectparse key failed:x509: decryption password incorrectparse key failed:x509: decryption password incorrect2018/03/12 15:21:58 parse key failed:x509: decryption password incorrect

this one is closed by #75


Signal Handling is Inconsistent in clingo

When having a (python) main function inside your encoding,
Ctrl+C can be handled differently depending on the exact moment when it was triggered.
It can either end the process, in clasp_app.cpp ll 229 with exit(getExitCode());
or it can report INTERRUPT as a result of the solve call in the python script,
which has to be handled manually (if not the solving continues normally, and further signals will be queued ? ).

@BenKaufmann can you please check if this commit fixes the issue: 4ab34e0c7eb346ed98b902ec8f12c9b3b312f6c2

Merged the commit.


cmake error

Brief overview
Expected behavior
Could you support  windows build
Actual behavior
Steps to reproduce
Specifications like the version of the project, operating system, or hardware etc.

Hi @dry11orange
Thank you for your interest in EasyHttp.
Could you please share with us the cmake error and your cmake build steps?
Also could you tell us what version of Windows, Visual Studio you are using?
We are working on supporting Windows build in the coming months. (ETA is not yet decided)

when build easehttp, cmake show error message : need file "PocoConfig.cmake"
This file is from Poco
When I build poco with vs2015 sln, this file(PocoConfig.cmake) will not be generated
with cmake, this file will be generated.
But with cmake , I can't build poco correctly....
this is better example for using poco with cmake
https://github.com/RangelReale/pcacheproxy

Yes, you will have to build (& install) Poco in order to use EasyHttp.
You can pass information about the installed Poco libraries by setting the CMAKE_PREFIX_PATH with your cmake command.
Your cmake option should look like below (change the Poco install dir to actual value)
-DCMAKE_PREFIX_PATH=path/to/Poco/install/dir

See Wiki, https://github.com/sony/easyhttpcpp/wiki/Installing-EasyHttp#build-easyhttp

When I build poco with vs2015 sln, this file(PocoConfig.cmake) will not be generated

Where are you looking for config files? How are you building Poco? config files will generally be installed inside the CMAKE_INSTALLED_PATH.

ok
Thank you


 As far as I can tell this project still uses older babel, "babel": "~5.8.29".

There is already an open issue tracking this and a pull request with babel 6.
See issue @ https://github.com/erikras/react-redux-universal-hot-example/issues/488
See pull request @ https://github.com/erikras/react-redux-universal-hot-example/pull/778

ah ok I searched for babel 6 in the issues before reporting but didn't see that one


[WFLY-18009] Add jars needed for compression of Kafka

https://issues.redhat.com/browse/WFLY-18009

@xstefank One of them used logging in the source code, but really it was just an old habit. I guess the log manager stuff we do on boot works anyway, and whatever was using logging was using JUL so perhaps it will work without.
What did you mean by 'year'? :-)

@xstefank it worked locally without the logging dependencies, so I have removed them

/retest

/retest

@bstansberry I fixed the compile error locally after a rebase. Should be fine now

Thanks @kabir and @xstefank


chore(deps): upgrade configuration

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-configuration-k8s-31-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 4796

Questions ?
Please refer to the Backport tool documentation


feat:add http prefetch reader

Codecov Report
Patch coverage: 96.36% and project coverage change: -0.25% :warning:

Comparison is base (6d0618d) 98.40% compared to head (6dd7b48) 98.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #268      +/-   ##
==========================================
- Coverage   98.40%   98.16%   -0.25%
==========================================
  Files          37       39       +2
  Lines        5146     5230      +84
==========================================
+ Hits         5064     5134      +70
- Misses         82       96      +14

Files Changed
Coverage Δ

megfile/http_path.py
93.10% <68.42%> (-6.90%)
:arrow_down:

megfile/lib/http_prefetch_reader.py
97.56% <97.56%> (ø)

megfile/lib/base_prefetch_reader.py
97.95% <97.95%> (ø)

megfile/http.py
100.00% <100.00%> (ø)

megfile/lib/s3_prefetch_reader.py
100.00% <100.00%> (+0.36%)
:arrow_up:

... and 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Feature request: Extension size information

VSCode Version:
Version 1.8.1
Commit ee428b0eead68bf0fb99ab5fdc4439be227b6281
Date 2016-12-19T14:41:20.664Z
Shell 1.4.6
Renderer 53.0.2785.143
Node 6.5.0

OS Version:
Gnome Ubuntu 16.10

Steps to Reproduce:

Open the extension panel
Click on an extension to open the information panel
There is no information related to the total size of the file that has to be download to install the extension

It would be good to have both, the size of the file and how much space will take once installed

duplicate of #46226 ?

Strange, I could've sworn this feature was already on VS Code.

I think it's a great idea to show extensions size upfront so that the user knows what they are dealing with.
WHY THIS ISSUE GETTING LOWER ATTENTION!!
Firefox shows its extensions size upfront.
Chrome/Chromium shows its extensions size upfront.
Google's PlayStore shows the size of its apps upfront.
Apple's annoying AppStore shows the size of its app.
Microsoft's Store shows the size of its app.
Why not the VS Code extension hid its extension size!!!!!!! God knows.
Hope its milestones reaches SOOOOOOOOON.
( @joaomoreno I really hope it does. It's a basic but very helpful thing.)

See also #158670, which listed examples of how the lack of extension size info tend to make developers not noticing large assets that should be excluded from the extension package.

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!

@isidorn kindly asking, how is this out of scope? Size info provides practical values as I mentioned, and similar tools (e.g. JetBrains) provides this info.


Add addTemplateDir method to frontend controller

Otherwise a call to the frontend controller ends up to an error:
Unable to load template snippet[...]

thanks for your contribution @Gugiman :+1: :tada:


Problem when downloading as CSV

In query http://linda.epu.ntua.gr:8000/sparql/?q_id=15, the results can be downloaded as json, but the download csv returns an empty file with only the headers

The link does not return any details about the query. Do you remember or have a it stored somewhere? In the meantime, the tool is being updated anyway and all queries work fine with both json and csv.


Projection - Select property of linked vertex and all '*'

OrientDB: 2.0.14
OrientJs
Works:
select *, SponsoredBy.Email as SponsorEmail from Node where Email = '<email>'

and event this works
select *, SponsoredBy.* as Sponsor from Node where Email = '<email>'

but
select SponsoredBy.Email as SponsorEmail, * from Node where Email = '<email>'

the field SponsorEmail is missing.
Look at (*)

Hi @StarpTech
It's already fixed in 2.1, could you please check if it works in your case?

@luigidellaquila thanks. Gets the 2.0.X series also this fix?

Hi @StarpTech
it was fixed with the new parser, so I'm afraid it won't be easy to port it to 2.0.x

Hi @luigidellaquila
this would mean that everybody should use the new 2.1 releases?

Hi @StarpTech
we strongly recommend it. Migration should be quite easy

Of course 2.0.x is still supported, so issues on that release can also go in high priority if customers ask.

Guys, is this already available on 2.1, right? Can I close the issue?

The issue has been closed because no response has been received after a while. In case the issue is still valid, please reopen it or write a comment that explains why it's still valid and a way to reproduce it. Thank you.


Static Code Analysis: get rid of is_null() and alias functions, use mt_* random api,

UTs passed
Non-functional changes

The command "php composer.phar install --prefer-source" failed and exited with 1 during .
Travis fails, so I'll try to make one more commit later - hopefully travis will not fail then.

@willdurand : is propelorm/Propel still maintained or all new PRs will remain unmerged?

Those pull-requests remain unmerged since we're merging only security fixes and critical bug fixes. Why? Because it's too much work and there's currently no volunteer who can spend so much time maintaining version 1. This library is too widely used to just merge everything without keeping a really close eye on each line of code.

@marcj : thank you for your answer. What needs to be done to become such a volunteer?

@kalessil using sudo false on travis.yml . It will get passed I believe. Similar PR https://github.com/psecio/gatekeeper/pull/30

Thank you @harikt , will try this.

@kalessil cool . Let me know how things goes then.

@marcj : thank you for your answer. What needs to be done to become such a volunteer?

@kalessil, just start contributing: review pull-requests, fix bugs, help people. If a given threshold is reached you're automatically that contributor. In the open-source world is no written contract necessary to become a volunteer/contributor.


Installing via package managers, usage with webpack and react

Is there a way to install and use this lib using npm. I wish to use it with webpack/react and do not want to add an additional script tag just for this lib.
All the examples and guides for the lib want me to include this directly in my html <script type="text/javascript" src="https://apis.google.com/js/api.js?onload=onApiLoad"></script>, which feels really restrictive.

@eelsweb this is currently not possible by design. The reason is that the libraries loaded through gapi.load are not versioned, they are constantly updated. Package managers follow a versioned model which is not compatible.
However, we could provide a simple package which would take care of loading the https://apis.google.com/js/api.js script for you, thus providing (asynchronously) gapi.load and by extension all gapi libraries. Would that solve your problem? Remember that such solution would not allow you to bundle in your own JS the gapi libraries you are using. They will always be loaded asynchronously.

For now, I have simply made a local copy of the file https://apis.google.com/js/api.js and am importing that in my code, loading gapi libs asyncly.
If you do not intend to change this design pattern in the near future, then I guess we should close this issue. Though it would be nice to include a few instructions on how to best use this lib while bundling/usage with webpack etc.

@eelsweb keeping a local copy of this script is highly discouraged. It will always load a specific version of the gapi libraries that correspond to when you downloaded this script*. This means you won't be able to get new features, bug fixes, or any updates. We could provide a package as I described earlier, so let's keep this issue open.
*When I said unversioned earlier, I was slightly incorrect. The libraries are versioned, and new versions are pushed daily - however, there is no way for apps to control which version they are getting, they will always get the latest one. By keeping a local cache of api.js, it will use the version number contained in it and will always download that version. Let me know if that makes sense!

I intend to download the script as part of the build process, so the app gets the new version every time there is a release. This way, I can update the js file while developing, and ensure there is zero chance of anything breaking while in production. I believe providing a package will work exactly the same way, because a particular version of the pkg will be downloaded, and will stay that way until upgraded in the app.
Thanks for your help.

The package I was mentioning would load asynchronously the https://apis.google.com/js/api.js file so it will always use the latest version, independent of the release cycle of your app. Your method is relatively safe too, especially if you only use gapi.auth2 (and not gapi.client), but depends on the frequence of your release cycles.

@TMSCH I've also run into this issue as experienced by @eelsweb - I notice you offer you could provide a package via npm. Could I take you up on that offer?

@vohzd I could but cannot provide any ETA, so I would not count on it in the short term.

Thank you - I found a workaround anywho with using https://github.com/ryanjohnston/Load-Google-API which let's you import gapi.

my solution with React right now, if someone is interested -
componentDidMount() {
	const gapiScript = document.createElement('script')
	gapiScript.src = 'https://apis.google.com/js/api.js?onload=onGapiLoad'
	window.onGapiLoad = function onGapiLoad() {
		gapi.load('auth', {'callback': onAuthApiLoad})
		function onAuthApiLoad() {
			gapi.auth.init()
		}
	}
	document.body.appendChild(gapiScript)
}

I just found this documentation page: https://developers.google.com/identity/protocols/OAuth2UserAgent#prerequisites
It describes how to authenticate, get access tokens and use Google APIs using nothing but HTTP requests (when you click on the "OAUTH 2.0 ENDPOINTS" tab above the code examples). This way one could bypass api.js entirely and write their own mini library (or a full-featured if you're crazy). I haven't tried it but I'm going to do that the next days.

@TMSCH Since the code looks fairly stable now (no longer being "constantly updated"), can we get an npm package? Ideally multiple packages, one for each api, but with tree shaking in webpack now it'd be fine to just have 1 package with everything. In fact, there would be no need to worry about the gapi.load call anymore if it was just one big package.

@dfederm this repository does not contain the code of the gapi libraries. gapi libraries are still constantly updated, and there is a reason it is served dynamically through gapi.load rather than by downloading a NPM package. These libraries interact with Google APIs and these APIs change, being able to always have clients fetch an up-to-date version makes sure that the libraries work.
There is no plan to provide NPM package for each independent gapi libraries.

@TMSCH Ah, I just assumed the "Google API Client Library for JavaScript" would contain... the Google API Client Library for JavaScript.
I'm not really sure I follow your reasoning. Are you implying that the Google APIs themselves are completely unstable and unversioned and could break at anytime? Yet somehow the JS client which is just a wrapper around these APIs won't break (even when downloaded dynamically people still need a stable interface to code against)?
If you're serving JS dynamically like that, obviously you can't make breaking change to the public interface of that as it will just break people out of band. So let's assume the public interface of the JS client is stable, or at least non-breaking.
Now for the API aspect, when I view the Google APIs, they seem to be versioned and they imply that they can be called directly, without the use of a client. So based on that, I think we can assume that the API layer is also non-breaking.
So if the JS client has a non-breaking interface, and the APIs have to be non-breaking as well, I'm not sure what's left of the argument that the JS client is constantly changing and an npm package can't be made of it. The implementation of how the client makes the API calls under the covers can change I guess, but as I noted, both the JS interface and API surface area have to be somewhat stable in order to not just randomly break people who are using it.

I was actually misleading. Now that gapi.client use discovery docs, we are untied from the server APIs changes. The core issue that prevents us to create true npm package containing the libraries code is that the core infrastructure and design of gapi libraries is unversioned. NPM is versioned, so it's incompatible.
The best we could provide is npm packages that are just thin libraries that call inject the proper api.js file and perform gapi.load of the requested libraries.

Using old/cached/package-managed versions of the JS client is not supported.
@dfederm actually the interfaces for some parts do change backwards-incompatibly, but on timeframes that allow new JS client versions to rollout (e.g. weeks.) The JS build fingerprint in the client is linked to JS build fingerprint inside some IFRAMEs, and using an old/cached/package-managed JS client can lead to breakage once the old JS build fingerprint evaporates on the server side. See e.g. https://github.com/google/google-api-javascript-client/issues/204


Issue swift4

I'm not sure if this is a big deal but this update is not backwards compatible with the Swift 3.1 toolchain. #31 includes backwards compatibility for Swift 3.1 while also supporting Swift 4.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #34   +/-   ##
=======================================
  Coverage   73.42%   73.42%
=======================================
  Files           3        3
  Lines         444      444
=======================================
  Hits          326      326
  Misses        118      118

Flag
Coverage Δ

#SwiftKueryPostgreSQL
73.42% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@addisonwebb Thanks for the input/PR. As of right now, our plan is to remove backward compatibility in favor of supporting only Swift 4 or newer moving forward.


TFS Migrator Tool link redirects to Azure DevOps Server migrator tool

The link to the migrator tool on Step 3: Validate the Team Foundation Server collection is redirecting to a Microsoft page that only contains migrator tool for Azure DevOps Server.
Where do I get the Migrator Tool for TFS V2018 update 2?

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

ID: ecab90d0-e29c-f995-dcc4-ec80e94b7ba7
Version Independent ID: fe315705-2398-6b60-d81a-c9013bc97ed4
Content: Refactor a Team Foundation Server deployment to Azure DevOps Services - Cloud Adoption Framework
Content Source: docs/migrate/azure-best-practices/contoso-migration-tfs-vsts.md
Service: cloud-adoption-framework
Sub-service: migrate
GitHub Login: @martinekuan
Microsoft Alias: martinek

Hi @Tasin5541 - thanks for contacting us.
I believe the page heading for the TFS Migrator Tool page is a little confusing, since TFS was rebranded to Azure DevOps Server (with the release of TFS 2019). It's currently Azure DevOps Server to Azure DevOps Services Migration Guide and Data Migration Tool, but you could imagine it being Team Foundation Server (TFS) to Azure DevOps Services Migration Guide and Data Migration Tool.
That said, I'm curious if you downloaded the "tool" (which is 3 .zip files and a .PDF guide), and looked through the guide? If not, I pulled out a couple of paragraphs that might be of interest and resolve your concern:
Chapter 1, page 7 Note: If you’re currently on Team Foundation Server (TFS), please note that the product has been rebranded to be Azure DevOps Server with the 2019 release. This guide is still applicable for migrating to Azure DevOps Server if your organization is using TFS. However, you will still have to upgrade to one of the supported versions mentioned in chapter 3 of this guide.
Chapter 3, page 26 Note: Team Foundation Server (TFS) became Azure DevOps Server with the 2019 release of the on-premises product. If you’re on an older version with the name TFS then you can still import using the data migration tool. You will just need to upgrade to a supported version of Azure DevOps Server. Therefore references to Azure DevOps Server can be freely interchanged with TFS if you’re still using a version named TFS.
Regarding the supported versions, the article where you filed this Issue discusses where to look for your current version number, and the download tool provides .zip files with the Migrator.exe tool for each of the 3 versions. You can also find a discussion of the 3 supported versions in Migrate data from Azure DevOps Server to Azure DevOps Services. From what I can tell, assuming TFS 2018 Update 2 is version 16.131.27701.1, you'll need to update to one of the 3 versions before you can use the Migrator.exe tool. There are several other prerequisites and requirements outlined in the .PDF guide as well.
I hope this helps. I'm going to close this issue for now, but please continue to use the comments here if you have questions or if I'm not understanding your concerns correctly. I'll also make some changes to the article and hopefully make it a little clearer to avoid confusion in the future.
#please-close

Thanks for the information. I'm clear on what I need to do.
The article suggests that updating to 2018 v2 will let us migrate, which is not valid anymore. This should be updated with the link to the latest 3 versions that are currently supported. Also the migration steps should be updated/point to the new article.


Idle notifications no longer bring focus to client

Last I used the client (5/14/2020), when AFK fishing/mining and an idle notification would pop, the client would then get re-focused. Currently, when going idle while AFK fishing/mining I only get the popup notification if I am on a different app (like Chrome).
To Reproduce
Steps to reproduce the behavior:

Open Runelite
Make sure Idle Notifications are turned on
Go to Fishing Guild or MLM and begin doing the activity
Once Idle, receive notification and realize that runelite does not come back into focus anymore.

Expected behavior
When going Idle and receiving the notification, expected behavior is to bring RL back into focus.
Environment (please complete the following information):

OS: Mac Sierra 10.12.6
RuneLite version: 2.1.1

The setting was reset in the most recent update. Go to Runelite in settings and change Request focus on notification


NodePort multi-dev support and BPF masq* tests

test-me-please

Coverage decreased (-0.01%) to 44.601% when pulling ed992d3d34adbb08a3542365ef71f3721d42a79e on pr/brb/multi-dev into 462da1db807ae7fd04a6ed7e3f64d6e57d174af7 on master.

test-me-please

test-me-please

test-me-please

test-me-please

test-focus K8sDatapath*

CI is failing because test-k8s2 cannot be started (it was working before rebasing against the deployment manager):
Warning  FailedScheduling  17s (x16 over 4m18s)  default-scheduler  0/3 nodes are available: 1 node(s) didn't have free ports for the requested pod ports, 1 node(s) didn't match node selector, 1 node(s) were not ready.

I'm currently investigating this.

test-me-please

test-focus K8sDatapath*

test-me-please

test-focus K8sService*

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

Yep:
63: foobar,;=a: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether ea:f2:b3:b8:78:79 brd ff:ff:ff:ff:ff:ff

Wow, good to know, sigh.

test-me-please

test-focus K8sDatapathConfig*

test-me-please

test-me-please

test-me-please

test-focus K8sDatapathConfig*

test-me-please

test-me-please

test-me-please

test-focus K8sDatapathConfig*

test-me-please

test-focus K8sDatapathConfig*


stepper to servo

Hello, I wanna change the stepper motors to the servo motors, how should I modify the code to control them?
Thanks!

This should actually be easier, given most servo motors have positional feedback.  I don't have time to do this, but will accept a valid pull request for such functionality!


All content read as expanded in walkthrough for SR users

Here is how you can reproduce it.

Open VS code on Windows and make sure NVDA is running.

In the command palette, run "Welcome - Open Walkthrough.".

Press the letter B to navigate by buttons using the browse cursor. Observe that nVDA announces the buttons and corresponding checkboxes as a single control. (   check box  not checked    Sync settings across devices  button  collapsed).

Use letter X to navigate by checkboxes using the Browse cursor. Observe that NVDA just reads unlabeled checkboxes. (check box  not checked    button  collapsed ).

locate the button "Tune your settings", and press enter to expand the content.

Use the down arrow key to read the expanded content.

At this point, every single string of text in the expanded content is read as an expanded button, so it is not possible to tell what is actionable except by context. (button  expanded    Customize every aspect of VS Code and your extensions to your liking. Commonly used settings are). Also, it seems like it is not possible to collapse an element once expanded using the keyboard or the screen reader. These are usually signs of improper nesting of tags.

Originally posted by @rperez030 in #223787

I just met with @jooyoungseo. As @rperez030 discovered, our use of the tree view for this is confusing for screen reader users. From their perspective, the point of a tree view is to have a hierarchy of collapsible/expandable elements.
We auto-expand the element when it becomes focused.
We're going to think about a custom editor for the accessibility help info instead.

I just met with @jooyoungseo. As @rperez030 discovered, our use of the tree view for this is confusing for screen reader users. From their perspective, the point of a tree view is to have a hierarchy of collapsible/expandable elements.

This is not really a treeview, but an accordion pattern. If implemented properly, it could result in a good user experience. a sample implementation not intended for production can be found at https://www.w3.org/WAI/ARIA/apg/patterns/accordion/.

We auto-expand the element when it becomes focused.

That can create an accessibility problem not only for screen reader users, but for sighted keyboard users as well. Imagine someone trying to use the Tab key or an alternative input device to navigate the walk-through, and having all elements expanding automatically as soon as they receive focus. That defeats the purpose of having collapsible elements in the first place.

We're going to think about a custom editor for the accessibility walkthrough instead of this.

Would you consider improving this one instead. Like I said, it can create obstacles for more than screen reader users.

Yes @rperez030, we are on the same wavelength 😄. We will fix this one. Thanks.
https://github.com/microsoft/vscode/issues/223787#issuecomment-2310689515

Also, just tried out the default narrator on windows and voice over on the mac and see only the currently selected step description and content being read out and correctly labelled as expanded.  Could you help clarify the issue being described here? I'm not entirely sure I understand the problem.

Hi @bhavyaus, this only reproduces on windows with NVDA

I'm not sure how to fix accessibility bugs specific to NVDA without breaking the default accessibility apps on windows and mac.
Also tried out other UX in our product where we have both text and buttons in the content description (example: Welcome View when no workspace is open) and I see the same behavior where all of the expanded content is read.
This feels like an issue we need to fix across the various UX .

@bhavyaus one idea would be when in screen reader mode to not auto-expand

@bhavyaus should this be labeled wont-fix?

Taking it out of the verification query


Make logo not have weird square border around it

from

to

or something, at least make transparent background

oh you can't even see the white square lmao


Cannot get GraphQL Endpoint in Lambda function

I've added the permission for my lambda function to access my GraphQL API but when I access process.env the variable is not added instead I get the name of the variable again?
I'm not sure if it's related but the variables that amplify adds to the top of the lambda functions source are duplicated..
var apiXGraphQLAPIIdOutput = process.env.API_SOCIALIMAGEAPP_GRAPHQLAPIIDOUTPUT
var apiXGraphQLAPIIdOutput = process.env.API_SOCIALIMAGEAPP_GRAPHQLAPIIDOUTPUT

but when logging this value to the console in my Lambda function I'm getting this returned:
 env: {
    API_SOCIALIMAGEAPP_GRAPHQLAPIENDPOINTOUTPUT: 'apisocialimageappGraphQLAPIEndpointOutput',
    AWS_LAMBDA_FUNCTION_VERSION: '$LATEST',

I've run:
amplify update function

and made sure that the function has access to the graphql api.
I've also run
amplify update api

to make sure the api has the correct IAM auth permission.
I'm also using the latest cli version:
4.18.0-beta.3
All my other process.env variables are fine but the GraphQL endpoint one is incorrect. Any ideas folks? Am I missing something trivial here?
Best regards!
Kyle

I've just created another lambda function with the Hello World template and the permissions to access GraphQL. This function outputs the GraphQL endpoint correctly. So somehow, the function I described above had got itself into a "confused and broken" state. Maybe to do with the duplicate variables being added by amplify?
A hacky solution to those who get stuck with this :)

Hi @kylekirkby, this commit fixes the duplicate environment variable issue. I'm going to close this issue and track the missing graphQL permissions here: https://github.com/aws-amplify/amplify-cli/issues/3941


Feature Request: Template Literal Support

I think it would be very useful to support template literal tagging on the client-side to compile templates in the browser.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings
IE:
var myRiotElement = riot`

<timer>

Seconds Elapsed: ${ time }

  ${function () {
    this.time = opts.start || 0

    tick() {
      this.update({ time: ++this.time })
    }

    var timer = setInterval(this.tick, 1000)

    this.on('unmount', function() {
      console.info('timer cleared')
      clearInterval(timer)
    })
  }}

</timer>
`

Just a guess on syntax, but I think it's a cool thing to consider.

With 'template literal tagging' you probably mean 'expression interpolation' (based on your example). Expression interpolation is already implemented in riotjs minus the dollar sign. E.g.

Seconds Elapsed: { time }

instead of

Seconds Elapsed: ${ time }

Or am I misunderstanding you?

No, sorry. The interpolation is part of it but tagging is another feature of template literals.
Essentially you call a function (without Parans) on a template literal so that this:
riot`<my-tag value="${val1}">${val2}</my-tag>`

Is the same as:
riot(['<my-tag value="','">','</my-tag>'], val1, val2)

Which is very easy to parse in the riot function and easy to read in the literal.

Looks like something that is targeted to special users / special needs or there must be something that I'm missing. I'd like to see a real use case that proves this useful.

This is more of a potential how, I should have said what the problem is.
Basically it is my opinion that most mvc's either lack familiarity(HTML), or have to be compiled, or they are slow. Ultimately it would be nice to have a client side compiler that was implemented in such a way that a stack trace would be useful (unlike angular).
With template literals you can have realtime compile errors with line numbers and ultimately the stack can refer to the tagging of the template for the start point.
If I'm unclear let me know.

How template literals compare to source maps?

Perhaps ES6 support is what you need?

Honestly I need a full use case and a (pseudo) example to see what you are looking for :)


Note on OnContentRectChanged callback in surface_rotation sample

Description
Added a note for the use of a callback to patch NDK expected behaviour
Fixes #113

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


adding recreate datasources

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 2 (0.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.003%) to 6.014%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/tracker/index/index.go
0
2
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.003%

Covered Lines:
118

Relevant Lines:
1962

💛  - Coveralls