<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7824171777771265243</id><updated>2012-01-28T02:27:41.527-05:00</updated><title type='text'>Chuy Programming Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-5969452759588152998</id><published>2009-09-06T13:23:00.003-04:00</published><updated>2009-09-06T13:26:01.546-04:00</updated><title type='text'>Gnuplot in Snow Leopard</title><content type='html'>To compile gnuplot in snow leopard use the following command: &lt;br /&gt;&lt;br /&gt;./configure --with-readline=bsd --x-include=/usr/include/X11 --x-libraries=/usr/X11/lib&lt;br /&gt;&lt;br /&gt;and then use &lt;span style="font-weight:bold;"&gt;make&lt;/span&gt; and &lt;span style="font-weight:bold;"&gt;sudo make install&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-5969452759588152998?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/5969452759588152998/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=5969452759588152998' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5969452759588152998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5969452759588152998'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2009/09/gnuplot-in-snow-leopard.html' title='Gnuplot in Snow Leopard'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8441863186138526879</id><published>2008-11-12T15:02:00.004-05:00</published><updated>2008-11-12T20:15:08.099-05:00</updated><title type='text'>Ruby</title><content type='html'>I apologize for not posting here for almost half a year now. I have started to learn ruby and I'm impressed with I have seen so far. I read the book/tutorial in &lt;a href="http://pine.fm/LearnToProgram/"&gt;http://pine.fm/LearnToProgram/&lt;/a&gt; it didn't take me much time since it's geared to someone learning how to program for the first time, but you get much of the syntax of the language just by reading the tutorial. &lt;br /&gt;&lt;br /&gt;The most interesting part of the tutorial is chapter 10. Procs is nothing new, and is not unique to ruby, from a C perspective it gives the programmer much more flexibility. &lt;br /&gt;&lt;br /&gt;I can think of  many cases where passing Procs to Methods and return Procs from Methods would be useful, i.e. make a method that will return the n_th Laguerre polynomial using the Rodrigues formula. Notice we are not evaluating the n_th Laguerre polynomial at x. We are evaluating a function that will calculate the n_th polynomial at any x.&lt;br /&gt;&lt;br /&gt;Cheers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8441863186138526879?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8441863186138526879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8441863186138526879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8441863186138526879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8441863186138526879'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/11/ruby.html' title='Ruby'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8189637396793048204</id><published>2008-07-09T15:18:00.002-04:00</published><updated>2008-07-09T15:21:53.127-04:00</updated><title type='text'>Skribit</title><content type='html'>I have added a new widget, it's called skribit and it will allow to make suggestions for my blog. I have not worked a lot on the blog lately but I'm planning to make some changes in the future. &lt;br /&gt;&lt;br /&gt;Best Regards&lt;br /&gt;Chuy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8189637396793048204?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8189637396793048204/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8189637396793048204' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8189637396793048204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8189637396793048204'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/07/skribit.html' title='Skribit'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-1297970481527830349</id><published>2008-06-12T02:50:00.003-04:00</published><updated>2008-06-12T03:10:02.066-04:00</updated><title type='text'>NExT step machine</title><content type='html'>Jacob, Sahil and Me won a NExT machine (no one else wanted it) from the experts. Nice! Now we need some power cables to get it to work. More to come stay tuned.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-1297970481527830349?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/1297970481527830349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=1297970481527830349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1297970481527830349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1297970481527830349'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/06/next-step-machine.html' title='NExT step machine'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-3003179795675660856</id><published>2008-05-20T14:58:00.003-04:00</published><updated>2008-05-20T15:03:42.068-04:00</updated><title type='text'>WWDC 08</title><content type='html'>&lt;a href=http://www.apple.com/wwdc&gt;WWDC 2008&lt;/a&gt; is almost here.&lt;br /&gt;And I'm thrilled to be attending this year. This is the first year to wwdc sold out and is also the first year after the announcement of the iPhone SDK, it's certainty going to be a big event. If any one here is attending give me a call.&lt;br /&gt;Chuy :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-3003179795675660856?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/3003179795675660856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=3003179795675660856' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3003179795675660856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3003179795675660856'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/05/wwdc-08.html' title='WWDC 08'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-2123472284492764508</id><published>2008-04-23T15:29:00.002-04:00</published><updated>2008-04-23T15:40:29.868-04:00</updated><title type='text'>Good Video</title><content type='html'>I have been watching some of the &lt;a href="www.ted.com"&gt;TED&lt;/a&gt; talks, some of them are really good. But for some reason I have seen this &lt;a href="http://www.ted.com/talks/view/id/70"&gt; one &lt;/a&gt; a dozen times already.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-2123472284492764508?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/2123472284492764508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=2123472284492764508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2123472284492764508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2123472284492764508'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/04/good-video.html' title='Good Video'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-7872775534634769654</id><published>2008-04-17T18:57:00.004-04:00</published><updated>2008-04-17T19:12:05.102-04:00</updated><title type='text'>Science Posters. (Made on a Mac)</title><content type='html'>Don't forget to check out the &lt;a href= http://www.apple.com/science/poster/&gt; &lt;br /&gt;2007 WWDC science posters. &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-7872775534634769654?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/7872775534634769654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=7872775534634769654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/7872775534634769654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/7872775534634769654'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/04/science-posters-made-on-mac.html' title='Science Posters. (Made on a Mac)'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-5068772131569616720</id><published>2008-02-14T16:59:00.004-05:00</published><updated>2008-02-14T17:05:27.727-05:00</updated><title type='text'>2008 A New Year</title><content type='html'>2008 is here. And it has been here for a while now. I'm just getting started on a new job so I haven't published anything new for a while. With the job change there is also a small change (not a big one in this case) on my research area. I will start doing some Density Functional Calculations (DFT) so I might be talking a little bit about it on here from time to time. In the mean while I'm using the MIT open courseware to start learning the techniques used to do this kind of calculations. If you are interested you can take a look at &lt;a href ="http://ocw.mit.edu/OcwWeb/Materials-Science-and-Engineering/3-320Spring-2005/CourseHome/index.htm"&gt; Atomistic Computer Modeling of Materials.&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;Best Regards&lt;br /&gt;Chuy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-5068772131569616720?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/5068772131569616720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=5068772131569616720' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5068772131569616720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5068772131569616720'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2008/02/2008-new-year.html' title='2008 A New Year'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-5464614677270762971</id><published>2007-12-17T07:54:00.000-05:00</published><updated>2007-12-17T08:23:33.026-05:00</updated><title type='text'>Google Chart API : part II</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;img src="http://chart.apis.google.com/chart?cht=lc&amp;amp;chco=ff0000,00ff00,0000ff&amp;amp;chs=200x125&amp;amp;chd=t:0,0,1.2,2.8,4.8%7C0,1.2,5.6,12.4,21.2%7C0,3.2,15.7,34.8,60.8&amp;amp;chxt=x,y&amp;amp;chxl=0:%7C0%7C1.0%7C2.0%7C1:%7C%7C5%7C%7C15%7C%7C20" /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I solve my mistake, if you want to use charts into blogger just don't break the src=".." lines into pieces like I did in the example in the last post. The whole src have to be in one line.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-5464614677270762971?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/5464614677270762971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=5464614677270762971' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5464614677270762971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5464614677270762971'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/12/x.html' title='Google Chart API : part II'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-2421347634076728295</id><published>2007-12-17T01:44:00.000-05:00</published><updated>2007-12-17T04:34:13.810-05:00</updated><title type='text'>Google Chart API</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Sjy3eTKoByw/R2Y8aGN7L2I/AAAAAAAAADo/WSATyw_OkjM/s1600-h/chart.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp3.blogger.com/_Sjy3eTKoByw/R2Y8aGN7L2I/AAAAAAAAADo/WSATyw_OkjM/s320/chart.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5144866043360653154" /&gt;&lt;/a&gt;&lt;br /&gt;This chart was made using &lt;a href="http://code.google.com/apis/chart/"&gt; Google Chart API. &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;After Playing for a while trying to generate the previous plot I couldn't use google API properly. I had to generate the plot on my personal website save it to disk and post it. This API is a great way to make real-time charts, but for some reason it doesn't work within blogger it must disabled for security issues or something. &lt;br /&gt;&lt;br /&gt;There is a couple of things I don't like about the API, and some serious limitations so I will stick to gnuplot. but it's nice to have different options with different capabilities.&lt;br /&gt;&lt;br /&gt;The biggest problem I find with this API is that you must format your data to make it compatible with the API. Lets say you are running a simulation, and your output data ranges from 1 Tesla to 7.24 Teslas dependent on Temperature, you will need to map the data from 1 to 100, label the chart appropriately so it reads 7.24 on the highest data point and make sure your Temperature interval is uniform. It's not a difficult transformation but it's annoying. &lt;br /&gt;&lt;br /&gt;On the other hand, if you are running your simulation on a server, you can easily modify your program so it will write a preview output. Lets say 1 of every 100 points calculated goes to this preview output. And make a web page you can access from any computer with firefox. The web page will then plot in real time what this preview output file looks like. It's also possible to make a web page that will take track of several simulations running on different servers (computers).&lt;br /&gt;&lt;br /&gt;The code used to generate the chart is:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;#60img src="&lt;br /&gt;http://chart.apis.google.com/chart?&lt;br /&gt;cht=lc&lt;br /&gt;&amp;amp;chco=ff0000,00ff00,0000ff&lt;br /&gt;&amp;amp;chs=200x125&amp;chd=t:0,0,0.3,0.7,1.2|0,0.3,1.4,3.1,5.3|0,0.8,3.9,8.7,15.2&lt;br /&gt;&amp;amp;chxt=x,y&lt;br /&gt;&amp;amp;chxl=0:|0|1.0|2.0|1:||20||60||100"&lt;br /&gt;&amp;#62&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-2421347634076728295?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/2421347634076728295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=2421347634076728295' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2421347634076728295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2421347634076728295'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/12/google-chart-api.html' title='Google Chart API'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp3.blogger.com/_Sjy3eTKoByw/R2Y8aGN7L2I/AAAAAAAAADo/WSATyw_OkjM/s72-c/chart.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8106891118491836594</id><published>2007-12-11T15:22:00.000-05:00</published><updated>2007-12-11T15:25:59.157-05:00</updated><title type='text'>Reasons not to publish.</title><content type='html'>I recently run into this short story: &lt;a href="http://www.nature.com/nphys/journal/v3/n12/abs/nphys805.html"&gt;&lt;br /&gt;Reasons not to publish. &lt;/a&gt; by Gregory Benford.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8106891118491836594?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8106891118491836594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8106891118491836594' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8106891118491836594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8106891118491836594'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/12/reasons-not-to-publish.html' title='Reasons not to publish.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-3294494978225451979</id><published>2007-11-16T16:54:00.000-05:00</published><updated>2007-11-16T17:42:11.872-05:00</updated><title type='text'>Multivalued hell</title><content type='html'>Hello All.&lt;br /&gt;  I have been unable to post stuff thanks to my new friends called &lt;a href="http://mathworld.wolfram.com/MultivaluedFunction.html"&gt; multivalued funtions &lt;/a&gt; and &lt;a href="http://mathworld.wolfram.com/Branch.html"&gt; brach &lt;/a&gt; which have been keeping from doing any progress on my research. So next time you use any of these multivalued function (i.e. the arcsin(x)) stop to think about it for a second, I will.&lt;br /&gt;&lt;br /&gt;  I'm working on the second part of the linked list post, that should come out soon. Also this month on the &lt;a href="http://cise.aip.org/"&gt; cise publication &lt;/a&gt; the article "On the evaluation of Finite Hilbert Transforms" proposes the &lt;a href="http://www.crbond.com/integration.htm"&gt;double exponential method&lt;/a&gt; as a good numeric method to find &lt;a href="http://mathworld.wolfram.com/HilbertTransform.html"&gt;Hilbert Transforms&lt;/a&gt;. I talked about Hilbert Transforms before, and I use them in my research so I will implement the method and publish the code on here.&lt;br /&gt;&lt;br /&gt;  One more thing. This is just a mathematical curiosity. I was trying to calculate the derivate of x^x, as it turns out you can take the natural log on both sides of the equation before taking the derivative. I get ln(x^x) = ln(x*x*x*...) = x*ln(x) but this bugs me since x doesn't have to be an integer. Any ideas?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-3294494978225451979?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/3294494978225451979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=3294494978225451979' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3294494978225451979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3294494978225451979'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/11/multivalued-hell.html' title='Multivalued hell'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-5169927506382831739</id><published>2007-10-26T00:12:00.000-04:00</published><updated>2007-10-26T00:20:38.846-04:00</updated><title type='text'>Leopard. Comming out tomorrow.</title><content type='html'>Some of you might know this. Leopard is coming out tomorrow at 6pm. &lt;br /&gt;&lt;br /&gt;I will go tomorrow to an apple store and play a little bit with it, unfortunately I'm not buying it until a few months from now.&lt;br /&gt;&lt;br /&gt;I really want to see spaces working and the new finder. Quick view sounds interesting and I wonder if you can make your own quick views. i.e. if I'm going to store the output of my program on an archive .dat then I can just open it with quick view and see the data as a plot. I guess this would be rather difficult to achieve, but it would be nice anyway.&lt;br /&gt;&lt;br /&gt;I will talk about Leopard a little bit more next week. Take care.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-5169927506382831739?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/5169927506382831739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=5169927506382831739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5169927506382831739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5169927506382831739'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/10/leopard-comming-out-tomorrow.html' title='Leopard. Comming out tomorrow.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-2001853909950916208</id><published>2007-10-08T20:11:00.000-04:00</published><updated>2007-10-08T21:01:49.211-04:00</updated><title type='text'>Compiling for PPC from an Intel Mac.</title><content type='html'>Most mac users, might be familiar with universal applications. An universal application is an application such that it will run natively on either an Intel mac or a Power PC (PPC) mac. I was thinking about parallelization and I realized that if I wanted to do it between my two macs (a mac mini PPC and a Mac Book Pro Intel core duo) I have to do universal applications.&lt;br /&gt;&lt;br /&gt;If you use Xcode you might know that making universal binaries (programs) is easy just by modifying the project properties. But for the most part I don't use Xcode I mainly use the terminal to compile. In this case the solution is quite easy too.&lt;br /&gt;&lt;br /&gt;I made a Hello World application in C. Usually I will compile using &lt;br /&gt;&lt;pre&gt;&lt;br /&gt;g++ Hello.cpp&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;the result is an executable file named a.out (17 Kb in size) that will run on my Mac Book Pro, if I try to run this code in my mac mini an error will occur. Using the flag -arch we can specify a different architecture, i.e.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;g++ Hello.cpp -flag ppc&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;the result is once again an executable named a.out (20 Kb in size), this code will run in the mac mini natively. It will also run on the Intel mac but it will not be native reducing the performance of the code.&lt;br /&gt;&lt;br /&gt;Finally if we want to run this code on natively on both PPC and Intel we would use the following command&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;g++ Hello.cpp -flag i386 -flag ppc&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;the result is an executable a.out (40 Kb in size), that contains both a PPC native and a Intel native binary.&lt;br /&gt;&lt;br /&gt;This flag option is exclusive to mac platform, so it won't work on Linux machines. I try running each one of the 3 executables produced on a Linux machines, as expected no one worked.&lt;br /&gt;&lt;br /&gt;I have been having trouble using the GSL (Gnu Scientific Library) and generating universal binaries, my best guess is that I have to compile the libraries again for PPC but I don't have the time, energy nor patience to do it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-2001853909950916208?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/2001853909950916208/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=2001853909950916208' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2001853909950916208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2001853909950916208'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/10/compiling-for-ppc-from-intel-mac.html' title='Compiling for PPC from an Intel Mac.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-7403021718055293805</id><published>2007-10-05T19:24:00.000-04:00</published><updated>2007-10-05T21:39:49.511-04:00</updated><title type='text'>It's all about linux.</title><content type='html'>This week I decided to go for linux related links, just because I like linux. It wasn't hard. Enjoy!&lt;br /&gt;&lt;a href="http://www.mi80.com/node/1760"&gt;Linux&lt;/a&gt;&lt;br /&gt;&lt;a href ="http://linuxscorecard.blogspot.com/2007/09/this-blog-will-spring-back-to-life.html"&gt;Linux&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.redhat.com/archives/fedora-announce-list/2007-October/msg00001.html"&gt; Linux&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-7403021718055293805?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/7403021718055293805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=7403021718055293805' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/7403021718055293805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/7403021718055293805'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/10/its-all-about-linux.html' title='It&apos;s all about linux.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8611132777094805273</id><published>2007-10-04T23:47:00.000-04:00</published><updated>2007-10-11T02:32:18.474-04:00</updated><title type='text'>Scientific programing an database structures. The Linked List part 1/3</title><content type='html'>In my experience many times database structures are not necessary while doing basic scientific simulations. Most of the time we are dealing with fixed length vectors or matrices. Some of you might disagree with me and might point out that appropriate data management is always necessary. In any case is unfortunate that when the occasion arises this structures are often neglected. &lt;br /&gt;&lt;br /&gt;I will try to code from scratch in Objective-C some of the basic database structures and talk a little bit about them. This week I will start with a linked list.&lt;br /&gt;&lt;br /&gt;If you are familiar with arrays you are familiar with liked lists. A linked list is a list of nodes, each node stores an object (may be an integer, a double, or any complicated class like a molecule) and a link or pointer to the next object in the list. You might think of it like a shoe box storing something (some data). Each shoe  box have a string connected to another shoe box, if you want to locate something you just have to look for it on each box one at the time (following the string so you won't look in the same box twice). I will talk more about linked lists in a next post, but now lets code the nodes.&lt;br /&gt;&lt;br /&gt;We will implement a linked list in Objective C.&lt;br /&gt;&lt;br /&gt;First make the interface file and name it "LinkedListNode.h"&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  //2007 chuyandmac.blogspot.com, LinkedListNode.h&lt;br /&gt;  //Interface file for the a node to be &lt;br /&gt;  //used in a linked list data structure.&lt;br /&gt;&lt;br /&gt;  #import &lt;Foundation/Foundation.h&gt;&lt;br /&gt;&lt;br /&gt;  @interface LinkedListNode : NSObject {&lt;br /&gt;    double value;&lt;br /&gt;    LinkedListNode *next;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  -(id)initWithValue:(double)v;&lt;br /&gt;  -(void)setNextNode:(LinkedListNode *)n;&lt;br /&gt;  -(void)setValue:(double)v;&lt;br /&gt;  -(double)value;&lt;br /&gt;  -(LinkedListNode *)next;&lt;br /&gt;&lt;br /&gt;  @end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Second make the implementation file "LinkedListNode.m"&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;  //2007 chuyandmac.blogspot.com, LinkedListNode.m&lt;br /&gt;  //Implementation file for the a node to &lt;br /&gt;  //be used in a linked list data     structure.&lt;br /&gt;&lt;br /&gt;  #import "LinkedListNode.h"&lt;br /&gt;&lt;br /&gt;  @implementation LinkedListNode&lt;br /&gt;&lt;br /&gt;  -(id)initWithValue:(double) v{&lt;br /&gt;    if(self = [super init]){&lt;br /&gt;      [self setValue:v];&lt;br /&gt;      [self setNextNode:nil];&lt;br /&gt;    }&lt;br /&gt;    return self;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  -(void)setNextNode:(LinkedListNode *)n{&lt;br /&gt;    next = n;&lt;br /&gt;    return;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  -(void)setValue:(double)v{&lt;br /&gt;    value = v;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  -(double)value{return value;}&lt;br /&gt;  -(LinkedListNode *)next{return next;}&lt;br /&gt;&lt;br /&gt;  @end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Finally make sure they work as expected, make the file "linkedListNode.m"&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;//2007 chuyandmac.blogspot.com, linkedListNodeTest.m&lt;br /&gt;//Test LinkedListNode.m and LinkedListNode.h&lt;br /&gt;//To compile use &lt;br /&gt;//gcc -ObjC LinkedListNode.m linkedListNodeTest.m -framework Foundation&lt;br /&gt;&lt;br /&gt;  #import "./LinkedListNode.h"&lt;br /&gt;&lt;br /&gt;  int main(){&lt;br /&gt;    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];&lt;br /&gt;    NSLog(@"Testing LinkedListNode.h");&lt;br /&gt;    LinkedListNode *node = [[LinkedListNode alloc] initWithValue:2.0];&lt;br /&gt;    LinkedListNode *node2 = [[LinkedListNode alloc] initWithValue:3.0];&lt;br /&gt;    [node setNextNode:node2];&lt;br /&gt;    NSLog(@"node was initialiazed with value %f.",[node value]);&lt;br /&gt;    NSLog(@"the second node is linked an has a value %f."&lt;br /&gt;           ,[[node next] value]);&lt;br /&gt;  &lt;br /&gt;    [node release];&lt;br /&gt;    [node2 release];&lt;br /&gt;    [pool release];&lt;br /&gt;  }&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Make sure everything is in the same folder and compile typing the following command in terminal.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;gcc -ObjC LinkedListNode.m linkedListNodeTest.m -framework Foundation&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;An executable named a.out will be created, you can execute it typing in the terminal.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;./a.out&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;The output will look like this. Enjoy!&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;2007-10-04 23:30:41.786 a.out[609] &lt;br /&gt;Testing LinkedListNode.h&lt;br /&gt;2007-10-04 23:30:41.786 a.out[609] &lt;br /&gt;node was initialiazed with value 2.000000.&lt;br /&gt;2007-10-04 23:30:41.786 a.out[609] &lt;br /&gt;the second node is linked an has a value 3.000000.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Note: I'm still learning ObjC and I'm not familiar yet with memory leaks, I might have to modify this code just as to make sure I don't have them. If you notice any memory leak in this code, please let me know.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8611132777094805273?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8611132777094805273/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8611132777094805273' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8611132777094805273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8611132777094805273'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/10/scientific-programing-database.html' title='Scientific programing an database structures. The Linked List part 1/3'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-2708787387752403144</id><published>2007-10-04T04:32:00.001-04:00</published><updated>2007-10-04T04:52:06.108-04:00</updated><title type='text'>Tutorial: Quick trick to make your code run faster on a core duo processor.</title><content type='html'>The following tutorial should work with an Intel core duo machine regardless the Operating System. Feel free to share with me any suggestions or comments.&lt;br /&gt;&lt;br /&gt;Currently I'm working on a code with the following main() method.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt; int main(){&lt;br /&gt;    double T = 0;&lt;br /&gt;    double T_delta = 0.01;&lt;br /&gt;&lt;br /&gt;    for(int i = 0; i &lt; 20; i++){ &lt;br /&gt;       T += T_delta;     &lt;br /&gt;       printf("%f  %f  %f  %f  %f  %f  %f  %.14f\n", &lt;br /&gt;               T,conduct(1.0,T),conduct(2.0,T),&lt;br /&gt;               conduct(3.0,T),conduct(4.0,T), &lt;br /&gt;               conduct(5.0,T),conduct(6.0,T),&lt;br /&gt;               conduct(7.0,T));   &lt;br /&gt;    }     &lt;br /&gt;    return 0;&lt;br /&gt; }   &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;I'm calculating the conductivity (for a given model) with 7 different energies over a range of Temperature. Each calculation is independent of the others. I have to say that each one of this calculations requires a lot of cycles but not a lot of memory. This code is not parallel at all and having a core duo processor limits it.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_Sjy3eTKoByw/RwSlgqvopLI/AAAAAAAAADM/tokWaRoXhkM/s1600-h/before.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_Sjy3eTKoByw/RwSlgqvopLI/AAAAAAAAADM/tokWaRoXhkM/s320/before.jpg" alt="" id="BLOGGER_PHOTO_ID_5117397057248208050" border="0" /&gt;&lt;/a&gt;   &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Sjy3eTKoByw/RwSlRavopKI/AAAAAAAAADE/crrAALv9KOY/s1600-h/after.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Sjy3eTKoByw/RwSlRavopKI/AAAAAAAAADE/crrAALv9KOY/s320/after.jpg" alt="" id="BLOGGER_PHOTO_ID_5117396795255202978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here is the CPU activity before and after running such program. Notice that one of the cores tops while running the core, but the other doesn't get that much work to do. &lt;br /&gt;&lt;br /&gt;First we need to modify our main method to accept parameters. we will give it 3 parameters in this order initial T, delta T, and number of points to calculate. &lt;br /&gt;&lt;br /&gt;Our main() method will look like this now. &lt;br /&gt;&lt;pre&gt;&lt;br /&gt; int main(int argc, char * const argv[]){  &lt;br /&gt;    if(argc != 4){   &lt;br /&gt;      printf("Wrong number of arguments. &lt;br /&gt;              Use initial_T delta number of points\n");&lt;br /&gt;      return 0;  &lt;br /&gt;    }  &lt;br /&gt;&lt;br /&gt;    double T = atof(argv[1]);  &lt;br /&gt;    double T_delta = atof(argv[2]);  &lt;br /&gt;    int N = atoi(argv[3]);    &lt;br /&gt;&lt;br /&gt;    for(int i = 0; i &lt; N; i++){&lt;br /&gt;       T += T_delta;   &lt;br /&gt;       printf("%f  %f  %f  %f  %f  %f  %f  %.14f\n", &lt;br /&gt;              T,conduct(1.0,T),conduct(2.0,T),&lt;br /&gt;              conduct(3.0,T),conduct(4.0,T), &lt;br /&gt;              conduct(5.0,T),conduct(6.0,T),&lt;br /&gt;              conduct(7.0,T));  &lt;br /&gt;    }    &lt;br /&gt;    return 0;&lt;br /&gt; } &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;To get the same answer as to the other main method we just need to run this method twice with the appropriate parameters. We use the following script to do just that.  Just open your favorite text editor and write the following &lt;br /&gt;&lt;pre&gt;&lt;br /&gt; ./run 0 .01 10 &gt;&gt; out &amp;amp;&lt;br /&gt; ./run .1 .01 10 &gt;&gt; out &amp;amp;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;after saving it (lets say you name it brun) you can use the chmod command on terminal to make it an executable.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;chmod 555 brun&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;running ./brun will produce the same results using more processor resources. In theory this should reduce the computing time by half. In this example it  took 12 min to run ./brun vs 20 min it took before splitting the load of work between the two cores.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Sjy3eTKoByw/RwSlravopMI/AAAAAAAAADU/juWNWDPfVYA/s1600-h/two.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Sjy3eTKoByw/RwSlravopMI/AAAAAAAAADU/juWNWDPfVYA/s320/two.jpg" alt="" id="BLOGGER_PHOTO_ID_5117397241931801794" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;This tutorial assumes no files are modified during the program execution and the output is printed into screen using the printf command. If not the case some workaround can be found by introducing more program parameters, like input and output files.&lt;br /&gt;&lt;br /&gt;I hope this tutorial will be usefull Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-2708787387752403144?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/2708787387752403144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=2708787387752403144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2708787387752403144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2708787387752403144'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/10/tutorial-quick-trick-to-make-your-code.html' title='Tutorial: Quick trick to make your code run faster on a core duo processor.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Sjy3eTKoByw/RwSlgqvopLI/AAAAAAAAADM/tokWaRoXhkM/s72-c/before.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-726187607065817652</id><published>2007-10-02T20:57:00.000-04:00</published><updated>2007-10-02T21:36:00.694-04:00</updated><title type='text'>Apple Wireless Keyboard</title><content type='html'>I run (literally) to the apple store this morning to get the new apple keyboard. I'm posting some pictures of it. So far I really like this keyboard. Long time ago one of my friends ask me if I could find a smaller keyboard. Now I have a smaller keyboard, enjoy.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/RwLt2qvopFI/AAAAAAAAACc/IQW7zMALKag/s1600-h/DSC00565.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_Sjy3eTKoByw/RwLt2qvopFI/AAAAAAAAACc/IQW7zMALKag/s320/DSC00565.jpg" alt="" id="BLOGGER_PHOTO_ID_5116913650089108562" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Sjy3eTKoByw/RwLtj6vopEI/AAAAAAAAACU/wI5f0ZSM7wo/s1600-h/DSC00564.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Sjy3eTKoByw/RwLtj6vopEI/AAAAAAAAACU/wI5f0ZSM7wo/s320/DSC00564.jpg" alt="" id="BLOGGER_PHOTO_ID_5116913327966561346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/RwLtPqvopDI/AAAAAAAAACM/14NSuYAi_sc/s1600-h/DSC00585.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_Sjy3eTKoByw/RwLtPqvopDI/AAAAAAAAACM/14NSuYAi_sc/s320/DSC00585.jpg" alt="" id="BLOGGER_PHOTO_ID_5116912980074210354" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Sjy3eTKoByw/RwLtEavopCI/AAAAAAAAACE/1UqipxoDFUo/s1600-h/DSC00595.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_Sjy3eTKoByw/RwLtEavopCI/AAAAAAAAACE/1UqipxoDFUo/s320/DSC00595.jpg" alt="" id="BLOGGER_PHOTO_ID_5116912786800682018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_Sjy3eTKoByw/RwLss6vopBI/AAAAAAAAAB8/yOWjFiSvB5g/s1600-h/DSC00597.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_Sjy3eTKoByw/RwLss6vopBI/AAAAAAAAAB8/yOWjFiSvB5g/s320/DSC00597.JPG" alt="" id="BLOGGER_PHOTO_ID_5116912383073756178" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/RwLsgqvopAI/AAAAAAAAAB0/QJqeRhiY38w/s1600-h/DSC00601.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_Sjy3eTKoByw/RwLsgqvopAI/AAAAAAAAAB0/QJqeRhiY38w/s320/DSC00601.jpg" alt="" id="BLOGGER_PHOTO_ID_5116912172620358658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/RwLsVqvoo_I/AAAAAAAAABs/D0lBPHFhIdw/s1600-h/DSC00599.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp2.blogger.com/_Sjy3eTKoByw/RwLsVqvoo_I/AAAAAAAAABs/D0lBPHFhIdw/s320/DSC00599.jpg" alt="" id="BLOGGER_PHOTO_ID_5116911983641797618" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-726187607065817652?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/726187607065817652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=726187607065817652' title='36 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/726187607065817652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/726187607065817652'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/10/apple-wireless-keyboard.html' title='Apple Wireless Keyboard'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_Sjy3eTKoByw/RwLt2qvopFI/AAAAAAAAACc/IQW7zMALKag/s72-c/DSC00565.jpg' height='72' width='72'/><thr:total>36</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-4621085508188204268</id><published>2007-09-28T12:31:00.001-04:00</published><updated>2007-09-28T12:31:47.877-04:00</updated><title type='text'>Firefox 3, Moebius and 1 Gig</title><content type='html'>A couple of mock ups of what Firefox 3 might look like. Personally I like the current appearence better.&lt;br /&gt;&lt;a href="https://bugzilla.mozilla.org/show_bug.cgi?id=397723"&gt;&lt;br /&gt;Firefox 3.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A picture of 1GB 20 years ago alongside 1GB today.&lt;br /&gt;&lt;a href="http://sd4.sd-lj.si/diggit/20yago.jpg"&gt;&lt;br /&gt;1 Gig&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Finally, National Geographic Publish the best Scientific Images of the year. I personally liked the last one, I also included the link to the related video.&lt;br /&gt;&lt;a href="http://news.nationalgeographic.com/news/2007/09/photogalleries/science-pictures/index.html"&gt;&lt;br /&gt;National Geographic.&lt;/a&gt;&lt;a href="http://www.youtube.com/watch?v=JX3VmDgiFnY"&gt;&lt;br /&gt;Moebius Transformation Video.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-4621085508188204268?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/4621085508188204268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=4621085508188204268' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/4621085508188204268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/4621085508188204268'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/firefox-3-moebius-and-1-gig.html' title='Firefox 3, Moebius and 1 Gig'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-2528379187682524970</id><published>2007-09-25T02:19:00.001-04:00</published><updated>2007-09-25T02:19:53.041-04:00</updated><title type='text'>New side bar</title><content type='html'>There is a new element at the side bar called Progress. It's aimed to keep track of what I'm doing related to this blog.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-2528379187682524970?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/2528379187682524970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=2528379187682524970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2528379187682524970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2528379187682524970'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/new-side-bar_24.html' title='New side bar'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-921270353904582358</id><published>2007-09-25T02:18:00.000-04:00</published><updated>2007-09-25T02:19:13.717-04:00</updated><title type='text'>Really Cool.</title><content type='html'>&lt;a href="play.blogger.com"&gt; play.blogger.com &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-921270353904582358?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/921270353904582358/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=921270353904582358' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/921270353904582358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/921270353904582358'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/really-cool.html' title='Really Cool.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-5578650383969040182</id><published>2007-09-24T21:58:00.000-04:00</published><updated>2007-09-24T22:29:50.641-04:00</updated><title type='text'>Net News Wire Lite</title><content type='html'>My latest addition, to my list of programs I use everyday is &lt;a href="http://www.newsgator.com/Individuals/NetNewsWire/"&gt;Net News Lite&lt;/a&gt;. If you want to pay for it you can get extra features, but I don't need them at the moment. Net News Lite is a RSS or Feed reader. I have to say that I have been using it for a couple of weeks now and it already saved a lot of time.&lt;br /&gt;&lt;br /&gt;How does it works; you subscribe to your favorite websites, in the preferences you select how often you want it to be actualized. Once there is something new to read in one of your websites it will let you know. If there is nothing new to read you don't need to go from one website to the next hoping for new content. I would recommend giving it a try. I can't recommend a windows one because I don't know any but I'm sure they exist.&lt;br /&gt;&lt;br /&gt;Extra some journals like Nature and APL (applies physics letters) are implementing RSS feeds, letting you know when there is new articles, this is pretty useful for people trying to stay on top of the new advances in science.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_Sjy3eTKoByw/Rvhybqvoo7I/AAAAAAAAABM/i0WDbNresG4/s1600-h/news.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp0.blogger.com/_Sjy3eTKoByw/Rvhybqvoo7I/AAAAAAAAABM/i0WDbNresG4/s320/news.jpg" alt="" id="BLOGGER_PHOTO_ID_5113963196535317426" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-5578650383969040182?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/5578650383969040182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=5578650383969040182' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5578650383969040182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5578650383969040182'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/net-news-wire-lite.html' title='Net News Wire Lite'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_Sjy3eTKoByw/Rvhybqvoo7I/AAAAAAAAABM/i0WDbNresG4/s72-c/news.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-9179739723351877038</id><published>2007-09-21T15:43:00.001-04:00</published><updated>2007-09-21T15:43:53.630-04:00</updated><title type='text'>Cocoa, USB 3 and lots of money</title><content type='html'>Some cocoa references I found on digg.com&lt;br /&gt;&lt;a href="http://macapper.com/2007/09/16/guide-programming-cocoa/"&gt;Cocoa&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A video with lots of money&lt;br /&gt;&lt;a href="http://www.flicklife.com/1339c0d05ec3cab0fccf/What_207_Million_Looks_Like.html"&gt;Lots of Money&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;And a new USB standard USB 3.0 will be 10 times faster than current USB. I would like to see some USB 3.0 computer displays so you can connect as many as empty USB ports in your computer.&lt;br /&gt;&lt;a href="http://www.news.com/8301-10784_3-9780794-7.html"&gt;USB 3.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-9179739723351877038?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/9179739723351877038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=9179739723351877038' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/9179739723351877038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/9179739723351877038'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/cocoa-usb-3-and-lots-of-money.html' title='Cocoa, USB 3 and lots of money'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-1921472450628967932</id><published>2007-09-19T16:32:00.001-04:00</published><updated>2007-09-19T16:45:07.506-04:00</updated><title type='text'>VIsual GSL</title><content type='html'>I have been working my way around Obj-C for the past two weeks.&lt;br /&gt;&lt;br /&gt;It's recommended to learn Obj-C to program mac applications (at least to program the user interface) and I have to say that so far I like it. Basically Obj-C gives regular C Object Oriented Programming (OOP) capabilities. I'm more used to the Java way of doing things, but they are not that different.&lt;br /&gt;&lt;br /&gt;One of my motivations lately has been the &lt;a href="http://www.macresearch.org"&gt;mac research website&lt;/a&gt;, I would recommended to any scientist considering transitioning from windows to mac as their research platform. My favorite part of this website so far is the Obj-C/Cocoa &lt;a href="http://www.macresearch.org/cocoa_for_scientists"&gt;tutorials for scientists&lt;/a&gt;, and it's the way I have been learning Obj-C. I hope you will enjoy it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-1921472450628967932?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/1921472450628967932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=1921472450628967932' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1921472450628967932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1921472450628967932'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/visual-gsl_19.html' title='VIsual GSL'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-2216345050116415166</id><published>2007-09-14T15:19:00.000-04:00</published><updated>2007-09-14T15:25:29.557-04:00</updated><title type='text'>Evolution, Serial Killers and Islands</title><content type='html'>This week;&lt;br /&gt;Carl Sagan speaks about evolution. (instead of intelligent design)&lt;a href="http://www.youtube.com/watch?v=pMHNnhAEDN4"&gt;&lt;br /&gt;Evolution&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Take the test and discover if you can spot a serial killer.&lt;br /&gt;&lt;a href="http://www.malevole.com/mv/misc/killerquiz/"&gt;Serial Killer&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Finally a map with remote islands. I would prefer Falklands Islands over the others. (Islas Maldivas in spanish, I might be wrong)&lt;br /&gt;&lt;a href="http://www.dancewithshadows.com/travel/lonely-islands.asp"&gt;Islands&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-2216345050116415166?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/2216345050116415166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=2216345050116415166' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2216345050116415166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/2216345050116415166'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/evolution-serial-killers-and-islands.html' title='Evolution, Serial Killers and Islands'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8925451685754993238</id><published>2007-09-07T15:13:00.000-04:00</published><updated>2007-09-07T15:29:01.113-04:00</updated><title type='text'>Vodkas, Jobs and iPods.</title><content type='html'>Ok, here is the links for this week:&lt;br /&gt;1. I so want to get some of this vodkas, specially the cactus vodka.&lt;br /&gt;&lt;a href="http://www.trifter.com/Practical-Travel/Luxury-Travel/Seven-Outrageous-Luxury-Vodkas-Strictly-for-Connoisseurs.43531"&gt;Vodkas&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;2. Some advice in preparing your resume, most of it is obvious.&lt;br /&gt;&lt;a href="http://jobs.aol.com/article/_a/10-ways-your-resume-irks-hiring-managers/20070809123709990001?ncid=AOLCOMMjobsDYNLsec0002"&gt;Jobs&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;3.New iPods. I still have to go to the store to see the new nano.&lt;br /&gt;&lt;a href="http://www.macworld.com/news/2007/09/04/livecoverage/index.php?lsrc=mwrss"&gt;iPods&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8925451685754993238?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8925451685754993238/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8925451685754993238' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8925451685754993238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8925451685754993238'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/ok-here-is-links-for-this-week-1.html' title='Vodkas, Jobs and iPods.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8159331314409233383</id><published>2007-09-05T23:51:00.000-04:00</published><updated>2007-09-06T00:25:13.980-04:00</updated><title type='text'>Visual GSL</title><content type='html'>So I made a outline of what I want to do for this project, but I'm having trouble publishing. I just made an image below, if you click on it is readable. Next week I will try to do it better.&lt;br /&gt;&lt;br /&gt;Best. Chuy&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/Rt9953sK6oI/AAAAAAAAABE/TruJUkRwO3Q/s1600-h/Outline.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 372px; height: 186px;" src="http://bp2.blogger.com/_Sjy3eTKoByw/Rt9953sK6oI/AAAAAAAAABE/TruJUkRwO3Q/s320/Outline.jpg" alt="" id="BLOGGER_PHOTO_ID_5106938935616662146" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8159331314409233383?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8159331314409233383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8159331314409233383' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8159331314409233383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8159331314409233383'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/09/visual-gsl.html' title='Visual GSL'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_Sjy3eTKoByw/Rt9953sK6oI/AAAAAAAAABE/TruJUkRwO3Q/s72-c/Outline.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-1525387147055730648</id><published>2007-08-31T20:27:00.001-04:00</published><updated>2007-09-14T15:27:48.652-04:00</updated><title type='text'>This week.</title><content type='html'>Ok,&lt;br /&gt; So this are the 3 stories that I pick from digg to post this week. Enjoy&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.jsonline.com/story/index.aspx?id=652167"&gt;Wal-mart&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://gizmodo.com/gadgets/no-more-hdmi-cables/wireless-hdmi-on-the-way-amimon-ships-whdi-chipset-to-manufacturers-293937.php"&gt;Wireless TV&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ziza.ru/2007/08/30/pir_v_metro_16_foto.html"&gt;Metro picnic&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;In the last one I have no idea what is going on. I like the technology in the second news. Just imagine get home, turn on your tv and start using it as your laptop monitor without having to connect any cables, that would be sweet.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-1525387147055730648?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/1525387147055730648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=1525387147055730648' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1525387147055730648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1525387147055730648'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/08/this-week.html' title='This week.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-3927133989546034175</id><published>2007-08-27T01:53:00.001-04:00</published><updated>2007-08-27T01:56:46.690-04:00</updated><title type='text'>Coming Soon, And this time I mean it.</title><content type='html'>Well I'm starting to do things a little bit different, and I'm starting to feel confident I can do something worth on this space. Starting this Wednesday I will be introducing 3 new periodic sections on my blog.&lt;br /&gt;&lt;br /&gt;On Mondays I will publish, "This week on the Scientific Journals." I will start talking about some articles worth reading on a few scientific journals. As expected this articles will somehow related to my field.&lt;br /&gt;&lt;br /&gt;On Wednesdays; "Visual GSL" I will be giving a brief progress on my visual GSL project. I hope I will be able to make the program available to anyone who find some use for it.&lt;br /&gt;&lt;br /&gt;Finally on Fridays; "My top 3 Digg.com stories of the week." After a long week is time to relax so I will be publishing my favorite 3 &lt;a href="http://www.digg.com"&gt;digg &lt;/a&gt; stories of the week.&lt;br /&gt;&lt;br /&gt;I hope you will find something in here that you will enjoy.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-3927133989546034175?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/3927133989546034175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=3927133989546034175' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3927133989546034175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3927133989546034175'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/08/coming-soon-and-this-time-i-mean-it.html' title='Coming Soon, And this time I mean it.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-1957239080611378387</id><published>2007-08-26T01:29:00.000-04:00</published><updated>2007-08-26T03:39:44.407-04:00</updated><title type='text'>MBP will delete your work!</title><content type='html'>I should have learned the lesson by now. If you are going to carry a USB thumb drive with all your work on it, MAKE A COPY!!!&lt;br /&gt;&lt;br /&gt;When I get my thumb drive on December everything was great, I made a copy of all my code on it, after that I just start working on top of it. I would carry it everywhere and if I had a brilliant idea away from home I could just ssh into one of my accounts, code, compile, save results and keep going.&lt;br /&gt;&lt;br /&gt;In the middle of march I lost such a small piece of technology. And what a big annoyance it became, losing all that work in 5 seconds just doesn't seem fair. Lucky enough I found it the next weekend. And I made a mental note, "don't loose it again."&lt;br /&gt;&lt;br /&gt;When I move on June to a new department I though I had lost it again. Wow saving half a year on such a small device and make no copies of it just seems stupid. Well it is. After one week or so I finally found it, I was relieve. I made a mental note, "make a copy."&lt;br /&gt;&lt;br /&gt;Finally the wait was over, my mac book pro arrived, right on my birthday July 12th, that was a nice present, and finally after a few days of installing applications I got a nice system to work on. Took my usb thumb drive and plug it right next to the mag-safe power adapter the mac book pro sports. I know if I put the mag-safe close enough to a magnetic device it will delete its data. But I believed it should be fine since apple put the usb port right next to it. (Put usb device on usb port)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/RtEcNXsK6mI/AAAAAAAAAA0/BeBZ74c3hzU/s1600-h/DSC00490.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_Sjy3eTKoByw/RtEcNXsK6mI/AAAAAAAAAA0/BeBZ74c3hzU/s320/DSC00490.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5102890868810639970" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;While the mag-safe didn't manage to destroy all my work it did actually manage to delete one of the programs I was working on along with some data. I guess this time I learned my lesson since this time I didn't made a mental note but take action making a backup of everything on the drive.&lt;br /&gt;&lt;br /&gt;I will try to get in the habit of posting things on here. In the mean while enjoy this picture I took of my mac mini crashing.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp2.blogger.com/_Sjy3eTKoByw/RtEeWXsK6nI/AAAAAAAAAA8/b3ie63f9x5U/s1600-h/DSC00483.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp2.blogger.com/_Sjy3eTKoByw/RtEeWXsK6nI/AAAAAAAAAA8/b3ie63f9x5U/s320/DSC00483.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5102893222452718194" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-1957239080611378387?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/1957239080611378387/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=1957239080611378387' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1957239080611378387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/1957239080611378387'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/08/mbp-will-delete-your-work.html' title='MBP will delete your work!'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp2.blogger.com/_Sjy3eTKoByw/RtEcNXsK6mI/AAAAAAAAAA0/BeBZ74c3hzU/s72-c/DSC00490.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-3357615008910240386</id><published>2007-08-09T14:21:00.000-04:00</published><updated>2007-08-09T14:22:52.566-04:00</updated><title type='text'>I will be back soon.</title><content type='html'>I just moved to a new apartment. But now I'm getting ready to continue with all my crazy ideas, I have a few new ones. I will be back real soon.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-3357615008910240386?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/3357615008910240386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=3357615008910240386' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3357615008910240386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/3357615008910240386'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/08/i-will-be-back-soon.html' title='I will be back soon.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-9072791013265092278</id><published>2007-06-27T12:03:00.000-04:00</published><updated>2007-06-27T12:14:18.780-04:00</updated><title type='text'>New Computer is on its way.</title><content type='html'>I have been really busy last weeks, so I leave my blog and the crazy&lt;br /&gt;projects on a side. I'm buying a new apple computer, this time is a&lt;br /&gt;brand new mac book pro. I can't wait until the machine finally arrives.&lt;br /&gt;In the meanwhile I have to keep working on my mac mini at home and mylinux laptop at school. Once I get the new computer I have to learn the xgrid framework, so I can make my programs run on both, the mini and the pro at the same time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-9072791013265092278?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/9072791013265092278/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=9072791013265092278' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/9072791013265092278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/9072791013265092278'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/06/new-computer-is-on-its-way.html' title='New Computer is on its way.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-729039078783522615</id><published>2007-05-26T21:49:00.000-04:00</published><updated>2007-05-27T07:27:08.267-04:00</updated><title type='text'>This Blog is getting boring!!!</title><content type='html'>I know, I know. There is no news I'm my blog in over two weeks now. Well nobody reads it anyway, but I feel like starting my blog to post my achievements so maybe one day someone will read about them.&lt;br /&gt;&lt;br /&gt;At this moment I have a fair amount of projects I want to start. Unfortunately I don't have the time, energy or money to do all of them, on top of doing full time research, and taking care of my plants. Here is a list of the projects I want to start, Anyone of this projects is enough to keep me away from any other in the list so I will have to make some decisions:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;1) Learn &lt;a href="http://developer.apple.com/cocoa/"&gt;Cocoa&lt;/a&gt; and Objective C.&lt;/span&gt;&lt;br /&gt;Well, since apple have been stealing my soul since the very moment I buy my mac mini I want to develop applications with graphical interface for my personal use, and make them available if anyone else have any use for them.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;2) Find a place to Live.&lt;/span&gt;&lt;br /&gt;This is kind of obvious why I need to do this. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;3) Implement a console window via usb.&lt;/span&gt;&lt;br /&gt;I have an extra monitor, check. &lt;br /&gt;I have a computer that doesn't handle dual displays, check. &lt;br /&gt;I use the terminal in my mac a lot, check. &lt;br /&gt;Can I connect my second monitor to my mac and have a full screen terminal on it via usb, nope. &lt;br /&gt;Do I know any device on the market that will do this for me, not that I know of.&lt;br /&gt;Can I do it myself, maybe.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;4) Visual GSL.&lt;/span&gt;&lt;br /&gt;For my own research I have been using the &lt;a href="http://www.gnu.org/software/gsl/"&gt;GSL (GNU Scientific Library)&lt;/a&gt; and it is really a nice library for what I do. But I would like to make a graphical implementation of it so I can test if the method will work the way I want it to work. And then it have to generate the code for me the code for me. &lt;br /&gt;For example I have to calculate some Greens functions making a &lt;a href="http://en.wikipedia.org/wiki/Hilbert_transform"&gt;Hilbert transform &lt;/a&gt;from the non-interacting electronic density. In doing so I have to allow for an imaginary part on the self-energy. And I find myself coding things like:&lt;br /&gt;&lt;br /&gt;gsl_complex var = gsl_complex_add_real(gsl_complex_add(sigma1,sigma2),mu);&lt;br /&gt;&lt;br /&gt;witch only means var = sigma1+sigma2+mu; where var, sigma1 and sigma2 are complex numbers. It would be nice to do a little program where I can input sigma1+sigma2+mu, and I can copy paste the generated code to my program.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;5) Poker odds.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;I have been watching &lt;a href="http://en.wikipedia.org/wiki/Texas_hold_'em"&gt;poker&lt;/a&gt; on television for a while, and played some games (no real money involved) online, and it's fun. So I would like to code a program that will tell me what are the best hands to start with. And I know AA is the best hand you can start with, but I what about for example, J-10 suited vs Q-K off suite.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;6) Learn openGL.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;This will help me to make plots for my programs in number 4 with in the same program with only adding a button, plot.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;7) Infinite desks.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I can't talk about this.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;8) Learn to use Xmgrace.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;My advisor suggested I have to discard &lt;a href="http://www.gnuplot.info/"&gt;gnuplot&lt;/a&gt; and use &lt;a href="http://en.wikipedia.org/wiki/Grace_(plotting_tool)"&gt;xmgrace&lt;/a&gt; instead.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;9) &lt;a href="http://chuyandmac.blogspot.com"&gt;Write on my own blog&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As you can see I have a lot of things I want to embrace and the day only have 24 hours. I will try to keep posting things here on a regular basis.&lt;br /&gt;&lt;br /&gt;-Chuy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-729039078783522615?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/729039078783522615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=729039078783522615' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/729039078783522615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/729039078783522615'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/05/this-blog-is-getting-boring.html' title='This Blog is getting boring!!!'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-8158548877733175197</id><published>2007-05-07T00:10:00.001-04:00</published><updated>2011-07-01T13:00:11.372-04:00</updated><title type='text'>Tutorial: Make Latex ready plots using gnuplot.</title><content type='html'>Gnuplot is a free yet easy to use command line plotter for the Linux OS. You can also install it on Mac OS X and Windows. If you are using Mac OS X and want the OS X feel in your plots you can type&lt;br /&gt; &gt;set terminal aqua&lt;br /&gt;&lt;br /&gt;With gnuplot you can either plot data files or functions, in this case we will plot (sin(x)/x)^2, first we want to plot it and make sure we get the right plot.&lt;br /&gt;&lt;br /&gt;1) open gnuplot and type&lt;br /&gt; &gt;plot (sin(x)/x)**2&lt;br /&gt;&lt;br /&gt;2) Make a new file i.e. plot.txt and open it in any text editor, add the lines&lt;br /&gt;&lt;br /&gt;set terminal epslatex&lt;br /&gt;set output "myplot.eps"&lt;br /&gt;&lt;br /&gt;This two lines will tell gnuplot that the output file has to be an encapsulated postscript (eps) with name myplot.eps, now you can add to the file the plot you want to make.&lt;br /&gt;&lt;br /&gt;set key off&lt;br /&gt;set xlabel '$x$'&lt;br /&gt;set ylabel '$(\frac{sin(x)}{x})^{2}$'&lt;br /&gt;plot (sin(x)/x)**2&lt;br /&gt;&lt;br /&gt;First set the options of your plot, xlabel, ylabel, etc, and then input the plot command. Note that you can input data in the latex commands and latex will translate that to actual formatted text equations. Now you can save the file.&lt;br /&gt;&lt;br /&gt;3) In the terminal type the command&lt;br /&gt;&gt;gnuplot plot.txt&lt;br /&gt;&lt;br /&gt;You will notice two new files in your directory. myplot.eps and myplot.tex&lt;br /&gt;&lt;br /&gt;4) If you already have a tex document you insert your new plot on it. First make sure you have the following two lines in the headers of your tex file;&lt;br /&gt;&lt;br /&gt;\usepackage{graphicx}&lt;br /&gt;\usepackage{epstopdf}&lt;br /&gt;&lt;br /&gt;gnuplot warns you about adding the first one but not the second one in the help pages.&lt;br /&gt;&lt;br /&gt;now just place your graphic with the command, \input{myplot}&lt;br /&gt;&lt;br /&gt;5) Or you could also compile myplot.tex file directly only a few modifications are needed, first open myplot.tex and add the following lines&lt;br /&gt;&lt;br /&gt;\documentclass[14pt]{article}&lt;br /&gt;\usepackage{graphicx}&lt;br /&gt;\usepackage{epstopdf}&lt;br /&gt;\begin{document}&lt;br /&gt;&lt;br /&gt;skip the rest of the text and locate the last line&lt;br /&gt;\endinput&lt;br /&gt;and delete it. Finally add the line&lt;br /&gt;&lt;br /&gt;\end{document}&lt;br /&gt;&lt;br /&gt;And that is it, now you just need to compile your tex document to make it a pdf. Sometimes pdflatex have problems making the plot when both files have the same name myplot.tex &amp;amp; myplot.eps, in such a case, change the name of the eps file. i.e. othername.eps and change the line in myplot.tex&lt;br /&gt;\includegraphics{myplot}&lt;br /&gt;to&lt;br /&gt;\includegraphics{./othername.eps}&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Sjy3eTKoByw/Rj62vld_AWI/AAAAAAAAAAs/qID34yJXgHs/s1600-h/myplot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp1.blogger.com/_Sjy3eTKoByw/Rj62vld_AWI/AAAAAAAAAAs/qID34yJXgHs/s320/myplot.jpg" alt="" id="BLOGGER_PHOTO_ID_5061683959838998882" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Cheers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-8158548877733175197?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/8158548877733175197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=8158548877733175197' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8158548877733175197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/8158548877733175197'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/05/tutorial-make-latex-ready-plots-using.html' title='Tutorial: Make Latex ready plots using gnuplot.'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_Sjy3eTKoByw/Rj62vld_AWI/AAAAAAAAAAs/qID34yJXgHs/s72-c/myplot.jpg' height='72' width='72'/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-5004575154991525037</id><published>2007-04-13T16:08:00.001-04:00</published><updated>2007-06-27T12:15:59.153-04:00</updated><title type='text'>About Myself</title><content type='html'>Ok, I think I should talk a little bit about myself.&lt;br /&gt;First of all, you can mail me to cruzrojas at gmail.com and please no spam!&lt;br /&gt;&lt;br /&gt;About me: I was born in Mexico 24 years ago, and right now I have a B.S in Physics Engineering and I'm studying a PhD in Physics at Washington DC. So it's hard for me to write in English some times, and I still make a lot of grammatical mistakes.&lt;br /&gt;&lt;br /&gt;About my programming experience: I Have been fan of Linux since I was in high school. I installed it for the first time in 1999, but for some reason or another I always came back to windows. I have been using a mac as my main computer over a year now. I choose to switch since I could use the Unix terminal to run my projects and still be able to go to the store and buy commercial applications, a.k.a. office.&lt;br /&gt;&lt;br /&gt;I started programing around 14 years ago with GW BASIC. Then at High school we have to learn VB witch was a pretty easy transition for me. Eventually I learned JAVA one year before I had to take it in college, after JAVA we learned C++ in college, along the way I have also learned to use, MATLAB and MAPLE being a physics major. I also have a little bit of experience in programing for the Motorola 68000 in my electronics classes.&lt;br /&gt;&lt;br /&gt;About the system I use:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp1.blogger.com/_Sjy3eTKoByw/Rh_nTCMkTEI/AAAAAAAAAAM/-Qd3kDGKZ_s/s1600-h/mini.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://bp1.blogger.com/_Sjy3eTKoByw/Rh_nTCMkTEI/AAAAAAAAAAM/-Qd3kDGKZ_s/s320/mini.jpg" alt="" id="BLOGGER_PHOTO_ID_5053011621126097986" border="0" /&gt;&lt;/a&gt;Yes, A mac mini, I work on a mac mini G4 1.4 GHz and 512 Mb of ram, the main programs I use when coding on it are, the terminal to compile my C files, gnuplot to visualize my output, and emacs to modify those C++ files.&lt;br /&gt;&lt;br /&gt;I don't write too many user oriented programs, they are more physics simulations, and everything I do is on the terminal window, but I want to change that and hence this blog. Cheers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-5004575154991525037?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/5004575154991525037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=5004575154991525037' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5004575154991525037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/5004575154991525037'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/04/about-myself.html' title='About Myself'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp1.blogger.com/_Sjy3eTKoByw/Rh_nTCMkTEI/AAAAAAAAAAM/-Qd3kDGKZ_s/s72-c/mini.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7824171777771265243.post-6729031815468167218</id><published>2007-04-12T14:52:00.000-04:00</published><updated>2007-04-12T15:07:19.021-04:00</updated><title type='text'>Chuy and Mac</title><content type='html'>I just created this blog for mac enthusiasts. I will start this blog a little bit slowly but I hope to start posting more frequently in the future.&lt;br /&gt;&lt;br /&gt;The main focus of the blog is programming for the Mac OS X. As I mentioned before I will start with small projects. If you want to contribute to the blog let me know.&lt;br /&gt;&lt;br /&gt;I will start coding a Hello World Application and move from there. Cheers.&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;int main(void) { printf("Hello World!!!, Welcome to chuyandmac.blogspot.com/n"); }&lt;/stdio.h&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7824171777771265243-6729031815468167218?l=chuyandmac.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://chuyandmac.blogspot.com/feeds/6729031815468167218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7824171777771265243&amp;postID=6729031815468167218' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/6729031815468167218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7824171777771265243/posts/default/6729031815468167218'/><link rel='alternate' type='text/html' href='http://chuyandmac.blogspot.com/2007/04/chuy-and-mac.html' title='Chuy and Mac'/><author><name>Chuy</name><uri>http://www.blogger.com/profile/08444859882131399896</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://physics.georgetown.edu/~jgc32/cast_pearlswine_Rat.gif'/></author><thr:total>1</thr:total></entry></feed>
