This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I run Ubuntu 25.04. On it I gave Oracle VirtualBox 7.2.0. | |
| I have a Windows 10 installation that used to work. (I think last time I tried it was when I was still using Ubuntu 24.10 and it was an older version of VirtualBox. (I think it was 7.0) | |
| Now when I try to start the Windows guest I get a popup error message about a critical error and I get the following log. | |
| I also tried to create a new Virtual machine and install Windows in that, but when I try to start that machine I get the same error popup. | |
| Any idea how can I convince VirtualBox to work again? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::fs::File; | |
| use std::io::{BufRead, BufReader}; | |
| use reqwest::Error; | |
| fn get_urls_file() -> String { | |
| let args = std::env::args().collect::<Vec<String>>(); | |
| if args.len() < 2 { | |
| eprintln!("Usage: {} <urls_file>", args[0]); | |
| std::process::exit(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::env; | |
| use std::path::PathBuf; | |
| use tokio::fs::File; | |
| use tokio::io::{AsyncBufReadExt, AsyncSeekExt, BufReader, SeekFrom}; | |
| use tokio::time::{Duration, sleep}; | |
| async fn tail_file(path: PathBuf) { | |
| println!("Tailing file: {}", path.display()); | |
| let mut file = match File::open(&path).await { | |
| Ok(f) => f, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::{env, path::PathBuf, time::Duration}; | |
| use tokio::fs::File; | |
| use tokio::io::{AsyncBufReadExt, AsyncSeekExt, BufReader, SeekFrom}; | |
| use tokio::time::sleep; | |
| #[tokio::main] | |
| async fn main() { | |
| let filename = get_filename(); | |
| tail_file(filename).await; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::path::Path; | |
| use std::fs::ReadDir; | |
| //#[derive(Debug)] | |
| //#[allow(dead_code)] | |
| struct Walk { | |
| rds: Vec<ReadDir>, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use strict; | |
| use warnings; | |
| use feature 'say'; | |
| use Time::HiRes qw(sleep time stat); | |
| { | |
| open(my $fh, '>', 'first.txt'); | |
| close $fh; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this is planned to be a bit more generic than needed here | |
| my $root = $*PROGRAM.absolute.IO.dirname; | |
| if $root.IO.basename eq 'bin' { | |
| $root = $root.IO.dirname; | |
| } | |
| my $files = Bailador::Route::StaticFile.new: directory => $root, path => /.*/; | |
| get '/(.*)' => sub ($url) { | |
| #return $root; | |
| my $file = ($url eq '' ?? 'index' !! $url) ~ '.html'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| names = ["Foo", "Borg", "Earth"] | |
| print(sorted(names)) | |
| print(sorted(names,key=len)) | |
| print(sorted(names, key=lambda x: x[1] )) | |
| a = [ | |
| ["Joe", 23], | |
| ["Mary", 78], | |
| ["Steffan", 100], | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| air:Perl6-Maven gabor$ ack ~~ | |
| app.pl | |
| 70: if $file ~~ /\/$/ { | |
| 95: if $file ~~ /tutorial\/(.*)/ { | |
| lib/Perl6/Maven/Page.pm6 | |
| 29: if $line ~~ m/^\=(\w+) \s+ (.*)/ { | |
| 84: if $row ~~ /^\<code (\s+ lang\=\".*\")? \>\s*$/ { | |
| 87: } elsif $row ~~ /\<\/code\>/ { | |
| 91: $row ~~ s:g/\</</; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use strict; | |
| use warnings; | |
| use Data::Dumper qw(Dumper); | |
| use HTTP::Tiny; | |
| use JSON qw(to_json); | |
| my $ua = HTTP::Tiny->new(); | |
| my $query_json = to_json { | |
| query => { | |
| match_all => {}, |
NewerOlder