Allow for wrapping a block of code under an autoreleasepool

Following up from my comment in #8, please consider providing an easy macro to wrap a block of code under an autoreleasepool.
Copy pasting my proposal earlier in that thread, something like this can work:
#[macro_export]
macro_rules! autoreleasepool {
    ( $expr:expr ) => {{
        extern "C" {
            fn objc_autoreleasePoolPush() -> *mut std::ffi::c_void;
            fn objc_autoreleasePoolPop(context: *mut std::ffi::c_void);
        }

        let pool = unsafe { objc_autoreleasePoolPush() };
        let r = { $expr };
        unsafe { objc_autoreleasePoolPop(pool) };
        r
    }};
}

This would allow devs to wrap the right amount of code, as deemed appropriate by them, under an autoreleasepool, e.g.
autoreleasepool!({
    for _ in 0..1000 {
        // do something a 1000 times
    }
});

This would greatly help with memory profile of codebases that use legacy objc code (directly or indirectly).

If the proposal works for you, I can push a PR. Alternatively, you figuring out a better model for this, works too.

@amodm I'm cool with this, feel free to PR it!


[draft]proposal: run services on wasm

I propose that we compile micro-services into wasm modules and run them on wasm runtime.
These services should be smaller than traditional micro-services. Maybe we can call them "nano-service".

We can assume that there's only one Layotto on one node:

How to "shrink to zero" when no request comes
Layotto runtime should monitor the workload of every wasm module. If the workload of service 2 decrease to zero, wasm runtime should offload the wasm module, or "swap the module to disk", so that the module won't consume memory.
The offload mechanism should be transparent to K8s.  In k8s view, there's still a service 2 running on this node.

How to "cold start" when new request comes
If new requests come after "swapping to disk", Layotto runtime should:

hold the request
load the wasm module
and then forward the request to the module.

How to "scale out" on one node
a. Raise the resource limits of service 2
b. Load another service_2.wasm

How to "scale out" to run service 2 on more nodes
Layotto should report metrics of service 2 to K8s, and it's K8s' business to decide whether to scale out to a new node.

Milestones
At first ,we can run another preview service on wasm

What's the differences between a "nano-service" and a "function"?

What's the differences between a "nano-service" and a "function"?

Looks like they are quite similar concepts.

This proposal is an idea for discussion. We need some ideas on "what's the next step of layotto+ wasm"  :)

What's the differences between a "nano-service" and a "function"?

A service is "a group of functions" , like a pod is a group of containers. For example:

a service might export 20 rpc endpoints
these endpoints share same memory and connections
this "group of functions" is the minimum scheduling unit
the computing model is "long-running services" , instead of "instantaneous function",  so that we don't have to work on hard things like "How to adapt the function model to k8s", "how to write another layer of scheduler", "how to do function orchestration"

Sounds like function + layotto as daemonset

this "group of functions" is the minimum scheduling unit

How about step function, and then deploy layotto as daemonset to serve the group.

How about step function, and then deploy layotto as daemonset to serve the group.

Do you mean aws step function ? I didn't know it. Let me learn and play it :P

As said in the community meeting yesterday, whether it is an independent faas model or a nano-service model, I think both have great practical business value. As we all know, the former has many practical applications, such as Alibaba Cloud Function Compute. The latter will have higher practical value in search, recommendation, advertising and other businesses that require large-scale resources.
However, when it comes to resource isolation, I personally think that it is relatively certain that each wasm must have a certain degree of isolation, because it is necessary to ensure overall security and stability.
But for the resource problem of each layotto, in other words, how many layotto should a node deploy, more precisely in one or more ways such as container runtime, deamonset, microservice framework, etc., I think we need Discuss further.

I just found that cloudflare open sourced their serverless runtime project "workerd" . They call their abstraction "nanoservice" too. Interesting 😆

https://github.com/cloudflare/workerd
https://blog.cloudflare.com/workerd-open-source-workers-runtime/


Panic during network loss

Upon restarting my router for an upgrade I got this panic:
panic: runtime error: invalid memory address or nil pointer dereference
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x80c70b]

goroutine 36 [running]:
github.com/companyzero/zkc/session.(*KX).Close(...)
        /home/jrick/src/zkc/session/kx.go:124
main.(*ZKC).handleRPC.func1(0xc000b911a0, 0xc000ba7030, 0xc0000e01c0, 0xc001e89808)
        /home/jrick/src/zkc/zkclient/zkclient.go:1201 +0x8b
panic(0x865ca0, 0xbb5430)
        /home/jrick/src/go/src/runtime/panic.go:975 +0x3e9
github.com/companyzero/zkc/session.(*KX).Read(...)
        /home/jrick/src/zkc/session/kx.go:414
main.(*ZKC).handleRPC(0xc0000e01c0)
        /home/jrick/src/zkc/zkclient/zkclient.go:1289 +0x172
created by main.(*ZKC).goOnlineAndPrint
        /home/jrick/src/zkc/zkclient/zkclient.go:1005 +0x1fb

This is with a slightly earlier version of my #162 PR; sorry if the line numbers don't match up exactly.  I don't think the PR is necessarily related.
It seems that z.kx was nil and that it panicked twice.  Once, while reading, and a second time from a deferred KX.Close call.

This seems definitely related to my patch.  Been running with and without it, and evidence only points to the version built with my patch crashing in this manner.


