Lookup table for ADT entry, where ADT name does not match it's corresponding gene name

This is worth re-visiting. A couple ideas:

Should the ADT names be changed to add the gene name from the LUT in parentheses?
Perhaps we could take advantage of colData (SingleCellExperiment) and var (anndata). Similar to what we did with the static report generator, we could add feature metadata in colData or var and separate metadata with vertical lines


viewWillAppear is loaded before viewDidLoad

Hello, I've noticed strange behavior for this library in the first Item (viewController) in the controllerArray.
The problem is that viewWillAppear is executed before viewDidLoad, When I set this same viewcontroller as the second or third ... object in the controllerArray then it work fine and viewDidLoad is executed first.
I'm the Objective-C classe from the  StoryBoard Example.

I faced the same issue.
The problem is that PageMenu doesn't fully support ContainerViewController interface.
(CAPSPageMenu calls its childViewController's viewWillAppear() directly that it shouldn't do)
Quick fix:
You can fix this issue by calling viewDidLoad() before CAPSPageMenu calls viewController.viewWillAppear()
		let viewController = UIViewController()
		let hoge = viewController.view	// dummy variable(it will be never used): to load viewController.view & it automatically calls viewController.viewDidLoad()

		var controllerArray : [UIViewController] = []
		controllerArray.append(viewController)

		pageMenu = CAPSPageMenu(viewControllers: controllerArray, frame: frame, pageMenuOptions: parameters) // inside the init method CAPSPageMenu calls viewController.viewWillAppear()

Hi I'm having a similar problem but not exactly.
viewWillAppear is never called on my first viewController. When I swipe to the 2nd, third or come back to the first one, it will successfully call viewWillAppear. However, it's never called on the first viewControlller,  any idea ? I've tried your method above but it didn't work

Hi
I think you initialize CAPSPageMenu using init(viewControllers: frame: options:)
If it's the case, use init(viewControllers: frame: pageMenuOptions:)

No I'm already using the init with pageMenuOptions.
See https://gist.github.com/fabdarice/4cd0755aa6dc0555db45

The viewController that viewWillAppear is not called, is activeMatchupsVC, right?
And are you using v1.2.8?
https://github.com/uacaps/PageMenu/tree/1.2.8
About v1.2.8's demo projects, the first child viewController's viewWillAppear does get called, so it sounds weird
If the version is 1.2.8 and the implementation looks properly, it's very discouraged idea but you can force call viewWillAppear like:
        self.view.addSubview(pageMenu!.view)
        activeMatchupsVC.viewWillAppear(false)

First of all, thanks for taking your time to help me.
The viewController is indeed ActiveMatchupVC for which the function viewWillAppear ins't called the first time.
I've used the latest version, however, since I'm on Swift 2, when I've used the automatic conversion tools to make CAPSPageMenu.swift compatible. Here's what it looks like after : https://gist.github.com/fabdarice/6e899f88a02dfa049fbd
Using the same version, when I run in the demo project, viewWillAppear doesn't get called the first time.

Ok the version you're using is not 1.2.8, it's current master.
So in MatchupsVC.viewDidLoad, replace (1) to (2)
        // (1)
        self.view.addSubview(pageMenu!.view)

        // (2) // there may be spelling mistakes
        self.addChildViewController(pageMenu)

        pageMenu.view.frame = self.view.bounds // modify this line as you like
        pageMenu.view.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight] // modify this line as you like

        self.view.addSubview(pageMenu!.view)
        pageMenu.didMoveToParentViewController(self)

Description:
In the latest code, CAPSPageMenu adds its child viewControllers to the viewController hierarchy, it means the system automatically calls view appearance methods like viewWillAppear.
So as you can see in the (2) code, you have to add pageMenu to the hierarchy
For more explanation, google "iOS ViewController hierarchy" or "shouldAutomaticallyForwardAppearanceMethods"

ok so, I've modified (1) to (2) and here's what I see :

With the master branch, viewWillAppear still isn't called.
With the older 1.2.8, viewWillAppear is called, however, it's called before viewDidLoad and the swipe left/right doesn't work anymore, you have to click on the menu item to select the viewController.

Nevermind, with the master branch, viewWillAppear is not called.
However, it seems it didn't solve my issue.
Let me illustrate it for you. The first time the viewController is called, my view isn't properly displayed (see image : http://i63.tinypic.com/33cam51.png), however, after I swipe right to 2nd viewController then back to the first one, it is now properly displayed (see image : http://tinypic.com/view.php?pic=waq782&s=9#.VkRSM66rTUo)
This viewController is using autolayout constraint and I'm accessing it from somewhere else in my app without any display issues.
Do you have any idea why with PageMenu I'm facing those issues??

        // in CAPSPageMenu.addPageAtIndex()

        newVC.view.frame = CGRectMake(self.view.frame.width * CGFloat(index), menuHeight, self.view.frame.width, self.view.frame.height - menuHeight)
        newVC.view.autoresizingMask = [UIViewAutoresizing.FlexibleWidth, UIViewAutoresizing.FlexibleHeight] // add this line

should fix it

You are a life saver... Thank you so much, been struggling with this for days..
Really really appreciate it thanks !

:+1:

Still encounter this problem in version 2.0.0 using Swift 3. Quick fix by calling reference of view controller's root view, as illustrated by @mitsuyoshi-yamazaki


Update README.md to let the user know that they need to check for the latest version

Update README.md to let the user know that they need to check for the latest version before installing.

@hasheddan seems I don't have merge powers, could you merge this PR?


HDDS-3157. Fixed docker startup command.

What changes were proposed in this pull request?
Fixed some docker startup commands.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-3157
How was this patch tested?
No need.

Thanks @adoroszlai for the review.


 I am using react and redux in my project. i don't know what more information is needed so please tell if there are anything.

Do you have any extensions installed? It's possible that one of them is causing this.
Can you please try running code with code --disable-extensions from the command line to check if this is the case

Hi @mjbvz i have this issue at the office, i will do that on monday and then you will get more information. Thx for possible solution.

So i disabled all the extensions and i still get the pop up. @mjbvz

Try following up with the eslint extension: https://github.com/Microsoft/vscode-eslint/issues
Closing as external


Add logger

This PR adds the Signale via a simple interface, so it can easily be swapped out for something else.
The log level is configurable via usersettings.json. To make these settings readily available throughout the application, I wrote a small config utility class which loads the settings on startup.

Noticed just now that the tests won't run due to the import.meta.url in the config class. Will see if I can find a fix somewhere this week.

Great. I’ll look at setting up some CI stuff on the repo to run tests
automatically on pull requests to make catching this sort of thing easier.
On Sun, Aug 8, 2021 at 11:46 AM Mattijs Bliek @.***>
wrote:

Noticed just now that the tests won't run due to the import.meta.url in
the config class. Will see if I can find a fix somewhere this week.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ryanolf/node-sonos-nfc/pull/6#issuecomment-894838746,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJSBSWQR234NUOQDXREU3TT33GIFANCNFSM5BVEVXRQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Nice! Tests are fixed 👍

I'm getting failed tests for process_sonos_command on this. The error is from line 100 of process_sonos_command.js and is:
TypeError: _logger.default.success is not a function

I just setup CI to run the test suite on the main branch and pull requests against it. I'm going to close and open this pull request to see if I can get it to run.

It looks like that logger.success is supposed to be a logger.info.

@mattijsbliek Tests pass by changing that logger.success to logger.info but the code doesn't run for me. The first issue seems to be that logger.js is looking for a module config but it should be config.js. With that fixed, the "Unsupported log_level" exception is thrown -- I guess it's not reading the config quite right. Is this running for you as-is?
I have a an additional thought. Should we have usersettings.json be part of the repo? If folks have their own settings there, they probably don't want them overwritten. Here's a suggestion: we move usersettings.json to usersettings.dist.json and in your settings class, let's load both and have the values in usersettings.json override those in usersettings.dist.json. If folks want to customize, we ask them to copy usersettings.dist.json to usersettings.json and make changes there (maybe just to the variables they want to change). This allows us to add new settings and defaults going forward without messing with customizations. Thoughts?
If this seems reasonable, in addition to making sure the code runs and tests pass, could you make this change?

Sorry about the test and the runtime, sloppy on my part. Both are fixed now :)
Like the idea of making it easy for folks to add their own user settings file 👍 I'm wondering if it would make more sense to go for an .env file instead? This would allow consumers more flexibility in whether to set them through a .env or other via other means. We could provide a .env.example that people can copy. I would probably avoid reading from that file though, and would just define config defaults in the config class itself.
This could also work with a usersettings.json btw, maybe an example file isn't even needed since the values are in the documentation. If we move the default values into the config file, we can get rid of usersettings.json completely, and just tell folks to create one and define overrides if needed.
No strong opinion about either of these solutions btw, so happy to implement what you think is best.

