Site uses cookies to provide basic functionality.
Javascript rendering is set to off by default when visiting the site via .onion and .i2p domains. It can be enabled back again in user's settings section. Javascript rendering set to off means, that you can disable javascript in your browser now and the site will remain functional.
There is also IRC server now available via native IRC clients or non javascript web based one.
Fonts can be adjusted in user's settings section as well.
Check FAQ for more.

OK

As I documented recently , I've become quite the fan of Streamlit for taking Machine Learning applications written in Python and making them easily available on the web. Streamlit is a very cool toolkit for taking a Python Machine Learning app and adding a simple UI to it and then hosting it via a built in web server. I haven't seen anything really like in the Ruby world and I'm quite impressed by its elegance and simplicity. Note :....

Build your own React - pomb.us - 6 years ago - eng
We are going to rewrite React from scratch. Step by step. Following the architecture from the real React code...

With the ongoing move towards “infrastructure-as-code” and similar notions, there’s been an ongoing increase in the number and popularity of declarative configuration management tools. This post attempts to lay out my mental model of the conceptual architecture and internal layering of such tools, and some wishes I have for how they might work differently, based on this model. Background: declarative configuration management Declarative con..

With the ongoing move towards “infrastructure-as-code” and similar notions, there’s been an ongoing increase in the number and popularity of declarative configuration management tools. This post attempts to lay out my mental model of the conceptual architecture and internal layering of such tools, and some wishes I have for how they might work differently, based on this model. Background: declarative configuration management Declarative con..

We wrote previously about implementing container security throughout the SDLC, and discussed the trade offs of testing locally, in your CI/CD pipeline, against your registry, and in your Kubernetes cluster. With the new Kubernetes integration in Snyk Container, we’re aiming to make that last part easier to do, and also to bring security information closer to developers so they can more quickly fix vulnerabilities and enable Kubernetes secur..

Snyk is excited to announce that today we are launching Snyk Container, a new product that helps developers easily find and fix vulnerabilities in their container applications.

The Economist took an interesting look at how citizens view politicians when they lie, and their conclusion warrants concern: “You might expect (or hope) that thoughtful people would be more amenable to the force of fact-based evidence than most. Alas, no. According to David Perkins of Harvard University, the brighter people are, the more deftly they can conjure up post-hoc justifications for arguments that back their own side.” Th....

If you are familiar with this blog you know I really appreciate Kubernetes: as a former ops I strongly believe Kubernetes is one way to bundle “the sum of 20y ops good practices”. But there are others solutions one is Nomad. It’s made by Hashicorp, creators of Vault, Consul, Terraform… In general Hashicorp is synonym with quality. Nomad is a task scheduler, a task could be execute a command, run a Docker container or a QEMU vm…

I want to travel more. It’s a well-documented desire of mine. Specifically, I want to plan my own trips, because I’ve historically been pretty terrible at it. I even made a “process” , which I’ll paraphrase here: Wait until a particularly whimsical mood strikes. Bike aimlessly until you find a book store. Enter the book store. Find the travel/travel guide section. Close your eyes. Spin around, preferably 3-5 times. With eyes still cl..

I want to travel more. It’s a well-documented desire of mine. Specifically, I want to plan my own trips, because I’ve historically been pretty terrible at it. I even made a “process” , which I’ll paraphrase here: Wait until a particularly whimsical mood strikes. Bike aimlessly until you find a book store. Enter the book store. Find the travel/travel guide section. Close your eyes. Spin around, preferably 3-5 times. With eyes still cl..

Over my work in different scales of services, I’ve noticed that there is a common pattern in some of these services that makes them easier to approach and cause less headaches to the engineers that handle them. When we deal with millions of users making requests all the time across the world, I’ve noted that there are a few things that help a lot of people to sleep at night comfortably.

Over my work in different scales of services, I’ve noticed that there is a common pattern in some of these services that makes them easier to approach and cause less headaches to the engineers that handle them. When we deal with millions of users making requests all the time across the world, I’ve noted that there are a few things that help a lot of people to sleep at night comfortably.

Serverless is a framework for building and deploying serverless code. Provisioning and scaling is automatically handled by the cloud provider. This tutorial will show how to write a function that sends an email with contact information. This is a popular use case for contact forms on websites.

In Lebanon conspiracy theories are such a common occurrence that the whole world but yourself is to blame for your ailment. I usually dismiss them but the one in this post got on my nerves, and moreover a quite simple experiment could finally shatter it and remove it as an option from all conversations.


In any SQL based database, a like query is generally an SQL injection attack waiting to happen because the underlying sql statement looks like this: SELECT id FROM posts WHERE name LIKE '%foo%' Note : A 30 year old thank you goes out to InfoWorld and Joe Celko who beat into his reader's brains the concept of capitalizing SQL statements for better legibility. Thank you Joe. A seemingly solid StackOverflow post ....

This falls into the category of "I'm old and can't remember this so must, must, must write it down" because I keep losing this html page . If you need to change the text on a submit button for a Rails form implemented with simple_form then use: <%= f.button :submit, 'Submit This Form', class: 'btn btn-primary' %>

