Uncaught Error: ENOENT: no such file or directory, lstat '/Users/ferge/Library/Application Suppor...

[Enter steps to reproduce below:]

...
...

Atom Version: 0.211.0
System: Mac OS X 10.9.5
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat '/Users/ferge/Library/Application Support/com.github.atom.ShipIt/update.0slQICW'
At ATOM_SHELL_ASAR.js:50

Error: ENOENT: no such file or directory, lstat '/Users/ferge/Library/Application Support/com.github.atom.ShipIt/update.0slQICW'
    at Error (native)
    at fs.lstatSync (fs.js:836:18)
    at Object.fs.lstatSync (ATOM_SHELL_ASAR.js:170:16)
    at realpathSync (fs.js:1439:21)
    at Object.fs.realpathSync (ATOM_SHELL_ASAR.js:253:24)
    at tryFile (module.js:122:15)
    at Function.Module._findPath (module.js:162:18)
    at Module._resolveFilename (module.js:326:25)
    at Function.Module._resolveFilename (/Users/ferge/Library/Application Support/com.github.atom.ShipIt/update.0slQICW/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.require.resolve (module.js:380:19)

Commands

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "base16-tomorrow-dark-theme"
    ]
  },
  "editor": {
    "invisibles": {},
    "fontSize": 14
  }
}

Installed Packages
# User
No installed packages

# Dev
No dev packages

Hi @fehrmanns, could you please share what you were doing when this happened?  Thanks.
/cc @jspahrsummers

I was trying to open a README.md via 'mouse right click context menu'.

This was 'fixed' for a while by atom/notifications#62, but then the stacktrace length was increased, which led to the appearance of absolute paths.
/cc @joshaber

From the few issues that have repro steps, it seems like this can happen when there's two different versions of Atom running at the same time.

Also reproduced this error
Steps:
1.Downloaded a new version of Atom 1.2.3
2.Already had an older version of Atom 1.2.0 with already open files (believe), kept on Dock
3.Opened a shell script in finder and chose "Open As" Atom 1.2.3 instead of the usual, I believe the 1.2.0 was in my Applications folder and Atom 1.2.3 was in my downloads for some reason, not sure why
4. Nothing but empty lines on the file, code appears for a second in all files in the directory (an Xcode project), got error

I had an error today after launching the second instance of Atom. I activated a markdown preview and got the error with the following stack frame.
Both instances of Atom where of the same release. I made sure that there is no other Atom in the system, with the exception of Atom beta. Worth noting: I had two green Atom icons in the dock, something that I tried to reproduce without success, but happens occasionally. In normal conditions, I can have many Atom windows open with a single dock icon.
[Enter steps to reproduce below:]

launch second copy of atom from command line with "open -a atom ."
navigate to an .md file
hit the keys to activate rendering

Atom Version: 1.2.3
System: Mac OS X 10.11.1
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, lstat '/Users/michele/Library/Application Support/com.github.atom.ShipIt/update.W2M9a0q'
At ATOM_SHELL_ASAR.js:0

Error: ENOENT: no such file or directory, lstat '/Users/michele/Library/Application Support/com.github.atom.ShipIt/update.W2M9a0q'
    at Error (native)
    at fs.lstatSync (fs.js:844:18)
    at Object.fs.lstatSync (ATOM_SHELL_ASAR.js:189:16)
    at realpathSync (fs.js:1454:21)
    at Object.fs.realpathSync (ATOM_SHELL_ASAR.js:272:24)
    at toRealPath (module.js:109:13)
    at Function.Module._findPath (module.js:149:20)
    at Module._resolveFilename (module.js:334:25)
    at Function.Module._resolveFilename (/Users/michele/Library/Application Support/com.github.atom.ShipIt/update.W2M9a0q/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:286:25)

