Tuesday, July 21, 2015

LG 43UF770 4K TV with gtx 960 running at 4K at 60Hz and chroma 4:4:4

This is complementary info to the one in here. I have LG 43UF770T and Gigabyte GTX 960 G1 Gaming 4GB. The PC is set to 4K@60Hz and connected to the tv using HDMI 1 port. Only this port supports HDMI ULTRA HD Deep Colour in this tv. By default HDMI 1 icon is HDMI and HDMI ULTRA HD Deep Colour is off as written above. This results in chroma 4:2:0. I changed the setting as per instructions here, i.e. HDMI 1 port icon to PC and HDMI ULTRA HD Deep Colour to On. The nvidia settings are shown below.




To test the chroma for the default setup and the new one I used chroma torture test.

The results are here:

As can be seen, the top red, middle blue and bottom text is unreadable with the default tv settings on HDMI 1 port. With the new settings, everything is clear.

Tuesday, June 16, 2015

Ubuntu 14.04: compile DCMTK 3.6.1 (development snapshot)

Get latest version from: http://dicom.offis.de/download/dcmtk/snapshot/ At the time of writing this could be done to compile latest version of the dcmtk:

ubuntu: dcmtk convert to grayscale tiff

Example:/opt/dcmtk361/bin/dcml2pnm +ot +G ../00_org/003.dcm 003.tif

Saturday, June 06, 2015

Xubuntu 15.04: lightdm autologin

To setup autologin, create the following file: /etc/lightdm/lightdm.conf

sudo vim /etc/lightdm/lightdm.conf
And add to the following lines: [SeatDefaults]
user-session=xubuntu
autologin-user=your_user_name

Ubuntu: chome browser new instance

chromium-browser --enable-udd-profiles --user-data-dir=~/chromeProf or for chromegoogle-chrome --enable-udd-profiles --user-data-dir=~/chromeProf

Wednesday, May 27, 2015

bash: rename files to numbers

find . -name '*.jpg' | gawk 'BEGIN{ a=1 }{ printf "mv \"%s\" %04d.jpg\n", $0, a++ }' | bash

Wednesday, April 01, 2015

Saturday, March 07, 2015

Fedora 21: VirtualBox additions

su -
dnf update kernel*

dnf install kernel-headers kernel-devel dkms make bzip2 perl and reboot.
Optinally (usually not needed) KERN_DIR=/usr/src/kernels/`uname -r`

Saturday, February 28, 2015

Fedora 21: to do after install

dnf install @xfce-desktop
dnf upgrade
su -c "curl https://satya164.github.io/fedy/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"
dnf install terminator vim mc htop git bless okular chromium-browser krusader krename kdiff3 vnc4server gimp boost-devel yumex gcc-c++ ImageMagick ImageMagick-devel ImageMagick-c++-devel python3-matplotlib python3-ipython python3-scipy kernel-devel kernel-headers dkms make bzip2 perl eqlipse-pydev python3-devel python-devel kate ufraw imagej kde-baseapps
vim etc/gdm/custom.conf

[daemon]
AutomaticLoginEnable=true
AutomaticLogin=mz2



sudo grub2-set-default "Windows Vista (loader) (on /dev/sdb1)"

Ubuntu 14.04: Install boost 1.57

sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev
wget http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2
tar xvjf ./boost_1_57_0.tar.bz2
./bootstrap.sh --prefix=/opt/boost_1_57_0
sudo ./b2
sudo ./b2 install