@mattijsbliek Thanks for the fixes. The code runs and works now so I could pull this in. I think we should resolve the usersettings.json issue first to minimize the hassle in upgrading. Right now, if someone has customized usersettings.json they won't be able to pull this update (or any updates) trivially and will have to do a merge, which some folks may not know how to do. If people happen to keep their old version of usersettings.json instead of doing a merge (e.g. git stash/pop), the program would crash with this update. So let's think this through and make sure we solve the updates issue.
I made a mistake in my initial release by version controlling a customizable file. I think the ideal path forward rectifies this with as little work by any current users as possible. To this end, ideally I'd remove usersettings.json from the repo but allow folks who modified it to to do a simple fast-forward merge, keeping their own custom version. It appears this isn't possible.
So here's what I propose. We remove usersettings.json from the repo and add it to .gitignore. If folks have unmodified usersettings.json (unlikely-- they probably have customized the room at least I'd think) the file will be deleted. If it's modified, they will get a message that they have an unclean working directory on any pull and be advised to stash by git. In case people do that, I'd like to make sure that works, which means we should continue to honor the settings in usersettings.json at least for now. Maybe we "deprecate" it and add a log message encouraging people to change to using the new configuration.
I like the suggestion of having settings like the ones we have so far in a .env file, and I like the idea of providing a sample with comments. We can update the readme to show an example of how to set the room variable (which most people will want to do) via either .env or a command line variable.
As far as where to put defaults, I lean toward having defaults in a JSON separate from the config class. This would make loading usersettings.json pretty trivial. First load the default JSON. Then Object.assign the usersettings.json to override defaults. Then overwrite with relevant values from process.env. I don't feel strongly here, though. Having defaults in config.js could also be OK.
It seems like dotenv is the canonical package for loading .env files. Since we use import instead of require it seems like we need to either do something like this or import dotenv/config directly. I think having the separate file load the module kinda makes sense.
Is this something you can work on and add to this PR?

@mattijsbliek If you give me write access to this branch I may be able to help draft the readme or something.


"Regular expression too big" for long paths