Commands
     -0:58.6.0 tree-view:collapse-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  3x -0:57.2.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:54.8.0 tree-view:expand-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:53.8.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:53.4.0 tree-view:expand-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:52.2.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:51.8.0 tree-view:expand-directory (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:51.2.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:50 tree-view:open-selected-entry (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:43.9.0 markdown-preview:toggle (atom-text-editor.editor.is-focused)
     -0:28.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:18.9.0 markdown-preview:preview-file (span.name.icon.icon-file-text)
     -0:00.0 markdown-preview:toggle (atom-pane.pane.active)

Config
{
  "core": {
    "themes": [
      "northem-dark-atom-ui",
      "atom-monokai"
    ]
  },
  "editor": {
    "invisibles": {},
    "fontSize": 12
  }
}

Installed Packages
# User
No installed packages

# Dev
No dev packages

Michele Costabile
<EMAIL_ADDRESS>
Il giorno 20 nov 2015, alle ore 05:17, Bryant Hagadorn<EMAIL_ADDRESS>ha scritto:
Also reproduced this error
Steps:
1.Downloaded a new version of Atom 1.2.3
2.Already had an older version of Atom 1.2.0 with already open files (believe), kept on Dock
3.Opened a shell script in finder and chose "Open As" Atom 1.2.3 instead of the usual, I believe the 1.2.0 was in my Applications folder and Atom 1.2.3 was in my downloads for some reason, not sure why
4. Nothing but empty lines on the file, code appears for a second in all files in the directory (an Xcode project), got error
—
Reply to this email directly or view it on GitHub https://github.com/atom/atom/issues/7399#issuecomment-158274731.

@blhagadorn @michelecos When you got this error, did it resolve after quitting and re-opening Atom? Or did you have to do anything else to resolve it?

@joshaber It resolved after quitting and re-opening Atom.  I haven't been able to reproduce this error.

For me the error was generated by .atom/storage/applications.json , which contains last opened files/folders. Deleting that file solved my problem

Uncaught Error: ENOENT: no such file or directory, lstat '/Users/BlueAccords/Documents/Atom.app'
error occurred after a fresh download(potentially corrupted? didn't check checksums/hashes. The internet connection i'm using has trouble loading pages constantly). And trying to open the theme picker. Quitting and restarting atom and going back to the welcome page and trying to open the theme picker afterwards solved it.
Error: ENOENT: no such file or directory, lstat '/Users/BlueAccords/Documents/Atom.app'
    at Error (native)
    at fs.lstatSync (fs.js:844:18)
    at Object.fs.lstatSync (ATOM_SHELL_ASAR.js:189:16)
    at realpathSync (fs.js:1454:21)
    at Object.fs.realpathSync (ATOM_SHELL_ASAR.js:272:24)
    at toRealPath (module.js:109:13)
    at Function.Module._findPath (module.js:149:20)
    at Module._resolveFilename (module.js:334:25)
    at Function.Module._resolveFilename (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/node_modules/htmlparser2/lib/Tokenizer.js:3:23)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/node_modules/htmlparser2/lib/Parser.js:1:96)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/node_modules/htmlparser2/lib/index.js:1:93)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/lib/parse.js:4:18)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/lib/cheerio.js:6:13)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/cheerio/index.js:5:28)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/roaster/node_modules/task-lists/lib/index.js:4:11)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/roaster/lib/roaster.js:14:15)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/roaster/lib/roaster.js:73:4)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-readme-view.js:8:13)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-readme-view.js:72:4)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-detail-view.js:26:23)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/package-detail-view.js:441:4)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/settings-view.js:24:23)
    at Object.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/settings-view.js:369:4)
    at Module._compile (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
    at Object.defineProperty.value [as .js] (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
    at createSettingsView (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/main.js:20:22)
    at /Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/settings-view/lib/main.js:71:28
    at Workspace.module.exports.Workspace.openURIInPane (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/workspace.js:460:22)
    at Workspace.module.exports.Workspace.open (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/src/workspace.js:399:19)
    at HTMLButtonElement.<anonymous> (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/welcome/lib/guide-view.js:302:31)
    at HTMLButtonElement.jQuery.event.dispatch (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (/Users/BlueAccords/Documents/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/node_modules/space-pen/node_modules/jquery/dist/jquery.js:4121:28)

#9559 is favored rollup issue these days.


Import 'moment' module, different behaviour for tests

Hello,
I'm using moment in my app using:
import * as moment from 'moment';

When I run the app, moment is a function, so i can call e.g. moment("20111031", "YYYYMMDD").fromNow();
When I run tests (gulp test) moment is an object and cannot be called.
I reproduced the scenario in a simple commit on skeleton fork:
https://github.com/krostkowski/skeleton-navigation/commit/cd08487a4293064f3c9b48a896378140153e0650
Why is that happening?

@AshleyGrant Can you look into this? The above syntax should work everywhere. It is the correct syntax.

Sure thing

Is there an answer to this question?

Might be related, but I got mine working with the following
component.bootstrap(aurelia => {
        aurelia.use.standardConfiguration()
        .plugin('moment')
        .plugin('moment-duration-format');
      });


Explore directives for variable usages in query merging

Fixes #577
TODO:

[x] If this PR is a new feature, reference an issue where a consensus about the design was reached (not necessary for small changes)
[x] Make sure all of the significant new logic is covered by tests
[x] Rebase your changes on master so that they can be merged easily
[x] Make sure all tests and linter rules pass
[x] Update CHANGELOG.md with your change
[x] Add your name and email to the AUTHORS file (optional)

Size tests are failing, maybe we should add a kB, I think we are on the edge here...

Can you rebase? We added a kB in another patch.

done!

Cool, thanks a lot!


fix for issue 375: transferFrom allows sending to self more than self balance

Fix for this issue.

Thanks @yaronvel!


Setup failed for custom integration google_home: Requirements for google_home not found: ['glocaltokens==0.6.7'].

Logger: homeassistant.setup
Source: setup.py:184
First occurred: 08:34:09 (1 occurrences)
Last logged: 08:34:09
Setup failed for custom integration google_home: Requirements for google_home not found: ['glocaltokens==0.6.7'].
integration not loaded
can't delete
how to delete manually?

Try deleting google_home directory from custom_components directory on your HA instance. Then install it again using HACS store. The issue you are seeing about glocaltokens==0.6.7 means that you have an outdated version of ha-google-home integration on your home assistant.


[Issue #332] [Issue #272] Refactor NLP Extractor's test cases

This PR refactors NLP Extractor's test cases, as it is part of the refactoring plan stated in Issue #332
This PR is also the last piece of issue #272 .

LGTM.


Update packlist

Arm.ethos-u-core-driver vendor's name capitalization is not coherent with pack release.

@MatthiasHertel80 @armflorentlebeau Can you please check why CI fails in this step?
https://github.com/ARM-software/VHT-TFLmicrospeech/runs/4977505179?check_suite_focus=true

Hi Daniel,
It looks like the AWS_ACCESS_KEY_ID is missing, which should be set in the github secrets:
Run python3 vht_github_action.py
569https://github.com/ARM-software/VHT-TFLmicrospeech/runs/4977505179?check_suite_focus=true#step:5:569[INFO] AWS_ACCESS_KEY_ID environment variable not present!
570https://github.com/ARM-software/VHT-TFLmicrospeech/runs/4977505179?check_suite_focus=true#step:5:570Error: Process completed with exit code 1.
In .github/workflows/virtual_hardware_gh.yml
 # Run test suite in Arm VHT
  - uses<EMAIL_ADDRESS>    with:
      vht_in: ./vht/
      instance_id: ${{ secrets.AWS_INSTANCE_ID }}
      aws_region: ${{ secrets.AWS_REGION }}
      access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
      secret_access_key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
      s3_bucket_name: ${{ secrets.AWS_BUCKET_NAME }}

This env var can be set in the project settings => secrets.
AWS_ACCESS_KEY_SECRET might also be needed: these two env var are specific to the AWS account to be used by the CI. Mathias may know which ones should be used.
Thanks,
Florent
From: Daniel Brondani @.>
Sent: 28 January 2022 08:59
To: ARM-software/VHT-TFLmicrospeech @.>
Cc: Florent Lebeau @.>; Mention @.>
Subject: Re: [ARM-software/VHT-TFLmicrospeech] Update packlist (PR #4)
@MatthiasHertel80https://github.com/MatthiasHertel80 @armflorentlebeauhttps://github.com/armflorentlebeau Can you please check why CI fails in this step?
https://github.com/ARM-software/VHT-TFLmicrospeech/runs/4977505179?check_suite_focus=true
—
Reply to this email directly, view it on GitHubhttps://github.com/ARM-software/VHT-TFLmicrospeech/pull/4#issuecomment-1023971669, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIZC3I4V4KRRVKPHXRQ2P3UYJEDLANCNFSM5M6DPTAA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Looks good to me. Why this the CI check fail?

Ci fixed.


Robj/fallocate

Catch fallocate failure on creation.

CI should be fixed now.  If you squash/rebase on main, things should pass now, I hope?


[7.x] Always declare const visibility.

Always declare const visibility.

If we wanted to do this, it would be part of the code style preset. Please submit an RFC to the ideas repo.


contributing

Hello,
After see your material bootstrap, i've been excited by your work.
I've start to create this bootstrap too but i've not the time to finish it. I've create others material components (slider, checkbox, radio, ...) and I would be very grateful if you can get them (wherever possible) to your bootstrap.
This is some examples :
Tabs :

Sliders :

This is my repository url : https://github.com/throrin19/materialBootstrap

I would appreciate such features in this framework, especially the scolling tabs for smaller screens.

it's ie9+ ready ;)

We aren't a material bootstrap.


Documentation not clear , is it client server or p2p network sdk?

Just to be sure i can't understand from the doc's
Is it p2p network sdk or client server ( UDP ) game networking engine if yes , where are the server code ?
Thanks

It's peer to peer. More info can be found in the doc folder readme.


feat(compression-codev): Support setting and altering write.metadata.compression-codec

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Grongrilla seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

There are a bunch of TODO comments in places where I wasn't sure if my implementation is good enough

I have implemented the changes that where suggested.
I extended UnsupportedCompressionCodec and changed the signature of write_metadata_file to only accept metadata and use those to create CompressionCodec

I pushed some changes but there are two things tbd:

I implemented IoError::UnsupportedCompressionCodec, but then realized, it is not needed -> should be removed, I think
I changed the signature of write_metadata_file s. th. metadata is only Serialize, because a bound to CommonMetadata is no longer necessary...

which means that we do not need TestMetadata anymore. I left it in there because maybe it is usefull down the line? However for #156 it is not necessary anymore...
unless we want to keep the bound on CommonMetadata because it "feels weird" that write_metadata_file can potentially be used to write anything as a "metadata file"

I pushed some changes but there are two things tbd:

I implemented IoError::UnsupportedCompressionCodec, but then realized, it is not needed -> should be removed, I think

I changed the signature of write_metadata_file s. th. metadata is only Serialize, because a bound to CommonMetadata is no longer necessary...

which means that we do not need TestMetadata anymore. I left it in there because maybe it is usefull down the line? However for Add support for disabled metadata compression #156 it is not necessary anymore...

I think we can get rid of it then?

unless we want to keep the bound on CommonMetadata because it "feels weird" that write_metadata_file can potentially be used to write anything as a "metadata file"

IMO, we should conside renaming that fn at some point, there's no reason to limit it to metadata writes, it's a compressible write


added toggle fix by replacing unowned with weak

We're getting lots of crashes coming from this library. This PR should really be merged.

Please consider updating this into main branch and in swift 3 version , it happened on my project too.

Thanks a lot for your PR! 😀
I've pushed a new commit including your changes (80a125b on master)


pip install blynk-library-python doesn't pull 1.0.0

Running pip install blynk-library-python in linux doesn't pull the correct library.  It pulls the 0.2.0 version which doesn't work with most the examples.  Must manually install the 1.0.0 version.
Steps to recreate:
terminal -> pip install blynk-library-python
expected result:
installs blynk version 1.0.0
actual result:
installs blynk version 0.2.0
Install device/software:
Raspberry Pi 3b+
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
Python 3.9.2

@kritch83, try this
pip install git+https://github.com/vshymanskyy/blynk-library-python

@kritch83
Try this.
git clone https://github.com/sunfounder/blynk-raspberrypi-python.git
This is working fine with version1.0.0

@itsbhupendrasingh, that is not same

@kritch83
K. But its woking with New Blynk2.0

@itsbhupendrasingh, the original link was different, you fixed it.


Ensure the HMRPlugin assigns module.hot before NodeStuffPlugin

What kind of change does this PR introduce?
This is a fix/modification
Did you add tests for your changes?
n/a
If relevant, link to documentation update:
n/a
Summary
This is a fix/modification to ensure that the HotModuleReplacementPlugin has precedence when setting the value for module.hot, regardless of where in the lifecycle the HotModuleReplacementPlugin is applied.
Previously, if the HMR plugin was applied after the NodeStuffPlugin, module.hot would be evaluated as falsy in the client, even if the HMR plugin was applied afterwards.
Change per discussion with @sokra
Does this PR introduce a breaking change?
No
Other information

Thanks


Fix conflict

Coverage increased (+0.8%) to 70.833% when pulling 513c76eb255a1f12afbc88e6579e230d419ccad9 on fix_conflict into e54a5cf453c0d14b417ff8c92e3325d0014b2c60 on master.

Overall is LGTM, please fix this trivial issue and we can move forward.
I am not gonna close this PR and wait for your changes (close-again-and-again seems too brutal with the Fallen like you)

Coverage increased (+0.8%) to 70.833% when pulling 513c76eb255a1f12afbc88e6579e230d419ccad9 on fix_conflict into e54a5cf453c0d14b417ff8c92e3325d0014b2c60 on master.

Coverage increased (+1.9%) to 71.955% when pulling b8afb543f09ad6a42d5f5ff71acb115bb7a749e4 on fix_conflict into e54a5cf453c0d14b417ff8c92e3325d0014b2c60 on master.

yeah, go ahead and make another pull request
I dont like this hardcode convention
On Sunday, 18 September 2016, Dai Dang Van<EMAIL_ADDRESS>wrote:

@daikk115 commented on this pull request.
In cal/v1/network/resources/network.py
https://github.com/cloudcomputinghust/CAL/pull/41:

+class NetworkController():

Define support for GET on a collection

@validate_driver
def index(self, req, drivers):

   """List all network

   List all of netowrks on some special cloud

   with:

   :Param  req

   :Type   object Request

   """

   result = []

   for driver in drivers:

       result.append(driver.list_network(req.params))

   data = {

           'action': "index",

           'controller': "network",

Can I change it when I rewrite resource to Falcon?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/cloudcomputinghust/CAL/pull/41, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABui7g9OvIPn-29mP4bOBAlueUcvWtHaks5qrTKEgaJpZM4J-RaV
.

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM/IT/M/MU d-@? s+(++):+(++) !a C++++(++++)$ ULC++++(++)$ P L++(+++)$ E
!W N* o+ K w O- M V- PS+ PE++ Y+ PGP+ t 5 X R tv+ b+(++)>+++ DI- D+ G
e++(+++) h-- r(++)>+++ y-
------END GEEK CODE BLOCK------

Coverage increased (+4.03%) to 74.08% when pulling 9e7a0f3c7e31f5bc22121f64563c6349510006a7 on fix_conflict into e54a5cf453c0d14b417ff8c92e3325d0014b2c60 on master.

Coverage increased (+3.8%) to 73.887% when pulling 92951708d309a334aefa5b1d2f81a14aea9f31dc on fix_conflict into e54a5cf453c0d14b417ff8c92e3325d0014b2c60 on master.


(maint) [WIP] Use canonical forge_name

This just corrects the separator on the forge_name attribute of
modules now that we've standardized on the - rather than the /. All
the tests having to do with modules pass. I don't know if I'm
misunderstanding the full scope of what this method is intended for
though, so please don't merge without review by someone who knows that
part of the code and the history of the forge name inconsistencies.

To move this forward, you could create a new method that does the right thing, update puppet internally to use the new method, and then deprecated the old method. Plus file a ticket with fixversion 7.0 to remove the deprecated method. Do you want to implement that or close this PR?

Hey @binford2k thoughts about ^?

@scotje do you have any thoughts or opinions about what a method in Puppet that uses the "proper" hyphenated Forge module name should be? .forge_slug comes to mind, as it matches to nomenclature used by the API.

forge_slug seems reasonable to me. Do you need to leave room to distinguish between a module slug and a release slug? (E.g. puppetlabs-apache vs puppetlabs-apache-1.0.0)

I think Puppet::Module is only concerned about the module_slug, so I'd be 👍 to that.

tkx. I'll redo this next week.

Hey @binford2k! Just checking in on PRs, how's this going? Need anything from Coremunity?

Hey @binford2k! Friendly PR ping!

@jtappa ha. I'm going to close this and come back to it when I've got time!


Add -f option to rgf to allow it to search the filename too

The internal cmd to do this will be something like this:
rg -n some_search_str | fzf

# try adding color too (doesn't work yet)
rg --color always hey | fzf

Take a look at rgf directly and see if there's an easy way to get it to include the filenames in the search by fzf!

Update: it looks like simply deleting --disabled from the rgf cmd fixes it! See: https://github.com/junegunn/fzf#3-interactive-ripgrep-integration

Also, note that we used --disabled option so that fzf doesn't perform any secondary filtering.

I looked at man fzf and saw:

--disabled
Do  not  perform  search.  With  this  option,  fzf becomes a simple selector interface rather than a "fuzzy finder". You can later enable the search using enable-search or toggle-search
action.

no...try this (searching for word "hey"):
rg -n --hidden --color always hey | fzf --ansi

Use more sublf too.

Figure out how to make fzf keep the whole screen of last content in the terminal after existing....like less -RFX or whatever, does.

maybe --no-clear?


Mithun p4s1

fixed p4s1. p3s5 waiting on becky's economic fix

added nmod_to
modified "^acl$" to "^acl"-i.e not ending anymore
-modified test P3S5:// becky said with current tokenInterval restrictions, can't have access to clean water (i.e., split interval)
-took out some blank spaces in the regex/rules

This looks good to me!


Update index.md

Typo/grammatical fixes

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


fix typo in timeline

Fixed Typo in Timeline.

Fixed Typo in Timeline.

Thank you for the fix!


Symlink for cluster.txt is missing

I am not able to find any symlink for cluster.txt file. There are symlinks for environments and roles though.

This was resolved by #559


Add basic cheatsheet for JavaScript

Go over...

Arrays
Comments
Conditionals
Functions
Loops
Strings
Variables

will continue to expand on this later

Added


Pull Request - Adding Headn Éducation to the list of eligible institutions

Institution Name: Headn Éducation
Domain Name: headn.fr
1.Official Website of the School:

Official website URL: https://education.headn.fr/

School Address:

Head office address: 19, rue d’Amiens, 59800 LILLE, France

Note: The school has several campuses across France:

Headn Éducation Paris: WOJO, 82 avenue du Maine, 75014 Paris
Headn Éducation Montpellier: The Babel Community, 954 Av. Jean Mermoz, 34000 Montpellier
Headn Éducation Lyon: Espace Bel Air School, 36 rue Antoine Primat, 69100 Villeurbanne
Headn Éducation Lille: Wojo Coworking Lille Centre , 19 Rue d'Amiens, 59000 Lille

Long-term IT Courses (>1 year):

https://education.headn.fr/programme/developpement
https://education.headn.fr/programme/responsable-cyber-securite
https://education.headn.fr/programme/data-ia
https://education.headn.fr/programme/web-3

Proof that the Domain is Official for Students:

The headn.txt file in the GitHub repository proves that the domain headn.fr is officially recognized by the school for students.
The headn.fr domain is used for the school’s student email addresses.

@Sokoshy Thank you for your patience while waiting for a review and processing your request. Pull request merged.
Please start requesting the licenses in about an hour, to let the changes to propagate through our system.


Web client

https://github.com/zserge/webview
It's a fantastic golang based webview for all desktops.
Very very light and we'll tested.
You can bundle any client side golang code running outside the webview too.
Quick start example:
https://github.com/zserge/webview/tree/master/examples/todo-go
On windows it uses the built in browser ( shtml or something) not the edge browser.
If you need edge browser let me know..

Found it :)
https://github.com/asticode/go-astilectron

Hey @gedw99 thanks for sharing these!
I would love to see an example of having a webview application that handles all the signaling/UI code. If you have time to work on this, feel free to re-open and I will do anything I can to help.
Otherwise will close for now and move this to the wiki.
thanks!


I would like to ask this effect can be achieved?

Tab bar effect in the above figure, thanks.

Hmm, that looks really nice, but I really don't think it's something I will be able to focus on at this moment, with all of the outstanding issues and roadmap. If you have an idea how to implement and would like to submit a pr, please do so, but for now I will close and possibly revisit in the future!


Package require os(darwin) not compatible with your platform(win32)

As the title suggests
Pdfjs-dist  Can't run on the x32?

PDF.js is a JavaScript package, so it runs on any platform. Perhaps Node.js itself no longer works on older platforms, but that is not something we have influence on. Closing since we don't do anything ourselves to block those platforms.

PDF.js is a JavaScript package, so it runs on any platform. Perhaps Node.js itself no longer works on older platforms, but that is not something we have influence on. Closing since we don't do anything ourselves to block those platforms.

It's actually a bug caused by other problems,These problems have now been sorted.thanks very much !


On Save - Failed to update file content

Describe the bug
No issues encountered during installation. Ollama connects normally. AI suggests steps including the creation of files and file content. I create the file, but after pasting the content, I click the save button and get an error message: Failed to update the file content.
Link to the Bolt URL that caused the error
localhost
Steps to reproduce
use touch or cat to create a new file.
Copy / paste AI generated content to the file
Click Save button
Expected behavior
the file saves
Screen Recording / Screenshot
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]
Windows OS
Edge

Additional context
re-cloned the repo today to get the option to "synch folder", but that works only one way.

I would recommend trying out the official bolt.new if you haven't.
I believe you're following the instructions from the LLM but it's supposed to create the files, execute the code, etc for you. It shouldn't be something you're needing to do manually.

OK that made me think of context windows. I followed this to adjust the context window: https://blog.driftingruby.com/ollama-context-window/ and now bolt.new is creating the files and executing the code. Not sure what the best value is though, but the default 2048 did not cut it.
It would be great though if we could make manual modifications and save them

I met the same problem  it seems i dont have auth to write file content by hand.(but can touch create an empty file..)
but im thinking of ,is there a folder we can do it with terminal

you can use touch and echo instead
echo '<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    ...
  </body>
</html>' > index.html


[Quais] - Musig Integration + Signatures with musig

Requirements:

Find a mu sig implementation and import the library
Provide mu sig transaction signing

Check out this library

The purpose of the Musig integration is to create an aggregated key signature to include in a Qi transaction that spends multiple UTXOs. The outline below describe the steps for creating an unsigned transaction followed by the steps to correctly sign it.
Steps for creating an unsigned Qi transaction

Use coin selection algorithm to determine transaction inputs (a set of unspent transaction outputs to be spent) and outputs (a new set unspent transaction outputs to create, including any change to return to sender).
Gather the public and private key pairs that own the UTXOs included in the transaction inputs
Ensure the length of the public and private key arrays are equal (throw a validation error if they are not)
Create a transaction object with the validated transaction inputs and outputs

Steps for signing the transactions using musig-js library)

Get the hash the unsigned transaction object
If there is only one private key, the transaction hash is signed directly using this key. This will be a single key Schnorr signature.
If there are multiple private keys, we have to use aggregated signature, starting by using the keyAgg function to aggregate the public keys of all signers. This function takes an array of public keys and optional tweaks, returning a KeyGenContext object representing the aggregated key.
Each signer generates their nonce pair using the nonceGen function. This function requires the signer's secret key, public key, and the message to be signed, among other parameters. It returns a public nonce that will be shared with other signers.
Once all signers have generated and shared their public nonces, use the nonceAgg function to aggregate these nonces into a single aggregate public nonce. This function takes an array of public nonces from all signers.
With the aggregate public nonce and the message hash, each signer starts a signing session using the startSigningSession function. This function requires the aggregate nonce, the message to be signed, the array of public keys, and any tweaks. It returns a SessionKey object for use in the next steps.
Each signer generates a partial signature using the partialSign function. This function requires the signer's secret key, their public nonce, and the SessionKey object from the previous step. It returns a partial signature.
Optionally, each signer can verify other signers' partial signatures using the partialVerify function. This step ensures that each partial signature is valid before proceeding to signature aggregation. This function requires the partial signature, the message hash, the signer's public key, the signer's public nonce, and the SessionKey object.
Once all partial signatures are collected and optionally verified, use the signAgg function to aggregate these partial signatures into a final signature. This function takes an array of partial signatures and the SessionKey object, returning the aggregated signature.

Sample Implementation Using musig-js library
Not a complete implementation, it is only for illustrational purposes.
type TransactionInput = {
  txhash: Uint8Array;
  index: number;
  pubkey: Uint8Array;
};

type TransactionOutput = {
  denomination: number;
  address: Uint8Array;
};

type UTXOTransaction = {
  chainId: bigint;
  inputs: TransactionInput[];
  outputs: TransactionOutput[];
  signature?: Uint8Array; // Optional until signed
};

const musig: MuSig = new MuSigImplementation();

function createUTXOTransaction(
  chainId: bigint,
  inputs: TransactionInput[],
  outputs: TransactionOutput[]
): UTXOTransaction {
  return {
    chainId,
    inputs,
    outputs,
  };
}

async function signTransaction(
  transaction: UTXOTransaction,
  privateKeys: Uint8Array[]
): Promise<UTXOTransaction> {
  // Create a hash of the transaction for signing
  const transactionHash = hashTransaction(transaction);

  // Check if there is only one private key
  if (privateKeys.length === 1) {
      // Single key scenario: Perform a simple Schnorr signature
      const publicKey = musig.getPublicKey(privateKeys[0]);
      const signature = schnorr.sign(transactionHash, privateKeys[0], publicKey); // can use @noble library for this

      // Attach the signature to the transaction
      transaction.signature = signature;
   } else {
     // Multiple keys scenario: Proceed with aggregated signature process

    // Generate public keys from private keys
    const publicKeys = privateKeys.map(sk => musig.getPublicKey(sk));

    // Aggregate public keys
    const aggPublicKey = musig.aggregatePublicKeys(publicKeys);

    // Each signer generates a nonce pair
    const nonces = privateKeys.map(sk => musig.generateNoncePair(sk));

    // Aggregate nonces
    const aggNonce = musig.aggregateNonces(nonces.map(n => n.publicNonce));

    // Each signer creates a partial signature
    const partialSignatures = privateKeys.map((sk, index) =>
      musig.partialSign({
        secretKey: sk,
        publicNonce: nonces[index].publicNonce,
        aggNonce,
        aggPublicKey,
        message: transactionHash,
      })
    );

    // Aggregate the partial signatures into a final signature
    const finalSignature = musig.aggregateSignatures(partialSignatures);

    // Attach the aggregated signature to the transaction
    transaction.signature = finalSignature;
  }
  return transaction;
}

// call createUTXOTransaction to create a UTXO transaction
// pass the newly created transaction and private keys of UTXO owning addresses to signTransaction


Please push v1.4.0 of react-split-pane

You have published v1.4.0 of react-split-pane but you haven't pushed it to github. We have to publish vendor libs to a private npm registry so I need to clone it and publish it myself but its not up there.
I would log an issue over there but issues tab is not enabled.

Okay. Will do it.
It's in my office workbox.
I'm on leave for 2 days. Anyway, I'll try to push it.

@timkindberg Okay pushed.


New-LocalUser errors with -NoPassword flag

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
When I run the cmdlet New-LocalUser with the -NoPassword flag it throws an error rather than creating a user.
I tried adding the type using Add-Type -TypeDefinition $TelemetrySource -Language CSharp with various combinations of the source code that matches the referenced types, in an attempt to remediate, but it didn't help.
Expected behavior
New-LocalUser MyUser -NoPassword
$user = Get-LocalUser MyUser
Write-Host "My user = $($user.Name)"

Actual behavior
New-LocalUser MyUser -NoPassword
New-LocalUser: Could not load type 'Microsoft.PowerShell.Telemetry.Internal.TelemetryAPI' from assembly 'System.Management.Automation, Version=<IP_ADDRESS>0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Error details
New-LocalUser: Could not load type 'Microsoft.PowerShell.Telemetry.Internal.TelemetryAPI' from assembly 'System.Management.Automation, Version=<IP_ADDRESS>0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Environment data
Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

It looks like a regression in the Microsoft.PowerShell.LocalAccounts module that ships in Windows.
Some changes were pushed to this module which depends on the TelemetryAPI type from Windows PowerShell. This type doesn't exist in PowerShell Core, and hence the error.
We will contact the owner team of the the Microsoft.PowerShell.LocalAccounts module about this.

Fixed in community module https://www.powershellgallery.com/packages/LocalAccounts


Kubeconfig has to be passed from KEB-contract model to reconciler-DB entity

Description
The kubeconfig is currently not passed to the reconciler from KEB and missing in the contract.
The contract has to be adjuted and the kubeconfig-value has to be considered when creating new cluster entities in the reconciler.
See inventory.createCluster function for further details.
Expected result
Kubeconfig is another attribute of a ClusterEntity and stored in the DB.
Actual result
Kubeconfig is missing in models and in DB.
Steps to reproduce

Troubleshooting

Please review TODO comment in https://github.com/kyma-incubator/reconciler/pull/78/files#diff-f921d302f6db810d79d7007b3c8a95dc107a6a7e4da95f92f3a96cbb6f6589aaL88 when working on this ticket

Implemented in #83.


Fix project logo (it looks weird in GH dark mode)

Resolved in https://github.com/hyperledger-labs/fablo/pull/259


mutul tls egress using egress-gateway-tls-origination example does not work.

Bug description
Mutul tls origination example using egress gateway does not work as per steps given in the example. Looks like path used for serverCertificate is wrong as it does not exists anywhere in the example
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[X ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ X] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Expected behavior
Mutual tls origination using egress should work as per example.
Steps to reproduce the bug
Just follow steps here for mutul tls orination - https://istio.io/latest/docs/tasks/traffic-management/egress/egress-gateway-tls-origination/
Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
istio version : 1.6.3
kubernetes : gke 1.14
How was Istio installed?
using istioctl
Environment where bug was observed (cloud vendor, OS, etc)
Additionally, please consider attaching a cluster state archive by attaching
the dump file to this issue.

Closing this issue as this is a duplicate of the ISTIO_MUTUAL issue which was recently fixed and expectation is 1.7 has no doc test failures relating to gateways

@nschhina thanks
Can you please me understand that documented example in "mutual TLS origination with an egress gateway" section does not work because of which duplicate issue. Can you please provide reference here.
What is workaround for egress traffic using egress g/w/ which uses certs for connecting to external service.

@satishmane  follow the tasks on preliminary.istio.io they are not broken

@nschhina thanks. Understood.

Hi @nschhina
Sorry for one more comment.
Just for sake of curiosity, I followed the tasks from "Egress Gateways with TLS Origination (File Mount)" from preliminary istio docs. The curl request just hung up in "Trying ..." state. So I it works only in istio 1.7 and not in istio 1.6.3?  is my understand correct? If my understanding is correct, then egress gateway with mutual tls does not work at all in 1.6.3 version. I have to go only for egress tls origination without egress g/w because my istio is on 1.6.3 version at the moment.

@satishmane it should work. Please post logs from egressgateway.

@nschhina  I do not see anything egress gateway pod log.  My curl request as per example just get stuck.
I am confused now.
What I understood is that In 1.6.3 version, traffic from side car proxy to egress gateway is not encrypted using ISTIO_MUTUAL because it is fixed using this https://github.com/istio/istio/pull/25588 PR in istio 1.7.
But now you are saying only documentation part was broken in 1.6.3 version docs and actual egress g/w with tls origination works using istio_mutul. is my understanding right.
I can clean example on 1.6.3 version and re-try again.

@nschhina  - Tried again tasks from 1.7 documentation ("Perform mutual TLS origination with an egress gateway") on istio 1.6.3 version, curl request just stucks.. No error , nothing in egress log too after curl command is executed

Maybe your curl command is not working itself, are you using MacOS?

Also thanks for letting me know that #25588 is not working in 1.7, we actually forgot to cherrypick it in 1.6 release which we'll do right away

I am using ubuntu. Curl command definately works as rest of istio functionality works fine.. I use curl extensively to test.
On Jul 22, 2020, at 8:22 PM, Navraj Singh Chhina <notifications<EMAIL_ADDRESS>wrote:
Maybe your curl command is not working itself, are you using MacOS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/istio/istio/issues/25696#issuecomment-662499607, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AECTBT3TOGYILAV35HDP243R434J7ANCNFSM4PDVE2CA.

The information contained in this communication is confidential and intended solely for the use of the individual named or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, circulation, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. Please delete it and any attachments from your systems and notify the sender that you have received it in error. Unless stated to the contrary, any opinions expressed in this message are personal and may not be attributed to Aeris Communications.

Great. So do I need to re-run istio install for 1.6 release to get this fix. So it does not work bcoz fix is missing in 1.6. Right?
Egress g/w with tls origination example should simply work if I copy command and execute them..
Pls let me know when fix is applied to 1.6 release, I can then reinstall
Sent from my iPhone
On Jul 22, 2020, at 8:26 PM, Navraj Singh Chhina <notifications<EMAIL_ADDRESS>wrote:
Also thanks for letting me know that #25588https://github.com/istio/istio/pull/25588 is not working in 1.7, we actually forgot to cherrypick it in 1.6 release which we'll do right away
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/istio/istio/issues/25696#issuecomment-662502262, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AECTBT245LGZEVOUZHFFQ63R4342XANCNFSM4PDVE2CA.

The information contained in this communication is confidential and intended solely for the use of the individual named or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, circulation, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. Please delete it and any attachments from your systems and notify the sender that you have received it in error. Unless stated to the contrary, any opinions expressed in this message are personal and may not be attributed to Aeris Communications.

You would need to download 1.6 again and reinstall. The cherrypick is under review so it's not available in 1.6 yet

@nschhina  Any idea when cherrypick will be available in 1.6.3
Also can you please reopen this issue as I still have not got solution on how to use egress g/w with mutual tls in 1.6.3 version. At least confirm that egress g/w with mutual tls in 1.6.3 is broken and does not work at all


Create end-to-end example of a working app under examples/

Such app should:

Use Circe Akka Serializer
Use @Serializer and @SerializabilityTrait annotations properly
Perform some basic akka serialization / deserialization
Be available for compilation with all ASH compiler plugins
Be mentioned in README.md and docs/GUIDE.md (work in progress) as a working example of ASH usage

As for this issue - it should be as simple as possible - so that users will understand it in a flash.

Also: remember to add path for the example to buildRoots in .scala-steward.conf, see #211


tidy up old print statements

Removed the last of the legacy print statements. Example lines in documentation have been converted to be python 3 compatible. Commented lines have been removed.

Coverage increased (+0.07%) to 80.4% when pulling d956bc39a29e21483d92a2f69736fc428e570154 on print into 11fb49ecda4c64c88032f2aa285e828a845ed702 on develop.


Svelte 5 compatible version

Description
I want to include retejs in a Svelte 5 project (installed with npm i --force).
Like in the closed #7 , the SvelteComponent cannot be found.
✘ [ERROR] No matching export in "node_modules/svelte/src/index-client.js" for import "SvelteComponent"

    node_modules/rete-svelte-plugin/svelte/presets/classic/components/ConnectionWrapper.svelte:8:9:
      8 │ import { SvelteComponent, onMount } from "svelte";
        ╵          ~~~~~~~~~~~~~~~

14:31:32 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/rete-svelte-plugin/svelte/presets/classic/components/ConnectionWrapper.svelte:8:9: ERROR: No matching export in "node_modules/svelte/src/index-client.js" for import "SvelteComponent"

My package.lock reference rete 2.0.5, rete-svelte-plugin 2.0.3 and svelte 5.1.12.
Suggested Solution
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@nicolas-albert resolved by https://github.com/retejs/svelte-plugin/pull/13


Fixed Load_platform job failing

Added check for /var/jenkins_home/.ssh/config file before triggering Load_Platform job to prevent fail at first time

I think line 101 needs to be combined with 102 so that the test is executed as part of the until loop: https://github.com/Accenture/adop-docker-compose/pull/51/files#diff-d9c676b4d96fc5db9d8d55e7aeb0e910R101

Thank you @katrinazvaigzne, 'cause we have option to not Load Platform by default, from this PR https://github.com/Accenture/adop-docker-compose/pull/124 + @nickdgriffin also added some additional checks in 0.2.1 release, i'm closing this PR. Hope to see more PR's from you soon 👍


Add blurhash support

The Mastodon API returns blurhash hashes for, well, blurhashes.  Mastodon itself uses them for things like placeholders for images that aren't loaded and spoiler masks, and they're right there in the status list data, so I may as well, right?
The problem is deciding HOW to do this.  Since Mastowidget is more of a raw-JS-in-static-HTML sort of deal and not a code-in-a-framework thing, I don't really have, say, a package manager to fall back on, and thus I need to manually have the blurhash-drawing code available at runtime.  As such, I see three possible ways to go about this:

Just dump the blurhash-parsing code into masto_widget.js: Simplest, and I'm reasonably sure most blurhash implementations have licenses that would allow it, but that would make masto_widget.js even more of a mess than it already is.  Don't know if I want that.
Link to an external blurhash implementation: Similar to how I link to jQuery right now , I could find somewhere it's being hosted and link to it in-code.  Except that's really dangerous, potentially unreliable, and it would force the browser to make another connection to drag in a new dependency, something I've been hoping to avoid.  Come to think of it, maybe I should reconsider how I link to jQuery, too...
Add a copy of a blurhash implementation into Mastowidget and link to that: This would resolve the external dependency problem (most browsers and servers these days should be able to tie both into a single connection), but then I'd have a copy of blurhash in the repository, and I'd have to make sure licenses allow me to do that.

Y'know what, the more I think about it, just adding the implementation into the Mastowidget repo is probably the best route here.

There we go.  As per 9bb225b91d805c40b3da1917a62e12e9014e9e62, blurhash support is now in place.  It might not be perfect, but it does the job.


The training steps may be not clear, got runtime error during with_sam stage

I tried the training steps mentioned in ReadMe on my own data.
`### train rgb
python main.py my_data --workspace exp_mydata --enable_cam_center
train sam
python main.py my_data --workspace exp_mydata --enable_cam_center  --with_sam --init_ckpt exp_mydata/checkpoints/ngp.pth --iters 5000`
I got runtime error during the second stage training, as well as some warnings:

It seems the second stage did not start training, also miss some keys when loading the init_ckpt. Could you please figure it out? Thanks.

When train sam, you should given another workspace, such as exp_mydata_2.
The code will automatically load checkpoint from given workspace, until you use the option "--ckpt".


Make the install process use more than 1 core

I was installing this on a Pi (took 40mins) and it looked like only a single core was used to do the compile, as one of them was stuck at 100%.  Is it possible to determine the amount of cores available and do the make -jX thing to increase the amount of cores used for the compile process?

You can install with --install-option="--no-cython-compile" if the install is taking too long. (This will result in a slower build though.) Better would be if someone provided wheels for the Pi.

Python 3.5 accepts -j for the build_ext step. I added support in latest master for also cythonizing in parallel then. That should use all cores nicely most of the time.
I otherwise agree that wheels would be best.

Thanks alot guys, @scoder can you reference the commit in this ticket for brevity?

Parallel build is enabled with -j in Py3.5+ since 1c4f32b93570b41de3c8028711549a32e15b31f1

how does one use this -j option?
pip3 install cython --install-option="-j16"
/usr/lib/python3/dist-packages/pip/commands/install.py:198: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
  cmdoptions.check_install_build_global(options)
Collecting cython
  Using cached https://files.pythonhosted.org/packages/36/da/fcb979fc8cb486a67a013d6aefefbb95a3e19e67e49dff8a35e014046c5e/Cython-0.29.6.tar.gz
Skipping bdist_wheel for cython, due to binaries being disabled for it.
Installing collected packages: cython
  Running setup.py install for cython ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zx9ns2vp/cython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7ek6sjk_-record/install-record.txt --single-version-externally-managed --compile -j16 --user --prefix=:
    Unable to find pgen, not compiling formal grammar.
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: option -j not recognized

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zx9ns2vp/cython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7ek6sjk_-record/install-record.txt --single-version-externally-managed --compile -j16 --user --prefix=" failed with error code 1 in /tmp/pip-build-zx9ns2vp/cython/

It's a distutils option specifically for the build_ext command, not for the build or install commands that pip uses. Please see the distutils documentation.

I see. Is there a way to speed up pip install of cython itself?

Sure – install it from a wheel.


[DYN-6353] Fix SignIn button title to reflect correct status when user is already signed in

Fix a regression from previous PR.
Changing the variable source from props, to state, where it is being updated.

hi @zeusongit Would you draft a new release with this?

@QilongTang Done: https://github.com/DynamoDS/SplashScreen/releases/tag/v1.0.11

tests? The current tests in this repo look "minimal".


Can I use a different api for the client and still connect to the simple-websocket server ?

This is probably a dumb question, but I've researched for about 3 days now and I haven't figured it out yet. I'm trying to make a chat web app in Flask using the simple-websocket api. My server's running on localhost using the server api from simple-websocket, and I want to use the Websocket api for the client so that I can connect using any web browser that supports the Websocket api.
I just don't know how to connect the simple-websocket client in the browser. Is it necessary to use the simple-websocket client api, or can I use the websocket api for the client:

const socket = new WebSocket('ws://localhost:5000/echo');

The main errors I'm getting are cors related as well:

<IP_ADDRESS> - - [21/May/2022 20:29:26] "GET /socket.io/?EIO=4&transport=polling&t=O3fq0Z6 HTTP/1.1" 404 -

By the way, I think the the simple-websocket api is an awesome little api for people like me who didn't even know flask existed until a few weeks ago. I know I can use better apis like flask-sock or socketio and I plan on making chat apps with them in the future, so I can really get a good grasp on websockets. Thanks in advance for any help!

Yes, you are going at this the wrong way. It is actually much easier, you seem to be overcomplicating things.
First of all, you are mixing two things: WebSocket and Socket.IO. Which one do you want? These are different, so you have to decide which one is the one that you want to use. The source of your confusion might be that Socket.IO uses WebSocket, so in that sense WebSocket is more primitive than Socket.IO.
If you want to use Flask with WebSocket, then you can add the Flask-Sock extension to your Flask application. Flask-Sock uses simple-websocket internally, and integrates it nicely with Flask.
If you want to use Flask with Socket.IO, then you can add the Flask-SocketIO extension to your Flask application. This extension can work with a number of WebSocket packages, and simple-websocket package is one of the options.
Okay, so this is all for the server. Now for the client, you can use any client, but you have to match the server that you are using. If you are using a WebSocket server, then you have to use a WebSocket client, and if you are using a Socket.IO you have to use a Socket.IO client. Your chosen client needs to run in the browser, so you'll be looking for JavaScript clients. Even though there are Python WebSocket and Socket.IO clients available, if you want to build a web application that runs in the browser, then you have to use the JavaScript clients, not the Python clients.
Hope this helps clarify things a bit.

Hi Miguel,
Thanks for replying so quickly and thanks for clarifying. I apologize for the late reply as I waited to fix it before replying. I've gotten it to work connect using the native WebSocket client in web browsers as you said. The reason it wasn't connecting initially was that the document wasn't ready before executing the connection request.
Thanks again for your help. I greatly appreciate it.

Hi Miguel,
Thanks for replying so quickly and thanks for clarifying. I apologize for the late reply as I waited to fix it before replying. I've gotten it to work connect using the native WebSocket client in web browsers as you said. The reason it wasn't connecting initially was that the document wasn't ready before executing the connection request.
Thanks again for your help. I greatly appreciate it.


dependency-check version 6.5.3 dependency has vulnerability

Hi,
I'm using dependency-check-gradle version 6.5.3 on Intellij.
My dependency report show one of the vulnerability is depend on the dependency-check-core and this core depend on h2.
This h2 version is 1.4.199 and this make my report have vulnerable dependency.
Is there a way to avoid this vulnerable or only can wait dependency-check-core to update dependency?
Best regards,
Ziv

I find some mistake about my self.
I add dependency-check-gradle to my dependencies.
It's only need add in the plugin.


[stl-extras] Provide next_or_default and prev_or_default helpers for iterators.

[stl-extras] Provide next_or_default and prev_or_default helpers for iterators.
These work like next_or_end or prev_or_begin, except that instead of forcing the
default value to be the compared against the value, you can specify the value
used upon going out of range.
i.e., instead of:
(x, y) -> (x == y) ? y : std::next(x)
We have:
(x, y, z) -> (x == y) ? z : std::next(x)
This is a strict generalization of next_or_end and prev_or_begin so I
re-implemented both routines in terms of the new routines, so no source needed
to be updated.

@swift-ci smoke test and merge


Make brightness configurable

Thank you for your pull-request, but there are several problems.

your code ist not mergeable to the new version

I would prefer another solution:
The has to be an defined max-brightness in the user_config.h. The max-brightness depends on the count of LEDs and the power supply. Each (WS2812b) LED needs 0.06A on full brightness in white color. There has to be a possibility to set the brightness from 0 to max-brightness. But in the UI I would prefer a range beween 0 and 100. So the setBrightness parameter has to be calculated.

I hope you understand what I mean :)


Added arguments to fakefish + customizable tls settings

Added arguments to the tool. On top of that made it possible to use different configs for the TLS mode.

@dtantsur applied suggested changes.


Bug: Contact Sensor cannot receive contact status open/close on HomeKit

Describe The Bug
I don't see any logs about opening/closing the contact sensor. On switchbot app all works fine, I receive the notification and i can see the status of the contact. On Apple Home app i don't see any changes on the contact status, brightness and movement detection
To Reproduce
Open/close the door
Expected behavior
See the log for opening/closing operation on homebridge logs.
    },
    "options": {
        "refreshRate": 200,
        "logging": "debug"
    },
    "platform": "SwitchBot"
}

