<?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>Jose&#039;s Blog</title>
	<atom:link href="http://jcapco.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jcapco.wordpress.com</link>
	<description>A Blog about my work and hobby</description>
	<lastBuildDate>Wed, 21 Sep 2011 10:24:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jcapco.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Jose&#039;s Blog</title>
		<link>http://jcapco.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jcapco.wordpress.com/osd.xml" title="Jose&#039;s Blog" />
	<atom:link rel='hub' href='http://jcapco.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Grouping Hairs to Render in Makehuman</title>
		<link>http://jcapco.wordpress.com/2011/02/11/grouping-hairs-to-render-in-makehuman/</link>
		<comments>http://jcapco.wordpress.com/2011/02/11/grouping-hairs-to-render-in-makehuman/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 03:08:06 +0000</pubDate>
		<dc:creator>jcapco</dc:creator>
				<category><![CDATA[3D Modelling]]></category>

		<guid isPermaLink="false">http://jcapco.wordpress.com/?p=213</guid>
		<description><![CDATA[Introduction: When we load hairs in makehuman, they are nothing other than loading Wavefront .obj curve format. These .obj hairs are stored under ./data/hairs directory of your makehuman directory. The content of the .obj files are only the hair &#8220;guides&#8221;. &#8230; <a href="http://jcapco.wordpress.com/2011/02/11/grouping-hairs-to-render-in-makehuman/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=213&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction:</strong><br />
When we load hairs in makehuman, they are nothing other than loading Wavefront .obj curve format. These .obj hairs are stored under <em>./data/hairs</em> directory of your makehuman directory. The content of the .obj files are <strong>only</strong> the hair &#8220;guides&#8221;. The hair guides are around 200-300 strands of hair. When rendering in makehuman, the rest of the hair (btw. around 10,000 in a human&#8217;s head) are interpolated by an internal algorithm in makehuman. The number of hair interpolated are called the <strong>children</strong> of the guides. The number of children is adjustable under makehuman&#8217;s rendering settings. There are two types of algorithm involved for makehuman hair interpolator (based on Nvidia reasearch papers). One of them is the <strong>clump interpolator</strong>, which roughly just interpolates a strand to more strands by surrounding it with more hair strands (user adjusts the radius of the clump). The other interpolator which is more realistic is the <strong>multistrand interpolator</strong>. The focus of this blog is the multistrand interpolator. This interpolator tries to extract the <strong>guide-groups </strong>of the hair .obj file and then interpolate more hair-strands between the guide groups. In this tutorial we show how to group the hair guides and save them for use in makehuman. The grouping of the hair has a significant influence on how the hair will be rendered in makehuman. </p>
<p><strong>You will need</strong>:</p>
<ol>
<li>Blender 2.49b</li>
<li>A hair .obj file designed for makehuman (they are just .obj curves)</li>
<li>This head-template <a href="http://download.tuxfamily.org/makehuman/tutorials/head-template.blend" target="_blank">head template</a></li>
<li>This  <a href="http://code.google.com/p/makehuman/source/browse/trunk/makehuman/utils/makehair/objCurveGroups.py" target="_blank">python script</a></li>
</ol>
<p><strong>The steps are</strong>:</p>
<ol>
<li>Open the head template in Blender</li>
<li>Import desired hair (<strong>.obj</strong> format) (to see how check my <a href="http://jcapco.wordpress.com/2010/10/01/15-minutes-tutorial-from-blender-hair-particles-to-makehuman-hair/" target="_blank">previous blog</a>)</li>
<li>Now open the python file in a text-editor and copy and paste it in your blender text-editor window <br /> <br />
<div id="attachment_226" class="wp-caption aligncenter" style="width: 650px"><a href="http://jcapco.files.wordpress.com/2011/02/python_load_r.jpg" target="_blank"><img src="http://jcapco.files.wordpress.com/2011/02/python_load_r.jpg?w=640" alt="" title="Loaded Python Script" class="size-full wp-image-226" /></a><p class="wp-caption-text">Loaded Python Script</p></div>
</li>
<li>Select the hair strands you want in a group (you can select more than two)<br />
<div id="attachment_237" class="wp-caption aligncenter" style="width: 488px"><img src="http://jcapco.files.wordpress.com/2011/02/chosen_groups.jpg?w=640" alt="" title="chosen_groups" class="size-full wp-image-237" /><p class="wp-caption-text">chosen hair strands to group</p></div>
</li>
<li>Group the selected hair strands by pressing <strong>Ctrl-G</strong><br />
<div id="attachment_239" class="wp-caption aligncenter" style="width: 314px"><img src="http://jcapco.files.wordpress.com/2011/02/group_hairs.jpg?w=640" alt="" title="group_hairs"   class="size-full wp-image-239" /><p class="wp-caption-text">Grouping the strands</p></div></p>
<p>Note that you do <strong>not</strong> need to group all the hair strands to be able to render it in makehuman. If makehuman finds a hair strand that is not grouped then it does not use the multi-strand interpolator on it (this strand is however still rendered).
</li>
<li>Keep on making more groups until you are satisfied with the guide groupings and the number of groups you want to make</li>
<li>
Now click your mouse in the text-editor of your blender and change <strong>line 32</strong> to the appropriate (absolute) path and filename you want the obj to be saved. The script does not support too long filenames or unicode filenames. For windows users, make sure that you use slash instead of backslash when writing the path. For instance, if you want the filename to be &#8220;hair1.obj&#8221; and if you want it saved in &#8220;C:\temp&#8221;. I won&#8217;t provide support for unicode or long filenames, so please put up with this. You change line 32 from<br />
<pre class="brush: plain; first-line: 32;">file = open(&quot;C:/temp/temp.obj&quot;, 'w') </pre><br />
to<br />
<pre class="brush: plain; first-line: 32;">file = open(&quot;C:/temp/hair1.obj&quot;, 'w') </pre>
</li>
<li>Execute the code by pressing <strong>Alt-P</strong>, make sure that your active window is Blender&#8217;s text-editor window (click your mouse in the window before pressing Alt-P).
</li>
</ol>
<p>That&#8217;s all for now. Soon I will post a render using this hairstyle. This hairstyle was contributed by <strong>workingprogress</strong> of the <a href="http://www.makehuman.org/forum/index.php" target="_blank">makehuman forum</a>. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcapco.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcapco.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcapco.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcapco.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcapco.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcapco.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcapco.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcapco.wordpress.com/213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=213&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcapco.wordpress.com/2011/02/11/grouping-hairs-to-render-in-makehuman/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/39dc7f03a089e11325377998e09ce534?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcapco</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2011/02/python_load_r.jpg" medium="image">
			<media:title type="html">Loaded Python Script</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2011/02/chosen_groups.jpg" medium="image">
			<media:title type="html">chosen_groups</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2011/02/group_hairs.jpg" medium="image">
			<media:title type="html">group_hairs</media:title>
		</media:content>
	</item>
		<item>
		<title>5 minutes tutorial : From Blender Hair Particles to Makehuman Hair</title>
		<link>http://jcapco.wordpress.com/2010/10/01/15-minutes-tutorial-from-blender-hair-particles-to-makehuman-hair/</link>
		<comments>http://jcapco.wordpress.com/2010/10/01/15-minutes-tutorial-from-blender-hair-particles-to-makehuman-hair/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 15:48:42 +0000</pubDate>
		<dc:creator>jcapco</dc:creator>
				<category><![CDATA[3D Modelling]]></category>

		<guid isPermaLink="false">http://jcapco.wordpress.com/?p=57</guid>
		<description><![CDATA[Goal: If you follow this tutorial correctly you will be able to create hair in Blender and have it exported as curves and finally as Makehuman hair within 15minutes! 5minutes! You will need: Blender 2.49b (or lower? .. Blender 2.5xx &#8230; <a href="http://jcapco.wordpress.com/2010/10/01/15-minutes-tutorial-from-blender-hair-particles-to-makehuman-hair/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=57&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Goal:</strong></p>
<p>If you follow this tutorial correctly you will be able to create hair in Blender and have it exported as curves and finally as Makehuman hair within <span style="text-decoration:line-through;"><span style="color:#ff0000;">15minutes!</span></span> 5minutes!</p>
<p><strong>You will need:</strong></p>
<ol>
<li><a href="http://www.blender.org/index.php?id=1262&amp;f=http://download.blender.org/release//Blender2.49b/blender-2.49b-windows.exe" target="_blank">Blender 2.49b</a> (or lower? .. Blender 2.5xx or higher will probably not work)</li>
<li><a href="http://sites.google.com/site/makehumandocs/download" target="_blank">Makehuman</a> nightly build</li>
<li>This <a href="http://download.tuxfamily.org/makehuman/tutorials/head-template.blend" target="_blank">head template</a></li>
<li>This <a href="http://makehuman.googlecode.com/svn/trunk/makehuman/utils/makehair/particles2curves.py" target="_blank">python script</a></li>
<li>Some creativity and patience!</li>
</ol>
<p><strong>Steps:</strong></p>
<ol>
<li>Open the head template I provided, the head template will look like this:
<div id="attachment_137" class="wp-caption aligncenter" style="width: 338px"><img class="size-full wp-image-137" title="head_template" src="http://jcapco.files.wordpress.com/2010/07/head_template.jpg?w=640" alt=""   /><p class="wp-caption-text">head template</p></div>
<p>With the head itself placed in the second layer. This will make us separate the created hair into the first layer and easily select them for export without selecting the head.</li>
<li>Create Hair using Blender Particles and the head template I provided (this will ensure you that the hair will fit makehuman base model once you have exported it for use in makehuman). Just make sure you have <strong>Segments</strong> to at least 20 when making the hair.
<ul>
<li>You can use <a href="http://www.youtube.com/watch?v=mn1ujPlJbJI" target="_blank">this video</a> to learn how to create hair using Blender Particles</li>
</ul>
<p>It is advised to use weight paint and select the head area where you really want the hair to grow. This is how weight paint looks like. See the tutorial video linked above):</p>
<div id="attachment_123" class="wp-caption aligncenter" style="width: 650px"><a href="http://jcapco.files.wordpress.com/2010/07/head_weight_paint2.jpg" target="_blank"><img class="size-full wp-image-123" title="head_weight_paint2" src="http://jcapco.files.wordpress.com/2010/07/head_weight_paint2.jpg?w=640&#038;h=386" alt="" width="640" height="386" /></a><p class="wp-caption-text">growing hair on weight paint</p></div>
<p>You can then apply vertex (as seen in the video tutorial) by going to <strong>Particle Systems -&gt; Extras -&gt; Vertex group</strong> and click on the (really) small button where the mouse is pointing in the figure below</p>
<div id="attachment_81" class="wp-caption aligncenter" style="width: 650px"><img class="size-full wp-image-81" title="paint_group" src="http://jcapco.files.wordpress.com/2010/07/paint_group.jpg?w=640&#038;h=177" alt="" width="640" height="177" /><p class="wp-caption-text">choosing vertex groups</p></div>
<p>After applying vertex group, comb the hair and do your design as you please.</li>
<li>After having your desired hair design<br />
<img class="aligncenter size-full wp-image-203" title="footballer" src="http://jcapco.files.wordpress.com/2010/07/footballer.jpg?w=640&#038;h=492" alt="" width="640" height="492" /><br />
In blender <strong>Window-Type selection</strong> select the Text-Editor as shown in the figure below<br />
<img class="aligncenter size-full wp-image-204" title="text-editor" src="http://jcapco.files.wordpress.com/2010/07/text-editor.jpg?w=640" alt=""   /></li>
<li> Now open the python file in a text-editor and copy and paste it in your blender text-editor window or just paste the code shown below:<br />
<pre class="brush: python;">
import Blender
from Blender import Scene, Curve, Object, Particle
from random import randrange

def exportAsCurves(file, guides, number):
DEG_ORDER_U = 3
# use negative indices
M = min(len(guides),number)
for j in xrange(0,M):
n = randrange(0,len(guides))
N = len(guides[n])
for i in xrange(0,N):
file.write('v %.6f %.6f %.6f\n' % (guides[n][i][0], guides[n][i][1],\
guides[n][i][2]))
#name = group.name+&quot;_&quot;+guide.name
#file.write('g %s\n' % name)
file.write('cstype bspline\n') # not ideal, hard coded
file.write('deg %d\n' % DEG_ORDER_U) # not used for curves but most files have it still

curve_ls = [-(i+1) for i in xrange(N)]
file.write('curv 0.0 1.0 %s\n' % (' '.join( [str(i) for i in curve_ls] ))) # hair  has no U and V values for the curve

# 'parm' keyword
tot_parm = (DEG_ORDER_U + 1) + N
tot_parm_div = float(tot_parm-1)
parm_ls = [(i/tot_parm_div) for i in xrange(tot_parm)]

file.write('parm u %s\n' % ' '.join( [str(i) for i in parm_ls] ))
file.write('end\n')

scn= Scene.GetCurrent()
obj = scn.objects.active
parts = obj.getParticleSystems()
hairs = parts[0].getLoc()
file = open(&quot;C:\hair.obj&quot;, 'w')
exportAsCurves(file,hairs,300)
file.close()
</pre></li>
<li> If you press <strong>Alt-P</strong>, the hairs are saved as <em>hair.obj</em> file in your <em>C:</em> drive. This is a wavefront obj format and can be imported by makehuman. Better save it in your makehuman data folder afterwards.</li>
<li>Make a copy of long.hair and long.png with the same name you saved your obj file in the data folder of makehuman (e.g. hair.hair or hair.png if your filename was hair.obj).</li>
<li>Here is the exported hair in makehuman
<p><div id="attachment_208" class="wp-caption aligncenter" style="width: 310px"><a href="http://jcapco.files.wordpress.com/2010/07/clipboard01.jpg" target="_blank"><img class="size-medium wp-image-208" title="Footballer hair" src="http://jcapco.files.wordpress.com/2010/07/clipboard01.jpg?w=300&#038;h=235" alt="" width="300" height="235" /></a><p class="wp-caption-text">hair imported in makehuman</p></div></li>
</ol>
<p><strong>Note:</strong> If you want it in another directory or as another filename you will have to change <strong><em>line 35</em></strong><em> </em>of the code. Just remeber you cannot use long filenames or directories or names that have unicode non-ascii characters (sorry for the lack of tech-support, you will have to live with it as I have very little time to extend this). Also observe the number <em><strong>300</strong></em> in <strong><em>line 36,</em></strong> this number tells Blender to export 300 hair guides. If you want more hair guides to be exported for makehuman you need to increase this number.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcapco.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcapco.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcapco.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcapco.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcapco.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcapco.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcapco.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcapco.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=57&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcapco.wordpress.com/2010/10/01/15-minutes-tutorial-from-blender-hair-particles-to-makehuman-hair/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/39dc7f03a089e11325377998e09ce534?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcapco</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/07/head_template.jpg" medium="image">
			<media:title type="html">head_template</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/07/head_weight_paint2.jpg" medium="image">
			<media:title type="html">head_weight_paint2</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/07/paint_group.jpg" medium="image">
			<media:title type="html">paint_group</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/07/footballer.jpg" medium="image">
			<media:title type="html">footballer</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/07/text-editor.jpg" medium="image">
			<media:title type="html">text-editor</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/07/clipboard01.jpg?w=300" medium="image">
			<media:title type="html">Footballer hair</media:title>
		</media:content>
	</item>
		<item>
		<title>Cracking YouTube</title>
		<link>http://jcapco.wordpress.com/2010/08/29/cracking-youtube/</link>
		<comments>http://jcapco.wordpress.com/2010/08/29/cracking-youtube/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 19:25:28 +0000</pubDate>
		<dc:creator>jcapco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cracking]]></category>

		<guid isPermaLink="false">http://jcapco.wordpress.com/?p=183</guid>
		<description><![CDATA[I should probably get some reward from YouTube for exposing a crack. Something in the range of 2k to 20k euros is moderately good, thank you. Yesterday I was very curious about AbiWord&#8217;s collaborative editing feature (which was apparently around &#8230; <a href="http://jcapco.wordpress.com/2010/08/29/cracking-youtube/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=183&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I should probably get some reward from YouTube for exposing a crack. Something in the range of 2k to 20k euros is moderately good, thank you.</p>
<p>Yesterday I was very curious about AbiWord&#8217;s collaborative editing feature (which was apparently around for eons ago without me noticing.. go figure). So I started typing a search for YouTube to see if there is anything about it. Lo and behold, I managed to enter some YouTube anomally. And it wasn&#8217;t just a fluke, I was able to reproduce it no matter how many times I tried.</p>
<p>This is how it reads:</p>
<blockquote><p><strong>500 Internal Server Error</strong></p>
<p>Sorry, something went wrong.</p>
<p>A team of highly trained monkeys has been dispatched to deal with this situation.</p>
<p>If you see them, show them this information:<br />
**some cute MIME code.***</p></blockquote>
<p>So is there a bug bounty for this?? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  maybe 3313.7? Google.. anyone?</p>
<p>Oh well, what the hell. I&#8217;ll tell you how to reproduce this bug. I hope that it will then disappear from U-Tube <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  (doesn&#8217;t this remind you of&#8230; <a href="http://www.youtube.com/watch?v=c4t2V47ivGA">Monkey Island</a>)</p>
<p>Ok here are the steps:</p>
<ol>
<li>Go to <a href="http://www.youtube.com">YouTube</a></li>
<li>In the search type in &#8220;abiword collabo&#8221;</li>
</ol>
<p>Hope the monkeys solve their problems soon (ah.. again Monkey-Island.. there must be some sort of conspiracy between YouTube and LucasArts/TellTale).</p>
<p><strong>EDIT:</strong> This is getting even more weird.. here is a screenshot of my browser when I use my personal computer (which has no firewall, anti-virus and other knick-knackeries)<br />
<a href="http://jcapco.files.wordpress.com/2010/08/clipboard01.jpg"><img class="aligncenter size-full wp-image-195" title="Working U-Tube" src="http://jcapco.files.wordpress.com/2010/08/clipboard01.jpg?w=640&#038;h=361" alt="" width="640" height="361" /></a></p>
<p>So apparently there isn&#8217;t anything wrong, right? not right?<br />
Well.. here is a screenshot using my office-laptop (which has OfficeScan and other bling-blings)</p>
<p><a href="http://jcapco.files.wordpress.com/2010/08/clipboard011.jpg"><img class="aligncenter size-full wp-image-197" title="YouTube 500 Error" src="http://jcapco.files.wordpress.com/2010/08/clipboard011.jpg?w=640&#038;h=451" alt="" width="640" height="451" /></a></p>
<p>Both screenshots taken almost at the same time and I use the same network. Moreover, I have no problem accessing any other site so far. Well &#8230; except that in my Office Laptop, no thanks to all things installed in it, it is ten-folds slower than my home laptop.</p>
<p><strong>Edit:</strong> I figured maybe this is a browser+firewall thing. So I tried the same thing on Internet Explorer 8 (I was doing everything in Opera 10.61).  And indeed it was also browser related (I am pretty certain though that some sort of firewall or antivirus is triggering this all, since in my home laptop there was no problem under Opera). Here is the screenshot in from my office-laptop (that had the monkey problem in opera) with IE 8</p>
<p><a href="http://jcapco.files.wordpress.com/2010/08/clipboard021.jpg"><img class="aligncenter size-full wp-image-199" title="YouTube IE8" src="http://jcapco.files.wordpress.com/2010/08/clipboard021.jpg?w=640&#038;h=465" alt="" width="640" height="465" /></a></p>
<p>I am going to report to Opera about this, although I don&#8217;t think I should fully blame Opera for this.</p>
<p><strong>Edit:</strong>  I think I finally found the solution to the bug. Just clean up the cache and change the YouTube preferred language. You can switch to your original language afterwards. Pretty strange.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcapco.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcapco.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcapco.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcapco.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcapco.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcapco.wordpress.com/183/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcapco.wordpress.com/183/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcapco.wordpress.com/183/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=183&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcapco.wordpress.com/2010/08/29/cracking-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/39dc7f03a089e11325377998e09ce534?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcapco</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/08/clipboard01.jpg" medium="image">
			<media:title type="html">Working U-Tube</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/08/clipboard011.jpg" medium="image">
			<media:title type="html">YouTube 500 Error</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/08/clipboard021.jpg" medium="image">
			<media:title type="html">YouTube IE8</media:title>
		</media:content>
	</item>
		<item>
		<title>Understanding Baer Rings</title>
		<link>http://jcapco.wordpress.com/2010/08/02/understanding-baer-rings/</link>
		<comments>http://jcapco.wordpress.com/2010/08/02/understanding-baer-rings/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 18:38:07 +0000</pubDate>
		<dc:creator>jcapco</dc:creator>
				<category><![CDATA[Commutative Rings]]></category>

		<guid isPermaLink="false">http://jcapco.wordpress.com/?p=152</guid>
		<description><![CDATA[I have been kind of inactive in mathematics, but hopefully not yet infertile. Recently there is a big thing that has been teasing me and I have to write about it. If not anywhere, at least here! Here, we will &#8230; <a href="http://jcapco.wordpress.com/2010/08/02/understanding-baer-rings/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=152&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have been kind of inactive in mathematics, but hopefully not yet infertile. Recently there is a big thing that has been teasing me and I have to write about it. If not anywhere, at least here!</p>
<p>Here, we will always assume commutative unitary rings.</p>
<p>Let&#8217;s start with a simple definition:</p>
<p><strong>Definition</strong>: Suppose that <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> is a ring, then <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> is said to be Baer if for any subset <img src='http://s0.wp.com/latex.php?latex=S%5Csubset+A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S&#92;subset A' title='S&#92;subset A' class='latex' /> theres is an idempotent <img src='http://s0.wp.com/latex.php?latex=e%5Cin+A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e&#92;in A' title='e&#92;in A' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=eA&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='eA' title='eA' class='latex' /> is the set of annihilator of <img src='http://s0.wp.com/latex.php?latex=S&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='S' title='S' class='latex' />.</p>
<p>It was in the 70&#8242;s that <a href="#f1">Mewborn</a> showed that every reduced commutative ring has a Baer Hull, this is the smallest intermediate ring between the ring and it&#8217;s <a href="http://planetmath.org/encyclopedia/CompleteRingOfQuotients.html" target="_blank">complete ring of quotients</a> that is Baer. Mewborn showed a more detailed construction of the Baer hull of a reduced commutative ring. He showed that the Baer Hull of a reduced commutative ring is just the adjoint of the ring with all the idempotents of its complete ring of quotients.</p>
<p>But&#8230; there is a question, rather a conjecture, that lingers in my head&#8230;</p>
<p><strong>Conjecture.</strong> Suppose that <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> is a reduced ring and suppose that there are finitely many idempotents (in its complete ring of quotient) <img src='http://s0.wp.com/latex.php?latex=e_1%2Ce_2%2C%5Cdots%2C+e_n&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='e_1,e_2,&#92;dots, e_n' title='e_1,e_2,&#92;dots, e_n' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=A%5Be_1%2C%5Cdots%2Ce_n%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A[e_1,&#92;dots,e_n]' title='A[e_1,&#92;dots,e_n]' class='latex' /> is a Baer ring. Then <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> is actually a Baer ring.</p>
<p>I&#8217;m thinking about this for a while, hope that the answer pops in my head soon. But why am I trying so hard to show this? Well&#8230;</p>
<p>I think I can show/prove the following:</p>
<p><strong>Conjecture.</strong> Let <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> be a real Baer ring and let <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> be the <a href="http://planetmath.org/encyclopedia/TotalIntegralClosure.html" target="_blank">total integral closure</a> of <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> such that <img src='http://s0.wp.com/latex.php?latex=T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T' title='T' class='latex' /> is in a natural way a finitely-generated <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' />-module. Then <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> is actually a real closed ring and</p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=T%3D+A%5B%5Csqrt%7B-1%7D%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T= A[&#92;sqrt{-1}]' title='T= A[&#92;sqrt{-1}]' class='latex' /></p>
<p>and if I know that the first Conjecture holds true, then I can even remove the requirement of <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> being Baer. This would be great!</p>
<p>But, why am I trying so hard to show that this second Conjecture holds?? Simply because the second Conjecture is beautiful <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  not to mention the fact that it is a generalization of the &#8220;classical&#8221; Artin Schreier Theorem (if you <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> were a field, then its total integral closure is no other than its algebraic closure. As a note, I am afraid I cannot remove the requirement that <img src='http://s0.wp.com/latex.php?latex=A&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='A' title='A' class='latex' /> should be real.).</p>
<p><strong>Artin-Schreier Thereom.</strong> Let <img src='http://s0.wp.com/latex.php?latex=F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F' title='F' class='latex' /> be a field and let <img src='http://s0.wp.com/latex.php?latex=K&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K' title='K' class='latex' /> be its algebraic closure. Suppose furthermore that <img src='http://s0.wp.com/latex.php?latex=F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F' title='F' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=K&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K' title='K' class='latex' /> are unequal, but <img src='http://s0.wp.com/latex.php?latex=K&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K' title='K' class='latex' /> is a finite field extension of <img src='http://s0.wp.com/latex.php?latex=F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F' title='F' class='latex' />. Then <img src='http://s0.wp.com/latex.php?latex=F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F' title='F' class='latex' /> has actually characteristic 0. In fact, <img src='http://s0.wp.com/latex.php?latex=F&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='F' title='F' class='latex' /> is a real closed field and </p>
<p style="text-align:center;"><img src='http://s0.wp.com/latex.php?latex=K+%3D+F%5B%5Csqrt%7B-1%7D%5D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='K = F[&#92;sqrt{-1}]' title='K = F[&#92;sqrt{-1}]' class='latex' /></p>
<p><a name="f1"><em><strong>Ancel C. Mewborn</strong>, &#8220;Regular Rings and Baer Rings&#8221;, Math. Z. 1971, vol. 121, p. 211-219</em></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcapco.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcapco.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcapco.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcapco.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcapco.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcapco.wordpress.com/152/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcapco.wordpress.com/152/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcapco.wordpress.com/152/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=152&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcapco.wordpress.com/2010/08/02/understanding-baer-rings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/39dc7f03a089e11325377998e09ce534?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcapco</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Create a Robot *.avi Animation using TUL</title>
		<link>http://jcapco.wordpress.com/2010/06/22/how-to-create-a-robot-avi-animation-using-tul/</link>
		<comments>http://jcapco.wordpress.com/2010/06/22/how-to-create-a-robot-avi-animation-using-tul/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 10:29:27 +0000</pubDate>
		<dc:creator>jcapco</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Robotics]]></category>

		<guid isPermaLink="false">http://jcapco.wordpress.com/?p=37</guid>
		<description><![CDATA[TUL (THOR Ultralight) is a free robotics program developed byAMROSE for use in research and education. It has a lot of useful features and here I will show how one can create a video of the robot using it. I &#8230; <a href="http://jcapco.wordpress.com/2010/06/22/how-to-create-a-robot-avi-animation-using-tul/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=37&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><a title="TUL website" href="http://www.amrose.dk/Side.asp?ID=165">TUL</a> (THOR Ultralight) is a free robotics program developed byAMROSE for use in research and education. It has a lot of useful features and here I will show how one can create a video of the robot using it. I will not guide the reader on basic use of TUL, these are  found in THOR <a href="http://www.amrose.dk/Documentation/TUL/THOR%20Technical%20Documentation%201.0.1.pdf">Technical documentations</a> and THOR <a href="http://www.amrose.dk/Documentation/TUL/THOR%20Tutorials%201.0.1.pdf">Tutorial</a>. THOR is a very useful tool and unfortunately this tool is less known to people outside the robotics community. The tool can be used for instance in simulation of human-models, mechanical models etc.</p>
<p>You will need:</p>
<ul>
<li>Install TUL</li>
<li>Learn about TUL and its script formats ( *.wc workcells, *.tag files and programs,*.wu  workunits, *wp workpieces), which you can read in TUL documentation (takes about 15minutes of reading)</li>
<li>Download and install <a href="http://www.giantscreamingrobotmonkeys.com/monkeyjam/download.html">MonkeyJam</a></li>
<li>Have a *.tpg program created that you can simulate and want to export as *.avi</li>
</ul>
<p>Here are the steps</p>
<ol>
<li>Open your *.wc or *.wu file<br />
<img class="aligncenter size-medium wp-image-39" title="Clipboard01" src="http://jcapco.files.wordpress.com/2010/06/clipboard01.jpg?w=763&#038;h=629" alt="" width="763" height="629" /></li>
<li>Go to the Program tab and open your desired program *.tpg file (or create one).<br />
<a href="http://jcapco.files.wordpress.com/2010/06/clipboard02.jpg"><img class="aligncenter size-full wp-image-41" title="Clipboard02" src="http://jcapco.files.wordpress.com/2010/06/clipboard02.jpg?w=640&#038;h=527" alt="" width="640" height="527" /></a></li>
<li>Simulate the program by right-clicking on it and choosing <em>Simulate</em> in the context-menu.</li>
<li>Press the play button and let the simulation play<br />
<a href="http://jcapco.files.wordpress.com/2010/06/clipboard03.jpg"><img class="aligncenter size-full wp-image-42" title="Clipboard03" src="http://jcapco.files.wordpress.com/2010/06/clipboard03.jpg?w=640&#038;h=528" alt="" width="640" height="528" /></a></li>
<li>After the simulation played choose <strong>Tools&#8211;&gt;Animate&#8230;</strong> This will help you create sequences of images that can then be used to create your animation.</li>
<li>A window will appear. Choose your <em><strong>Output directory</strong></em> and <em><strong>Start name</strong></em> (your image files will be incremented with a trailing number at the end of the start name). Choose .jpg <em><strong>Type</strong></em> for the image type. Choose <em><strong>S-VGA</strong></em> (if you want a good quality). You can play more with the other parameters as necessery.</li>
<li>Press the Execute button as soon as you are satisfied with your settings.</li>
<li>The robot will play the simulation again and simultaneously produce the .jpg images in the desired directory</li>
<li>Open MonkeyJam<a href="http://jcapco.files.wordpress.com/2010/06/clipboard051.jpg"><img class="aligncenter size-full wp-image-45" title="Clipboard05" src="http://jcapco.files.wordpress.com/2010/06/clipboard051.jpg?w=640" alt=""   /></a></li>
<li>Choose <strong>File-&gt;Import-&gt;Images&#8230;</strong> and browse through the directory where your images were created by TUL.</li>
<li>Select all the sequential image files by <strong>Add Files&gt;&gt;</strong> (you can press the <strong>Shift</strong> keys and the arrow/mouse keys selecting the files and then clicking on <strong>Add Files&gt;&gt;</strong>)<br />
<a href="http://jcapco.files.wordpress.com/2010/06/clipboard07.jpg"><img class="aligncenter size-full wp-image-46" title="Clipboard07" src="http://jcapco.files.wordpress.com/2010/06/clipboard07.jpg?w=640" alt=""   /></a></li>
<li>Select Import.</li>
<li>Usually you will not need to make any other changes in the settings. But if you are familiar with animation, you can change the FPS the Composite and you can add duplicate frames (to make a better quality video) and play with other things.</li>
<li>After changing the settings as you desired, select <strong>File-&gt;Export Avi&#8230;</strong></li>
<li>A window will appear and you can choose and set the video compression you want. For most Windows users <strong><em>Microsoft Video 1</em></strong> Compression is available and easy to manage. You can also choose other Codecs and play with the settings.  But Microsoft Video compression will suffice for a simple robot animation.<br />
<a href="http://jcapco.files.wordpress.com/2010/06/clipboard08.jpg"><img class="aligncenter size-medium wp-image-47" title="Clipboard08" src="http://jcapco.files.wordpress.com/2010/06/clipboard08.jpg?w=665&#038;h=430" alt="" width="665" height="430" /></a></li>
<li>Thats it! The video can be now played by your favourite player.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcapco.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcapco.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcapco.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcapco.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcapco.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcapco.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcapco.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcapco.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=37&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcapco.wordpress.com/2010/06/22/how-to-create-a-robot-avi-animation-using-tul/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/39dc7f03a089e11325377998e09ce534?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcapco</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/clipboard01.jpg" medium="image">
			<media:title type="html">Clipboard01</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/clipboard02.jpg" medium="image">
			<media:title type="html">Clipboard02</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/clipboard03.jpg" medium="image">
			<media:title type="html">Clipboard03</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/clipboard051.jpg" medium="image">
			<media:title type="html">Clipboard05</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/clipboard07.jpg" medium="image">
			<media:title type="html">Clipboard07</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/clipboard08.jpg" medium="image">
			<media:title type="html">Clipboard08</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Inkscape for LaTeX Documents</title>
		<link>http://jcapco.wordpress.com/2010/06/07/inkscape-for-latex/</link>
		<comments>http://jcapco.wordpress.com/2010/06/07/inkscape-for-latex/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 06:55:19 +0000</pubDate>
		<dc:creator>jcapco</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://jcapco.wordpress.com/?p=1</guid>
		<description><![CDATA[This tutorial shows you how to use Inkscape for editing or creating .eps or .ps graphics that can then be imported into your LaTeX Document. You will need: Inkscape 0.46 (you may try other versions too) TexText 0.4.4 (Inkscape LaTeX &#8230; <a href="http://jcapco.wordpress.com/2010/06/07/inkscape-for-latex/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=1&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows you how to use Inkscape for editing or creating .eps or .ps graphics that can then be imported into your LaTeX Document.  You will need:</p>
<ol>
<li>Inkscape 0.46 (you may try other versions too)</li>
<li>TexText 0.4.4 (Inkscape LaTeX plugin), can be found in <a href="http://pav.iki.fi/software/textext/">this site</a>.</li>
<li>Python 2.5 (or higher) that is used by TexText. TexText can still be used without Python, but it will apparently have limited functionality.</li>
<li> MikTeX and all other LaTeX necessities</li>
</ol>
<p>First let me explain a little why we are using Inkscape. Inkscape edit&#8217;s and creates svg documents. SVG format for Inkscape is an XML-based vector-graphic format and it has the following advantage:</p>
<ol>
<li>Diffing and merging different versions of .svg is easier than a binary format like .jpg (so if you use a repository like svn, you can easily differentiate the different versions of your graphics)</li>
<li> Resolution of svg graphics is transform-invariant. This means, unless the svg file has a binary picture imbedded into it, the graphic resolution (for both printing and viewing) is unaffected from scaling, shearing, and other form of transformation.</li>
<li>Inkscape has the ability to save as .ps and .eps which are format used in LaTeX to include graphics</li>
</ol>
<p>Having said that, here is a simple example on how you can use Inkscape in a LaTeX document:</p>
<ol>
<li> Install all the necessary programs</li>
<li>Do your Vector-Graphic drawing.</li>
<li>If you need to import a .jpg or other binary image go to<strong> File-&gt;Import</strong> and choose the image
<ul>
<li>Note: There are two ways images can be embedded into an .svg file. One is by being referenced in the .svg file itself. The reference in the .svg file will then look like this: <pre class="brush: xml;">
&lt;image
       y=&quot;191.29076&quot;
       x=&quot;260&quot;
       id=&quot;image5237&quot;
       height=&quot;345&quot;
       width=&quot;360&quot;
       sodipodi:absref=&quot;C:\Documents and Settings\jcapco\Desktop\work\sauggreifer.jpg&quot;
       xlink:href=&quot;sauggreifer.jpg&quot; /&gt;
</pre>
<p>Another is by being embedded internally. If .svg are versioned (i.e. constantly being updated), it is recommended to have it embedded as a reference. You can have the image embedded into your svg by going into <strong>Effects -&gt; Images -&gt; Embed All Images..</strong> Then the svg is saved without a referencing, it will still be a XML-based (text) file. But for the image we have a base-64 encoding:</p>
<p><pre class="brush: xml;">
&lt;image
       xlink:href=&quot;data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4QAMTmVvR2VvCAAAWv/bAEMAAwICAwICAwMDAwQDAwQFCAUF
BAQFCgcHBggMCgwMCwoLCw0OEhANDhEOCwsQFhARExQVFRUMDxcYFhQYEhQVFP/bAEMBAwQEBQQF
CQUFCRQNCw0UFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU
FP/AABEIAVkBaAMBIgACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAABgECBAUHCAP/xAA/EAAC
AQMCAwUFBgQGAgIDAAAAAQIDBBEFBhIhMQcTQVFhFCJxgZEjMkJSobEIwdHhFSQzU2LwQ2Ny8SWC
...
...
       width=&quot;360&quot;
       height=&quot;345&quot;
       id=&quot;image5237&quot;
       x=&quot;260&quot;
       y=&quot;191.29076&quot; /&gt;
</pre></li>
</ul>
</li>
<li>You may also want to insert some mathematical formulae in labeling some drawings. To do this (you must have installed TexText for this), you will have to choose Effects &#8211;&gt; Tex Text <a href="http://jcapco.files.wordpress.com/2010/06/textext1.jpg"><img class="size-medium wp-image-18 aligncenter" title="TexText1" src="http://jcapco.files.wordpress.com/2010/06/textext1.jpg?w=300&#038;h=214" alt="" width="300" height="214" /></a>
<ul>
<li> Caution: You should not forget the $ signs when typing any mathematical symbol (see the figure). Usually a scale factor of 1.0 is sufficient, you may scale or transform the LaTeX output using the Inkscape transform parameters (<strong>Shift+Ctrl+M</strong> or<strong><em> </em></strong><strong>Object &#8211;&gt; Transform &#8230;</strong>)</li>
</ul>
<p>Here is a sample using TexText: <a href="http://jcapco.files.wordpress.com/2010/06/inkscape-latex1-resize.jpg"><img class="alignnone size-full wp-image-26" title="Inkscape-Latex1-resize" src="http://jcapco.files.wordpress.com/2010/06/inkscape-latex1-resize.jpg?w=640&#038;h=389" alt="" width="640" height="389" /></a></li>
<li>After you have finished doing your drawing and labelling you may save the result</li>
<li>Save the result also as .ps (not .eps), using File &#8211;&gt; Save as&#8230; and select &#8220;PostScript via Cairo (*.ps)&#8221; for the format.<a href="http://jcapco.files.wordpress.com/2010/06/saveas.jpg"><img class="size-medium wp-image-16 aligncenter" title="SaveAs" src="http://jcapco.files.wordpress.com/2010/06/saveas.jpg?w=300&#038;h=197" alt="" width="300" height="197" /></a></li>
<p>You may leave the default option of Cairo PS Output as it is when saving (Postscript level 3, 80 DPI) or you may want play with this settings if you are familiar with them.</p>
<li>You may then insert the .ps into your LaTeX document using graphic or graphicx includegraphics (see any LaTeX graphics tutorial) or any other package that imports graphics (like pstricks, pictex.. etc.) <pre class="brush: latex;">
\includegraphics[width=30mm]{inkscape-latex.ps}
</pre>
<p>Here is an example of a .ps image included in LaTeX after having created it in inkscape:<a href="http://jcapco.files.wordpress.com/2010/06/robotgulls.jpg"><img class="aligncenter size-full wp-image-30" title="robotgulls" src="http://jcapco.files.wordpress.com/2010/06/robotgulls.jpg?w=640&#038;h=321" alt="" width="640" height="321" /></a></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcapco.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcapco.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcapco.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcapco.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcapco.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcapco.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcapco.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcapco.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcapco.wordpress.com&amp;blog=14075905&amp;post=1&amp;subd=jcapco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcapco.wordpress.com/2010/06/07/inkscape-for-latex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/39dc7f03a089e11325377998e09ce534?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcapco</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/textext1.jpg?w=300" medium="image">
			<media:title type="html">TexText1</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/inkscape-latex1-resize.jpg" medium="image">
			<media:title type="html">Inkscape-Latex1-resize</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/saveas.jpg?w=300" medium="image">
			<media:title type="html">SaveAs</media:title>
		</media:content>

		<media:content url="http://jcapco.files.wordpress.com/2010/06/robotgulls.jpg" medium="image">
			<media:title type="html">robotgulls</media:title>
		</media:content>
	</item>
	</channel>
</rss>