When i try to do any operation with ivy-prescient involving long paths i am getting this error:
Invalid regexp: "Regular expression too big"
Causes can be e.g. trying to enter dired or any file operation in dired involving completion. Here is a backtrace:
Debugger entered--Lisp error: (invalid-regexp "Regular expression too big")
  string-match("[/／]\\(?:t[̧̣̦̭̱̇̈̌]\\|[tţťțᵗṫṭṯṱẗₜⓣｔ𝐭𝑡𝒕𝓉𝓽𝔱𝕥𝖙𝗍𝘁𝘵𝙩𝚝]\\..." "")
  regexp-opt-depth("[/／]\\(?:t[̧̣̦̭̱̇̈̌]\\|[tţťțᵗṫṭṯṱẗₜⓣｔ𝐭𝑡𝒕𝓉𝓽𝔱𝕥𝖙𝗍𝘁𝘵𝙩𝚝]\\...")
  #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_9>("[/／]\\(?:t[̧̣̦̭̱̇̈̌]\\|[tţťțᵗṫṭṯṱẗₜⓣｔ𝐭𝑡𝒕𝓉𝓽𝔱𝕥𝖙𝗍𝘁𝘵𝙩𝚝]\\...")
  ivy-prescient-re-builder("/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a...")
  ivy-set-text("/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a...")
  ivy--reset-state(#s(ivy-state :prompt "Dired (directory): " :collection read-file-name-internal :predicate file-exists-p :require-match nil :initial-input "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :history file-name-history :preselect "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :keymap nil :update-fn nil :sort t :frame #<frame /tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/asdghijklm/foo 0x55f3ffc483b8> :window #<window 3 on foo> :buffer #<buffer foo> :text nil :action (1 ("o" identity "default") ("i" ivy--action-insert "insert") ("w" ivy--action-copy "copy")) :unwind nil :re-builder ivy-prescient-re-builder :matcher nil :dynamic-collection nil :display-transformer-fn ivy-read-file-transformer :directory "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :caller read-file-name-internal :current nil :def "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :ignore nil :multi-action nil :extra-props (:caller ivy-completing-read)))
  #<subr ivy-read>("Dired (directory): " read-file-name-internal :predicate file-exists-p :require-match nil :initial-input "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :preselect "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :def "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :history file-name-history :keymap nil :dynamic-collection nil :extra-props (:caller ivy-completing-read) :caller read-file-name-internal :sort t)
  apply(#<subr ivy-read> ("Dired (directory): " read-file-name-internal :predicate file-exists-p :require-match nil :initial-input "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :preselect "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :def "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :history file-name-history :keymap nil :dynamic-collection nil :extra-props (:caller ivy-completing-read) :caller read-file-name-internal :sort t))
  ivy-read("Dired (directory): " read-file-name-internal :predicate file-exists-p :require-match nil :initial-input "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :preselect "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :def "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." :history file-name-history :keymap nil :dynamic-collection nil :extra-props (:caller ivy-completing-read) :caller read-file-name-internal)
  ivy-completing-read("Dired (directory): " read-file-name-internal file-exists-p nil "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." file-name-history "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." nil)
  read-file-name-default("Dired (directory): " nil "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." nil nil nil)
  read-file-name("Dired (directory): " nil "/tmp/asdghijklm/asdghijklm/asdghijklm/asdghijklm/a..." nil)
  dired-read-dir-and-switches("")
  command-execute(dired)

ivy-prescient-re-builder seems to create a really huge regex out of the 146 character long path.

Errors from long regular expressions might be due to character folding. Does this occur if you set the default value of prescient-use-char-folding to nil?
See possibly related discussions in:

https://github.com/raxod502/prescient.el/issues/71
https://github.com/raxod502/prescient.el/issues/92

Note that the ivy-prescient.el library is currently unmaintained: https://github.com/raxod502/prescient.el/issues/65

Setting prescient-use-char-folding to nil solves it for me. I didn't know what char folding was before reading on it now so probably won't miss it.
Thanks for your help!

Closing as tracked by https://github.com/raxod502/prescient.el/issues/71.


tls: separate out cert validation logic from ContextImpl

The first step towards https://github.com/envoyproxy/envoy/issues/14614. Ref https://github.com/envoyproxy/envoy/issues/14614#issuecomment-758442255
Note that the change is almost moving codes from context_impl to cert_validator/** with a bit of necessary tweaks.
Commit Message: tls: separate out cert validation logic from ContextImpl
Additional Description: In order to create the extension point for certificate validation, separated out the cert validation logics from Tls::ContextImpl, and move them to Tls::DefaultCertValidator which implements Tls::CertValidator interface. Ref: #14614 and #9284
Risk Level: low (almost code moves)
Testing: unittest
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
cc @lizan

Overall this looks good, the coverage is missing from some error config part:
https://storage.googleapis.com/envoy-pr/7004480/coverage/source/extensions/transport_sockets/tls/cert_validator/default_validator.cc.gcov.html
were them covered before?

Overall this looks good, the coverage is missing from some error config part:
https://storage.googleapis.com/envoy-pr/7004480/coverage/source/extensions/transport_sockets/tls/cert_validator/default_validator.cc.gcov.html
were them covered before?

looks like they haven't been covered before as well :https://storage.googleapis.com/envoy-pr/e1ca2ab/coverage/source/extensions/transport_sockets/tls/context_impl.cc.gcov.html
but some of them are formatted into multiple lines in this PR plus the file size becomes smaller so I think that is why the coverage goes down in terms of the number of lines covered :confused:

looks like they haven't been covered before as well :https://storage.googleapis.com/envoy-pr/e1ca2ab/coverage/source/extensions/transport_sockets/tls/context_impl.cc.gcov.html
but some of them are formatted into multiple lines in this PR plus the file size becomes smaller so I think that is why the coverage goes down in terms of the number of lines covered :confused:

/retest

/retest

@lizan added the coverage exception. PTAL

@lizan added the coverage exception. PTAL

@ggreenway for non-tetrands review

@ggreenway for non-tetrands review


Accessing lazy_static from another struct in a new file throws Option::unwrap() on a None

Issue:

I created a lazy-static ref, initialized it, and printed it. It prints well --called in main thread
The same lazy-static ref when called from another struct from another .rc file return None --this struct is called from main thread

is this expected behavior? Basically i want to have a set of singleton structs --as silo services, initialize them and keep them, so that i can call any service as per the usecase.
rockdb.rc
lazy_static! {
    pub static ref KV_STORE: OnceCell<KVStoreSt> = OnceCell::new();
}

#[derive( Debug)]
pub struct KVStoreSt {
    db:  DB,
}

impl KVStoreSt {
    pub async fn init() {
        if KV_STORE.get().is_none() {
            info!("creating rockdb");
            let path = PathBuf::from("/tmp/kvstore");
            std::fs::create_dir_all(path).expect("couldnt create the folder for the kv store");
            let rockdb =  DB::open_default("/tmp/kvstore");
            .expect(&format!("couldnt create rockdb; path:{}", file_path));
            let kv_store = KVStoreSt {
                db:  rockdb,
            };
            KV_STORE.set(kv_store).unwrap();
            info!(">>>kvstore::{:?}", KV_STORE.get().unwrap());
      }
   }

pub async fn inst(file_path: &str) -> &KVStoreSt {
       return KV_STORE.get().unwrap();
}

}

When init() is called the above info! is printed fine.
Below is the main thread.
#[tokio::main]
async fn main() {
    KVStoreSt::init().await;
    info!("<><><> {:?}",kvstore().await);
   ZZZ::init2().await;
}

The last line above throws error
thread 'main' panicked at 'called `Option::unwrap()` on a `None`

sch2.rc

pub struct ZZZ;

impl ZZZ {
    pub async fn init2() {
        println!("kvstore ... {:?}", KVStoreSt::inst("file_path").await);
    }
}

Hi Team,
It has been a week. Any update on this, please? Is my approach wrong? am i overlooking something important?


adjust resolution faster

I suspect that there is some unnecessary work going on in the setting of the resolution of the camera streams....though experimenting with that did happen on a branch that I had to abandon because things just stopped working, so I don't know how likely a good solution is. This may not be a high priority. More nice to have not need to have.

have looked at this and expect the sacrifice in stability is not worth the small bit of time saved. You can switch up the resolution once or twice then things fall apart.


Serial port held open by remote VSCode and unable to reconnect

Type: Bug Report
When connecting to a remote VSCode session the first time everything works fine, and serial monitor is able to open the relevant serial port.
However if you disconnect, the VSCode server continues to run in the background, and the serial port remains open. (This is validated with lsof showing a process (node) having the port open.)
If you then reconnect, the "new instance" can't open the serial port because it's already open...
**** Failed to open the serial port /dev/ttyACM0 ****
If you completely remove the serial port (I can do that because it's USB) then you do get an error:
Serial port /dev/ttyACM0 disconnected. Waiting for reconnection...
.. so there is some linkage. But it feels like the handle to the port is somehow lost in the internals of vscode??
Or is it as simple as the monitoring started/not-started state is being lost?

OS and Version: OSX 14.4 client side, and Ubuntu 22.04 on the server side.
VS Code Version: 1.87.2
Serial Monitor Extension Version: 0.11.0
Target embedded device: Not relevant, but an RP2040 based device
Other extensions you installed (and if the issue persists after disabling them): n/a
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

Have a remote system with a serial port
On a client system, use VSCode remote to connect to the remote system
"Start Monitoring" the serial port using Serial Monitor
Kill the VSCode session
Restart the VSCode session and reconnect
The serial port shows as not being monitored i.e. button is Start Monitoring
Click "Start Monitoring" and you get the error.

@essele. Thanks for all of that information. Just to clarify, the issue is that the serial monitor is staying open on the remote machine, because you didn't stop monitoring on it. But if you disconnect from the remote VS Code, and then re-connect to the remote session, the extension initializes again (I think this is expected), it can't connect to the port because it's still open?

Hi @essele @gcampbell-msft ,
Disconnecting and opening active serial connection session will cause (Any?) Arduino connected device to be restart again. (As it intentional in Arduino hardware).
I think there should be gracefully way to handle this situation which will prevent any DTR and RTS pin toggle.

@essele Can you confirm whether this issue is happening when the "auto-reconnect" button is disabled?


Galera cluster with docker swarm mode(ver. 1.12)

Hello,
I want to deploy galera cluster on 3 physical nodes and i want to use docker's native clustering(new swarm mode)
When i run the service like:
 docker service --create  --replicas 3 ... galera_image
I get 3 containers running that image. That is OK. Problem is that i do not know how to configure the cluster i mean what do i put in the list of nodes?(next line)
wsrep_cluster_address=gcomm://IP1, IP2, IP3.
Because when i create service, containers gets random IP from network's range. I also cant use internal DNS hostname because that resolves to one Virtual IP and i need 3 IPs
I got idea to create three services. Each of them would be galera_cluster node and then i could use hostnames in cluster configuration. But that's awkard.
Is there another solution? Or workaround? Or anything? :)
Thank you for your help.
Docker version:
Client:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:02:53 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   23cf638
 Built:        Thu Aug 18 05:02:53 2016
 OS/Arch:      linux/amd64

Docker info:
Containers: 6
 Running: 3
 Paused: 0
 Stopped: 3
Images: 17
Server Version: 1.12.1
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 44
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null overlay host bridge
Swarm: active
 NodeID: cmgj06kbylciqb7r805gtokuz
 Is Manager: true
 ClusterID: 0rxc8xabgifxogfax00yghtur
 Managers: 1
 Nodes: 3
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: <IP_ADDRESS>
Runtimes: runc
Default Runtime: runc
Security Options:
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.769 GiB
Name: test0.ho.xeb.is
ID: ZNQM:NPWJ:ONE2:O74W:QAY3:GC3G:XK2L:O3XR:VWWD:SG7A:JF4G:DCPZ
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
Insecure Registries:
 <IP_ADDRESS>/8

Not really a good way to run clustered applications as a single replicated service.
I suspect in the future we'll have DNS records for something like <slot num>.<service name> or a way to discover all IP's in the network.
I know we have an issue tracking this, but can't seem to find atm.

you can get all IPs on the network with a dns lookup
nslookup tasks.myservice
see: https://github.com/docker/docker/blob/master/docs/swarm/networking.md#use-swarm-mode-service-discovery

@Spectrik you can follow the path towards the 3 separate services. In this case it will work with replication factor of one and then build the cluster between them. In the end it looks like the replicas solution is more for services that don't share too much state between each other which is not exactly what you are looking for.
To do so you will obviously need also a separate overlay network in which your services has to be added. For more information on why you can check that ticket #26542.
Since you might need the hostname to be static again you are not the only one with such request so you can actually build a package for yourself based on that pull request https://github.com/docker/docker/pull/25437 or simply wait for the feature to become part of the master or a new release.
If you do so you can do the following.
docker network create --driver overlay galera_net_1
Then
for I in `seq 1 3`; do docker service create --network galera_net **--hostname galera$I** --name galera$I --hostname galera$I -p 3306$I:3306/tcp galera; done
Finally from each of the containers no matter where they will go you will be able to do so
nslookup galera$I will resolve you the permanent VIP of the service
telnet galera$I 3306 will connect you to the right galera cluster node and this will be permanent no matter where the swarm will spawn your container.
I think the rest will be easy. Also you can easily scale up and down your galera cluster by adding or removing swarm services.

@niau thank you for this great answer.

@Spectrik always glad to help.

I'm working on a Galera managed as a single service here: https://github.com/colinmollenhour/mariadb-galera-swarm
I don't have it running just yet but the idea is to create a "seed" service and then create the regular service which joins the seed and then remove the seed and replace it with a regular node. Inspired by the Kontena mariadb example.

Let me close this ticket for now, as it looks like it went stale.


add DgsDataLoaderOptionsCustomizer

Pull Request type

[ ] Bugfix
[x] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Other (please describe):

Changes in this PR
Be able to cusomize more about a DataLoader's DataLoaderOptions, #201

Could you also provide an example of what the DgsDataLoaderCustomizer would look like?  Also, the tests don't actually verify that the custom options are set. Is there a way to test for that?

Could you also provide an example of what the DgsDataLoaderCustomizer would look like? Also, the tests don't actually verify that the custom options are set. Is there a way to test for that?

Yeah, actually in our system, we hava an demand to customize the implementation of org.dataloader.CacheMap and org.dataloader.CacheKey and config DataLoaderOptions with them like below:
public class HotKeyCacheMap<U, V> implements CacheMap<U, V> {

    private Map<U, V> cache;

    private HotKeyCache hotKeyCache;

    /**
     * Default constructor
     */
    public HotKeyCacheMap(HotKeyCache hotKeyCache) {
        cache = new HashMap<>();
        this.hotKeyCache = hotKeyCache;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean containsKey(U key) {
        return cache.containsKey(key) || hotKeyCacheContainsKey(key);
    }

    private boolean hotKeyCacheContainsKey(U key){
        ValueModel valueModel = hotKeyCache.getValueModel(key.toString());
        return  valueModel != null && !valueModel.isDefaultValue();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public V get(U key) {
        if(cache.containsKey(key)) {
            return cache.get(key);
        }
        else {
            return (V)hotKeyCache.getValueModel(key.toString()).getValue();
        }
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public CacheMap<U, V> set(U key, V value) {
        cache.put(key, value);
        hotKeyCache.setHotValue(key.toString(), value);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public CacheMap<U, V> delete(U key) {
        cache.remove(key);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public CacheMap<U, V> clear() {
        cache.clear();
        return this;
    }
}

@Configuration
public class HotkeyConfiguration {

    @Bean
    public DgsDataLoaderOptionsCustomizer dgsDataLoaderOptionsCustomizer(HotKeyCacheMapService hotKeyCacheMapService){
        return (dgsDataLoader, dataLoaderOptions) -> {
            dataLoaderOptions.setCacheMap(hotKeyCacheMapService.getCacheMap());
            dataLoaderOptions.setCacheKeyFunction(input -> dgsDataLoader.name() + "-" + input);
        };
    }
}

The HotKeyCache is a second level data cache to store some really "hot" data to protect downstream service from being overwhelmed, and we also need to customize the org.dataloader.CacheKey to distinct the key in different DataLoaders.
About the tests, I will provide a specific implementation to verify that custom options.

The changes are looking good to me.

@paulbakker @berngp - could you also take a look?

Tested these changes and it works nicel.

@lmy654 thanks for working on this.
It looks like the mechanism is designed to have all dataloaders be configured in the same way. Is that correct? I'm wondering if it's common to have different configurations, eg. different caching strategies, for different dataloaders. I guess you could still do that based on the dataloader reference passed in into the customizer.
As an alternative, would something like a @DgsDataLoaderOptionsCustomizer(MyCustomizer.class) make sense?
Just bouncing ideas to get an understanding of what the best approach would be.

@lmy654 thanks for working on this.
It looks like the mechanism is designed to have all dataloaders be configured in the same way. Is that correct? I'm wondering if it's common to have different configurations, eg. different caching strategies, for different dataloaders. I guess you could still do that based on the dataloader reference passed in into the customizer.
As an alternative, would something like a @DgsDataLoaderOptionsCustomizer(MyCustomizer.class) make sense?
Just bouncing ideas to get an understanding of what the best approach would be.

@paulbakker Thanks for review. I understand your concern. Before I thought configurations like cacheMap, cacheKeyFuntion should be common for dataloaders in most scenarios, whereas other configurations like batchingEnabled, maxBatchSize are not common and have been customized by DgsDataLoader's properties. Now I think again, as a framework, we should always give user an option. Although now it could be done based on the dataloader reference passed in into the customizer, it is not good way.
As @DgsDataLoader has already some properties for customizing DataLoaderOptions, I think we could add another property specifing the bean name of DgsDataLoaderOptionsCustomizer and don't need to add another annotation. What do you think about?
I have just tried to refactor this, like below:
@Target({ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface DgsDataLoader {
    String name();
    boolean caching() default true;
    boolean batching() default true;
    int maxBatchSize() default 0;
    String optionsCustomizerName() default "";
}

@DgsDataLoader(name = "exampleLoader", optionsCustomizerName = "exampleDgsDataLoaderOptionsCustomizer")
class ExampleBatchLoader : BatchLoader<String, String> {
    override fun load(keys: MutableList<String>?): CompletionStage<MutableList<String>> {
        return CompletableFuture.supplyAsync { mutableListOf("a", "b", "c") }
    }
}
class DgsDataLoaderProvider(private val applicationContext: ApplicationContext) {

    // omit some code...

    private fun createDataLoader(
        batchLoader: BatchLoader<*, *>,
        dgsDataLoader: DgsDataLoader
    ): DataLoader<out Any, out Any>? {
        val options = DataLoaderOptions.newOptions()
            .setBatchingEnabled(dgsDataLoader.batching)
            .setCachingEnabled(dgsDataLoader.caching)
        if (dgsDataLoader.maxBatchSize > 0) {
            options.setMaxBatchSize(dgsDataLoader.maxBatchSize)
        }
        if (dgsDataLoader.optionsCustomizerName.isNotBlank()) {
            applicationContext.getBean(dgsDataLoader.optionsCustomizerName, DgsDataLoaderOptionsCustomizer::class.java)
                .customize(dgsDataLoader, options)
        }
        val extendedBatchLoader = wrappedDataLoader(batchLoader, dgsDataLoader.name)
        return DataLoader.newDataLoader(extendedBatchLoader, options)
    }

    // omit some code
}

Any progress on this?

Anything stopping this from being merged than the conflicts?
Would love to have this feature to be able to use a CacheMap/ValueCache.

https://github.com/Netflix/dgs-framework/pull/1485
This pull request partially solves the problems.

Would love to have this feature to be able to use a CacheMap/ValueCache.
You definitely can use DataLoaderOptionsProvider to utilize custom cachemap/valuecache

@lmy654 Thank you for your contribution! Can the conflicts be resolved or is this feature not needed anymore?

Thank you! Can you push your work? This branch has conflicts that must be resolved still displayed.

Closing as stale.

Ticket has been open for over a year with the work completed and it gets marked as stale after a month for conflicts because of the above is crazy.
I'll take a look at this, this week.

Apologies @evanmalmud, I'm doing some cleanup of no longer relevant issues and didn't realize there was actually activity a few weeks ago. I got a bit too trigger-happy on the close button.

@evanmalmud I'm not sure why this PR fell off the radar, but I went over it again to get context.
I'm wondering if the following is not sufficient, which I think didn't exist at the time the PR was originally created.
 @Bean
    DgsDataLoaderOptionsProvider dgsDataLoaderOptionsProvider() {
        var defaults = new DefaultDataLoaderOptionsProvider();

        return ((dataLoaderName, annotation) -> switch (dataLoaderName) {
            case "messages" -> new DataLoaderOptions()
                    .setBatchingEnabled(false).setCachingEnabled(false).setMaxBatchSize(1);
            default -> defaults.getOptions(dataLoaderName, annotation);
        });
    }

Just one way to implement this, but basically I just use a switch to do "special" configuration for the "messages" dataloader, while defaulting for all others. Is this missing anything?

Fair enough I haven't used dgs in about 6 months. If something exists today to solve the issue then that's different haha.

Well we really dropped the ball on the PR, so that's no excuse, but I think the available solution now is quite nice. If you agree I'll re-close the PR. If anyone else has reasons why the current solution isn't sufficient we can reconsider.

Seems like a valid solution you have there that solves the problem. I think the only thing this PR would allow you to do it split up the config in code. Not the end of the world but potentially helps code organization. I can also totally see the argument that the config is all in one place now too, but that isn't really the case for anything else in DGS.

I would think this kind of custimization is fairly small (e.g. you typically have a pretty small set of dataloaders), so I don't yet see a need to split that further.
The one thing I didn't like in the PR is how it would need to tie the customizers to the datafetchers (and we didn't have a better solution either), so I'm happy if we can avoid that.
Closing the PR for now. If anyone comes to across this and has specific needs, please start a new discussion.
Thanks for the feedback @evanmalmud!


Make use of Entity class

An idea. The base class Entity doesn't seem to be there to do anything (it's currently empty) so what if you did a couple of things with it:

Move the GenerateComb() functionality into the base class
Assign the Id at construction in Entity
Mark the Id with a private setter and protected constructor

This would get rid of the static GuidComb class and ensure that all entities have an id that follows the same pattern as it  does today but cannot be messed with in child classes (also the child classes don't have to keep remembering to do this).

Nice idea. Feel free to do a PR ;)

Will do, thanks!


feat: queue asyncio.Task(s) consumers supervision or handle broad except

Related to issue #475:
kytos $> controller._tasks
Out[163]:
[<Task pending name='Task-3' coro=<Controller.start_controller.<locals>._run_api_server_thread() running at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:346> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7faf03e4cd90>()]> cb=[Controller.start_controller.<locals>._stop_loop() at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:329]>,
 <Task finished name='Task-4' coro=<Controller.event_handler() done, defined at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:583> exception=AttributeError("'tuple' object has no attribute 'close'")>,
 <Task pending name='Task-5' coro=<Controller.event_handler() running at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:588> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7fb03c079a30>()]>>,
 <Task pending name='Task-6' coro=<Controller.event_handler() running at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:588> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7faf1e7534f0>()]>>,
 <Task finished name='Task-7' coro=<Controller.msg_out_event_handler() done, defined at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:607> exception=DeprecationWarning("Using sendall() method on sockets returned from get_extra_info('socket') will be prohibited in asyncio 3.9. Please report your use case to bugs.python.org.")>,
 <Task pending name='Task-8' coro=<Controller.event_handler() running at /usr/local/lib/python3.9/dist-packages/kytos/core/controller.py:588> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7faedb48e1c0>()]>>]

These tasks are critical for core functionality so, they shouldn't crash and gets finished. Ideally,  there should be a handle broad exc support here while logging the traceback and/or supervision of the task (trying to be as reliable with what's possible in Python land)

Landed on https://github.com/kytos-ng/kytos/pull/485


Add TypeScript declarations

I added TypeScript declarations to my fork some time ago. I talked with @jackzampolin about this and he said that I should add a PR to create a platform to discuss. Whether we merge this or not, I'd like to kick off a discussion about:

Is this PR the best way to enable TypeScript developers to use blockstack.js?
How do we assure that the types are up to date with the exposed methods?
How do we assure that the types are correct / complete?
A more general one: While collecting these types, I had some hard times on understanding methods and their return types (can give examples if needed). The return types of some methods are quite confusing and personally as a developer I would expect them to be a bit more descriptive and consistent (can give examples if needed). This might be totally out of scope for this PR, but though I'd like to raise this issue somewhere: How should we deal with this code? Should we refactor (rewrite?) these?

Todo
This PR isn't fully complete yet. Things still to do:

[ ] Full coverage of exported methods (see ./src/profiles/index.d.ts)
[ ] Add method documentation for hints in code completion
[ ] Add TypeScript tests (see tests/typescriptTests/index.ts)
[ ] Resolve some unclear types

[ ] in ./src/index.ts
[ ] in ./src/auth/index.d.ts
[ ] in ./src/auth/index.d.ts
[ ] in ./src/profiles/index.d.ts
[ ] in ./src/profiles/index.d.ts
[ ] There are still some any types in the declaration files; need to revisit them to check if there are more precise return types

cc @larrysalibra @jackzampolin

Just for reference, I'm probably going to abandon this in favor of my blockstack.ts fork.
For progress on the port see https://github.com/ntzwrk/blockstack.ts/issues/3.
Going to close this, can reopen if needed.


[1.19.2]: Quark compatibility

For #5

Doesn't need Quark dependency to build project
Mixin only gets loaded if Quark is present
Has a config option to not use the logic
Only applies to enchanted books (not ancient tomes)
Checks against the description key of the enchantment

I invited you as a collaborator of this mod, you can accept it as your want.
I can't check this repo oftenly beacuse of the network environment, i'm sorry for that.

You will probably have to merge this yourself if possible
Since the initial two commits are not signed - Tried signing them afterward but that didn't really work out

Merged now.
btw I've just added you as a project member on curseforge.
And this mod also has a release page on mcmod (a chinese mod site), where I'm going to update infos, but it may take times for censorship.😘


Bugfix: Fix _rev handling in UPDATE/REPLACE WITH clauses

UPDATE k WITH d IN coll OPTIONS { ignoreRevs: false }
as well as
REPLACE k WITH d IN coll OPTIONS { ignoreRevs: false }
did erroneously use d._rev instead of k._rev for revision checks.

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/422/


Adds email validation on feedback page

Ticket Link
Ticket
Test Checklist

[X] Exhibits Clear Code Structure:
[X] Project Unit Tests Passed:
[X] Project Jasmine Tests Passed:
[X] Executes Expected Functionality:
[X] Tested For Incorrect/Unexpected Inputs:

Overall, great work! Could you move all the logic you placed in general.controller.js into a new controller called feedback.controller.js? Thanks.


Add schemas for missing direct marketing metrics

As discussed in https://github.com/adobe/xdm/pull/225#issuecomment-379680193, we need proper schemas for:

https://ns.adobe.com/xdm/data/metrics/direct-marketing/opens
https://ns.adobe.com/xdm/data/metrics/direct-marketing/unsubscriptions
https://ns.adobe.com/xdm/data/metrics/direct-marketing/not-sent

You can take sends.schema.json as a starting point.

@saurabhere

Why do we need proper schemas for these metrics? There are several that need this rework and I do not understand how they are included and what value the extra complexity brings considering the extra burden.

Every metric needs a proper definition:

what's the name
what does it measure
what unit is used for measurement

The short descriptions we have in the metrics.schema.json are not sufficient, because a metric might be used in multiple places.

Reopening: Ok, this is a pile of work. I will take it on asap.

We should have definitions for most, and there is the add-metric.sh script which can speed up the process.

@trieloff Are you ok with the short description names in the metrics.schema.json? assuming they align with the dedicated metric definition?

Yes, you can use these as a starting point. I think all of our metrics can benefit from a rigorous and nuanced definition, but that might take us some rounds of the "what exactly do you mean…" game.


gelu example wgpu segfault

The gelu example segfaults with the wgpu backend, but only some of the time (about 20%).
The result always prints, then the segfault occurs:
Executed gelu with runtime "wgpu" => [-0.15865529, 0.0, 0.8413447, 4.9999986]
Segmentation fault (core dumped)

The segfault occurs in the [vkps] Update thread. That's all I know.
I can't view the call stack of this thread and the other threads are in boilerplate rust symbols or some futex/pthread lock symbols.

I can't reproduce it. I think we would need a bit more info to spot the potential bug 😅


[Bug]:  symbol not found in flat namespace '_sqlite3_wal_manager'

Description
I am getting this error:
php -m
Warning: PHP Startup: Unable to load dynamic library '/Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so' (tried: /Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so (dlopen(/Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so, 0x0009): symbol not found in flat namespace '_sqlite3_wal_manager'), /lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so.so (dlopen(/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so.so, 0x0009): tried: '/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so.so' (no such file), '/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so.so' (no such file))) in Unknown on line 0
Minimal Reproduction
I manually extracted the .so file and placed the lib inside in /Users/mac/Library/Application Support/Herd/config/php/83/ and appended php.ini with
extension="/Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so"

Exception or Error
Note: Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:27 PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64

Hmmm.. I need more help in any way.
The .so file you’re trying to use is missing something it
needs—specifically, a function or library from SQLite. This could happen
because:

Your downloaded extension is different PHP version
Your system doesn’t have the required SQLite version or library (Did you
have SQLite in your system?)

Sorry, I have not tested yet in Laravel Herd. It will be cool if you can
help to fix this 😁
On Wed, 25 Dec 2024 at 07:03, Bruno Bernard @.***>
wrote:

Description
I am getting this error:
php -m
Warning: PHP Startup: Unable to load dynamic library
'/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so' (tried:
/Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so
(dlopen(/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so, 0x0009): symbol not found in
flat namespace '_sqlite3_wal_manager'),
/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so.so
(dlopen(/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so.so, 0x0009): tried:
'/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so.so' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so.so' (no such file),
'/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so.so' (no such file))) in
Unknown on line 0
Minimal Reproduction
I manually extracted the .so file and placed the lib inside in /Users/mac/Library/Application
Support/Herd/config/php/83/ and appended php.ini with
extension="/Users/mac/Library/Application Support/Herd/config/php/83/liblibsql_php.so"
Exception or Error
Note: Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:02:27
PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64
—
Reply to this email directly, view it on GitHub
https://github.com/darkterminal/turso-php-installer/issues/5, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHWSPT7Q2B2YKNWMXPOG3SD2HHY6RAVCNFSM6AAAAABUFJR2IOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TQMZWGM2DQMI
.
You are receiving this because you were assigned.Message ID:
@.***>

Yes I will help on that !
On Wed, Dec 25, 2024 at 1:16 PM Imam Ali Mustofa @.***>
wrote:

Hmmm.. I need more help in any way.
The .so file you’re trying to use is missing something it
needs—specifically, a function or library from SQLite. This could happen
because:

Your downloaded extension is different PHP version
Your system doesn’t have the required SQLite version or library (Did you
have SQLite in your system?)

Sorry, I have not tested yet in Laravel Herd. It will be cool if you can
help to fix this 😁
On Wed, 25 Dec 2024 at 07:03, Bruno Bernard @.***>
wrote:

Description
I am getting this error:
php -m
Warning: PHP Startup: Unable to load dynamic library
'/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so' (tried:
/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so
(dlopen(/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so, 0x0009): symbol not found
in
flat namespace '_sqlite3_wal_manager'),

/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so

(dlopen(/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so, 0x0009): tried:

'/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so' (no such file),

'/System/Volumes/Preboot/Cryptexes/OS/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so' (no such file),

'/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so' (no such file))) in
Unknown on line 0
Minimal Reproduction
I manually extracted the .so file and placed the lib inside in
/Users/mac/Library/Application
Support/Herd/config/php/83/ and appended php.ini with
extension="/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so"
Exception or Error
Note: Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10
21:02:27
PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64
—
Reply to this email directly, view it on GitHub
https://github.com/darkterminal/turso-php-installer/issues/5, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AHWSPT7Q2B2YKNWMXPOG3SD2HHY6RAVCNFSM6AAAAABUFJR2IOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TQMZWGM2DQMI>

.
You are receiving this because you were assigned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/darkterminal/turso-php-installer/issues/5#issuecomment-2561743201,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGKSW2TEVA2C4PTDQ2LD6XD2HJZXNAVCNFSM6AAAAABUFJR2IOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRG42DGMRQGE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thank you! Nice to hear from you...
On Wed, 25 Dec 2024 at 17:37, Bruno Bernard @.***>
wrote:

Yes I will help on that !
On Wed, Dec 25, 2024 at 1:16 PM Imam Ali Mustofa @.***>
wrote:

Hmmm.. I need more help in any way.
The .so file you’re trying to use is missing something it
needs—specifically, a function or library from SQLite. This could happen
because:

Your downloaded extension is different PHP version
Your system doesn’t have the required SQLite version or library (Did
you
have SQLite in your system?)

Sorry, I have not tested yet in Laravel Herd. It will be cool if you can
help to fix this 😁
On Wed, 25 Dec 2024 at 07:03, Bruno Bernard @.***>
wrote:

Description
I am getting this error:
php -m
Warning: PHP Startup: Unable to load dynamic library
'/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so' (tried:
/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so
(dlopen(/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so, 0x0009): symbol not found
in
flat namespace '_sqlite3_wal_manager'),

/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so

(dlopen(/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so, 0x0009): tried:

'/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so' (no such file),

'/System/Volumes/Preboot/Cryptexes/OS/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so' (no such file),

'/lib/php/extensions/no-debug-non-zts-20230831//Users/mac/Library/Application

Support/Herd/config/php/83/liblibsql_php.so.so' (no such file))) in
Unknown on line 0
Minimal Reproduction
I manually extracted the .so file and placed the lib inside in
/Users/mac/Library/Application
Support/Herd/config/php/83/ and appended php.ini with
extension="/Users/mac/Library/Application
Support/Herd/config/php/83/liblibsql_php.so"
Exception or Error
Note: Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10
21:02:27
PDT 2024; root:xnu-11215.41.3~2/RELEASE_X86_64 x86_64
—
Reply to this email directly, view it on GitHub
https://github.com/darkterminal/turso-php-installer/issues/5, or
unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AHWSPT7Q2B2YKNWMXPOG3SD2HHY6RAVCNFSM6AAAAABUFJR2IOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TQMZWGM2DQMI>

.
You are receiving this because you were assigned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
<
https://github.com/darkterminal/turso-php-installer/issues/5#issuecomment-2561743201>,

or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AGKSW2TEVA2C4PTDQ2LD6XD2HJZXNAVCNFSM6AAAAABUFJR2IOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRG42DGMRQGE>

.
You are receiving this because you authored the thread.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/darkterminal/turso-php-installer/issues/5#issuecomment-2561828029,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHWSPT463DXUD7P5ARPDBAT2HKDIBAVCNFSM6AAAAABUFJR2IOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRHAZDQMBSHE
.
You are receiving this because you were assigned.Message ID:
@.***>

Managed to installed it manually, on x86 mac, I built it myself.
git clone https://github.com/tursodatabase/turso-client-php.git
cd turso-client-php
brew install<EMAIL_ADDRESS># it will install do nothing yet
export<EMAIL_ADDRESS># this is necessary
cross build --release --target x86_64-apple-darwin
cp path/to/turso-client/release/liblibsql_php.dylib /Users/<user>/Library/Application Support/Herd/config/php/83/libsql.so
xattr -d com.apple.quarantine  "/Users/<user>/Library/Application Support/Herd/config/php/83/libsql.so"
# then added
# extension=/Users/<user>/Library/Application Support/Herd/config/php/83/libsql.so
# to php.ini found in  /Users/<user>/Library/Application Support/Herd/config/php/83/
# then restarted herd
php -m

So i believe the possibility is that the CI is not building the extension correctly. not sure how to debug that.

That's nice!
If you can add additional build option it will awesome. Besides, I don't really understand Mac OS/Darwin, I just use what the runners provide.


[FEATURE REQUEST] Heatmap support for non-QWERTY layouts

(Couldn't find any labels to attach to the issue, sorry for the long title)
Hi there - I'm really digging the web app so far and I think it's a great first release! There was a comment on the Reddit thread that asked for the same feature but I wanted to echo it here in case there were any potential contributors that wanted to work on this. It was mentioned that OS level mapping of keys might enable this feature.
Off the top of my head, I believe macOS and (most) popular Linux distros have out-of-the-box support for Dvorak (and its variations), and standard Colemak, and Windows has standard Dvorak. However, most mods to these layouts (and other unbundled layouts) can be easily installed. Colemak Mod-DH is one that comes to mind.
However, would an alternative solution be to simply provide a dropdown list of requested layouts or enable client side key rearrangement? In Monkeytype, the layouts are contained under "Keymap layout":

I guess with the dropdown option, trying to keep it continually updated could be a pain in the butt but I also feel like the cat's out of the bag with that with the support for programming languages. For example, I can already foresee requests for additional languages in the future.
Thanks again for the release! Looking forward to how this develops in the future.

Hi @charlesphil - Thanks for creating an issue!
Right now I don't have the time to work on this, and I would like to add more important features that will benefit a lot of users first, but please do keep this issue open. When I have the time I will definitely add a client side remapping.
Which layouts would you like to be implemented first?

@MananTank totally understandable! This feature isn't super high priority, but thank you for keeping it in your sights! Off the top of my head, I think the highest priority should be to add ISO layouts that have a very sizable use and are most related to ANSI QWERTY for easy implementation in order to immediately expand accessibility to those living outside of the US.
Those should be:

(ISO) QWERTY
QWERTZ (Central Europe heavy)
AZERTY (French heavy)

After that, I can't seem to find usage rates anywhere, but my gut instinct would be to implement (both ANSI and ISO variants) of the standard versions of:

Dvorak
Colemak
Workman

Following that, probably popular mods of those, but that list is endless and would require some additional time and research to service a very small number of users.

#6 Available right there :) Feel free to enhance it

Colemak Mod-DH is a big deal for me, as it's the layout I use on all the things. I love this app and it would be so nice to get a heat map that works with my keyboard layout.


New Algorithms

Implement

DFS
Prim

DFS - https://github.com/pankrator/Graph-Simulation/pull/9


[QA] Yoga emotes not triggering on second floor of Nirvana Oasis (57, -66)

Explorer Alpha build versions:

v0.14.0

Issue Description:
In the Nirvana Oasis scene at coordinates (57, -66), avatars should automatically play Yoga emotes when reaching the second floor where the yoga mats are located. However, this functionality is not working in the EA.
STR:

Launch the explorer
2. /goto 57, -66 Nirvana Oasis scene.
Move to the second floor where the yoga mats are located.
Observe the avatar's behavior upon reaching the yoga mats.

Expected behavior:
https://github.com/user-attachments/assets/72bc3e79-57a8-4211-b8a6-ccc8012997a7
Current behavior:
https://github.com/user-attachments/assets/cca04dbd-2209-4816-bc9e-e4208356c3fd
Additional Notes:
Windows 11. 12th Gen Intel(R) Core(TM) i7-12650H 2.30 GHz. nvidia geforce RTX

We do not have the scene code but we can verify if the SDK is even trying to play the emote.

This is currently working:


Action: Build x86_64-unknown-linux-gnu target with a lower version glibc?

Yesterday I run vscode remote with rust-analyzer extension on a centos7 server, but the auto-downloaded rust-analyzer binary start failed, because the glibc version of centos7 is lower than ubuntu-20.04 used by github action.
I think it is better to build the binary using cross, which can guarantee the glibc version will not be too newer.

I suggest using rustup to get a  server binary instead.
We could use cross (or even build in a CentOS 7 container), but the actions are already pretty complicated. I don't know how much complexity we want to pack in there.

I suggest using rustup to get a server binary instead.
We could use cross (or even build in a CentOS 7 container), but the actions are already pretty complicated. I don't know how much complexity we want to pack in there.

But now rustup component rust-analyzer still nighlty.

Yes, it's nightly, but it's (approximately, I slacked lately) the same code that's being shipped with the Code extension, only built on different infra. And you can use the nightly RA with the stable toolchain.

Yes, it's nightly, but it's (approximately, I slacked lately) the same code that's being shipped with the Code extension, only built on different infra. It's marked as a preview and only available on nightly because of organizational reasons, not because it's less stable than what you get in Code. And you can use the nightly RA with the stable toolchain.

You are right, it's a good idea to use rustup to install rust-analyzer.

Just because it's not clear: we usually bump RA in rustup after every release, so you only get stable RA versions, but not on Mondays.


arameter ‘mpi_comm_null’ at (1) has not been declared or is a variable, which does not reduce to a constant expression

Dear all,
I had a problem when compiling NGA2,

Hello. Have you resolved this problem? I have encountered the same problem when using GCC/8.3.0. Using GCC higher than 10.2.0 can fix this error, but new errors appeared.


Add unit tests for LLM init function

What is the problem that this fixes or functionality that this introduces? Does it fix any open issues?
This PR was mostly created as an example of how OpenDevin can create a PR for OpenDevin, but it also increases our code coverage by adding a test for a previously untested file (llm.py's init function).

Shouldn't this be part of the "test_config.py" unit test?

Shouldn't this be part of the "test_config.py" unit test?

I'm agnostic to this, but it seems that since this is testing llm.py, then maybe test_llm.py is OK?

Shouldn't this be part of the "test_config.py" unit test?

I'm agnostic to this, but it seems that since this is testing llm.py, then maybe test_llm.py is OK?

Sure, it is a tightly scoped script and fits the name.


Check the length of the screencap before indexing into it

Source: https://community.home-assistant.io/t/native-support-for-android-tv-android-devices/82792/463
Abridged traceback:
File "/usr/local/lib/python3.8/site-packages/androidtv/adb_manager/adb_manager_async.py", line 39, in screencap
  return await asyncio.get_running_loop().run_in_executor(None, self._device.screencap)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
  result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.8/site-packages/ppadb/command/transport/__init__.py", line 48, in screencap
  if result[5] == 0x0d:
IndexError: bytearray index out of range

Hi @JeffLIrion
Thanks for your pull request !


Lab Notes Document

Ongoing lab notes with project updates, major changes, and anything else that's relevant placed onto the google drive folder. Easy place to refer to when writing actual paper.

Document is up on the google drive under our papers/notes


angularSails sending __getcookie to http://localhost:1337 in production

I have deployed a project based on this repository but angularSails is trying to GET http://localhost:1337/__getcookie when it should be trying to GET https://api.productionsite.co.nz/__getcookie.
Is there a way to set this as an option in the app, currently it is hardcoded to localhost in ngsails.io.js.

Erm, my fault. I had run gulp dist before setting the URL in @@backendUrl.

Just want to be sure that you change that in https://github.com/tarlepp/angular-sailsjs-boilerplate-frontend/tree/master/config there and not directly in your index.html.

Yes frontend/config/config.json.


[BUG] Neon OS Release 24.07.24 - homescreen not fully populated

Description
fresh .img to usb/hdd , final boot process only shows wallpaper
Steps to Reproduce
Mark II - sj201_R10, usb/hdd, no DSI - using HDMI
booted , waited , only wallpaper
loaded my configs via ssh/mana - was able to mouse the gui to 'reboot services'
second bootup did the same thing - only wallpaper
Relevant Code
No response
Other Notes
was able to get a full homescreen by mousing the gui to the menu/homescreen
THEN I had a full information homescreen
sent 'troubleshooting package to "support" at jul-24_5-13 EDT

This usually happens because some service wasn't reporting ready yet.. I will look into the logs

ALSO noted - the gui has the green border - like it is waiting for something !!

Appears to be missing the plugins needed for that config:
Could not find the plugin mycroft.plugin.stt.ovos-stt-plugin-serve

I manually did a pip install of:  - - then the 'reboot services'
ovos-ww-plugin-openwakeword
ovos-stt-plugin-server
came back up with the green gui border - but no longer there after a 'hey neon, what time is it"
and I got a full homescreen
'
seems a little bit more than a UX

The border is dismissed when the listener is waiting for a WW again (after processing audio). If there's a failure, it isn't dismissed until the next valid interaction.
Definitely a bug in ovos-shell, though I don't know if we have anyone familiar enough with Qt to fix it.

Marked with "invalid" as that's the closest label to "belongs in other repository".
This is not new behavior and is attributable to a different project, so I'm closing this issue


Fixed #28642 -- Add LRU cache to parse_accept_lang_header

https://code.djangoproject.com/ticket/28642#ticket
parse_accept_lang_header seems to be an ideal candidate for an lru_cache.

Referencing the Python 2 clean up ticket doesn't seem appropriate for this change. A separate ticket should explain why it's an ideal candidate for caching. It seems there's similar caching in this file, although since request.META.get('HTTP_ACCEPT_LANGUAGE', '') is under user control, it seems an attacker could easily churn the cache (perhaps not a problem -- I haven't studied the rationale for existing caching).

Ok, I've made a ticket here: https://code.djangoproject.com/ticket/28642#ticket

What's the reason for the list to tuple changes? The docstring which says "list" and "empty list" may need to be updated.

Mutable values like lists are not safe to use with an lru_cache, as if something where to mutate the list in some way it would be preserved across calls.
I've updated the docstring.


Why not directly using pthread_rwlock_t ?

Why not directly using pthread_rwlock_t ?

They are unupgradable from read to write.


[mgmt] iothub release with preview

https://github.com/Azure/sdk-release-request/issues/4430

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-arm-iothub


Handle d=1 edge case in heavy graph functions

The *heavy_hex_graph and *heavy_square_graph generator functions all
previously had an issue where they would panic when d=1 was passed as
the input to the functions. The d=1 is just a single node, so to avoid a
panic a special case is added to return a graph with a single node which
avoids the panic.
Fixes #452

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

40 of 40 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 98.379%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
10198

Relevant Lines:
10366

💛  - Coveralls

I am not sure that outputting only one node would be equivalent to a heavy code with distance 1.
If it is not equivalent to the heavy code with distance 1, I think that this edge case should be explicit in the documentation of each function.

I am not sure that outputting only one node would be equivalent to a heavy code with distance 1.
If it is not equivalent to the heavy code with distance 1, I think that this edge case should be explicit in the documentation of each function.

That's a good point, I was going based on @georgios-ts's comment in https://github.com/Qiskit/retworkx/issues/452#issuecomment-922491895 but I didn't check what a distance 1 code graph would be. I can double check and update this accordingly. Regardless of what the correct output should be we should be returning it and not raising a PanicException.

That's a good point, I was going based on @georgios-ts's comment in #452 (comment) but I didn't check what a distance 1 code graph would be. I can double check and update this accordingly. Regardless of what the correct output should be we should be returning it and not raising a PanicException.

I agree that the function should not be raising a PanicException. Since in the implementation, we need a factor of (d − 1) qubits for the syndrome measurements, it is not defined for d=1.
I think that adding only a node is reasonable, but it should be explained in the documentation that if you choose d=1 you get only one node.


[WIP] Add visual basic snippets for system.text.json docs

Marking as WIP for two reasons:

The added vb code isn't tested.
I haven't adding vb for all the snippets.

Before continuing working on this, please let me know if you indeed want to add vb code for this article.

@Youssef1313 Thanks for the offer, but as noted in the warning at the top of the page, the documentation is still under construction -- it would be better to wait until it's a little more stable.  I have a PR in review now that makes major changes to this article, and after that I will be making one to convert the inline snippets to snippet references, creating a samples project in the samples repo for that.  When that samples project is created would be a good time to create a VB project and begin adding VB snippets.


Circle name must not end with special char

The invite URL is broken if it ends in a special char. Example: Circle name "FCB hilft!" results in URL "https://staging.lale.help/join/23-fcb-hilft!" which when used in an email omit the last '!' from the URL and fails.

We could also just trim this from the join URL if that works. This way they can name their circle whatever they want.


CPv3 - Adding Access Control (Role based access control) to Smart Contract to control ownership and right

Description
Adding Role Based Access Control (RBAC) to Project :

[ ] Only role of Minter can mint and batch_mint tokenized CC.
[ ] Only role of Owner can set_project_carbon and set_absorption in project
[ ] Only role of Owner can set_xxx in the Minter
[ ] Only role of Burner can burn and batch_burn  tokenized CC.

Additional context
Using OpenZepplin Access Control Components to implement the RBAC in Carbon Protocol v3
[ Medium Difficulty  - Cairo- High Priority]
Acceptance Criteria

[ ] Do relevant tests to ensure the correct behavior

Contribute to Carbonable during ODHack:
Provable environmental infra
Go to the CarbonableOD Telegram: https://t.me/carbonableOD
Present yourself and tell us which issue you want to pick
Explain shortly how you want to tackle the issue
Ask a question if you need some clarity
When you're selected you will be assigned to the issue

Contribute to Carbonable during ODHack:
Provable environmental infra

Go to the CarbonableOD Telegram: https://t.me/carbonableOD
Present yourself and tell us which issue you want to pick
Explain shortly how you want to tackle the issue
Ask a question if you need some clarity
When you're selected you will be assigned to the issue

Hi! My name is Daniel and I recently stumbled upon OnlyDust, I'm a Computer Science student and I want to start contributing to open source projects. Also, I recently finished the Starklings tutorial and have done some quests in NodeGuardians.
The way I would tackle the issue is in the following way:

Read about OpenZepplin Access Control Components
Study the code to understand the different functions and how everything should be defined.
Start implementing each requirement one at a time
Once the implementation of said requirement is done, do the tests to ensure the correct behaviour.
Repeat steps 2 and 3 for each requirement.

Additionally, I would ask questions if a role isn't clear enough for me or if I needed clarification for something.
I love the whole idea of the project and would love to contribute to it. Thanks a lot for the opportunity!


Team speak is Down

Team Speak Is down. thank you

No one is able to connect, is there something we should know?
here is what it tells me when connecting:
<13:57:44> Trying to resolve hostname sgutilities.com
<13:57:48> Trying to connect to server on sgutilities.com
<13:57:54> Failed to connect to server

This is not a forum for the community.  Only for the mod pack.  TeamSpeak will not be on again until later in the evening.

sorry...if we had one, I would use it.....LOL!  Do you need help with one?....I have been the admin for many clan and gamer forums in the past.

Planning on it.  Just haven't had the time to build one on my server.


Option to set maximum backoff time

Hi!
It would be great to have an option to set a maximum time for exponential backoff. So after the exponential backoff would exceed the maximum time, the maximum waiting time is used at every following retry instead. In other words, truncated exponential backoff would be nice.
This allows to retry on an e.g. daily basis when something severe happened and prevents dead job-entries that reside there for years without action. Without truncation it can happen easily that the job waits for far longer than desired (like in the scale of weeks).
Thank you

Sounds reasonable - I'd accept a PR for this.

I currently don't have time for it, maybe at some point later :)


Not possible to launch anymore Stirling-PDF

I have tried Stirling-PDF 0.25.0 with the  Stirling-PDF.exe  in a VM under Windows 11, i have stopped the VM and started it later then now i can't launch  Stirling-PDF.
I have opened the log file and it say that :
2024-05-29 13:45:02,679 ERROR o.s.b.SpringApplication [main] Application run failed java.lang.RuntimeException: Failed to initialize application configuration 	at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:24) 	at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:627) 	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:400) 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) 	at stirling.software.SPDF.SPdfApplication.main(SPdfApplication.java:100) 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) 	at java.base/java.lang.reflect.Method.invoke(Method.java:580) 	at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91) 	at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53) 	at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58) Caused by: java.nio.file.FileSystemNotFoundException: null 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:156) 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:142) 	at java.base/java.nio.file.Path.of(Path.java:209) 	at java.base/java.nio.file.Paths.get(Paths.java:98) 	at stirling.software.SPDF.config.ConfigInitializer.ensureConfigExists(ConfigInitializer.java:49) 	at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:22) 	... 9 common frames omitted 2024-05-29 13:45:58,698 ERROR o.s.b.SpringApplication [main] Application run failed java.lang.RuntimeException: Failed to initialize application configuration 	at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:24) 	at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:627) 	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:400) 	at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) 	at stirling.software.SPDF.SPdfApplication.main(SPdfApplication.java:100) 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) 	at java.base/java.lang.reflect.Method.invoke(Method.java:580) 	at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91) 	at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53) 	at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58) Caused by: java.nio.file.FileSystemNotFoundException: null 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:156) 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:142) 	at java.base/java.nio.file.Path.of(Path.java:209) 	at java.base/java.nio.file.Paths.get(Paths.java:98) 	at stirling.software.SPDF.config.ConfigInitializer.ensureConfigExists(ConfigInitializer.java:49) 	at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:22) 	... 9 common frames omitted

can you delete the config file in config folder

I see one ticket you raised saying .exe doesnt have compress but this says app doesnt open at all... Some confusion here, can you explain

can you delete the config file in config folder

I have done it but each time i start windows i need to delete it, it seems if you are admin i need to delete manually

I see one ticket you raised saying .exe doesnt have compress but this says app doesnt open at all... Some confusion here, can you explain, is it local to VM issue?

I have a windows 11 running in a VM just for testing purpose

Appreciate this extra info

Hi all.
I'm new to Stirling-PDF.
Anyway today I installed its Windows version (Stirling-pdf.exe) v.0.25 with JDK 1.7 in a W11 pro (last updates installed) environment.
This is what happened:

I create a directory:
C:\Program Files\Stirling-PDF
inside which I put Stirling-PDF.exe.
I created a shortcut for the .exe file on the desktop and I set it to run as administrator.
The first time I run it from the shortcut it asks me for the permission to run as admin and I give it.
A terminal opens and, after a while, also my default browser (Firefox, last version) opens at localhost:8080 showing Stirling-PDF initial page.
Please note that I'm using the version without the login.
Then, I close the browser and the terminal session.
At this point, if I start the program again, the terminal opens for just a second, then closes abruptly and no browser session starts.
If I delete the C:\Program Files\Stirling-PDF\configs\settings.yml file, and I retry to start the program then it works again.
And this happens any time!

