Saturday, May 6, 2017

And I created a different kind of God.

I was never a poor obident creature.

And the path to my glorious paradise was not paved

with fellowship 



I should had have had a different God.

One who wouldn't provide the most necessity with a cold shoulder.




A different kind of -God-.

Ahmad shamlu.
Translation from persian by Medya Ghazizadeh

    من بی‌نوا بند‌گکی سربراه
    و راهِ بهشتِ مینوی من
    بُز روِ طوع و خاکساری
    مرا دیگرگونه خدایی می‌بایست
    شایسته‌ی آفرینه‌یی
    که نواله‌ی ناگزیر را
                                کج نمی‌کند.


    و خدایی

Sunday, April 9, 2017

Inconsistent ordering is worse than having no order at all

Look at this picture I took.where I have seen many accidents because of drivers passing the reldight. And I think I found the root cause of it.

You see a very wide street. If you zoom in, on all further intersections you see two traffic lights one on the right side and one above the driver. Except the first intersection which only has one traffic light on the right side.

One might accuse the lazy irresponsible driver for passing the red light and causing an accident. But I think the inconsistency in the traffic lights. And this intersection being an exception is the cause of all of the accidents I have noticed.

If none of the further intersections had a second traffic light above. The driver would not be relying on it.But if the driver can see 4 further traffic lights above his head for one mile but current intersection only has one traffic light on right side. Driver will be more likely be mistaken.

I am telling this story because its true real life story but also true in software development.
I have seen the same mistake in design and code. Whatever it is that you add as a nice to have feature, Make it consistent. Otherwise soon or later it will cause an accident.

Friday, August 26, 2016

Riddle of the day on which operating system a Microsoft mouse works ?

The Riddle of the day:

Imagine you buy a $60 mouse built by Microsoft, on which one of these operating systems you can use all the buttons of the mouse instantly after connecting it to the usb port ?

1- Windows (windows from XP to 8)
2- MacOs x (All versions)
3- Linux (Any version)

The answer:

Here is what happens upon connecting your mouse to the USB port in the above choices:

1- On windows:

You will hear a sound (DllaaDling...) . The USB driver icon starts spinning. a window pops up and asks you to install the driver.

After installing the driver. you connect and disconnect your mouse, you hear the "DllaaDling" notification sound again. and it takes 5 seconds for the windows to recognize your mouse. during these 5 seconds you can not use your mouse and you keep moving the mouse till the pointer starts moving.  Really pathetic experience.

2- On MacOS:

You connect, a window pops up. it tells you to use all your mouse functionalities you better install stuff .after finishing all the drivers, you are done.

Now you realize you can not use the "back" And "forward" buttons in chrome or any other app. (super annoying if you are used not go click on the back button like an idiot) The only thing the Mac OS x (el capitan) let's you to do is click and move the pointer.

You research and you see everyone has the same problem, and there is an app (betterTouch) for some money that is supposed to fix your problem. apparently you have to pay extra to use the back button on a mouse. and that app stops working on next version of mac os !

3- Linux: (Any Linux from 2004 and above)

First of all, there is no stupid DllaDling sound when you insert your USB.
Secondly the mouse starts working even when you haven't finished fully inserting the USB connector. There is absolutely not any second of you moving the mouse to wait for it show up on the screen.
and the beautiful part is all the buttons works for you absolutely for free.

both Windows and Mac Os are piece of crap software. Period. I am so happy never let myself be peer pressured to Mac os x.

Here was the rant of the day. ( oops I meant the riddle of the day)
Long Live Linux.

Friday, July 1, 2016

Python tab nanny

screwed up spaces and tabs in python ? try this:

python -m tabnanny
I knonw. so cute !

plus do yourself a favore, go to your atom editor and enable invisible characters. (spaces and tabs) sometimes python does not like it when you fake space for tab. and gets grumpy sometimes.

(edit/preferences/settings/GUI/ show invisible)

Friday, May 20, 2016

Does Google Photos do cross account find duplicates ?

I had bunch of large videos on my gmail account and I wanted to move it another gmail account which I pay for the storage there. and when I uploaded all these videos it took google a few seconds to upload 100mbs of videos.

I have a big suspection, google skipped uploading the files and simply gave the new account ownership of a file already existed on their servers.

nothing bad about it... though.



computer (47) ubuntu (46) linux (28) tutorial (20) opinion (15) programming (14) software overview (13) terminal (12) troubleshooting (8) life (7) human languages (6) vim (6) bash (5) google (5) python (5) android (4) cars (4) phpBB (4) suggestion (4) tips (4) 12.04 (3) Chef (3) extension and addons (3) firefox (3) java (3) personal (3) russian (3) shell (3) windows (3) 64bit (2) Chicago (2) Vagrant (2) apple (2) backup (2) bug (2) code (2) eclipse (2) google chrome (2) idea (2) monitor (2) php (2) phpBB3 (2) poem (2) shorter prompt (2) ssh (2) virtualbox (2) $_SERVER['REQUEST_URI'] (1) 2.7 (1) ALT+Backspace (1) AVR (1) Alt-Printscreen-K (1) AutoRotate (1) CTRL+ALT+DELETE (1) DRM (1) Debugging (1) Gimp (1) Gimp 2.8 (1) Microcontroler (1) Restart X (1) UML (1) Ventra (1) adsense (1) amazon (1) audio (1) aws (1) background process (1) battery (1) bing (1) blank (1) blogging (1) bmw (1) boot (1) business review (1) car (1) cd (1) chrome (1) comcast (1) computer kubuntu (1) conference (1) cookie (1) cron (1) database (1) date (1) display (1) domain name (1) download manager (1) dual boot (1) dual monitor (1) extensions (1) feature request (1) file (1) folder (1) freeze (1) funny (1) gimp single window (1) gnome 3.10 (1) google docs (1) google plust (1) google+ (1) grep (1) icon (1) install (1) iterator (1) links (1) linu (1) linux links (1) list (1) literature (1) mac os (1) media server (1) microsoft (1) moonlight (1) music (1) mysql (1) name (1) nautilus (1) netflix (1) notepad++ (1) parking (1) permission (1) photo (1) prompt (1) protest (1) ps3mediaserver (1) putty (1) read from file (1) realtek (1) resolution (1) roku (1) samsung (1) scala (1) screenshot (1) security (1) selinux (1) server (1) skype (1) space (1) spam (1) spambot (1) sql (1) suspension (1) system monitor (1) tar (1) task manager (1) template design (1) th23 domain (1) thinking (1) ubuntu 13.10 (1) unity (1) vimrc (1) virtual machine (1) weblogic (1) wget (1) with space (1) xorg (1) xrand (1)