Screenshots
No response
Device & Model
Contact Sensor Firmware v1.1
Node.js Version
v18.12.1
NPM Version
8.19.2
Homebridge Version
v1.6.0
Homebridge Switchbot Plugin Version
2.4.0
Homebridge Config UI X Plugin Version
4.50.2
Operating System
Raspbian GNU/Linux Buster (10)

+1, seeing same issue here. On HomeBridge and HomeKit, the status of the contact sensor never changes from "Closed". SwitchBot app works as expected.

Using the OpenAPI, will cause slow refreshes of the devices. Have either of you tried BLE connection?

Have not tried BLE. I’ll switch to it and report back soon.

How i can switch only the contact sensor to BLE?

v2.8.0 has been released.


Question : How do we publish our extension for more than one country

We need to publish our extension for more than one country.
But in the app.json we can only put in one locale.
Is this only used in Visual Studio Code or is it also used
when trying to Publish/Install the extension in a D365 version ?
If so, how can we setup the extension to be able to publish/install
on multiply D365 versions ?

Currently you can only author and publish extensions V2 per one country at a time. We are working on enabling multi-country support. I will use this issue for tracking the work and update once we have a timeline for it.

We are also in same situation, need to publish our D365 App for more than one country.
@StanislawStempin, can we expect this thing addressed in the next release?


