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 0.0.0.0'     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 [ https://99designs.com/blog/design-tutorials/create-an-app-icon-using-photoshop-in-20-easy-steps/ ]] 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): https://docs.google.com/presentation/d/1hP9ZhH_XSw9Q3n_na1W8hmIaXw9kVCPs3qNQDZKp2Cw/edit?usp=sharing

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: https://hub.packtpub.com/why-guido-van-rossum-quit/  

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: https://www.youtube.com/watch?v=hczcaGX62S0 2020-11-20 Is Macbook M1 good for software engineering: https://www.youtube.com/watch?v=ji9j-JWbgAo Great for datascience in the comments on this video: https://www.youtube.com/watch?v=1uZB55_TZFw Bench: https://machinelearning.apple.com/updates/ml-compute-training-on-mac 2020-11-16 Real time person remover: https://github.com/jasonmayes/Real-Time-Person-Removal Yet Another EfficientDet Pytorch: https://github.com/zylo117/Yet-Another-EfficientDet-Pytorch Facebook DETR: https://github.com/facebookresearch/detr YOLOv5: https://github.com/ultralytics/yolov5 2020-11-09 Some data analysis techniques applies for election fraud investigation: https://theredelephants.com/there-is-undeniable-mathematical-evidence-the-election-is-being-stolen/ Benford’s law applied to corona: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7487520/ More, in human: https://www.statisticshowto.com/benfords-law/# 2020-11-03 Interesting traffic monitoring: https://twitter.com/TruthAbtChina/status/1323642520744636429 ML flashcards: https://machinelearningflashcards.com/ (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"