2015-05-02

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART3

Automatic brightness control very very annoying, it dims down almost random, so you have to set it couple times...


To disable improper automatic brightness control, uncheck this:




To control brightness manually from 0% to 100% , install xbacklight

$ sudo apt-get install xbacklight

Don't know how to overwrite functional keys for brightness, so I made two new shortcuts for brightness control, with commands:

$ xbacklight -inc 5
$ xbacklight -dec 5

For non 60 fps videos, mplayer works pretty well with this config:

$ cat ~/.mplayer/config
# Write your default config options here!

vo=gl_nosw
af=equalizer=0:-1:-2:-3:-4:-4:-3:-2:-1:0
cache=8192
cache-min=4
nosub=1
framedrop=1












2015-02-15

GIT ANNEX

  • Installing latest git version

https://launchpad.net/~git-core/+archive/ubuntu/ppa

$ sudo add-apt-repository ppa:git-core/ppa

$ apt-get update && apt-get --only-upgrade install git

$ apt-get install git-annex
 
$ git --version
git version 2.3.0

$ git annex version
git-annex version: 5.20140412ubuntu1

https://git-annex.branchable.com/walkthrough/


  • Git-annex binary for Raspberry-pi


https://github.com/tradloff/git-annex-RPi

  • Windows version


https://downloads.kitenet.net/git-annex/windows/current/
















2015-02-14

Installing Texmaker

http://www.xm1math.net/texmaker/index.html
  • Linux

$ sudo apt-get install texlive-full texmaker

To see the result press F6 to convert  and then press blue arrow next to "View PDF".

  •   Windows

http://www.howtotex.com/howto/installing-latex-on-windows/


  • Gray background with white letters

\documentclass{article}
\usepackage{xcolor}

\pagecolor[rgb]{0.15,0.15,0.15}
\color[rgb]{1,1,1}
\begin{document}

Hello \clearpage
World

\end{document}


2015-01-25

Digital background color


I think in the old days, white screen with black letters was design to make an impression of sheet of paper. Now it still exists.
On Smart Phones and Tablets it's changing cause less white light means longer battery life. On the Desktop not a lot of normal people care. Unless that’s your style and You want to be unique.

My digital background's turning black not only cause its environment friendly, but the main reason is how it effects my eyes. I noticed that dark background while programming are less intense for my eyes.

It worth mention that, the room where you work also sloud be similre lighting as your computer screen. You also shloud look at the monitor a fiew degrees down and don't forget blink. This way your eyes will be less dray.  About blinking it's easier to say than done! :)

If you do tee or coffee break, to give your eyes a break you should look throw the window far far away.

I do not ware glasses!  At least Yet!

I have one weaker eye then the other. My vision changing during the week. If I would do eye test , ware you cover one eye and then have to see and say letters or animal names watching form the distance, on a Friday after intensive work week I most likely failed, but on Monday after a weekend in the village away and away from PC, I most likely pass the test.



So it's great that Qt-Creator can have a dark skin!

https://github.com/alexpana/qt-creator-wombat-theme





And "Sublime text" it's great by default. If You did not try yet, It's a great editor, definitely should try out!

http://www.sublimetext.com/



Keep your eyes healthy :) and have fun programming!



2015-01-17

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART2

Linux Mint 17 on Laptop Acer Aspire-E5-571G PART1
  • Nvidia driver

I added this PPA
https://launchpad.net/~xorg-edgers/+archive/ubuntu/ppa
And install Nvidia-343 driver
I find out that prismusrun is alternative to optirun
  • Avoiding Video tearing while watching 60 fps video

VLC useless
Mplayer works only with Intel vaapi
$ export VDPAU_DRIVER=va_gl &&  mplayer -cache 8192 file.mkv 
XBMC kodi can use both Nvidia or Intel vaapi (default)
$ prismusrun kodi
$ kodi
Totem works with Nvidia
$ prismusrun totem
  • Gaming

I Instaled Wine1.7 and using prismus StartCraft II works!
$ prismusrun wine /path/to/StarCraft-II-Setup-enGB.exe
  • Resource

http://askubuntu.com/questions/305305/running-xbmc-on-bumblebee-nvidia
http://ubuntuforums.org/showthread.php?t=2121749
  • Note

Hard drive on this laptop is large 1TB, but not very fast. Thats why mplayer better works with bigger cache option. I came to conclusion that most of the lag is hard drive retailed. So I made a few more settings. Set swappiness to 1 (how to) ant added "noatime" to FSTAB.


2015-01-02

Web chat on Raspberry Pi using nodejs


  • Writing image to SD card

 sudo dd bs=1M if=./2014-12-24-wheezy-raspbian.img of=/dev/sdc

  • Installing nodejs and modules

http://doctorbin.tumblr.com/post/53991508909/how-to-install-the-latest-version-of-nodejs-npm

I used this version: http://nodejs.org/dist/v0.11.7/
Newer versions "npm" not working, throws "Illegal instruction". 

  • Working chat app example

https://github.com/Automattic/socket.io/tree/master/examples/chat




  • Javascript & JQuery tutorial

https://www.youtube.com/playlist?list=PLoYCgNOIyGACnrXwo5HMCfOH9VT05znGv