<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.eddsn.com</title>
	<atom:link href="http://blog.eddsn.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.eddsn.com</link>
	<description>The whole is more than the sum of its parts - Aristotle</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:13:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>&#8220;Python Version 2.7 required which was not found in the registry&#8221;</title>
		<link>http://blog.eddsn.com/2012/01/python-version-2-7-required-which-was-not-found-in-the-registry/</link>
		<comments>http://blog.eddsn.com/2012/01/python-version-2-7-required-which-was-not-found-in-the-registry/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 02:35:48 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1164</guid>
		<description><![CDATA[Introduction Any module installer that is created using distutils (bdist_wininst) is very likely to produce this error. The problem is that it only detects 32bit installations of Python on 64bit Windows machines. Or more technically, 32bit versions of Python create the following registry path HKEY_LOCAL_MACHINE\Software\Wow6432Node\Python\PythonCore while 64bits versions create a slightly other registry path which [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p><a href="http://blog.eddsn.com/wp-content/uploads/2012/01/error.jpg"><img class="size-full wp-image-1165 aligncenter" style="margin-right: 10px; margin-left: 10px; margin-top: 2px; margin-bottom: 2px;" title="&quot;Python version 2.7 required which was not found in the registry&quot;" src="http://blog.eddsn.com/wp-content/uploads/2012/01/error.jpg" alt="" width="459" height="171" /></a><br />
<strong>Introduction</strong><br />
Any module installer that is created using distutils (bdist_wininst) is very likely to produce this <a href="http://bugs.python.org/issue6792">error</a>. The problem is that it only detects 32bit installations of Python on 64bit Windows machines. Or more technically, 32bit versions of Python create the following registry path</p>
<blockquote><p>HKEY_LOCAL_MACHINE\Software\Wow6432Node\Python\PythonCore</p></blockquote>
<p>while 64bits versions create a slightly other registry path which is</p>
<blockquote><p>HKEY_CURRENT_USER\Software\Python\PythonCore</p></blockquote>
<p>When any 32-bit module setup is started (with a Python 64-bit on your system), it first checks whether the first path exists, while instead it should check the second (which does exist).</p>
<p>There are basically three ways of solving this:</p>
<ul>
<li>You can install a 32-bit Python version</li>
<li>or install a 64-bit version of your module</li>
<li>or adjust the registry such that it really sees that a 64bit Python is installed</li>
</ul>
<p>I will of course elaborate on the last two options.</p>
<p><strong>Install a 64-bit version of your module</strong></p>
<p>You can find many module binaries <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/">here</a>. Choose a 64-bit version and install it. This is the most clean way of fixing the problem.</p>
<p>If your module is not in the list, then try the alternative below.</p>
<p><strong>Fix by adjusting the registry</strong></p>
<p>So the dirty way is to do the following adjustments in the registry:</p>
<ol>
<li>Run <em>regedit</em>.</li>
<li>Locate the path: <em>HKEY_CURRENT_USER\Software\Wow6432Node\</em></li>
<li>Create keys in this path: <em>Python\PythonCore\2.7\InstallPath</em></li>
<li>Modify the &#8220;<em>(Default)</em>&#8220;, which is initially empty, to the path where Python is located, for example &#8220;C:\Python27\&#8221;.</li>
<li>You are done. Exit and retry the setup that gave the error.</li>
</ol>
<p>You can alternatively create a <em>.reg</em> file (for example <em>fix.reg</em>) that will do the above steps automatically. Put exactly the following in it:</p>
<pre>Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath]
@="C:\\Python27\\"</pre>
<p>If you are lazy, then you can also download <a href="http://blog.eddsn.com/wp-content/uploads/2012/01/regfix.zip">this file</a>, unpack the registry file and just run it.</p>
<p>&nbsp;</p>
<div class="shr-publisher-1164"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2012/01/python-version-2-7-required-which-was-not-found-in-the-registry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Unable to find vcvarsall.bat&#8221; error when trying to install lxml</title>
		<link>http://blog.eddsn.com/2012/01/unable-to-find-vcvarsall-bat-error-when-trying-to-install-lxml/</link>
		<comments>http://blog.eddsn.com/2012/01/unable-to-find-vcvarsall-bat-error-when-trying-to-install-lxml/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 02:04:00 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1151</guid>
		<description><![CDATA[I needed the lxml library on a machine for some python script that I coded earlier. I tried using easy_install by doing easy_install lxml but then I got the following error: Searching for lxml Reading http://pypi.python.org/simple/lxml/ Reading http://codespeak.net/lxml Best match: lxml 2.3.3 Downloading http://lxml.de/files/lxml-2.3.3.tgz Processing lxml-2.3.3.tgz Running lxml-2.3.3\setup.py -q bdist_egg --dist-dir c:\users\edin\appdata\local\ temp\easy_install-9sxhlm\lxml-2.3.3\egg-dist-tmp-pjbtkm Building lxml [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>I needed the <a href="http://lxml.de/">lxml</a> library on a machine for some python script that I coded earlier. I tried using <a href="http://peak.telecommunity.com/DevCenter/EasyInstall">easy_install</a> by doing</p>
<pre>easy_install lxml</pre>
<p>but then I got the following error:</p>
<pre>Searching for lxml
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3.3
Downloading http://lxml.de/files/lxml-2.3.3.tgz
Processing lxml-2.3.3.tgz
Running lxml-2.3.3\setup.py -q bdist_egg --dist-dir c:\users\edin\appdata\local\
temp\easy_install-9sxhlm\lxml-2.3.3\egg-dist-tmp-pjbtkm
Building lxml version 2.3.3.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt
warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc'
error: Setup script exited with error: Unable to find vcvarsall.bat</pre>
<p>I tried installing <a href="http://xmlsoft.org/">libxml2</a> and <a href="http://xmlsoft.org/XSLT/">libxslt</a>, but it resulted in similar errors.</p>
<blockquote><p>Searching for libxml2<br />
Reading http://pypi.python.org/simple/libxml2/<br />
Couldn&#8217;t find index page for &#8216;libxml2&#8242; (maybe misspelled?)<br />
Scanning index of all packages (this may take a while)<br />
Reading http://pypi.python.org/simple/<br />
No local packages or download links found for libxml2<br />
Best match: None<br />
Traceback (most recent call last):<br />
File &#8220;C:\Python27\Scripts\easy_install-script.py&#8221;, line 8, in<br />
load_entry_point(&#8216;setuptools==0.6c11&#8242;, &#8216;console_scripts&#8217;, &#8216;easy_install&#8217;)()<br />
File &#8220;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\com<br />
mand\easy_install.py&#8221;, line 1712, in main<br />
File &#8220;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\com<br />
mand\easy_install.py&#8221;, line 1700, in with_ei_usage<br />
File &#8220;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\com<br />
mand\easy_install.py&#8221;, line 1716, in<br />
File &#8220;C:\Python27\lib\distutils\core.py&#8221;, line 152, in setup<br />
dist.run_commands()<br />
File &#8220;C:\Python27\lib\distutils\dist.py&#8221;, line 953, in run_commands<br />
self.run_command(cmd)<br />
File &#8220;C:\Python27\lib\distutils\dist.py&#8221;, line 972, in run_command<br />
cmd_obj.run()<br />
File &#8220;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\com<br />
mand\easy_install.py&#8221;, line 211, in run<br />
File &#8220;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\com<br />
mand\easy_install.py&#8221;, line 434, in easy_install<br />
File &#8220;C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\pac<br />
kage_index.py&#8221;, line 475, in fetch_distribution<br />
AttributeError: &#8216;NoneType&#8217; object has no attribute &#8216;clone&#8217;</p></blockquote>
<p>In one of my previous posts I pointed out how you can solve a similar problem with a missing vcvarsall.bat error, but unfortunately that <a href="http://blog.eddsn.com/2010/05/unable-to-find-vcvarsall-bat/">approach</a> did not solve my problem. Compiling the sources from the ground up was a too intensive job (which I might try to figure out in the future), so I chose the easy path.</p>
<p>The issue was solved by installing these packages from <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/">this site</a> which lists a lot of (unoffical) Windows binaries for Python. Everything suddenly started to work as it should. <img src='http://blog.eddsn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-1151"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2012/01/unable-to-find-vcvarsall-bat-error-when-trying-to-install-lxml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to send large files using µTorrent</title>
		<link>http://blog.eddsn.com/2012/01/how-to-send-large-files-using-utorrent/</link>
		<comments>http://blog.eddsn.com/2012/01/how-to-send-large-files-using-utorrent/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 01:59:15 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1122</guid>
		<description><![CDATA[Introduction There are numerous ways to share your files. This includes the usual mail, Windows Live Messenger, file-hosting sites like RapidShare, Dropbox, FTP and many other ways. However, all have the following problem. Lets say that you want to share some REALLY big amount of data with someone, like for example 5GB or maybe even 20GB. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p><a href="http://blog.eddsn.com/wp-content/uploads/2012/01/file_transfer.png"><img class="alignleft size-full wp-image-1185" title="file_transfer" src="http://blog.eddsn.com/wp-content/uploads/2012/01/file_transfer.png" alt="" width="319" height="430" /></a></p>
<p><strong>Introduction</strong></p>
<p>There are numerous ways to share your files. This includes the usual mail, <a title="Windows Live Messenger" href="http://explore.live.com/messenger" target="_blank">Windows Live Messenger</a>, <a href="http://en.wikipedia.org/wiki/One-click_hosting#One-click_hosting" target="_blank">file-hosting sites</a> like <a title="RapidShare" href="http://rapidshare.com/" target="_blank">RapidShare</a>, <a title="Dropbox" href="http://www.dropbox.com/" target="_blank">Dropbox</a>, <a href="http://en.wikipedia.org/wiki/File_Transfer_Protocol" target="_blank">FTP</a> and many other ways.</p>
<p>However, all have the following problem. Lets say that you want to share some REALLY big amount of data with someone, like for example 5GB or maybe even 20GB. In that case all of the above mentioned ways of sharing have serious drawbacks.</p>
<p>Windows Live Messenger is often very slow, can share only a few files at a time and does not support resume on sending files (which basically means that if for example your connections dies out while having 99% of your file already sent, you have to send the file all over again!). File-hosting sites like RapidShare, MegaUpload and similar sites have file size limits so that you need to upload big files by splitting it in different parts that are withing this limit  and so on (which is also the case if you use Dropbox). FTP does not pose a limit on the number or size of the files, but it again does not offer a resume of a download like Windows Live Messenger. Other drawbacks of all these type of methods  is the requirement of some initial setup, technical knowledge, user registration on websites, ads, etc.</p>
<p><span id="more-1122"></span></p>
<p><strong>How to send files by using µTorrent</strong></p>
<p><a href="http://en.wikipedia.org/wiki/%CE%9CTorrent" target="_blank">µTorrent</a> is a popular <a href="http://en.wikipedia.org/wiki/BitTorrent_client" target="_blank">BitTorrent client</a> that is used to share files by using the so called <a href="http://en.wikipedia.org/wiki/BitTorrent_(protocol)" target="_blank">BitTorrent protocol</a>. In <em>µTorrent 3</em> it is very easy to share any of your files of any size with anyone you like. Before you proceed, you should first <a href="http://utorrent.com" target="_blank">download</a> and install the latest version.</p>
<p>There are several (more difficult) ways of doing this, but the following is by far the easiest:</p>
<p>Start up µTorrent and then simply drag and drop any file or even an entire folder into µTorrent. You will then get the following dialog:</p>
<p><a href="http://blog.eddsn.com/wp-content/uploads/2012/01/sendfiles.jpg"><img class="size-full wp-image-1123 aligncenter" title="Drag dropping files into µTorrent" src="http://blog.eddsn.com/wp-content/uploads/2012/01/sendfiles.jpg" alt="" width="553" height="231" /></a></p>
<p>When you click on &#8220;<em>Get Link</em>&#8220;, a <a href="http://en.wikipedia.org/wiki/Tinyurl" target="_blank">tinyurl</a> link is created which you can directly share with the person you would like to share the data.</p>
<p><a href="http://blog.eddsn.com/wp-content/uploads/2012/01/sendfiles2.jpg"><img class="size-full wp-image-1128 aligncenter" title="Getting the link" src="http://blog.eddsn.com/wp-content/uploads/2012/01/sendfiles2.jpg" alt="" width="553" height="231" /></a></p>
<p>Clicking on &#8220;<em>Done</em>&#8221; will put your automatically created torrent on seeding, so that now anyone (with which you share the provided link) can download your file(s). When someone opens the link a µTorrent web page will be shown that looks something like this:</p>
<p><a href="http://blog.eddsn.com/wp-content/uploads/2012/01/download-file.jpg"><img class="size-full wp-image-1135 aligncenter" title="Download page" src="http://blog.eddsn.com/wp-content/uploads/2012/01/download-file.jpg" alt="" width="592" height="264" /></a></p>
<p>On this page you can download the torrent file, the <a title="Magnet link" href="http://en.wikipedia.org/wiki/Magnet_URI_scheme" target="_blank">magnet link</a> or even the file(s) directly! The other person(s) can open this torrent or insert the magnet link in theirs µTorrent client after which the download will begin.</p>
<p><strong>Conclusion</strong></p>
<p>Using µTorrent, or in that sense any other BitTorrent client, gives the possibility to share your files without any size limits with the further advantage of resuming your incomplete downloads at a later time. With <em>µTorrent 3</em> in particular this really becomes a no-brainer.</p>
<p>See also the <a href="http://www.utorrent.com/help/guides/send-files" target="_blank">guide</a> from the utorrent website.</p>
<p><span style="color: #ff0000;">* Note: To guarantee delivery of your content, your computer <strong>must be on</strong> and serving your content at the time somebody is downloading it.</span></p>
<div class="shr-publisher-1122"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2012/01/how-to-send-large-files-using-utorrent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot Install Microsoft .NET Framework 3.5 SP1</title>
		<link>http://blog.eddsn.com/2012/01/cannot-install-microsoft-net-framework-3-5-sp1/</link>
		<comments>http://blog.eddsn.com/2012/01/cannot-install-microsoft-net-framework-3-5-sp1/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 12:32:05 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1101</guid>
		<description><![CDATA[There might be several reasons as to why you can&#8217;t install the .NET Framework. I had the problem while installing the framework via the Windows Update. Symptoms While trying to install Microsoft .NET Framework 3.5 SP1 Update for Windows 7 x86 (KB982526), Windows Update told me that the update was unsuccessful and gave me the following &#8220;useful&#8221; [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>There might be several reasons as to why you can&#8217;t install the <a href="http://en.wikipedia.org/wiki/.NET_Framework">.NET Framework</a>. I had the problem while installing the framework via the <em>Windows Update</em>.</p>
<p><strong>Symptoms</strong><br />
While trying to install <strong>Microsoft .NET Framework 3.5 SP1 Update for Windows 7</strong> x86 (KB982526)<em>,</em> Windows Update told me that the update was unsuccessful and gave me the following &#8220;useful&#8221; error:</p>
<blockquote><p>&#8220;WindowsUpdate_800F081F&#8221; &#8220;WindowsUpdate_dt000&#8243;</p></blockquote>
<p>You might also get several other errors similar to the following:</p>
<ul>
<li>an error of type <em>0&#215;643</em></li>
<li><em>Microsoft .NET Framework 3.5 (x64) &#8216;package&#8217;: [2] Error: Installation failed for component Microsoft .NET Framework 3.5 (x64) &#8216;package&#8217;. MSI returned error code 1601</em></li>
<li><em>Microsoft .NET Framework 3.5 (x64) &#8216;package&#8217;: [2] Error: Installation failed for component Microsoft .NET Framework 3.5 (x64) &#8216;package&#8217;. MSI returned error code 1603</em></li>
<li><em>Microsoft .NET Framework 3.0SP1 (x64) (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 3.0SP1 (x64) (CBS). MSI returned error code -2146762496<br />
</em></li>
<li><em>WapUI: [2] DepCheck indicates Microsoft .NET Framework 2.0SP1 (CBS) is not installed<br />
</em></li>
</ul>
<div>Regarding the installation via Windows Update, you might furthermore experience problems with installing <strong>Windows Internet Explorer 9 for Windows 7</strong> by getting an error similar to this:</div>
<blockquote><p>&#8220;WindowsUpdate_00009C47&#8243; &#8220;WindowsUpdate_dt000&#8243;</p></blockquote>
<p><strong>Solution(s)</strong><br />
It strongly depends on the situation and your system but you might try one of the following solutions:</p>
<ul>
<li>You can first try to install the <em>System Update Readiness Tool for Windows 7</em> which is an August 2011 release (<a href="http://www.microsoft.com/download/en/details.aspx?id=3132">KB947821</a> - 32-bit (x86)) at this moment of writing. This should solve any inconsistencies in the Windows servicing store which may prevent the successful installation of future updates, service packs, and software. There is also a <a href="http://www.microsoft.com/download/en/details.aspx?id=20858">64-bit version for Windows 7</a>. Windows Vista: <a href="http://www.microsoft.com/download/en/details.aspx?id=504">32-bit</a> (x86), <a href="http://www.microsoft.com/download/en/details.aspx?id=1540">64-bit</a> (x64).</li>
<li>If you&#8217;re not using Windows Update, then you can try to download and install the framework manually: <a href="http://www.microsoft.com/download/en/details.aspx?id=22">Microsoft .NET Framework 3.5 Service Pack 1</a>.</li>
<li>There is also a newer version of the framework which most newer applications use which might also suffice: <a href="http://www.microsoft.com/download/en/details.aspx?id=17851">Microsoft .NET Framework 4 (Web Installer)</a>.</li>
<li>Another thing that you can try on top of all the above is to first remove all the existing .NET framework versions. Do it via <em>Add or remove programs</em> from the <em>Configuration Panel.</em> You can also try the <a href="http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx">.NET Framework Cleanup Tool</a>.</li>
<li>Do the following: <em>Start</em> &gt; <em>Run</em> &gt; type &#8220;services.msc&#8221;. Now check whether the <em>Startup Type</em> of <em>Windows Installer</em> is set to <em>Manual</em>.</li>
<li>Go to <em>Start</em> &gt; <em>Control Panel</em> &gt; <em>Programs</em> &gt; <em>Turn Windows features on or off.</em> Check now that the Microsoft .NET Framework 3.5.1 is <strong>checked on</strong>.</li>
<li>Disable any security/antivirus software while trying to install. Usually this shouldn&#8217;t give problems, but it&#8217;s worth a try.</li>
</ul>
<div>If you still didn&#8217;t fix your problem, you can start a discussion in the comments below. If you fixed it in another way, then please share it and I&#8217;ll add it to the list above.</div>
<div class="shr-publisher-1101"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2012/01/cannot-install-microsoft-net-framework-3-5-sp1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logika i Praznovjerje</title>
		<link>http://blog.eddsn.com/2011/12/logika-i-praznovjerje/</link>
		<comments>http://blog.eddsn.com/2011/12/logika-i-praznovjerje/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 12:04:02 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Stripovi]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1104</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p><a href="http://blog.eddsn.com/wp-content/uploads/2011/12/logika-i-praznovjerje.jpg"><img class="alignleft size-full wp-image-1105" title="Logika i Praznovjerje" src="http://blog.eddsn.com/wp-content/uploads/2011/12/logika-i-praznovjerje.jpg" alt="" width="608" height="260" /></a></p>
<div class="shr-publisher-1104"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2011/12/logika-i-praznovjerje/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to manually add a package to MiKTex</title>
		<link>http://blog.eddsn.com/2011/10/how-to-manually-add-a-package-to-miktex/</link>
		<comments>http://blog.eddsn.com/2011/10/how-to-manually-add-a-package-to-miktex/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 17:24:34 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1082</guid>
		<description><![CDATA[The fact that I&#8217;m writing this article implies that it is far from a trivial task to do this. After about 2 hours I finally found a solution that just works. Note that I&#8217;m using MiKTeX 2.9 on Windows 7, so the solution may not be working for other versions of MiKTeX and the path [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>The fact that I&#8217;m writing this article implies that it is far from a trivial task to do this. After about 2 hours I finally found a solution that just works. Note that I&#8217;m using MiKTeX 2.9 on Windows 7, so the solution may not be working for other versions of MiKTeX and the path to the directory may vary depending on your version of windows and/or your installation preferences. The concept however is the same.</p>
<p>To make this work you should complete the following steps:</p>
<ol>
<li>Download the package file that you want to install.</li>
<li>Create a directory in (make sure that you have admin privileges in case of Vista/7):
<ul>
<li><strong>C:\Program Files\MiKTeX 2.9\tex\latex\base</strong> (for Windows XP/Vista/7 on a 32-bit Windows version)</li>
<li><strong>C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base</strong> (for Vista/7 on a 64-bit Windows version)</li>
</ul>
</li>
<li>Go to <em>Start</em> &gt; <em>MiKTeX</em> &gt; <em>Maintenance (Admin)</em> &gt; <em>Settings (Admin)</em> and click on <em>Refresh FNDB</em>.</li>
<li>Restart your LaTeX editor (in my case it was WinEdt 6.0) and now you should be able to use your new package.</li>
</ol>
<div><a href="http://blog.eddsn.com/wp-content/uploads/2011/10/MiKTeX-Options.jpg"><img class="size-full wp-image-1097 aligncenter" title="MiKTeX Options" src="http://blog.eddsn.com/wp-content/uploads/2011/10/MiKTeX-Options.jpg" alt="" width="414" height="461" /></a></div>
<p>&nbsp;</p>
<p>Note that in step 3 I have deliberately wrote that you should chose the <strong>Admin</strong> folder, which is important if you are running Windows Vista or Windows 7, since otherwise refreshing FNDB will not result in your package being added to the database! Alternatively, you can also open the settings from the non-Admin or in some other way, but in any case make sure that the process has admin rights to update the database. If you have a more complex setup you can read <a href="http://tex.stackexchange.com/questions/2063/how-can-i-manually-install-a-package-on-miktex-windows/2066#2066">this</a> post that gives some more advanced information on how to manually add packages.</p>
<div class="shr-publisher-1082"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2011/10/how-to-manually-add-a-package-to-miktex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;LaTeX source files more than 5 years old!&#8221;</title>
		<link>http://blog.eddsn.com/2011/06/latex-source-files-more-than-5-years-old/</link>
		<comments>http://blog.eddsn.com/2011/06/latex-source-files-more-than-5-years-old/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 17:22:14 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1062</guid>
		<description><![CDATA[Got this compile error from LaTeX today and I really don&#8217;t have any idea what is exactly going on. This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) Running miktex-pdftex.exe... This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (INITEX) entering extended mode ("C:\Program Files\MiKTeX 2.8\tex\latex\config\latex.ini" (C:\Users\Edin\AppData\Roaming\MiKTeX\2.8\tex\generic\config\pdftexconfig.tex) ("C:\Program Files\MiKTeX 2.8\tex\latex\base\latex.ltx" ("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\texsys.cfg") ./texsys.aux found \@currdir set to: ./. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>Got this compile error from LaTeX today and I really don&#8217;t have any idea what is exactly going on.</p>
<pre>This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
Running miktex-pdftex.exe...
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (INITEX)
entering extended mode
("C:\Program Files\MiKTeX 2.8\tex\latex\config\latex.ini"
(C:\Users\Edin\AppData\Roaming\MiKTeX\2.8\tex\generic\config\pdftexconfig.tex)
("C:\Program Files\MiKTeX 2.8\tex\latex\base\latex.ltx"
("C:\Program Files\MiKTeX 2.8\tex\latex\00miktex\texsys.cfg")
./texsys.aux found

\@currdir set to: ./.

Assuming \openin and \input
have the same search path.

Defining UNIX/DOS style filename parser.

catcodes, registers, compatibility for TeX 2,  parameters,

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! You are attempting to make a LaTeX format from a source file
! That is more than five years old.
!
! If you enter &lt;return&gt; to scroll past this message then the format
! will be built, but please consider obtaining newer source files
! before continuing to build LaTeX.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! LaTeX source files more than 5 years old!.
l.545 ...aTeX source files more than 5 years old!}

No pages of output.
Transcript written on latex.log.
miktex-makefmt: miktex-pdftex.exe failed on latex.ini.
initexmf.exe: The operation failed for some reason.
initexmf.exe: Data: C:\Program Files\MiKTeX 2.8\miktex\bin\miktex-makefmt.exe
I can't find the default format file!</pre>
<p>However, I did find a workaround that seemed to solve the problem and I decided to share it. Perform the following steps:</p>
<ol>
<li>Open &#8220;C:\Program Files\MiKTeX 2.8\tex\latex\base\<strong>latex.ltx&#8221;</strong> (or wherever your latex.ltx resides). One alternative path that is different from mine is &#8220;C:\Program Files\MiKTeX\miktex\bin\tex\latex\base&#8221;.</li>
<li>Find &#8220;\ifnum\count@<strong>65</strong>&gt;&#8221; and change it into &#8220;\ifnum\count@&gt;<strong>100</strong>&#8221; (or some number larger than 100)</li>
<li>Save the file.</li>
</ol>
<p>The real problem is not fixed, but at least you should now be able to compile your files.</p>
<p>Note that in Windows Vista and Windows 7 you&#8217;ll have to have administrator access to be able to overwrite this file since <em>Program Files</em> is a system directory. One way to accomplish this is to simply copy the file to let&#8217;s say the desktop, edit it, and then overwrite the original file with the edited file.</p>
<div class="shr-publisher-1062"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2011/06/latex-source-files-more-than-5-years-old/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
		<item>
		<title>Približavanje BiH Evropskoj Uniji</title>
		<link>http://blog.eddsn.com/2011/06/priblizavanje-bih-evropskoj-uniji/</link>
		<comments>http://blog.eddsn.com/2011/06/priblizavanje-bih-evropskoj-uniji/#comments</comments>
		<pubDate>Sat, 11 Jun 2011 13:51:32 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Stripovi]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1053</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p><a href="http://blog.eddsn.com/wp-content/uploads/2011/06/000-Približavanje.BiH_.Evropskoj.Uniji_.jpg"><img class="alignleft size-full wp-image-1054" title="Približavanje BiH Evropskoj Uniji" src="http://blog.eddsn.com/wp-content/uploads/2011/06/000-Približavanje.BiH_.Evropskoj.Uniji_.jpg" alt="Približavanje BiH Evropskoj Uniji" width="617" height="264" /></a></p>
<div class="shr-publisher-1053"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2011/06/priblizavanje-bih-evropskoj-uniji/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>1=2</title>
		<link>http://blog.eddsn.com/2011/05/1-is-equal-to-2/</link>
		<comments>http://blog.eddsn.com/2011/05/1-is-equal-to-2/#comments</comments>
		<pubDate>Sun, 29 May 2011 11:21:39 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[Fallacies]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=1030</guid>
		<description><![CDATA[Assume that and . Then we trivially have &#160;&#160;&#160;&#160; Multiply both sides with &#160;&#160;&#160;&#160; Substract from each side &#160;&#160;&#160;&#160; Rewrite by factorizing &#160;&#160;&#160;&#160; Cancelling from both sides gives &#160;&#160;&#160;&#160; Since and we get &#160;&#160;&#160;&#160;. Q.E.D. ?]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>Assume that <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-44db0db81bdc2def0aa21b7e350d2324_l3.png" class="ql-img-inline-formula" alt="&#97;&#61;&#49;" title="Rendered by QuickLaTeX.com" style="vertical-align: -1px;"/> and <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-3c6ad381dece242cb90ec1e7eee4fc6b_l3.png" class="ql-img-inline-formula" alt="&#98;&#61;&#49;" title="Rendered by QuickLaTeX.com" style="vertical-align: -1px;"/>. Then we trivially have</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-e69295ccf8d8ca292abcc97f861e345f_l3.png" class="ql-img-inline-formula" alt="&#97;&#61;&#98;" title="Rendered by QuickLaTeX.com" style="vertical-align: 0px;"/></p>
<p>Multiply both sides with <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-5c53d6ebabdbcfa4e107550ea60b1b19_l3.png" class="ql-img-inline-formula" alt="&#97;" title="Rendered by QuickLaTeX.com" style="vertical-align: 0px;"/></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-b13d7938ad250809dafa357e3fe88d94_l3.png" class="ql-img-inline-formula" alt="&#97;&#94;&#50;&#61;&#97;&#98;" title="Rendered by QuickLaTeX.com" style="vertical-align: 0px;"/></p>
<p>Substract <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-5685a8e181aafa654ee11308e0ee1127_l3.png" class="ql-img-inline-formula" alt="&#98;&#94;&#50;" title="Rendered by QuickLaTeX.com" style="vertical-align: 0px;"/> from each side</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-44ce73fdbb3408828b8030b81505617e_l3.png" class="ql-img-inline-formula" alt="&#97;&#94;&#50;&#45;&#98;&#94;&#50;&#61;&#97;&#98;&#45;&#98;&#94;&#50;" title="Rendered by QuickLaTeX.com" style="vertical-align: 0px;"/></p>
<p>Rewrite by factorizing</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-d7fea94592a5b5e22e07237d279dd14e_l3.png" class="ql-img-inline-formula" alt="&#40;&#97;&#43;&#98;&#41;&#40;&#97;&#45;&#98;&#41;&#61;&#98;&#40;&#97;&#45;&#98;&#41;" title="Rendered by QuickLaTeX.com" style="vertical-align: -4px;"/></p>
<p>Cancelling <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-5ab5e2adaf0a63382c066ea55b51147c_l3.png" class="ql-img-inline-formula" alt="&#40;&#97;&#45;&#98;&#41;" title="Rendered by QuickLaTeX.com" style="vertical-align: -4px;"/> from both sides gives</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-db2eea30741e0c2f4116aefc42c9c33b_l3.png" class="ql-img-inline-formula" alt="&#97;&#43;&#98;&#61;&#98;" title="Rendered by QuickLaTeX.com" style="vertical-align: -1px;"/></p>
<p>Since <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-44db0db81bdc2def0aa21b7e350d2324_l3.png" class="ql-img-inline-formula" alt="&#97;&#61;&#49;" title="Rendered by QuickLaTeX.com" style="vertical-align: -1px;"/> and <img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-3c6ad381dece242cb90ec1e7eee4fc6b_l3.png" class="ql-img-inline-formula" alt="&#98;&#61;&#49;" title="Rendered by QuickLaTeX.com" style="vertical-align: -1px;"/> we get</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://blog.eddsn.com/wp-content/ql-cache/quicklatex.com-0d6806b164097385ec63b34e05c7a235_l3.png" class="ql-img-inline-formula" alt="&#50;&#61;&#49;" title="Rendered by QuickLaTeX.com" style="vertical-align: -1px;"/>.</p>
<p>Q.E.D. ?</p>
<div class="shr-publisher-1030"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2011/05/1-is-equal-to-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Store WordPress content in PHP variables</title>
		<link>http://blog.eddsn.com/2011/05/store-wordpress-content-in-php-variables/</link>
		<comments>http://blog.eddsn.com/2011/05/store-wordpress-content-in-php-variables/#comments</comments>
		<pubDate>Sat, 28 May 2011 13:08:17 +0000</pubDate>
		<dc:creator>eddsn</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.eddsn.com/?p=990</guid>
		<description><![CDATA[WordPress is a great tool for blogging, but can also be integrated in a website to provide a simple content management system. In this post I&#8217;m going to address the issue of the WordPress functions where they print the output directly and show how to catch this output in a variable. After integrating WordPress in [...]]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p><a href="http://wordpress.org/">WordPress</a> is a great tool for blogging, but can also be <a href="http://codex.wordpress.org/Integrating_WordPress_with_Your_Website">integrated</a> in a website to provide a simple <a href="http://en.wikipedia.org/wiki/Content_Management_System">content management system</a>. In this post I&#8217;m going to address the issue of the WordPress functions where they print the output directly and show how to catch this output in a variable.</p>
<p><span id="more-990"></span><br />
After integrating WordPress in your code, post content can easily be queried by using the <a href="http://codex.wordpress.org/Function_Reference/query_posts">query_posts</a> function. Along with some extra functions and setup, in the example below we show the last 10 posts orderedy by the post title (descending) from post category 3.</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="co1">// Get all posts</span><br />
<span class="re0">$posts</span> = get_posts<span class="br0">&#40;</span><span class="st0">&quot;numberposts=10&amp;amp;order=DSC&amp;amp;orderby=post_title&amp;amp;cat=3&quot;</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">// Output each post</span><br />
<a href="http://www.php.net/global"><span class="kw3">global</span></a> <span class="re0">$post</span>;<br />
<span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$posts</span> <span class="kw1">as</span> <span class="re0">$post</span><span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; setup_postdata<span class="br0">&#40;</span><span class="re0">$post</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;&lt;h2&gt;&#8217;</span>;<br />
&nbsp; &nbsp; the_title<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;&lt;/h2&gt;&#8217;</span>;<br />
&nbsp; &nbsp; the_content<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw1">endforeach</span>;</div>
<p>&nbsp;<br />
The functions <code>the_title()</code> and <code>the_content()</code> in the above example output the content directly on the web page, so it is important to place the code exactly there where you want the content to be showed.</p>
<p>However, in some more dynamic environments you might want to generate your content before you actually display it on the web page. That is, one can require the content to be stored in a variable that is to be printed later on or used for further processing before displaying it.</p>
<p>It is not possible to simply use</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re0">$variable</span> = the_title<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
<p>&nbsp;<br />
since you cannot catch an already echoed value into a variable.</p>
<p>To solve this problem we can use <a href="http://php.net/manual/en/book.outcontrol.php">output buffering</a> to buffer our (local) output and in that way catch our printed content. It is not necessary to understand how output buffering works exactly, so you can just look at the extended code below which demonstrates how the previously showed code example can be transformed to accomplish the desired result.</p>
<div class="dean_ch" style="white-space: wrap;">
<a href="http://www.php.net/ob_start"><span class="kw3">ob_start</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">// Get all posts</span><br />
<span class="re0">$posts</span> = get_posts<span class="br0">&#40;</span><span class="st0">&quot;numberposts=10&amp;amp;order=DSC&amp;amp;orderby=post_title&amp;amp;cat=3&quot;</span><span class="br0">&#41;</span>;</p>
<p><span class="co1">// Output each post</span><br />
<a href="http://www.php.net/global"><span class="kw3">global</span></a> <span class="re0">$post</span>;<br />
<span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$posts</span> <span class="kw1">as</span> <span class="re0">$post</span><span class="br0">&#41;</span>:<br />
&nbsp; &nbsp; setup_postdata<span class="br0">&#40;</span><span class="re0">$post</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;&lt;h2&gt;&#8217;</span>;<br />
&nbsp; &nbsp; the_title<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; <a href="http://www.php.net/echo"><span class="kw3">echo</span></a> <span class="st0">&#8216;&lt;/h2&gt;&#8217;</span>;<br />
&nbsp; &nbsp; the_content<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<span class="kw1">endforeach</span>;</p>
<p><span class="re0">$variable</span> = <a href="http://www.php.net/ob_get_contents"><span class="kw3">ob_get_contents</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<a href="http://www.php.net/ob_end_clean"><span class="kw3">ob_end_clean</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
<p>&nbsp;<br />
So essentially you start your output buffering by placing <code>ob_start()</code> before the actual code you want to buffer, and similarly <code>ob_end_clean()</code> when you want the buffering to be finished. To save all the output data you simply use the output of <code>ob_get_contents()</code> and place it in a variable. Note that you have to use <code>ob_get_contents()</code> before calling <code>ob_end_clean()</code> since the latter will clear the buffer.</p>
<div class="shr-publisher-990"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->
]]></content:encoded>
			<wfw:commentRss>http://blog.eddsn.com/2011/05/store-wordpress-content-in-php-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

