GitHub - obra/Youtube2Webpage: I learn much better from text than from videos
I learn much better from text than from videos.
Youtube-to-Webpage is a Perl script to create a webpage from a Youtube video with a transcript generated from the video's closed captions paired with screenshots of the video.
./yt-to-webpage.pl project-name "videoURL"
Generating Content with ChatGPT - Perl Hacks
Back in January, I wrote a blog post about adding JSON-LD to your web pages to make it easier for Google to understand what they were about. The example I used was my ReadABooker site, which encourages people to read more Booker Prize shortlisted novels (and to do so by buying them using my Amazon
Please add info into DOC how to run PSGI under CGI · Issue #566 · plack/Plack · GitHub
Please put this into synopsys of 'plackup' $ SCRIPT_NAME='/' REQUEST_METHOD='GET' SERVER_NAME='www.test' SERVER_PORT='5000' plackup -s CGI t.pl
Also:
https://github.com/plack/Plack/issues/598
https://github.com/plack/Plack/issues/147
https://github.com/plack/Plack/pull/159/files
https://github.com/plack/Plack/pull/217
https://github.com/plack/Plack/pull/235
jwz: Now I have two problems (Mastodon PHP comments)
Lazyweb, why doesn't this regexp match in Perl 5.32.1, 5.34.3 or 5.18.2 but does in PHP and JS: perl -le 'print 0 + ("ABCDE" =~ m/ABCF|BCDE|C(G)/);' Changing nearly any character, including the C before the G, or removing the parens, makes it match.
Mojolicious and Docker - DEV Community
This post plans to illustrate how you can build and dockerize and Mojolicious application and solve... Tagged with docker, perl, devops, mojolicious.
GitHub - enlightened-perl-organisation/Conference_Video: Tracking the Conference Video Initiative
Tracking the Conference Video Initiative. Contribute to enlightened-perl-organisation/Conference_Video development by creating an account on GitHub.
Build a Better README - Jason A. Crome - TPRC 2024
Your project's README stinks. Let's make it better, together!Your project's README on Github is your project's landing page, your one chance to land a solid first impression with a new user. So why are so many READMEs so boring? With minimal effort, you can make a lasting impression that win over users who might otherwise move on to another project instead.
Jason Crome will show you some techniques for making an eye-popping README for your project, using Request Tracker, Dancer, and other popular projects as models for what can be done. By the end of this short talk, you'll be able to take your project's README to the next level and set yourself apart from other open source projects.
Collaborators needed for bring full OpenAI support to Perl
Thus, that module was deprecated in favor of Nelson's OpenAPI::Client::OpenAI module. Throw the 13K+ lines OpenAPI spec for OpenAI at it and it just works. Further, the module is pretty much a single Perl class rather than a bunch of hand-crafted code.
CPAN authors know it can be hard to keep modules up-to-date (mea culpa, mea culpa!) and this module is no exception. I need this module so I offered to collaborate and created a PR to update it to version 2.0.0 of the OpenAI spec. It now passes all the tests (for those wondering, you need an OpenAI key and it costs $0.04 USD to run the test suite).
In trying to build a Whisper pipeline for that, I found that I couldn't. There was a PR for Whisper support for the older module, but for the newer one, I can't figure out how to get it to issue a request with multipart/form-data support. I've noted the issue in the PR.
Perl Advent Calendar 2014 - PSGI, Enabling Modern Web Technology in Perl
In recent years we've seen an explosion of powerful web technologies in Perl not at the least due to the creation of the PSGI specification.
Plack provides the Plack::Middleware class that makes the process of modifying the response easier, and along with Plack::Util helps us deal with the slightly more complex cases where there's a callback for a response from our inner class:
Plack::Test
Another great thing about abstracting away the actual webserver that our PSGI application is talking to is that we don't actually have to have a real webserver at the outer layer at all! If we just want to test our application we can do this in process by just sending input to the anonymous subroutine and examining the return values.
Sereal — a binary data serialization format | by booking.development | Booking.com Engineering | Medium
By: Steffen Müller, Yves Orton, Damian Gryski, Chris Veenboer, Rafaël Garcia-Suarez, Ævar Arnfjörð Bjarmason As with many things in computing, serialization of data structures is a game of…
Moving from CGI to PSGI and Starman
Moving from an old CGI application to Plack/PSGI in CGI mode and to running it in the Starman application server.
Goal - Mission Statement | Gabor
Goal - Mission Statement
Help individual people and teams to improve their skills and processes so they can create better quality software faster while they enjoy their work more. So in the end they will have a better job. All this while I enjoy my work and make enough money to sustain my life.
Introduction - From Perl to Rust
Many introductions to Rust already exist. Most of them are aimed at C++ programmers. That makes sense, but lots of folks are coming to Rust from other languages now.
My current1 day job is mostly Perl. It occurred to me that an introduction to Rust aimed at people who already know Perl could be useful.
Types in JSON | Choroba | The Perl Conference in Glasgow - Day 1 - 2018
Join us for the first day of TPCiG, in the cPanel Theatre.
Schedule: https://act.perlconference.org/tpc-2018-glasgow/schedule?day=2018-08-15
Live Chat: On IRC at irc.perl.org #yapc
How should we deal with numbers vs strings in JSON? Perl doesn't care!
Cpanel::JSON::XS::Type to the rescue! I'll explain its motivation, show usage and possible traps, describe the implementation, and discuss related problems in other modules.
Thomas Klausner. Deploying Perl Apps using Docker, Gitlab & Kubernetes
PerlCon 2019 Rīga — Day 1 — 7 August 2019
Some time ago we had the glorious idea to deploy our code into the cloud. The Google cloud, to be specific. This means we had to learn Kubernetes (to manage and scale our apps), Docker (to pack the apps into containers), gitlab CI (to automate the deployment process) and a whole lot more.
In this talk I'll explain the basics of Kubernetes, Docker and CI; describe how to make your app code cloud ready; and show you our current deployment pipeline.
Be prepared to see Perl, YAML, bash, Makefiles and other horrors required for smooth sailing in the clouds.
Day 3: Zoopla Theatre: Mark Overmeer - Apache in Pure Perl
From its start, Perl comes with most (Unix) core operating system trickery like forks, events and signals. So, you can implement real performing daemons for interesting tasks.
We will get into various features which show how straight-forward it is to implement an Apache-like webserver, with VirtualHosts, proxies, etc.
But we start by discussing many options how to set-up servers: processes, event-loops, and so on... before we reach to HTTP-servers processing requests.
Any::Daemon
- Use Apache as your front end ~30:00
GitHub - learnbyexample/learn_perl_oneliners: Example based guide for text processing with perl from the command line
Example based guide for text processing with perl from the command line - GitHub - learnbyexample/learn_perl_oneliners: Example based guide for text processing with perl from the command line
Day 23: One-Liners for Fun and Profit
Mojo one-liners are just Perl one-liners. You will use -E (or -e) to write the program. You might use -n to loop over input, or -p to do the same while printing $_ after each item, just like normal one-liners.
To get the extra Mojo goodness, add -Mojo. The name itself is a cute hack. Since -M is what loads a module on the command line, the module name is therefore ojo.
[doc] Is there a way to open FH with :utf8 flag? · Issue #19059 · Perl/perl5 · GitHub
Where IO::Handle Description I did not find how to open file with :utf8 flag.
https://perldoc.perl.org/Encode#UTF-8-vs.-utf8-vs.-UTF8
https://www.effectiveperlprogramming.com/2011/08/know-the-difference-between-utf8-and-utf-8/