Think like a programmer

I don’t get JavaScript. I can’t make components from scratch. My mind goes blank when I stare at a blank JavaScript file. I guess I can’t do it because I don’t know how to think like a programmer.

Break things down to small logical problems.

Do milk and sugar cause acne?

But the dietary influences don’t stop there. It is not just sugar, but the bad fats we eat that may also contribute to acne.

Lots of ways to help fight acne.

Tuning PostgreSQL queries

There are no hard and fast rules when it comes to optimizing sql queries.

Prompt magic

Enhancing the system prompt

What are you worth?

And there will come a day when you would give everything you have left to have what you have right now.

Recovering from burnout

In book, The Truth About Burnout, they outline six major imbalances between employees and their work that often lead to burnout. (…) You don’t need to have a serious mismatch in all six of these areas to be at risk. In fact, a mismatch in even one area can put you on the path to burnout.

Say no!

You. Factory owner. When they tell you tomorrow to make gunpowder instead of baby powder, then there's only one choice: say no!

Portaller

DNS and proxy server. Since it is located in NY you can use geo-locked websites in countries outside U.S.

It makes Pithos work.

Apple's innovation is gone

They forgot about what made them great in the first place and are totally profit driven. Reminds me of when Steve left Apple years ago. Same crap happened. Almost idenical. He is the new Scully.

Totally agree with this.

The more you use Facebook, the worse you feel

We found consistently that both liking others’ content and clicking links significantly predicted a subsequent reduction in self-reported physical health, mental health, and life satisfaction.

I have to look for this kind of behavior on Sublevel.

Debugging mindset

Understanding the psychology of learning strategies leads to effective problem-solving skills.

Benchmarks game

Will your toy benchmark program be faster if you write it in a different programming language? It depends how you write it!

I have to keep an eye on this.

No milk acne diet

Oil gland pores are plugged by the overproduction of the cells that line the pore. Basically a "traffic jam" happens in the pore. There are several sources of hormones that cause this overproduction. The first is ovaries or testicles, the second is the adrenal (stress) glands and the third is dairy products.

Stress and milk don’t mix up pretty well.

How to learn on your own

In short, this roadmap is really about how to learn specific technical topics that you're interested in. I'll highlight various strategies I've used, as well as resources that I've found useful.

Expand your view.

Awesome Python

A curated list of awesome Python frameworks, libraries, software and resources.

Discovered pgcli.

Ability to defer model field by default

Modify get_queryset to use .defer() by default.

Is PostgreSQL good enough?

tldr; you can do jobs, queues, real time change feeds, time series, object store, document store, full text search with PostgreSQL. How to, pros/cons, rough performance and complexity levels are all discussed. Many sources and relevant documentation is linked to.

I need to store avatars from Sublevel in PostgreSQL for consistency but keep serving them with nginx.

Google Analytics setup

Google Analytics is a powerful yet quite complicated tool. And unfortunately, the truth is most people who use it don’t reap its full benefits.

An nginx.conf for 2017

With HTTP/2 in every browser, load balancing with automatic failover, IPV6, a sorry page, separate blog server, HTML5 SSE and A+ HTTPS.

A good way to separate https.conf from domain.conf files.

Simple Wi-Fi Yagi

The signal to my wireless adapter card dropped 6 dB when I removed the parasitics from the router dipole. The Yagi provides a fourfold increase in power, which will double the operating range. When signal strength is the limiting factor, it will quadruple throughput.

A few Django ORM mistakes

See if you can figure out what's wrong with the code snippets below! Ask yourself what the problem is, what effect will it have, and how can you fix it? These examples are for Django, but probably apply to many other ORMs.

I used bug 2 & 3 solutions for Sublevel.

DIY chocolate croissants

Puff pastry costed €0.99 and I made 10 croissants! Kinder chocolate bars were already home since my eldest child (read: husband) loves them!

I need to try this as soon as possible.

Hyperpolyglot

Programming languages and commonly used features in a side-by-side format.

Storyboards segue tutorial

Pass data between view controllers.

Go apps

Writing web applications using only the Go Standard Library.

Top 10 Python libraries of 2016

Who said Python couldn’t be fast? Apart from competing for the best name of a software library ever, Sanic also competes for the fastest Python web framework ever, and appears to be the winner by a clear margin. It is a Flask-like Python 3.5+ web server that is designed for speed.

Bruce Lee’s writings

You will never get any more out of life than you expect.

Toxic relationship habits most people think are normal

But when it comes down to actually handling the nitty-gritty of relationships, we’re given no pointers … or worse, we’re given advice columns in women’s magazines. Yes, it’s trial-and-error from the get-go. And if you’re like most people, it’s been mostly error.

Why startup founders are always unhappy

My theory is that a founder’s happiness is tied to the rate of change of their startup’s success. In other words, your happiness graph is the first derivative of your success graph.

I came a long way with Sublevel but I’m still unhappy.

A performance analysis of Python WSGI servers

In Part 1 of this series, we introduced you to WSGI and the top 6 WSGI web servers. In this post, we’ll show you the result of our performance benchmark analysis of these servers. There are many production-grade WSGI servers, and we were curious as to how well they performed. To this end, we constructed a benchmark to test six of the most popular servers.

The oppressive gospel of minimalism

It has become an ostentatious ritual of consumerist self-sacrifice; people who have it all now seem to prefer having nothing at all.

How minimalism brought me freedom and joy

I have one bag of clothes, one backpack with a computer, iPad, and phone. I have zero other possessions.

Benchmark of Python WSGI servers

So that is what we are going to do, we are going to take the top-3 performing WSGI servers namely Tornado, Gevent and uWSGI (FAPWS3 lack of HTTP/1.1 support made it unsuitable for this benchmark) and give them 5 minutes of ping-pong mayhem.

BreakSafe magnetic USB-C power cable

Use BreakSafe with the USB-C power supply that came with your laptop. BreakSafe is rated up to 60 watts (20 volts @ 3 amps), and has been designed and tested to meet USB-C power standards. Please note that BreakSafe is for charging power only; data and video are not supported.

Three-second brain exercise for finding joy

Tan’s thin slice exercise contains a trigger, a routine, and a reward—the three parts necessary to build a habit. The trigger, he says, is the pleasant moment, the routine is the noticing of it, and the reward is the feeling of joy itself.

Nokia Lumia 735

I can't express to you how nice and solid this phone feels in hand. It's nothing short of spectacular. I don't even use the case I have for it because I don't drop it without the case. I was at first a bit skeptical about build quality because the back cover is removable but the shape and materials look and feel amazing…

This item ships to Romania.

A base filesystem project

I’ve pushed a basic remote macOS filesystem project to GitHub. Its got all the bits and pieces necessary to work but I haven’t audited all parts of it for correctness.

I should build a SFTP file system too.

Using Django querysets effectively

To avoid populating the queryset cache, but to still iterate over all your results, use the iterator() method to fetch the data in chunks, and throw away old rows when they’ve been processed.

Brutalism is back

Brutalism was an attempt to create an architectural ethic, rather than an aesthetic. It had less to do with materials and more to do with honesty: an uncompromising desire to tell it like it is, architecturally speaking.

Hide GRUB menu on Fedora

GRUB_TIMEOUT=0

GRUB_HIDDEN_TIMEOUT=1

41 notes