Herein below I report the log file (info.log):
2024-05-31 12:11:33,322 ERROR o.s.b.SpringApplication [main] Application run failed
java.lang.RuntimeException: Failed to initialize application configuration
at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:24)
at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:627)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:400)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:333)
at stirling.software.SPDF.SPdfApplication.main(SPdfApplication.java:100)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91)
at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53)
at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58)
Caused by: java.nio.file.FileSystemNotFoundException: null
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:156)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:142)
at java.base/java.nio.file.Path.of(Path.java:209)
at java.base/java.nio.file.Paths.get(Paths.java:98)
at stirling.software.SPDF.config.ConfigInitializer.ensureConfigExists(ConfigInitializer.java:49)
at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:22)
... 9 common frames omitted
Regards,
Topoldo/Leopoldo

Oopss...
Sorry for the font of the log! I probably did something wrong with markdown...

One more info. I'm using a local account on a local machine with admin permissions
Topoldo/Leopoldo

Change your desktop shortcut to: %comspec% /c "C:\Program Files\Stirling-PDF\Stirling-PDF.exe"
Let me know if it worked.

I did what you suggested.
First of all, after substituting in the desktop shortcut the command:
"C:\Program Files\Stirling-PDF\Stirling-PDF.exe"
with:
%comspec% /c "C:\Program Files\Stirling-PDF\Stirling-PDF.exe"
BOTH the shortcut and the "original" .exe file changed their Stirling-PDF icon with the Windows "cmd" icon.
Beside, I deleted the
C:\Program Files\Stirling-PDF\configs\settings.yml
file and I tried to start Stirling-PDF as it was from scratch.
In this case it worked (as expected when there is no settings.yml), ie:

