Moonic's notes


Wednesday, November 20, 2013

vinoserver and large files

My morning started with the troubles. NX did not work for mysterious reasons, and svn server reported an error. The first thought comes to mind that this somehow have to do with a full diskspace. So, it could be helpful to search and remove very large files:
find / -size +10G -ls
Didn't solve the problem of disappearing free space though. Thanks to
iotop
it became clear that vinoserver was under attack. To avoid a reboot, look for the vinoserver process:
ps -eaf |grep vino
 
kill with the corresponding process id, and don't forget to delete log file:
~/.xesession-errors
which by now probably filled up the entire diskspace.
 
And even though the file was removed, the available diskspace did not change.
This is because some processes keep the "deleted" files open. To find this out, run
sudo lsof | grep deleted
 
Askubuntu was helpful with vinoserver trouble [link] and find command [link].
Stackexchange helped with the information about deleted files [link].

Labels: , ,

Wednesday, November 07, 2012

svn tip: relocation of the server


Devoted to the recent SVN server crash. 

This is how one can tell the local repository that the server is relocated without new checkout:
svn switch --relocate https://old_svn_url https://new_svn_url
This command works on the old versions of Ubuntu (like 10.10). New svn version has
svn relocate
command. 

Labels: ,

Sunday, August 19, 2012

LaTeX tip: one counter for tables and figures

To use a single counter for tables and figures in the LaTeX document
\makeatletter
\renewcommand*{\thetable}{\arabic{table}}
\renewcommand*{\thefigure}{\arabic{figure}}
\let\c@table\c@figure
\makeatother  
in the preamble of the document. One can test it using dummy text, thanks to blindtext package, i.e.

\usepackage[english]{babel}
\usepackage{blindtext}

for the preamble and

\blindtext
\Blindtext
 
in the main body of the document to produce a paragraph or two of the dummy text.

Acks: single counter tip can be found here; more about dummy text here.
 

Labels:

Friday, August 10, 2012

Neo-classics based on Bach's work



A wikipedia list of fugas [link] and other compositions [link] written by J.S. Bach, including my favorite ones:
  • BWV 847 – Well-Tempered Clavier, Book 1: Prelude and Fugue No. 2 in C minor
  • BWV 999 – Prelude in C minor

Some of my favorite pieces:

  • Karl Richter performance of BWV 847 [link]
  • Pavel Egorov interpretation Prelude in C minor BWV 999 [link]
  • Vanessa Mae with her Classical Gas [link]
  • Very nice neo-classic remix [link] made by VioDance DJ Davor and electric violinist Becky.

Are there some other neo-classical works? The list will be updated.

Monday, June 04, 2012

in Melbourne



 

I'm back to this side of the globe!

Life in student house, extreme jetlag and no cockroach in the sight. No kengaroo either :)

Thursday, September 01, 2011

Neat LaTeX macro

Very neat macro:

\newcommand{\question}[1]{\marginpar{\tiny\raggedright\textsf{\hspace{3pt}#1}}}

Labels:

Wednesday, June 29, 2011

iTeX

A funny talk of Donald Knuth on iTex,

the future of Tex here

Labels: