<?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>Hodžův blog</title>
	<atom:link href="http://hodza.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://hodza.net</link>
	<description>I přestože jsem paranoidní neznamená, že mě nedostanou...</description>
	<lastBuildDate>Sun, 05 May 2013 10:39:04 +0000</lastBuildDate>
	<language>cs-CZ</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>RepRap – první tisk</title>
		<link>http://hodza.net/2013/05/05/reprap-prvni-tisk/</link>
		<comments>http://hodza.net/2013/05/05/reprap-prvni-tisk/#comments</comments>
		<pubDate>Sun, 05 May 2013 10:31:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RepRap]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2287</guid>
		<description><![CDATA[Po úspěšném sestavení 3D tiskárny zde máme první tisk. Nejedná se prozatím o nějaký profesionální výstup &#8211; tiskárna je sice po vzhledové stránce nepatrně &#8222;učesaná&#8220;, nicméně touha tisknout zvítězila nad nutností kalibrovat. Z tohoto důvodu je na prvním výtisku (testovací čtverec)  jasně vidět nedostatek hmoty a velké rozestupy. I tak ale považuji výstup za úspěch. [...]]]></description>
				<content:encoded><![CDATA[<p><a title="RepRap - už skoro tiskneme" href="http://hodza.net/2013/04/29/reprap-uz-skoro-tiskneme/" target="_blank">Po úspěšném sestavení 3D tiskárny</a> zde máme první tisk. Nejedná se prozatím o nějaký profesionální výstup &#8211; tiskárna je sice po vzhledové stránce nepatrně &#8222;učesaná&#8220;, nicméně touha tisknout zvítězila nad nutností kalibrovat. Z tohoto důvodu je na prvním výtisku (testovací čtverec)  jasně vidět nedostatek hmoty a velké rozestupy. I tak ale považuji výstup za úspěch. U druhého výrobku (respektive jeho malé části) nastal další problém &#8211; chybějící sklo na hotbedu. Po vzoru &#8222;co dům dal&#8220; jsme ho nahradili keramickou kachličkou, což se neosvědčilo z důvodů dlouhého vyhřívání, nerovnosti a velkých tepelných ztrát. Ani tisk přímo na hot-bed není to pravé ořechové, neboť po zahřátí má tvar &#8211; cočky, což má samozřejmně neblahý vliv na výslednou kvalitu samotného tisku. Jak jsme ve finále dopadli se můžete kouknout zde:</p>
<p><iframe width="500" height="281" src="http://www.youtube.com/embed/-IXPpyE5NLY?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2013/05/05/reprap-prvni-tisk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RepRap &#8211; už skoro tiskneme</title>
		<link>http://hodza.net/2013/04/29/reprap-uz-skoro-tiskneme/</link>
		<comments>http://hodza.net/2013/04/29/reprap-uz-skoro-tiskneme/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 13:45:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RepRap]]></category>
		<category><![CDATA[3D tisk]]></category>
		<category><![CDATA[extruder]]></category>
		<category><![CDATA[hot bed]]></category>
		<category><![CDATA[hot end]]></category>
		<category><![CDATA[pronterface]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2284</guid>
		<description><![CDATA[Nemožné se stalo skutečností &#8211; po 6 měsících jsem se dokopal k tomu, abych provedl stavbu své první 3D tiskárny.  Aktuálně jsem ve fázi kdy je vše funkční (osy x,y a z;  extruder; hot end; hot bed).  Zbývá udělat drobné kosmetické úpravy, koupit nějaké odolné sklo na tisk a nakalibrovat. Tisknout budu z PLA a [...]]]></description>
				<content:encoded><![CDATA[<p>Nemožné se stalo skutečností &#8211; po 6 měsících jsem se dokopal k tomu, abych provedl stavbu své první 3D tiskárny.  Aktuálně jsem ve fázi kdy je vše funkční (osy x,y a z;  extruder; hot end; hot bed).  Zbývá udělat drobné kosmetické úpravy, koupit nějaké odolné sklo na tisk a nakalibrovat. Tisknout budu z PLA a ABS &#8211; obojí naštěstí nově  vyrábí a dodává <a title="Plasty Mladeč" href="http://www.plastymladec.cz/">Plasty Mladeč</a>, které mám de-facto za rohem.</p>
<p>Na první test (testováno z rozhraní pronterface) se můžete kouknout zde:</p>
<p><iframe width="500" height="281" src="http://www.youtube.com/embed/WsO9g6MbO5A?feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2013/04/29/reprap-uz-skoro-tiskneme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo fix a mdadm problem auto-read-only or resync=PENDING</title>
		<link>http://hodza.net/2012/11/26/howto-fix-a-mdadm-problem-auto-read-only-or-resyncpending/</link>
		<comments>http://hodza.net/2012/11/26/howto-fix-a-mdadm-problem-auto-read-only-or-resyncpending/#comments</comments>
		<pubDate>Mon, 26 Nov 2012 11:17:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2249</guid>
		<description><![CDATA[Mdadm problem after new install of Debian GNU Linux. root@n40l:~# cat /proc/mdstat Personalities : [raid1] [raid6] [raid5] [raid4] md3 : active (auto-read-only) raid5 sdc1[0] sde1[2] sdd1[1] 3907025920 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU] resync=PENDING md2 : active raid1 sda3[0] sdb3[2] 235885432 blocks super 1.2 [2/2] [UU] md1 : active (auto-read-only) [...]]]></description>
				<content:encoded><![CDATA[<p>Mdadm problem after new install of Debian GNU Linux.<br />
<code>root@n40l:~# cat /proc/mdstat<br />
Personalities : [raid1] [raid6] [raid5] [raid4]<br />
md3 : active (auto-read-only) raid5 sdc1[0] sde1[2] sdd1[1]<br />
3907025920 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]<br />
resync=PENDING<br />
md2 : active raid1 sda3[0] sdb3[2]<br />
235885432 blocks super 1.2 [2/2] [UU]<br />
md1 : active (auto-read-only) raid1 sda2[0] sdb2[2]<br />
7811060 blocks super 1.2 [2/2] [UU]<br />
md0 : active raid1 sda1[0] sdb1[2]<br />
498676 blocks super 1.2 [2/2] [UU]<br />
unused devices:<br />
</code></p>
<p>To fix this issue run simple command<br />
<code>mdadm --readwrite /dev/md3</code></p>
<p>Replace /dev/md3 with your md number and check /proc/mdstat</p>
<p><code>root@n40l:~# cat /proc/mdstat<br />
Personalities : [raid1] [raid6] [raid5] [raid4]<br />
md3 : active raid5 sdc1[0] sde1[2] sdd1[1]<br />
3907025920 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]<br />
[&gt;....................] resync = 1.6% (31362056/1953512960) finish=1984.3min speed=16132K/sec<br />
md2 : active raid1 sda3[0] sdb3[2]<br />
235885432 blocks super 1.2 [2/2] [UU]<br />
md1 : active (auto-read-only) raid1 sda2[0] sdb2[2]<br />
7811060 blocks super 1.2 [2/2] [UU]<br />
md0 : active raid1 sda1[0] sdb1[2]<br />
498676 blocks super 1.2 [2/2] [UU]<br />
unused devices: </code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2012/11/26/howto-fix-a-mdadm-problem-auto-read-only-or-resyncpending/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo block facebook with iptables</title>
		<link>http://hodza.net/2012/03/18/howto-block-facebook-with-iptables/</link>
		<comments>http://hodza.net/2012/03/18/howto-block-facebook-with-iptables/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 10:50:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bezpečnost]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2213</guid>
		<description><![CDATA[Insert these lines into your firewall: iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j REJECT --reject-with tcp-reset iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j REJECT --reject-with tcp-reset iptables -t filter -I FORWARD -s 192.168.0.0/24 [...]]]></description>
				<content:encoded><![CDATA[<p>Insert these lines into your firewall:<br />
<code>iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.171.220.0-69.171.234.255 -–dport 443 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 443 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 80 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.171.220.0-69.171.234.255 -–dport 80 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 80 -j REJECT --reject-with tcp-reset<br />
iptables -t filter -I FORWARD -s 192.168.0.0/24 -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 80 -j REJECT --reject-with tcp-reset<br />
</code><br />
Pretty simply eh?</p>
<p><i>Update 1.4.2012:</i><br />
<a title="Facebook subnets" href="http://whois.arin.net/rest/org/THEFA-3/nets" target="_blank">Registered Facebook subnets (ARIN)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2012/03/18/howto-block-facebook-with-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo Install Latest Redmine on Debian 6 (Squeeze, Ruby-on-Rails, Apache2 Passenger)</title>
		<link>http://hodza.net/2012/03/15/howto-install-redmine-on-debian-6-squeeze-ruby-on-rails-apache2-passenger/</link>
		<comments>http://hodza.net/2012/03/15/howto-install-redmine-on-debian-6-squeeze-ruby-on-rails-apache2-passenger/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 14:13:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ostatní]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Redmine]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2191</guid>
		<description><![CDATA[This is a short .bash_history manual&#8230; First install fresh Debian Squueze from businesscard (when selecting packages uncheck ALL). Correct hostname: # vi /etc/hostname server.example.com # hostname -F /etc/hostname # exit Edit hosts file (delete all IPv6 entries): # vi /etc/hosts 127.0.0.1 localhost.localdomain localhost localdomain 1.2.3.4 server.example.com server Install ssh server and best editor : # [...]]]></description>
				<content:encoded><![CDATA[<p>This is a short .bash_history manual&#8230;</p>
<p>First install fresh Debian Squueze from <a title="Debian Businesscard 64bit" href="http://cdimage.debian.org/debian-cd/6.0.4/ia64/iso-cd/debian-6.0.4-ia64-businesscard.iso">businesscard</a> (when selecting packages uncheck ALL).</p>
<p>Correct hostname:<br />
<code># vi /etc/hostname<br />
server.example.com</code><br />
<span id="more-2191"></span><br />
<code># hostname -F /etc/hostname<br />
# exit</code></p>
<p>Edit hosts file (delete all IPv6 entries):<br />
<code># vi /etc/hosts<br />
127.0.0.1 localhost.localdomain localhost localdomain<br />
1.2.3.4 server.example.com server</code></p>
<p>Install ssh server and best editor <img src='http://hodza.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> :<br />
<code># aptitude -y install ssh fail2ban vim-nox</code></p>
<p>Set default system editor (select /usr/bin/vim.nox):<br />
<code># update-alternatives --config editor</code></p>
<p>Add contrib and non-free repositories:<br />
<code># perl -i -pe 's/main/main contrib non-free/;' /etc/apt/sources.list<br />
# aptitude update<br />
# aptitude full-upgrade</code></p>
<p>Disable IPv6 globally:<br />
<code># echo "net.ipv6.conf.all.disable_ipv6 = 1" &gt;&gt; /etc/sysctl.conf<br />
# /sbin/sysctl -p /etc/sysctl.conf</code></p>
<p>Remove unwanted packages:<br />
<code># /etc/init.d/mpt-statusd stop<br />
# aptitude -y purge mpt-status</code></p>
<p>Fix Locales and Time Zone:<br />
<code># dpkg-reconfigure locales<br />
# dpkg-reconfigure tzdata</code></p>
<p>Install NTP server:<br />
<code># aptitude -y install ntpdate<br />
# ntpdate tik.cesnet.cz<br />
# aptitude install ntp</code><br />
<code># vi /etc/ntp.conf<br />
driftfile /var/lib/ntp/ntp.drift<br />
statistics loopstats peerstats clockstats<br />
filegen loopstats file loopstats type day enable<br />
filegen peerstats file peerstats type day enable<br />
filegen clockstats file clockstats type day enable<br />
server 0.debian.pool.ntp.org iburst<br />
server 1.debian.pool.ntp.org iburst<br />
server 2.debian.pool.ntp.org iburst<br />
server 3.debian.pool.ntp.org iburst<br />
restrict -4 default kod notrap nomodify nopeer noquery<br />
restrict 127.0.0.1</code></p>
<p><code># /etc/init.d/ntp restart<br />
# ntpq -p</code></p>
<p>Install Postfix mail server:<br />
<code># apt-get -y install postfix bsd-mailx</code></p>
<p><code># vi /etc/postfix/main.cf<br />
inet_interfaces = all<br />
inet_protocols = all<br />
mynetworks_style = host<br />
mynetworks = 127.0.0.0/8<br />
myhostname = server.example.com<br />
mydomain = example.com<br />
myorigin = $mydomain<br />
smtpd_banner = $myhostname ESMTP<br />
mydestination = localhost, localdomain, localhost.localdomain<br />
append_dot_mydomain = no<br />
append_at_myorigin = yes<br />
alias_maps = hash:/etc/aliases<br />
alias_database = hash:/etc/aliases<br />
biff = no<br />
recipient_delimiter = +<br />
mailbox_size_limit = 0<br />
mailbox_command = procmail -a "$EXTENSION"<br />
smtpd_helo_required = yes<br />
smtpd_helo_restrictions = permit_mynetworks,<br />
permit_sasl_authenticated,<br />
reject_invalid_helo_hostname<br />
smtpd_sender_restrictions = reject_non_fqdn_sender,<br />
reject_unknown_sender_domain,<br />
permit_mynetworks,<br />
permit_sasl_authenticated<br />
smtpd_recipient_restrictions = reject_non_fqdn_recipient,<br />
reject_unknown_recipient_domain,<br />
permit_mynetworks,<br />
permit_sasl_authenticated,<br />
reject_unauth_destination,<br />
reject_unlisted_recipient,<br />
permit<br />
smtpd_data_restrictions = reject_multi_recipient_bounce,<br />
reject_unauth_pipelining</code></p>
<p>Restart mail server:<br />
<code># /etc/init.d/postfix restart</code></p>
<p>Send test email:<br />
<code># echo "Test message" | mailx example@example.com</code></p>
<p>Install MySQL server:<br />
<code># aptitude install mysql-server mysql-client libmysqlclient-dev</code></p>
<p>Fine tunnig MySQL server:<br />
<code># mysql_secure_installation</code></p>
<p>Create MySQL database and user for Redmine:<br />
<code>mysql -u root -p</code><br />
<code>CREATE DATABASE redmine CHARACTER SET utf8;<br />
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';<br />
GRANT ALL privileges ON redmine.* TO 'redmine'@'localhost';<br />
quit</code></p>
<p>Install Ruby &amp; unnecessary tools:<br />
<code># aptitude install ruby libruby libopenssl-ruby libpgsql-ruby rubygems apache2 libapache2-mod-passenger subversion<br />
# cd /var/www/<br />
# svn co http://redmine.rubyforge.org/svn/branches/1.3-stable redmine<br />
# cd redmine/<br />
# cp config/database.yml.example config/database.yml</code></p>
<p>Configure redmine database:<br />
<code># vi config/database.yml<br />
production:<br />
adapter: mysql<br />
database: redmine<br />
host: localhost<br />
username: redmine<br />
password: my_password<br />
encoding: utf8</code></p>
<p>Install Rails &#038; populate database &#038; fix permission:<br />
<code># gem install rails -v 2.3.14<br />
# gem install rake -v 0.8.7<br />
# gem uninstall rake -v 0.9.2.2<br />
# gem install i18n<br />
# gem install mysql<br />
# gem install rdoc<br />
# RAILS_ENV=production /var/lib/gems/1.8/bin/rake config/initializers/session_store.rb<br />
# /var/lib/gems/1.8/bin/rake generate_session_store<br />
# RAILS_ENV=production /var/lib/gems/1.8/bin/rake db:migrate<br />
# RAILS_ENV=production /var/lib/gems/1.8/bin/rake redmine:load_default_data<br />
# cd /var/www/redmine<br />
# chown -R www-data:www-data ./*<br />
# chmod -R 755 files log tmp public/plugin_assets</code></p>
<p>Configure Apache Web server:<br />
<code># vi /etc/apache2/sites-available/default<br />
ServerName example.com<br />
Serveralias www.example.com<br />
ServerAdmin example@example.com<br />
DocumentRoot /var/www/redmine/public<br />
PassengerDefaultUser www-data<br />
RailsEnv production<br />
RailsBaseURI /redmine<br />
SetEnv X_DEBIAN_SITEID "default"<br />
Order allow,deny<br />
Allow from all<br />
AllowOverride all<br />
Options -MultiViews</code></p>
<p>Fine tunning Apache:<br />
<code># perl -i -pe 's/TraceEnable Off/#TraceEnable Off/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/#TraceEnable On/TraceEnable On/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/ServerSignature On/#ServerSignature On/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/#ServerSignature Off/ServerSignature Off/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/ServerTokens OS/#ServerTokens OS/;' /etc/apache2/conf.d/security<br />
# perl -i -pe 's/#ServerTokens Minimal/ServerTokens Minimal/;' /etc/apache2/conf.d/security</code><br />
<code># /etc/init.d/apache2 restart</code></p>
<p>That&#8217;s all folks&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2012/03/15/howto-install-redmine-on-debian-6-squeeze-ruby-on-rails-apache2-passenger/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Where can I find repository for debian etch packages?</title>
		<link>http://hodza.net/2012/03/06/where-can-i-find-repository-for-debian-etch-packages/</link>
		<comments>http://hodza.net/2012/03/06/where-can-i-find-repository-for-debian-etch-packages/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 16:59:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2182</guid>
		<description><![CDATA[All Debian releases are archived at archive.debian.org, so: deb http://archive.debian.org/debian/ etch main non-free contrib deb http://archive.debian.org/debian-security/ etch/updates main non-free contrib deb http://archive.debian.org/debian-volatile/ etch/volatile main non-free contrib deb-src http://archive.debian.org/debian/ etch main non-free contrib deb-src http://archive.debian.org/debian-security/ etch/updates main non-free contrib deb-src http://archive.debian.org/debian-volatile/ etch/volatile main non-free contrib]]></description>
				<content:encoded><![CDATA[<p>All Debian releases are archived at archive.debian.org, so:<br />
<code>deb http://archive.debian.org/debian/ etch main non-free contrib<br />
deb http://archive.debian.org/debian-security/ etch/updates main non-free contrib<br />
deb http://archive.debian.org/debian-volatile/ etch/volatile main non-free contrib<br />
deb-src http://archive.debian.org/debian/ etch main non-free contrib<br />
deb-src http://archive.debian.org/debian-security/ etch/updates main non-free contrib<br />
deb-src http://archive.debian.org/debian-volatile/ etch/volatile main non-free contrib</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2012/03/06/where-can-i-find-repository-for-debian-etch-packages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Oprava nefunkční digestoře Ariston</title>
		<link>http://hodza.net/2011/10/03/oprava-nefunkcni-digestore-ariston/</link>
		<comments>http://hodza.net/2011/10/03/oprava-nefunkcni-digestore-ariston/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 10:46:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Ostatní]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ze života]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2137</guid>
		<description><![CDATA[Po necelých šesti letech provozu se mi rozbila &#8222;značková&#8220; digestoř Ariston. Nejprve přestala odsávat a následně i svítit. Tak trochu z lenosti a tak trochu z nedostatku času jsem zavolal do servisu, kolik by stála nová elektronika. Když jsem od technika následně zjistil, že cena základní desky odpovídá dvoum třetinám ceny nové digestoře, rozhodl jsem [...]]]></description>
				<content:encoded><![CDATA[<p>Po necelých šesti letech provozu se mi rozbila &#8222;značková&#8220; digestoř Ariston. Nejprve přestala odsávat a následně i svítit. Tak trochu z lenosti a tak trochu z nedostatku času jsem zavolal do servisu, kolik by stála nová elektronika. Když jsem od technika následně zjistil, že cena základní desky odpovídá dvoum třetinám ceny nové digestoře, rozhodl jsem se, že si ji opravím sám.</p>
<p>Odstavil jsem přívod elektrického proudu (nevěřili byste, jak visící dráty pod napětím přitahují kočky), popadl šroubovák a digestoř demontoval. Pod hromadou plechů ostrých jako břitva jsem nalezl malou plastovou krabičku jenž obsahuje elektroniku a zároveň slouží jako držák objímek pro žárovky.</p>
<p><div id="attachment_2138" class="wp-caption aligncenter" style="width: 310px"><a href="http://hodza.net/wp-content/uploads/2011/10/ariston_vnitrnosti.jpg"><img class="aligncenter size-medium wp-image-2138" title="ariston_vnitrnosti" src="http://hodza.net/wp-content/uploads/2011/10/ariston_vnitrnosti-300x179.jpg" alt="Uložení elektroniky u digestoře Ariston" width="300" height="179" /></a><p class="wp-caption-text">Uložení elektroniky u digestoře Ariston</p></div><br />
<span id="more-2137"></span><br />
V první fázi jsem vymontoval desku plošných spojů. Pojistku jsem žádnou bohužel nenašel. Proměřil jsem tedy postupně všechny diody, cívky, rezistory a kondenzátory. Kromě odporů, které vykazovaly větší či menší odchylky (což bych spíše než opotřebením/stářím přisoudil špatné výrobě) bylo vše v pořádku. Na desce na mě ale koukaly ještě tři součástky. Jednak to byl mikrokontrolér (modlil jsem se aby chyba nebyla v něm) a dále pak dvojice triodových spínačů střídavého proudu. Tyto jsem &#8222;hodil na měřák&#8220; a poté s blaženým úsměvem na rtech konstatoval, že chyba musí být zde.</p>
<div id="attachment_2139" class="wp-caption aligncenter" style="width: 310px"><a href="http://hodza.net/wp-content/uploads/2011/10/ariston_pcb_top.jpg"><img class="size-medium wp-image-2139" title="ariston_pcb_top" src="http://hodza.net/wp-content/uploads/2011/10/ariston_pcb_top-300x179.jpg" alt="" width="300" height="179" /></a><p class="wp-caption-text">Elektronika u digestoře Ariston (pohled z vrchu)</p></div>
<div id="attachment_2140" class="wp-caption aligncenter" style="width: 310px"><a href="http://hodza.net/wp-content/uploads/2011/10/ariston_pcb_bottom.jpg"><img class="aligncenter size-medium wp-image-2140" title="ariston_pcb_bottom" src="http://hodza.net/wp-content/uploads/2011/10/ariston_pcb_bottom-300x179.jpg" alt="Elektronika u digestoře Ariston (pohled ze spodu)" width="300" height="179" /></a><p class="wp-caption-text">Elektronika u digestoře Ariston (pohled ze spodu)</p></div>
<p>U obou triaků jsem naměřil zkrat mezi první anodou a společnou řídící elektrodou (piny 1 a 3 při pohledu zepředu). Součástky jsem vypájel a vydal se do obchodu. Stejný triak jsem bohužel nesehnal, ale vzal jsem typově nejbližší s označením TI225M. TI225M má stejné pouzdro jako originál (TO-220) a dokonce i stejné rozmístění pinů. Dokáže spínat proudy do 8A na napětí 400-600V (ve špičkách až 70A). Maximální proud na řídící elektrodě je 5mA (v prvním kvadrantu). Cena součástky je 22Kč s DPH za jeden kus (potřeba jsou dva &#8211; jeden pro světlo a druhý pro ventilátor).</p>
<div id="attachment_2141" class="wp-caption aligncenter" style="width: 189px"><a href="http://hodza.net/wp-content/uploads/2011/10/triak_ko.jpeg"><img class="aligncenter size-medium wp-image-2141" title="triak_ko" src="http://hodza.net/wp-content/uploads/2011/10/triak_ko-179x300.jpg" alt="Vadný triak u digestoře Ariston" width="179" height="300" /></a><p class="wp-caption-text">Vadný triak u digestoře Ariston</p></div>
<div id="attachment_2142" class="wp-caption aligncenter" style="width: 189px"><a href="http://hodza.net/wp-content/uploads/2011/10/triak_ok.jpeg"><img class="size-medium wp-image-2142" title="triak_ok" src="http://hodza.net/wp-content/uploads/2011/10/triak_ok-179x300.jpg" alt="" width="179" height="300" /></a><p class="wp-caption-text">Nový triak TI225M do digestoře Ariston</p></div>
<p>V druhé fázi jsem vyměnil &#8222;vyběhané&#8220; ovládací mikrospínače (co kus to čtyři koruny). Sice ještě fungovaly, ale když už jsem to měl rozdělané&#8230; Zvláštní péči jsem věnoval i objímkám pro žárovky. Kontaktní plíšky pro žárovku jsem očistil, odmastil a nakonec pro lepší pocit i trošku přihnul směrem k žárovce.</p>
<p>Ve finále jsem vše smontoval zapnul zdroj proudu &#8211; voilà vše fungovalo.</p>
<p>Suma sumárum to tedy bylo 64 Korun za triaky a spínače + půl hodiny práce včetně cesty do obchodu. Nejsem sice na Korunu, ale je to trošku rozdíl oproti nabízené nové elektronice za několik tisíc&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/10/03/oprava-nefunkcni-digestore-ariston/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo resolve ProFTPD problem: Fatal: unknown configuration directive &#8218;SQLHomedirOnDemand&#8216; on line xxx of &#8218;/etc/proftpd/proftpd.conf&#8216;</title>
		<link>http://hodza.net/2011/09/02/howto-resolve-problem-fatal-unknown-configuration-directive-sqlhomedirondemand-on-line-xxx-of-etcproftpdproftpd-conf/</link>
		<comments>http://hodza.net/2011/09/02/howto-resolve-problem-fatal-unknown-configuration-directive-sqlhomedirondemand-on-line-xxx-of-etcproftpdproftpd-conf/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 11:21:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2125</guid>
		<description><![CDATA[This directive has been deprecated with ProFTPD 1.3.1rc1. Please use CreateHome instead. http://www.proftpd.org/docs/howto/CreateHome.html]]></description>
				<content:encoded><![CDATA[<p>This directive has been deprecated with ProFTPD 1.3.1rc1. Please use CreateHome instead.</p>
<p><a title="ProFTPD's CreateHome" href="http://www.proftpd.org/docs/howto/CreateHome.html" target="_blank">http://www.proftpd.org/docs/howto/CreateHome.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/09/02/howto-resolve-problem-fatal-unknown-configuration-directive-sqlhomedirondemand-on-line-xxx-of-etcproftpdproftpd-conf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo install Oracle Instant Client and PHP OCI8 module under Debian Squueze (Ubuntu) 64bit</title>
		<link>http://hodza.net/2011/08/01/howto-install-oracle-instant-client-and-php-oci8-module-under-debian-squueze-ubuntu-64bit/</link>
		<comments>http://hodza.net/2011/08/01/howto-install-oracle-instant-client-and-php-oci8-module-under-debian-squueze-ubuntu-64bit/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 12:22:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2099</guid>
		<description><![CDATA[1) Download the Basic and the SDK packages from http://www.oracle.com (registration needed). # mkdir -p /opt/oracle/instantclient # cd /opt/oracle/instantclient # wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-basic-linux-x86-64-11.2.0.2.0.zip # wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-sdk-linux-x86-64-11.2.0.2.0.zip" 2) Unzip files, move it in correct location and delete unnecessary archives unzip instantclient-basic-linux-x86-64-11.2.0.2.0.zip unzip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip mv instantclient_11_2/* ./ rm -r instantclient_11_2/ instantclient-basic-linux-x86-64-11.2.0.2.0.zip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip 3) Craate missing simlinks ln -s [...]]]></description>
				<content:encoded><![CDATA[<p>1) Download the Basic and the SDK packages from http://www.oracle.com (registration needed).<br />
<code># mkdir -p /opt/oracle/instantclient<br />
# cd /opt/oracle/instantclient<br />
# wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-basic-linux-x86-64-11.2.0.2.0.zip<br />
# wget http://download.oracle.com/otn/linux/instantclient/112020/instantclient-sdk-linux-x86-64-11.2.0.2.0.zip"<br />
</code><br />
<span id="more-2099"></span><br />
2) Unzip files, move it in correct location and delete unnecessary archives<br />
<code>unzip instantclient-basic-linux-x86-64-11.2.0.2.0.zip<br />
unzip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip<br />
mv instantclient_11_2/* ./<br />
rm -r instantclient_11_2/ instantclient-basic-linux-x86-64-11.2.0.2.0.zip instantclient-sdk-linux-x86-64-11.2.0.2.0.zip<br />
</code></p>
<p>3) Craate missing simlinks<br />
<code>ln -s libclntsh.so.10.1 libclntsh.so<br />
ln -s libocci.so.10.1 libocci.so</code></p>
<p>4) Install packages<br />
<code># aptitude install build-essential php5-dev php-pear libaio1 </code><br />
<code># pecl install oci8 (on question reply: instantclient,/opt/oracle/instantclient)</code></p>
<p>5) Enable the oci8 module in the php.ini<br />
<code># vi /etc/php5/apache2/php.ini<br />
extension=oci8.so (put this line after the examples starting with ;Dynamic Extension).</code><br />
<code># vi /etc/php5E/cli/php.ini<br />
extension=oci8.so (put this line after the examples starting with ;Dynamic Extension).</code></p>
<p>6) Restart Apache Web server<br />
<code>/etc/init.d/apache2 restart</code></p>
<p>Now stop and start Apache. You should see the oci8 module in the output of phpinfo().</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/08/01/howto-install-oracle-instant-client-and-php-oci8-module-under-debian-squueze-ubuntu-64bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo fix a problem &#8222;DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha&#8220; in Pyzor</title>
		<link>http://hodza.net/2011/07/30/howto-fix-a-problem-deprecationwarning-the-sha-module-is-deprecated-use-the-hashlib-module-instead-import-sha-in-pyzor/</link>
		<comments>http://hodza.net/2011/07/30/howto-fix-a-problem-deprecationwarning-the-sha-module-is-deprecated-use-the-hashlib-module-instead-import-sha-in-pyzor/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 18:02:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scriptíky]]></category>
		<category><![CDATA[Smtp]]></category>

		<guid isPermaLink="false">http://hodza.net/?p=2096</guid>
		<description><![CDATA[After a fresh Pyzor install I&#8217;m getting this error message: # aptitude install pyzor # pyzor discover /usr/lib/pymodules/python2.6/pyzor/__init__.py:11: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5 import multifile downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x A simple fix for this problem exists. Open [...]]]></description>
				<content:encoded><![CDATA[<p>After a fresh Pyzor install I&#8217;m getting this error message:<br />
<code># aptitude install pyzor<br />
# pyzor discover<br />
/usr/lib/pymodules/python2.6/pyzor/__init__.py:11: DeprecationWarning: the sha module is deprecated; use the hashlib module instead<br />
  import sha<br />
/usr/lib/pymodules/python2.6/pyzor/client.py:12: DeprecationWarning: the multifile module has been deprecated since Python 2.5<br />
  import multifile<br />
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x<br />
</code><br />
<span id="more-2096"></span><br />
A simple fix for this problem exists. Open file /usr/bin/pyzor.<br />
<code># vi /usr/bin/pyzor</code></p>
<p>Delete line<br />
<code>#!/usr/bin/python</code></p>
<p>And insert this new one<br />
<code>#!/usr/bin/python -Wignore::DeprecationWarning</code><br />
Test it<br />
<code># pyzor discover<br />
downloading servers from http://pyzor.sourceforge.net/cgi-bin/inform-servers-0-3-x</code></p>
<p>That&#8217;s all folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://hodza.net/2011/07/30/howto-fix-a-problem-deprecationwarning-the-sha-module-is-deprecated-use-the-hashlib-module-instead-import-sha-in-pyzor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
