Page 6 of 127 (2521 total posts)

July 2024

29-07-2024
Exercise: Minesweeper in 100 lines of clean Ruby

Exercise: Minesweeper in 100 lines of clean Ruby

Source: radanskoric.com

Ruby is such an expressive language. You can often do surprisingly much with just a few lines of code. It’s why I find it so satisfying to think about how to accomplish the same thing in fewer lines of Ruby1. If we accept the claim that that number of bugs correlates with number of lines of code this is not just a fun exercise. There’s real business value in accomplishing a feature with less lines of code. ↩

Notes:

Reading well written, idiomatic code is the best way to improve your code. Linked is a nice example.

Tags: ruby idiomatic example coding development
23-07-2024
The biggest-ever global outage: lessons for software engineers

The biggest-ever global outage: lessons for software engineers

Source: newsletter.pragmaticengineer.com

Cybersecurity vendor CrowdStrike shipped a routine rule definition change to all customers, and chaos followed as 8.5M machines crashed, worldwide. There are plenty of learnings for developers.

Notes:

Linked is a great analysis of what might have gone wrong to cause the crowdstrike global outage of windows computers. Also software engineering and operations techniques and principles which could have avoided the terrible event.

Tags: engineering sysadmin windows methods
20-07-2024
Hypernatural

Hypernatural

Source: app.hypernatural.ai

Amazing ai generated videos

Notes:

Linked is a service that generates quite respectable short promotional videos. I tried it on the syllabus to my course and it created something fairly amazing. I mean it’s still obviously ai generated. After your amazement subsides you may still not want to use it but it’s worth checking out. Maybe if you have to generate many short videos. It’s definitely worth checking out.

Tags: ai video llm marketing
20-07-2024
LLM: A CLI utility and Python library for interacting with Large Language Models

LLM: A CLI utility and Python library for interacting with Large Language Models

Source: llm.datasette.io

A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.

Notes:

Follow the link below: I’ve been looking for a nicely packaged way to try llms locally, that is without using a cloud based service and without uploading my pi to another company. This tool is a good solution to the problem.

Tags: llm python
19-07-2024
An Introduction to Auth0 for Ruby on Rails | AppSignal Blog

An Introduction to Auth0 for Ruby on Rails | AppSignal Blog

Source: blog.appsignal.com

This article will cover the setup and use of Auth0 in a Ruby on Rails application.

Notes:

The attached article is a nice introduction to the auth0 service and tooling. Definity worth considering for your app. Authentication is a tricky thing to implement, and that’s before worrying about perfect security. The one thing that I am a little shaky on is relying on a paid service for authentication. What if I lose connectivity to the service or my credit card expires?

Tags: ruby rails authentication auth0 how-to
12-07-2024
Basics - Rye

Basics - Rye

Source: rye.astral.sh

An Experimental Package Management Solution for Python

Notes:

See attached info about RYE. Ok so I complain that python has so many different package managers, virtual environment mechanisms, dependency managers, and so on. Much to my chagrin, I recently read something saying, “whatever you do, don’t use poetry”.

Rye But, but, but… rye looks really nice from the linked description. I’m just a little hesitant to lock myself to rye and find myself in 6 months having to do something totally different.

By the way I happen to be a happy user of rbenv (@ Ruby environment manager) so my default is pyenv, which works the same way exactly. Not sure if they are from the same person, but they are basically identical.

Tags: Python pyenv rye rbenv package-manager cool-tools
01-07-2024
Want to teach your kids to code? Here are three apps that can help. - Stack Overflow

Want to teach your kids to code? Here are three apps that can help. - Stack Overflow

Source: stackoverflow.blog

Want to teach your kids to code? Here are three apps that can help. - Stack Overflow URL: https://stackoverflow.blog/2021/01/12/want-to-teach-your-kids-to-code-here-are-three-apps-that-can-help/ Type: article Domain: stackoverflow.blog Notes: I was looking for an idea for an educational game for a 7 year old. I came across this article (attached) which has some good links.

Notes:

I was looking for an idea for an educational game for a 7 year old. I came across this article (attached) which has some good links.

Tags: game kids programming coding games
01-07-2024
The Writebook Manual

The Writebook Manual

Source: books.37signals.com

A new way to publish a book to the web

Notes:

Attached is an elegant new product (at least its prerelease documentation) to “publish a book” to the web. I believe it will be a single license software product that you get to deploy to a server, including a cloud server. There are of course numerous ways of doing this but 37signals.com’s stuff is always excellent and beautiful.

Tags: book publishing 37signals markdown

June 2024

30-06-2024
PySimpleGUI – An Intro to Laying Out Elements

PySimpleGUI – An Intro to Laying Out Elements

Source: pythonpapers.com

PySimpleGUI is a Python GUI that wraps other Python GUI toolkits (Tkinter, PySide, wxPython). By abstracting away the complexities of the other GUIs into a common API, you can quickly write code that can be rendered using any of those other toolkits just by changing the import at the top of your program.

Notes:

Linked is a package for creating user interfaces with Python. This is just a reminder to myself that it exists. It looks useful.

Tags: gui user-interface python
29-06-2024
Episodes.fm

Episodes.fm

Source: episodes.fm

Help listeners follow your show wherever they get their podcasts.

Notes:

Attached is a really useful tool. Episodes.fm simply searches “all” podcasts, like a google for podcasts. It is really fast!

Tags: podcast search
27-06-2024
Ruby: a great language for shell scripts!

Ruby: a great language for shell scripts!

Source: lucasoshiro.github.io

It’s more than rails!

Notes:

I agree. But you know what I really want? A bash code generator. I want to have a tool that lets me create vanilla bash scripts from a higher level language. I’ve come to the conclusion that vanilla bash is in the end the cross platform lingua franca for all kinds of sysadmin type chores and that there’s an art to writing complicated shell scripts. They work great with prompting, defaults, error handling and recovery. But they are a real pain to write, and that they turn out long and complicated and obscure. To paraphrase Philippe Kahn (there’s a really old callout) bash is a write-only language!

phillipe_kahn

Tags: bash code-generator ruby shell scripting
26-06-2024
My thoughts on Python in Excel

My thoughts on Python in Excel

Source: xlwings.org

An in-depth review of Microsoft's new Python in Excel functionality

Notes:

The attached article severely dings the “python in excel” feature that was announced to great fanfare about a year ago. For me the headline is that Python in Excel is NOT a replacement for VBA. Rather it’s better to think of it as a replacement for the excel formula language.

Tags: Python excel vba microsoft
26-06-2024
Ruff: A Modern Python Linter for Error-Free and Maintainable Code – Real Python

Ruff: A Modern Python Linter for Error-Free and Maintainable Code – Real Python

Source: realpython.com

Ruff is an extremely fast, modern linter with a simple interface, making it straightforward to use. It also aims to be a drop-in replacement for other linting and formatting tools, like Pylint, isort, and Black. It's no surprise it's quickly becoming one of the most popular Python linters.

Notes:

The linked article goes in depth about ruff. Everyone loves ruff. Ruff is written in rust. Everyone loves rust. I think that last part is weird. Rust is a cool and interesting language but it is also pretty low level. Sure, for the user, rust programs tend to be very fast. But for the programmer, it’s more work and harder than… pick your language - python, ruby, java, swift… I mean why aren’t we all asking for programs written in c or assembly even? Anyway, I digress.

Tags: ruff lint formatting rust developer-tools