remove next_codeforces

@vzsky Getting 403s from the API in CI, preventing other merged apps from getting released. Removing the app for now to unblock CI.
I got 403s locally as well with pixlet render. When I loaded the URL in a browser I got hit with a CAPTCHA. Guessing that's what's causing the issue.

I was logged in to the site while doing the dev so they didn't ask for my captcha. I tried with a fresh browser and it did. This is very strange. Why do you need a captcha for an API?
Anyway, let's just leave it at this point. I'm contacting the site but it could take ages. Thanks.

They're using cloudflare. Should be a setting in there to disable recaptcha for /api/. FWIW.


Generating atom and pair representations

Dear Authors,
Thank you and congratulations for your release of Uni-Mol! I am interested in using the atom and pair representations. From the code, I am not sure how to generate these directly (there is reference to a dictionary but I am not sure what this dictionary refers to). I would be very grateful if you could clarify how the code can be used to generate these representations using the pretrained models.
Thank you!

please refer to mol repr demo


rewind consumer offset

Hello,
I would like to rewind the consumer offset like it is described there:
https://cwiki.apache.org/confluence/display/KAFKA/FAQ#FAQ-HowcanIrewindtheoffsetintheconsumer?
Is it already possible?

consumer.commitOffset and resubscribing seems to do the trick.
const consumer = new kafka.GroupConsumer(config);
consumer.init(strategies);
consumer.commitOffset({topic,offset});
consumer = new kafka.GroupConsumer(config);
consumer.init(strategies);
``
Is this how I should rewind the consumer offset?

