Blog

Writing on software engineering, Linux, health, and the things I build and learn along the way.

Writing from the Field

Molybdenum deficiency is very rare, but not in Iran

Published: December 12, 2022 Reading time: 2 min

What is Molybdenum? Molybdenum is a chemical element with the symbol Mo and atomic number 42 which is located in period 5 and group 6. The name is from Neo-Latin molybdaenum, which is based on Ancient Greek Μόλυβδος molybdos, meaning lead, since its ores were confused with lead ores. Why Molybdenum Is an Essential Nutrient You may not have heard of the trace mineral molybdenum, but it is essential to your health. ...

Continue Reading

How To Use Cloudflare WARP On Linux

Published: November 27, 2022 Reading time: 2 min

What is WARP? The Cloudflare WARP client allows individuals and organizations to have a faster, more secure, and more private experience online. The WARP client sits between your device and the Internet, and has several connection modes to better suit different needs. Install Installing Warp Client (aka Cloudflare Zero Trust Client) is so easy, specially if your OS uses AUR. AUR Use your AUR helper to find and install cloudflare-warp-bin, for example I use yay here: ...

Continue Reading

Eating foods with saturated fat does not clog the arteries

Published: November 4, 2022 Reading time: 1 min

I’ve been reading an article from medicalnewstoday.com and I found this part interesting: A team of cardiologists wrote an article stating that eating foods with saturated fat does not clog the arteries, as people once believed. They contend that the “fat free” movement caused higher intakes of carbohydrate foods, including sugars. This might explain why rates of heart disease have increased. Here is the link to the article mentioned above from BMJ Journal: Saturated fat does not clog the arteries: coronary heart disease is a chronic inflammatory condition, the risk of which can be effectively reduced from healthy lifestyle interventions

Continue Reading

All These Years – Static-X

Published: May 16, 2020 Reading time: 1 min

Did you miss Wayne Static? Yup, me too. It’s very challenging to represent someone in a music video, who is no longer alive, but that was something that we really wanted to do and I think it came out great, These are some of Wayne’s last works, so we really wanted to make this video all about him and to continue to celebrate his life and legacy. What better way to do that than through a fun, fictional story about how Wayne was inspired to become the legend that who he became through Static-X. says drummer Ken Jay. ...

Continue Reading

Install and Configure Oh My Zsh and use it in VSCode or Cursor

Published: June 5, 2019 Reading time: 6 min

TL;DR Install zsh, then run the Oh My Zsh installer on Ubuntu, Manjaro, or Arch. Enable the vscode plugin, add Powerlevel10k, and install a Meslo Nerd Font. Periodically git pull custom themes/plugins under $ZSH_CUSTOM — Oh My Zsh’s auto-update does not cover them. Point the VS Code integrated terminal or Cursor IDE terminal at /usr/bin/zsh in settings.json. On Manjaro, also see How to Install Cursor IDE on Manjaro Linux. If you use the simple Bash Terminal in your OS, you may want to give Zsh a try to use a faster and safer terminal with many more features. The simple Bash that exist in the common dist of Linuxes are not changed over years and just received some security fixes, but the community behind Zsh are improving it everyday and bring new useful plugins. ...

Continue Reading

Set a Permanent Custom Resolution on Ubuntu and KDE with xrandr and Xsetup

Published: May 24, 2018 Reading time: 4 min

TL;DR Generate a modeline with cvt, add it with xrandr --newmode / --addmode, then enable it on your output. Session-only changes vanish on reboot and never fix the login screen. On KDE/Kubuntu with SDDM, put the same commands in Xsetup so they run before the greeter. After I switched from GNOME/Unity to KDE, SDDM would not pick up my ultrawide panel. It stuck at Full HD instead of 2560×1080. I had hit the same class of problem earlier on Ubuntu with an older monitor whose native mode never showed up in the display settings. ...

Continue Reading

Google Chrome in Ubuntu keeps detecting network change

Published: July 6, 2017 Reading time: 1 min

Recently I had problem with my Ubuntu, Whenever I tried to open a website my Chromium told me that a Network Change has been detected and after 1-2 reload that sites would load and sometimes failed to load fully. After looking up for that problem, I found out many other people had same problem and it has something to do with “avahi-daemon”. Solution According to the links I found in Ubuntu forums, this problem comes from IPv6 in Ubuntu and disabling that service will fix it, I tried it and it worked: ...

Continue Reading

From Laravel and AngularJS to Spring Boot and Angular: A Full-Stack Migration Field Report

Published: May 22, 2017 Reading time: 10 min

In January I wrote about moving our frontend from AngularJS to Angular. That migration is still running — we are on Angular 4 now, which shipped in March and turned out to be a painless bump from 2.4. The bigger shift landed on the backend: our APIs used to live in Laravel, and we are rewriting them in Java with Spring Boot 1.5.3. This is my first real Java project. I have years of PHP — mostly Laravel — and a few months of TypeScript from the Angular work. I also wrote C# in college, which turns out to matter more than I expected. Java does not feel like learning a foreign language. It feels like meeting someone who speaks a dialect you half understand. ...