Batch generator hangs with multithread

When using alongside the keras ImageDataGenerator with multithreading=True, the process hangs on recv(). Switching the number of workers to 0 (i.e. no multithread) works as expected.

Versions:
imgaug: 0.2.5 (from master 13May18)
python: 3.5
keras: 2.1.3

I saw the last merged PR #126 tacking in the same direction, and have confirmed that the installed version has it, but problem persists.

Do you maybe have a minimal working example? It's fairly hard to test for these rare cases, even more so when a different library is added to the mix.

I encountered the similar problem (Python 3.6, imgaug 0.2.5, Ubuntu 16.04).
After some investigation, I found that cv2.resize() called in the imgaug.augumenters.Scale() hangs.
It seems OpenCV has some multithreading issue.
In my environment,  calling cv2.setNumThreads(0) fixes the problem (though in this case obviously OpenCV use only one thread..)
Possibly related thread: https://github.com/opencv/opencv/issues/5150

related: https://github.com/pytorch/pytorch/issues/1355


ZENODO: Fix up WebMessages or remove automatic link from Menu and comments

Originally on 2013-03-07

Closing his old issue.  Zenodo has its own overlay.


ERR_UNKNOWN_URL_SCHEME on Vuejs

Hi,
I'm using Vuejs to create this app which allows watching torrent files online. But I'm getting this error that says "ERR_UNKNOWN_URL_SCHEME"
I've checked the magnetic link with a simple HTML file (and of webtor js file too) and it works but on my vue app it's not working. I'm importing the script file there too

Hi! Please provide example page.

thanks for the reply but I solved the issue.
The issue was I was adding the js file using the script tag in the index.html file which was not working.
Adding the script by using the createElement("script") function in the mounted method solves the issue.


[Bug] Can't open/locate Mansions of Madness version 1.9.2

Mansions of Madness updated today to version 1,9,2
BUG: Can't open/locate Mansions of Madness in version 1.9.2
OS: Windows

Same issue after reimporting from 1.9.2 version, solved restoring backup copy from C:\Users<USER>\AppData\Roaming\Valkyrie

If someone with this problem need to go back to 1.8.8 version, its possible:
from a web navigator with Steam client open go to:
steam://nav/console
In the console type this command:
download_depot 47980 47981<PHONE_NUMBER>137747605
Files will be downloaded on:
C:\Program Files (x86)\Steam\steamapps\content\app_478980\depot_478981
When download is complete, change the existing files in MoM installation directory by the downloaded ones.

Thank you for posting this solution. Replacing the entire MoM folder with the nav/console folder contents worked!