Mostly for fun, I run a Facebook Page called Puppy Snuggles - which is the page for my dog blog of the same name. But just because I run it for fun, doesn’t mean I don’t want page likes.






I am a Ruby on Rails guy and I censored hate deploying Ruby stuff. I've been deploying Rails stuff now since 2007 and, quite honestly, it sucked in 2007 and it sucks today. The only way I've ever found Rails deployment to not suck is by using Heroku which is absolutely magical and wonderful – but expensive. Now I've recently become hooked on Heroku and the ease of its Git push based deployment structure. The problem is that I need mor....

Once upon a time, I was speaking with a company founder and they mentioned that they had a VP of Engineering to whom they have given a 1/3 stake in the company. I immediately commented that was too much and then said "I'll write this down in a blog post" – and then I never did. Last night, oddly, I woke up from a deep sleep with the desire to write this down. And that brings us to this post. Here's what I can remember from that conve....

I know this is simple but I am JavaScript / CSS challenged so I'm writing it down because I've had continuous problems with it in the past and I know that this solution works for Bootstrap 4. Let's say that you have a div that you want hidden and only displayed by a button when you click it. Here's the solution: Toggle Feeds

The counsel family of Emacs search commands are great for searching the filesystem. More specifically, counsel-rg , counsel-ag , and counsel-pt , which use the popular ripgrep , silver searcher , and platinum searcher utilities. counsel-rg is my default searcher. It returns results quickly, with live updates as I tweak the search query. Up until recently, my queries typically matched text in files only. This works great, but ev..

UPDATE: This is now available on melpa . Back in 2015, I bound the "<" key to a hydra for quickly inserting org blocks. The idea came from Oleg's post on org-mode block templates in Hydra . The suggested binding settled in my muscle memory without much effort. Fast forward to Febrary 2019. I replaced the hydra with org-insert-structure-template when org-try-structure-completion was removed from org mode. No biggie, as I kept the....





Patrick O’Neill did a nice job explaining why Microsoft, as an organization, does threat intelligence so well. Yes, it has piles of money and legions of smart people to throw at this problem, but Microsoft’s biggest leg up over everyone else is the massive data flow its ubiquity enables. This means its Threat Intelligence Center sees things no one else does, and has the context to identify malicious activity that — even given the same raw....

Did you ever want to create your own Alexa, Siri & co.? Python’s fantastic speech recognition package enables you to quickly create your own custom commands. And the best part: you can decide what kind of speech recognition you want - online or offline! So let’s get started!

Killing Commendatore is a story about pain, the kind of pain that seizes you from the inside and makes it hard to breathe, the…

Last week’s update to the SoundCloud iOS app includes support for Dark Mode. This took several months of work and collaboration between…

With the release of Hooks in React 16.8, it is now possible to store state in a function. We can add react features like useState and useEffect into the function directly without needing to create class. useState The useState hook adds state to the functional components. useState hook allows you to declare one state variable at a time. import React, { useState } from 'react'; function Counter() { //Declare the "counter" state variable cons..

About - michael-lewis.com - 6 years ago - eng
Welcome to my personal site. I use it to keep notes on various topics I find of interest, mainly for my own future reference. It is more functional than ornamental, so extending the “ digital garden ” analogy, it is more of a digital vegetable patch than floral display. For my professional services site, see https://aeliantech.com/ . About me Link to heading I am one of the many many Michael Lewises. Not the one who writ..

Introduction Link to heading This site has been built with Hugo and the hugo-coder theme, and is hosted on GitLab Pages . This post has some notes on these tools. About Hugo Link to heading Hugo is a “static site generator”, which means that it prepares pages in advance of serving them. This is in contrast to a “dynamic site generator”, which generates pages each time they are requested. Serving static pages ..

Last week’s update to the SoundCloud iOS app includes support for Dark Mode. This took several months of work and collaboration between…

Introduction Link to heading This site has been built with Hugo and the hugo-coder theme, and is hosted on GitLab Pages . This post has some notes on these tools. About Hugo Link to heading Hugo is a “static site generator”, which means that it prepares pages in advance of serving them. This is in contrast to a “dynamic site generator”, which generates pages each time they are requested. Serving static pages ..

Braindump - warning] So I’ve been playing with devcontainers for Visual Studio Code, they’re awesome… go play with them. They let you use a Dockerfile to describe all the tooling needed for devs to get started with your project. One of the side effects is that you have a nice Dockerfile which you can then also use it for your build server meaning that you never have an inconsistency between your local setup and your CI server.

The Eagle's Nest AirBnB Cabin on the Ohio River; One of my favorite places… Last night I was on a coding tear, that moment when the solution is just crystal clear. That situation where something you've struggled with for days / weeks / months and then it all comest together. The result of this was a whole bunch of code stuck in a single model and then this morning when I was ready to run it across the entire dataset, I got this crap:....


4 visitors online