Yes, thats the only way for now.

@oleksiyk How do I find out the offset of the last send message when I recover?
Or how do I know how many messages until I reach the latest?

The answer to my own question is:
The relevant documentation can be found here: https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-OffsetAPI(AKAListOffset)
Calling consumer._offset(leader, topic, partition, time); gets the latest message offset.
Which is just a wrapper around client.offset.
To get the current committed offset call consumer.fetchOffset(commits);.


feat: Add Show Unmatched Tab option

Codecov Report

Merging #164 into master will increase coverage by 0.9%.
The diff coverage is 46.15%.

@@            Coverage Diff            @@
##           master     #164     +/-   ##
=========================================
+ Coverage   29.49%   30.39%   +0.9%
=========================================
  Files          17       17
  Lines         217      227     +10
  Branches       39       42      +3
=========================================
+ Hits           64       69      +5
- Misses        120      123      +3
- Partials       33       35      +2

Impacted Files
Coverage Δ

src/js/components/Window/Title.js
5.88% <0%> (-0.37%)
:arrow_down:

src/js/components/Tab/Tab.js
15.68% <0%> (-0.65%)
:arrow_down:

src/js/libs/index.js
29.85% <100%> (+1.06%)
:arrow_up:

src/js/components/Window/index.js
90% <71.42%> (-10%)
:arrow_down:

