<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Adrian Kosmaczewski &#187; Open Source</title> <atom:link href="http://kosmaczewski.net/category/open-source/feed/" rel="self" type="application/rss+xml" /><link>http://kosmaczewski.net</link> <description></description> <lastBuildDate>Mon, 06 Feb 2012 08:40:05 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Markdown FTW</title><link>http://kosmaczewski.net/markdown-ftw/</link> <comments>http://kosmaczewski.net/markdown-ftw/#comments</comments> <pubDate>Sun, 31 Jul 2011 18:13:24 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[Blogs]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[applications]]></category> <category><![CDATA[blogging]]></category> <category><![CDATA[HTML]]></category> <category><![CDATA[markdown]]></category> <category><![CDATA[tools]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=2363</guid> <description><![CDATA[Markdown is my new favorite tool. It all started while looking for alternatives to LaTeX to write documents and booklets, because since the release of the iPad last year, I wanted to publish in PDF and in EPUB format at &#8230; <a
href="http://kosmaczewski.net/markdown-ftw/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a
href="http://daringfireball.net/projects/markdown/">Markdown</a> is my new favorite tool.</p><p>It all started while looking for alternatives to <a
href="http://www.latex-project.org/">LaTeX</a> to write documents and booklets, because since the release of the iPad last year, I wanted to publish in PDF <em>and</em> in EPUB format at the same time, and LaTeX does not offer that option off the box.</p><p>And, besides, I <strong>really</strong> found that LaTeX was a great system, but reading LaTeX code was not always enjoyable. It&#8217;s a bit of a messy markup language.</p><p>So that&#8217;s how I learnt about <a
href="http://johnmacfarlane.net/pandoc/">Pandoc</a>; it is an incredible tool written in Haskell that pretty much transforms any kind of markup into another: RTF, MediaWiki syntax, HTML, LaTeX, Textile, you name it. However, it extends and gives a special status to <a
href="http://daringfireball.net/projects/markdown/">Markdown</a>, as one of its primary formats, and it provides support to create PDF and EPUB files out of the box; bingo, that&#8217;s exactly what I needed. Even better, it uses LaTeX to generate PDF files, which means that I can reuse my LaTeX knowledge to generate beautiful documents.</p><p>But then, learning more about <a
href="http://daringfireball.net/projects/markdown/">Markdown</a> (the syntax is not very far away from <a
href="http://www.textism.com/tools/textile/">Textile</a>, which I knew better), I remembered that <a
href="http://stackoverflow.com/">StackOverflow</a> uses it; that <a
href="https://github.com/">GitHub</a> uses it; and then I found an excellent <a
href="http://wordpress.org/extend/plugins/markdown-for-wordpress-and-bbpress/">Markdown plugin for WordPress</a> and another great <a
href="https://github.com/juno/redmine_markdown_extra_formatter/tree">Markdown Redmine plugin</a>. Then I updated <a
href="http://www.secondgearsoftware.com/elements/">Elements</a> recently on my iPad (an excellent Dropbox-powered text editor for the iPad), and found out that it had native <a
href="http://daringfireball.net/projects/markdown/">Markdown</a> support. And of course, both <a
href="http://code.google.com/p/macvim/">MacVim</a> and <a
href="http://macromates.com/">TextMate</a> have an excellent <a
href="http://daringfireball.net/projects/markdown/">Markdown</a> support, including syntax highlighting and preview. And finally, even better, I discovered that <a
href="http://www.red-sweater.com/marsedit/">MarsEdit supports Markdown natively</a>.</p><p>So that&#8217;s it, I&#8217;m sold. I&#8217;m writing almost everything these days with <a
href="http://daringfireball.net/projects/markdown/">Markdown</a>. And it&#8217;s a simple, pure joy.</p><p>PS: I&#8217;m even considering buying <a
href="http://markedapp.com/">Marked</a> by Brett Terpstra, or even <a
href="http://getmacchiato.com/">Macchiato</a> (although this last one seems to me a bit pricey).</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/markdown-ftw/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Del.icio.us to WordPress</title><link>http://kosmaczewski.net/del-icio-us-to-wordpress/</link> <comments>http://kosmaczewski.net/del-icio-us-to-wordpress/#comments</comments> <pubDate>Mon, 28 Dec 2009 10:44:59 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[Blogs]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[del.icio.us]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[wordpress]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=2157</guid> <description><![CDATA[I&#8217;ve just uploaded a new project on Github called delicious_wp: it&#8217;s a small Ruby script that simply fetches the items stored in del.icio.us the previous week and creates a blog post with them. You can set up a small cron &#8230; <a
href="http://kosmaczewski.net/del-icio-us-to-wordpress/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I&#8217;ve just uploaded a new project on Github called <a
target="_blank" href="http://github.com/akosma/delicious_wp">delicious_wp</a>: it&#8217;s a small Ruby script that simply fetches the items stored in del.icio.us the previous week and creates a blog post with them. You can set up a small cron job to execute this script every week, which is what I&#8217;ve done for this blog :) I know del.icio.us has a similar feature integrated, but it executes daily, instead of weekly, which is what I wanted.</p><p>To use it, just clone the repository, copy the config.yaml.sample file as config.yaml and edit its values inside. Run the script and voilà! A new blog post entry with your del.icio.us bookmarks.</p><p>The script can also be helpful to those wondering how to use the XML-RPC interface of WordPress from a Ruby script, or how to use the Net::HTTP library to consume a REST API.</p><p>[source:ruby]
def get_delicious_bookmarks
# Connect to delicious and get updates
http = Net::HTTP.new(DELICIOUS_SERVER, DELICIOUS_PORT)
http.use_ssl = true
req = Net::HTTP::Get.new(DELICIOUS_DATES_PATH)
req.add_field(&#8220;User-Agent&#8221;, DELICIOUS_USER_AGENT)
req.basic_auth username, password
response = http.request(req)
results = response.body
[/source]</p><p>[source:ruby]
def post_to_wordpress(title, text)
entry = {
:title => title,
:description => text
}
# Connect to WordPress using the XML-RPC interface
blog = XMLRPC::Client.new(server, path, port)
blog.call(&#8220;metaWeblog.newPost&#8221;, blogid, username,
password, entry, true)
[/source]</p><p>Enjoy! As usual, the code is released with a BSD license.</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/del-icio-us-to-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Thoughts about Google&#8217;s &#8220;Go&#8221; Programming Language</title><link>http://kosmaczewski.net/thoughts-about-googles-go-programming-language/</link> <comments>http://kosmaczewski.net/thoughts-about-googles-go-programming-language/#comments</comments> <pubDate>Thu, 12 Nov 2009 10:40:51 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[Code]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=2081</guid> <description><![CDATA[Historically, we can distinguish really big software companies for providing, at least, four major kinds of products: an operating system (sometimes open sourced at a certain level), a web browser (with various degrees of standard compliance), a suite of office &#8230; <a
href="http://kosmaczewski.net/thoughts-about-googles-go-programming-language/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Historically, we can distinguish really big software companies for providing, at least, four major kinds of products: an operating system (sometimes open sourced at a certain level), a web browser (with various degrees of standard compliance), a suite of office applications (slightly compatible with everyone else&#8217;s), and a programming language with curly brackets (generally incompatible with everything else). In that particular order, we have:</p><ul><li><strong>Microsoft:</strong> Windows, Internet Explorer, Microsoft Office, and C#.</li><li><strong>Sun:</strong> Solaris, HotJava (sic), StarOffice, and Java.</li><li><strong>Apple:</strong> Mac OS X, Safari, iWork, and Objective-C.</li><li><strong>Google:</strong> Chrome OS, Chrome, Google Docs, and&#8230; Go.</li></ul><p>Precisely, <a
href="http://golang.org/">Go</a> was the last piece that Google had to create in order to fit into the framework above. And it did, with a bright team including Ken Thompson (of Unix and C fame) and Rob Pike (of Plan 9 and UTF-8 fame). With names like that, and with Google&#8217;s own funding and infrastructure, it is normal that the media went into a hype frenzy yesterday.</p><p><img
src="http://kosmaczewski.net/wp-content/uploads/2009/11/bumper480x270.png" alt="bumper480x270" title="bumper480x270" width="480" height="270" class="alignnone size-full wp-image-2093" /></p><p>I think, however, that Google&#8217;s engineers got tired of what the current and upcoming versions of their &#8220;official&#8221; programming languages (Java 7, C++0x and Python 3.0) had to offer, and simply came up with a programming language that fits better their needs and expectations. As <a
href="http://golang.org/doc/go_talk-20091030.pdf">one of the slides</a> of the <a
href="http://www.youtube.com/watch?v=rKnDgT73v8s">TechTalk</a> says, with current languages &#8220;You can be productive or safe, not both.&#8221;</p><p>Features like built-in support for concurrency or garbage collection hide the real true feature behind the language: faster build times with static typing support. This is important for Google from a software economy point of view: they want more productivity from their developers, or, in other words, more bang for their buck, all together with verifiable quality and speed of execution. Go seems to be designed to deliver in these areas. However, Rob Pike is careful to say that the language is experimental, so time will tell if their efforts were worth it.</p><p>In any case, it is worth noting that there was a <a
href="http://en.wikipedia.org/wiki/Go!_(programming_language)">previous programming language called Go!</a> (whose author even wrote a <a
href="http://www.lulu.com/content/paperback-book/lets-go/641689">book about it</a>), and after an <a
href="http://www.informationweek.com/news/software/web_services/showArticle.jhtml?articleID=221601351">InformationWeek article</a> revealed this, <a
href="http://code.google.com/p/go/issues/detail?id=9">a petition has started in the Go bug tracking</a>, asking Google to change the name of the language, all in the name of Google&#8217;s own &#8220;Don&#8217;t be evil&#8221; motto.</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/thoughts-about-googles-go-programming-language/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>iPhone Apps without Objective-C</title><link>http://akosma.com/2009/10/29/iphone-apps-without-objective-c/</link> <comments>http://akosma.com/2009/10/29/iphone-apps-without-objective-c/#comments</comments> <pubDate>Thu, 29 Oct 2009 14:46:40 +0000</pubDate> <dc:creator>akosma software</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[C++]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[Objective-C]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[Software]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=2027</guid> <description><![CDATA[Yes, it&#8217;s possible. Even if Objective-C is one of my preferred programming languages, in any case I think it&#8217;s worth mentioning that, 2 years after the official iPhone SDK has been announced, the iPhone development landscape has really grown up, &#8230; <a
href="http://akosma.com/2009/10/29/iphone-apps-without-objective-c/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Yes, it&#8217;s possible. Even if Objective-C is one of my <a
href="http://kosmaczewski.net/2007/03/09/preferred-programming-languages/">preferred programming languages</a>, in any case I think it&#8217;s worth mentioning that, 2 years after <a
href="http://www.tuaw.com/2007/10/17/apple-we-plan-to-have-an-iphone-sdk-in-developers-hands-in-fe/">the official iPhone SDK has been announced</a>, the iPhone development landscape has really grown up, and many, many different options are available today. This article provides a very high-level enumeration of some options I&#8217;ve found on the web, but I&#8217;m sure there are even more alternatives around.</p><p
align="center"><a
href="http://www.amazon.com/Programming-Objective-C-2-0-Stephen-Kochan/dp/0321566157/ref=dp_ob_title_bk"><img
src="http://kosmaczewski.net/wp-content/uploads/2009/10/0321566157-233x300.jpg" alt="0321566157" title="0321566157" width="233" height="300" class="alignnone size-medium wp-image-2031" /></a></p><p>Here it goes: <span
id="more-2027"></span></p><ul><li>First of all, remember that <a
href="http://www.apple.com/webapps/whatarewebapps.html">you can always create web apps</a>. It&#8217;s worth mentioning that you can avoid the App Store and its quirks altogether; it&#8217;s up to you ;) This opens up the possibility of using your preferred server-side technology + JavaScript, and there&#8217;s quite a few libraries and tools that will help you create a killer web app: <a
href="http://code.google.com/p/iui/">Joe Hewitt&#8217;s excellent iUI</a> (yes, he&#8217;s the same guy behind the <a
href="http://joehewitt.com/post/the-three20-project/">Three20 project</a>), the <a
href="http://www.railslodge.com/plugins/1200-tank-engine"><del
datetime="2009-10-30T11:50:16+00:00">Tank Engine Rails plugin</del></a> <a
href="http://github.com/noelrappin/rails-iui">Rails iUI plugin</a> (Tank Engine does not work very well unfortunately), <a
href="http://www.marketcircle.com/iphoney/">iPhoney</a> or <a
href="http://www.ibm.com/developerworks/opensource/library/os-eclipse-iphone/">Eclipse</a> are just some of the alternatives.</li><li>If you like C++, you can choose between the official SDK (yes, you can create iPhone apps with just C or C++), or other alternatives like <a
href="http://libnui.net/">nui</a>, <a
href="http://pocoproject.org/blog/?p=208">POCO</a>, <a
href="http://www.mani.de/backstage/?p=159">Boost</a> or <a
href="http://drawlogic.com/2009/06/19/haxe-on-the-iphone-with-hxcpp-flash-9-api-to-c-for-mobile/">haXe</a>. And apparently, soon you&#8217;ll be able to use a <a
href="http://www.daniweb.com/news/story228677.html#">Symbian C++ toolkit</a> as well (and who knows, maybe even we&#8217;ll get <a
href="http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?t=2832">Juce on the iPhone</a> one day too!).</li><li>If you are a Flash and ActionScript developer, you are most probably aware that you can create <a
href="http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/">native iPhone applications using Adobe Flash CS5</a>&#8230;</li><li>For C# and .NET developers, there&#8217;s <a
href="http://monotouch.net/">MonoTouch</a>, which has received extensive press coverage lately.</li><li>If you want to use Lua, you can use the <a
href="http://github.com/probablycorey/wax">Wax framework</a>.</li><li>If your idea is to &#8220;write once, run anywhere&#8221;, and &#8220;anywhere&#8221; in this context means Android, iPhone, BlackBerry and other mobile platforms, you might want to try <a
href="http://rhomobile.com/">rhomobile</a>, <a
href="http://www.anscamobile.com/corona/">Corona</a>, <a
href="http://phonegap.com/">PhoneGap</a> or <a
href="http://quickconnect.sourceforge.net/browser/index.html">QuickConnect</a>. The <a
href="http://www.xmlvm.org/iphone/#">XMLVM</a> project might also interest you, as it consists of a cross-compiler toolchain which can be used with Ruby, .NET, Java and can generate code for many platforms at once.</li><li>Finally, if you are into game development, the quantity of libraries allowing you to create iPhone games is simply astounding, many supporting alternative programming languages: <a
href="http://www.libsdl.org/index.php">SDL</a>, <a
href="http://unity3d.com/">Unity</a>, <a
href="http://sio2interactive.com/">SIO2</a>, <a
href="http://www.garagegames.com/products/torque-2d/iphone">Torque2D</a>, <a
href="http://cocos2d.org/">cocos2d</a> and <a
href="http://gamehaxe.com/category/nme/">Game Haxe</a>.</li><li>And of course, <a
href="http://developer.apple.com/iphone/">there&#8217;s the official SDK</a>, with Objective-C and Cocoa Touch all the big buzz around it.</li></ul><p>What do you think? Is there any library or programming language that I&#8217;ve forgotten in this list? Just leave the name and URL in the comments below.</p><p><strong>Update, 2009-11-05: </strong>Just found the <a
href="http://www.swebapps.com/">Swebapps service</a> which allows you to create (very basic) iPhone apps without coding.</p><p><strong>Update, 2009-11-24: </strong>Here&#8217;s a new entry for the growing list of alternative frameworks: <a
href="http://www.crystalsdk.com/">Crystal SDK</a> by <a
href="http://www.chillingo.com/">Chillingo</a>.</p><p><strong>Update, 2009-11-25: </strong>Another one, in C++ and cross-platform: <a
href="http://www.airplaysdk.com/">Airplay SDK</a>.</p> ]]></content:encoded> <wfw:commentRss>http://akosma.com/2009/10/29/iphone-apps-without-objective-c/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Using Multiple Twitter Clients from your iPhone Application</title><link>http://kosmaczewski.net/using-multiple-twitter-clients-from-your-iphone-application/</link> <comments>http://kosmaczewski.net/using-multiple-twitter-clients-from-your-iphone-application/#comments</comments> <pubDate>Fri, 11 Sep 2009 20:47:19 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[iPhone]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Twitter]]></category> <category><![CDATA[Cocoa]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[Objective-C]]></category> <category><![CDATA[project]]></category> <category><![CDATA[Xcode]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=1915</guid> <description><![CDATA[I love playing with iPhone URL schemes. And if you ask me, just like for Mail.app and Safari, I think there should be a &#8220;default&#8221; Twitter client URL scheme in the iPhone, with an interface in the Settings application allowing &#8230; <a
href="http://kosmaczewski.net/using-multiple-twitter-clients-from-your-iphone-application/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a
href="http://kosmaczewski.net/2009/08/04/discovering-a-hidden-iphone-url-scheme/">I love playing with iPhone URL schemes</a>. And if you ask me, just like for Mail.app and Safari, I think there should be a &#8220;default&#8221; <a
href="http://twitter.com/">Twitter</a> client URL scheme in the iPhone, with an interface in the Settings application allowing you to set the application that you prefer to tweet. Alas, this is not the case, and each application must manually allow users to select their preferred client, from a list of known ones.</p><p>Having documented <a
href="http://wiki.akosma.com/IPhone_URL_Schemes">iPhone URL schemes</a> for <a
href="http://twitterfon.net/">TwitterFon</a>, <a
href="http://iconfactory.com/software/twitterrific">Twitterrific</a>, <a
href="http://www.atebits.com/tweetie-iphone/">Tweetie</a> and <a
href="http://www.stone.com/Twittelator/">Twittelator</a>, I&#8217;ve created a project, available in Github, called TwitThis, which helps users choose their preferred Twitter client, and makes it easy to remember the user choice, and to launch the associated application with a single command:</p><p
align="center"><img
src="http://kosmaczewski.net/wp-content/uploads/2009/09/TwitThis.png" alt="TwitThis" title="TwitThis" width="320" height="460" class="alignnone size-full wp-image-1916" /></p><p>This application has the following features:</p><ul><li>The class TwitterClientManager loads a list list of supported Twitter clients is loaded from a plist file, which can be extended to support more clients in the future;</li><li>Each Twitter client is represented by an instance of the TwitterClient class;</li><li>The user can choose his preferred Twitter client at any time, and launch the application by a simple touch; the TwitterClientManager class stores the selected value in the user settings.</li></ul><p>If you have to support several different Twitter clients, feel free to use these classes in your own project! The project, as usual, is <a
href="http://github.com/akosma/TwitThis/">available in Github</a> with a liberal BSD license. Enjoy! I&#8217;d love to hear your comments below.</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/using-multiple-twitter-clients-from-your-iphone-application/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>bluewoki &#8211; Bluetooth Walkie-Talkie for iPhone OS 3.0</title><link>http://akosma.com/2009/07/15/bluewoki-bluetooth-walkie-talkie-for-iphone-os-3-0/</link> <comments>http://akosma.com/2009/07/15/bluewoki-bluetooth-walkie-talkie-for-iphone-os-3-0/#comments</comments> <pubDate>Wed, 15 Jul 2009 07:15:21 +0000</pubDate> <dc:creator>akosma software</dc:creator> <category><![CDATA[iPhone]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[akosma software]]></category> <category><![CDATA[App Store]]></category> <category><![CDATA[Bluetooth]]></category> <category><![CDATA[bluewoki]]></category> <category><![CDATA[framework]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=1599</guid> <description><![CDATA[The first iPhone application under the akosma brand has just been published on the App Store: bluewoki is a very simple walkie-talkie application, which uses the new GameKit framework available on the iPhone OS 3.0. It is available at the &#8230; <a
href="http://akosma.com/2009/07/15/bluewoki-bluetooth-walkie-talkie-for-iphone-os-3-0/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a
href="/wp-content/uploads/2009/07/main.png" rel="lightbox"><img
src="/wp-content/uploads/2009/07/main-200x300.png" alt="main" title="main" width="200" height="300" class="alignnone size-medium wp-image-1605" align="left"/></a> The first iPhone application under the <a
href="http://akosma.com">akosma</a> brand has just been published on the App Store:</p><p><a
href="http://bluewoki.com/"><strong>bluewoki</strong></a><a
href="http://itunes.com/apps/bluewoki"><img
align="right" src="http://kosmaczewski.net/wp-content/uploads/2009/07/App_Store_Badge_EN.png" alt="App_Store_Badge_EN" title="App_Store_Badge_EN" width="141" height="50" class="alignnone size-full wp-image-1606" /></a> is a very simple walkie-talkie application, which uses the new GameKit framework available on the iPhone OS 3.0. It is available at the <a
href="http://itunes.com/apps/bluewoki">App Store</a>! In English, Spanish and French.</p><p>The source code is really simple (around 170 lines of code) and you can get it, as usual, <a
href="http://github.com/akosma/bluewoki/">from Github</a> with a BSD license.</p> ]]></content:encoded> <wfw:commentRss>http://akosma.com/2009/07/15/bluewoki-bluetooth-walkie-talkie-for-iphone-os-3-0/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>WordPress 2.8 and the get_link() error in line 647 of dashboard.php</title><link>http://kosmaczewski.net/wordpress-2-8-and-the-get_link-error-in-line-647-of-dashboard-php/</link> <comments>http://kosmaczewski.net/wordpress-2-8-and-the-get_link-error-in-line-647-of-dashboard-php/#comments</comments> <pubDate>Thu, 25 Jun 2009 17:22:08 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[How to?]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[wordpress]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=1584</guid> <description><![CDATA[Wow, that&#8217;s a long title, but it should drive people with this problem right here. If you have upgraded your WordPress installation to 2.8, you might have encountered a nasty error in your Dashboard, which says something about a Fatal &#8230; <a
href="http://kosmaczewski.net/wordpress-2-8-and-the-get_link-error-in-line-647-of-dashboard-php/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Wow, that&#8217;s a long title, but it should drive people with this problem right here. If you have upgraded your WordPress installation to 2.8, you might have encountered a nasty error in your Dashboard, which says something about a</p><blockquote>Fatal error: Call to a member function on a non-object in /home/user/www/wp-admin/includes/dashboard.php on line 647</blockquote><p>This has been <a
href="http://wordpress.org/support/topic/279727">reported in the WordPress site</a> but no fix has been provided. <a
href="http://estanli.net/blog/2009/06/24/wordpress-2-8-problem-fatal-error-call-to-a-member-function-on-a-non-object/">I found elsewhere a possible fix</a>, but in my case, the new URL would not be saved at all, and the problem would persist.</p><p>I fixed it using a good old method, enabled by Open Source™: <strong>editing the code directly</strong>; I&#8217;m posting it here for those of you who would like to do it, until 2.8.1 is released:</p><p>[source:php:firstline(646)]
$author = $item->get_author();
if ($author == NULL)
{
$site_link = &#8220;&#8221;;
$publisher = &#8220;Someone&#8221;;
}
else
{
$site_link = esc_url(strip_tags($author->get_link()));
if ( !$publisher = esc_html(strip_tags($author->get_name())))
$publisher = __(&#8216;Somebody&#8217;);
if ($site_link)
$publisher = &#8220;<a
href='$site_link'>$publisher</a>&#8220;;
else
$publisher = &#8220;<strong>$publisher</strong>&#8220;;
}
[/source]</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/wordpress-2-8-and-the-get_link-error-in-line-647-of-dashboard-php/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>OpenGL ES 2.0 on iPhone OS 3.0</title><link>http://kosmaczewski.net/opengl-es-2-on-iphone-os-3/</link> <comments>http://kosmaczewski.net/opengl-es-2-on-iphone-os-3/#comments</comments> <pubDate>Wed, 24 Jun 2009 06:26:02 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[iPhone]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Cocoa]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[git]]></category> <category><![CDATA[Objective-C]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=1568</guid> <description><![CDATA[Now that the NDA on the iPhone OS 3.0 SDK has been lifted (which happened much faster than what I thought it would take!) here&#8217;s my first contribution to the world of iPhone OS 3.0 open source code: sample code &#8230; <a
href="http://kosmaczewski.net/opengl-es-2-on-iphone-os-3/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><img
src="http://kosmaczewski.net/wp-content/uploads/2009/06/51kzxfqqzbl_sl500_aa240_.jpg" alt="" title="OpenGL ES 2.0 book" width="180" height="239" class="alignnone size-full wp-image-1571" align="left"/>Now that the <a
href="https://devforums.apple.com/message/86763#86763">NDA on the iPhone OS 3.0 SDK has been lifted</a> (which happened much faster than what I thought it would take!) here&#8217;s my first contribution to the world of iPhone OS 3.0 open source code: sample code about how to use OpenGL ES 2.0 on the iPhone 3GS, something I <a
href="http://twitter.com/akosma/statuses/2181419577">announced in Twitter</a> last week.</p><p>As you might know by now, one of the biggest enhancements (and yet, <a
href="http://twitter.com/akosma/status/2082319555">one of the most obscure</a>) of the newly released <a
href="http://www.apple.com/iphone/">iPhone 3GS</a> is the new GPU chipset, which allows developers to create applications using Open GL ES 2.0 (together with Open GL 1.1, which was already available in the first two iterations of the iPhone). This is a major advance, invisible to the end user, which, coupled with the <a
href="http://www.theiphoneblog.com/2009/06/23/raw-performance-iphone-3gs-4x-faster-iphone-3g-3d/">unprecedented performance boost</a> of the iPhone 3GS, opens up the possibility to developers to create applications with new textures and effects, yet unforeseen on this platform.</p><p>Given that Xcode does not (yet) bring an Xcode template to play with, and that the <a
href="http://www.amazon.com/OpenGL-ES-2-0-Programming-Guide/dp/0321502795">OpenGL ES 2.0 Programming Guide book, by Aaftab Munshi, Dan Ginsburg and Dave Shreiner</a> does not (obviously) bring iPhone examples, I have created a <a
href="http://github.com/akosma/opengles2-xcode-book/">project in Github</a> where I will be publishing the code samples in the book, as <a
href="http://twitter.com/akosma/status/2092228652">I progress in the lecture</a>, ordered by chapter, ready to compile and play with.</p><p>Enjoy! I&#8217;m happy not having to use the word <a
href="http://twitter.com/akosma/status/2107210213">&#8220;[REDACTED]&#8220;</a> any more now (there&#8217;s the other OS, the bigger cat, but, oh well&#8230;)</p><p><strong>Update, 2009-06-24:</strong> I just found <a
href="http://blackpixel.com/blog/244/early-iphone-3g-s-opengl-test-results/">this blog post</a> by the folks of <a
href="http://blackpixel.com/">Black Pixel</a> (<a
href="http://twitter.com/dlpasco">Daniel Pasco</a>&#8216;s company) with benchmarks about OpenGL ES on the iPhone 3GS&#8230; and the first line says it all:</p><blockquote>Holy crap, this thing is fast</blockquote><p><strong>Update, 2009-06-24:</strong> <a
href="http://iphonedevelopment.blogspot.com/2009/06/opengl-es-20-programming-guide-has-3gs.html">Jeff LaMarche just announced</a> that the authors of the book <a
href="http://opengles-book.com/downloads.html#iPhone">have published iPhone &#8211; compatible</a> code in <a
href="http://opengles-book.com/">the book website</a>! That effectively renders this project useless :))</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/opengl-es-2-on-iphone-os-3/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Asynchronous Loading of Images in a UITableView</title><link>http://kosmaczewski.net/asynchronous-loading-of-images-in-a-uitableview/</link> <comments>http://kosmaczewski.net/asynchronous-loading-of-images-in-a-uitableview/#comments</comments> <pubDate>Sun, 08 Mar 2009 19:33:50 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[Code]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[git]]></category> <category><![CDATA[project]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=1441</guid> <description><![CDATA[This is one of the most common scenarios for network- + UITableView-based applications; a UITableView instance whose contents come from the network; not only the text, but also the images! Somehow we all want to reproduce the behavior of the &#8230; <a
href="http://kosmaczewski.net/asynchronous-loading-of-images-in-a-uitableview/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a
href="http://kosmaczewski.net/wp-content/uploads/2009/03/asynctable.png" rel="lightbox"><img
src="http://kosmaczewski.net/wp-content/uploads/2009/03/asynctable-161x300.png" alt="" title="asynctable" width="161" height="300" class="alignnone size-medium wp-image-1436" align="left"/></a> This is one of the most common scenarios for network- + UITableView-based applications; <strong>a UITableView instance whose contents come from the network; not only the text, but also the images!</strong> Somehow we all want to reproduce the behavior of the App Store (or of the iTunes) iPhone application, where the icons (or covers) of the apps (or songs) are downloaded one by one, as you scroll the table, without crashing nor opening 1000 simultaneous network connections.</p><p>My solution (there might be many others!) consists in the following key elements:</p><ul><li>Avoid loading images right after the RSS feed is parsed; instead, use the -tableView:willDisplayCell:forRowAtIndexPath: delegate method in the controller to trigger the loading of the image for cells that become visible; this ensures that only the cells that are visible will receive the order to load images from the network;</li><li>Use a &#8220;model&#8221; class for each element of the table, and make the custom UITableViewCell subclass a delegate of this model object; then, the model object is responsible of loading its own image, and will tell the UITableViewCell when done;</li><li>Use the <a
href="http://allseeing-i.com/ASIHTTPRequest">ASIHTTPRequest framework</a>, with a shared download queue in the application delegate, so that all of the requests are properly queued, and network resources are properly used;</li><li>Show feedback to the user with scrolling wheels whenever and wherever appropriate;</li><li>Use the Reachability class from Apple&#8217;s own sample code to see if we&#8217;re really connected to Flickr, and otherwise show an error to the user.</li></ul><p>I have created a sample project, as usual in <a
href="http://github.com/akosma/async-uitableview/">Github</a>, where I gather RSS data from <a
href="http://www.flickr.com/services/feeds/">Flickr&#8217;s public feed</a>, and then I download synchronously the preview images of the feed. I even included a very simple Core Animation effect which reminds me of how the iTunes iPhone application allows us to hear previews of the songs we want to buy (the image flips and shows another view &#8220;behind&#8221;).</p><p>Feel free to contribute, fork, enjoy, read, use in your own projects, as you want. As I said, there might be many other (and most probably better) approaches to do this, so feel free to leave your comments below, as usual.</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/asynchronous-loading-of-images-in-a-uitableview/feed/</wfw:commentRss> <slash:comments>32</slash:comments> </item> <item><title>That Facebook strip</title><link>http://kosmaczewski.net/that-facebook-strip/</link> <comments>http://kosmaczewski.net/that-facebook-strip/#comments</comments> <pubDate>Tue, 24 Feb 2009 20:37:58 +0000</pubDate> <dc:creator>Adrian</dc:creator> <category><![CDATA[iPhone]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[git]]></category> <guid
isPermaLink="false">http://kosmaczewski.net/?p=1396</guid> <description><![CDATA[No, not a comic strip nor anything else that uses the &#8220;strip&#8221; word. But rather this component which lately has appeared in many different iPhone applications (see below some screenshots from the Facebook, the LinkedIn and the TSRinfo ones), and &#8230; <a
href="http://kosmaczewski.net/that-facebook-strip/">Continue reading <span
class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>No, not a comic strip nor anything else that uses the &#8220;strip&#8221; word. But rather this component which lately has appeared in many different iPhone applications (see below some screenshots from the <a
href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284882215&#038;mt=8">Facebook</a>, the <a
href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=288429040&#038;mt=8">LinkedIn</a> and the <a
href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=301852634&#038;mt=8">TSRinfo</a> ones), and which I simply reimplemented, and then <a
href="http://github.com/akosma/iphonestripview/">posted the code to Github</a> for everyone to enjoy and use.</p><p><img
src="/wp-content/uploads/2009/02/facebook.png" alt="" title="facebook" width="160" height="240" class="alignnone size-full wp-image-1397" /> <img
src="/wp-content/uploads/2009/02/linkedin.png" alt="" title="linkedin" width="160" height="240" class="alignnone size-full wp-image-1398" /> <img
src="/wp-content/uploads/2009/02/tsr.png" alt="" title="tsr" width="160" height="240" class="alignnone size-full wp-image-1401" /></p><p><strong>Update, 2009-02-24:</strong> I have just been told via Twitter by <a
href="http://twitter.com/enormego/status/1246558858">enormego</a> that two weeks ago they have released <a
href="http://github.com/enormego/flicktabcontrol/tree/master">another &#8220;Facebook strip&#8221; in Github</a>! You might want to check it out. Mine is much simpler as far as I&#8217;ve seen, in particular I don&#8217;t have a custom class for buttons&#8230; :)</p> ]]></content:encoded> <wfw:commentRss>http://kosmaczewski.net/that-facebook-strip/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
