docker-compose.yml version: '3.7' services:   app:     build:       context: .       dockerfile: .docker/Dockerfile     image: 'laravelapp'     command: bash -c 'sleep 10 && php artisan migrate:fresh –seed && php artisan serve –host'     ports:       – 8001:8000     depends_on:       db:         condition: service_started   db:     image: mysql:5.7     restart: always     ports:       – "3301:3306"     environment:       – MYSQL_ROOT_PASSWORD=pass       – MYSQL_DATABASE=laraapp_db       – MYSQL_USER=root       – MYSQL_PASSWORD=pass     volumes:       – ./db:/var/lib/mysql Dockerfile FROM php:7.4.1-apache USER root WORKDIR /var/www/html RUN apt-get update && apt-get install -y \         iputils-ping procps \         vim \         libpng-dev \         zlib1g-dev \         libxml2-dev \         libzip-dev \         libonig-dev \…Continue Reading “How to: Dockerizing Laravel App”

Let’s create a Chrome Plugin, step by step. Create icon.png [link to creating an icon in photoshop [ ]] and icon_128.png (19×19 and 128×128 pages). Create images directory Create the manifest.json file and add this content: //

This post is in progress, please see the slides below. This demo is oriented to people who don’t have much time. If you see any errors / mistakes please leave a comment in this blogpost below (in the comments area):

This is a list of sayings, clever quotes, juicy wisdom nuggets applicable in CS/IT/SE. I invite you to not evaluate these as true or false and Mastery is in part knowledge compression into useful tiny bits that enable you to make decisions fast. Spiral repetition (aka iteration) is both THE key to personal learning and A key to product success. Repetition might not be a form of automation, but it’s a necessary (not sufficient) requirement. Corollary: “automation first” is highly inefficient. Fast decisions == high…Continue Reading “List: words of wisdom for software engineers”

The sudden news that Guido Van Rossum quit being the BDFL came as a shock in the python community. Apparently, the reason was a debate and a lot of negative feelings expressed over: PEP 572 — Assignment Expressions. As Guido writes: “I don’t ever want to have to fight so hard for a PEP and find that so many people despise my decisions.” Read more about it here:  

This page serves as a chronological catalogue used when discussing Machine and Deep Learning news with the Code Academy class in 2020. 2020-12-03 Mac mini teardown: 2020-11-20 Is Macbook M1 good for software engineering: Great for datascience in the comments on this video: Bench: 2020-11-16 Real time person remover: Yet Another EfficientDet Pytorch: Facebook DETR: YOLOv5: 2020-11-09 Some data analysis techniques applies for election fraud investigation: Benford’s law applied to corona: More, in human: 2020-11-03 Interesting traffic monitoring: ML flashcards: (proposed…Continue Reading “Machine Learning News”

Problem This is how the issue looks like, the current clock speed is off, it is never at minimum during boot time. The Fix … or rather two of them: Remove the battery and while the power cord is plugged – turn the computer on. Press F2 immediately to enter BIOS to verify that the issue is fixed immediately. If you don’t want to void the warranty by opening the laptop – completely discharge the battery by turning computer on repeatedly until nothing happens when…Continue Reading “How To: Fix DELL XPS 5520/5510 CPU stuck at 800MHz /0.78GHz issue”

General description – what the hell will we try to do here: When you find yourself chasing memory leaks, or Heisenbugs for a long time chances are you will have a huge debug log. If the disk gets full and you need only the logs at the end when the problem raises it’s ugly head, use the technique described here.   The technique involves: closing the file handle where the process writes the logs currently – int creat(const char *path, mode_t mode); creating a new…Continue Reading “Hot-swapping a log file on a running process w/ GDB w/o stopping it”

UPDATE: Nodejs driver 3.X.X introduces a bunch of incompatible changes compared to 2.X.X versions. For one, you will need to use projections instead of field selectors. Also, you will need to pass results from functions by calling callback() which will pass the variable to the caller. function GetTenantIDFromName(exp, db){   let rxPtt = new RegExp(exp, 'gi');   let tID = db.collection('Tenant')     .find({ "Name": { $regex: rxPtt }},{"_id":1})     .toArray();     return tID; } // possible way to call this let tID = GetTenantIDFromName(tenant, db); tID.then(function(polluterTenantId){   console.log(polluterTenantId); }); function GetTenantIDFromName2(exp,…Continue Reading “On: some gotchas working with mongoDB”

Thiel was born in Germany, went to US as a young boy, is a Stanford philosophy BA, VC who was involved in Y Combinator, Paypal, has invested in Tesla and SpaceX, early investor in FB. He excelled in math as a youth and was a Valedictorian in his high-school graduation. Currently @ almost 3 billion net worth. The ideas outlined below are heavily paraphrased and modified.

Continue Reading "List: Ideas of Peter Thiel"