Permalink
Browse files

Site updated at 2012-03-21 13:03:57 UTC

  • Loading branch information...
omorandi committed Mar 21, 2012
1 parent 72b7a5b commit 78ab5804cec2e1e0440dedff78e69ebf632c1029
Showing with 1,465 additions and 230 deletions.
  1. +17 −1 atom.xml
  2. +307 −0 bash-one-liner-for-renaming-high-res-image-files-to-at-2x/index.html
  3. +20 −6 blog/archives/index.html
  4. +32 −0 blog/categories/bash-/atom.xml
  5. +252 −0 blog/categories/bash-/index.html
  6. +1 −1 blog/categories/hacking/atom.xml
  7. +4 −4 blog/categories/hacking/index.html
  8. +32 −0 blog/categories/ios-/atom.xml
  9. +252 −0 blog/categories/ios-/index.html
  10. +1 −1 blog/categories/ios/atom.xml
  11. +4 −4 blog/categories/ios/index.html
  12. +1 −1 blog/categories/javasciptcore/atom.xml
  13. +4 −4 blog/categories/javasciptcore/index.html
  14. +1 −1 blog/categories/javascriptcore/atom.xml
  15. +4 −4 blog/categories/javascriptcore/index.html
  16. +1 −1 blog/categories/jscore/atom.xml
  17. +4 −4 blog/categories/jscore/index.html
  18. +1 −1 blog/categories/low-level/atom.xml
  19. +4 −4 blog/categories/low-level/index.html
  20. +1 −1 blog/categories/profiling/atom.xml
  21. +4 −4 blog/categories/profiling/index.html
  22. +1 −1 blog/categories/titanium-mobile/atom.xml
  23. +4 −4 blog/categories/titanium-mobile/index.html
  24. +32 −0 blog/categories/trick/atom.xml
  25. +252 −0 blog/categories/trick/index.html
  26. +4 −4 building-titanium-mobile-jscore-from-source/index.html
  27. +43 −140 index.html
  28. +4 −4 post/10360108035/titanium-hack-fastdev-for-ios/index.html
  29. +4 −4 post/10559549700/fastdev-for-ios-how-it-works/index.html
  30. +4 −4 post/5841602276/learning-javascript-used-to-mean-you-werent-a/index.html
  31. +4 −4 post/6299270537/using-intents-for-sending-sms-messages-on-android-with/index.html
  32. +4 −4 post/9952431938/tracing-objective-c-message-calls/index.html
  33. +140 −5 post/page/2/index.html
  34. +6 −4 profiling-ti-mobile-apps-is-it-possible/index.html
  35. +4 −4 simulating-slow-network-links-on-os-x/index.html
  36. +8 −2 sitemap.xml
  37. +4 −4 whoami/index.html
