Posts

fixed sintax error near $grades{$student}

SOLUCIÓN Debido al pragma use strict, declarar bien el ámbito de las variables.  Programming Perl 3rd ed. Chapter 1 - En mi caso, uso perlbrew, de modo que ejecuto el script vía perl ./gradation.pl sin darle atributos de ejecución previamente.  Contenido del archivo grades.txt: Noël 25  Ben 76 Clementine 49 Norm 66 Chris 92 Doug 42 Carol 25 Ben 12 Clementine 0 Norm 66 Código del script gradation.pl: #!/usr/bin/env perl    # because perlbrew # perl ./gradation.pl without using chmod u+x gradation.pl use strict;  use warnings; use autodie; use diagnostics; my $line; my $student; my $grade; #my $grades; my %grades; my $scores; my $total; my @grades; my $average; my $grades_fh; my $filename = 'grades.txt'; # open(GRADES,"grades.txt") or die("Cant open grades.txt:$!\n"); # Use a lexical file handle '$grades_fh' instead of 'GRADES' open($grades_fh, '<', $filename) or die "Can't open $filename: $!\n"; while ($line = <$g...

yet another perl conference

A mí me parece mucho mejor el nombre YAPCNA , pero le van poniendo el que corresponde a la conferencia anual, p. ej.: The Perl and Raku Conference - Greenville, SC 2025. Era, es, una gran conferencia. Su momento estelar se vio cuando vino la pandemia: ¡conferencia en la nube!. Y los bemoles por Perl 6.

Microsoft Edit

Big discovery: Edit still exist. We used it for typing C or Pascal (MS-DOS era). I prefer it to Notepad, which only allows dark mode in WSL, but I'm not sure if Edit generates plain text files. Name ID Version Source Edit Microsoft.Edit 1.2.1 winget

ERROR Could not copy Chrome cookie database

 Just logout from YouTube and close Opera web browser.

cpm movil plus

Activar Teléfono y Ubicación para la app no basta: se sale. Me dijeron que, además, tenía que activar Ubicación en la Configuración del móvil. Funcionó a la primera.

The type or namespace name 'Builder' does not exist in the namespace 'System.CommandLine'

Agregando una version anterior: dotnet add package System.CommandLine --version 2.0.0-beta1.20158.1  Lo agrega al .csproj pero falla el Build. Unas horas más tarde ... Maravillosamente, y luego de repetir el proceso varias veces, en el que, de nuevo, rm bin/ y dotnet run, con downgrade para System.CommandLine, pues --prerelease instala la más reciente, version="2.0.0-beta3.22114.1" en el csproj, llego a obtener solo este error: The type arguments for method 'Handler.SetHandler<T>(Command, Action<T>, params IValueDescriptor[])' cannot be inferred from the usage. Try specifying the type arguments explicitly. Otras horas más tarde ...  ¡No mamar!: ya me salió, tras una breve revisión de los parámetros (churrazo): poner <string,string> aquí addLinkCommand.SetHandler<string,string>(OnHandleAddLinkCommand, nameOption, urlOption); Por esto: var nameOption = new Option<string> var urlOption = new Option<string> Cfr. source code Building CLI...

showing timeline throught javascript

Image
Using W3Schools HTML and CSS timeline design , and  code a JavaScript timeline , get showing timeline ... const events = [  { date: 2017, descrip: "Lore ipsum ..." },  { date: 2018, descrip: "Lore ipsum ..." },  { date: 2019, descrip: "Lore ipsum ..." }, ];  const timeline = document.getElementById("timeline")  /* Loop for enumerable property names of an object */ for (let i=0; i<events.length;i++) {     // Displays elements     const eventContent = `         <div class="container ${i % 2 == 0 ? 'right' : 'left'}">             <div class="content">                 <h2>${events[i].date}</h2>                 ...