it opened a terminal window
it asked for the permission to run as administrator
after my OK, it closed the first (I suppose %comspec% /c) terminal window and opened the "real" (Stirling-PDF) one
after a while Firefox opened on page localhost:8080 and the home page of Stirling-PDF appeared inside it.

The info.log was the following:
2024-06-01 09:13:27,965 WARN s.s.S.SPdfApplication [main] External configuration file 'configs/settings.yml' does not exist. Using default configuration and environment configuration instead.
2024-06-01 09:13:28,359 INFO s.s.S.SPdfApplication [main] Starting SPdfApplication v0.25.0 using Java 21.0.3 with PID 10608 (C:\Program Files\Stirling-PDF\Stirling-PDF.exe started by Leopoldo in C:\Program Files\Stirling-PDF)
2024-06-01 09:13:28,360 INFO s.s.S.SPdfApplication [main] No active profile set, falling back to 1 default profile: "default"
2024-06-01 09:13:29,875 INFO o.s.b.w.e.j.JettyServletWebServerFactory [main] Server initialized with port: 8080
2024-06-01 09:13:29,880 INFO o.e.j.s.Server [main] jetty-12.0.7; built: 2024-02-29T21:19:41.771Z; git: c89aca8fd34083befd79f328a3b8b6ffff04347e; jvm 21.0.3+7-LTS-152
2024-06-01 09:13:29,916 INFO o.e.j.s.h.C.application [main] Initializing Spring embedded WebApplicationContext
2024-06-01 09:13:29,917 INFO o.s.b.w.s.c.ServletWebServerApplicationContext [main] Root WebApplicationContext: initialization completed in 1504 ms
2024-06-01 09:13:30,186 INFO o.e.j.s.DefaultSessionIdManager [main] Session workerName=node0
2024-06-01 09:13:30,204 INFO o.e.j.s.h.ContextHandler [main] Started osbwej.JettyEmbeddedWebAppContext@7f2b39a{application,/,b=[file:/C:/Users/Leopoldo/AppData/Local/Temp/jetty-docbase.8080.17387073418958260011/, URLResource@8043F6F4(jar:nested:///C:/Program%20Files/Stirling-PDF/Stirling-PDF.exe/!BOOT-INF/lib/swagger-ui-5.2.0.jar!/META-INF/resources/)],a=AVAILABLE,h=oeje10s.SessionHandler@760f1081{STARTED}}
2024-06-01 09:13:30,205 INFO o.e.j.e.s.ServletContextHandler [main] Started osbwej.JettyEmbeddedWebAppContext@7f2b39a{application,/,b=[file:/C:/Users/Leopoldo/AppData/Local/Temp/jetty-docbase.8080.17387073418958260011/, URLResource@8043F6F4(jar:nested:///C:/Program%20Files/Stirling-PDF/Stirling-PDF.exe/!BOOT-INF/lib/swagger-ui-5.2.0.jar!/META-INF/resources/)],a=AVAILABLE,h=oeje10s.SessionHandler@760f1081{STARTED}}
2024-06-01 09:13:30,215 INFO o.e.j.s.Server [main] Started oejs.Server@6a2d867d{STARTING}[12.0.7,sto=0] @2865ms
2024-06-01 09:13:30,266 INFO s.s.S.SPdfApplication [main] Running configs ApplicationProperties [security=Security [enableLogin=false, oauth2=null, initialLogin=null, csrfDisabled=true], system=System [defaultLocale=en-US, googlevisibility=false, enableAlphaFunctionality=false, showUpdate=false, showUpdateOnlyAdmin=false], ui=UserInterface [appName=, homeDescription=, appNameNavbar=], endpoints=Endpoints [toRemove=[], groupsToRemove=[CLI]], metrics=Metrics [enabled=true], automaticallyGenerated=AutomaticallyGenerated [key=MASKED], autoPipeline=null]
2024-06-01 09:13:30,742 INFO s.s.S.c.EndpointConfiguration [main] Disabling file-to-pdf
2024-06-01 09:13:30,743 INFO s.s.S.c.EndpointConfiguration [main] Disabling repair
2024-06-01 09:13:30,743 INFO s.s.S.c.EndpointConfiguration [main] Disabling xlsx-to-pdf
2024-06-01 09:13:30,743 INFO s.s.S.c.EndpointConfiguration [main] Disabling ocr-pdf
2024-06-01 09:13:30,743 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-pdfa
2024-06-01 09:13:30,744 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-word
2024-06-01 09:13:30,744 INFO s.s.S.c.EndpointConfiguration [main] Disabling html-to-pdf
2024-06-01 09:13:30,744 INFO s.s.S.c.EndpointConfiguration [main] Disabling book-to-pdf
2024-06-01 09:13:30,744 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-xml
2024-06-01 09:13:30,744 INFO s.s.S.c.EndpointConfiguration [main] Disabling compress-pdf
2024-06-01 09:13:30,745 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-presentation
2024-06-01 09:13:30,745 INFO s.s.S.c.EndpointConfiguration [main] Disabling url-to-pdf
2024-06-01 09:13:30,745 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-book
2024-06-01 09:13:30,745 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-rtf
2024-06-01 09:13:30,746 INFO s.s.S.c.EndpointConfiguration [main] Disabling extract-image-scans
2024-06-01 09:13:30,746 INFO s.s.S.c.EndpointConfiguration [main] Disabling pdf-to-html
2024-06-01 09:13:30,976 INFO o.s.b.a.w.s.WelcomePageHandlerMapping [main] Adding welcome page: ServletContext resource [/index.html]
2024-06-01 09:13:31,741 INFO o.s.b.a.e.w.EndpointLinksResolver [main] Exposing 1 endpoint(s) beneath base path '/actuator'
2024-06-01 09:13:31,827 INFO o.e.j.s.h.C.application [main] Initializing Spring DispatcherServlet 'dispatcherServlet'
2024-06-01 09:13:31,827 INFO o.s.w.s.DispatcherServlet [main] Initializing Servlet 'dispatcherServlet'
2024-06-01 09:13:31,828 INFO o.s.w.s.DispatcherServlet [main] Completed initialization in 1 ms
2024-06-01 09:13:31,866 INFO o.e.j.s.AbstractConnector [main] Started<EMAIL_ADDRESS>(http/1.1)}{<IP_ADDRESS>:8080}
2024-06-01 09:13:31,867 INFO o.s.b.w.e.j.JettyWebServer [main] Jetty started on port 8080 (http/1.1) with context path '/'
2024-06-01 09:13:31,881 INFO s.s.S.SPdfApplication [main] Started SPdfApplication in 3.913 seconds (process running for 4.531)
2024-06-01 09:13:32,899 INFO s.s.S.SPdfApplication [main] Stirling-PDF Started.
2024-06-01 09:13:32,900 INFO s.s.S.SPdfApplication [main] Navigate to http://localhost:8080

I checked for the presence of settings.yml file and - as can be seen from the log - it was created with its defaults.
At this point I closed both the terminal window and the Firefox browser; I waited for a little bit and I tried to restart Stirling-PDF. What happened in this case was:

It opened the first terminal
it asked for the permission to run as administrator
after my OK, the first terminal window closed and started the second terminal window which closed abruptly

In this case the info.log was the following:
2024-06-01 09:15:00,960 ERROR o.s.b.SpringApplication [main] Application run failed
java.lang.RuntimeException: Failed to initialize application configuration
	at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:24)
	at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:627)
	at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:400)
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:333)
	at stirling.software.SPDF.SPdfApplication.main(SPdfApplication.java:100)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91)
	at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53)
	at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58)
