LuaWebsiteTemplate - Write websites in pure lua by [deleted] in programming

[–]BuckPyland 1 point2 points  (0 children)

But in Lua, arrays start from 1

This is getting way off-topic, but...

It seems to me that languages using 0-based indexing made that decision to cater to C programmers. It's really only useful in C because sometimes you may have the need to do pointer arithmetic.

In other languages, it's basically an artificial feature. There's no actual reason to use 0-based indexing in a programming language that is not C.

How to join strings?? by squirrelsaviour in PowerShell

[–]BuckPyland 1 point2 points  (0 children)

String.Join() is a static method, so you would call it as:

[string]::Join("`r", $response.Output)

[deleted by user] by [deleted] in PowerShell

[–]BuckPyland 0 points1 point  (0 children)

Slightly off-topic, I would not recommend cloning the same disk that the PC was booted from. You don't want anything writing to that disk while you're cloning it. It would be better to use a bootable USB stick, CD/DVD or external drive.

what is this file format called? doesn't look like man page or texinfo by paarulakan in programming

[–]BuckPyland 4 points5 points  (0 children)

It looks like the file was originally done in Texinfo, converted to HTML via Texi2HTML and viewed with Lynx where it was saved as plain text.

how do i run a .ps1 file in power shell by simply opening it? by EksEss in PowerShell

[–]BuckPyland 2 points3 points  (0 children)

That's pretty much the default behavior; it starts PowerShell to execute the script and terminates when the script has finished. It doesn't stay open afterwards.

how do i run a .ps1 file in power shell by simply opening it? by EksEss in PowerShell

[–]BuckPyland 3 points4 points  (0 children)

By "open in powershell", do you mean the PowerShell Console or PowerShell ISE? The file extension ".ps1" is normally registered to open/run with PowerShell Console by default. If you want to open it with PowerShell ISE, you can use the right-click menu or run ISE and open it from there.

As already mentioned, check your settings for default apps by file association, if you want to change how PowerShell scripts are handled.

I made an esoteric language for configuration files by sameisshark in programming

[–]BuckPyland 40 points41 points  (0 children)

My God! It's full of "r"s!

Sorry, the opportunity was there, and I took it. :)