- I created a Perl project "hello"
- To set breakpoint, right-click on the numbers in left gutter and select "Toggle Breakpoint"
- To debug, select "Run" menu, then "Debug" sub menu (or press F11):
use feature qw(say); | |
use strict; | |
use warnings; | |
use File::Spec::Functions qw(catfile catdir splitdir); | |
use File::Basename; | |
use Win32::LongPath; | |
# Define paths | |
my $msys_path = 'C:\Strawberry\perl\site\lib\auto\share\dist\Alien-MSYS\msys\1.0\bin'; | |
my $install_exe = catfile($msys_path, 'install.exe'); |
Open Ubuntu 22.04 WSL terminal in Windows Console
$ sudo apt-get update
$ sudo apt-get upgrade
➜ ~ cpan App::Lingua::BO::Wylie::Transliteration | |
Loading internal logger. Log::Log4perl recommended for better logging | |
CPAN.pm requires configuration, but most of it can be done automatically. | |
If you answer 'no' below, you will enter an interactive dialog for each | |
configuration option instead. | |
Would you like to configure as much as possible automatically? [yes] | |
Use of uninitialized value $what in concatenation (.) or string at /System/Library/Perl/5.30/App/Cpan.pm line 679, <STDIN> line 1. |
-- Kinesis Video Cpp Producer path is C:/test/akvspsc | |
-- dependencies install path is C:/test/akvspsc/open-source | |
-- Begin building dependencies. | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: C:/test/akvspsc/open-source/liblog4cplus | |
Scanning dependencies of target project_log4cplus | |
[ 11%] Creating directories for 'project_log4cplus' | |
[ 22%] Performing download step (git clone) for 'project_log4cplus' | |
Cloning into 'project_log4cplus'... |
my @items; | |
for my $ref (@whole) { | |
my $key = $ref->{name}; | |
push @items, $key if !exists $props{$key}; | |
} |
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
sudo systemctl enable libvirtd.service
https://www.microsoft.com/nb-no/software-download/windows10ISO
diff --git a/OAuth.pm b/OAuth.pm | |
index 5985f5d..d15b367 100644 | |
--- a/OAuth.pm | |
+++ b/OAuth.pm | |
@@ -193,7 +193,7 @@ the object back to the state it was in when constructed. | |
sub resetTokens { | |
my $this = shift; | |
- for my $key qw(request_token request_token_secret access_token access_token_secret) | |
+ for my $key (qw(request_token request_token_secret access_token access_token_secret)) |
Download the tar file:
sudo apt-get install make
cd $HOME
mkdir -p gsl
cd gsl
wget http://gnuftp.uib.no/gsl/gsl-latest.tar.gz
tar zxvf gsl-latest.tar.gz
rm gsl-latest.tar.gz
After having installed google chrome on Ubuntu 18.04, I had an issue when opening chrome for the first time after login. There was an annoying dialog window asking me to enter a password to unlock the login keyring. Probably there was a good security reason for this? Maybe it was because I had set Ubuntu not to ask for a password when I log in? Anyway, this gist explains how I got rid of this dialog.