Drawer causing first DropdownButton 'DropdownMenuItem list' to hit 'SafeArea' inconsistently

Steps to Reproduce

Create a simple App with the following Drawer:

Drawer(
  child: Column(
    children: <Widget>[
      Container(
        // padding: EdgeInsets.only(top: 56),
        child: DropdownButtonHideUnderline(
          child: ButtonTheme(
            alignedDropdown: true,
            child: DropdownButton<String>(
              value: 'Company 1',
              onChanged: (String newValue) {
                // TODO change company
              },
              items: <String>['Company 1', 'Company 2', 'Company 3', 'Company 4'].map<DropdownMenuItem<String>>((String value) {
                return DropdownMenuItem<String>(
                  value: value,
                  child: Text(value),
                );
              }).toList(),
            ),
          ),
        ),
      ),
    ],
  ),
),

Insert a DropdownButton aligned to the top of the Drawer
Run the app
When you click the DropdownButton, the dropdown menu is misaligned as if the 'top' is being pushed down.

Expected results:
When clicking the DropdownButton, the list should be aligned to the button itself when at least enough padding is given for the 'Button list' to grow it's forehead.
Actual results:
'DropdownMenuItem list' from the DropdownButton always gets pushed down incorrectly as if it is hitting the "SafeArea" of the screen. It is as if the 'shadow' of one of the components, or the 'DropdownMenuItem list' itself is being pushed down by something and misaligning.
Image pointing the 'forehead' of the 'DropdownMenuItem list' that is being pushed down.
Image illustrating the ammount of padding that is required just for the menu to open 'aligned' to the button.
Workaround to see the effects of the 'ghost' SafeArea that DropdownButton requires to be aligned to the opening content:

Uncomment 'padding' attribute from the Container:

   ...
   Container(
       padding: EdgeInsets.only(top: 56),
       child: DropdownButtonHideUnderline(
   ...

Observe that the 'dropdown menu' from the Button now opens correctly, but requires A LOT more padding to the top than expected. I was expecting having to add 20 pixels. 56 is too much and breaks the design objective.

So... how can I make the 'dropdown menu' to ignore the 'safe area'?
https://stackoverflow.com/questions/64107746/drawer-causing-first-dropdownbutton-child-to-inhert-top-padding-margin-in-its-d

@billbarni
Please provide flutter doctor -v.
Thanks

@billbarni
Please provide flutter doctor -v.
Thanks

flutter doctor -v added.

@billbarni
If you wrap Scaffold with SafeArea, then you'll see the dropdownmenu opening properly without cutting off the taskbar.

return MaterialApp(
      home: SafeArea(
        child: Scaffold(
          appBar: AppBar(
          ),
          drawer: Drawer(
            child: Column(
              children: <Widget>[
                Container(
                //  padding: EdgeInsets.only(top: 56),
                  child: DropdownButtonHideUnderline(

Also, please see https://flutter.dev/community for resources and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/.
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

The dropdown is misaligned. It does not open over the Dropdown button, it is pushed many pixels down when it opens, and if you push the Button iself down to allow the Dropdown menu to show using padding, it does not work either.


local-bd-etcd: fix CPMS

Re-use code from cpms.go
Simply error handling in cpms.go for errors out of getCPMS.
It wasn't useful to count the number of CPMS, it'll always be zero
when an error occurs.
Increase the size of the block device required for etcd. etcd grow to
max 8GB, so let's have some window and require 10 minimum.

/cc pierreprinetti mandre

/uncc dulek eurijon
/cc itzikb-redhat

/lgtm

/lgtm
let's see result of jobs

/lgtm
wait for CI before approval

/approve
All jobs are required anyway

@pierreprinetti @itzikb-redhat See the change in cpms.go; I think I simplified it a bit. Also note that I made the change to cpms.go into a separate commit so this can be cherry-picked without the other file, since the etcd tests is only for 4.15 and beyond.
@MaysaMacedo I think I've fixed the error we discussed offline, we'll see how CI works now.

/lgtm
/hold for review of other folks if needed

I tested locally with a deployment with etcd on additional disk and the test was skipped so something is wrong...
I'll look into it tomorrow. Sorry for the UPI job breakage in the meantime.

passed: (6.5s) 2023-10-31T01:10:19 "[sig-installer][Suite:openshift/openstack] The OpenShift cluster runs with etcd on ephemeral local block device"

Got it working :-)

Tested with latest patchset:
passed: (5.9s) 2023-10-31T13:02:22 "[sig-installer][Suite:openshift/openstack] The OpenShift cluster runs with etcd on ephemeral local block device"

/lgtm

/hold cancel
I think this is good to go, we can always iterate later.
@itzikb-redhat I'll let you cherry-pick the second commit to 4.14 if you want.


RST-436 ZAP setup

Setup Zap for HwF
http://www.swtestacademy.com/automated-security-testing-using-zap/
To run the tests:
$ cucumber features/zap_security.feature security=true

@leoapost is it possible to add this to Travis and run nightly?
We should also add the alert to other email or Slack alerts
Thanks

@AlexaVB I am not sure Travis is a good match for this case. What exactly we need to achieve?
We can use Travis' cron jobs but only to just run the build daily/monthly/annually. We don't have control over the execution time of the cron jobs and Travis will run the build based on the .travis.yml, meaning that it will run all these script commands
As for email alerts, Travis will use the default notification settings to notify the committers on a successful or failed build.

I'll add a new JIRA ticket for running these tests


Trouble on Setting it Up.

Hey there! Really sorry for any dumb question but Im a rookie on this area....
Im trying to set things up but have no idea where should I implement this part ot the code:
client = InstagramBasicDisplay::Client.new
user = User.first

long_token_request = client.long_lived_token(short_lived_token: user.instagram_token)

if long_token_request.success?
  auth_token = token_request.payload.access_token
  expires_in = token_request.payload.expires_in
  user.update_instagram_token(token: token, expires_in: expires_in)
else
  render json: long_token_request.error, status: 400
end

Should I code it on my def home inside PagesController?
Im coding a simple landing page where Im supposed to render my client's instagram feed....Thank you so much in advance!

Hey @dannieltung, thanks for the question. You can certainly put that inside your controller action as a jumping off point. How you organise the code in your application is largely up to you, but should be informed by Rails principles. I'd recommending diving in a bit more to the Rails Guides to help you make a decision on how to organise things.
In the meantime, put it in your controller and do some experimenting, it might become more clear to you as you build out your app.


Spreadsheet: Pod Overview graph and table

Here's the draft:

Status: @catherio requested documentation as proof of concept.

This looks awesome.


make the NOT case first

not even sure if this is a real thing in NER but i noticed we have the binary case backwards

on second thought this PR actually makes 0 sense. You can't have a "binary' case in NER, because you have a tagging schema that includes the B-, I-, and O tags (or others for different schemas). This line of code doesn't really mean anything...


fix flaky tests

the beforeEach and afterEach hooks of the client-server test sometimes crash in CI.
This needs to be fixed

this is valid only for macOS/OSX:
there is a server being started and client from node.js is being connected at beforeEach, seems like sometimes something fails there
another are random blinking tests in localFs, again valid only for macOS/OSX and only for Travis, can't see them locally yet.

Looking briefly at the code I suspect a race condition between the 'server' and the wamp router, because their .close() commands are not well synchronized.

I've did research, logging with onClose handlers and seems like order isn't broken.
the handler was triggered before new onOpen

What about the order of the side effects of the two .close() actions? Is it possible that sometimes the router shuts down before the server, and sometimes it's the other way around?

it was added in hope to fix travis, but it didn't help: https://github.com/wix/kissfs/commit/a902f33c2bc2ae76608b3686d35d7d4ad50927d1

^^ this PR fixes only part with undefined connection when ws asking for session.
we still have blinking localFS in OSX.

closed by #36

@amir-arad there are still blinking with local-fs sometimes

bummer :(
looks like something that may be solved by chokidar configuration.
The hotfix solution that I know of is using useFsEvents: false option when in OSX.

thanks, I will try to investigate.

could it actually be a nodejs 4.x problem?

seems like it was at any versions, let's see for a while, because previous error was very noisy.

looking at civetweb/civetweb#364 for reference

may share a root cause but seems not too informative for us :(

after compromising,  turned off osx tests in travis and played a little with timeouts, it seems much better now


Design architecture

The main idea is to build an application as an example of microservices architecture.

Clients
At the beginning it will be only a bot in Telegram.

API
It will be a Rest API written on Python using FastAPI.

Queues
RabbitMQ queues will be used for task distribution between Bridges.

Bridges
Task processing services. The main purpose in the beginning is to write data into Data Warehouses.

Data Warehouses
Third party's services like Google Sheets and Notion Databases (these will be supported in the beginning).


replacement for ahk: hotkeys and hotstrings

are there any plans to implement functionality that can listen for/override/remap keyboard and mouse input? autohotkey is great but it's super messy; I'd love to be able replace a good deal of its functionality with robotjs.

This is something I'd like to do, but it's not going to happen anytime soon. It's just a different animal and I want to get the stuff RobotJS currently does down first. See:
https://github.com/octalmage/robotjs#does-robotjs-support-global-hotkeys
#55


Compose ExoPlayerView

As a user I can integrate the PlayerView from Exoplayer (Media3) in Compose.
Acceptance criteria

Can display PlayerView with Compose
Player controls can be enable/disable
Resize mode can be set
ErrorMessage provider can be customized

Tasks

[x] Create a UI module
[x] PlayerView compose function
[x] PlayerView customizable
[ ] Handle keep on screen with compose
[x] Demo with resizable player view
[ ] Add controls view toggle button

Performance issue (OOM Exception) come from the custom LoadControl.

Keep on screen only when user want it and when player is playing

Keep screen on is a Composable parameters. Player state won't change keep screen on.


Uncaught ReferenceError: process is not defined - Chrome browser Console error

I get the following Console error, request you to help me on this, Let me know if you need any other info.
Uncaught ReferenceError: process is not defined
    at Object../node_modules/path/path.js (path.js:25:1)
    at Object.options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:61:1)
    at Object../node_modules/mime-types/index.js (index.js:16:1)
    at Object.options.factory (react refresh:6:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:61:1)
    at Object../node_modules/react-s3-uploader/s3upload.js (s3upload.js:6:1)
    at Object.options.factory (react refresh:6:1)

I get this above error, It's a simple experiment to upload the file.
ReactUploader.js
var ReactS3Uploader = require('react-s3-uploader');

<ReactS3Uploader
    signingUrl="http://<IP_ADDRESS>:5000/create-presigned-s3-url/"
    signingUrlMethod="GET"
    accept="image/*"
    s3path=""
    preprocess={this.onUploadStart}
    onSignedUrl={this.onSignedUrl}
    onProgress={this.onUploadProgress}
    onError={this.onUploadError}
    onFinish={this.onUploadFinish}
    // signingUrlHeaders={{ additional: headers }}
    // signingUrlQueryParams={{ additional: queryparams }}
    signingUrlWithCredentials={ true }      // in case when need to pass authentication credentials via CORS
    uploadRequestHeaders={{ 'x-amz-acl': 'public-read' }}  // this is the default
    contentDisposition="auto"
    scrubFilename={(filename) => filename.replace(/[^\w\d_\-.]+/ig, '')}
    server=""
    inputRef={cmp => this.uploadInput = cmp}
    autoUpload={true}
    />

export default ReactS3Uploader;

I get this log when npm start
npm start > start.log
(node:24402) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:24402) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.

Had the same issue while using Create React App. Switch to webpack to fix the problem.
I think webpack auto polyfills in Node packages (like process). While CRA is made for front-end only. (react-s3-uploader probably comes with those packages since it is meant to handle both server and front-end in 1 package).


Fix empty object falsiness

We currently consider {} and unconstrained type parameters to never be falsy in --strictNullChecks mode. This is wrong as {} or an unconstrained type parameter might represent a string, number, or boolean value and thus one of the falsy values "" | 0 | false. This PR corrects our assumptions.
This PR furthermore fixes an issue with type parameters of the form T extends { [K in keyof T]: string }. For such a type parameter, keyof T will have itself as its constraint and this circularity caused every type to be considered related to keyof T.
Fixes #18196.

So how much does this break? 😄

@DanielRosenwasser you just ask @typescript-bot test this to find out

@DanielRosenwasser I just ran the RWC tests locally. No breaks as a result of this.

The RWC baseline change shown by the bot is actually a desired change, so no breaks.


Can't run skhd: skhd: could not lock pid-file! abort..

I am unable to run skhd properly nor change the directory:
skhd -c ~/.skhdrc
skhd: could not lock pid-file! abort..

I've tried several solutions, which include:

brew uninstall skhd & doing a fresh install as specified in the documentation
Creating a new blank skhdrc file

I tried to delete the the pid files
pgrep -fl skhd
546 /opt/homebrew/bin/skhd
❯ kill 546
❯ ❯ pgrep -fl skhd
zsh: command not found: ❯

I checked if the pid file exists on my system and if the permissions may have issues, it seems they don't.
ls /tmp/skhd.pid
ls: /tmp/skhd.pid: No such file or directory
❯ ls -ld /tmp
lrwxr-xr-x@ 1 root  wheel  11 Sep  2 09:35 /tmp -> private/tmp
❯ ls -ld /private/tmp
drwxrwxrwt  11 root  wheel  352 Sep 24 09:38 /private/tmp

To my understanding then it's either something else on my system or a bug.
Environment:
MacOS Ventura 13.5.2

Have you given access to skhd in system settings -> privacy and security -> accessibility?

Have you given access to skhd in system settings -> privacy and security -> accessibility?

I don't remember how, but I've solved the issue and forgot to close it. Thanks!


Version cargo

Hello, what version of rust is needed for build?

any late nightly version should do, but this is what we used in CI https://github.com/open-web3-stack/open-runtime-module-library/blob/dcc83ae5b58f72bd8c2d32e0016e14c60cdd34c5/.github/workflows/test.yml#L22


Plug configuration in SETTINGS are ignored

I recently installed a fresh silverbullet and noticed that the generate configuration at SETTINGS changed from yaml to space-config.
It appears that settings for plugs (I tried the git and the treeview plugs) are ignored.
If I change the type of the code block back to yaml all work fine again

+1 on this, just started using Silverbullet and a lot of stuff was not working, changing the SETTINGS codeblock from space-config to yaml solved it for me.

Please list the plugs this applies to. They need to be updated.

Please list the plugs this applies to. They need to be updated.

For now, i had this with both AI and TreeView.
I'm not sure if it has to do with any of this, but when i had my settings as space-config, i was getting an error on the "indexPage" parameter, saying indexPage must match format "page-ref", and when i changed it to page-ref it said indexPage must be string, which was solved by changing to YAML.

@moreirapenna2 that's another issue, the error may not be clear but a page-ref means a string in the form "[[some page]]". So if you put something like "some page" there, this is not an accepted value.

I just noticed the default generated SETTINGS used the wrong format, fixed that too. Releasing 0.9.4 now.


Optimize cursor representations (making history lazy, etc.)

There are only minor changes to the API here (e.g. no more HCursor.apply), but HCursor and ACursor now use slightly different representations, and the history provided by HCursor is lazy—the list of HistoryOp items won't be created unless you ask for it.
In general you only need the history in the case of a decoding failure, so computing it only on demand seems perfectly reasonable.
This has a pretty huge impact on performance:
Current master:
DecodingBenchmark.decodeFoosC      thrpt   80    2175.136 ±   12.538  ops/s
DecodingBenchmark.decodeIntsC      thrpt   80   11732.675 ±  417.534  ops/s

And this PR:
DecodingBenchmark.decodeFoosC      thrpt   80    2328.876 ±   27.059  ops/s
DecodingBenchmark.decodeIntsC      thrpt   80   13882.966 ±  201.895  ops/s

Including allocation rates. For current master:
DecodingBenchmark.decodeFoosC:gc.alloc.rate.norm  thrpt   10  1935616.225 ±      0.018    B/op
DecodingBenchmark.decodeIntsC:gc.alloc.rate.norm  thrpt   10   366634.179 ±     10.229    B/op

And this PR:
DecodingBenchmark.decodeFoosC:gc.alloc.rate.norm  thrpt   10  1712028.188 ±   1306.782    B/op
DecodingBenchmark.decodeIntsC:gc.alloc.rate.norm  thrpt   10   338540.037 ±  19142.773    B/op

Current coverage is 73.36%

Merging #118 into master will decrease coverage by -0.37% as of b9ab572

Powered by Codecov. Updated on successful CI builds.


chimer: sleep between buzzes, instead of during

A small fix to #2799, we now sleep between buzzes instead of kicking off a buzz and instantly sleeping

Thanks!


Refactor BsAlert to Glimmer component

Would still prefer if we can change the default value of hidden to this.visible but I'm also okay to merge without. Your call.

Done. Only for you! :wink:


Help needed for displaying single image from Remote

Thanks for the wonderful library. I have used old java tileview library and now happy to use improved Kotlin version of it. I need one help with respect to displaying of a single image from remote. I just have a single image of size 1200 * 900. I would like to display it with zooming enabled. How would i configure it without using deep-zoom map.
My image : http://androidbash.com/data/floor1.jpg
I tried following config and i am unable to load the map.
var tileSize = 1200
val config = MapViewConfiguration(
1, 1200, 900, tileSize, tileStreamProvider
).setMaxScale(4f).setPadding(tileSize * 2).setWorkerCount(16)

First, you need to make a deep-zoom image from your 1200*900 image.
To do that, you can follow this tutorial.
Then, the configuration should be:
val tileSize = 256
val config = MapViewConfiguration(
            4, 1200, 900, tileSize, tileStreamProvider
        ).setMaxScale(2f).setPadding(tileSize * 2)

I've done it myself, I get 4 levels:

If you need more help don't hesitate.

Then, you will have to define a TileStreamProvider. This is the component which knows how to fetch tiles. It's implementation depends on the location of the tiles (are they in the app assets, on internal memory, or on remote server).
Assuming you will want to store those tiles on your website, then this implementation could look like this:
val tileStreamProvider = object : TileStreamProvider {
            override fun getTileStream(row: Int, col: Int, zoomLvl: Int): InputStream? {
                return try {
                    val url = URL("http://androidbash.com/data/floor/$zoomLvl/$row/$col.jpg")
                    val connection = createConnection(url)
                    connection.connect()
                    BufferedInputStream(connection.inputStream)
                } catch (e: Exception) {
                    null
                }
            }

            fun createConnection(url: URL): HttpURLConnection {
                val connection = url.openConnection() as HttpURLConnection
                connection.doInput = true
                return connection
            }
        }

Thanks for such a quick response. I really appreciate it.
Yes after creating deep zoom map it works perfectly. But Can i display the map/image without creating deep-zoom map i.e just with single image as in the above link?
I was doing it in Tileview old java version with following code :
    String encodedImage = imageData.getFile().getBody();
    String decodedString = Base64.decode(encodedImage, Base64.DEFAULT);

    tileView.setSize(1200, 900);
    tileView.addDetailLevel(1.000f, decodedString, 1200, 900);
    tileView.setMarkerAnchorPoints(-0.5f, -0.5f);
    tileView.setBitmapProvider(new BitmapProviderInternalStorage());
    tileView.setScaleLimits(0, 2f);

Is there something similar i can do in this?

You have to "tile" your image somehow, as MapView (and also TileView in its latest version) only supports squared tiles, and your image is rectangular.
As an alternative, you can only take the last level (folder number 3), rename it to 0 and delete the others. Then, in your configuration:
val tileSize = 256
val config = MapViewConfiguration(
            1, 1200, 900, tileSize, tileStreamProvider
        ).setMaxScale(2f).setPadding(tileSize * 2)

Of course, your TileStreamProvider should be adapted.
This way, you will see your image only at its full resolution while still leveraging the benefits of MapView.

Yes you are right. I understood now.
Thanks for helping out. Great work :)

An example of app using MapView is TrekMe (my own app).
But if your question was really about TileView, again TrekMe, but the trekadvisor branch. Indeed, I used TileView but recently switched the app to use MapView. To save you from looking for the needle in haystack, here's a direct link of a real life TileView usage in trekadvisor branch: https://github.com/peterLaurence/TrekMe/blob/431bf08c2b47e00e1b16288899386d288fd80249/app/src/main/java/com/peterlaurence/trekadvisor/menu/mapview/MapViewFragment.java#L461

Okay i observing something in demo project as well as in mine. In RemoteHttpFragment, it will load initially well (First Image).
Then if i go to background and come back (i.e onResume) it is not loading properly. (Second Image)
What do you think is the cause?

Good catch!
It's in fact a misuse of MapView, which I mistakenly did inside some of the demos. The MapMarkersFragment and MapPathFragment weren't affected though.
I updated the demos to show proper usage, and it's fixed now. The issue were that the configuration was done inside onStart(). But onStart is called everytime the app regains focus after being in background (it's called right before onResume).
So the existing MapView was reconfigured. And this is bad - by design, a MapView shoul'dnt be configured twice, or it should be destroyed by calling MapView.destroy(), then re-created and configured. The recommended way is to configure the MapView inside onCreate - see the updated demos for that.
If you absolutely need to configure after onCreate, I suggest you take a look at DeferredFragment.
So I updated the demo and added a safeguard in the library. If we configure the MapView multiple times, we get an IllegalStateException with a message indicating the problem. This safeguard will be shipped in the next version.

Thanks for such quick replies and such quick updates :)


Design sketch: file upload, file progress, footer

I designed the upload file page as well as file Upload progress in different states (completed and in progress).

I also worked on the footer for the file upload page.
Then worked along with my teammates to create a user flow.


Setting MIME type?

Running into an issue where the browser is giving this error.
The stylesheet http://localhost:8000/ParalucentCondensedHeavy/paralucentCondensedHeavy.css was not loaded because its MIME type, “text/html”, is not “text/css”.
Does the plugin handle MIME type setting?

@jedifunk Hi, did you resolve this? I'm facing the same issue

Same issue. +1


Interoperability with other apps

The European Commission guidelines (see the Common EU Toolbox for Member States, specifically chapter 3: cross-border interoperability, cybersecurity, safeguards) clearly point out that all apps developed in EU countries should be able to communicate with each other.
Apps using the Exposure Notification API are not able to communicate with others that rely on other approaches, thus this should be fixed since it's in contrast with the European Commission Guidelines.

The interoperability with other European apps will be done later as it is described in the solution architecture. The prioritization is a matter of the German Federal government, which can be contacted at https://www.bundesregierung.de/breg-en/federal-government/federal-press-office
Therefore, I'm closing this issue.
Best regards
MC
Your Corona Warn-App Open Source Team


Add sorts to pi-types and switch to singular elim

Ha, no, not just yet!
There might be a couple more references to Elims that aren't needed anymore, I'll do both later.

agda2hs didn't mind, but since the names weren't uniform I changed all of them to be unicode-free.
should be good to merge now.


Timeout for distributed deploys

@dewey4iv brought up a good point today sometimes we may want to have a sleep timeout on our lock so that we for example can say 1 deploy can happen every 10 minutes or some thing like that currently it unlock the second it is finished, which makes it feel like all of the deploys are happening at once.

This has been implemented in 1.5.0 release


Improve console user-experience

We should consider providing a nicer UX by using something like spectre.console to display nice overviews of the things that we have found and use a progress bar.

We should consider using an opt-out/opt-in to simpler logging, though, so that customers can choose to keep it simple if it runs in a CI (for example)

Thoughts on this @adrianhall ?

This project is now in "maintenance" mode. This means that no new features will be accepted and fixes will be limited to security fixes. We expect to retire the DevOps Resource Kit by the end of 2023. At that time, the DevOps Resource Kit repository will be archived and there will be no further updates.
While you are free to fork the DevOps Resource Kit yourself, we recommend that you migrate to the following products:

If you are using creator, switch over to using Bicep templates. Bicep is a descriptive language for describing infrastructure, fully supports all features of Azure API Management, and is covered in any support agreement that you have with Azure. You can find bicep modules and examples for handling API Management APIs at https://github.com/azure-samples/api-management-sample-apis.
If you are using extractor, switch your pipelines to use APIOps. APIOps applies the concepts of GitOps to API deployments. It is faster and more flexible than the DevOps Resource Kit.


Incorrect metadata.json url

Hi!
It's me again.
I've been curious to implement the latest version of your great library!
However, I encountered a little issue when hosting the data.

It looks like the URL is not correctly inferred.
After a little investigation, I guess that the issue comes from here:
https://github.com/ang-zeyu/infisearch/blob/0dc60ce3ebc928e6ee9c53d298323732dc7c0dc9/packages/search/lib/worker/workerSearcher.ts#L63
Where the innerUrl already has a / https://github.com/ang-zeyu/infisearch/blob/0dc60ce3ebc928e6ee9c53d298323732dc7c0dc9/packages/search/lib/worker/workerSearcher.ts#L90
For an obscure reason, no problem for local dev, but once deployed, the search-ui fails to load the data :/

Thanks for updating it so fast 😄
I'll continue the update right now thanks to you !


Report argument name when a duplicate keyword argument is present

Currently we don't mention the keyword name that was detected as a duplicate, i.e:
>>> def foo(**kwargs): pass
>>> foo(k=10, k=20)

Results in:
SyntaxError: keyword argument repeated at line 1 column 8

While in CPython, the same call:
SyntaxError: keyword argument repeated: k

Ignoring our addition of the line/col numbers (which need some fixing), the same message should exist, i.e:
SyntaxError: keyword argument repeated: k at line 1 column 8

should be the wanted result.

Have you tried creating a .py file with that example?

yup, am I missing something?

I was thinking that the line/column information may be redundant in some cases (e.g. running a file), but not others (e.g. running interactively).

Hello, I'm new to Rust. I come from a Python background.
I thought contributing to RustPython can be a very good start for me :)
I just tried to address this issue in #4382. Does it look good to you?
The output with the #4382 change:
>>>>> def foo(**kwargs): pass
>>>>> foo(k=10, k=20)
SyntaxError: keyword argument 'k' repeated at line 1 column 10
foo(k=10, k=20)


Config differ warns about deletions when attempting to apply "remote only" config

From https://toolbox.xh.io/admin/general/config launch the config differ and diff against toolbox-dev. Note there is a toolboxDevOnlyConfig string config that only exists on the remote instance.
Click to apply it locally, which will add it to the local server - differ warns that operation includes deletions, which it should not!  (Did not investigate if it's just the warning that's wrong, or if it would actually delete something locally....)

This seems to be yet another problem caused by our change to the Record API.
I think we might want to make a change like this because we have been bitten by this particular bug so many times.


File Field Type

I am unable to use this package with the "File" field type, as the file is never uploaded to the server:
Select::make('Type')->options([
    'article' => 'Article',
    'file'    => 'File',
])->sortable()->displayUsingLabels(),

NovaDependencyContainer::make([
    File::make('File')
        ->disk('local')
])->dependsOn('type', 'file'),

Furthermore, when using validation it's clear that the field's data is not being sent to the server, as validation fails and returns, "The file field is required.":
NovaDependencyContainer::make([
    File::make('File')
        ->disk('local')
        ->rules('required', 'file')
])->dependsOn('type', 'file'),

Apparently this is happening with all the upload fields. I'm encountering the same issue.

Same problem here

I'm having this issue too

Having this issue as well.

I'm gonna go ahead and think this has been abandoned. Too bad, i really saw good use and the work was pretty solid.
I'm sorry to see it fade.

@niladam have you found another working package?

@garyonyx - this is a pretty solid alternative.

No problems when using a File field for me. Works perfectly fine. Weird.

@anakadote @niladam @garyonyx, as @voidgraphics already mentioned, I'm unable to reproduce with all flavours of Nova File types. It seems to work just fine when storing to local/public disk. Using latest v1.2 and Nova 2.3.
If there still is an issue, open a new one.


Docker build error when installing pytorch

First, thank you for the great work. I'm trying to install limap by docker but currently there are issues with my buid.
When i ran the build with the Dockerfile provided in the repo, i encountered No matching distribution found for torch==1.12.0
 => CACHED [stage-1 14/16] COPY --from=intermediate /limap /limap                                                                                0.0s
 => ERROR [stage-1 15/16] RUN python -m pip install torch==1.12.0 torchvision==0.13.0 --index-url https://download.pytorch.org/whl/cu115                                     2.7s
------
 > [stage-1 15/16] RUN python -m pip install torch==1.12.0 torchvision==0.13.0 --index-url https://download.pytorch.org/whl/cu115:
0.527 Looking in indexes: https://download.pytorch.org/whl/cu115
1.780 ERROR: Could not find a version that satisfies the requirement torch==1.12.0 (from versions: 1.11.0+cu115)
1.780 ERROR: No matching distribution found for torch==1.12.0
------
Dockerfile:121
--------------------
 119 |     # Copy the repository from the first image
 120 |     COPY --from=intermediate /limap /limap
 121 | >>> RUN python -m pip install torch==1.12.0 torchvision==0.13.0 --index-url https://download.pytorch.org/whl/cu115
 122 |     # RUN python -m pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116
 123 |     # RUN python -m pip install torch==1.11.0 torchvision==0.12.0 --index-url https://download.pytorch.org/whl/cu115
--------------------
ERROR: failed to solve: process "/bin/sh -c python -m pip install torch==1.12.0 torchvision==0.13.0 --index-url https://download.pytorch.org/whl/cu115" did not complete successfully: exit code: 1

Then i changed the torch version to torch==1.11.0 torchvision==0.12.0 similar to the previous commit. This time, there is build issue with the hawp, No module name torch.
=> CACHED [stage-1 15/16] RUN python -m pip install torch==1.11.0 torchvision==0.12.0 --index-url https://download.pytorch.org/whl/cu115                                    0.0s
 => ERROR [stage-1 16/16] RUN python -m pip install --upgrade pip setuptools &&     cd limap &&     python --version &&     pip --version &&     python -m pip install -r r  9.8s
------
 > [stage-1 16/16] RUN python -m pip install --upgrade pip setuptools &&     cd limap &&     python --version &&     pip --version &&     python -m pip install -r requirements.txt &&     python -m pip install -Ive .:
0.508 Requirement already satisfied: pip in /opt/venv/lib/python3.9/site-packages (23.0.1)
0.584 Collecting pip
0.639   Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
0.888      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 8.5 MB/s eta 0:00:00
0.896 Requirement already satisfied: setuptools in /opt/venv/lib/python3.9/site-packages (58.1.0)
1.075 Collecting setuptools
1.097   Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
1.179      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.9/807.9 kB 9.9 MB/s eta 0:00:00
1.274 Installing collected packages: setuptools, pip
1.274   Attempting uninstall: setuptools
1.274     Found existing installation: setuptools 58.1.0
1.313     Uninstalling setuptools-58.1.0:
1.396       Successfully uninstalled setuptools-58.1.0
1.682   Attempting uninstall: pip
1.683     Found existing installation: pip 23.0.1
1.823     Uninstalling pip-23.0.1:
1.962       Successfully uninstalled pip-23.0.1
2.660 Successfully installed pip-23.3.1 setuptools-68.2.2
2.779 Python 3.9.18
2.943 pip 23.3.1 from /opt/venv/lib/python3.9/site-packages/pip (python 3.9)
3.250 Processing ./third-party/pytlsd
3.254   Installing build dependencies: started
8.338   Installing build dependencies: finished with status 'done'
8.339   Getting requirements to build wheel: started
8.445   Getting requirements to build wheel: finished with status 'done'
8.447   Preparing metadata (pyproject.toml): started
8.564   Preparing metadata (pyproject.toml): finished with status 'done'
8.569 Processing ./third-party/hawp
8.572   Installing build dependencies: started
9.514   Installing build dependencies: finished with status 'done'
9.515   Getting requirements to build wheel: started
9.599   Getting requirements to build wheel: finished with status 'error'
9.603   error: subprocess-exited-with-error
9.603
9.603   × Getting requirements to build wheel did not run successfully.
9.603   │ exit code: 1
9.603   ╰─> [17 lines of output]
9.603       Traceback (most recent call last):
9.603         File "/opt/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
9.603           main()
9.603         File "/opt/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
9.603           json_out['return_val'] = hook(**hook_input['kwargs'])
9.603         File "/opt/venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
9.603           return hook(config_settings)
9.603         File "/tmp/pip-build-env-2apo2evk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
9.603           return self._get_build_requires(config_settings, requirements=['wheel'])
9.603         File "/tmp/pip-build-env-2apo2evk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
9.603           self.run_setup()
9.603         File "/tmp/pip-build-env-2apo2evk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 507, in run_setup
9.603           super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
9.603         File "/tmp/pip-build-env-2apo2evk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in run_setup
9.603           exec(code, locals())
9.603         File "<string>", line 4, in <module>
9.603       ModuleNotFoundError: No module named 'torch'
9.603       [end of output]
9.603
9.603   note: This error originates from a subprocess, and is likely not a problem with pip.
9.604 error: subprocess-exited-with-error
9.604
9.604 × Getting requirements to build wheel did not run successfully.
9.604 │ exit code: 1
9.604 ╰─> See above for output.
9.604
9.604 note: This error originates from a subprocess, and is likely not a problem with pip.
------
Dockerfile:124
--------------------
 123 |     RUN python -m pip install torch==1.11.0 torchvision==0.12.0 --index-url https://download.pytorch.org/whl/cu115
 124 | >>> RUN python -m pip install --upgrade pip setuptools && \
 125 | >>>     cd limap && \
 126 | >>>     python --version && \
 127 | >>>     pip --version && \
 128 | >>>     python -m pip install -r requirements.txt && \
 129 | >>>     python -m pip install -Ive .
 130 |
--------------------
ERROR: failed to solve: process "/bin/sh -c python -m pip install --upgrade pip setuptools &&     cd limap &&     python --version &&     pip --version &&     python -m pip install -r requirements.txt &&     python -m pip install -Ive ." did not complete successfully: exit code: 1

My system configuration is:

Ubuntu 22.04
CUDA 11.7
Docker 24.0.7

Is there any mismatch of torch and hawp, or my OS configuration.

Hi. Thanks for the interest! I believe the problem of yours is not with limap, but the problem with installing pytorch. You need to refer to https://pytorch.org/get-started/previous-versions/ to install pytorch compatible with your CUDA.
However, I think torch 1.12.0 does not support CUDA 11.7 from the link. So maybe you can give 1.13.1 a try with: "pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117"

I also run into the same series of issue. @AustrianOakvn were you able to successfully build through docker? By system-wide installation I assumed you meant building from scratch, and not through the container.
Could you please provide the changes you made, in case you managed to build it successfully.


Fixed some spelling mistakes

Please note that for legal reasons we require you to sign the
Contributor Agreement
before we can accept your pull requests.

Added your Prescribed changes

Please don't waste other peoples time just to get some scores in hacktoberfest. Come back again if you have a valuable contribution.


nerdfonts: 2.0.0 -> 2.1.0

This release adds 216 fonts.
Note: The Meslo LG {L,M,S}{ DZ,} Regular Nerd Font Complete{, Mono}.otf
fonts are now .ttf files instead of .otf files in this release.
Motivation for this change
Monospace fonts in this release work better with Kitty.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build nerdfonts


HTML

HTML
User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
so that I can easily find and read information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git and JavaScript with associated notes listed

CSS
As a bootcamp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow


ABSBlobClient.ListBlobs

1. Describe the bug
Function fails when folder names contain ampersand (and probably other characters).
2. To Reproduce
Use the function on a folder name that contains ampersand.
    procedure GetAllFilesInABSFolder(var TempABSContainerContent: Record "ABS Container Content" temporary; var ABSBlobClient: Codeunit "ABS Blob Client"; Folder: Text)
    var
        ABSOptionalParameters: Codeunit "ABS Optional Parameters";
    begin
        Folder := Folder.Replace('&', '%26');  //TODO Workaround because ABSBlobClient.ListBlobs doesn't escape & chars...

        ABSOptionalParameters.Prefix(Folder);
        ABSBlobClient.ListBlobs(TempABSContainerContent, ABSOptionalParameters);
    end;

3. Expected behavior
Expected to return list of files in the folder in the temporary record.
4. Actual behavior
Returns nothing UNLESS the TODO line is enabled.
5. Versions:

AL Language: v11.0.787898

This issue is a bug in the system application. Therefore it should be moved the https://github.com/microsoft/ALAppExtensions/ repository.


interactive_markers: 1.11.3-0 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository interactive_markers to 1.11.3-0:

upstream repository: https://github.com/ros-visualization/interactive_markers.git
release repository: https://github.com/ros-gbp/interactive_markers-release.git
distro file: kinetic/distribution.yaml
bloom version: 0.5.22
previous version for package: 1.11.1-0

interactive_markers
* The ``processFeedback`` function of the menu handler no longer catches the ``KeyErrors`` of the feedback_cb.
  See: #29 <https://github.com/ros-visualization/interactive_markers/issues/29>
* Added the ``empty()`` and ``size()`` members to ``InteractiveMarkerServer`` interface.
  See: #30 <https://github.com/ros-visualization/interactive_markers/issues/30>
* Contributors: Blake Anderson, Guglielmo Gemignani

Hold this merge.


onRequestClose doesn't work on iOS

Summary:
I pass onRequestClose prop to <Modal/>, but when I click the overlay, the modal doesn't close (iPhone 5s latest iOS), but it does on desktop browser.

@claydiffrient I tried to debug this one and it seems like some react issue. The onMouseDown and onMouseUp events don't work with <div> element. However it seems to work fine with more semantic elements like <button>. Let me know if you have a workaround for this. Would love to pick this up for a PR.

@claydiffrient Seems to be somewhat related to [#1169] (https://github.com/facebook/react/issues/1169)

iOS doesn't detect an element as clickable without the cursor: pointer; CSS property.
Applying cursor: pointer; to the overlay is a workaround, but it would be nice to get a real fix.
See https://github.com/facebook/react/issues/1169

A fix has been merged. I'm closing this issue for clean up.
If the fix does not solve this issue, please reopen this issue.


Support Admonition

Please Select if your Request is Either something new or an Enhancement

[ ] Enhancement of an existing Feature.
[x] Request of a new feature.

Please select the area your request applys to. (Multiple selections are Possible)

[ ] Onboard. Initial vault setup and import/export pods
[ ] Create. Note creation, lookup, snippets and templates
[ ] Retrieve. Backlinks, references, graph view
[ ] Structure. Refactoring, multi-vault and schemas
[ ] Publish. Sharing your repo with the world
[x] Misc (Choose this if your not sure)

Describe the solution you'd like
Add support for admonitions
Describe alternatives you've considered
Using blockquote
Additional context
Ideally

Workaround

Thanks for the suggestion @rioka. Is this !!! notation the kind that you're expecting? https://squidfunk.github.io/mkdocs-material/reference/admonitions/

Hi there, I'd really love to see this kind of feature too. Another example of how this may look is:

(https://getbootstrap.com/docs/5.1/components/alerts/)
Could this be achieved using CSS, Nunjucks, SASS, or something similar? Apologies, I've done some Googling, but this really isn't my area of expertise.

Thanks for the suggestion @rioka. Is this !!! notation the kind that you're expecting? https://squidfunk.github.io/mkdocs-material/reference/admonitions/

Yes

I've seen these sort of callout features implemented with standard markdown blockquotes so that when the user starts a blockquote with a specified keyword, the entire blockquote gets rendered into a custom styled callout.
...

That would be fine too...
In this case, would markdown syntax (ie monospace, bold, list, ...) inside the generated HTML be preserved?

In this case, would markdown syntax (ie monospace, bold, list, ...) inside the generated HTML be preserved?

If we do go the route of implementing this feature ourselves, we will have full control over how the callout will be transformed into HTML. So the answer is yes.

Another example of admonition implementation in a static site, becoming text boxes with colored labels (generated by Sphinx with furo theme):

https://pradyunsg.me/furo/reference/admonitions/

At the top-right of page, can flip the theme between dark/light modes. This page and these admonitions are done in a format that looks just like the rendered ideal example mentioned by @rioka
MyST-parsed markdown approaches custom admonitions like this with code blocks labels, instead of blockquotes, with special keywords encased in {} which looks like:

```{note}

Not sure what's an easier approach, though. Different avenues that come to mind, based on my experience with other tools:

Blockquotes with a custom header label, that will format it as an admonition?
Codeblocks with a custom parser instead of code-language syntax highlighting, similar to MyST's approach?
It looks like Hugo supports a special Attribute list to things like blockquotes
For Hugo, it looks like people most commonly use shortcodes, and have admonitions configured for use such as where you see {{% note %}} in this doc: https://github.com/gohugoio/hugoDocs/blob/master/content/en/getting-started/quick-start.md

Example rendering in the Tip box: https://gohugo.io/getting-started/quick-start/#step-6-customize-the-theme
This approach may clash with Nunjucks experimental support though, unless Nunjucks could somehow be used as part of addressing admonitions? Nunjucks with Dendron

A different approach?

This came up in discussions around the Getting Started tutorial because we need to use quote blocks with an emoji as a workaround at the moment: https://github.com/dendronhq/dendron/discussions/1756#discussioncomment-1880880
Ex.

:bulb: TIP: Here is a tip!

Hey, I found this Remark-Admonitions, while trying to get to work, hope this will help in the process of building it.
There is also a markdown-extend extension   on the VS Code which should do the work, but I haven't been able to get it to work, while using Dendron.

Just to add to the docs convo, too, Microsoft has extended Markdown with their own admonition setup, too, which is part of their docs-markdown extension:
> [!NOTE]
> Information the user should notice even if skimming.

> [!TIP]
> Optional information to help a user be more successful.

> [!IMPORTANT]
> Essential information required for user success.

> [!CAUTION]
> Negative potential consequences of an action.

> [!WARNING]
> Dangerous certain consequences of an action.

fyi, Obsidian officially support callout blocks in their yesterday release[^1].
They adopt the Microsoft Docs style.
Supported types of callout blocks [^2]:

note
abstract, summary, tldr
info, todo
tip, hint, important
success, check, done
question, help, faq
warning, caution, attention
failure, fail, missing
danger, error
bug
example
quote, cite

[^1]: release note v0.14
[^2]: Obsidian Help

ah, good to know. thanks for the notice!
On Tue, Mar 15, 2022 at 3:57 PM andrey-jef @.***> wrote:

fyi, Obsidian officially support callout blocks in their yesterday release
1
<#m_5594306185611178406_user-content-fn-1-88ddc003953830b9b45e01ae47eda84c>
.
They adopt the Microsoft Docs style
https://docs.microsoft.com/en-us/contribute/markdown-reference.
Supported types of callout blocks 2
<#m_5594306185611178406_user-content-fn-2-88ddc003953830b9b45e01ae47eda84c>
:

note
abstract, summary, tldr
info, todo
tip, hint, important
success, check, done
question, help, faq
warning, caution, attention
failure, fail, missing
danger, error
bug
example
quote, cite

Footnotes

release note v0.14
https://forum.obsidian.md/t/obsidian-release-v0-14-0-insider-build/33986
↩
<#m_5594306185611178406_user-content-fnref-1-88ddc003953830b9b45e01ae47eda84c>
2.
Obsidian Help https://help.obsidian.md/How+to/Use+callouts ↩
<#m_5594306185611178406_user-content-fnref-2-88ddc003953830b9b45e01ae47eda84c>
—
Reply to this email directly, view it on GitHub
https://github.com/dendronhq/dendron/issues/1287#issuecomment-1068543621,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABPIPSKBIH726BQVGN73WDVAEIVVANCNFSM5DNOCZCQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

As another update to add to the conversation, GitHub now supports their own form of admonitions:

https://github.com/community/community/discussions/16925

Note
> **Note**
> This is a note

Note
This is a note

Warning
> **Warning**
> This is a warning

Warning
This is a warning


Evaluation Metrics

Hai Can you tell me how the FID  and other metrics are obtained . did you take the mean value ?

Hello!
If you are asking how to compute the FID metric in general, check out this doc, for example:
https://torchmetrics.readthedocs.io/en/stable/image/frechet_inception_distance.html
And this article:
https://wandb.ai/ayush-thakur/gan-evaluation/reports/How-to-Evaluate-GANs-using-Frechet-Inception-Distance-FID---Vmlldzo0MTAxOTI
And original paper where the FID was introduced:
https://papers.nips.cc/paper/2017/file/8a1d694707eb0fefe65871369074926d-Paper.pdf
We also cover this question in the following section:
https://github.com/saic-mdal/lama#places


Enhancement version

Version class. May not be overly useful right now but if you are trying to keep track of files that are output from the Simulation software and possible future incompatibilities it will be useful to be able to compare versions easily.

I think this could be a good idea, but probably something that would be better off put into the KMC_Lattice library.  Enhanced versioning is something that would be useful for any kind of KMC simulation, whether organic semiconductors or other.  For these types of general features, I'd like to build them into the KMC_Lattice library. I'll keep this pull request open and try to go over it more later for implementation into KMC_Lattice at a later date.

I have added a Version class to the KMC_Lattice library to perform similar functionality as you included here.  Thanks for the suggestion.


Watchman overload

I encountered this on npm start
A non-recoverable condition has triggered.  Watchman needs your help!
The triggering condition was at timestamp=1458753005: inotify-add-watch(/home/qlb/projects/metaljack/ghost/core/client/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/source-map-support/node_modules/source-map/test/source-map) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem.  You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
Error: A non-recoverable condition has triggered.  Watchman needs your help!
The triggering condition was at timestamp=1458753005: inotify-add-watch(/home/qlb/projects/metaljack/ghost/core/client/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/node_modules/babel-core/node_modules/source-map-support/node_modules/source-map/test/source-map) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl
All requests will continue to fail with this message until you resolve
the underlying problem.  You will find more information on fixing this at
https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
    at ChildProcess.<anonymous> (/home/qlb/GhostApp/Ghost-Desktop-0.1.1/node_modules/fb-watchman/index.js:206:21)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:479:12)

not a bug but can be an issue
First things first, my architecture:
Linux 4.4.3-1-ARCH #1 SMP PREEMPT Fri Feb 26 15:09:29 CET 2016 x86_64 GNU/Linux
Fix that works for me:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

This is now fixed.


Backoff Algorithm Updates

Updates and improvements in the exponential backoff algorithm.
I’ll annotate the code to highlight important changes.

cc: @gurkanguray — I modified the algo a little bit; wanted to ping you since the initial work has been started by you.


feat(web): last updated date

Current dependencies on/for this PR:

main

PR #62   👈

This stack of pull requests is managed by Graphite.


How to handle JSON with namespaces

I'm having trouble using JsonPath for checking json with namespaces in front of fields. I haven't been able to find anything from google or looking through existing issues or the documentation. I haven't been able to get anything to work. I have the following snippet of json:
{
  "_embedded" : {
    "bb:list" : [ {
      "id" : "id",
      "label" : "label",
      "description" : "description",
      "timezone" : "timezone",
      "postalAddress" : {
        "addressCountry" : "country",
        "addressLocality" : "city",
        "addressRegion" : "state",
        "postalCode" : "postal code",
        "streetAddress" : "street address"
      }
    } ]
  }
}

And I'm trying to check the bb:list field to see how many items are in it. This JsonPath expression does not seem to work:
"$._embedded.bb:list"
If I remove the "bb:" then using this works   "$._embedded.list" so it's the bb: that it doesn't seem to like.

Try this $._embedded.['bb:list'], although this one $._embedded.bb:list also works for me.
You can try it online here: http://jsonpath.herokuapp.com/

Thanks. It turns out the problem is not with the JsonPath expression, or JsonPath at all. SpringBoot was bringing in JsonPath so it all compiled, but it seemed that at runtime, it just wasn't working for whatever reason. I explicitly added JsonPath to my dependency list and it magically started working without the brackets.


fix: Enable Custom Lambda Conflict Handler support in GQLv2-enabled Applications

Description of changes

fix: update api should allow setting NEW lambda conflict resolver
fix: set cfn values correctly when applying lambda-based conflict resolution

Issue #, if available
https://github.com/aws-amplify/amplify-category-api/issues/628
Description of how you validated changes
Unit tests, deployed app locally w/ these changes, and additional e2e tests to cover this use case.
Checklist

[x] PR description included
[x] yarn test passes
[x] Tests are changed or added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #701 (0ef446b) into main (e707bd5) will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #701      +/-   ##
==========================================
+ Coverage   63.26%   63.39%   +0.12%
==========================================
  Files         278      278
  Lines       18133    18137       +4
  Branches     4377     4378       +1
==========================================
+ Hits        11472    11498      +26
+ Misses       6073     6053      -20
+ Partials      588      586       -2

Impacted Files
Coverage Δ

...-transformer-core/src/transformation/sync-utils.ts
66.66% <100.00%> (+46.66%)
:arrow_up:

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


MQTT not working if more than 4 subscriptions

I got Homie.sendProperty that returns false (even if some time msg is sent) and some random MQTT reconnection when I get more than 4 Homie.addSubscription.
It seems to be linked to https://github.com/knolleary/pubsubclient/issues/98
Maybe one should add a mqtt.loop call in Homie.addSubscription ?

Yes this is probably the issue. We need to add mqtt.loop() after https://github.com/marvinroger/homie-esp8266/blob/master/src/Homie/Boot/BootNormal.cpp#L99
I will fix tomorrow!

Can you try again?

Thanks, I'll test it tonight.

OK you can close it, the fix works.

Oh I didn't take care: I can close it myself...


Enable GPU for local runner

PR that adds GPU resource for the local runner when specified in the componentOP
based on:
https://docs.docker.com/compose/gpu-support/

Thanks @PhilippeMoussalli, have you been able to test this?

Thanks @PhilippeMoussalli, have you been able to test this?

Yes (partially).
services:
  test:
    image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
    command: nvidia-smi
    deploy:
      resources:
        reservations:
          devices:
          - capabilities:
            - gpu
            count: 1
            driver: nvidia

Tested this on a VM and it showed that there is an available GPU

Thanks @PhilippeMoussalli, have you been able to test this?

Yes (partially).
services:
  test:
    image: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
    command: nvidia-smi
    deploy:
      resources:
        reservations:
          devices:
          - capabilities:
            - gpu
            count: 1
            driver: nvidia

Tested this on a VM with GPU and it showed that there is an available GPU

Marc Tested this as well (manually) and it seems to be doing the job

Ok thanks!


Test dependeny num2words not listed in pyproject.toml

The module num2words is a new dependency for tests. It is not listed in the appropriate section of pyproject.toml

Sorry about that. Should now be fixed in GitHub version.


Color on out-of-plane 2D buckling mode (warping) shapes

When you change scale from +1 to -1 and plot the warping (or out-of-plane) shape the direction of the warping displacements change but the color stays the same. So red switches from inward to outward. Seems weird, would expect color to be related to a direction so that color should change.
Noticed this because I was exploring the impact of inward vs. outward flange distortional buckling on the end warping of the free lip of a lipped channel or sigma. Just need to correct the color then this big should be settled. The direction is as expected.

Professor, I have pulled an request to solve this problem. Please take a look to see if it is right.


PwD in DinD

Hey all
Out of curiousity I was trying to see if I could create PwD inside a Docker host that itself is a container using the latest docker:dind image.
I can get the DinD to work fine but I'm unable to load the xt_ipvs module. It loads fine inside the host but inside the DinD container I get:
ip: can't find device 'xt_ipvs'
This is happening after already launching the container with the following arguments:
docker run --privileged --name DIND-PwD -d --network macvlan_net --ip 192.168.*.* --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules docker:dind
Additionally, the processes started by docker-compose fail to launch with error code 1.
I ran all the commands specified in the https://github.com/play-with-docker/play-with-docker#development article.
Is DinD with PwD even possible. I read that you should be able to create DinD inside DinD...
Thanks

Thanks @marcosnils
I since managed to launch the PwD environment on a test VM based on Ubuntu. I noticed I can only access it via the http://localhost and other DNS names don't work. Is this something that is hard coded? I wanted to make PwD available in my network under a dedicated fqdn and also fix up the port exposing feature.

Hey @marcosnils
I've been able to get PWD to work outside localhost just fine by simply adding the following line in the pwd backend in the haproxy config.
http-request set-header host localhost
I added the needed DNS entries and I can even SSH into the instances and open ports from the web UI, however the port opening feature is misbehaving...
If I open access to port 80 and let's say 8000. At first, I can browse both, but after a few moments, they seem to get mixed up. I'm trying to figure out if it's an issue due to my localhost workaround (there is not header translation for accessing the l2 backend) or perhaps the issue is with the l2 backend router...

Are you still trying to achieve PWD in DinD? Or the previous comment is about deploying PWD in a standalone VM?

I have up on that, currently trying to get it all to just work in a dedicated clean Ubuntu VM, if I can get it all to work like that, I will try DinD again :)

I gave up on that, currently trying to get it all to just work in a dedicated clean Azure Ubuntu VM, if I can get it all to work like that, I will try DinD again :)

In that case, the only change that you should do to make this work in a VM and being able to access from the outside is changing the haproxy.conf so it doesn't say "localhost.

There actually isn't anything in haproxy.conf mentioning localhost.
I found that I had to add a line to make haproxy spoof the localhost host header on connections to the pwd container and then it works...

There actually isn't anything in haproxy.conf mentioning localhost.

That's correct. You shouldn't have to set the header to localhost since probably some things could break. I'll try deploying PWD in a remote VM today to see what's not working.

Thanks, I was thinking this breaks the reverse proxy functionality, but it can't really, since I'm not forcing the localhost header to the l2 container and setting the option to close http connections after each request fixed it.
Having an issue with the franela/k8s container, the weave network plugin fails to start but works just fine in real play with k8s site, I wonder if I'm missing some module.

@mateuszdrab just remembered what needed to be done. You need to configure this variable (https://github.com/play-with-docker/play-with-docker/blob/master/config/config.go#L58) with the domain that you're planning to use. That should make it work.

Alright, I will try that later.
I'm still trying to figure out why the k8s cluster doesn't build.
Health checks fail on the kube-apiserver pod and rest keeps restarting.
The only difference atm in the logs I can see is a different kernel version.
5.3.0-1028-azure vs 4.4.0-177-generic

Does it work in your local machine?
I'll try that later today.
On Wed, Jun 17, 2020 at 10:21 AM Mateusz Drab<EMAIL_ADDRESS>wrote:

Alright, I will try that later.
I'm still trying to figure out why the k8s cluster doesn't build.
Health checks fail on the kube-apiserver pod and rest keeps restarting.
The only difference atm in the logs I can see is a different kernel
version.
5.3.0-1028-azure vs 4.4.0-177-generic
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/play-with-docker/play-with-docker/issues/402#issuecomment-645369490,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMBLWR5A267LCJIFWHMWETRXC7MZANCNFSM4N2PBCPQ
.

Not sure, I will have to try on a non Azure VM, I rebuilt the Azure VM into 16.04 with kernel 4.15.0-1089-azure and still facing same issue.

Yo should be able to try this in your local machine. No need to use it in
the cloud
On Wed, Jun 17, 2020 at 11:15 AM Mateusz Drab<EMAIL_ADDRESS>wrote:

Not sure, I will have to try on a non Azure VM, I rebuilt the Azure VM
into 16.04 with kernel 4.15.0-1089-azure and still facing same issue.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/play-with-docker/play-with-docker/issues/402#issuecomment-645401056,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMBLWWY3G7OH6YFQJG26Q3RXDFZXANCNFSM4N2PBCPQ
.

Just confirmd the regex hostPattern in host.go catches the name correctly, so it shouldn't cause those issues I have with the router. It doesn't seem to look beyond the first part of the domain, until the first dot.

Correct, but I normally don't work with stuff on my local machine, since I want to have this running in a VM in my Azure Stack lab.

I know.. I'm just trying to see if this is specific to your cloud deployment since it "should" work locally. That's how I try it.

So, little summary:
✔ changing playground-domain works, no longer need to inject localhost as a header via haproxy
❌ the port forward proxy still mashes up connections, option option http-server-close needs to stay in the l2 backend on haproxy
✔the K8s cluster works fine in PwD deployed on a test Ubuntu VM (not Azure) running kernel 4.8.0-59-generic
I notice that the production PwD website and my Ubuntu VM log this line, the Azure VM didnt:
[WARNING FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist

the port forward proxy still mashes up connections, option option http-server-close needs to stay in the l2 backend on haproxy

Not sure if I completely understand this.

the port forward proxy still mashes up connections, option option http-server-close needs to stay in the l2 backend on haproxy

Not sure if I completely understand this.

So, if I start nginx and open a port to that container using the button and enter 80, and then open another web server, for example portainer and open port 9000, for a moment it works fine, but then if I refresh the nginx page, it shows me portainer instead. My investigation led to the discovery that the l2 container doesn't log all requests coming in as connections, which means that the connections have to be reused, and this probably means that the l2 container proxy service caches the host header potentially, and it doesn't recognise when a request comes through for a different service. option http-server-close makes haproxy kill the connection after each request, which seems to fix the issue at the expense of reopening a new connection for each request.
Btw, I've now managed to start PwD in DinD on my existing docker host (something I couldn't do earlier). The kubernetes cluster creates and fails with the same issue like it did on the Azure VM, strangely, I'm not seeing the [WARNING FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist message. I feel like it has something to do with it...

Turns out the answer to this issue is
modprobe nf_conntrack ip_vs_sh ip_vs_rr ip_vs ip_vs_wrr xt_ipvs
echo 65536 > /sys/module/nf_conntrack/parameters/hashsize
After this, I can build k8s clusters in both Azure, DinD and my other test VMs


python312Packages.google-cloud-secret-manager: 2.21.0 -> 2.21.1

Changelog: https://github.com/googleapis/google-cloud-python/blob/google-cloud-secret-manager-v2.21.1/packages/google-cloud-secret-manager/CHANGELOG.md

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 359394

x86_64-linux

:white_check_mark: 4 packages built:

python311Packages.google-cloud-secret-manager
python311Packages.google-cloud-secret-manager.dist
python312Packages.google-cloud-secret-manager
python312Packages.google-cloud-secret-manager.dist


Add support for $version$ with new object model

#252 breaks current support for the $version$ token since code is read through the NuGet object model.
https://github.com/NuGet/Home/issues/6228 tracks this on the NuGet side, but we'll attempt to workaround it a different way here.

There's a PR for NuGet that'll fix this:
https://github.com/NuGet/NuGet.Client/pull/1842

Nice :+1:
Hope they merge faster than the nuget/home team ;)


RBloomFilter.expire only deletes Bloom Filter hash, not string

Problem
I initialize a bloom filter like this：
final String filterName = "Birth:Msg:"+ req.getPid() + ":" + req.getActivityId();
final String key = "Birth:Msg:" + req.getWid() + ":" + req.getPid() + ":" + req.getActivityId();
RBloomFilter<String> bloomFilter=redissonClient.getBloomFilter(filterName);
bloomFilter.tryInit(5_000_000, 0.01);
bloomFilter.expire(12, TimeUnit.HOURS);

mostly is works,but sometimes the key likes "Birth:Msg:100000000901:612" is not deleted,and the config hash is deleted
Env details
Java version: 1.7
Redis server v=3.0.7
Redisson Version : 2.15.0

This problem still exists, when I run the code below
RBloomFilter<String> bloomFilter=redissonClient.getBloomFilter("foo");
bloomFilter.tryInit(500, 0.01);
bloomFilter.expire(100, TimeUnit.SECONDS);

hash key {foo}:config is set ttl of 100s as expected but string key foo isn't.
Redis server version = 3.2.3
Redisson version = 3.15.6
opend JDK 11

In Redis expiration isn't applied to empty data structure.

In Redis expiration isn't applied to empty data structure.

so can we init the bitset(string) at the moment of constructing bloomfilter, so that expire method can set tll for both name and configName?

This issue still exists, why was it removed?
Most users do not check the implementation source code, and the official documentation does not indicate that method expire need after add some objects.😑


A lot of files in the dist folder

Doing a build doesn't clear it, and if I do some builds, dist folder will have a lot of javascript and css files

html gets overwritten every time

I added emptyOutDir in the config but it continues to happen

It'll fixed in v1.1.3


Enable features for admins

There are some features launched and upcoming that I, as an admin, need to test and use in production.
A PR addressing this issue should:

Add a named parameter to Feature#enabled? passing in the user:
Enable :role_level_filters for admins

The first will require a bit of refactoring as all checks for features will require this new parameter. This might mean we have to pass down current_user into (nested) View Components. I'm open to a better abstraction or global variable if need be!

Can I work on this?

You got it!

@joemasilotti Please review

Closed via #327.


Possible with IP camera system?

Would this be possible to use with a IP camera system such as ZoneMinder?
Either in real-time or post processing?

What about city-wide CCTV monitoring? Surely there would also be a way to hook into Facebook API to get face recognition and access people's names in real time? What about a deep learning model for criminal threat and nefarious intent?
The business opportunities for this really are endless.
 😁

What about city-wide CCTV monitoring?

A number of people have reached out with thoughts like that.
It's a terrible idea.
These reconstructions are necessarily inaccurate. If you use them to comb a large facial database you will get lots of false positives. Think about what that means: innocent people who were not there, who had nothing to do with the crime, will be flagged as suspects and, because the justice system is not perfect, some of them will be convicted. When an innocent person is convicted, you are not only punishing an innocent but also you are letting free the actual person who committed the crime.
This isn't science-fiction. DNA fingerprints have been misused in exactly the same manner; while they are accurate to identify a person out of a small number of suspects, they lead to lots of false positives when misused by searching through a large database. Let's not make the same mistakes again.
Now, going back to the original question.

Would this be possible to use with a IP camera system such as ZoneMinder?

I don't see why not. But keep in mind that security camera footage will be quite different from the dataset that was used to train this system. Different lighting conditions, different angles, different artifacts like noise or glare, etc. It would not work very well unless you can train it with a large database (e.g. a million faces) produced from actual security cameras.

@david-gpu Of course I was being sarcastic, but Github borked my </troll> tag 🤓


Creating virtual machine from "bring your own feature" vhd

Based on the discussion with Azure compute team, a VM can be created from a captured image or "bring your own feature" image vhd. Ensure that the current VM create flow can support "bring your own feature" image vhd.

Addressed https://github.com/Azure/azure-sdk-for-java/pull/1216


Value is rounded up when the x-axis is time

I'm using chart.js and my x-axis is time. When I use the annontations plugin and set a value (of, let's say 2018-02-18 10:23), on the graph the value is rounded up  (vertical line is drawn at 2018-02-18 11:00).

Closing due to no test case.


"tee: command not found" ( docker-machine + vsphere + cloud-config with rancher-agent service )

RancherOS Version: 1.1.0-rc3
Where are you running RancherOS? docker-machine + vsphere
$ docker-machine --version
docker-machine version 0.12.2, build 9371605

With this cloud-config
#cloud-config
write_files:
  - path: /etc/rc.local
    permissions: "0755"
    owner: root
    content: |
      #!/bin/bash
      sudo rm -rf /var/lib/rancher/resizefs.done
rancher:
  resize_device: /dev/sda1
  sysctl:
    net.ipv6.conf.all.disable_ipv6: 1
    net.ipv6.conf.default.disable_ipv6: 1
    net.ipv6.conf.lo.disable_ipv6: 1
    net.ipv4.ip_nonlocal_bind: 1
  bootstrap_docker:
    registry_mirror: "https://xxxx"
  docker:
    registry_mirror: "https://xxxx"
  system_docker:
    registry_mirror: "https://xxxx"
ssh_authorized_keys:
  - "ssh-rsa xxxx"

Everything is ok
$ docker-machine create --driver vmwarevsphere --vmwarevsphere-username=xxxx --vmwarevsphere-password=xxxx --vmwarevsphere-vcenter=xxxx --vmwarevsphere-hostsystem=xxxx --vmwarevsphere-disk-size="20000" --vmwarevsphere-cpu-count=6 --vmwarevsphere-memory-size=6144 --vmwarevsphere-datacenter="xxxx" --vmwarevsphere-network='xxxx' --vmwarevsphere-datastore='xxxx' --vmwarevsphere-cloudinit="https://xxxx/cloud-config.yml" --vmwarevsphere-boot2docker-url="https://github.com/rancher/os/releases/download/v1.1.0-rc3/rancheros.iso" tools-$(cat /proc/sys/kernel/random/uuid)
Running pre-create checks...
Creating machine...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Downloading /home/xxxx/.docker/machine/cache/boot2docker.iso from https://github.com/rancher/os/releases/download/v1.1.0-rc3/rancheros.iso...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Generating SSH Keypair...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Creating VM...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Uploading Boot2docker ISO ...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Reconfiguring VM...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) setting guestinfo.cloud-init.data.url to https://xxxx/cloud-config.yml
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74)
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Waiting for VMware Tools to come online...
(tools-0a89781f-d8bd-4404-b0e9-07714899ce74) Provisioning certs and ssh keys...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with rancheros...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env tools-0a89781f-d8bd-4404-b0e9-07714899ce74

But if we had the rancher-agent service....
#cloud-config
write_files:
  - path: /etc/rc.local
    permissions: "0755"
    owner: root
    content: |
      #!/bin/bash
      sudo rm -rf /var/lib/rancher/resizefs.done
rancher:
  services:
    rancher-agent1:
      image: rancher/agent:v1.2.2
      command: https://xxxx/v1/scripts/xxxx
      privileged: true
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
      environment:
        CATTLE_HOST_LABELS: type=tool
  resize_device: /dev/sda1
  sysctl:
    net.ipv6.conf.all.disable_ipv6: 1
    net.ipv6.conf.default.disable_ipv6: 1
    net.ipv6.conf.lo.disable_ipv6: 1
    net.ipv4.ip_nonlocal_bind: 1
  bootstrap_docker:
    registry_mirror: "https://xxxx"
  docker:
    registry_mirror: "https://xxxx"
  system_docker:
    registry_mirror: "https://xxxx"
ssh_authorized_keys:
  - "ssh-rsa xxxx"

Strange things happen
$ docker-machine create --driver vmwarevsphere --vmwarevsphere-username=xxxx --vmwarevsphere-password=xxxx --vmwarevsphere-vcenter=xxxx --vmwarevsphere-hostsystem=xxxx --vmwarevsphere-disk-size="20000" --vmwarevsphere-cpu-count=6 --vmwarevsphere-memory-size=6144 --vmwarevsphere-datacenter="xxxx" --vmwarevsphere-network='xxxx' --vmwarevsphere-datastore='xxxx' --vmwarevsphere-cloudinit="https://xxxx/cloud-config.yml" --vmwarevsphere-boot2docker-url="https://github.com/rancher/os/releases/download/v1.1.0-rc3/rancheros.iso" tools-$(cat /proc/sys/kernel/random/uuid)
Running pre-create checks...
Creating machine...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Downloading /home/xxxx/.docker/machine/cache/boot2docker.iso from https://github.com/rancher/os/releases/download/v1.1.0-rc3/rancheros.iso...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Generating SSH Keypair...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Creating VM...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Uploading Boot2docker ISO ...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Reconfiguring VM...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) setting guestinfo.cloud-init.data.url to https://xxxx/cloud-config.yml
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99)
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Waiting for VMware Tools to come online...
(tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99) Provisioning certs and ssh keys...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with rancheros...
Error creating machine: Error running provisioning: ssh command error:
command : sed /<IP_ADDRESS>/d /etc/hosts > /tmp/hosts && cat /tmp/hosts | sudo tee /etc/hosts
err     : exit status 1
output  : sudo: tee: command not found

$ docker-machine ls
NAME                                         ACTIVE   DRIVER          STATE     URL                       SWARM   DOCKER        ERRORS
tools-0a89781f-d8bd-4404-b0e9-07714899ce74   -        vmwarevsphere   Running   tcp://<IP_ADDRESS>:2376           v17.03.1-ce
tools-f3f9ca4b-7d87-4420-97d6-4ac5f47b3c99   -        vmwarevsphere   Running   tcp://<IP_ADDRESS>:2376           Unknown       Unable to query docker version: Cannot connect to the docker engine endpoint

Maybe related with #1750
i didn't had this behaviour with the same cloud-config on v1.0.3 release and "sudo ros install -c cloud-config.yml -d /dev/sda" installation on disk

truely awesome report! yesterday (australian tz) I switched back to the 1.0.3 version of the open-vm-tools to fix the problem I found - I'll kick this today

@SvenDowideit , what is awesome is your quick answer and the fixes you provide every day :).
Thank you !

:D - most of the time I'm slow and distracted - but this time you caught me just as I got up

@rockandska I'm presuming that the tee line is in the obfuscated https://xxxx/v1/scripts/xxxx script?

@SvenDowideit , that's the weird part of this issue.
the obfuscated link is just a normal rancher register link who doesn't mention "tee" at all
https://xxxx/v1/scripts/xxxx
#!/bin/sh

export CATTLE_REGISTRATION_ACCESS_KEY="registrationToken"
export CATTLE_REGISTRATION_SECRET_KEY="xxxx"
export CATTLE_URL="https://xxxx.pro/v1"
export DETECTED_CATTLE_AGENT_IP="X.X.X.X"

If the link is a wrong one, fake domain for exemple (i tested it), everything is ok, so it seems not directly related to the cloud-config.

oh so very weird.

found it: libmachine/provision/rancheros.go:      if _, err := provisioner.SSHCommand("sed /<IP_ADDRESS>/d /etc/hosts > /tmp/hosts && cat /tmp/hosts | sudo tee /etc/hosts"); err != nil {
seriously, that's odd.

we have several problems:

using a rancher.service like you are, and using docker-machine, means that the docker-user daemon is restarted by machine while the rancher-agent is being initialised.
there's no persistence partition, as that needs to be configured in the kernel boot params (or maybe, if we're lucky we can do it in the vmware guestinfo) so we run out of disk/memory pretty fast.

using a rancher.service like you are, and using docker-machine, means that the docker-user daemon is restarted by machine while the rancher-agent is being initialised.

I think it is the same process if we provision it by the Rancher UI isn't it ? If yes, we will encounter the same issue

there's no persistence partition, as that needs to be configured in the kernel boot params (the vmware guestinfo is also too late) so we run out of disk/memory pretty fast.

It seems I missed something during my quick test, RancherOS is not installed on disk with docker-machine but only in RAM ? If yes, i understand and make sense, but 6Go of RAM is not sufficient to run all the stuff ?
I will try a dirty trick in the meantime but not sure it will work due to the fact that reboot freeze the os instead of reboot if i'm not wrong

reboot freezes? that I definitely need to know more about - I rewrite the reboot code for the rc3 to try to deal with some issues we found.

Not easy as I had thought
Not elegant as I expected
But :
It works
RancherOs is installed on disk, so it survives to reboot
Access via docker-machine is fully functional ( docker-machine restart take ages and don't know why but it works )

Tested with RancherOs 1.1.0 RC3 and VSphere 6.0
#cloud-config
write_files:
  - path: /etc/rc.local
    permissions: "0755"
    owner: root
    content: |
      #!/bin/bash
      sudo rm -rf /var/lib/rancher/resizefs.done
      (
      # If the install on disk is not done yet
      if [ ! -e /var/lib/rancher/install_on_disk.done ];then
        # Wait for docker-machine to create his config file
        while ! grep "provider=vmwarevsphere" /var/lib/rancher/conf/docker &> /dev/null;do
          echo "Waiting the creation of the file '/var/lib/rancher/conf/docker'"
          sleep 5
        done
        while [[ -z "$(netstat -nat | egrep ":2376( |$'\t')")" ]];do
          echo "Waiting for Docker-machine to open his connection"
          sleep 5
        done
        # Install on disk
        ros install -f --no-reboot -d /dev/sda -c <(cat /var/lib/rancher/conf/cloud-config.d/machine-hostname.yml /var/lib/rancher/conf/cloud-config.d/boot.yml)
        # Copy needed files
        mount /dev/sda1 /mnt/new_img/
        cp -a /var/lib/rancher/ /mnt/new_img/var/lib/
        mkdir /mnt/new_img/home
        cp -a /home/docker/ /mnt/new_img/home/
        touch /mnt/new_img/var/lib/rancher/install_on_disk.done
        reboot
      else
        wait-for-docker
        echo "Done" > /var/lib/rancher/install_on_disk.done
        docker run --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.5 https://xxxx/v1/scripts/xxxx
      fi
      ) &
rancher:
  resize_device: /dev/sda
  sysctl:
    net.ipv6.conf.all.disable_ipv6: 1
    net.ipv6.conf.default.disable_ipv6: 1
    net.ipv6.conf.lo.disable_ipv6: 1
    net.ipv4.ip_nonlocal_bind: 1
  bootstrap_docker:
    registry_mirror: "https://xxxx"
  docker:
    registry_mirror: "https://xxxx"
  system_docker:
    registry_mirror: "https://xxxx"
ssh_authorized_keys:
  - "ssh-rsa xxxx"

Oh. I just realised - when using docker-machine, can't you treat the disk as a state partition and continue to boot from the iso?

I don't see any flags for this inside the driver
Options used for this exemple :
--vmwarevsphere-disk-size="20000" --vmwarevsphere-cpu-count=6 --vmwarevsphere-memory-size=6144 --vmwarevsphere-boot2docker-url="https://github.com/rancher/os/releases/download/v1.1.0-rc3/rancheros.iso"

After the creation via docker-machine we can see that 1/2 of the memory is used for the overlay system and that the disk is not used at all
$ docker-machine ssh tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f
[docker@tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f ~]$ df -h
Filesystem                Size      Used Available Use% Mounted on
overlay                   2.9G    331.9M      2.6G  11% /
tmpfs                     2.9G         0      2.9G   0% /dev
tmpfs                     2.9G         0      2.9G   0% /sys/fs/cgroup
tmpfs                     2.9G         0      2.9G   0% /media
tmpfs                     2.9G         0      2.9G   0% /mnt
none                      2.9G    788.0K      2.9G   0% /run
none                      2.9G    788.0K      2.9G   0% /var/run
devtmpfs                  2.9G         0      2.9G   0% /host/dev
shm                      64.0M         0     64.0M   0% /host/dev/shm
tmpfs                     2.9G    331.9M      2.6G  11% /etc/hostname
shm                      64.0M         0     64.0M   0% /dev/shm
devtmpfs                  2.9G         0      2.9G   0% /dev
shm                      64.0M         0     64.0M   0% /dev/shm
tmpfs                     2.9G         0      2.9G   0% /tmp

If we reboot the host via docker-machine :
$ docker-machine restart tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f

We can see on VSphere log than the shutdown took ages.
During those 3min to shutdown the VM, the console show nothing unusual , only the normal ROS console
8/31/2017 8:39:52 AM Initiate guest OS shutdown tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f Completed
8/31/2017 8:42:45 AM Power Off virtual machine tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f Completed
8/31/2017 8:42:48 AM Power On virtual machine tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f Completed

And docker-machine can't connect anymore to the VM created because nothing was put on the disk created during the initial creation, so the home of docker user doesn't contained docker-machine keys inside authorized_keys, and docker is not start with the options to open the 2376 tcp port etc.. due to the lack of the /var/lib/rancher/conf/docker file
$ docker-machine restart tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f
Restarting "tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f"...
(tools-deb8249f-9a41-4357-bd2a-8a52cee6ae7f) Waiting for VMware Tools to come online...
Waiting for SSH to be available...
Too many retries waiting for SSH to be available.  Last error: Maximum number of retries (60) exceeded

Anyway, my dirty workaround work like a charm and i am happy with it in the meantime :)

I do something similar in https://github.com/SvenDowideit/bin-dir/blob/master/cloud-configs/install-rancher-server.sh
but I think yours is actually a bit more reliable - in mine, the docker-machine restart for the certs can happen midway through the rancher-server initialisation.
This definitly needs to become simpler - something like having a rancher.install.[disk,append,cloud-init] config setting that can be executed as early as possible - for example right after the cloud-init-save


Authentication problem on old devices

Logging this issue reported on gitter by @MrZhang123:
I use genymotion to run git-point , but when i hope authorise github to login , it give me "no longer supports your web browser , please upgrade chrome or firefox "( i install chrome in simulator ), how to solve this problem and Continue to develop ？

Hey @MrZhang123, can you try adding userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36" in login.screen.js line 259 ?
Let me know if it works 🙏

@machour Thanks for your help , add this code
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.91 Safari/537.36"

can fixed the not support in your browser, but not use in button disabled
I guess my Genymotion run slow cause this problem , when i run client in android device for develop , the button can touch and login . github authorise just once and then can develop , so I can give authorise and then login the Genymotion to fixed this problem.

@MrZhang123 i had this problem and tried a lot of things.
The only solution i found was installing chrome and fix it that way.

@FlorianTaut was that on a real device or an emulator? I'm a bit worried by the problem :/

@FlorianTaut I installing chrome x86 , but not fix it , I have to use real device.

@MrZhang123 should I go ahead and close this issue?
You got me a bit worried about old (real) devices.. is there a way you can test on a physical device with an old OS ?

@MrZhang123 @machour i had this issue on Android emulator. Searched the hole internet and even asked github for support.
They told me the same as the browser. Its not supported and i should use chrome instead.
Downloaded the apk and installed it with drag and drop to the emulator.
Then set the default browser in settings and it should work.

Closing this for now, as it seems to only affect the emulator


v0.5.2

Current dependencies on/for this PR:

main

PR #542   👈

This comment was auto-generated by Graphite.


Fix typo

https://github.com/TA-Lib/ta-lib/blob/400eed5ab37a83a87984e28d3fbed801f847f530/include/ta_func.h#L4772

Thanks for reporting this, it is now fix.
Details
gen_code is now working, so the only "manual" change needed was in table_s.c (all other changes are generated).


Support Python 3.11

No code changes required.

Coverage increased (+0.1%) to 98.204% when pulling 440c8637a81624cd64a6080528bf731fec4829d7 on ken/python-3.11 into 6b27c9d31500e454ade4d5dd7a48fad1d8d44fa5 on master.


Updating readme me from example branch

Updates
I updated the readme file. __Please__review and accept.

I probably shouldn't, but okay. 👍


Xiao/DisarmSecurityArtifact

Remove the signatures from JWS and authentication tag from JWE when PII is on

@ciaozhang can you add more details to the description as well as a section which can be copied directly into the release notes? I'm happy to help construct if you need help. @jmprieur would also likely be able to help.

@ciaozhang minor observation, the title of the PR is very descriptive but the commit message is not. Let's try to keep our commit messages readable and with enough context for anyone to understand a change.


chore(starknet_sierra_compile): path cleanups

Stack:

#2654 ⬅
#2653

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is