What is a 'cost function' in Machine Learning / ML I don't really know, deeply what a cost functino is in Machine Learning. Let's learn it. All quotes are from the excellent "Hands-On Machine Learning with Scikit-Learn, and TensorFlow, 1st Edition" unless otherwise stated. In "Hands-On Machine Learning with Scikit-Learn, and TensorFlow, 1st Edition", a cost function is defined as:
thinking fast and slow Engineering Principles & Values A work in progress. (started ~2022 and sat in draft state for far to long) so I've decided to publish and intend to revisit. Empathy for learning Code is never the challenge. Well-rested comfortable people who feel emotionally safe have solved every problem I’ve put in front of them.
programming FastHTML getting started & comparison with Flask FastHTML is built on-top of the popular python libraries starlette, and uvicorn. FastHTML introduces Python types for common HTML elements integrated with HTMX which means you don't need to write html templates directly, and save a lot of time (in theory). It's like traditional HTML, meets stronger typing, meets niche
devops Windows containers how to...not? Things to know about Windows Containers This started as an initial research into Windows Containers. My initial impression was not fantastic, left wanting. * "Windows requires the host OS version to match the container OS version" (src) * This is in stark constrast compared to Linux containers, where you can trivially, swap
If I want to get a website set up and some SEO done, what sort of figures would I be looking at? "for reals though, if it's just a simple one page website, and to stick some keywords into google" ... "Without more information I'd question why not use Squarespace, Wix, WordPress? They are all adequate. We also sell small business web hosting with support. ... "Oh is it that easy?" ... "Depends what "it"
devops Terraform best practices - what I wish I'd learnt quicker Terraform has a changed over the years (it's HCL syntax changed a lot from the early days breaking backward compatibility) and there's a few Terraform concepts which, for me, are worth holding front-and-centre to reduce pain when working with the tool. If you have existing cloud resources, approach terraform differently
open source A practical, detailed guide to Git branching strategy, issue creation and merging Question: I would like to ask for an explanation about git best practices. Like git branching, naming branches etc Sidenote- why does all this matter & why should I care about issues, git and branching? Have you ever.. * Not had enough information about an issue/bug? * Struggled to find a link
open source DevOps with physical servers using Redfish Python api Using the Redfish ('standard') REST api, you can command and control iDRAC enabled servers just like you would your software. Software continues to eat the world, and is coming for your hardware. Why do we not treat our physical servers as part of our DevOps / operations processes? I think it's
Sysadmin How do I login ssh to an IPv6 server from an IPv4 internet connection? Goals * Not everybody has an IPv6 address (see IPv6 adoption per country): * Given a valid account (ssh), allow a user on an IPv4 connection ssh to an IPv6 server running on an IPv6 host. Let's get tunnelling! * Critical goals: To the user, they should still be able to simply ssh
Docker show container run arguments Sometimes you want to see exactly how a container was started, and what command line arguments were passed to , and subsequently how they were interpreted by the container runtime engine. Emmanuel Frécon provides an excellent example of how to do exactly that: docker inspect \ --format "$(curl -s https://gist.githubusercontent.
Sysadmin Using systemd-nspawn containers with publicly routable ips (IPv6 and IPv4) via bridged mode for high density testing whilst balancing tenant isolation If you're tight for time and want to build this right away see the "Tutorial" heading for how to setup systemd-nspawn with bridge mode and public ip addressing. There's also an accompanying systemd-nspawn repo with a scripted process to deploy everything in this article automatically: GitHub - KarmaComputing/nspawn-systemd-nspawn-containersContribute to
internet Setup an IPv6 connection over IPv4 via Wireguard VPN (How to get IPv6 when you only have an IPv4 internet connection) If you don't have IPv6 at home, sometimes you want to be able to test IPv6 only services- you need to tunnel a IPv6 connection somehow from your IPv4 internet connection to a server which does have IPv6 enabled. You can achieve that by using a combination of: * A cheap
internet IPv6 Only Web Services Becoming Commonplace IPv6 connectivity (native) continues to shoot up: This trend started as a slow "it won't happen" almost joke within the IT community with efforts such as the 2012 "World IPv6 launch days" The economic incentive for IPv6 is here now What we're seeing now is the economic incentive stepping in
open source How to search backwards on tmux How to search backwards/upwards on tmux. To enable tmux scroll back history press: Ctrl + b and then [. That's the Control key, and b , let go, and then press [ (the left square bracket). You'll then be able to scroll backward/forward. But how do you search? Hint: To go back
SaaS Development at Subscribie Lessons Observed Log everything, except when you shouldn't Logging in python has always confused me. It takes a long time to set-up, but is extremely configurable, I ended up coding a small Git repo to deepen my understanding of Python logging: GitHub - KarmaComputing/python-logging-example: python logging example levels stdoutpython logging example
open source Make Playwright faster: experimenting with containers and build caching on Github actions GitHub - KarmaComputing/playwright-testingContribute to KarmaComputing/playwright-testing development by creating an account on GitHub.GitHubKarmaComputing Background: We started using Playwright very early on, and had ended up with a test suite which was taking too long to run, and especially long on our pipelines (sounds familiar?). In the interest of
thinking fast and slow How can a process run with or without a tty, what's the difference? A process can be associated with or run in the context of a TTY, which provides a text-based interface for the process. This means that the process will be able to read input from the TTY and write output to it. A process that is running without a TTY, on
thinking fast and slow Openai Whisper Automated AI Transcribing & Translation is here? (and how badly I speak French) We've all tried to manually transcribe audio at some point- it takes ages! But what if computers could finally understand the Scottish accent? What if not only that, but what if computers could 'listen' to regional Chinese/Korean/Finnish/Urdu audio (with an equally challenging accents) and translate that into
debugging [remote rejected] (refusing to allow an OAuth App to create or update workflow `.github/workflows/...` without `workflow` scope) Github OAuth apps now require the 'workflow' scope when performing operations such as pushing a new workflow to a repo. Github has started/added a new more fine-grained permissions for oauth. Previously only the scope repo was needed to read/write access to a repo given permission- however now github
Install Podman with --mount=type=cache support from source Ubuntu LTS 22.04 Based on official docs: https://podman.io/getting-started/installation#building-from-scratch podman version 4 supports --mount type=cache for each container layer , however need to build podman from source to get that # Install build deps: sudo apt-get install \ btrfs-progs \ git \ golang-go \ go-md2man \ iptables \ libassuan-dev \ libbtrfs-dev \ libc6-dev \ libdevmapper-dev \ libglib2.0-dev \ libgpgme-dev \ libgpg-error-dev
thinking fast and slow Deploy Human Capital not 'apps' There is very little left which we cannot automate: tax, processes, predictions, article writing... most processes humans do, for the most part, can be automated if they are repetitive. We've known this for a long time. We simply ignore it, like the frog in the cool water gradually upping the
Login to websites with your fingerprint - webauthn a passwordless future Crucially this webstandard has representation from Apple (Jiewen Tan), which is critical for adoption across platforms- WebRTC took a long time for Apple to implement which arguably held back webRTC adoption. What is webauthn? Webauthn allows people to use their fingerprint, faceID or Windows 'hello' to authenticate to web applications
open source How to write a secure container So, how do you write a secure container? Rule 1: Know where your data is coming from Common things to avoid: * Pulling images from public registries * Know your dependencies Solution: Maintain your own copy of dependencies, and keep up to date when new patches are released to adress security issues
devops What every DevOps adoption project needs - minimum Context: You've asked an external company to help you work in a more DevOps like fashion. Both stakeholders want to succeed. The external company will always need the following things from you regardless of industry or project. This is the checklist: * A short explanation of all of the code repositories,
Logo minimum deliverables The colours used Deliverable one: Document with the exact colours used E.g. The brand colours used in this logo are: Red: #FF0000 Blue: #00FF00 ...etc Deliverable two: Logo in a vector format, ideally SVG Example: Must include the logo in SVG format: logo.svg Why? Because then can be