Stay informed

To subscribe, paste any of the links below into your RSS Reader or your browser:

Note: RSS is a format for delivering regularly changing web content.

Photos

To see some of my photos, follow these links:

View

When I was travelling over the hills with my camera, I took this photo:

Michal Novomesky

Note: This photo should be old and was taken aprox. 10 years before.

This section contains knowledge base solutions, which helped me to solve some problems. This may help to other people who are solving similar problems right now.

2015-04-21

Count number of words in a PDF file

It is easily possible using Microsoft Word. If you do not have Acrobat Reader, try to Copy&Paste into word.

  1. Open the document in Adobe Acrobat (full version only, not Acrobat Reader)
  2. From the menubar select FILE > SAVE AS
  3. In the SAVE AS TYPE drop-down list select RICH TEXT FORMAT (RFT)
  4. Click the SAVE button
  5. Close Adobe Acrobat
  6. Open the new RFT document in Microsoft Word
  7. From the ribbon select the REVIEW tab.
  8. In the PROOFING group click on the WORD COUNT icon (located at the right-down coner, it has numbers)

Solution additional info: answers.yahoo.com/question/index?qid=20100407063439AAs0096

2010-11-18

Adding XHTML valid "Facebook like" Iframe without timeouts

We will demonstrate the "Facebook like" iframe solution. Function setTimeout will stop loading facebook iframe, if it is loading too long. According to doctype, there are some unsupported parameters like allowTransparency and onload - so we need to put it into HTML throught javascript createElement.

<!-- Fcbk like frame -->
	<script type="text/javascript">
		var kill = window.setTimeout("destroyFcbkLoading()", 2500);
		function destroyFcbkLoading() {
 			kill = document.getElementById('fFrame').src = "blank.html";
		}
	</script>
	<div id="iFrameDiv"></div>
	<script type="text/javascript">
	function createFbIFrame() {
		var iframe = null;
		if (document.createElement) {
			var iframe = document.createElement("iframe");
			iframe.id = "fFrame";
			iframe.src = "http://www.facebook.com/widgets/like.php?href=http://www.nubian.sk&amp;locale=en_US";
			iframe.setAttribute("frameborder", "0");
			iframe.setAttribute("scrolling", "0");
			iframe.setAttribute("allowTransparency", "true");
			iframe.load = function () {clearTimeout(kill); document.getElementById('fFrame').style.display = 'block';};
			document.getElementById("iFrameDiv").appendChild(iframe);
			if (iframe.addEventListener) // Gecko / W3C
				iframe.addEventListener ("load", iframe.load, false);
			else if (iframe.attachEvent) // IE
				iframe.attachEvent ("onload", iframe.load);
			else
				iframe.onload = iframe.load;
		}
		return iframe;
	}
	createFbIFrame();
	</script>
<!-- End Fcbk -->

Solution additional info: pc.poradna.net/a/view/307894-ajax-iframe

2010-11-16

Resample (resize, scale) more images with linux convert

ls *.png | xargs -I FILE convert -resize 80% FILE FILE
2010-11-05

Find and recursive delete all xml files

find ./ -name "*.xml" -exec rm {} \;
2010-11-02

Convert avi to flv video with mencoder on Linux

mencoder -forceidx -of lavf -oac mp3lame -lameopts abr:br=56 \
 -srate 22050 -ovc lavc \
 -lavcopts vcodec=flv:vbitrate=250:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \
 -vf scale=480:360 -o FILE.flv FILE.avi

For better quality please modify the parameter `vbitrate` and `scale`.

Solution from: www.jeremychapman.info/cms/mencoder-avi-to-flv-conversion

2010-10-25

Linux batch convert bmp to png image with one command

ls *.bmp | sed 's/\.bmp$//g' | xargs -I FILE convert FILE.bmp FILE.png