View
@@ -4,7 +4,7 @@
<title><![CDATA[Titanium Ninja]]></title>
<link href="http://titaniumninja.com/atom.xml" rel="self"/>
<link href="http://titaniumninja.com/"/>
- <updated>2012-03-13T18:16:40+01:00</updated>
+ <updated>2012-03-21T14:03:47+01:00</updated>
<id>http://titaniumninja.com/</id>
<author>
<name><![CDATA[TiNinja]]></name>
@@ -13,6 +13,22 @@
<generator uri="http://octopress.org/">Octopress</generator>
+ <entry>
+ <title type="html"><![CDATA[Bash one-liner for renaming high-res image files to @2x]]></title>
+ <link href="http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x/"/>
+ <updated>2012-03-21T13:54:00+01:00</updated>
+ <id>http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x</id>
+ <content type="html"><![CDATA[<p>This tip may be useful to iOS developers when they&#8217;re given a bunch of high-resolution files and they need to rename them with the <strong><em>@2x</em></strong> filename suffix.</p>
+
+<p>Supposing the files are all in the same directory (containing only the files you need to rename), just do this in the terminal:</p>
+
+<pre><code>for file in *; do mv "$file" "${file%.*}@2x.${file##*.}"; done
+</code></pre>
+
+<p>As a result, the files will all be renamed following the pattern <code>&lt;name&gt;@2x.&lt;extension&gt;</code>.</p>
+]]></content>
+ </entry>
+
<entry>
<title type="html"><![CDATA[Profiling Ti Mobile apps: is it possible?]]></title>
<link href="http://titaniumninja.com/profiling-ti-mobile-apps-is-it-possible/"/>
@@ -0,0 +1,307 @@
+
+<!DOCTYPE html>
+<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
+<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
+<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
+<head>
+ <meta charset="utf-8">
+ <title>Bash one-liner for renaming high-res image files to @2x - Titanium Ninja</title>
+ <meta name="author" content="TiNinja">
+
+
+ <meta name="description" content="This tip may be useful to iOS developers when they&#8217;re given a bunch of high-resolution files and they need to rename them with the @2x filename &hellip;">
+
+
+ <!-- http://t.co/dKP3o1e -->
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+
+ <link rel="canonical" href="http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x">
+ <link href="/favicon.png" rel="icon">
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+ <script src="/javascripts/modernizr-2.0.js"></script>
+ <script src="/javascripts/ender.js"></script>
+ <script src="/javascripts/octopress.js" type="text/javascript"></script>
+ <link href="http://feeds.feedburner.com/TitaniumNinja" rel="alternate" title="Titanium Ninja" type="application/atom+xml">
+ <!--Fonts from Google"s Web font directory at http://google.com/webfonts -->
+<link href='http://fonts.googleapis.com/css?family=Alike+Angular' rel='stylesheet' type='text/css'>
+<link href="http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+<link href="http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css">
+
+
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-8810685-2']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+
+
+</head>
+
+<body >
+ <header role="banner"><hgroup>
+ <h1><a href="/">Titanium Ninja</a></h1>
+
+ <h2>App and module development with Titanium Mobile</h2>
+
+</hgroup>
+
+</header>
+ <nav role="navigation"><ul class="subscription" data-subscription="rss">
+ <li><a href="http://feeds.feedburner.com/TitaniumNinja" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+
+</ul>
+<form action="http://google.com/search" method="get">
+ <fieldset role="search">
+ <input type="hidden" name="q" value="site:titaniumninja.com" />
+ <input class="search" type="text" name="q" results="0" placeholder="Search"/>
+ </fieldset>
+</form>
+<ul class="main-navigation">
+ <li><a href="/">Blog</a></li>
+ <li><a href="/whoami/">whoami</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+</ul>
+
+</nav>
+ <div id="main">
+ <div id="content">
+ <div>
+<article class="hentry" role="article">
+
+ <header>
+
+ <h1 class="entry-title">Bash One-liner for Renaming High-res Image Files to @2x</h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+<time datetime="2012-03-21T13:54:00+01:00" pubdate>Mar 21<span>st</span>, 2012</time>
+
+ </p>
+
+ </header>
+
+
+<div class="entry-content"><p>This tip may be useful to iOS developers when they&#8217;re given a bunch of high-resolution files and they need to rename them with the <strong><em>@2x</em></strong> filename suffix.</p>
+
+<p>Supposing the files are all in the same directory (containing only the files you need to rename), just do this in the terminal:</p>
+
+<pre><code>for file in *; do mv "$file" "${file%.*}@2x.${file##*.}"; done
+</code></pre>
+
+<p>As a result, the files will all be renamed following the pattern <code>&lt;name&gt;@2x.&lt;extension&gt;</code>.</p>
+</div>
+
+
+ <footer>
+ <p class="meta">
+
+
+
+<span class="byline author vcard">Posted by <span class="fn">TiNinja</span></span>
+
+
+
+
+
+
+
+
+<time datetime="2012-03-21T13:54:00+01:00" pubdate>Mar 21<span>st</span>, 2012</time>
+
+
+<span class="categories">
+
+ <a class='category' href='/blog/categories/bash-/'>bash,</a>, <a class='category' href='/blog/categories/ios-/'>iOS,</a>, <a class='category' href='/blog/categories/trick/'>trick</a>
+
+</span>
+
+
+ </p>
+
+ <div class="sharing">
+
+ <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x/" data-via="olivier_morandi" data-counturl="http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x/" >Tweet</a>
+
+
+
+</div>
+
+
+ <p class="meta">
+
+ <a class="basic-alignment left" href="/profiling-ti-mobile-apps-is-it-possible/" title="Previous Post: Profiling Ti Mobile apps: is it possible?">&laquo; Profiling Ti Mobile apps: is it possible?</a>
+
+
+ </p>
+ </footer>
+</article>
+
+ <section>
+ <h1>Comments</h1>
+ <div id="disqus_thread" aria-live="polite"><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+</div>
+ </section>
+
+</div>
+
+<aside class="sidebar">
+
+ <section>
+ <h1>Recent Posts</h1>
+ <ul id="recent_posts">
+
+ <li class="post">
+ <a href="/bash-one-liner-for-renaming-high-res-image-files-to-at-2x/">Bash one-liner for renaming high-res image files to @2x</a>
+ </li>
+
+ <li class="post">
+ <a href="/profiling-ti-mobile-apps-is-it-possible/">Profiling Ti Mobile apps: is it possible?</a>
+ </li>
+
+ <li class="post">
+ <a href="/building-titanium-mobile-jscore-from-source/">Building Titanium Mobile JSCore from source</a>
+ </li>
+
+ <li class="post">
+ <a href="/simulating-slow-network-links-on-os-x/">Simulating slow network links on OSX</a>
+ </li>
+
+ <li class="post">
+ <a href="/post/10559549700/fastdev-for-ios-how-it-works">FastDev for iOS: how it works</a>
+ </li>
+
+ </ul>
+</section>
+
+<section>
+ <h1>Coderwall</h1>
+ <p>
+ <script type="text/javascript">
+ function display_coderwall(args) {
+ var badges = args["data"]["badges"];
+ for ( var i = 0; i < badges.length; i++ ) {
+ document.write('<img src="'+ badges[i]["badge"] + '" width="80" height="80" />');
+ }
+ }
+ </script>
+ <script src="http://coderwall.com/omorandi.json?callback=display_coderwall"></script>
+ </p>
+ <p style="text-align: right;"><a href="http://coderwall.com/omorandi">Powered by coderwall.com</a></p>
+</section>
+
+<section>
+ <h1>Github Repos</h1>
+ <ul id="gh_repos">
+ <li class="loading">Status updating...</li>
+ </ul>
+
+ <a href="https://github.com/omorandi">@omorandi</a> on Github
+
+ <script type="text/javascript">
+ $.domReady(function(){
+ if (!window.jXHR){
+ var jxhr = document.createElement('script');
+ jxhr.type = 'text/javascript';
+ jxhr.src = '/javascripts/libs/jXHR.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(jxhr, s);
+ }
+
+ github.showRepos({
+ user: 'omorandi',
+ count: 3,
+ skip_forks: true,
+ target: '#gh_repos',
+ to_hide: ['omorandi.github.com', 'TiImageSlices']
+ });
+ });
+ </script>
+ <script src="/javascripts/github.js" type="text/javascript"> </script>
+</section>
+
+
+<section>
+ <h1>Latest Tweets</h1>
+ <ul id="tweets">
+ <li class="loading">Status updating...</li>
+ </ul>
+ <script type="text/javascript">
+ $.domReady(function(){
+ getTwitterFeed("olivier_morandi", 4, false);
+ });
+ </script>
+ <script src="/javascripts/twitter.js" type="text/javascript"> </script>
+
+ <a href="http://twitter.com/olivier_morandi" class="twitter-follow-button" data-width="208px" data-show-count="false">Follow @olivier_morandi</a>
+
+</section>
+
+
+
+</aside>
+
+
+ </div>
+ </div>
+ <footer role="contentinfo"><p>
+ Copyright &copy; 2012 - TiNinja -
+ <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
+</p>
+
+</footer>
+
+
+<script type="text/javascript">
+ var disqus_shortname = 'tininja';
+
+
+ // var disqus_developer = 1;
+ var disqus_identifier = 'http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x';
+ var disqus_url = 'http://titaniumninja.com/bash-one-liner-for-renaming-high-res-image-files-to-at-2x';
+ var disqus_script = 'embed.js';
+
+ (function () {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ }());
+</script>
+
+
+
+
+
+
+
+ <script type="text/javascript">
+ (function(){
+ var twitterWidgets = document.createElement('script');
+ twitterWidgets.type = 'text/javascript';
+ twitterWidgets.async = true;
+ twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
+ document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
+ })();
+ </script>
+
+
+
+
+
+</body>
+</html>
View
@@ -9,8 +9,8 @@
<meta name="author" content="TiNinja">
- <meta name="description" content="Blog Archive 2012 Profiling Ti Mobile apps: is it possible?
-Mar 12 2012 posted in JavaScriptCore, Titanium Mobile, iOS, profiling Building Titanium &hellip;">
+ <meta name="description" content="Blog Archive 2012 Bash one-liner for renaming high-res image files to @2x
+Mar 21 2012 posted in bash,, iOS,, trick Profiling Ti Mobile apps: is it &hellip;">
<!-- http://t.co/dKP3o1e -->
@@ -90,6 +90,20 @@ <h1 class="entry-title">Blog Archive</h1>
<h2>2012</h2>
+<article>
+
+<h1><a href="/bash-one-liner-for-renaming-high-res-image-files-to-at-2x/">Bash one-liner for renaming high-res image files to @2x</a></h1>
+<time datetime="2012-03-21T13:54:00+01:00" pubdate><span class='month'>Mar</span> <span class='day'>21</span> <span class='year'>2012</span></time>
+
+<footer>
+ <span class="categories">posted in <a class='category' href='/blog/categories/bash-/'>bash,</a>, <a class='category' href='/blog/categories/ios-/'>iOS,</a>, <a class='category' href='/blog/categories/trick/'>trick</a></span>
+</footer>
+
+
+</article>
+
+
+
<article>
<h1><a href="/profiling-ti-mobile-apps-is-it-possible/">Profiling Ti Mobile apps: is it possible?</a></h1>
@@ -192,6 +206,10 @@ <h1><a href="/post/5841602276/learning-javascript-used-to-mean-you-werent-a">Lea
<h1>Recent Posts</h1>
<ul id="recent_posts">
+ <li class="post">
+ <a href="/bash-one-liner-for-renaming-high-res-image-files-to-at-2x/">Bash one-liner for renaming high-res image files to @2x</a>
+ </li>
+
<li class="post">
<a href="/profiling-ti-mobile-apps-is-it-possible/">Profiling Ti Mobile apps: is it possible?</a>
</li>
@@ -208,10 +226,6 @@ <h1>Recent Posts</h1>
<a href="/post/10559549700/fastdev-for-ios-how-it-works">FastDev for iOS: how it works</a>
</li>
- <li class="post">
- <a href="/post/10360108035/titanium-hack-fastdev-for-ios">Titanium Hack: FastDev for iOS</a>
- </li>
-
</ul>
</section>
Oops, something went wrong.

0 comments on commit 78ab580

Please sign in to comment.