Caused by: java.nio.file.FileSystemNotFoundException: null
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:156)
	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:142)
	at java.base/java.nio.file.Path.of(Path.java:209)
	at java.base/java.nio.file.Paths.get(Paths.java:98)
	at stirling.software.SPDF.config.ConfigInitializer.ensureConfigExists(ConfigInitializer.java:49)
	at stirling.software.SPDF.config.ConfigInitializer.initialize(ConfigInitializer.java:22)
	... 9 common frames omitted

So it seems not to work  :-(
Regards,
Topoldo/Leopoldo

But it worked, there are two errors, thanks for testing.

The first can be treated by changing the shortcut, this is due to the permissions of system folders.
The second one can be solved by PR from me.

Thanks for the test.

should be fixed in 0.25.1 if you can try


About org file export operation problem.

export the org file to html file, the following error is happen:
file-name-extension: Wrong type argument: stringp, nil
How to fix it ?

Better to use pandoc, e.g. C-c C-e p 4.
This is probly due to the version of org. It broke up for some reason during the org upgradation. I was able to solve this similar problem couple times but it's totally not worth the time. Although I don't really have the backtrace of the bug. You can do M-x toggle-debug-on-error and see the backtrace.
Just install pandoc and use it.

The error is happen when the following function is executed:
+my/check-minified-file.
Inside this function, "buffer-file-name" is "nil", so (file-name-extension (buffer-file-name)) return error message "file-name-extension: Wrong type argument: stringp, nil".

I add codes to autoload/misc.el file to check if buffer-file-name is nil, the problem seems to be solved.
(defun +my/check-minified-file ()
(and
(not (if (buffer-file-name)
(member (file-name-extension (buffer-file-name))
'("org" "md" "markdown" "txt" "rtf"))))
(cl-loop for i from 1 to (min 30 (count-lines (point-min) (point-max)))
if (> (get-nth-line-length i) 1000)
return t
finally return nil)))

Great catch up! Thanks.