<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1825264351153558979</id><updated>2012-02-16T15:32:30.707-08:00</updated><title type='text'>Computer engineering, automatization &amp; programming</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-2686721852022175491</id><published>2011-08-19T08:30:00.000-07:00</published><updated>2011-08-19T08:30:01.546-07:00</updated><title type='text'>Ruby on Rails 3, scaffold_controller not works, solution with Niftygenerators</title><content type='html'>As I tried to use&amp;nbsp;scaffold_controller on Ruby On Rails 3, to create controller and view, and generated code was not working, I tried niftygenerators and they work.&lt;br /&gt;This is how you can use them:&lt;br /&gt;Edit you Gemfile (in root of your project) and add&lt;br /&gt;&lt;span class="Apple-style-span" style="background-color: #f8f8f8; font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="-webkit-box-shadow: rgba(0, 0, 0, 0.0664063) 0px 1px 2px inset; background-color: #eeeeee; border-bottom-color: rgb(221, 221, 221); border-bottom-left-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-top-style: solid; border-top-width: 1px; color: #444444; font-size: 12px; font: normal normal normal 12px/normal 'Bitstream Vera Sans Mono', Courier, monospace; margin-bottom: 1em; margin-top: 1em; overflow-x: auto; overflow-y: auto; padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;"&gt;gem "nifty-generators", :group =&amp;gt; :development&lt;/pre&gt;&lt;br /&gt;after that, you can run&lt;br /&gt;&lt;blockquote&gt;bundle install&lt;/blockquote&gt;to install gem&lt;br /&gt;&lt;br /&gt;After that, you can do&lt;br /&gt;&lt;blockquote&gt;rails g nifty:scaffold ModelName&lt;/blockquote&gt;and after that we must create layout:&lt;br /&gt;&lt;blockquote&gt;rails g nifty:layout&lt;/blockquote&gt;That will&amp;nbsp;successfully create controller and view from your ActiveRecord.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-2686721852022175491?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/2686721852022175491/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/08/ruby-on-rails-3-scaffoldcontroller-not.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2686721852022175491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2686721852022175491'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/08/ruby-on-rails-3-scaffoldcontroller-not.html' title='Ruby on Rails 3, scaffold_controller not works, solution with Niftygenerators'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-3777787486839984364</id><published>2011-08-17T05:53:00.000-07:00</published><updated>2011-08-17T05:53:13.327-07:00</updated><title type='text'>Ruby on Rails: stack level too deep</title><content type='html'>If you install your Ruby on Rails on Debian or Ubuntu, and dont use apt-get to install it, you may stumble upon a problem with stack level too deep&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;rake&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:4: warning: already initialized constant MAJOR&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:5: warning: already initialized constant MINOR&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:6: warning: already initialized constant BUILD&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:3: warning: already initialized constant NUMBERS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/version.rb:9: warning: already initialized constant VERSION&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake.rb:26: warning: already initialized constant RAKEVERSION&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:28: warning: already initialized constant DEFAULT_RAKEFILES&lt;br /&gt;WARNING: Possible conflict with Rake extension: String#ext already exists&lt;br /&gt;WARNING: Possible conflict with Rake extension: String#pathmap already exists&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/task_arguments.rb:73: warning: already initialized constant EMPTY_TASK_ARGS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_utils.rb:10: warning: already initialized constant RUBY&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_utils.rb:84: warning: already initialized constant LN_SUPPORTED&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/dsl_definition.rb:143: warning: already initialized constant Commands&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake.rb:64: warning: already initialized constant FileList&lt;br /&gt;/usr/local/rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake.rb:65: warning: already initialized constant RakeFileUtils&lt;br /&gt;rake aborted!&lt;br /&gt;stack level too deep&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;You can resolve this by typing&lt;span class="Apple-style-span" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 18px; white-space: pre;"&gt;&amp;nbsp;bundle exec in front of rake like this:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 18px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 18px; white-space: pre;"&gt;bundle exec rake db:migrate&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-3777787486839984364?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/3777787486839984364/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/08/ruby-on-rails-stack-level-too-deep.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/3777787486839984364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/3777787486839984364'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/08/ruby-on-rails-stack-level-too-deep.html' title='Ruby on Rails: stack level too deep'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-5593899217716304239</id><published>2011-08-16T04:00:00.001-07:00</published><updated>2011-08-16T04:01:01.911-07:00</updated><title type='text'>Linux: size of directory</title><content type='html'>If you need to see what is the size of every sub directory you can use this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;du -m --max-depth=1 |sort -n -k1&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-5593899217716304239?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/5593899217716304239/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/08/linux-size-of-directory.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5593899217716304239'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5593899217716304239'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/08/linux-size-of-directory.html' title='Linux: size of directory'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-5225403543610057882</id><published>2011-07-31T16:10:00.000-07:00</published><updated>2011-08-01T05:33:46.006-07:00</updated><title type='text'>Best internet prepaid data plan if you go to Croatia (2011)</title><content type='html'>If you are planning vacation in Croatia, you will probably need some internet access. Maybe city where you are going have some free internet hotspots, but you never know, until you get there. So other solution is prepaid internet stick with some data plan. Best data plan is Bonbon internet data SIM (you can use daily package) where you can get 300 mb for 3 kn (about 0.45 Euro). Problem with this package is that you still cannot buy it in store, and you can only buy it if you order it by mail (&amp;nbsp;&lt;a href="https://www.bonbon.com.hr/ponuda/internet_sim"&gt;https://www.bonbon.com.hr/ponuda/internet_sim&lt;/a&gt;&amp;nbsp;). Second best solution is from T-mobile and Simpa internet. You can buy Simpa internet start paket (SIM only) for 20 kn (about 3 Euros). If you register you will get 500 mb of data. If you also need USB modem, you can buy bundle for 198 kn ( 30 Euros). When you spend first 500 mb, you can buy extra packages, depending what you need.&lt;a href="http://www.visitingcroatia.info/internet_tarrifs.asp"&gt;http://www.visitingcroatia.info/internet_tarrifs.asp&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-5225403543610057882?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/5225403543610057882/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/07/best-internet-prepaid-data-plan-if-you.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5225403543610057882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5225403543610057882'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/07/best-internet-prepaid-data-plan-if-you.html' title='Best internet prepaid data plan if you go to Croatia (2011)'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-5508073575993152298</id><published>2011-07-15T18:20:00.000-07:00</published><updated>2011-07-15T18:20:47.597-07:00</updated><title type='text'>Wordpress jQuery hell</title><content type='html'>If you were caught in javascript hell, here is a quick fix for you(found &lt;a href="http://digwp.com/2009/06/including-jquery-in-wordpress-the-right-way/"&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;you need to add&amp;nbsp;&lt;span class="Apple-style-span" style="color: #0e304a; font-family: Monaco, Courier, monospace; font-size: 11px; white-space: pre;"&gt;&amp;lt;?php wp_enqueue_script("jquery"); ?&amp;gt; before &lt;/span&gt;&lt;span class="Apple-style-span" style="color: #0e304a; font-family: Monaco, Courier, monospace; font-size: 11px; white-space: pre;"&gt;&amp;lt;?php wp_head(); ?&amp;gt; so it would look like this:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #0e304a; font-family: Monaco, Courier, monospace; font-size: 11px; white-space: pre;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, serif; font-size: 14px; line-height: 19px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #0e304a; font-size: 11px; font: normal normal normal 12px/normal Monaco, Courier, monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&amp;lt;?php wp_enqueue_script("jquery"); ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php wp_head(); ?&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;also, you may need to rewrite some javascript functions, just like this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; border-bottom-color: rgb(221, 221, 221); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(221, 221, 221); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(221, 221, 221); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(221, 221, 221); border-top-style: solid; border-top-width: 1px; font-family: Georgia, serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 15px; padding-left: 15px; padding-right: 15px; padding-top: 15px;"&gt;&lt;code style="background-attachment: initial; background-clip: initial; background-color: #eeeeee; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; color: #0e304a; font-size: 11px; font: normal normal normal 12px/normal Monaco, Courier, monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;var $j = jQuery.noConflict();&lt;br /&gt;&lt;br /&gt;$j(function(){&lt;br /&gt;&lt;br /&gt;    $j("#sidebar li a").hover(function(){&lt;br /&gt;     $j(this).stop().animate({&lt;br /&gt;      paddingLeft: "20px&amp;amp;"&lt;br /&gt;     }, 400);&lt;br /&gt;    }, function() {&lt;br /&gt;     $j(this).stop().animate({&lt;br /&gt;      paddingLeft: 0&lt;br /&gt;     }, 400);&lt;br /&gt;    });&lt;br /&gt;&lt;br /&gt;});&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-5508073575993152298?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/5508073575993152298/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/07/wordpress-jquery-hell.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5508073575993152298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5508073575993152298'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/07/wordpress-jquery-hell.html' title='Wordpress jQuery hell'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-2768471951923318377</id><published>2011-07-10T08:23:00.000-07:00</published><updated>2011-07-10T08:23:58.332-07:00</updated><title type='text'>Intuitive way to insert data into mysql</title><content type='html'>So instead of standard:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;INSERT INTO sometable&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( field1, field2, field3 )&lt;br /&gt;VALUES&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;( 'value1', 'value2', 'value3' )&lt;/blockquote&gt;&lt;br /&gt;you can do this:&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;INSERT INTO sometable&lt;br /&gt;&amp;nbsp; &amp;nbsp;SET field1 = 'value1',&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field2 = 'value2',&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field3 = 'value3'&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-2768471951923318377?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/2768471951923318377/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/07/intuitive-way-to-insert-data-into-mysql.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2768471951923318377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2768471951923318377'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/07/intuitive-way-to-insert-data-into-mysql.html' title='Intuitive way to insert data into mysql'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-2428304871148876059</id><published>2011-07-10T08:00:00.000-07:00</published><updated>2011-07-10T08:02:37.535-07:00</updated><title type='text'>Securing your mysql queries from $_POST or $_GET injections</title><content type='html'>Easiest way is to do this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;foreach ($_POST as $k=&amp;gt;$v) {&lt;br /&gt;&amp;nbsp; &amp;nbsp; $_POST[$k] = mysql_real_escape_string($v);&lt;br /&gt;}&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-2428304871148876059?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/2428304871148876059/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/07/securing-your-mysql-queries-from-post.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2428304871148876059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2428304871148876059'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/07/securing-your-mysql-queries-from-post.html' title='Securing your mysql queries from $_POST or $_GET injections'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-3860386729968361475</id><published>2011-07-04T17:55:00.000-07:00</published><updated>2011-07-04T17:55:35.567-07:00</updated><title type='text'>Best linux distribution for Asus EEE PC (900)</title><content type='html'>I had my Asus EEE pc 900 lying around and almost never used it, because it was slow while running Windows XP. So I decided to try some linux distribution. I found #! (&amp;nbsp;&lt;a href="http://crunchbanglinux.org/"&gt;http://crunchbanglinux.org/&lt;/a&gt;&amp;nbsp;)and I was a bit&amp;nbsp;sceptical at first. I installed it on my 4 GB SD card. I installed it from USB stick which I created with&amp;nbsp;unetbootin (&amp;nbsp;&lt;a href="http://unetbootin.sourceforge.net/"&gt;http://unetbootin.sourceforge.net/&lt;/a&gt;&amp;nbsp;).&lt;br /&gt;Installation passed without a problem and all hardware was detected (Wow!!! :)&lt;br /&gt;Because it is based on debian, apt-get work also.&lt;br /&gt;I used&amp;nbsp;liquorix kernel that setup offers to install.&lt;br /&gt;My web n walk stick for broadband internet works out of the box :)&lt;br /&gt;Wine works perfectly ( I needed for Mikrotik managing program winbox.exe , even mac detect devices (wow) )&lt;br /&gt;Only little problem I found that default speaker volume was muted, so you have to bring up the volume in mixer.&lt;br /&gt;CRUNCHBANG comes with Chromium browser, and flash player. Youtbe videos are working without a glitch on my 900 mhz Asus EEE 900.&lt;br /&gt;All in all, if you need a distribution for your asus eee, go with&amp;nbsp;CRUNCHBANG :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-3860386729968361475?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/3860386729968361475/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/07/best-linux-distribution-for-asus-eee-pc.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/3860386729968361475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/3860386729968361475'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/07/best-linux-distribution-for-asus-eee-pc.html' title='Best linux distribution for Asus EEE PC (900)'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-7997899876852939971</id><published>2011-07-04T16:22:00.000-07:00</published><updated>2011-07-04T16:22:10.331-07:00</updated><title type='text'>Debian: How to send and read SMS with your web n walk stick</title><content type='html'>If you have T-mobile web n walk stick, witch is Qualcomm 3g CDMA model GIO255 and you want to send sms this is the way:&lt;br /&gt;&lt;br /&gt;first check is the device detected:&lt;br /&gt;&lt;blockquote&gt;:~$ dmesg&lt;br /&gt;....&lt;br /&gt;usb 3-1: new full speed USB device using uhci_hcd and address 6&lt;br /&gt;usb 3-1: New USB device found, idVendor=0af0, idProduct=6971&lt;br /&gt;usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3&lt;br /&gt;usb 3-1: Product: Globetrotter HSDPA Modem&lt;br /&gt;usb 3-1: Manufacturer: Option N.V.&lt;br /&gt;usb 3-1: SerialNumber: Serial Number&lt;br /&gt;usb-storage: probe of 3-1:1.0 failed with error -5&lt;br /&gt;hso 3-1:1.0: Not our interface&lt;br /&gt;usb 3-1: USB disconnect, address 6&lt;br /&gt;usb 3-1: new full speed USB device using uhci_hcd and address 7&lt;br /&gt;usb 3-1: New USB device found, idVendor=0af0, idProduct=6971&lt;br /&gt;usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=4&lt;br /&gt;usb 3-1: Product: Globetrotter HSDPA Modem&lt;br /&gt;usb 3-1: Manufacturer: Option N.V.&lt;br /&gt;usb 3-1: SerialNumber: Serial Number&lt;br /&gt;hso0: Disabled Privacy Extensions&lt;/blockquote&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then you should look in /dev/ for device ttyHS*&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;:~$ ls /dev/ttyHS*&lt;br /&gt;/dev/ttyHS0 &amp;nbsp;/dev/ttyHS1 &amp;nbsp;/dev/ttyHS2&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For sending sms you will be using /dev/ttyHS0.&lt;/div&gt;&lt;div&gt;Now you can install and run gammu or wammu&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;apt-get install gammu&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;or&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;apt-get install wammu&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can reconfigure gammu with&amp;nbsp;sudo gammu-config&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So as port you should use /dev/ttyHS0 , then save and that is it.&lt;/div&gt;&lt;div&gt;You can test it with&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;sudo gammu getallsms&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-7997899876852939971?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/7997899876852939971/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/07/debian-how-to-send-and-read-sms-with.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/7997899876852939971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/7997899876852939971'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/07/debian-how-to-send-and-read-sms-with.html' title='Debian: How to send and read SMS with your web n walk stick'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-1960934900424846743</id><published>2011-05-03T01:14:00.001-07:00</published><updated>2011-05-03T01:14:58.218-07:00</updated><title type='text'>How to get root on ubuntu</title><content type='html'>Simplest way is to sudo some shell for example:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;sudo bash&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-1960934900424846743?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/1960934900424846743/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/05/how-to-get-root-on-ubuntu.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/1960934900424846743'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/1960934900424846743'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/05/how-to-get-root-on-ubuntu.html' title='How to get root on ubuntu'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-8288102086182652734</id><published>2011-04-29T03:36:00.000-07:00</published><updated>2011-04-29T04:20:28.499-07:00</updated><title type='text'>Connecting to your virt-viewer from Windows</title><content type='html'>First, you have to install Xming, you can dowload it from&amp;nbsp;&lt;a href="http://sourceforge.net/projects/xming/"&gt;here&lt;/a&gt;.&lt;br /&gt;After install start it with:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;gt;"C:\Program Files\Xming\Xming.exe" -ac -multiwindow -clipboard &amp;nbsp; &amp;nbsp;or on a 64-bit system...&lt;br /&gt;&amp;gt;"C:\Program Files (x86)\Xming\Xming.exe" -ac -multiwindow -clipboard&lt;br /&gt;&amp;nbsp;&amp;nbsp;Notes: using -ac is TOTALLY UNSAFE&lt;/blockquote&gt;now, connect to your linux(ubuntu, debian...) machine with ssh.&lt;br /&gt;After that in shell enter:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;DISPLAY=your.windows.ip.address:0.0&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;export DISPLAY&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;Dont forget to change&amp;nbsp;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;your.windows.ip.address to your&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;your windows ip address :)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;after that you can start any Xwindow application, and for your virtual viewer you can write:&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;virt-viewer -c qemu:///system your_virtual_machine &amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-8288102086182652734?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/8288102086182652734/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/04/connecting-to-your-virt-viewer-from.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/8288102086182652734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/8288102086182652734'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/04/connecting-to-your-virt-viewer-from.html' title='Connecting to your virt-viewer from Windows'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-109570803767095444</id><published>2011-04-29T01:43:00.000-07:00</published><updated>2011-04-29T01:43:03.435-07:00</updated><title type='text'>Linux software raid and S.M.A.R.T monitoring</title><content type='html'>If you want to monitor SMART settings on your debian/ubuntu system you will have to install&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;apt-get install smartmontools&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;If your SMART is disabled, use this command to test them&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;smartctl -s on -t short -d ata /dev/sda&lt;/blockquote&gt;after that you can check status with&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;smartctl --all /dev/sdb&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;To check status of your raid you can do&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;mdadm --detail /dev/md0&amp;nbsp;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-109570803767095444?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/109570803767095444/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/04/linux-software-raid-and-smart.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/109570803767095444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/109570803767095444'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/04/linux-software-raid-and-smart.html' title='Linux software raid and S.M.A.R.T monitoring'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-1679593421656771973</id><published>2011-03-14T05:18:00.000-07:00</published><updated>2011-03-14T05:18:22.991-07:00</updated><title type='text'>PHP: verifying username and password with LDAP</title><content type='html'>here is a simple example how you can verify username and password with ldap&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldaphost = "aai.host.com";&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapport = 389;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapconfig['basedn'] = 'dc=host,dc=com';&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ds = ldap_connect($ldaphost, $ldapport)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;or die("Could not connect to $ldaphost");&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($ds)&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$username = mysql_real_escape_string($_POST["user"]);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$upasswd = mysql_real_escape_string($_POST["pass"]);&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;$dn="uid=".$username.",".$ldapconfig['basedn'];&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapbind = @ldap_bind($ds, $dn, $upasswd);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($ldapbind) {&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;$ok=true;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;echo "Password OK!&amp;lt;br&amp;gt;";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;} else {&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;echo "Password invalid!&amp;lt;br&amp;gt;";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;$ok=false;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;exit();&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;}&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-1679593421656771973?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/1679593421656771973/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/php-verifying-username-and-password.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/1679593421656771973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/1679593421656771973'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/php-verifying-username-and-password.html' title='PHP: verifying username and password with LDAP'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-2966543607159424392</id><published>2011-03-12T16:14:00.000-08:00</published><updated>2011-03-12T16:14:56.654-08:00</updated><title type='text'>PoE (Power over ethernet) with Mikrotik Routerboards</title><content type='html'>If you want to connect your RB411, RB433, RB711Hn or any other routerboard that has POE enabled on it ports, and do not want to buy PoE injectors, this is how you can connect it if you have power supply with 12V or any other that is specified for your device.&lt;br /&gt;&lt;br /&gt;NOTE! This is only for simple 100 mb PoE, not for IEEE 802.3af devices! They need special electronics that negotiate with 802.3af injectors.&lt;br /&gt;&lt;br /&gt;100 MB ethernet uses only 4 wires out of 8 wires that are in standard ethernet cable. There are 4 pairs of wires and they are orange, green, blue and brown. For&amp;nbsp;T-568B Straight-Through Ethernet Cable you use wiring like this:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-bYQAVA71vAg/TXwGwxyk8lI/AAAAAAAAAHw/_ICfxcHnt5Y/s1600/image2665.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="https://lh4.googleusercontent.com/-bYQAVA71vAg/TXwGwxyk8lI/AAAAAAAAAHw/_ICfxcHnt5Y/s320/image2665.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;In 100MB ethernet, blue, blue-white, brown and brown-white are not used, so they can be used to transfer power to device. For routerboards, blue wires are positive and brown wires are negative.&lt;br /&gt;&lt;br /&gt;So how do you connect?&lt;br /&gt;You crimp your cable like on picture above (using T-568B standard) and near place you want to connect power adapter you remove the insulation (only the outer white layer that are around all wires) and cut blue and brown wires. Then you remove the insulation from them, but only on ones that are going to your routerboard, and connect blue and blue-white together, and brown and brown-white together. Then you cut connector from your power supply and measure what is positive and what is negative wire. You can do that by using voltmeter(place range to 20V or more DC-direct current, black wire to ground, red wire to voltage measurement) and placing one wire on black and another on red wire. If your voltmeter show +12 or any other voltage, then connect wire that was on black wire to brown and from red wire to blue. On the other hand, if your voltmeter shown -12V then you should do the opposite: wire that was connected to red connect to brown wires, and wire that was connected to black connect to blue wires.&lt;br /&gt;&lt;br /&gt;Here is how I connected to my computer. I used +12V from my computer as power supply from molex connector:&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-9uSlyZUyFFk/TXwL-ugWfII/AAAAAAAAAH0/vZBUqk7Y3VM/s1600/P3130015.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="https://lh5.googleusercontent.com/-9uSlyZUyFFk/TXwL-ugWfII/AAAAAAAAAH0/vZBUqk7Y3VM/s400/P3130015.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Here you see orange and green wires go to connector and other 4 wires go to molex connector connected to my power supply.Other end of UTP is connected to routerboard 411, crimped as shown in first picture.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-2966543607159424392?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/2966543607159424392/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/poe-power-over-ethernet-with-mikrotik.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2966543607159424392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/2966543607159424392'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/poe-power-over-ethernet-with-mikrotik.html' title='PoE (Power over ethernet) with Mikrotik Routerboards'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-bYQAVA71vAg/TXwGwxyk8lI/AAAAAAAAAHw/_ICfxcHnt5Y/s72-c/image2665.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-5186203278653984246</id><published>2011-03-12T15:35:00.000-08:00</published><updated>2011-03-12T15:36:19.580-08:00</updated><title type='text'>Connecting optical sensors to microcontroller</title><content type='html'>My task was to make instrumentation for measuring speed of reaction and speed for crossing two points in space. I used 2 optical sensors that I had laying around and connected them through relays to microcontroller. As&amp;nbsp;microcontroller I used Atmel ATMEGA16 and some development kit i bought on Ebay. As output I used RS232 to send data.&lt;br /&gt;&lt;br /&gt;Biggest problem was with sensors that I have no specifications and could not find them on internet. There are 3 wires, one black, one blue and one brown. On sensor is only specification that black and blue are power wires (I connected them to 12V DC) and brown is output. So I decided to use relay.&lt;br /&gt;&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="https://lh4.googleusercontent.com/-z6qJ1Ms-w5U/TXwBVa2GrTI/AAAAAAAAAHs/9qKkE7Rz-l0/s1600/text3953.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="270" src="https://lh4.googleusercontent.com/-z6qJ1Ms-w5U/TXwBVa2GrTI/AAAAAAAAAHs/9qKkE7Rz-l0/s400/text3953.png" width="400" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Fig 1: Atmega16 connected with optical sensor through relay&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Note: maybe for your application you will need to use pull-up resistor.I think you can use 10K and connect it to VCC(5V) of Atmega and to that pin.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-5186203278653984246?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/5186203278653984246/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/connecting-optical-sensors-to.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5186203278653984246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/5186203278653984246'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/connecting-optical-sensors-to.html' title='Connecting optical sensors to microcontroller'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-z6qJ1Ms-w5U/TXwBVa2GrTI/AAAAAAAAAHs/9qKkE7Rz-l0/s72-c/text3953.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-8188283933731638666</id><published>2011-03-11T06:33:00.000-08:00</published><updated>2011-03-14T06:59:52.182-07:00</updated><title type='text'>How to fix “STOP: c000021a (Fatal System Error)” Error!” in windows XP</title><content type='html'>If you have blue screen and this error:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial; font-size: 12px; line-height: 19px;"&gt;STOP: c000021a {Fatal System Error}&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial; font-size: 12px; line-height: 19px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial; font-size: 12px; line-height: 19px;"&gt;The Windows Logon Process system process terminated unexpectedly with a status of 0xc06d007e (0×00000000 0×00000000).&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial; font-size: 12px; line-height: 19px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana, Arial; font-size: 12px; line-height: 19px;"&gt;The system has been shut down.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;when you boot your Windows xp, here is a solution how to resolve the error.&lt;br /&gt;&lt;br /&gt;0) Copy&amp;nbsp;c:\windows\system32\winlogon.exe from working Windows XP (use Windows xp with same service pack) to your usb drive&lt;br /&gt;1) Boot your computer with some live cd (I used Windows XP Live!)&lt;br /&gt;2) make copy or rename your&amp;nbsp;winlogon.exe file (I renamed it to&amp;nbsp;winlogon.exeold)&lt;br /&gt;3) copy winlogon.exe from usb drive to your \windows\system32\ directory&lt;br /&gt;4) boot windows&lt;br /&gt;&lt;br /&gt;if everything is ok, then that is it, however, in my case computer booted, but explorer was not working so used system restore.&lt;br /&gt;&lt;br /&gt;5) when Windows loads, go to task manager (with ctrl+alt+delete or ctrl+shift+esc) and run System restore by going to File, Run, and c:\windows\system32\restore\rstrui.exe&lt;br /&gt;&lt;br /&gt;Then restore to some old restore point...and thats it :)&lt;br /&gt;p.s. maybe you will need to run&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;sfc.exe /scannow&lt;/blockquote&gt;to check your system files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-8188283933731638666?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/8188283933731638666/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/how-to-fix-stop-c000021a-fatal-system.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/8188283933731638666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/8188283933731638666'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/how-to-fix-stop-c000021a-fatal-system.html' title='How to fix “STOP: c000021a (Fatal System Error)” Error!” in windows XP'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-1747868896332271955</id><published>2011-03-11T06:08:00.000-08:00</published><updated>2011-03-11T06:09:30.976-08:00</updated><title type='text'>PHP, mysql, html, css and coloring every other row</title><content type='html'>I stumbled upon interesting problem, where I wanted to color every second column with specific color.&lt;br /&gt;Problem was that I had css defined, so the php code did not work correctly:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px;"&gt;if (($i % 2)==0) { echo '&amp;lt;tr BGCOLOR="#99CCF&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px;"&gt;F" &amp;gt;'; } else { echo '&amp;lt;tr BGCOLOR="#FFFFF&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;wbr&gt;&lt;/wbr&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px;"&gt;F" &amp;gt;'; };&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;so I changed it to something like this:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;if (($i % 2)==0) { echo '&amp;lt;tr style="background-color:blue" &amp;gt;'; } else { echo '&amp;lt;tr style="background-color:white" &amp;gt;'; };&amp;nbsp;&lt;/blockquote&gt;&lt;br /&gt;And it works :)&lt;br /&gt;&lt;br /&gt;I am also posting here whole example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$query2="SELECT * FROM participant,submitted,section,status_work WHERE submitted.id_section=section.id_section AND submitted.id_status=status_work.id_status AND participant.id_part=submitted.id_participant";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$result2=mysql_query($query2);&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;$num2=mysql_num_rows($result2);&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if ($num2&amp;gt;0){&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;echo '&amp;lt;table class="X1"&amp;gt;';&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;for ($i=0;$i&amp;lt;$num2;$i++){&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;if (($i % 2)==0) { echo '&amp;lt;tr style="background-color:blue" &amp;gt;'; } else { echo '&amp;lt;tr style="background-color:white" &amp;gt;'; };&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;echo "&amp;lt;td&amp;gt;".($i+1)."&amp;lt;/td&amp;gt;";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;echo "&amp;lt;td&amp;gt;".mysql_result($result2, $i, 'first')." ".mysql_result($result2, $i, 'last')."&amp;lt;/td&amp;gt;";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;echo "&amp;lt;td&amp;gt;".mysql_result($result2, $i, 'section.value')."&amp;lt;/td&amp;gt;";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;echo "&amp;lt;/tr&amp;gt;";&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;echo "&amp;lt;/table&amp;gt;";&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-1747868896332271955?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/1747868896332271955/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/php-mysql-html-css-and-coloring-every.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/1747868896332271955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/1747868896332271955'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/php-mysql-html-css-and-coloring-every.html' title='PHP, mysql, html, css and coloring every other row'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-3873422660883832186</id><published>2011-03-11T05:22:00.000-08:00</published><updated>2011-03-11T05:30:35.668-08:00</updated><title type='text'>linux (debian) problem with sending mail</title><content type='html'>I had some issues with sending mail through my mail server. It is debian distribution, and some users got error mails return to them. This is what they got back:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;This is the mail system at host sportikus.kif.hr.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;I'm sorry to have to inform you that your message could not&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;be delivered to one or more recipients. It's attached below.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;For further assistance, please send mail to postmaster.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;If you do so, please include this problem report. You can&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;delete your own text from the attached returned message.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The mail system&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&lt;br style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&amp;lt;xxxxxx@brugger.at&amp;gt;: host mail.brugger.at[213.229.60.100] said:&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; 550-Inconsistent or no rDNS record for 161.53.51.3 (see RFC1912 2.1)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href="https://webmail.carnet.hr/dimp/550-http://www.ietf.org/rfc/rfc1912.txt" style="color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none;" target="_blank"&gt;550-http://www.ietf.org/rfc/rfc1912.txt&lt;/a&gt;&amp;nbsp;550-Reverse DNS record and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;matching&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; forward entry must exist. 550 =&amp;gt; wrong configuration at sending server&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New';"&gt;&lt;span class="Apple-style-span" style="font-size: 12px;"&gt;&amp;nbsp; &amp;nbsp; 161.53.51.3 (in reply to RCPT TO command)&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New'; font-size: 12px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New'; font-size: 12px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small;"&gt;This was obviously error in dns configuration,&amp;nbsp;specifically in reverse dns. So I edited&amp;nbsp;hosts.rev changed serial number (just +1) and added one line to the end of that file:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Lucida Console', Courier, 'Courier New'; font-size: 12px;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; PTR &amp;nbsp; sportikus.kif.hr.&lt;/blockquote&gt;&lt;br /&gt;&amp;nbsp;and reloaded the configuration with&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;rndc reload&lt;/blockquote&gt;Note that number 3 is the ip address of the server.&lt;br /&gt;&lt;br /&gt;And that was it! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-3873422660883832186?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/3873422660883832186/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/linux-debian-problem-with-sending-mail.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/3873422660883832186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/3873422660883832186'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/linux-debian-problem-with-sending-mail.html' title='linux (debian) problem with sending mail'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1825264351153558979.post-4793262405570577756</id><published>2011-03-11T02:24:00.000-08:00</published><updated>2011-03-11T02:24:18.234-08:00</updated><title type='text'>Hello world!</title><content type='html'>Hi to all...&lt;br /&gt;This is my first blog, and here I will present some things I do, and show you how you can do it. Also, as system administrator I stumble upon some interesting problems, so if I manage to resolve them, I will write the solution here :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1825264351153558979-4793262405570577756?l=compautomatization.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compautomatization.blogspot.com/feeds/4793262405570577756/comments/default' title='Objavi komentare'/><link rel='replies' type='text/html' href='http://compautomatization.blogspot.com/2011/03/hello-world.html#comment-form' title='0 komentara'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/4793262405570577756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1825264351153558979/posts/default/4793262405570577756'/><link rel='alternate' type='text/html' href='http://compautomatization.blogspot.com/2011/03/hello-world.html' title='Hello world!'/><author><name>Dorijan Jelinčić</name><uri>http://www.blogger.com/profile/05260016290959709250</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://1.bp.blogspot.com/-rVFK_LvQO2o/TeM9SFgfC4I/AAAAAAAAAI8/ze-gZ5AgfTs/s220/dorijanj.png'/></author><thr:total>0</thr:total></entry></feed>