Do you know the workaround for mac os? :(
I tried to open the steam console on mac with "/Applications/Steam.app/Contents/MacOS/steam_osx -console" but it is shutting down and steam is opening instead...

For Mac OS:
download_depot<PHONE_NUMBER>82<PHONE_NUMBER>43263412
Files will be here:
/Users/<user_name>/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/steamapps/content/app_478980/depot_478982

This doesn`t work for me on MacOS. I still get the same error "Unable to locate Mansions of Madness Second Edition"

If someone with this problem need to go back to 1.8.8 version, its possible: from a web navigator with Steam client open go to: steam://nav/console In the console type this command: download_depot<PHONE_NUMBER>81<PHONE_NUMBER>137747605 Files will be downloaded on: C:\Program Files (x86)\Steam\steamapps\content\app_478980\depot_478981 When download is complete, change the existing files in MoM installation folder by the downloaded ones.

Thanks a lot, i try everything but this command was the only thing that help me on windows 10

Hello, I get this error in the console: Depot download failed : missing license for depots 478981

Following:
I am having identical issues with Valkyrie 2.5.8 and MoM (Steam) 1.9.3.
A roll-back to MoM (Steam) 1.8.8 solved the issue, but I am hopeful this will be fixed for the current updated version of the MoM files.

Reverting to 1.8.8 on linux also works using the same instructions as provided by Kiname

Looks like these new updates to the Mansions of Madness app were compiled with much later unity:
2020.3.45f1
The code taken from unity studio to read the resources.assets contains a switch/case block:
          fileGen = a_Stream.ReadInt32();             int dataOffset = a_Stream.ReadInt32();             sharedAssetsList[0].fileName = Path.GetFileName(fileName); //reference itself because sharedFileIDs start from 1             switch (fileGen)             {                 case 6://2.5.0 - 2.6.1                     {                         a_Stream.Position = (dataEnd - tableSize);                         a_Stream.Position += 1;                         break;                     }                 case 7://3.0.0 beta                     {                         a_Stream.Position = (dataEnd - tableSize);                         a_Stream.Position += 1;                         m_Version = a_Stream.ReadStringToNull();                         break;                     }                 case 8://3.0.0 - 3.4.2                     {                         a_Stream.Position = (dataEnd - tableSize);                         a_Stream.Position += 1;                         m_Version = a_Stream.ReadStringToNull();                         platform = a_Stream.ReadInt32();                         break;                     }                 case 9://3.5.0 - 4.6.x                     {                         a_Stream.Position += 4;//azero                         m_Version = a_Stream.ReadStringToNull();                         platform = a_Stream.ReadInt32();                         break;                     }                 case 14://5.0.0 beta and final                 case 15://5.0.1 and up                 case 16://5.5.0 and up                 case 17://5.5.0 and up                     {                         a_Stream.Position += 4;//azero                         m_Version = a_Stream.ReadStringToNull();                         platform = a_Stream.ReadInt32();                         baseDefinitions = a_Stream.ReadBoolean();                         break;                     }                 default:                     {                         //MessageBox.Show("Unsupported Unity version!", "Unity Studio Error", MessageBoxButtons.OK, MessageBoxIcon.Error);                         return;                     }
For MoM 1.9.3 fileGen is 22 so in order for Valkyrie to work with MoM 1.9.3 someone would have to put in code to handle the version 22 / 2020.3.45f1 file structure.

For Mac OS: download_depot<PHONE_NUMBER>82<PHONE_NUMBER>43263412
Downloaded file will be here: /Users/<user_name>/Library/Application Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/steamapps/content/app_478980/depot_478982 Replace the file in: /Users/<user_name>/Library/Application Support/Steam/steamapps/common/Mansions of Madness

This worked for me. You have to be patient for all the files to download (which I wasn't the first time)...

If someone with this problem need to go back to 1.8.8 version, its possible: from a web navigator with Steam client open go to: steam://nav/console In the console type this command: download_depot<PHONE_NUMBER>81<PHONE_NUMBER>137747605 Files will be downloaded on: C:\Program Files (x86)\Steam\steamapps\content\app_478980\depot_478981 When download is complete, change the existing files in MoM installation folder by the downloaded ones.

Closed. Issue has been fixed in Release https://github.com/NPBruce/valkyrie/releases/tag/release%2F2.6%2F2.6.0a.


Added dep/department

Under seedu.address.ui.MainWindow,
browserPlaceholder.getChildren().add(browserPanel.getRoot());
gui tests have not been updated thats why travis failed

Check style errors:

java/seedu/address/logic/commands/EditCommand.java:202:53: '{' at column 53 should have line break after. [LeftCurly]
java/seedu/address/model/person/Person.java:63:39: '{' at column 39 should have line break after. [LeftCurly]

Under seedu.address.ui.MainWindow,
browserPlaceholder.getChildren().add(browserPanel.getRoot());
gui tests have not been updated thats why travis failed

Seems to me Jeevan have reverted the changes on the GUI. Error may come from other sources.

i understand what went wrong. My bad. Working on it now.


how to get the waveform data of wav file？

Dear，
Could help me get the waveform data of wav file？
THX

Hey!
The Wav format is supported on all platforms. What exactly is the problem you are facing?
As a starting point you could try the code below which will read in an entire wav file into an interleaved vector.
    auto stream = audio::ifstream("hello.wav");
    auto samples = std::vector<float>(stream.info().num_samples());
    stream >> samples;

#include <boost/range/difference_type.hpp>
#include <boost/range/has_range_iterator.hpp>
#include <boost/range/value_type.hpp>
Sorry，I can‘t find these three headers，could U help me？

It seems like you are missing the boost libraries. Boost is a required dependency. Cmake should have triggered an error during configure time about the missing library. Are you using cmake?
You can use Visual Studio 2015 and above.

But U haven't proposed the files !!!
Couldn't find !
Help !
Thx

Hiya.
You need to install the boost libraries and then include them in your VS solution.  Here is a guide for windows: https://www.boost.org/doc/libs/1_68_0/more/getting_started/windows.html

Hi @ucasiggcas did you get it to work? :)


(468) Change button path

fixed "change" button for newly_qualified_teacher on review page

 Fix: clicking on "change" button for newly_qualified_teacher on the review page redirects to wrong path


Publish to Github Not Functional?

Expected Behaviour
I'm not certain what should happen - @pezholio any insight?
Current Behaviour (for problems)
Neither of the github features from the menu are functional
Steps to Reproduce (for problems)

open csv file
click file > github > export to github or `file > github > add file to github
new windows open, but it is blank

Your Environment

Include as many relevant details about the environment you experienced the bug in - this will help us resolve the bug more expediently

Operating System and version MacOS

The branch that has incorporated (StandardJS)[https://github.com/theodi/comma-chameleon/pull/177] has flagged this file with errors as follows
  121:11  error  Unexpected literal in error position of callback  standard/no-callback-literal
  125:9   error  Unexpected literal in error position of callback  standard/no-callback-literal

@pezholio realised you may not get a ping when I edit an existing comment so pinging anew here

Huh. That's weird. I get a new window that prompts me to login to Github, but when I try to submit a file, I get Dataset files is invalid. Were any changes made to the Octopub API since the FSA work was done in the new year?
I haven't got time at the mo to dig into this, but if it helps, the relevant backend code that talks to the Octopub API is here
Sidebar: When logging into Github to get my token, and trying to copy and paste my Github password from my password manager, I get this error.
Uncaught Exception:
ReferenceError: mainWindow is not defined
    at exports.menu.submenu.click (/Applications/Comma Chameleon.app/Contents/Resources/app/main/menu.js:187:11)
    at MenuItem.click (/Applications/Comma Chameleon.app/Contents/Resources/electron.asar/browser/api/menu-item.js:81:16)
    at Function.delegate.executeCommand (/Applications/Comma Chameleon.app/Contents/Resources/electron.asar/browser/api/menu.js:119:40)

@pezholio - that issue should have been fixed in f21beb4
If you're using a binary dist, I think that commit hasn't made it into a tagged release yet.
If you're running from source, make sure you've got the latest commits fetched/pulled, although @quadrophobiac has been having some problems with that so I'd be interested to know if you have the same issues.

API shouldn't have changed, no. We should re-test with the current master and tag a release.

re-test Comma Chameleon you mean?

Yep

Yes - I've got the same problem. Tests pass, 'Export to GitHub' gives me a blank window with no errors logged to the console.
There's definitely something odd going on here though. Lets go back in time to a point where I know this feature definitely worked...
If I download the binary dist for say version 0.4.7, that feature does work .. but then on my local copy, if I git checkout  af7f60e ( af7f60e  is the commit tagged as 0.4.7), I've got the same problem on my working copy. I think whatever is going on is going to be related to something that is happening in the build process or a dependency or a setting that is on in dev but not when we build a release or something like that.. I don't think the actual "export to GitHub" code is fundamentally broken.
Sorry I don't have more time to spend on it right now but maybe that gives you a clue?


feat(upload): add props

Types of changes

[x] New feature
[ ] Bug fix
[ ] Documentation change
[ ] Coding style change
[ ] Component style change
[ ] Refactoring
[ ] Performance improvement
[ ] Test cases
[ ] Continuous integration
[ ] Typescript definition change
[ ] Breaking change
[ ] Others

Background and context

Solution

How is the change tested?

Changelog

Component
Changelog(CN)
Changelog(EN)
Related issues

upload
新增 show-remove-buttoon 、show-retry-button、show-cancel-button 属性
add show-remove-buttoon and show-retry-button and show-cancel-button property

upload
新增 imageLoading 属性
add imageLoading property

Checklist:

[ ] Test suite passes (npm run test)
[ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
[ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others
should be submitted to main branch)

Other information

@Kigoal 欢迎共建👏🏻，download 我再加个属性，让用户可以控制开关

@Kigoal 欢迎共建👏🏻，download 我再加个属性，让用户可以控制开关

👌好的


🐛 [Transmission Openvpn] Transmission client is killed upon VPN restart (because of inactivity)

Which addon?

Addon name : Transmission Openvpn
Addon version : 4.0-v10

Describe the bug

When the VPN tries to restart, everything is taken down.
To Reproduce
Wait for the VPN to restart.
Full addon log
I'm pasting the relevant part of the log.  As this seems an upstream behavior. Or it is due to the "latest" image and I'll revert to the "4.0" one. Thanks

I can't answer with absolute certainty. I moved from a Raspberry PI 4B to a VM inside an Intel i5. All I know is I faced it today for the first time 😃

Do you have a custom config file for which you could remove the ’--ping-restart‘ directive that is mentioned at the top of your excerpt?

Do you want me to try deleting it? As far as I remember, it's set by the VPN provider in its config.

The very same issue happened with "4.0-v17".
I'm going to upgrade to "4.0-v18" and see what happens.

This issue is still there, using 4.0-v19

Thanks ; however I honestly have no idea of what could help. I could revert the image back to 4.0 instead of latest if you'd prefer

If I got it correctly, in /etc/cont-init.d/99-run.sh you execute /./etc/openvpn/start.sh & echo "".
That script, in turn, executes exec openvpn ${TRANSMISSION_CONTROL_OPTS} ${OPENVPN_OPTS} --config "${CHOSEN_OPENVPN_CONFIG}" that, I think, triggers tunnelUp.sh.
So far, everything is ok.
The problem should be that openvpn is shut down either because of some inactivity timeout, or because of an explicit (remote?) reset request. That triggers the execution of tunnelDown.sh, and that's the end of the story 😄
All that should be needed is a restart of openvpn (a new exec openvpn...?). Maybe from within tunnelDown.sh?

Hi, this looks like https://github.com/haugene/docker-transmission-openvpn/issues/2063

Thanks for the analysis, I've replaced the tunnel own script by an automatic addon restart. This is comparable to openvpn restart but avoids deal g with potential network issues. Could you please test? Thanks!

Upgrading now 😃

@alexbelgium
There must be a bug in the "resurrect" script 😄
Mon Sep 19 18:17:39 2022 [antanex.com] Inactivity timeout (--ping-restart), restarting
Mon Sep 19 18:17:39 2022 SIGTERM received, sending exit notification to peer
Mon Sep 19 18:17:40 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
parse error: Expected string key before ':' at line 1, column 4
[16:17:40] ERROR: Unknown HTTP error occured
Mon Sep 19 18:17:40 2022 WARNING: Failed running command (--up/--down): external program exited with error status: 1
Mon Sep 19 18:17:40 2022 Exiting due to fatal error

The only option, for me, is manually restart the addon.

Hi, I've pushed a new version, could you please test it? Thankw

Thank you. I upgraded last night.
Will post findings 😃

Hi @alexbelgium 😃
Unfortunately, the issue is still there:
Wed Oct 12 02:08:41 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Wed Oct 12 02:08:41 2022 SIGTERM received, sending exit notification to peer
Wed Oct 12 02:08:42 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
parse error: Expected string key before ':' at line 1, column 4
[00:08:42] ERROR: Unknown HTTP error occured
Wed Oct 12 02:08:42 2022 WARNING: Failed running command (--up/--down): external program exited with error status: 1
Wed Oct 12 02:08:42 2022 Exiting due to fatal error

The only option is a manual restart.

You could try to check the content of the /etc/openvpn/tunnelDown.sh file using portainer. If I find some time I'll reinstall the addon to test

I already looked at that file, but it makes no sense to me. If I execute it manually, it succeeds, but this is true while everything is working fine.
My best guess is that script is executed in a different system state, and, most likely, it is some other script that is, called by it, failing. In other words, I fear the "parse error" is not coming directly from /etc/openvpn/tunnelDown.sh, but from, say bashio::addon.restart.

Hi, please try this version I've added api access to see if it changes anything

Will report as soon as anything relevant happens 😃

Thu Oct 13 16:46:18 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Thu Oct 13 16:46:18 2022 SIGTERM received, sending exit notification to peer
Thu Oct 13 16:46:19 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
parse error: Expected string key before ':' at line 1, column 4
[14:46:19] ERROR: Unknown HTTP error occured
Thu Oct 13 16:46:19 2022 WARNING: Failed running command (--up/--down): external program exited with error status: 1
Thu Oct 13 16:46:19 2022 Exiting due to fatal error

Same as before. I really cannot understand in what file is expected to be that ":" at line 1, column 4 😭

I wonder if this is because the bashio command requires root, and the script is launcher from a user... I think it means it can't read the options.json file, which requires root access

Some result, different error message, this time:
Sun Oct 16 02:43:32 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Sun Oct 16 02:43:32 2022 SIGTERM received, sending exit notification to peer
Sun Oct 16 02:43:33 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
Sun Oct 16 02:43:33 2022 WARNING: Failed running command (--up/--down): could not execute external program
Sun Oct 16 02:43:33 2022 Exiting due to fatal error

Transmission Openvpn
Current version: 4.0-v28
Mon Oct 17 10:22:17 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Mon Oct 17 10:22:17 2022 SIGTERM received, sending exit notification to peer
Mon Oct 17 10:22:18 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
[08:22:18] FATAL: Tunnel down, addon restarting in 15 seconds
parse error: Expected string key before ':' at line 1, column 4
[08:22:33] ERROR: Unknown HTTP error occured
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Mon Oct 17 10:22:35 2022 /sbin/ip route del <IP_ADDRESS>/32
Mon Oct 17 10:22:36 2022 /sbin/ip route del <IP_ADDRESS>/1
Mon Oct 17 10:22:36 2022 /sbin/ip route del <IP_ADDRESS>/1
Mon Oct 17 10:22:36 2022 Closing TUN/TAP interface
Mon Oct 17 10:22:36 2022 /sbin/ip addr del dev tun0 <IP_ADDRESS>/24
Mon Oct 17 10:22:36 2022 SIGTERM[soft,exit-with-notification] received, process exiting

This time, the addon died differently, but died 😄

I see there is a new version of the add-on. Installing now 😄

Hi, indeed it seems the container env doesn't get pulled in and I try to force it manually through trials and errors given I can't find a way to replicate it using portainer

No more errors but not working anyway ;)

Transmission Openvpn
Current version: 4.0-v27
Wed Oct 19 09:05:59 2022 Connection reset command was pushed by server ('[N]')
Wed Oct 19 09:05:59 2022 SIGTERM received, sending exit notification to peer
Wed Oct 19 09:06:00 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
[07:06:00] FATAL: Tunnel down, addon restarting in 15 seconds
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Wed Oct 19 09:06:19 2022 /sbin/ip route del <IP_ADDRESS>/32
Wed Oct 19 09:06:19 2022 /sbin/ip route del <IP_ADDRESS>/1
Wed Oct 19 09:06:19 2022 /sbin/ip route del <IP_ADDRESS>/1
Wed Oct 19 09:06:19 2022 Closing TUN/TAP interface
Wed Oct 19 09:06:19 2022 /sbin/ip addr del dev tun0 <IP_ADDRESS>/24
Wed Oct 19 09:06:19 2022 SIGTERM[soft,exit-with-notification] received, process exiting

Basically, it looks like transmission-daemon is taken down, but never started again.

It also looks as if the curl command for the supervisor restart of the addon doesn't work ;-)
Another solution could be to link the finish script with the start one but the it would be an endless loop

It also looks as if the curl command for the supervisor restart of the addon doesn't work ;-)

Do you have the command, and the error?
Can I find them somewhere?

Hi, the bashio::addon.restart function is described in this library : https://github.com/hassio-addons/bashio/blob/main/lib/addons.sh
If we follow the different logic, it seems to arrive to this command : curl --silent --show-error \         --write-out '\n%{http_code}' --request "${method}" \         -H "${auth_header}" \         -H "Content-Type: application/json" \         -d "${data}" \         "${__BASHIO_SUPERVISOR_API}${resource}"
where $method = POST ; $resource=/addons/transmission_openvpn/restart ; $auth_header, $__BASHIO_SUPERVISOR_API are described in the container env

It also looks as if the curl command for the supervisor restart of the addon doesn't work ;-)

To be honest, this is something I saw in previous reports. Now, I can no longer see any trace of that in my report.

As far as I can see, the failure pattern is always the same now:
Wed Oct 19 09:05:59 2022 Connection reset command was pushed by server ('[N]')
Wed Oct 19 09:05:59 2022 SIGTERM received, sending exit notification to peer
Wed Oct 19 09:06:00 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
[07:06:00] FATAL: Tunnel down, addon restarting in 15 seconds
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Wed Oct 19 09:06:19 2022 /sbin/ip route del <IP_ADDRESS>/32
Wed Oct 19 09:06:19 2022 /sbin/ip route del <IP_ADDRESS>/1
Wed Oct 19 09:06:19 2022 /sbin/ip route del <IP_ADDRESS>/1
Wed Oct 19 09:06:19 2022 Closing TUN/TAP interface
Wed Oct 19 09:06:19 2022 /sbin/ip addr del dev tun0 <IP_ADDRESS>/24
Wed Oct 19 09:06:19 2022 SIGTERM[soft,exit-with-notification] received, process exiting

In the log above, I do not see any message about "Restarting Transmission daemon". I would expect something like that, since there is a "Sending kill signal to transmission-daemon".

New error message in logs, this time!
Tue Oct 25 18:54:27 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Tue Oct 25 18:54:27 2022 SIGTERM received, sending exit notification to peer
Tue Oct 25 18:54:29 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
/etc/openvpn/tunnelDown.sh: /./usr/bin/restart_addon: /usr/bin/with-contenv: bad interpreter: No such file or directory
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Tue Oct 25 18:54:33 2022 /sbin/ip route del <IP_ADDRESS>/32
Tue Oct 25 18:54:33 2022 /sbin/ip route del <IP_ADDRESS>/1
Tue Oct 25 18:54:33 2022 /sbin/ip route del <IP_ADDRESS>/1
Tue Oct 25 18:54:33 2022 Closing TUN/TAP interface
Tue Oct 25 18:54:33 2022 /sbin/ip addr del dev tun0 <IP_ADDRESS>/24
Tue Oct 25 18:54:33 2022 SIGTERM[soft,exit-with-notification] received, process exiting

Hi again @alexbelgium 😃
So, it all boils down to this
/./usr/bin/restart_addon: /usr/bin/with-contenv: bad interpreter: No such file or directory
where the key point is that /usr/bin/with-contenv does not exist anywhere in the system.

Thanks, I'll put back the previous one, but it still won't solve why the bashio command to restart the add-on doesn't work...

Commit to restore the shebang : https://github.com/alexbelgium/hassio-addons/commit/72bd04aa30b2e3a431412c777a333e68b1a20b8a

We're back to the old version of the issue 😭
Thu Nov  3 09:00:35 2022 [somevpn.org] Inactivity timeout (--ping-restart), restarting
Thu Nov  3 09:00:35 2022 SIGTERM received, sending exit notification to peer
Thu Nov  3 09:00:36 2022 /etc/openvpn/tunnelDown.sh tun0 1500 1585 <IP_ADDRESS> <IP_ADDRESS> init
[08:00:36] FATAL: Tunnel down, addon restarting in 15 seconds
resolv.conf was restored
Sending kill signal to transmission-daemon
Waiting 5s for transmission-daemon to die
Successfuly closed transmission-daemon
Thu Nov  3 09:00:55 2022 /sbin/ip route del <IP_ADDRESS>/32
Thu Nov  3 09:00:55 2022 /sbin/ip route del <IP_ADDRESS>/1
Thu Nov  3 09:00:55 2022 /sbin/ip route del <IP_ADDRESS>/1
Thu Nov  3 09:00:55 2022 Closing TUN/TAP interface
Thu Nov  3 09:00:55 2022 /sbin/ip addr del dev tun0 <IP_ADDRESS>/24
Thu Nov  3 09:00:55 2022 SIGTERM[soft,exit-with-notification] received, process exiting

Ah, ah, I see you are persistent with this issue. I'm really sorry that I don't know how to solve this. Perhaps I could add a local ping with cron but I fear the impact on the addon resources

Hi, if you activate the new auto_restart bool, it should check every hour if the vpn is up. If not, it should automatically restart the addon. Could you please try? Thanks

It doesn't work:
Updating variables
Using PUID 1000 and PGID 1000
[13:01:37] INFO: Custom openvpn provider selected
Copying ovpn file to proper location
Exporting variable for custom provider : somevpn.org
[13:01:37] INFO: Auto restarting addon if openvpn down for more than 1h
chmod: cannot access '/etc/cron.hourly/cronupdate': No such file or directory
/etc/cont-init.d/99-run.sh: exiting 1

New version pushed to have the log show in addon log

Doesn't work, same error

I think it now works. I've pushed a new version

Installing 4.0-v40 now 😃

Ah ah ah 😆 Then, I will install 4.0-v41!

Both have the same code but 41 has an additional message to say after rebooting that it was rebooted

Yesterday, things looked promising.
Today, with 4.2-3, I'm consistently getting this:
[09:28:16] INFO: Starting app
Starting container with revision: f9cb4dea2da1a3aa63bd3945e0162c9b8a9789a4
Using OpenVPN provider: SOMEVPN
Running with VPN_CONFIG_SOURCE auto
No bundled config script found for SOMEVPN. Defaulting to external config
Downloading configs from https://github.com/haugene/vpn-configs-contrib/archive/main.zip into /tmp/tmp.E0S62k4KHK
Extracting configs to /tmp/tmp2
ERROR: Could not find any configs for provider SOMEVPN in downloaded configs
Cleanup: deleting /tmp/tmp.E0S62k4KHK and /tmp/tmp2

And nothing else appears in the logs (and Transmission doesn't start either).

Hi, solved in latest version

Installing now 😃

Yes, it started properly, this time 😃


Get Diagnosis Mode and Patch Updater Script failed

r-6-105-25-172:dpt-tools-master yy$ python3 dpt-tools.py -ip xxx
===========
 DPT Tools
===========
Thanks for using DPT Tools. Type `help` to show this message.
Supported commands:
    fw        -- update firmware
    diagnosis -- enter diagnosis mode (to gain adb, su, etc.)
    exit/quit -- leave the tool

>>> fw
[info] Please make sure you have charged your battery before this action.
>>> Please enter the pkg file path: /Users/yy/Downloads/fw.pkg
>>> Pleae confirm /Users/yy/Downloads/fw.pkg is the pkg file to use [yes/no]: yes
[info] fw updating in progress.. do NOT press anything..
[info] Success!
**I do not see this.**
"You will see multiple lines printing, starting with the LICENSE. For every step, it will print the files being changed and pause for 30s. You can press the HOME key to bypass the waiting.
 **I enter diagnosis model to check."**

>>> Black square on the screen? [yes/no]: yes
>>> Enter the serial port [/dev/tty.usbmodem01]: /dev/tty.usbmodem14201
[error] failed to login..
[info] got out of diagnosis

I worked on my Mac and the rpt version is <IP_ADDRESS>40.
I followed all the instructions. Any suggestions?

Sorry for the late response.   When you say "I do not see this", what did you see?
It looks like there have been several people reporting this, I'll check their firmware updates this weekend to see what is going on. BTW, when did you purchase your device?

Sorry for the late response. When you say "I do not see this", what did you see?
It looks like there have been several people reporting this, I'll check their firmware updates this weekend to see what is going on. BTW, when did you purchase your device?

I just bought it. The production date is Sep 2019. I did not see anything but the dpt just restarted and showed update failure.
Sony just upgraded the new firmware. If you keep updated on this, the problems will be of little importance if you can not fix it quickly.

Please refer to #141 . It seems they have fixed the updater script in diagnosis mode after Sept. 2019.

Just a bit more info. The new firmware does not fix the updater script bug. But it seems they choose to fix the bug for devices only after Sept. 2019.. What a weird decision..

Sorry but still confused. Do you mean that we can not root devices produced after Sep 2019 even when we update to the newest firmware now?

Yes. to clarify:
For devices manufactured after Sept 2019 (based on what people reported), they can no longer be rooted as they have a secured updater script in diagnosis mode.
For devices made before then, even with the latest firmware, they can be rooted, as they have an insecure diagnosis mode.

Thanks. I got some sense about 'weird'. I guess new solutions may come up in the near future.

Thanks. I got some sense about 'weird'. I guess new solutions may come up in the near future.

请问目前有解决方法了吗？

Right now unless you know the official diagnosis password, no.
I know someone was looking into other possible exploits. But I haven't heard from him since then.


我来捣乱了

PropertyDrawer真好玩！虽然可能写了一坨 * 吧
Feat
A PropertyDrawer that gives users the option to modify inspector Vector3 fields by dragging a position handle in the scene view.

Fairly simple to use

Problems

Code sucks
Might introduce overhead
Vector3 field overlaps with buttons when the Inspector window is too narrow
Didn't strictly follow formatting guidelines
Not user-friendly at all

By the way
This is my first PR to a public repo! Please don't tell me that Unity already made these with everything so much better and I just wasted two days on this

哇，是野生的神秘 game dev
你好呀！

哇，是野生的神秘 game dev
你好呀！

自己人，冰岩新的小东西🤔

坏耶，那你怎么没在 github.com/BingyanStudio 里
组长该干活辣！

From: GaN @.***>
Sent: Tuesday, October 29, 2024 5:43 PM
To: BingyanStudio/BingyanDevKit
Cc: jyi2ya; Comment
Subject: Re: [BingyanStudio/BingyanDevKit] 我来捣乱了 (PR #17)
哇，是野生的神秘 game dev
你好呀！
自己人，冰岩新的小东西🤔
—
Reply to this email directly, view it on GitHubhttps://github.com/BingyanStudio/BingyanDevKit/pull/17#issuecomment-2443722499, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUWKWUJ3RAR5OTCSSBXFWOLZ55KEJAVCNFSM6AAAAABQZNFLT2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBTG4ZDENBZHE.
You are receiving this because you commented.Message ID: @.***>

Renamed to

Editor/PropertyEditor/EasyPositionEdit/EasyPositionEditDrawer.cs
Editor/PropertyEditor/EasyPositionEdit/EasyPositionEditSceneMonitor.cs
Runtime/Attribute/EasyPositionEditAttribute.cs

已经合并
另外，你已经被拉进组织了，之后直接在 dev 分支 push 即可


feat: add TypeScript typings

Summary
Added TypeScript definition from definitelyTyped to this package.
This will allow users to not have to import types to use this package in a TypeScript project.

Test Plan
Will add type-check in this repository

Checklist

[ ] I have tested this on a device and a simulator
[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[x] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

any progress?


pipenv path and executable path issues

I had used the Django-todo years ago and it worked great since @shacker you helped me solve issue#36 #37, #38 the challenge is since 2018 all of what I've worked on is heavy NLP and many different packages I can only get them to work with anaconda.
What I've been working on is a way (potentially) to save your list to a database and it learns which items you prefer over time and attempts to automate the order of the todo list, and I've come up with a way to have it be automated and user selectable for up to eight different variables. So if you have something with a due date of today that item would show up on the list before everything due tomorrow, or if you had 'Project BBQ' and it was dependent upon something like 'Buy BBQ' it will only let you start once that constraint is satisfied But... I'm running into environment stumbling blocks.
Step five is as far as I got on this install and I'm hesitant to mess with my 3.8 environments as I just got a bunch of stuff working and very hesitant to step into the PATH and ENVIRONMENT minefield unless the steps are well understood.
Options to install this with conda or?
TLDR: 100% of my code for the last 5 years has only been written using 'conda install ' and its now smooth as glass for Pycharm installs, like my Mac Nvidia GPU with 2800 cores which is near impossible to get working is lighting quick. What is the install option for conda users?
I could help write something or create a patch of some kind, help write new instructions as these don't work in my data science environments.
This first line is just git cloning pipenv itself, ok.

pip3 install --user git+https://github.com/pypa/pipenv.git

I normally install in Users/username/sandbox/PycharmProjects/<project_name>
2. cd ~/Users/username/sandbox/PycharmProjects/
It tells me I don't have permission? Which is weird since its my own laptop fatal: could not create work tree dir 'gtd': Operation not permitted
3. git clone git@github.com:shacker/gtd.git
If I go my normal route and create the environment in conda with the 'gtd' name I can get to this point and open the directory
4. cd gtd
I tried to complete this step but it tells me pipenv is incompatible with error message ⠋ModuleNotFoundError: No module named 'virtualenv.activation.xonsh', stack overflow says to pip uninstall virtualenv I stopped here.
5. pipenv --python 3.9   # Initializes the virtual environment
5.1 Possible Fix 'pip uninstall virtualenv' generates a warning message, and I can't have it removing my 3.8 packages as I'm still migrating 3.7 over and that's going to take another 6 months.
`
Uninstalling virtualenv-20.19.0:
Would remove:

/Users/username/.local/bin/virtualenv
/Users/username/.local/lib/python3.8/site-packages/virtualenv-20.19.0.dist-info/*
/Users/username/.local/lib/python3.8/site-packages/virtualenv/*
`

5.2 While installing this I got an error that might help about how I was installing it and it said it wasn't on PATH  WARNING: The script virtualenv-clone is installed in '/Users/username/.local/bin' which is not on PATH.
5.3 On a related note I worked on getting Django-Gentella install working in my .env file working last weekend and struggled with that as well but then I thought if you knew my PATH for related issues might be helpful in diagnosing this?
`
Gentella_PATH:

project_path = '~Users/username/sandbox/PycharmProjects/django-gentelella '

conda env path = '/Users/username/opt/anaconda3/envs/django-gentelella/bin/python'

add interpreter = '/Users/username/opt/anaconda3/condabin/conda'

`
ONHOLD

'pipenv install --dev'  # Installs all dependencies

ONHOLD

'pipenv shell'  # Activates the environment

I've also been digging around the interwebs and found these steps from their github repo trying to help another conda user. https://github.com/pypa/pipenv/issues/699.

For setting up Django-todo in a Conda environment, consider installing Pipenv via Conda, cloning the repository, creating and activating a Conda virtual environment, and then installing dependencies using Conda or Pipenv. Make sure to activate your Conda environment throughout the process. If challenges arise, adjusting dependencies or seeking assistance from the project's maintainers may be necessary.
Source:
Conda installation of Pipenv: https://anaconda.org/conda-forge/pipenv


Set selected md-tab programmatically

Bug
I am trying to set last open tab to be selected by using [selectedIndex] on md-tab-group, but it is first tab always selected

duplicate of #1692

Dupe of #1692


Initial POC

Looks like a great start using Ansible!   For setting up the initial config w/o rewriting everything we already have,  a good approach,  this seems great!


style: fix button background color when clicked in HomeBanner and Navbar

Description
Button colour still black once clicked.
Changes
This issue was caused by the :focus pseudo-class. It was applied to change the border and text color but not the background color. To resolve this, I have added the background change to the :focus pseudo-class.

Hey @gl-cardillo, the same button is used multiple times throughout the UI, could you please fix them all in the PR?

Hello @dvjsharma , I have fixed the background in all buttons that use focus:

Hi @gl-cardillo ,changes looks good. Please rebase with latest master to remove the redundant commits.

I can still see commits form other authors. Please rebase and force push.


Export to Excel restrictions relaxed.  Fixes #2155

If a variable can be coerced to data.frame, and length is greater than 1, export to excel button is shown for that variable.

:+1:

:+1:


athom_ps01: Status LED can't be turned off permanently

Recently I've tried to turn off the LED that's constantly on during detected presence and noticed that it just resets. From what I've read, it seems to be a problem with the original config but maybe you can fix it for your version.
I'm not sure when but after turning it off, it returns back to on after a while

Have you figured this out?

No I pretty much forgot about it. It's not that bad for me since I only have one of those sensors. I didn't want to just copy the config and remove the relevant lines but I didn't get to think of a proper fix