Continue Reading

Test Gnome on Ubuntu and Rescue Back

Published: February 9, 2017 Reading time: 2 min

How it started A few days ago I just decided to give my Ubuntu a new look and experience. I thought KDE is not in a good situation and maybe Gnome 3 is a better option than Unity. The easiest option to try Gnome on Ubuntu (Without a clean install of OS) is to install it as a package: 1 sudo apt-get install ubuntu-gnome-desktop During the install process it asks for Display Manager, you have options to choose, gdm and lightdm, since I want to try Gnome, I select gdm: ...

Continue Reading

Six Months with Angular 2 After Years of AngularJS

Published: January 18, 2017 Reading time: 10 min

Angular 2.0 shipped in September. We are on 2.4 now, and the release train is already moving — Angular 4 is being talked about openly. I have been building with it since October, migrating a medium-sized internal dashboard that lived in AngularJS for three years. This is not a tutorial and not a verdict. It is a field report from someone who still dreams in $scope sometimes. The context nobody warns you about If you spent years on AngularJS, you did not “upgrade.” You rewrote. Google offers ngUpgrade to run both frameworks side by side, and we tried it for two weeks before giving up. Our app had too many directives, too much implicit magic, and too many $watches buried in places nobody remembered. We picked a greenfield module, scaffolded it with the CLI, and started porting feature by feature. ...

Continue Reading

oi!

Published: August 18, 2016 Reading time: 2 min

Ace is the eighteenth studio album by German band Scooter released on 5 February 2016 through Sheffield Tunes & Kontor Records, preceded by the first single “Riot” on 4 September 2015, second single “Oi” was released on 5 February 2016, and the third single “Mary Got No Lamb” which was released on 6 May 2016. Oi, oi, oi, fucking oi Oi, oi, oi, fucking oi Oi, oi, oi, fucking oi Oi, oi, oi, fucking oi Oi, oi, oi, fucking oi Oi, oi, oi, fucking oi Everywhere I go all the ladies wanna touch me And when I’m on the road, I’m always spot by paparazzi Did it for the fame but always did it for the joy ‘Cause everywhere I go they scream ‘oi, fucking oi’ All around the world you see my face on TV And all around the world they want to be like H.P. I never played the game, always been the bad boy And everywhere I go they scream ‘oi, fucking oi’ Yeah ...

Continue Reading

Laravel, From the Eyes of an Old-School Developer

Published: February 12, 2016 Reading time: 7 min

I started my programming life in a different world. Back then, Visual Basic 5 and 6 felt like magic. You could drag a button onto a form, double-click it, write a few lines of code, and suddenly you had a working Windows application. You did not start by arguing about architecture. You started by making something useful appear on the screen. Later came AutoIt, classic ASP, small server-side scripts, admin tools, automation helpers, and a lot of “just make it work” programming. Some of it was ugly. Some of it was clever. A lot of it lived longer than expected. ...

Continue Reading

All the world's a Stagefright

Published: October 9, 2015 Reading time: 1 min

Here’s how security vulnerabilities are supposed to be handled. One, a researcher discovers an issue. Two, the people who make the software find a solution. And three, the solution is then made available, ideally by automatic update. That’s what Windows does, and what Apple does. It isn’t always as fast as it should be, but at least once the fix exists it’s available almost instantly. Here’s how it works with Android. ...

Continue Reading

Taylor Swift's Vanity Fair PhotoShoot 2015

Published: August 5, 2015 Reading time: 1 min

PHOTOS: Taylor Swift, Photographed by Mario Testino Released on VF: vanityfair.com “I think I know how to put together a good outfit,” says Swift. “But any day you’re going to admit to being a style icon is a day you need to look in the mirror and really check yourself.” Taylor Swift relaxes at the Beaufort Bar, in the Savoy hotel, on the eve of her concert in London’s Hyde Park. ...

Continue Reading

Taylor Swift Notches Six Months at No. 1 on Billboard Artist 100

Published: June 7, 2015 Reading time: 2 min

from Taylor Swift Universe Taylor Swift makes it an even six months at No. 1 on the Billboard Artist 100 (dated June 6), as she rules the list for a 26th week, bolstered by the coronation of her new single, “Bad Blood,” on the Billboard Hot 100. The Artist 100 is the first weekly survey dedicated to measuring artist activity across Billboard’s most influential charts, including the Billboard Hot 100 songs chart, Top Album Sales and the Social 50. The Artist 100 blends data measuring album and track sales, radio airplay, streaming and social media fan interaction to provide a weekly multi-dimensional ranking of artist popularity. ...

Continue Reading

Search