Continue to review full report at Codecov.

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


Introduce websocket adapter to stimulusreflex for more flexibility

Type of PR (feature, enhancement, bug fix, etc.)
An enhancement!
Description
This is a proposal to adapt the code to use an adapter for websockets. Which would give the user of the library a bit more flexibility, and it would make it easier to replace actioncable with something else.
If this proposal is accepted, it would make it possible to split the javascript into stimulus-reflex which would be for rails alone and stimulus-reflex-core which is completely independent of actioncable. That in turn would make the bundle smaller for python users, as they would unnecessarily need to install actioncable as it is now.
The adapter pattern would also allow for transport over http as I will explain in comments below.
As a reference on how this affects django-sockpuppet -> https://github.com/jonathan-s/django-sockpuppet/pull/13
Checklist

[x] My code follows the style guidelines of this project
[x] Checks (StandardRB & Prettier-Standard) are passing

You beat me to it 😉 but there’s still work on the Ruby side of it... maybe I can tackle that tomorrow

@julianrubisch Yeah, I don't really have any ideas for what is needed (or what your plans were) on the ruby side. But since this is fully backward compatible it wouldn't affect anything if this went in.

Totally! I just added some annotations based on my experience, nothing critical though, afaict your implementation looks solid!

This still needs some work, so I'm going to take a look at this.

