<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-16798831</atom:id><lastBuildDate>Fri, 23 Dec 2011 08:31:37 +0000</lastBuildDate><category>Qt</category><category>Plasma</category><category>KDE</category><category>Social</category><category>Hayko</category><category>Hamster</category><category>Ruby</category><category>Datamapper</category><category>Mysql</category><title>S.U.L.U.G.</title><description>Synthetic Upgraded Lifeform Used for Gratification</description><link>http://sulug.blogspot.com/</link><managingEditor>noreply@blogger.com (Selman ULUĞ)</managingEditor><generator>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Sulug" /><feedburner:info uri="sulug" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-16798831.post-2196630056005629119</guid><pubDate>Thu, 08 Jul 2010 16:01:00 +0000</pubDate><atom:updated>2010-07-08T19:01:00.910+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Ruby</category><category domain="http://www.blogger.com/atom/ns#">Mysql</category><category domain="http://www.blogger.com/atom/ns#">Datamapper</category><title>Datamapper threaded repository sample with multiple mysql databases</title><description>&lt;script src="http://gist.github.com/285884.js?file=dmmultitheaded.rb"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;script src="http://gist.github.com/285884.js?file=load%20sample%20code%3B"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
"mysqlx.foo.com" and "****" replaced with real servers and passwords. now running our supplied sample function. searching all mysql servers;&lt;br /&gt;
&lt;br /&gt;
&lt;script src="http://gist.github.com/285884.js?file=irb%20session%201.rb"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
our model still loaded on irb we can get some other play. "before :save" and "after :save" how they are working?&lt;br /&gt;
&lt;br /&gt;
&lt;script src="http://gist.github.com/285884.js?file=irb%20session%202.rb"&gt;&lt;/script&gt;&lt;br /&gt;
&lt;br /&gt;
created our :user, :password encrypted with Mysql "password()" function and then reloaded privileges. immediately we can use fresh user.&lt;br /&gt;
&lt;br /&gt;
Now you can sit and start to write your Mysql admin application. Maybe with &lt;a href="http://www.sinatrarb.com/"&gt;sinatra&lt;/a&gt;, soon...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16798831-2196630056005629119?l=sulug.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cEv-EoEVk423tLzMscxxVuxzaiU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cEv-EoEVk423tLzMscxxVuxzaiU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cEv-EoEVk423tLzMscxxVuxzaiU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cEv-EoEVk423tLzMscxxVuxzaiU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sulug/~4/oVuvOoZchMs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Sulug/~3/oVuvOoZchMs/datamapper-threaded-repository-sample.html</link><author>noreply@blogger.com (Selman ULUĞ)</author><thr:total>0</thr:total><feedburner:origLink>http://sulug.blogspot.com/2010/01/datamapper-threaded-repository-sample.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-16798831.post-8447896464629667453</guid><pubDate>Mon, 01 Feb 2010 15:14:00 +0000</pubDate><atom:updated>2010-02-01T17:36:55.131+02:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Hayko</category><category domain="http://www.blogger.com/atom/ns#">Hamster</category><category domain="http://www.blogger.com/atom/ns#">Social</category><title>Hamster Hayko</title><description>My new Syrian hamster Hayko :)&lt;br /&gt;&lt;br /&gt;&lt;object width="400" height="327"&gt;&lt;param name="allowfullscreen" value="true" /&gt;&lt;param name="allowscriptaccess" value="always" /&gt;&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9086761&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=00ADEF&amp;amp;fullscreen=1" /&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=9086761&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=00ADEF&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="327"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;p&gt;&lt;a href="http://vimeo.com/9086761"&gt;Hamster Hayko&lt;/a&gt; from &lt;a href="http://vimeo.com/selmanulug"&gt;Selman ULUG&lt;/a&gt; on &lt;a href="http://vimeo.com"&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16798831-8447896464629667453?l=sulug.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-ZsVxjFy0VnsCXNJSlueyO6Prs0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-ZsVxjFy0VnsCXNJSlueyO6Prs0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-ZsVxjFy0VnsCXNJSlueyO6Prs0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-ZsVxjFy0VnsCXNJSlueyO6Prs0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sulug/~4/zuQvkDNk668" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Sulug/~3/zuQvkDNk668/hamster-hayko.html</link><author>noreply@blogger.com (Selman ULUĞ)</author><thr:total>0</thr:total><feedburner:origLink>http://sulug.blogspot.com/2010/02/hamster-hayko.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-16798831.post-1305797824110426003</guid><pubDate>Sun, 19 Jul 2009 11:12:00 +0000</pubDate><atom:updated>2009-07-19T14:26:06.248+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Social</category><title>Some updates</title><description>&lt;ul&gt;&lt;li&gt;Vacation finished :(&lt;/li&gt;&lt;li&gt;Changed my gsm company Turkcell to Vodafone&lt;/li&gt;&lt;li&gt;Uploaded last.fm data to &lt;a href="http://alpha.dev.libre.fm/user/selman"&gt;my libre.fm&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Uploaded some old photos to &lt;a href="http://picasaweb.google.com/selman.ulug"&gt;my picasa&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Created &lt;a href="http://www.google.com/profiles/selman.ulug"&gt;google profile&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Got about 8 kg. in 20 days&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16798831-1305797824110426003?l=sulug.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DcYGg6KO5yvlTTXMl4k085LtKBE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DcYGg6KO5yvlTTXMl4k085LtKBE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DcYGg6KO5yvlTTXMl4k085LtKBE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DcYGg6KO5yvlTTXMl4k085LtKBE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sulug/~4/ZtynZAmwEtI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Sulug/~3/ZtynZAmwEtI/some-updates.html</link><author>noreply@blogger.com (Selman ULUĞ)</author><thr:total>0</thr:total><feedburner:origLink>http://sulug.blogspot.com/2009/07/some-updates.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-16798831.post-4327717379356376418</guid><pubDate>Wed, 24 Jun 2009 11:25:00 +0000</pubDate><atom:updated>2010-07-08T18:45:43.017+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">KDE</category><category domain="http://www.blogger.com/atom/ns#">Ruby</category><category domain="http://www.blogger.com/atom/ns#">Qt</category><category domain="http://www.blogger.com/atom/ns#">Plasma</category><title>Format ruby code for your blog</title><description>&lt;div&gt;&lt;b&gt;EDIT: use&amp;nbsp; http://gist.github.com not needed anymore.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
I was looking for a ruby syntax highlighter for my blog and found &lt;a href="http://syntax.rubyforge.org/"&gt;syntax&lt;/a&gt; and found 3 good usage tips but all tips for a specific platform;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;MacOSX from &lt;a href="http://blog.andischacke.com/2008/10/test.html"&gt;Andi Schacke&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;KDE DCOP from &lt;a href="http://blog.wolfman.com/articles/2006/05/26/howto-format-ruby-code-for-blogs"&gt;Wolfman Howlings&lt;/a&gt; (can't usable KDE 4 using DBus)&lt;/li&gt;
&lt;li&gt;WIN32API from &lt;a href="http://rails.brentsowers.com/2007/12/formatting-ruby-and-html-code-for-blog.html"&gt;Brent&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;All good but thought to make a more crossplatform and more usable, it's here;&lt;/div&gt;&lt;div&gt;First install syntax and add CSS style to your site as told all three blogs beginning and forget the other parts of them.&lt;/div&gt;&lt;div&gt;&lt;script src="http://gist.github.com/468159.js?file=cbtohtm.rb"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;div&gt;Copy code block and save as "cbtohtml.rb" and give permission to run on unix type oses "chmod +x cbtohtml.rb". Without parameter using Qt4 to get clipboard text and it's the most crossplatformed style :) . With parameter using standart stdout that you can pipe to a file. Loading Qt4 when needed can be good for performance as can see below when converting files. Choosing CLI with parameter for really big files maybe a smart thing.&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;script src="http://gist.github.com/468159.js?file=%22cbtohtml.rb%22%20copied%20clipboard%3A"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;div&gt;&lt;script src="http://gist.github.com/468159.js?file=from%20file%3A"&gt;
&lt;/script&gt;&lt;/div&gt;&lt;div&gt;Now some KDE 4 plasma magic; Unlock Widgets &amp;gt; Add Widgets ... then add "Paste" plasmoid to you panel or desktop. enter Paste Settings look the shot below and give the path like in your computer.&lt;/div&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_hXppaJOJzvY/SkIilEFuELI/AAAAAAAAAFE/9jJZ-1j4iWc/s1600-h/cbtohtmlpaste.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5350877327417807026" src="http://3.bp.blogspot.com/_hXppaJOJzvY/SkIilEFuELI/AAAAAAAAAFE/9jJZ-1j4iWc/s320/cbtohtmlpaste.jpg" style="cursor: pointer; display: block; height: 132px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;You only need copy the ruby code want to convert then click "cbtohtml" from Paste plasmoid. Long live KDE :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/16798831-4327717379356376418?l=sulug.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pKgumwp1HINGWhv9QParQT5yXa0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pKgumwp1HINGWhv9QParQT5yXa0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pKgumwp1HINGWhv9QParQT5yXa0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pKgumwp1HINGWhv9QParQT5yXa0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sulug/~4/PdmEEzNK-a0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Sulug/~3/PdmEEzNK-a0/i-looking-for-ruby-syntax-highlighter.html</link><author>noreply@blogger.com (Selman ULUĞ)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_hXppaJOJzvY/SkIilEFuELI/AAAAAAAAAFE/9jJZ-1j4iWc/s72-c/cbtohtmlpaste.jpg" height="72" width="72" /><thr:total>4</thr:total><feedburner:origLink>http://sulug.blogspot.com/2009/06/i-looking-for-ruby-syntax-highlighter.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-16798831.post-1129116479547561369</guid><pubDate>Tue, 23 Jun 2009 17:40:00 +0000</pubDate><atom:updated>2009-06-24T16:09:54.361+03:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Social</category><title>Reconstruction</title><description>&lt;div&gt;After 2nd blog wipe decided to blog again, first thing first &lt;b&gt;"Hello World!"&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Last 1 year was not insteresting played WoW, waited KDE 4, updated my archlinux everyday like a crazy, lots of times tried to learn Qt all failed bored after a couple days, gained a little ruby skills when using at work... Now my new hobbies are plasma programming, again Qt programming after Qt started to develop anonymous git server and QtCreator, microblogging at identi.ca as you see at side panel, my little sweet archlinux KDE 4 desktop at work Xfce desktop at home, of course WoW after second 80 level Warlock started to level a Death Knight...&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Not many changes about my social life biggest ones are my friend Ahmet SIRTMAC gone for 6 months military duty, changed house now 50 meters to work, got a little anemic disease last month gone er and got 2 unit blood still using medicines, will go vacation between 27 June - 10 July, hiya!!!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You will see me a lot after vacation, want to write about Qt, KDE, plasma, ruby, archlinux, WoW and social life.&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/16798831-1129116479547561369?l=sulug.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RApVqMnufOwiIkm0xON16i94l5A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RApVqMnufOwiIkm0xON16i94l5A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RApVqMnufOwiIkm0xON16i94l5A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RApVqMnufOwiIkm0xON16i94l5A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/Sulug/~4/jzz1rj1Q7NU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Sulug/~3/jzz1rj1Q7NU/reconstruction.html</link><author>noreply@blogger.com (Selman ULUĞ)</author><thr:total>0</thr:total><feedburner:origLink>http://sulug.blogspot.com/2009/06/reconstruction.html</feedburner:origLink></item></channel></rss>

