<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>web development in a nutshell</title>
	<atom:link href="http://jtrancas.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jtrancas.wordpress.com</link>
	<description>Tips and tricks for web developers</description>
	<lastBuildDate>Tue, 29 Nov 2011 17:29:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jtrancas.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>web development in a nutshell</title>
		<link>http://jtrancas.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jtrancas.wordpress.com/osd.xml" title="web development in a nutshell" />
	<atom:link rel='hub' href='http://jtrancas.wordpress.com/?pushpress=hub'/>
		<item>
		<title>An easy way to extend/rename CakePHP helpers transparently</title>
		<link>http://jtrancas.wordpress.com/2011/06/28/rename-extend-cakephp-helpers/</link>
		<comments>http://jtrancas.wordpress.com/2011/06/28/rename-extend-cakephp-helpers/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 15:43:19 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[analogue]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[extend]]></category>
		<category><![CDATA[helper]]></category>
		<category><![CDATA[remap]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=153</guid>
		<description><![CDATA[There were times, while developing CakePHP apps, when i felt that a certain helper wasn&#8217;t doing the right thing for me, there was something missing (for example, i felt the lack of some features on the PaginatorHelper, i&#8217;m working on an extended version of it that i&#8217;ll publish soon), and the only way to fix <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=153&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There were times, while developing CakePHP apps, when i felt that a certain helper wasn&#8217;t doing the right thing for me, there was something missing (for example, i felt the lack of some features on the PaginatorHelper, i&#8217;m working on an extended version of it that i&#8217;ll publish soon), and the only way to fix it would be extending the helper and replacing all it&#8217;s occurrences on my views, this can be a very time consuming task.</p>
<p>Fortunately, someone found a nice workaround for doing it transparently, i found plugin called Analogue, it allows you to remap helpers transparently just by adding it to the controller.</p>
<p><a href="https://github.com/joebeeson/analogue" title="You can check it here" target="_blank">You can check it on the author&#8217;s github page</a></p>
<p>The usage is pretty straight forward, you can see it on the plugin&#8217;s readme file.</p>
<p>A big thank you to the plugin&#8217;s author!</p>
<p>(understand that the ideal solution for the problem would be forking the plugin you think could be improved, improve it, and send your changes back in a push request, in a diff, whatever.. But this helper can still be handy sometimes)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=153&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2011/06/28/rename-extend-cakephp-helpers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Create a Debian Squeeze LXC template under Debian Squeeze</title>
		<link>http://jtrancas.wordpress.com/2011/02/10/debian-squeeze-lxc-template/</link>
		<comments>http://jtrancas.wordpress.com/2011/02/10/debian-squeeze-lxc-template/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 05:17:51 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux / *nix]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lxc]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=151</guid>
		<description><![CDATA[By default, the Debian container template script installs Debian Lenny, which is no more the current stable release, so it makes sense that your new containers run an up to date release, i tried squeeze so far, didn&#8217;t try testing or still in development yet, so i&#8217;ll tell you how to create a script to <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=151&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By default, the Debian container template script installs Debian Lenny, which is no more the current stable release, so it makes sense that your new containers run an up to date release, i tried squeeze so far, didn&#8217;t try testing or still in development yet, so i&#8217;ll tell you how to create a script to create Debian Squeeze containers.</p>
<p>By default, the lxc package ships with few different template scripts, and they&#8217;re located in the directory <em>/usr/lib/lxc/templates/</em>, the debian one is called <em>lxc-debian</em>.<br />
Copy it to the same directory with another name:<br />
<pre class="brush: plain;">
user@host:/usr/lib/lxc/templates$ sudo cp lxc-debian lxc-debian-squeeze
</pre></p>
<p>Open it with with your favorite text editor and change the following lines:<br />
<pre class="brush: plain;">
dhcp-client,\
</pre><br />
to<br />
<pre class="brush: plain;">
isc-dhcp-client,\
</pre></p>
<p><pre class="brush: plain;">
lenny $cache/partial-$arch http://ftp.debian.org/debian
</pre><br />
to<br />
<pre class="brush: plain;">
squeeze $cache/partial-$arch http://ftp.debian.org/debian
</pre></p>
<p><pre class="brush: plain;">
cache=&quot;/var/cache/lxc/debian&quot;
</pre><br />
to<br />
<pre class="brush: plain;">
cache=&quot;/var/cache/lxc/debian-squeeze&quot;
</pre><br />
<strong>(this last appears two times!)</strong></p>
<p>&#8230; Or just apply the following patch:</p>
<p><pre class="brush: plain;">
--- lxc-debian	2011-02-08 01:03:22.931566630 +0000
+++ lxc-debian-squeeze	2011-02-08 01:19:46.287573988 +0000
@@ -90,7 +90,7 @@
 locales,\
 libui-dialog-perl,\
 dialog,\
-dhcp-client,\
+isc-dhcp-client,\
 netbase,\
 net-tools,\
 iproute,\
@@ -110,7 +110,7 @@
     echo &quot;Downloading debian minimal ...&quot;
     debootstrap --verbose --variant=minbase --arch=$arch \
 	--include $packages \
-	lenny $cache/partial-$arch http://ftp.debian.org/debian
+	squeeze $cache/partial-$arch http://ftp.debian.org/debian
     if [ $? -ne 0 ]; then
 	echo &quot;Failed to download the rootfs, aborting.&quot;
 	return 1
@@ -136,7 +136,7 @@
 
 install_debian()
 {
-    cache=&quot;/var/cache/lxc/debian&quot;
+    cache=&quot;/var/cache/lxc/debian-squeeze&quot;
     rootfs=$1
     mkdir -p /var/lock/subsys/
     (
@@ -220,7 +220,7 @@
 
 clean()
 {
-    cache=&quot;/var/cache/lxc/debian&quot;
+    cache=&quot;/var/cache/lxc/debian-squeeze&quot;
 
     if [ ! -e $cache ]; then
 	exit 0
</pre></p>
<p>And now you&#8217;re ready to create new Debian Squeeze containers :)</p>
<p><pre class="brush: plain;">
user@host:~$ sudo /usr/lib/lxc/templates/lxc-debian-squeeze -p /var/lib/lxc/my-awesome-debian-squeeze-container
</pre></p>
<p>There&#8217;s also something else you&#8217;ll probably need to do in order to login to a tty with lxc-console, the template script does not create any of the /dev/tty&#8217;s, so you&#8217;ll need to create them by hand, or change the new template script in order to create it:</p>
<p>&#8230; cd to your container&#8217;s rootfs and execute the following commands:</p>
<p><pre class="brush: plain;">
user@host:~$ sudo mknod -m 666 /dev/tty1 c 4 1
user@host:~$ sudo mknod -m 666 /dev/tty2 c 4 2
user@host:~$ sudo mknod -m 666 /dev/tty3 c 4 3
user@host:~$ sudo mknod -m 666 /dev/tty4 c 4 4
</pre></p>
<p>Now you may want to edit your container&#8217;s configuration, and then start using it.<br />
For your convenience, you can setup a first container, do your initial configuration on it, and then leave it alone, every new container you want to create could be just a copy of it, this will boost the container&#8217;s setup, just don&#8217;t forget to edit the new containers configuration accordingly.</p>
<p><pre class="brush: plain;">
user@host:/var/lib/lxc$ sudo cp -a squeeze-base-container new-web-container
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=151&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2011/02/10/debian-squeeze-lxc-template/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Install fuse powered filesystems within an LXC container</title>
		<link>http://jtrancas.wordpress.com/2011/02/09/fuse-filesystems-lxc-container/</link>
		<comments>http://jtrancas.wordpress.com/2011/02/09/fuse-filesystems-lxc-container/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 20:43:33 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux / *nix]]></category>
		<category><![CDATA[containers]]></category>
		<category><![CDATA[Fuse]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[lxc]]></category>
		<category><![CDATA[SSHFS]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=144</guid>
		<description><![CDATA[I&#8217;m running a Debian Squeeze in an LXC container, and i needed to install SSHFS within the container, a FUSE based filesystem which lets you to mount remote filesystems through SSH. It shouldn&#8217;t be a problem, but fuse-utils depends on udev, and as you may know, LXC containers do not support udev, which will cause <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=144&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running a Debian Squeeze in an LXC container, and i needed to install SSHFS within the container, a FUSE based filesystem which lets you to mount remote filesystems through SSH. It shouldn&#8217;t be a problem, but fuse-utils depends on udev, and as you may know, LXC containers do not support udev, which will cause problems during the install.<br />
 While installing the udev package you&#8217;ll get some errors related with device creation like the following one:<br />
<pre class="brush: plain;">
Populating the new /dev filesystem temporarily mounted on /tmp/udev.EgkS50/...
mknod: `//tmp/udev.EgkS50/ppp': Operation not permitted
</pre></p>
<p>In order to solve this i had to allow those new devices to be created in your container&#8217;s configuration file by adding the following lines:<br />
<pre class="brush: plain;">
#ppp
lxc.cgroup.devices.allow = c 108:0 rwm
#fuse
lxc.cgroup.devices.allow = c 10:229 rwm
#loop0
lxc.cgroup.devices.allow = b 7:0 rwm
#tun
lxc.cgroup.devices.allow = c 10:200 rwm
</pre></p>
<p>Now start your container and login.<br />
Then, because the udev install will break your created devices, you should backup them:<br />
<pre class="brush: plain;">
user@host:~$ sudo cp -a /dev /dev.old
</pre></p>
<p>Go and install your fuse based filesystem, i&#8217;ll be installing sshfs:<br />
<pre class="brush: plain;">
user@host:~$ sudo apt-get install sshfs
</pre></p>
<p>Restore your old devices:<br />
<pre class="brush: plain;">
user@host:~$ sudo cp -a /dev.old/* /dev/
</pre></p>
<p>Create the fuse device:<br />
<pre class="brush: plain;">
user@host:~$ sudo mknod /dev/fuse c 10 229
</pre></p>
<p>Avoid udev to boot by disabling its init scripts:<br />
<pre class="brush: plain;">
user@host:~$ sudo update-rc.d -f udev disable
</pre></p>
<p>And that&#8217;s it, you should now be able to mount your fuse powered filesystem :-)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/144/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/144/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/144/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=144&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2011/02/09/fuse-filesystems-lxc-container/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Changing Git submodule remote repository</title>
		<link>http://jtrancas.wordpress.com/2011/02/06/git-submodule-location/</link>
		<comments>http://jtrancas.wordpress.com/2011/02/06/git-submodule-location/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 17:23:52 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux / *nix]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[SCM]]></category>
		<category><![CDATA[submodule]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=142</guid>
		<description><![CDATA[A Git submodule allows you to add other repositories inside your project source tree, they&#8217;re handful for application modules or plugins, so you can develop reusable plugins independently of your app. When you add submodules, it is created a file called .gitmodules, in your source tree root, where are stored all submodule information (remote repository <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=142&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A Git submodule allows you to add other repositories inside your project source tree, they&#8217;re handful for application modules or plugins, so you can develop reusable plugins independently of your app. When you add submodules, it is created a file called .gitmodules, in your source tree root, where are stored all submodule information (remote repository URL and it&#8217;s path on the source tree).<br />
During the development of a project, the source of a submodule may change for any reason (the server URL changed, the repository&#8217;s name or path changed, etc&#8230;), and you&#8217;ll have to update those changes in your apps, otherwise you won&#8217;t be able to push or pull on those submodules. This task is not that easy, because Git apart from storing submodule information in the .gitmodules file, it stores the same information in the repository configuration file (.git/config), and every submodule&#8217;s repository remote URL. But fortunately, there&#8217;s an easier way to do that using the &#8216;git submodule sync&#8217; command, all you have to do is:</p>
<p>1) Edit the .gitmodules file, and change the URL for the submodules which changed.</p>
<p>2) In your source tree&#8217;s root run:<br />
<pre class="brush: plain;">
user@host:/path/to/repo$ git submodule sync
</pre></p>
<p>3) Then run git init to update the project&#8217;s repository configuration with the new URLs:<br />
<pre class="brush: plain;">
user@host:/path/to/repo$ git submodule init
</pre></p>
<p>And it&#8217;s done, now you can continue pushing and pulling your submodules with no problems :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/142/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/142/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/142/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=142&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2011/02/06/git-submodule-location/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Tunneling network connections through SSH</title>
		<link>http://jtrancas.wordpress.com/2011/01/25/tunneling-connections-through-ssh/</link>
		<comments>http://jtrancas.wordpress.com/2011/01/25/tunneling-connections-through-ssh/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 21:33:45 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux / *nix]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=126</guid>
		<description><![CDATA[Sometimes you may want to tunnel your connections through a secure SSH connection, because you want the traffic to be encrypted, because of any restrictive access rule in your firewall, or any other reason. I assume you have a regular account in a machine running an OpenSSH server, an OpenSSH client installed in your machine, <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=126&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may want to tunnel your connections through a secure SSH connection, because you want the traffic to be encrypted, because of any restrictive access rule in your firewall, or any other reason.<br />
I assume you have a regular account in a machine running an OpenSSH server, an OpenSSH client installed in your machine, and you&#8217;re running Linux.<br />
What you have to do is to bounce all network connections through a SOCKS4 / SOCKS5 local proxy created by the SSH connection, that can be done using the -D option on the OpenSSH client call, in conjunction with the tsocks library. tsocks is basically a library which intercepts network connections from any application, and redirects them through a SOCKS server, if you&#8217;re using Ubuntu there&#8217;s also a script with the same name which wraps it, allowing you to enable and disable the connection forwarding.</p>
<p>At first you&#8217;ll need to configure the SOCKS server and port in the tsocks configuration file, for that edit the file /etc/tsocks.conf and set the following options:<br />
<pre class="brush: plain;">
server = 127.0.0.1
server_port = 1080
</pre></p>
<p>Then, do the SSH connection:<br />
<pre class="brush: plain;">
user@host$ ssh -NfD 1080 user@remote
</pre></p>
<p>The &#8220;D&#8221; will create the local SOCKS proxy, binding it to the give port (1080 is the default one), the &#8220;f&#8221; tells the client to execute in the background after logging in and executing the command, and the &#8220;N&#8221; tells the client to not execute any command. So, it&#8217;ll just create the SOCKS server and go to background.</p>
<p>After that, just run the tsocks command (man tsocks for more information)</p>
<p><pre class="brush: plain;">
user@host$ tsocks
</pre></p>
<p>Now every connection done by every application you run in this shell session will be redirected through the SOCKS server, and will be done by the remote server.</p>
<p>Hope it helps someone! :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=126&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2011/01/25/tunneling-connections-through-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>CakePHP and in-memory query caching</title>
		<link>http://jtrancas.wordpress.com/2010/11/01/cakephp-query-caching/</link>
		<comments>http://jtrancas.wordpress.com/2010/11/01/cakephp-query-caching/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 02:51:45 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=111</guid>
		<description><![CDATA[CakePHP models by default cache in-memory all database queries you make in each request, this reduces the database querying overhead when redundant queries are made, assuming that nothing changed. But sometimes there&#8217;s a need to implement complex methods in your models to perform complex and crazy actions with your data, and sometimes when you do <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=111&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>CakePHP models by default cache in-memory all database queries you make in each request, this reduces the database querying overhead when redundant queries are made, assuming that nothing changed. But sometimes there&#8217;s a need to implement complex methods in your models to perform complex and crazy actions with your data, and sometimes when you do that you need to make the same query many times, for example, when you&#8217;re checking something inside any loop, and when you do that, if your model is caching queries, you&#8217;ll get always the same result, that will bring you for sure an unexpected behavior. So when you do that, you just need to disable query caching by setting the cacheQueries variable to false in your model before the database query you don&#8217;t want to cache, and enabling it after, if needed. It&#8217;ll make you model to generate a real fetch of data in the server. I believe that some of you are thinking which it can be avoided if you do any kind of data handling in your logic, avoiding the model to do repeated fetches to the database, and you&#8217;re right, but each situation is unique, and this need is not very usual. I just want you to be aware about the models query cache existence :)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/111/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/111/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/111/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=111&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2010/11/01/cakephp-query-caching/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Simple use of route prefixes within AuthComponent in a CakePHP App</title>
		<link>http://jtrancas.wordpress.com/2010/11/01/simple-use-route-prefixes-auth-component-cakephp/</link>
		<comments>http://jtrancas.wordpress.com/2010/11/01/simple-use-route-prefixes-auth-component-cakephp/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 02:14:54 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Auth]]></category>
		<category><![CDATA[AuthComponent]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Prefix]]></category>
		<category><![CDATA[Route]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=108</guid>
		<description><![CDATA[In any regular website you have a restricted area for management, and a public webpage. When writing a CakePHP app you would usually use the AuthComponent for authentication, and for allowing and denying actions. A boring task of using Auth is that you have to define in every controller that has public actions the allowed <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=108&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In any regular website you have a restricted area for management, and a public webpage.<br />
When writing a CakePHP app you would usually use the AuthComponent for authentication, and for allowing and denying actions. A boring task of using Auth is that you have to define in every controller that has public actions the allowed actions in that controller, it can be done by overriding the beforeFilter() method or by using any other technique, like looking for any defined variable with the allowed actions names and handle it in the AppController::beforeFilter(), or you can do it automatically! Yes, you can can assume a convention telling that every restricted action has a route prefix. So you won&#8217;t need to define any additional information on each controller.<br />
The authorization logic for allowing users to reach a specified action is then set in the AppController::beforeFilter() by playing with the $this-&gt;params['prefix'] value.</p>
<p>A simple example is shown below:</p>
<p>We enable a single route prefix by editing app/config/core.php</p>
<p><pre class="brush: php;">
	Configure::write('Routing.prefixes', array('admin'));
</pre></p>
<p>Then we edit our app/app_controller.php</p>
<p><pre class="brush: php;">
class AppController extends Controller {

    public function beforeFilter () {
        if (empty($this-&gt;params['prefix'])) {
            $this-&gt;Auth-&gt;allow($this-&gt;action);
        } else {
            $this-&gt;layout = 'admin';
        }
    }

}
</pre></p>
<p>The example above checks for an non prefixed request (following our own conventions, it&#8217;ll be a public action), and if it is non prefixed just allow it, for example:</p>
<p>domain.com/posts/view/123</p>
<p>In other hand, if it is prefixed and there&#8217;s not a logged in user, it is not allowed, being denied by default.<br />
So if a not logged user tries to request for: </p>
<p>domain.com/admin/posts/view/123</p>
<p>He is immediately redirected to the AuthComponent logoutRedirect url.</p>
<p>It&#8217;s just a very simple tip, i hope it helps someone :-D</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=108&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2010/11/01/simple-use-route-prefixes-auth-component-cakephp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Show SQL dump on redirect using CakePHP 1.3</title>
		<link>http://jtrancas.wordpress.com/2010/11/01/show-sql-dump-on-redirect-redirect-using-cakephp-1-3/</link>
		<comments>http://jtrancas.wordpress.com/2010/11/01/show-sql-dump-on-redirect-redirect-using-cakephp-1-3/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 01:09:21 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=100</guid>
		<description><![CDATA[Hi there! An inconvenient i faced when i moved from CakePHP 1.2 to 1.3 is the fact of the debug SQL dump is now rendered as an element, this can be usefull if you want to customize or display it in any other place than in the bottom of the rendered output. But, in some <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=100&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi there!</p>
<p>An inconvenient i faced when i moved from CakePHP 1.2 to 1.3 is the fact of the debug SQL dump is now rendered as an element, this can be usefull if you want to customize or display it in any other place than in the bottom of the rendered output. But, in some situations, when you have an action without a view, those kind of actions usually redirect immediately after doing something, it means that the layout is never rendered, and as a consequence, the SQL dump too.</p>
<p>My solution is pretty simple and straight forward, i&#8217;ve just overrided the Controller::redirect() method in the AppController to detect if a debug was triggered (if any header was sent, it happens when you output something, in this case it&#8217;s sent by a debug() call), and if so, just render the sql_dump element, and stops.</p>
<p>The code is show below:</p>
<p><pre class="brush: php;">
class AppController extends Controller {

    public function redirect ($url, $status = null, $exit = true) {
        if (headers_sent()) {
            $this-&gt;viewPath = 'elements';
            echo $this-&gt;render('sql_dump', false);
            if ($exit) {
                $this-&gt;_stop();
            }
        }
        parent::redirect($url, $status, $exit);
    }

}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=100&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2010/11/01/show-sql-dump-on-redirect-redirect-using-cakephp-1-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>Chrome / Chromium toSource() object method</title>
		<link>http://jtrancas.wordpress.com/2010/09/21/chrome-chromium-tosource-object-method/</link>
		<comments>http://jtrancas.wordpress.com/2010/09/21/chrome-chromium-tosource-object-method/#comments</comments>
		<pubDate>Tue, 21 Sep 2010 22:42:50 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Web development]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=96</guid>
		<description><![CDATA[Chrome and Chromium does not support the object.toSource() method to allow us to analyse objects, so instead of object.toSource() you can use JSON.stringify(object), it&#8217;ll allow you to inspect your objects in the same way :-)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=96&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Chrome and Chromium does not support the object.toSource() method to allow us to analyse objects, so instead of object.toSource() you can use JSON.stringify(object), it&#8217;ll allow you to inspect your objects in the same way :-)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/96/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/96/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/96/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=96&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2010/09/21/chrome-chromium-tosource-object-method/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
		<item>
		<title>git-svn error</title>
		<link>http://jtrancas.wordpress.com/2010/06/20/git-svn-error/</link>
		<comments>http://jtrancas.wordpress.com/2010/06/20/git-svn-error/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 23:08:18 +0000</pubDate>
		<dc:creator>José Trancas</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux / *nix]]></category>

		<guid isPermaLink="false">http://jtrancas.wordpress.com/?p=91</guid>
		<description><![CDATA[I decided to start tracking with git an svn project where i&#8217;m involved, but without migrating it to everyone, so i decided to install git-svn, a Git-SVN bridge that let&#8217;s you work within a subversion project using a git repository. I tried to import my project with git svn: but then i get the error: <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=91&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I decided to start tracking with git an svn project where i&#8217;m involved, but without migrating it to everyone, so i decided to install git-svn, a Git-SVN bridge that let&#8217;s you work within a subversion project using a git repository.</p>
<p>I tried to import my project with git svn:</p>
<p><pre class="brush: plain;">
$ git svn clone -s user@hostname:/path/to/repo
</pre></p>
<p>but then i get the error:<br />
E: &#8216;trunk&#8217; is not a complete URL and a separate URL is not specified</p>
<p>Thinking for a while, i realized that i need to pass the url as i was doing a checkout with svn, so you should do..<br />
<pre class="brush: plain;">
$ git svn clone -s svn+ssh://user@hostname/path/to/repo
</pre><br />
..instead.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jtrancas.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jtrancas.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jtrancas.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jtrancas.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jtrancas.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jtrancas.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jtrancas.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jtrancas.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jtrancas.wordpress.com&amp;blog=13336843&amp;post=91&amp;subd=jtrancas&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jtrancas.wordpress.com/2010/06/20/git-svn-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1c839f83ce0f5854359064f67cc6c230?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jtrancas</media:title>
		</media:content>
	</item>
	</channel>
</rss>
