<?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:blogger='http://schemas.google.com/blogger/2008' 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-27526289</id><updated>2024-08-28T20:49:47.274+02:00</updated><title type='text'>QTProg</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-27526289.post-3221041318556443052</id><published>2007-04-13T16:27:00.000+02:00</published><updated>2007-04-13T16:36:17.963+02:00</updated><title type='text'>D language (D programming language)</title><content type='html'>Well, it&#39;s a bit older news, but since I did post about D earlier, let me inform that&lt;br /&gt;&lt;a href=&quot;http://www.digitalmars.com/d/&quot;&gt;Digital Mars D Programming Language&lt;/a&gt; hit 1.0&lt;br /&gt;(It&#39;s at 1.012 right now.)&lt;br /&gt;&lt;br /&gt;Well, still waiting for a good &lt;a href=&quot;http://ddbg.mainia.de/&quot;&gt;debugger&lt;/a&gt;, and also a nice IDE.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://dblog.aldacron.net/&quot;&gt;D Blog - The One With D&lt;/a&gt; is still a good blog for news about D.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/3221041318556443052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/3221041318556443052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/3221041318556443052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/3221041318556443052'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2007/04/d-language-d-programming-language.html' title='D language (D programming language)'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-2427175410544519548</id><published>2007-04-13T16:20:00.000+02:00</published><updated>2007-09-16T04:02:49.966+02:00</updated><title type='text'>&quot;aspnet_merge.exe&quot; exited with code 1</title><content type='html'>&quot;aspnet_merge.exe&quot; exited with code 1 is a nasty build error.&lt;br /&gt;&lt;br /&gt;You can see an example and a tip on it at&lt;br /&gt;&lt;a href=&quot;http://geekswithblogs.net/michelotti/archive/2006/07/31/86754.aspx&quot;&gt;http://geekswithblogs.net/michelotti/archive/2006/07/31/86754.aspx&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;But in my case verbosity is not helping.&lt;br /&gt;The trick was that two aspx files existed with the exact same name (it&#39;s not a simple project/solution, we have a framework with files aspx and ascx in it and a custom project with files in it, and the build process builds them together).</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/2427175410544519548/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/2427175410544519548' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/2427175410544519548'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/2427175410544519548'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2007/04/aspnetmergeexe-exited-with-code-1.html' title='&quot;aspnet_merge.exe&quot; exited with code 1'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-3823766970228753345</id><published>2007-03-19T22:35:00.000+01:00</published><updated>2008-12-11T19:27:10.365+01:00</updated><title type='text'>SQL 2005 connect ... connect ... connect</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb89DJPbI7cQMkOgkBr40JT4IgTpjNp3dZZdPtSSe-JhRkpVWi6ux_Cm9FNZQLyvz_zt7uXDnMK2FB4kpiMuqODyj58tteijNbOD7b_WuAuEkOYTXyGCeiRstsvqHuTADoZeMEGA/s1600-h/Clipboard01.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb89DJPbI7cQMkOgkBr40JT4IgTpjNp3dZZdPtSSe-JhRkpVWi6ux_Cm9FNZQLyvz_zt7uXDnMK2FB4kpiMuqODyj58tteijNbOD7b_WuAuEkOYTXyGCeiRstsvqHuTADoZeMEGA/s400/Clipboard01.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5043752636708057762&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Do you bore this image as much as I?&lt;br /&gt;When I drag and drop some files from a folder into Microsoft SQL 2005 Management studio, it will ask for Connection for every file.&lt;br /&gt;Is there a solution for this?</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/3823766970228753345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/3823766970228753345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/3823766970228753345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/3823766970228753345'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2007/03/sql-2005-connect-connect-connect.html' title='SQL 2005 connect ... connect ... connect'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb89DJPbI7cQMkOgkBr40JT4IgTpjNp3dZZdPtSSe-JhRkpVWi6ux_Cm9FNZQLyvz_zt7uXDnMK2FB4kpiMuqODyj58tteijNbOD7b_WuAuEkOYTXyGCeiRstsvqHuTADoZeMEGA/s72-c/Clipboard01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-115390216391503503</id><published>2006-07-26T10:16:00.000+02:00</published><updated>2007-04-13T16:36:08.236+02:00</updated><title type='text'>Why Can&#39;t Database Tables Index Themselves?</title><content type='html'>from &lt;a href=&quot;http://www.codinghorror.com/blog/archives/000638.html&quot;&gt;Coding Horror&lt;/a&gt;.&lt;br /&gt;A nice post, which problem I also thought about.&lt;br /&gt;But regarding of relational DB indexes, you can do it read optimized or update optimized, and can&#39;t have both.&lt;br /&gt;Also, if we make a step back to look more from above the whole DB functionality, why cannot our business object save itself into a normalized form (No, not a wordy serialization, or stream, but real relational form)?&lt;br /&gt;&lt;br /&gt;In the comments I&#39;ve found an interesting link to the blog &lt;a href=&quot;http://blogs.msdn.com/queryoptteam/default.aspx&quot;&gt;Tips, Tricks, and Advice from the SQL Server Query Optimization Team&lt;/a&gt;, which I didn&#39;t know about before.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/115390216391503503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/115390216391503503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/115390216391503503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/115390216391503503'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2006/07/why-cant-database-tables-index.html' title='Why Can&#39;t Database Tables Index Themselves?'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-114873982393278041</id><published>2006-05-27T18:40:00.000+02:00</published><updated>2007-04-13T16:40:20.851+02:00</updated><title type='text'>Introducing D</title><content type='html'>I&#39;d like to put up some tutorial material, written in the D programming language.&lt;br /&gt;&lt;br /&gt;But first then I&#39;d introduce this D thing...&lt;br /&gt;&lt;br /&gt;D programming language is like C++, only &quot;better&quot;. It would be hard to define &quot;better&quot;, so let me say it has almost everything C++ has to offer, but it is much clearer, and, almost a lot of things have better compile times.&lt;br /&gt;It&#39;s a bit like C# or Java, but without a VM, but still multiplatform.&lt;br /&gt;The compiler backend is closed, but D in altogether is free.&lt;br /&gt;&lt;br /&gt;The official site of D:&lt;br /&gt;&lt;a href=&quot;http://www.digitalmars.com/d/&quot;&gt;http://www.digitalmars.com/d/&lt;/a&gt;&lt;br /&gt;then the &lt;a href=&quot;http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage&quot;&gt;Wiki4d&lt;/a&gt; site,&lt;br /&gt;and there is also a short introduction on &lt;a href=&quot;http://en.wikipedia.org/wiki/D_programming_language&quot;&gt;Wikipedia&lt;/a&gt;,&lt;br /&gt;and finally a &lt;a href=&quot;http://dblog.aldacron.net/&quot;&gt;blog&lt;/a&gt; with news about D.&lt;br /&gt;&lt;br /&gt;And the drawbacks? Well, its still in beta, with no fixed feature sets and roadmap, and some of the major elements have issues, like the garbage collector, template handling, libraries are also still in the making, no ide, no professional debugger. Things can always change and go either for better or worst; lets hope it will be - even - better.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/114873982393278041/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/114873982393278041' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114873982393278041'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114873982393278041'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2006/05/introducing-d.html' title='Introducing D'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-114795530304364835</id><published>2006-05-27T16:14:00.000+02:00</published><updated>2006-05-27T16:17:58.990+02:00</updated><title type='text'>Coloring problems</title><content type='html'>So, last time I started on a little javascript, which would colorize automatically the sample codes I embed here. Well, I’ve regretted it when I had to fight with RegExp and IE and FF differences (IE - Internet Explorer, FF - Mozilla Firefox).&lt;br /&gt;&lt;br /&gt;The first major annoyance (I consider something major annoyance, when you can’t find a solution in Google in less than two minutes, or when there is no general solution, which is the case now, because IE and FF not willing to do things the same) is when I can access html blocks marked with &amp;lt;div id=”code”&amp;gt; in IE as an array (if there is more repeated blocks) with&lt;div name=”code” id=”code”&gt;&lt;pre&gt;document.all(“code”)&lt;/pre&gt;&lt;/div&gt;, but I cannot wit FF. So I can use the standard getElementById, but then it will give back only the first block.&lt;br /&gt;To make a not so long, but mind-bogging story short, finally I came up with what you see in the code in the previous post, using getElementsByName, and marking the div part with both id and name.&lt;br /&gt;&lt;br /&gt;And while veteran coders all praise RegExp, and I cannot say different, than to learn it and use it, it has its own ways… and it’s really hard to test the RegExp machine inside javascript, considering it may have differences in IE and FF.&lt;br /&gt;&lt;br /&gt;The extra parsing that this blogger site puts into the blog posts doesn’t help also. I had to put and upload my code changes into the template of this site, and check the blog post containing sample code in IE and in FF.&lt;br /&gt;After a lot of trial and error, I begun to think that the replacing approach maybe not the best one, because I still have problems with string literals inside comments, comment characters inside string literals, and keywords in comments and string literals. But to parse the code as a real parser would do just to colorize it, and do it in javascript… well, that’s a task I’m not willing to take.&lt;br /&gt;&lt;br /&gt;And I still cannot escape some manual replacement and formatting when posting code, I have to break the long lines, and have to replace lesser than and greater than signs, and this saddens me, because this way I’d even replace all that is needed in one pass, offline, before posting…&lt;br /&gt;But typing in really simple code right into the blogger web ui is much simpler.&lt;br /&gt;&lt;br /&gt;If you have ideas to improve the colorizer, or have a completely different solution, let me know.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/114795530304364835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/114795530304364835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114795530304364835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114795530304364835'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2006/05/coloring-problems.html' title='Coloring problems'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-114781709163874081</id><published>2006-05-18T13:39:00.000+02:00</published><updated>2006-05-25T20:38:21.820+02:00</updated><title type='text'>Colored code samples - now with sample code!</title><content type='html'>Not only I &#39;believe&#39; in the power of modern so-called RAD IDEs, especially in intellisense, support of commenting and use of those comments as internal help in the place of code editing (and more intellisense ;)), code navigation through definitions, but I also believe that colored code is easier to read, and easier to understand it &lt;em&gt;faster&lt;/em&gt;.&lt;br /&gt;&lt;br /&gt;So when I&#39;ve started this programming blog, I&#39;ve liked to give code samples not only formatted right, but colored. But I think it would have been a bit lame to parse from clear code text, because that&#39;s how code usually is, and write out html (even with fancy spans and divs and css) (and ruling out the method when I type all the color codes also), I don&#39;t want to do this process with every update involving code. And since I have no control how these hosted pages are parsed out, I couldn&#39;t automatize such a process.&lt;br /&gt;&lt;br /&gt;So I&#39;ve decided to write a little javascript hack, which will colorize parts on a web page marked as code area.&lt;br /&gt;The javascript colorization itself won&#39;t be perfect, because for now I&#39;ve made the colorizer code to work with C (and D, more on later), and maybe C# keywords...&lt;br /&gt;&lt;br /&gt;The entry point is placed onto the page onload event: &lt;div name=&quot;code&quot; id=&quot;code&quot;&gt;&lt;pre&gt;&amp;lt;body onload=&quot;format()&quot;&amp;gt;&lt;/pre&gt;&lt;/div&gt;The format function, which will just read up all sections from the page marked with div and id=&quot;code&quot; (and, also with name=&quot;code&quot;... more about that later). &lt;div name=&quot;code&quot; id=&quot;code&quot;&gt;&lt;pre&gt;function format()&lt;br /&gt;{&lt;br /&gt;   var c = document.getElementsByName(&#39;code&#39;);&lt;br /&gt;   if(c != undefined)&lt;br /&gt;   {&lt;br /&gt;      if (c.length == undefined)&lt;br /&gt;      {&lt;br /&gt;         formatcode(c);&lt;br /&gt;      }&lt;br /&gt;      else&lt;br /&gt;      {&lt;br /&gt;         for(i=0; i&amp;lt;c.length; i++)&lt;br /&gt;         {&lt;br /&gt;            formatcode(c[i]);&lt;br /&gt;         }&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;I mark the &#39;color codes&#39; with font settings in variables. Instead of &#39;font&#39; html tag, I guess some more css-able thing would be better, and also, instead of variable declaration maybe there is some more elegant solution. However, this isn&#39;t the point, and this time a working solution is before an elegant one. &lt;div name=&quot;code&quot; id=&quot;code&quot;&gt;&lt;pre&gt;// keyword&lt;br /&gt;kwS = &quot;&amp;lt;font color=&#39;#3333FF&#39;&amp;gt;&quot;;&lt;br /&gt;kwE = &quot;&amp;lt;/font&amp;gt;&quot;;&lt;br /&gt;// comment block&lt;br /&gt;commS = &quot;&amp;lt;font color=&#39;#339900&#39;&amp;gt;&quot;;&lt;br /&gt;commE = &quot;&amp;lt;/font&amp;gt;&quot;;&lt;br /&gt;// string literal&lt;br /&gt;strS = &quot;&amp;lt;font color=&#39;#FF0000&#39;&amp;gt;&quot;;&lt;br /&gt;strE = &quot;&amp;lt;/font&amp;gt;&quot;;&lt;/pre&gt;&lt;/div&gt;And now onto the relevant part. It will take the argument as text, and doing replaces, and since javascript .replace method is capable of handling regexps, we will use it. I had to include some tricks to counter this blogger site&#39;s weird features. &lt;div name=&quot;code&quot; id=&quot;code&quot;&gt;&lt;pre&gt;&lt;br /&gt;function formatcode(c)&lt;br /&gt;{&lt;br /&gt;   ct = c.innerHTML;&lt;br /&gt;   //we&#39;re just doing a mass search and replace&lt;br /&gt;&lt;br /&gt;   // replacing blogger included br-s&lt;br /&gt;   ct = ct.replace(/&amp;lt;br&amp;gt;/g, &quot;\n&quot;);&lt;br /&gt;   ct = ct.replace(/&amp;lt;BR&amp;gt;/g, &quot;\n&quot;); &lt;br /&gt;   &lt;br /&gt;   // keywords&lt;br /&gt;   ct = ct.replace(/((\s|\()(break|case|char|class|&lt;br /&gt;       default|else|for|foreach|if|int|import|&lt;br /&gt;       public|private|return|struct|switch|typeof|&lt;br /&gt;       void(\s|;|:|\[|\())/g, kwS + &#39;$1&#39; + kwE );&lt;br /&gt;   ct = ct.replace(/(&amp;gt;)(break|case|char|class|&lt;br /&gt;       default|else|for|foreach|if|int|import|&lt;br /&gt;       public|private|return|struct|switch|typeof|&lt;br /&gt;       void)(\s|;|:|\[|\(&amp;lt;)/g, &#39;$1&#39; + kwS + &#39;$2$3&#39;&lt;br /&gt;       + kwE );&lt;br /&gt;   // string literals &quot; &quot;&lt;br /&gt;   ct = ct.replace(/(\&quot;[^\&quot;$]*\&quot;)/g, strS +&lt;br /&gt;       &#39;$1&#39; + strE );&lt;br /&gt;&lt;br /&gt;   // /* */ block comment&lt;br /&gt;   ct = ct.replace(/\/\* /g, commS + &quot;/* &quot;);&lt;br /&gt;   ct = ct.replace(/ \*\//g, &quot; */&quot; + commE);&lt;br /&gt;   ct = ct.replace(/\n\*\//g, &quot;\n*/&quot; + commE);&lt;br /&gt;   // // style comment&lt;br /&gt;   ct = ct.replace(/\/\/ /g, commS + &quot;// &quot;);&lt;br /&gt;   ct = ct.replace(/(\/\/ .*)($)/gm, &#39;$1&#39; + commE);&lt;br /&gt;&lt;br /&gt;   c.innerHTML = ct;&lt;br /&gt;}&lt;/pre&gt;&lt;/div&gt;What do we get now? At first, I had nice colors in IE and something else in FF, then I tweaked and tweaked. Also, as you can see, the &quot;block comment&quot; section in the above code is colored wrong, block comment &lt;em&gt;inside&lt;/em&gt; a string literal messes up the replacement. In my next post, I will write about why IE and FF differences bugging me, and well, bugging also this colorizer, and what problems arose with colorizing with regexp replace.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/114781709163874081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/114781709163874081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114781709163874081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114781709163874081'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2006/05/colored-code-samples-now-with-sample.html' title='Colored code samples - now with sample code!'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-114773291357353128</id><published>2006-05-16T00:38:00.001+02:00</published><updated>2006-05-18T14:14:00.403+02:00</updated><title type='text'>The first step - colored code samples</title><content type='html'>Not only formatted (whew, with the genuine &quot;pre&quot; html tool), but colored.&lt;br /&gt;&lt;br /&gt;Let&#39;s try it. &lt;div name=&quot;code&quot; id=&quot;code&quot;&gt;&lt;pre&gt;int main()&lt;br /&gt;{&lt;br /&gt;   printf(&quot;hello world\n&quot;);&lt;br /&gt;   return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;All right, this is nice, at least for me now.&lt;br /&gt;It has some drawbacks, along with how this blogger works (inserting &#39;br&#39;s instead of leave &#39;pre&#39;s untouched, and inserting some more linebreaks after my &#39;pre&#39; and &#39;div&#39; tags).&lt;br /&gt;But all I &lt;strike&gt;typed&lt;/strike&gt; copied is clean text included in html &#39;pre&#39; tags (preformatted):&lt;br /&gt;&lt;pre&gt;int main()&lt;br /&gt;{&lt;br /&gt;   printf(&quot;hello world\n&quot;);&lt;br /&gt;   return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;I&#39;ve just wrote some javascript to format code blocks, after the page is loaded, on the client. In my next post I will show how I did it, altough you can just simply see it in the page code.&lt;br /&gt;&lt;br /&gt;It&#39;s a quick and dirty hack, but will do it for now.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/114773291357353128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/114773291357353128' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114773291357353128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114773291357353128'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2006/05/first-step-colored-code-samples_16.html' title='The first step - colored code samples'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-27526289.post-114772298555599029</id><published>2006-05-15T21:38:00.001+02:00</published><updated>2006-05-15T21:56:25.566+02:00</updated><title type='text'>Welcome - and what will follow</title><content type='html'>All right, this is the programming blog of mine.&lt;br /&gt;&lt;br /&gt;The bigger part of the community around me, you know, family, friends, and business partners, is really not into information technology. So, although it&#39;s impossible to get around the topic, I try not to write about these in my &quot;normal&quot; = not IT blog.&lt;br /&gt;&lt;br /&gt;Now I start this one, because this time I really have something to say, beside and a bit aside from those programming thingies I myself do bore, the everyday of my so called professional life, the bugs, the builds, the grind, the sweat...&lt;br /&gt;(I can tell about this part that it is not that rare that I come across a topic I wonder about to blog, but it never worth the effort to me...)&lt;br /&gt;&lt;br /&gt;So get ready, more to come.</content><link rel='replies' type='application/atom+xml' href='http://qtprog.blogspot.com/feeds/114772298555599029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/27526289/114772298555599029' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114772298555599029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/27526289/posts/default/114772298555599029'/><link rel='alternate' type='text/html' href='http://qtprog.blogspot.com/2006/05/welcome-and-what-will-follow_15.html' title='Welcome - and what will follow'/><author><name>ElfQT</name><uri>http://www.blogger.com/profile/11473953287932037458</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://www.hardwired.hu/forum/img/avatar/2738.jpg'/></author><thr:total>0</thr:total></entry></feed>