Hungarian Mother’s day date in Google Calendar

I wanted to have a repeated calendar event for Mother’s day, but it’s custom logic required making an ICS file and importing it into Google Calendar.

The ICS:

BEGIN:VCALENDAR
VERSION:2.0
BEGIN:VEVENT
RRULE:FREQ=YEARLY;BYMONTH=5;BYDAY=1SU
SUMMARY:Mother day in Hungary
DTSTART;VALUE=DATE:20190101
SEQUENCE:0
DESCRIPTION:
END:VEVENT
END:VCALENDAR

view raw
mother-day.ics
hosted with ❤ by GitHub

Inspired by/how to import into Google Cal How to Set up Repeating Event in Google Calendar on Last Day of the Month

Dual monitor Awesome WM with xrandr

I struggled a couple of days until I figured it out that setting up dual monitor via xrandr is needed after X started and before aweome started, so in between.

The solution was adding xrandr exec line into my .xinitrc

# ~/.xinitrc
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

function VGAConnected {
   ! xrandr | grep "^VGA-1" | grep disconnected
}
if VGAConnected; then
    xrandr --output eDP-1-1 --mode 1920x1080 --primary \
           --output VGA-1-1 --mode 1920x1080 --rotate normal --right-of eDP-1-1
fi

exec awesome -c .config/awesome/rc.lua

to get the screen names (eDP-1-1, VGA-1-1, etc.) just run xrandr without args.

The Only Three Ways To Be More Productive

I’ve met plenty of people who have “five years of marketing experience” that can’t market as well as someone who has worked in marketing for six months but read the fundamental books of the field.

At the end of the day or week, make a list of your least valuable tasks and ask: “Is it profitable?” If not, stop doing it. If yes, can you delegate it?

From https://taylorpearson.me/3productivity/

Switched to browser bookmarks from Pocket

I got annoyed by malformed articles in Pocket so I removed the app from tablet, smartphone and browser and switched to use browser (Chrome) bookmarks. Just created a _read bookmark directory to be it up in the order (due sort by title).

read bookmark directory

So now during my morning reading on tablet I use Chrome instead Pocket app.
While using Chrome I provide better analytics data for the article authors. If they share knowledge for free, they get some free statistics from me in return 🙂

News overload

choosing what to read, when, and how is a news literacy skill. In the same way that financial literacy requires knowing how money works and the most effective methods for managing it, news literacy requires familiarity with how journalism is made and with the most effective ways to consume it

From http://blog.rescuetime.com/2017/08/15/information-overload/

How to find flow

​we can all develop our willpower and self-control by focusing on 3 steps.

1. Find your standards. Your standards are the reference points you’ll use to determine whether any action you’re going to take is desireable towards getting into a state of flow—so, whether you’re going to check your email (again) or hit your 1000 word count for the day.

2. Set up means for monitoring. Flow depends on immediate feedback and so does self control. Whatever your task, find ways to constantly monitor your performance and adjust as you continue.

3. Be wary of your energy. Our mental strength waxes and wanes throughout the day (which is why it’s so important to define your own work schedule around your energy). Understanding when you have more energy will help you stay in control and give you a better chance of entering a state of flow.

From https://zapier.com/blog/how-to-find-flow/

Hack into your flow

“The average business person spends less than 5% of their day in flow. If you could increase that to 15%, overall workplace productivity would double,”

“The brain can’t tell the difference between physical consequences and emotional risk,” says Kotler. “Taking social risks is the same as physical risks.”

“In Silicon Valley, the idea is to fail fast or fail forward,” he says. “If you’re not giving employees space to fail, you’re not giving them space to risk. Move fast and break things. Engage in rapid experimentation. High consequences will drive flow and you get further faster.”

From https://www.fastcompany.com/3031052/how-to-hack-into-your-flow-state-and-quintuple-your-productivity

Thanks Arch Linux for the kick to learn Docker

Thanks to Arch Linux and its rolling release strategy it comes with PHP 7.1 as default. After some months of having the following in /etc/pacman.conf

IgnorePkg = php php-apache php-gd php-intl php-mcrypt php-pgsql php-geoip php-cgi php-embed php-enchant php-fpm php-imap php-odbc php-phpdbg php-pspell php-snmp php-sqlite php-tidy php-xsl

I pushed myself to learn more and finally start creating some Dockerfiles for some legacy PHP projects.

ss_2017-09-05-11-10-31
Docker host vs. local host PHP

How many hours do we really need to work?

…​ a study that found managers couldn’t tell which of their employees worked 80 hours per week and who just pretended to work 80 hours. So if you’re overworking in the hopes of impressing your boss and landing a raise or a promotion, you may be wasting your time.

Studies have shown that working more hours increases your productivity only to a point. That point seems to be around 49 hours. So if you’re working 60-, 70-, or 80-hour weeks, it’s very unlikely your output is actually much more than you’d get done in a 50-hour week.

From http://blog.rescuetime.com/2017/05/09/how-many-hours-should-we-work