python: tabs vs space
No Comments
I have searched trough some sources and here is my findings, regarding what symbols are used for indentation: Perl modules mostly (there is some exceptions) written with space indentation Python – spaces Cakephp – with tabs I think I’ll dare to use tabs in general programming (bash / perl / python / php). The main reason [...]
virtualbox: clone vm, alter MAC of NIC
After alteration of NIC MAC address I do the following in the guest OS (Linux): login via RDP delete /etc/udev/rules.d/70-persistent-net.rules restart vm check the same file (it will be re-created by the system). Specifically, you want to know what name new interface had been given (eth0 / eth1 etc) make a copy of config file (in [...]
wifi antenna
I had annoying problem with radio link quality in my house. I am determined to avoid multiple AP (access points) design to cover all rooms in both 2 floors. Main problem, as I understand, is the necessity for radio wave to penetrate walls at sharp angles. I alleviated such a curse by moving out the AP away [...]
Вот такую рекомендацию я вычитал на одном из русских форумов в отношении качества / размера кодированных фильмов: ================================================== для определения качества обычно высчитывают коэффициент bits/(pixel*frame) Если он 0.17 – 0.20 (или более), рип будет хорошим. Если меньше – может быть тоже неплохим, но на динамических сценах будут заметны артефакты, типа квадратиков и прочее из-за потери [...]
In open office, there is annoying thing with printing documents: it always print to the default paper tray. The solution was easy: change ‘printer language type’ from ‘PDF’ to ‘Postscript (level from driver)’ – this setting can be found here: File->Printer settings->Properties->Device tab->Printer language type. Now, I can select what paper tray printer will take [...]
Best Practical: Barcelona RT seminar
There were just above 15 of attendants in small class with some supply of coffee, snacks and water during the classes. As far as I remember, most folks were from Spain (obviously), German and Norway (sorry, if I am totally wrong). I was definitely the most hopeless attendee among them. Seminar had been conducted by Kevin Falcon, smart, [...]
xfce / keyboard layout switch
I am fed up with new fancy unity environment – the responsiveness of the windows simply deteriorated during the session on my Vaio VPCY11S1E laptop. The unity’s ‘external’ design is promising, but the implementation, imho, is not for long hours workers. 2D alternative lacks basic customization tools (you can’t, for example, change the size of the [...]
Ubuntu 11.10 / Vaio Y series / VPCY11S1E
Working 3rd day with the new distro. Finding so far: backlight / screen brightness is not working. Solution remains the same, as with previous Ubuntu distros (here). USB ports are dead on weak up from suspend. Virtualbox running WinXP guest machine drops current session after weak up from suspend. The display GUI manager works OK except one [...]
1st day of playing with Synology DS211j. Wow. I did’n realize that NAS could be so hackable. I am pretty sure that all frustration are simply awaiting me in the future, but at the same time, most of my new purchase defeat my expectations at much quicker pace. I put below some of my first impressions (it [...]
How to … LVM (Ubuntu): sudo apt-get install lvm2 dmsetup mdadm reiserfsprogs xfsprogs pvcreate (create physical volume) pvdisplay (check what has been done) vgcreate group_name /dev/sda1 /dev/sdb2 vgdisplay lvcreate –name lv_name –size 1000T group_name mkfs.ext4 /dev/group_name/lv_name mount /dev/group_name/lv_name /mnt/z vgchange -a y group_name #to activate volume group vgextend group_name /dev/sdc1 http://tldp.org/HOWTO/LVM-HOWTO/commontask.html