It's worth noting that merging this in would break implementations that provide their own consumer (ie django-sockpuppet as an example).
The standard case is to not provide your own consumer, and in that regard the above code is backwards compatible.

Yep well as already pointed out on discord, this PR(s) would necessitate rethinking package architecture a bit, I.e. making it pluggable. It’s easy to do on the ruby side, haven’t thought about JavaScript yet...

Let me know if you have any further ideas regarding package architecture @julianrubisch. From my point of view the above works for the time being, keen to hear your thoughts though.

It sure works! In ruby, we can swap adapters at config time. Specify a gem dependency „stimulus_reflex-messagebus“ and define the adapter in a config file. In JavaScript, we’d need to do a similar thing. However, that would first require a commitment to split up packages.

as a counter point, having batteries included is a nice feature as well.

I would certainly leave ActionCable as the default

Closing this with sincere thanks, @jonathan-s, as the spirit of this PR will be fully realized in v4 but with a different implementation.
💙


Introduce a "Reset Zoom" or "Actual Size" action

Reverting a zoomed state to a non-zoomed state by trial and error is cumbersome.

There is. In F1


Feature request: Add support to proxy local urls

We are using wifi-connect on a system that already have an existing web application which allows to control the device.
It would be really useful if wifi-connect could be configured in a such a way to also proxy existing local urls so that we are still able to control the device even when wifi-connect is active.
For example, if we have an existing web application running at http://localhost:8888/mywebapp, that'd be great to run wifi-connect with proxy support with a --proxy option:
$ wifi-connect --proxy http://localhost:8888/mywebapp

And all requests to http://<IP_ADDRESS>/mywebapp/... would be forwarded to http://localhost:8888/mywebapp/...
What do you think?
I'd like to submit a PR to implement proxy support, but I don't know Rust (yet).
Do you think it would be a hard feature to implement in Rust with Iron? BTW, I noticed the Iron framework is not maintained anymore: do you plan to switch to another framework in the near future?
Any guidance would be much appreciated to help me start.

That's definitely interesting. Will the application that you would like to run side-by-side with WiFi Connect need to run only while WiFi Connect is running and no longer than that? Or in other words does it have to run only during the time when the device still does not have a configured wireless connection?
Also please can you share more information if possible on the specifics of that other application? I guess it is some form of device configuration where the last step is to enter wireless network credentials through WiFi Connect, is that correct?
First time I see that Iron is not maintained anymore, but I expected that as there was not much commit activity anymore. There are newer web frameworks in the Rust ecosystem, but I have not started thinking of switching to a newer one yet, because there is still a lot of movement in the Rust async ecosystem and I wanted to make the switch once things settle a bit more.

The web application will be always running, even if wifi-connect is not started.

Also please can you share more information if possible on the specifics of that other application? I guess it is some form of device configuration where the last step is to enter wireless network credentials through WiFi Connect, is that correct?

Not really. We use resin-os as our operating system on devices such as solar trackers devices and this web application is the end user tracker controlling / monitoring application, that allows to display tracker monitoring metrics and to control the tracker (start/stop the motors, move to specific position, track the sun, ...).
We actually also use this web application to configure specific parameters of the solar tracker device (name, lon/lat position, operating mode, wind limit, ...)
Also, we use systemd with ENV INITSYSTEM on, and I plan to run wifi-connect through a systemd unit service file so that it can run side by side with our own web application when the network is not configured or down.

Thanks for clarifying those points. In that case proxying the traffic through WiFi Connect does not look like a suitable solution. If I understand correctly your application should be accessible through the Internet, not a captive portal so that it can be accessible when you are near the device. Please correct me if I am wrong here.
Current limitation of WiFi Connect is that it is running on port 80, which may interfere with web applications running at the same time. I only investigated this shortly, and the problem was that for the captive portal detection on the phone OS to be working, we need to set additional iptables rules.
Let's say we fix this part and make WiFi Connect able to run properly on a port different than 80. Will that be enough for having WiFi Connect and your application running together, or I am missing something?

Thanks for clarifying those points. In that case proxying the traffic through WiFi Connect does not look like a suitable solution. If I understand correctly your application should be accessible through the Internet, not a captive portal so that it can be accessible when you are near the device. Please correct me if I am wrong here.

No, the web application is not accessible through the Internet:
When the device is connected to the local network, the web application should be accessible locally from url: http://<lan.ip.adress>:8888/mywebapp.
And when not connected, wifi-connect should be running, and the web application should be accessible from url: http://<IP_ADDRESS>/mywebapp or http://<IP_ADDRESS>:8888/mywebapp.
This way, it would ensure the web application is always available, whether the device is connected or not.
I'm fine with wifi-connect running on port 80 and intercepting web traffic to display the captive portal page. But why do you think proxying the traffic through WiFi Connect does not look like a suitable solution?

It took me a while to get my mind around it :)) It definitely all makes sense, since WiFi Connect provides most of what your use case requires and the only missing part is proxying. Something like that will benefit other users as well. When proxying is added you will be able to modify the UI to add a simple /mywebapp link and will be able to access your application easily.
An alternative way to this actually would be to put both of your application and WiFi Connect behind a reverse proxy server like nginx. That will just require changing the listening port of WiFi Connect (very easy), but will not require iptables acrobatics to redirect any traffic to <IP_ADDRESS>:80 to the new WiFi Connect port.
The alternative way looks like a much more easier solution. What do you think about that?

When proxying is added you will be able to modify the UI to add a simple /mywebapp link and will be able to access your application easily.

Yes that would be great!

An alternative way to this actually would be to put both of your application and WiFi Connect behind a reverse proxy server like nginx. That will just require changing the listening port of WiFi Connect (very easy), but will not require iptables acrobatics to redirect any traffic to <IP_ADDRESS>:80 to the new WiFi Connect port.

