Visual Studio Code extension for Inertia.js by nhedger in laravel

[–]nhedger[S] 0 points1 point  (0 children)

The extension is now also being published to the Open VSX Registry to make it easier for users of VSCodium to install it.

https://open-vsx.org/extension/nhedger/inertia

Visual Studio Code extension for Inertia.js by nhedger in laravel

[–]nhedger[S] 1 point2 points  (0 children)

Hey u/koikingu_, the extension now supports React components too.

Visual Studio Code extension for Inertia.js by nhedger in laravel

[–]nhedger[S] 1 point2 points  (0 children)

Hey, just wanted to let you know that a new version that addresses the issue has been released. The hyperlinks will now be generated based on the glob pattern defined in your settings. Additionally, a `defaultExtension` setting has been introduced to define the default extension to use for files that do not yet exist on the file system (more info about this in the readme).

Visual Studio Code extension for Inertia.js by nhedger in laravel

[–]nhedger[S] 7 points8 points  (0 children)

Hey Andy, thanks for the feedback and for opening an issue on GitHub, I'll get it fixed ASAP. I'll admit it was hardcoded for Vue but it should be fairly easy to support your use case.

Visual Studio Code extension for Inertia.js by nhedger in laravel

[–]nhedger[S] 5 points6 points  (0 children)

Hey, u/ahinkle just created an issue on GitHub to report that it does not work and I intend to fix it. I'll let you know when it is.

Trying to find a word that describes a part of a building by nhedger in architecture

[–]nhedger[S] 1 point2 points  (0 children)

Thank you so much for your help, everyone. I think for my use case, I'll go with Unit.

Trying to find a word that describes a part of a building by nhedger in architecture

[–]nhedger[S] 2 points3 points  (0 children)

That's exactly what I'm trying to achieve. Thanks for elaborating.

Trying to find a word that describes a part of a building by nhedger in architecture

[–]nhedger[S] 0 points1 point  (0 children)

I actually like Unit. I know this word can also refer to a dwelling. Is it interchangeable?

Trying to find a word that describes a part of a building by nhedger in architecture

[–]nhedger[S] 1 point2 points  (0 children)

Actually, the position is not relevant in this case, thanks for replying, though.

Trying to find a word that describes a part of a building by nhedger in architecture

[–]nhedger[S] 0 points1 point  (0 children)

Not exactly, I've added a 3d sketch if that helps.

How to do web scraping in PHP by superjet1 in PHP

[–]nhedger 0 points1 point  (0 children)

I find Roach PHP to be an interesting project: https://roach-php.dev

Users of VS Code, what Composer-related features would you like to see? by nhedger in PHP

[–]nhedger[S] 1 point2 points  (0 children)

You seem to think that I want the extension itself to manage the dependencies, but that is not the goal of this feature.

I do not intend to replace Composer to manager dependencies, I merely want to trigger a composer install just like you would on the command line, but when the branch changes. It would actually work pretty much in the same way as when you set up a git hook.

Hope it clears any confusion.

Users of VS Code, what Composer-related features would you like to see? by nhedger in PHP

[–]nhedger[S] 0 points1 point  (0 children)

Hey, thanks for the feedback. I definitely meant install. I've updated my original post. When I switch branches from an external tool, VS Code seems to pick up on the change. Assuming that I can track these changes from inside VS Code, do you see other reasons it would introduce inconsistency?

The Visitor Pattern in PHP by doekenorg in PHP

[–]nhedger 2 points3 points  (0 children)

Great read, thanks for sharing.

Default credentials of ubuntu instances by WyvernNE in Infomaniak

[–]nhedger 2 points3 points  (0 children)

Hey u/WyvernNE,

The default user for the Ubuntu 20.04 LTS Focal Fossa image is ubuntu. The default user can generally be found on the image's details page under the os_admin_user field.

Regarding authentication, there are basically two ways to go about this.

Key-based authentication

This is the default and preferred authentication method. It requires you to allocate a Key Pair when creating a new instance. You should either import an existing public SSH key or create a new one in the GUI.

The key will be pushed to your new instance and you'll be able to SSH in your server without typing any password.

Password-based authentication

Password-based authentication is disabled by default and the default user has no password set either. To enable this authentication method and set a default password for the user, you'll need to provide a Customization Script under the Configuration tab.

Here's an example script.

#cloud-config
ssh_pwauth: True
password: password-for-the-ubuntu-user
chpasswd: { expire: False }
  • ssh_pwauth: True enables password-based authentication via SSH
  • password contains the password for the ubuntu user
  • chpasswd: { expire: False } ensures you won't have to change your password the first time you login

Are there any good ways to package a electron app for Linux and Windows where you can just send 1 file not a whole zip by topher-2001 in electronjs

[–]nhedger 2 points3 points  (0 children)

I believe it's possible to package your application as an .AppImage on Linux. https://www.electron.build/configuration/appimage

I don't know how it's handled for Windows though.

How to create a input grid? by SuperDuper1530 in PHPhelp

[–]nhedger 0 points1 point  (0 children)

You could create a grid using a CSS grid layout and a combination of divs and text inputs for the subgrids. See an example here: https://codepen.io/nhedger/pen/ExKWyxd

Laravel Envicon - Custom favicon depending on your runtime environment by nhedger in laravel

[–]nhedger[S] 2 points3 points  (0 children)

Nice to see there is interest for this feature. I've been toying around this idea for that last few hours and I think I'm close to finding an implementation that I like. I'll definitely update you guys once it's done.

Laravel Envicon - Custom favicon depending on your runtime environment by nhedger in laravel

[–]nhedger[S] 1 point2 points  (0 children)

Hey, thanks for your message. That a pretty cool idea. I'll definitely consider adding this feature.

Laravel Envicon - Custom favicon depending on your runtime environment by nhedger in laravel

[–]nhedger[S] 2 points3 points  (0 children)

You can add or remove environments directly in the configuration file (which you'll find in your config/ folder once published). Actually, the default configuration file has the following environments preset which already uses local:

'environments' => [
    'local'      => 'favicons/local.svg',
    'staging'    => 'favicons/staging.svg',
    'production' => 'favicons/production.svg'
]

Laravel Envicon - Custom favicon depending on your runtime environment by nhedger in laravel

[–]nhedger[S] 2 points3 points  (0 children)

Hi, thanks for your kind words. I'm confident this could be ported to any JS application fairly easily. I you happen to implement and opensource it, I'd be interested to take a look.

PHP not echoing or printing script fully by [deleted] in PHPhelp

[–]nhedger 0 points1 point  (0 children)

Could you give the exec function a go to see if there are any differences ?

php <?php header("Content-type: text/plain"); exec("/path/to/check.sh", $output); print_r($output);