Yes that would work for me as well.
But how does Wifi Connect currently redirect any web traffic to <IP_ADDRESS>:80 ? do you already use iptables for that? Will it still work when using the alternative way of nginx proxying?

This part is handled by dnsmasq: https://github.com/resin-io/resin-wifi-connect/blob/master/src/dnsmasq.rs.
It basically redirects all traffic targeting any host to <IP_ADDRESS> using the DNS functionality it provides. It also acts as a DHCP server so that clients connected to the access point network may receive an IP address. NetworkManager also uses dnsmasq, but we could not use it, because it does not support all of what we need. So we spawn our own dnsmasq instance.
I have not explored this yet, but I believe that if we are to add iptables rules for port forwarding, this can be done through dnsmasq. There is an example here that I have not explored yet: http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=tree;f=contrib/port-forward;h=b45069ec98d06bc0f653a20570288a3dcb0826c5;hb=HEAD

This is where we have hardcoded port 80: https://github.com/resin-io/resin-wifi-connect/blob/d166767695935656bf1dee78371f15bb332dc239/src/server.rs#L156
If this is made configurable, this should cover everything needed to have something else listening on port 80. Our dnsmasq instance will handle traffic redirection to <IP_ADDRESS> as usual (as long as WiFi Connect is running).

I see, it sounds good. :)

I will discuss this on a call with some team members next week, since some of them are very experienced in those areas and may provide additional ideas. Most importantly with how to proceed with the iptables rules.
Since having WiFi Connect running side-by-side with additional web applications is actually common, I think the solution we are thinking about with the reverse proxy is quite a generic one, so once we have the configurable port implemented, this may go into our docs as a how-to.
I will post an update after I discuss it with my colleagues next week.

Ok, thank you @majorz.

We had an initial discussion about this. Since our overall direction for the future is including WiFi Connect in the host OS, our discussion was along those lines. This quite the same with what you intend to do with your systemd configuration.
WiFi Connect currently has a form of a JSON API and a static web server functionality. The JSON API has two request handlers:

GET /ssid which provides a list with SSIDs of available networks around the device
POST /connect which triggers the process of establishing a connection to a wireless network. It accepts SSID and passphrase. But in the future it may accept more arguments like static IP configuration, etc.

The static web server part is for serving the UI. The UI uses the JSON API. The API is not documented currently as it is not official, but our index.js file can be used as a reference.
One option for your use case is to actually integrate our UI (or a derivative of it) in your web application. Then use the our JSON API in the way index.js does it. This will need your application to run on port 80, or there should be something listening on port 80, so that captive portal detection from the mobile phone would work. Also it will require WiFi Connect to not listen on port 80, but this will be easy to add. What is your opinion on this?
We explored the idea of having WiFi Connect act as a proxy itself and listens on port 80. If we are about to go this route, we have to make sure it can be run as a long-living process as well.
A possibility is also to make the JSON API accessible on a different port that the UI itself. The UI can be served by default on port 80, where the JSON API can be accessible on a different port.
Other possibilities for the future are expanding the JSON API to be able to start/stop the access point, or start/stop the static web server part, etc.

I have been thinking about this further. For now my idea is to introduce a --no-ui type of flag, where the application is run without the web server, but only the JSON API. This means that there could be an additional port for JSON API, and the UI running on 80 can be turned off. I raised this for further discussions with my colleagues for this week and I will post more information after the meeting. Please let me know if you have any ideas or suggestions.

@majorz Ok, I like your idea of controlling wifi-connect through an simple JSON API.
I was just wondering if we may face cross-domain issue if the JSON API server is listening on a different port than the static UI server. But this could be solved if by using on the JSON API by providing also a JSONP API to bypass same-origin policy issues.
Also, having wifi-connect directly integrated into resinos makes sense if we have a way to disable the UI part and to control it from the user container through an HTTP API.

@bbinet quick update: we will go back to the original idea with adding the ability of changing the port where wifi-connect is running (not port 80). It is a simpler solution that can be added quicker, and also will cover in the same way the use case - where a control type of web application can interact with the JSON API we provide (there will be a command line argument that specifies which port the JSON API will be available on). I should be able to get back to development on WiFi Connect next week, and this is the first thing I would like to start working on.

I will need to check the same-origin policy you mention, although for now everything will be available on the same address we won't experience such an issue from the get go. That is to say, when you access your control application from the access point wifi-connect creates, both your web application and the JSON API will be available on the address of the access point.

I have seen that you have merged PR #204 to make wifi-connect port configurable: I will test this change and report back here the results of my tests.
Thanks.


A user's feedback if I may

Hey @rxi,
I hope you are doing great.
This is an outstanding project, super light, super fast; kudos! :1st_place_medal:
I have just downloaded the code, compiled it on my GNU / Debian testing 64-bit system, and my so far experience is the following:

OK, how do I resize my sidebar?
Where's the [x] button for the tab window? Meh...Ctrl+Shift+P lets me choose the command to close it; that's also an option.
How do I scroll up or down my window using hotkeys? Ctrl+UpArrow/DownArrow do not work.
Wait...why does it keep on running from inside the terminal?  I really don't like adding an ampersand at the end of my executable: ./lite & :unamused:
I have opened nearly all C and Lua files and consumes only 0.25% of CPU and 32 MiB of RAM...I mean...DUDE WHAT THE...! :exploding_head: , ~so the real question here is "how do I find out the number of opened tab windows?"~; hmm...you can find the number of opened files by clicking Ctrl+Shift+P; not very convenient but it's better than nothing!
What the hotkey for help command, if any?
Menu bar?!
README is not clear how to install a plugin or a theme; I guess I just copy and paste a file in data/plugins/ for plugins and data/user/colors/ for theme, respectively? :shrug:
What about right-click options?

That's it for now; I will continue with experimentation.
When this editor becomes stable enough, for sure I will switch to it for good; it's exactly what I was looking for!
Keep up the good work mate.
Cheers :+1:

I have discovered a number of hotkeys and decided to open a new ticket dedicated to them: #65

You can middle click on an editor tab to close it. You are correct about how to install plugins.

I have already mentioned it here https://github.com/rxi/lite/issues/65#issuecomment-626318788

Wait...why does it keep on running from inside the terminal?

I really don't like adding an ampersand at the end of
my executable: ./lite & unamused

For this I have found a workaround on my GNU / Debian system.
I have created a script with the following command:
#!/bin/sh

(/PortableApps/lite/lite & >/dev/null &)

I named it lite.sh and symlinked it in my $HOME/bin directory.
Now I can simply type lite in any location of my choice and can continue working on my terminal if I want to.

README is not clear how to install a plugin or a theme;
I guess I just copy and paste a file in data/plugins/ for plugins
and data/user/colors/ for theme, respectively? shrug

We just copy the plugins of our choice from https://github.com/rxi/lite-plugins and place them in data/plugins/ of Lite's directory.
Now, how do we know which is active and which is not?
Simply press Ctrl+Shift+P and choose Core:Open Log; it should display all the loaded plugins among other information.
About colors, we copy the color theme of our choice from https://github.com/rxi/lite-colors
and place it in data/user/colors/.
Then we go to our data/user/init.lua and enable the theme of our choice.
I'm a monokai lover so...yeah lol: require "user.colors.monokai"

* What about right-click options?

That's it for now; I will continue with experimentation.
When this editor becomes stable enough, for sure I will switch to it for good; it's exactly what I was looking for!
Keep up the good work mate.
Cheers +1


Proposal for 2.0

Fixes:
#156
#155
#154
#152
#151
#150
#116

See #159.

I believe a good idea would be creating RC after I fix #159. This way @mungojam and others willing to test 2.0 will have an opportunity to adapt the codebase and we will be able to fix possible arising bugs.

That makes total sense, good suggestion
On Mon, Aug 20, 2018, 21:43 Andrew Boyarshin<EMAIL_ADDRESS>wrote:

I believe a good idea would be creating RC after I fix #159
https://github.com/hvanbakel/CsprojToVs2017/issues/159. This way
@mungojam https://github.com/mungojam and others willing to test 2.0
will have an opportunity to adapt the codebase and we will be able to fix
possible arising bugs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hvanbakel/CsprojToVs2017/pull/158#issuecomment-414548088,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AD8FPPoP5Ten-UpR3m4jOmcEe5DgHyE2ks5uS5ACgaJpZM4WFCHu
.

Very happy to test this, but it won't be till next week. It'd be interesting to try it against the open source projects that hanselman used it against and see how much better it does now. Not at a computer to find them at the moment

A good testing suite would be:

Dopamine
PascalABC.NET - has lots of issues, code is structured like a mess
ConfuserEx
Force.com - thanks for the tip, @mungojam

I can't say I'm a fan of the this. everywhere. It feels like I'm reading some old Java. Isn't one of the points of using _ in the field name that it's clear that you are referring to a field rather than a variable or parameter?