<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>postscript &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/postscript/</link>
	<description>Feed of posts on WordPress.com tagged "postscript"</description>
	<pubDate>Wed, 25 Nov 2009 23:06:18 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Have Travian Gold, Will Attack, Part V]]></title>
<link>http://reyadel.wordpress.com/2009/11/10/have-travian-gold-will-attack-part-v/</link>
<pubDate>Tue, 10 Nov 2009 23:59:27 +0000</pubDate>
<dc:creator>reyadel</dc:creator>
<guid>http://reyadel.wordpress.com/2009/11/10/have-travian-gold-will-attack-part-v/</guid>
<description><![CDATA[I noted in my yesterday&#8217;s post that a Postscript for this series of posts regarding my Travian]]></description>
<content:encoded><![CDATA[I noted in my yesterday&#8217;s post that a Postscript for this series of posts regarding my Travian]]></content:encoded>
</item>
<item>
<title><![CDATA[Converting SymPy Expression to Postscript Expression]]></title>
<link>http://hakantiftikci.wordpress.com/2009/11/08/converting-sympy-expression-to-postscript-expression/</link>
<pubDate>Sun, 08 Nov 2009 11:18:20 +0000</pubDate>
<dc:creator>hakantiftikci</dc:creator>
<guid>http://hakantiftikci.wordpress.com/2009/11/08/converting-sympy-expression-to-postscript-expression/</guid>
<description><![CDATA[Following Python script converts a SymPy expression to Postscript expression. It does this first obt]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Following Python script converts a SymPy expression to Postscript expression. It does this</p>
<li>first obtaining MathML representation of SymPy expression</li>
<li>then obtaining XML ElementTree representation of MathML string</li>
<li>finally traversing ElementTree recursively to generate Postscript expression</li>
<p>Test expression is</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cdisplaystyle+e%5E%7B-+%5Ccos+%5Cleft%28-+%5Cfrac%7Bx%7D%7B2+y%7D+%2B+x%5E%7B2%7D%5Cright%29+%2B+x%5E%7B2%7D+%5Csin+%5Cleft%28x%5Cright%29%7D%26%2338%3Bs%3D1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\displaystyle e^{- \cos \left(- \frac{x}{2 y} + x^{2}\right) + x^{2} \sin \left(x\right)}&amp;s=1' title='\displaystyle e^{- \cos \left(- \frac{x}{2 y} + x^{2}\right) + x^{2} \sin \left(x\right)}&amp;s=1' class='latex' /></p>
<pre class="brush: python;">
import sympy

# define symbols and then test expression
x,y = sympy.symbols('x y')
e = sympy.exp( x**2*sympy.sin(x)-sympy.cos(x**2-x/2/y) )

# get MathML representation string
mml = sympy.printing.mathml(e)

# parse MathML representation of &#34;e&#34; using ElementTree module
import xml.etree.ElementTree as et
root = et.fromstring(mml)

# define routine to tranverse the XML ElementTree &#34;root&#34;
def traverseET(r,level):
    indent = &#34;&#124;  &#34; # &#34;\t&#34;
    print (indent*level)+r.tag+'('+`r.text`+')'
    for c in r.getchildren():
        traverseET(c, level+1)

# define Postscript equivalents of MathML operator names
MathML2PSOP = {'times':'mul',
               'divide':'div',
               'power':'exp',
               'plus':'add',
               'minus':'sub',
               'cos':'cos',
               'sin':'sin',
               'exp':'exp',
               'cn':'#',
               'ci':'_'}

# routine to convert XML tree &#34;r&#34; of an expression to Postscript expression
def MathML2POSTSCRIPT(r,depth):
    if r.tag==&#34;apply&#34;:
        children = r.getchildren()
        operator = children[0]
        opMathMLname = operator.tag
        opname = MathML2PSOP[ opMathMLname ]
        result = MathML2POSTSCRIPT( children[1], depth+1 )
        if (len(children)&#62;2):
            for i in range(2,len(children)):
                result += ( MathML2POSTSCRIPT( children[i], depth+1 ) + opname )
        else:
            if opMathMLname=='minus':
                opname = 'neg'
                result = result + ' ' + opname
            elif opMathMLname=='exp':
                result = '2.7182818284590452354 ' + result + 'pow'
            else:
                result = result + ' ' + opname
        return result + ' '
    elif r.tag=='ci':
        return r.text + ' '
    elif r.tag=='cn':
        return r.text + ' '
    else:
        return '(?)'

print &#34;_&#34;*30
print &#34;ElementTree Traversal&#34;
traverseET(root, 0)

print MathML2INFIX(root,0)
print &#34;_&#34;*30
print &#34;Postscript equivalent of &#60;&#34;,e,&#34;&#62;&#34;
print MathML2POSTSCRIPT(root,0)
</pre>
<p>Output of code is</p>
<pre class="brush: plain;">

______________________________
ElementTree Traversal
apply(None)
&#124;  exp(None)
&#124;  apply(None)
&#124;  &#124;  plus(None)
&#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  minus(None)
&#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  cos(None)
&#124;  &#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  &#124;  plus(None)
&#124;  &#124;  &#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  minus(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  divide(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  ci('x')
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  times(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  cn('2')
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  &#124;  ci('y')
&#124;  &#124;  &#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  power(None)
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  ci('x')
&#124;  &#124;  &#124;  &#124;  &#124;  &#124;  cn('2')
&#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  times(None)
&#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  power(None)
&#124;  &#124;  &#124;  &#124;  ci('x')
&#124;  &#124;  &#124;  &#124;  cn('2')
&#124;  &#124;  &#124;  apply(None)
&#124;  &#124;  &#124;  &#124;  sin(None)
&#124;  &#124;  &#124;  &#124;  ci('x')
______________________________
Postscript equivalent of &#60; exp(-cos(-x/(2*y) + x**2) + x**2*sin(x)) &#62;
2.7182818284590452354 x 2 y mul div  neg x 2 exp add  cos  neg x 2 exp x  sin mul add pow
</pre>
<p>Generated Postscript expression is verified by hand</p>
<pre class="brush: plain;">
2.718281 x [2 y mul] div  neg x 2 exp add  cos  neg x 2 exp x  sin mul add pow
2.718281 [x (2*y)] div]  neg x 2 exp add  cos  neg x 2 exp x  sin mul add pow
2.718281 [(x/(2*y)])  neg] x 2 exp add  cos  neg x 2 exp x  sin mul add pow
2.718281 -(x/(2*y)])  [x 2 exp] add  cos  neg x 2 exp x  sin mul add pow
2.718281 [-(x/(2*y)])  x**2 add]  cos  neg x 2 exp x  sin mul add pow
2.718281 [(-(x/(2*y)])+x**2 cos]  neg x 2 exp x  sin mul add pow
2.718281 [cos(-(x/(2*y)])+x**2  neg] x 2 exp x  sin mul add pow
2.718281 -cos(-(x/(2*y)])+x**2  [x 2 exp] x  sin mul add pow
2.718281 -cos(-(x/(2*y)])+x**2  x**2 [x  sin] mul add pow
2.718281 -cos(-(x/(2*y)])+x**2  [x**2 sin(x) mul] add pow
2.718281 [-cos(-(x/(2*y)])+x**2  x**2*sin(x)  add] pow
2.718281 (-cos(-(x/(2*y)])+x**2+x**2*sin(x)) pow
2.718281^(cos(-(x/(2*y)])+x**2+x**2*sin(x)))
</pre>
<p>If Postscript expressions are to be used within a PDF document for a Functiontype4 shading then a subset postscript commands are allowed. For a list of allowed commands see &#8220;<em>Operators in Type 4 Functions</em>&#8221; in &#8220;<em>PDF Reference, sixth edition, Adobe Systems Incorporated</em>&#8220;</p>
<p>Note that, instead of processing MathML nodes, SymPy (AST) nodes could be processed directly (without creating intermediate representations) but at the time writing this script, handling MathML nodes was easier for me.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Merender Huruf]]></title>
<link>http://hobyt.wordpress.com/2009/10/17/merender-huruf/</link>
<pubDate>Sat, 17 Oct 2009 02:45:10 +0000</pubDate>
<dc:creator>hobyt</dc:creator>
<guid>http://hobyt.wordpress.com/2009/10/17/merender-huruf/</guid>
<description><![CDATA[Ketika kita bekerja dengan huruf entah itu untuk percetakan atau online publishing, komputer yang ak]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Ketika kita bekerja dengan huruf entah itu untuk percetakan atau online publishing, komputer yang akan menjadi mediumnya, dimana kita akan mengumpulkan materi dan mengerjakan konsep dan desain yang akan dibuat. Oleh karena itu kebutuhan akan pengetahuan grafis pada tampilan layar dan reproduksi grafis sangat dibutuhkan untuk mendapatkan final output yang terlihat oleh target audiens sesuai seperti apa yang kita harapkan.</p>
<p>1. Bitmap<br />
Dalam Tampilan layar monitor atau pun cetak digital, teks di render oleh ribuan kumpulan grid mosaik berwarna berbentuk seperti titik yang disebut pixel untuk membuat sebuah bentuk yang diinginkan. Susunan bentuk grid inilah yang disebut dengan Bitmap. Bitmap sangat intensif terhadap memory, sebuah file harus mengandung informasi tentang warna dan posisi dalam sebuah halaman di setiap pixelnya. Ketika sebuah gambar bitmap di perbesar, software hanya bisa memperbesar bentuk pixel pada gambar tersebut, sehingga mempengaruhi pixel asli dari gambar tersebut dan bagian pixel yang kecil dan bergerigi akan menjadi terlihat besar dan menjadikan gambar terlihat lebih bergerigi.</p>
<p>2. Vektor<br />
Vektor mendeskripsikan sebuah bentuk sebagai sebuah garis seperti garis lurus atau garis melengkung yang saling menyatu dengan titik yang telah ditentukan. Garis-garis tersebut (vektor) di rekam dalam bentuk file sebagai formula matematika. Dan kemudian garis yang telah terbentuk di isi oleh pixel. Vektor sangat baik untuk kualitas pengskalaan, ketika sebuah gambar vektor diperbesar, posisi kordinat titik vektor di susun ulang dengan dikontrol oleh formula matematika agar garis lurus dan lengkung pada titik-titik tersebut tetap konstan, dan bentuk baru ini kemudian di isi oleh pixel sesuai dengan bentuk dari vektor tersebut tanpa ada cacat pixel. File gambar vektor memakan memory lebih kecil dibandingkan dengan file bitmap. Menggambar dengan vektor sangat efisien akan tetapi bagaimanapun juga gambar vektor ini ketika bertemu dengan layar monitor harus di render sebagai titik-titik matrix atau dengan kata lain garis vektor harus di konversi kedalam bentuk bitmap. Informasi garis vektor di konversi menjadi bitmap untuk dicetak, bedanya bitmap yang akan dicetak ini memiliki resolusi yang tinggi.</p>
<p>Huruf dan Layar Komputer<br />
Gambar dihadirkan di layar komputer oleh kumpulan titik-titik berwarna yang disusun dalam grid yang rapat yang dinamakan pixel, kualitas on-screen rendering dari huruf digital dihambat oleh kecilnya resolusi dari layar komputer yaitu, 72 pixel per inch (ppi) di layar Macintosh dan 96 ppi di layar PC. Ukuran huruf yang kecil akan tampil buruk dilayar dan sangat mengganggu dan masalahnya huruf berukuran kecil sering digunakan dalam penkerjaan desktop publishing. Ukuran resolusi yang rendah dari layar komputer tidak bisa menghadirkan detail yang baik, sehingga ketika huruf berukuran kecil di raster dan disesuaikan dengan grid pixel, detail dengan ukuran lebih kecil dari 1 pixel harus dibesarkan atau dihilangkan, ini menyebabkan fitur seperti ketebalan stroke atau serif menjadi tidak konsisten atau mungkin menjadi hilang dan akhirnya membentuk huruf dan ruang yang tidak baik. Beberapa teknik diperlukan untuk mengatasi permasalahan tersebut, teknik tersebut dinamakan Hinting, font-font yang berkualitas tinggi telah melewati proses ini dan mengandung informasi hinting. Saat meraster, software mengusahakan untuk meratakan outline gambar terhadap grid pixel, hanya pixel yang jatuh di outline gambar yang digunakan secara normal. Jika terdapat sedikit pixel untuk menghadirkan huruf berukuran kecil dengan benar, perintah hinting digunakan untuk membuat penyesuaian yang akan memberikan bentuk yang lebih baik secara optis.</p>
<p>Huruf dan Media Cetak<br />
Untuk melihat detail font dengan jelas bisa di capai dengan mencetaknya diatas kertas, mesin cetak menggunakan titik kecil hitam atau berwarna untuk membentuk sebuah gambar. Jumlah dot per inch (dpi) / titik per inci sangatlah jauh lebih baik dibandingkan layar komputer dan oleh sebab itu gambar yang lebih detail bisa dibentuk. Kebanyakan mesin cetak inkjet atau laserjet memiliki output resolusi 300 hingga 600 dpi, dan bahkan imagesetter memiliki output resolusi hingga 3000 dpi. Saat ini mesin cetak inkjet dan laserjet sudah bisa menghasilkan kualitas cetak yang sangat baik, tetapi jika diteliti lebih dekat akan terlihat formasi titik-titik yang membentuk area gambar, mesin cetak tersebut tetap memiliki keterbatasan resolusi, pembentukan gradasi dan warna. Secara kontras, titik-titik yang digunakan oleh imagesetter sangatlah kecil hingga sulit dideteksi oleh visual, sehingga sudut-sudut pada gambar dan huruf terlihat sempurna.</p>
<p>1. Postscript<br />
Adalah bahasa deskripsi halaman yang dipatenkan oleh Adobe. Mengkonversi informasi vektor menjadi bitmap beresolusi tinggi untuk rendering berkualitas tinggi. Adobe Type Manager (ATM) menggunakan postscript untuk menghasilkan bitmap superior dari outline di pencitraan layar komputer.<br />
2. Inkjet Printer<br />
Titik-titik mikroskopik dari tinta disemprotkan ke atas kertas dengan resolusi 300 hingga 1500 dpi. Dengan keterbatasan resolusi dan kualitas kertas banyak mesin cetak inkjet murahan tidak mampu memaksimalkan postscript hingga tidak bisa merender bentuk huruf dengan tepat. Tapi inkjet-inkjet keluaran terbaru yang dilengkapi oleh postscript atau postscript simulation bisa menghasilkan output yang sangat baik.<br />
3. Laser Printer<br />
Kebanyakan Laser Printer sudah dilengkapi oleh software postscript, yang akan bisa dengan baik menerjemahkan bentuk huruf dan pengaturan jarak dengan akurat, walaupun mereka membuat tampilan yang ‘crisp’, laser printer mengalami hambatan ketika ukuran ukuran gambar yang akan di cetak kecil. Karena partikel dari bubuk toner digunakan untuk membuat gambar lebih lebih kecil dan huruf-huruf berstroke tipis tampil lebih tebal ketika tercetak.<br />
4. Imagesetter<br />
Imagesetter berbasis postscript, dengan menggunakan cermin putar dan sinar laser, memberikan hasil gambar dengan kualitas tinggi, pemanfaatan eksposur fotografi dikombinasikan dengan resolusi yang sangat tinggi untuk mendapatkan detail yang sangat baik. Imagesetter mengarahkan cahaya keatas film, yang akan digunakan untuk menyinarkan cahaya ke atas pelat cetakan. Gambar sekarang sudah berpindah ke atas pelat yang sudah ditintakan dan gambar inilah yang akan dipindahkan keatas kertas atau media cetak lainnya.<br />
5. Online Viewing<br />
Online viewing adalah istilah aplikasi desain yang dibuat dengan tampilan yang terlihat dilayar komputer adalah hasil akhir yang akan dilihat oleh pemirsa desain contohnya, desain website atau multimedia interaktif. Permasalahan yang kerap hadir dalam pengaplikasian online viewing adalah keterbatasan resolusi yang dimiliki oleh layar monitor komputer yaitu 72 ppi untuk Macintosh dan 96 ppi untuk PC sehingga memberikan efek yang tidak baik untuk penampilan-penampilan huruf dalam ukuran kecil, oleh karena itu banyak desain-desain website yang menggunakan huruf dengan ukuran besar untuk aplikasi text dan ini sangat mengganggu untuk kenyamanan komposisi layout, dan juga permasalahan online viewing yang berhubungan dengan resolusi belum terpecahkan. Untuk mengatasi permasalahan resolusi ini hadirlah sebuah teknik yang dinamakan Antialiasing.</p>
<p>a. Antialiasing<br />
Terkadang menggunakan font dengan ukuran kecil adalah satu-satunya cara yang memungkinkan untuk mendisplay text dengan ukuran kolom yang terbatas. Agar font tetap terlihat baik di ukuran kecil tanpa kehilangan legibility nya, para pembuat software membuat teknik antialiasing, teknik ini bekerja membandingkan garis vektor dengan grid bitmap dan membaca bagian dari gambar atau huruf yang hilang atau terdistorsi, lalu dengan kecanggihan teknologi, software memasukan pixel berbentuk bayangan warna abu-abu yang bervariasi disekeliling bentuk huruf untuk menciptakan ilusi mata bentuk stroke yang halus. Kekurangan dari teknik antialiasing adalah teks dengan font berukuran kecil akan terlihat kurang hitam akan tetapi kekurangan ini cukup terbayar dengan kehalusan dan integritas atas bentuk huruf yang ditampilkan.<br />
[IMG]http://i21.photobucket.com/albums/b266/ritchienedhansel/Untitled5.png[/IMG] gambar diambil dari http://www.newcottage.com</p>
<p><strong>Sumber: </strong><br />
<em>1. http://id.wikipedia.org/wiki/Huruf_Digital_(Font)</em></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.5.1]]></title>
<link>http://netvietnam.org/2009/10/09/notepad-5-5-1/</link>
<pubDate>Fri, 09 Oct 2009 12:15:09 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/10/09/notepad-5-5-1/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>
<item>
<title><![CDATA[Grungy, nasty circles vector with drips and removable ants]]></title>
<link>http://graphipedia.wordpress.com/2009/09/30/grungy-nasty-circles-vector-with-drips-and-removable-ants/</link>
<pubDate>Wed, 30 Sep 2009 18:29:10 +0000</pubDate>
<dc:creator>gwebblog</dc:creator>
<guid>http://graphipedia.wordpress.com/2009/09/30/grungy-nasty-circles-vector-with-drips-and-removable-ants/</guid>
<description><![CDATA[Grungy, nasty circles vector with drips and removable ants by Freevectors.com Encapsulated PostScrip]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h3 style="text-align:center;"><img class="alignleft size-full wp-image-194" title="101." src="http://graphipedia.wordpress.com/files/2009/09/1011.jpg" alt="101." width="300" height="220" /></h3>
<h3 style="text-align:center;">Grungy, nasty circles vector with drips and removable ants</h3>
<h3 style="text-align:center;">by <a href="http://www.freevectors.com/" target="_blank">Freevectors.com</a></h3>
<p style="text-align:center;"><strong>Encapsulated PostScript</strong></p>
<p style="text-align:center;"><strong><a href="http://2861416603595411165-a-1802744773732722657-s-sites.googlegroups.com/site/graphique1000/vec/grunge_circles.zip?attachauth=ANoY7crtXVAS4GYH9nmww4X_wMA_ecM9rwlS_nQjN_kTonrCwmyBwJzsIP8JQ1Ww_d8R5FL5xgbw2fxWkKCCZXdwm70Chi-r5p_AfprmpD8pIQxHp0CS5A5f4qtSaZqT4EkZRVdbXStSl6C6pjyp_D4qM6oENFAA2g62BsinuKtEqd-WAvmc8sLvk_08OaEbi38GHvp7oocTYoJAJ4wGuR5N5rT1B_hK4A%3D%3D&#38;attredirects=0">DOWNLOAD</a>(0.97Mb)</strong></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[ohno! ondoy!]]></title>
<link>http://studiomarchitecto.wordpress.com/2009/09/30/ohno-ondoy/</link>
<pubDate>Wed, 30 Sep 2009 13:58:23 +0000</pubDate>
<dc:creator>marc</dc:creator>
<guid>http://studiomarchitecto.wordpress.com/2009/09/30/ohno-ondoy/</guid>
<description><![CDATA[I guess since the dust has settled, or should i say the flood has subsided (well in some areas), I c]]></description>
<content:encoded><![CDATA[I guess since the dust has settled, or should i say the flood has subsided (well in some areas), I c]]></content:encoded>
</item>
<item>
<title><![CDATA[PS to PDF]]></title>
<link>http://farawaybooks.wordpress.com/2009/09/29/ps-to-pdf/</link>
<pubDate>Wed, 30 Sep 2009 00:30:04 +0000</pubDate>
<dc:creator>farawaybooks</dc:creator>
<guid>http://farawaybooks.wordpress.com/2009/09/29/ps-to-pdf/</guid>
<description><![CDATA[Today we&#8217;re moving things from design programs into PostScript files into PDFs, to print out p]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Today we&#8217;re moving things from design programs into PostScript files into PDFs, to print out proofs. Or, we&#8217;re trying to . . . .</p>
<p>We&#8217;ve been attempting to follow LSI&#8217;s instructions, but it just didn&#8217;t pan out.  There seems to be some missing information.</p>
<p>Apparently when you choose Print Preset: Custom and Printer: PostScript, you can&#8217;t then choose Adobe PDF as your PDD.  You can only choose Device Independent, and about 200 models of printer.</p>
<p>Unfortunately the instruction LSI gives is to select PDD: Adobe PDF.</p>
<p>Since this is the very first step in the process.  We haven&#8217;t really got much further than contacting LSI,  to ask if there was anything they left out.</p>
<p>There&#8217;s nothing about this in any of the &#8220;How to use InDesign&#8221; books. So we kind of have to wait and see.</p>
<p>LSI does offer to let publishers send in the books in .indd format, but the closer we can come to the final product, the better.</p>
<p>For one thing, the final proof of a PDF is way more likely to catch a flaw than a proof of an .indd file. And so . . . PS  we&#8217;re moving on to another pot, while this one simmers.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[The Future Improved by the Past? Part III]]></title>
<link>http://reyadel.wordpress.com/2009/09/27/the-future-improved-by-the-past-part-iii/</link>
<pubDate>Sun, 27 Sep 2009 23:59:44 +0000</pubDate>
<dc:creator>reyadel</dc:creator>
<guid>http://reyadel.wordpress.com/2009/09/27/the-future-improved-by-the-past-part-iii/</guid>
<description><![CDATA[Yesterday&#8217;s post on Neil Postman&#8217;s book: Building a Bridge to the 18th Century: How the ]]></description>
<content:encoded><![CDATA[Yesterday&#8217;s post on Neil Postman&#8217;s book: Building a Bridge to the 18th Century: How the ]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.5.0]]></title>
<link>http://netvietnam.org/2009/09/21/notepad-5-5-0/</link>
<pubDate>Mon, 21 Sep 2009 13:14:16 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/09/21/notepad-5-5-0/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>
<item>
<title><![CDATA[imma be... drunk?]]></title>
<link>http://studiomarchitecto.wordpress.com/2009/08/30/imma-be-drunk/</link>
<pubDate>Sun, 30 Aug 2009 13:39:39 +0000</pubDate>
<dc:creator>marc</dc:creator>
<guid>http://studiomarchitecto.wordpress.com/2009/08/30/imma-be-drunk/</guid>
<description><![CDATA[&#8216;Cause just one night couldn&#8217;t be so wrong ~my ♥ leighton meester nag cut ako ng 7:30 pm]]></description>
<content:encoded><![CDATA[&#8216;Cause just one night couldn&#8217;t be so wrong ~my ♥ leighton meester nag cut ako ng 7:30 pm]]></content:encoded>
</item>
<item>
<title><![CDATA[Welcome To PSTricks]]></title>
<link>http://pstricks.wordpress.com/2009/08/30/welcome-to-pstricks/</link>
<pubDate>Sun, 30 Aug 2009 03:19:34 +0000</pubDate>
<dc:creator>Vafa Khalighi</dc:creator>
<guid>http://pstricks.wordpress.com/2009/08/30/welcome-to-pstricks/</guid>
<description><![CDATA[I write about drawing graphics with PSTricks in TeX here. PSTricks is a collection of PosrScript-bas]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I write about drawing graphics with PSTricks in TeX here. PSTricks is a collection of PosrScript-based TeX macros that is compatible with most TeX macro packages, including Plain TeX, LaTeX and ConTeXt. PSTricks gives you colour, graphics, rotation, trees and overlays.</p>
<p>PSTricks means “PostScript Tricks” and it combines two powerful languages (PostScript for drawing and TeX for typesetting).</p>
<p>I start with basics and then I develop it for drawing more complex graphics. I try to have at least one post per day and you can try asking your questions at the comment section of each post.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[read at your own risk]]></title>
<link>http://studiomarchitecto.wordpress.com/2009/08/19/read-at-your-own-risk/</link>
<pubDate>Wed, 19 Aug 2009 15:07:24 +0000</pubDate>
<dc:creator>marc</dc:creator>
<guid>http://studiomarchitecto.wordpress.com/2009/08/19/read-at-your-own-risk/</guid>
<description><![CDATA[You say You think we need to go to war well you&#8217;re already in one Cause it&#8217;s people like]]></description>
<content:encoded><![CDATA[You say You think we need to go to war well you&#8217;re already in one Cause it&#8217;s people like]]></content:encoded>
</item>
<item>
<title><![CDATA[Print PDFs as Postscript to an lpr Queue]]></title>
<link>http://yourmacguy.wordpress.com/2009/08/18/print-pdfs-as-postscript-to-an-lpr-queue/</link>
<pubDate>Tue, 18 Aug 2009 15:28:31 +0000</pubDate>
<dc:creator>pmbuko</dc:creator>
<guid>http://yourmacguy.wordpress.com/2009/08/18/print-pdfs-as-postscript-to-an-lpr-queue/</guid>
<description><![CDATA[I wrote a simple script recently for a user who was having trouble getting certain PDFs to print pro]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I wrote a simple script recently for a user who was having trouble getting certain PDFs to print properly from his linux box (Fedora 10). I first suggested that he try converting the pdfs to ps and printing the resulting file. That worked but he found the process a bit tedious. Here&#8217;s the script I wrote to take care of the tediousness. It relies on the standard (in Fedora, at least) <strong>pdf2ps</strong> package. It should be pretty self-explanatory.</p>
<pre>
<span style="color:#808080;">#!/bin/bash

# grab first argument as pdf filename and generate ps filename</span>
thePDF=$1
thePS=$(<span style="color:#0000ff;">echo</span> $thePDF.ps)
queueName=$2

usage()
{
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">""</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Usage: psprint [your pdf] [lpr queue]*"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">""</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"This command does three things:"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"  1. Converts the specified pdf file to ps"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"  2. Prints the ps file to your default lpr queue *(unless you specify another queue)"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"  3. Deletes the ps file"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">""</span>
    <span style="color:#0000ff;">exit</span> 1
}

<span style="color:#0000ff;">if</span> [ $# == 0 ]; <span style="color:#0000ff;">then</span> usage; <span style="color:#0000ff;">fi</span>
<span style="color:#0000ff;">if</span> [ $# == 1 ]; <span style="color:#0000ff;">then</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Converting $thePDF ..."</span>
    <span style="color:#0000ff;">pdf2ps</span> <span style="color:#ff00ff;">"$thePDF" "$thePS"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Sending to default printer ..."</span>
    <span style="color:#0000ff;">lpr</span> <span style="color:#ff00ff;">"$thePS"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Cleaning up ..."</span>
    <span style="color:#0000ff;">rm</span> <span style="color:#ff00ff;">"$thePS"</span>
    <span style="color:#0000ff;">exit</span> 1
<span style="color:#0000ff;">fi</span>
<span style="color:#0000ff;">if</span> [ $# == 2 ]; <span style="color:#0000ff;">then</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Converting $thePDF ..."</span>
    <span style="color:#0000ff;">pdf2ps</span> <span style="color:#ff00ff;">"$thePDF" "$thePS"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Sending to $2 ..."</span>
    <span style="color:#0000ff;">lpr</span> -P <span style="color:#ff00ff;">"$queueName" "$thePS"</span>
    <span style="color:#0000ff;">echo</span> <span style="color:#ff00ff;">"Cleaning up ..."</span>
    <span style="color:#0000ff;">rm</span> <span style="color:#ff00ff;">"$thePS"</span>
    <span style="color:#0000ff;">exit</span> 1
<span style="color:#0000ff;">fi</span>
<span style="color:#0000ff;">if</span> [ $# &#62; 2 ]; <span style="color:#0000ff;">then</span> usage; <span style="color:#0000ff;">fi</span>
</pre>
<p>Save the script to a location in your path (/usr/local/bin works) and you&#8217;re off.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Postscript]]></title>
<link>http://katiecatherinejones.wordpress.com/2009/08/09/postscript/</link>
<pubDate>Sun, 09 Aug 2009 16:34:13 +0000</pubDate>
<dc:creator>katincaat</dc:creator>
<guid>http://katiecatherinejones.wordpress.com/2009/08/09/postscript/</guid>
<description><![CDATA[Postscript magazine is a termly magazine at Imperial College produced by the Graduate Students]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Postscript magazine is a termly magazine at Imperial College produced by the Graduate Students&#8217; Association for the postgraduate students.<br />
<a href="http://www.yudu.com/item/details/69977/Postscript--Summer-2009?refid=19802"><img style="border:0;" src="http://www.yudu.com/item_thumbnail/6/9977/050ca6a5c/thumb/page1.jpg" alt="Postscript- Summer 2009" /><br />
Postscript- Summer 2009</a></p>
<p><a href="http://www.yudu.com/item/details/68923/Postscript--Spring-2009.?refid=19802"><img style="border:0;" src="http://www.yudu.com/item_thumbnail/6/8923/122394b65/thumb/page1.jpg" alt="Postscript- Spring 2009." /><br />
Postscript- Spring 2009.</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Νέος Universal Print Driver απο την Konica Minolta]]></title>
<link>http://xollothnews.wordpress.com/2009/08/07/%ce%bd%ce%ad%ce%bf%cf%82-universal-print-driver-%ce%b1%cf%80%ce%bf-%cf%84%ce%b7%ce%bd-konica-minolta/</link>
<pubDate>Fri, 07 Aug 2009 03:08:00 +0000</pubDate>
<dc:creator>xollothnews</dc:creator>
<guid>http://xollothnews.wordpress.com/2009/08/07/%ce%bd%ce%ad%ce%bf%cf%82-universal-print-driver-%ce%b1%cf%80%ce%bf-%cf%84%ce%b7%ce%bd-konica-minolta/</guid>
<description><![CDATA[MobileNews &#8211; Best of Gadgets, Games and Mobile Lifestyle | Νέος Universal Print Driver απο την]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div><a href="http://www.mobile-news.gr/index.php?lang=bg&#38;article=3881&#38;title=neo_universal_print_driver_apo_thn_konica_minolta">MobileNews &#8211; Best of Gadgets, Games and Mobile Lifestyle &#124; Νέος Universal Print Driver απο την Konica Minolta</a></p>
<blockquote><p><a href="http://images.google.com/imgres?imgurl=http://informatica.hcosta.pt/images/KONICA%2520MINOLTA.jpg&#38;imgrefurl=http://informatica.hcosta.pt/images/&#38;usg=__Bsci12niO76zRj1CP-IA5Frm1eY=&#38;h=396&#38;w=630&#38;sz=88&#38;hl=en&#38;start=6&#38;tbnid=0Pkn5zgH_X8zZM:&#38;tbnh=86&#38;tbnw=137&#38;prev=/images%3Fq%3DKonica%2BMinolta%26ndsp%3D18%26hl%3Den%26lr%3D%26sa%3DN%26start%3D1"><img src="http://tbn3.google.com/images?q=tbn:0Pkn5zgH_X8zZM:http://informatica.hcosta.pt/images/KONICA%2520MINOLTA.jpg" height="86" width="137" /></a>Η Konica Minolta ανακοινώνει το νέο της Universal Print Driver (UPD), που θα κυκλοφορήσει στα τέλη του καλοκαιριού, ένα πρόγραμμα οδήγησης εκτυπωτή για όλους τους Konica Minolta εκτυπωτές και άλλες συσκευές που είναι συμβατές με PCL6 ή <a class="zem_slink" href="http://en.wikipedia.org/wiki/PostScript" title="PostScript" rel="wikipedia">PostScript</a><a href="http://www.mobile-news.gr/index.php?lang=bg&#38;article=3881&#38;title=neo_universal_print_driver_apo_thn_konica_minolta">.[συνεχεια]</a></p></blockquote>
</div>
<div style="margin-top:10px;height:15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://reblog.zemanta.com/zemified/9c42c17a-e188-89dd-a873-4425028f6228/" title="Reblog this post [with Zemanta]"><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_e.png?x-id=9c42c17a-e188-89dd-a873-4425028f6228" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"></span></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[P.S. The Librarian]]></title>
<link>http://lifeps.wordpress.com/2009/07/30/p-s-the-librarian/</link>
<pubDate>Thu, 30 Jul 2009 20:14:26 +0000</pubDate>
<dc:creator>signed .............bkm</dc:creator>
<guid>http://lifeps.wordpress.com/2009/07/30/p-s-the-librarian/</guid>
<description><![CDATA[That madam librarian you were looking for just left the building –   I refuse to categorize my men b]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><img class="aligncenter size-full wp-image-58" title="the_sexy_librarian_reading_glasses_" src="http://lifeps.wordpress.com/files/2009/07/the_sexy_librarian_reading_glasses_.jpg" alt="the_sexy_librarian_reading_glasses_" width="450" height="294" /></p>
<address><strong>That madam librarian you were looking for</strong></address>
<address><strong>just left the building –</strong></address>
<address><strong> </strong></address>
<address><strong>I refuse</strong></address>
<address><strong>to categorize my men by</strong></address>
<address><strong>the dewy decimal system, that</strong></address>
<address><strong>would mean having to sort and shelve-</strong></address>
<address><strong> </strong></address>
<address><strong>I prefer instead</strong></address>
<address><strong>to cherish a good read</strong></address>
<address><strong>then donate the hardback</strong></address>
<address><strong>to charity –</strong></address>
<address><strong></strong> </address>
<address><strong>bkm 2009</strong></address>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Hypotrochoid in PostScript]]></title>
<link>http://rosenblog.wordpress.com/2009/07/20/hypotrochoid-in-postscript/</link>
<pubDate>Mon, 20 Jul 2009 05:33:30 +0000</pubDate>
<dc:creator>Will</dc:creator>
<guid>http://rosenblog.wordpress.com/2009/07/20/hypotrochoid-in-postscript/</guid>
<description><![CDATA[Recently, I saw a spirograph kit for sale in an art museum bookstore. I remember using a spirograph ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Recently, I saw a <a href="http://en.wikipedia.org/wiki/Spirograph">spirograph</a> kit for sale in an art museum bookstore. I remember using a spirograph kit when I was younger to make intricate patterns, but I haven&#8217;t seen one in years. Inspired by the art museum bookstore (I&#8217;d be lying if I said that I didn&#8217;t often enjoy a museum&#8217;s bookstore at least as much as the museum itself) I started working on a new PostScript project: I wanted to make a spirograph in PostScript. Here are some example designs that the program produced:</p>
<div id="attachment_57" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-57" title="drawings" src="http://rosenblog.wordpress.com/files/2009/07/drawings.jpg" alt="A few figures" width="450" height="582" /><p class="wp-caption-text">A few figures</p></div>
<p>The mathematical name for curves of this sort is hypotrochoid. Hypotrochoids include all of the figures that can be made with a spirograph. The following figure should be helpful in understanding how the curves are constructed:</p>
<div id="attachment_58" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-58" title="explanation" src="http://rosenblog.wordpress.com/files/2009/07/explanation.jpg" alt="Hypotrochoid construction" width="450" height="450" /><p class="wp-caption-text">Hypotrochoid construction</p></div>
<p>In order to define a particular hypotrochoid, we need to pick three numbers. The first number, <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' /> is the radius of the black circle in the above figure. The second number, <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' />, is the radius of the red inner circle. In order for the hypotrochoid to eventually close back onto itself, <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> needs to be a ratio of <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' />, and <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> should be less than <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' />. That is, <img src='http://l.wordpress.com/latex.php?latex=r+%3D+%5Cfrac+n+m+%5Ccdot+R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r = \frac n m \cdot R' title='r = \frac n m \cdot R' class='latex' /> for some positive integers <img src='http://l.wordpress.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=m&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='m' title='m' class='latex' />. Later we will see why <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> needs to be a ratio of <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' />. Finally, we must choose the radius <img src='http://l.wordpress.com/latex.php?latex=d&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='d' title='d' class='latex' /> of the red arm attached to the inner circle.</p>
<p>Once the numbers <img src='http://l.wordpress.com/latex.php?latex=R%2C+r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R, r' title='R, r' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=d&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='d' title='d' class='latex' /> are chosen, we have pinned down a particular hypotrochoid. To construct the curve, we imagine the inner (red) circle placed against the inside wall of the larger (black) circle. The red arm of radius <img src='http://l.wordpress.com/latex.php?latex=d&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='d' title='d' class='latex' /> is rigidly attached to the red circle. The Red circle is then allowed to roll without slipping along the interior of the larger circle. The hypotrochoid is the shape traced out by the end of the red arm that isn&#8217;t attached to the center of the red circle.</p>
<p>Using math jargon, we can parametrize the hypotrochoid by</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%28x%2C+y%29+%3D+%28d+%5Ccos+%5Cfrac%7BR+-+r%7D%7Br%7D+%5Ctheta%2C+-+d+%5Csin+%5Cfrac%7BR+-+r%7D%7Br%7D+%5Ctheta%29.&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='(x, y) = (d \cos \frac{R - r}{r} \theta, - d \sin \frac{R - r}{r} \theta).' title='(x, y) = (d \cos \frac{R - r}{r} \theta, - d \sin \frac{R - r}{r} \theta).' class='latex' /></p>
<p style="text-align:left;">Here <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' /> is the angle that the center of the red circle has moved with respect to the center of the black circle.</p>
<p style="text-align:left;">We would like to draw a <em>closed</em> hypotrochoid, meaning that the curve ends at the same point as it begins. As I noted earlier, in order for this to happen, <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> must be ratios of one another. To see why this is true, consider the following diagram:</p>
<p style="text-align:left;">
<div id="attachment_68" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-68" title="explanation-2" src="http://rosenblog.wordpress.com/files/2009/07/explanation-2.jpg" alt="Angles of rotation" width="450" height="450" /><p class="wp-caption-text">Angles of rotation</p></div>
<p>The angle <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' /> is the angle through which the center of the inner circle rotates around the center of the black circle. The angle <img src='http://l.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> is the angle through which the red circle rotates as it rolls along the inside of the larger circle. The angles <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> are related by the condition that the inner circle rolls without slipping inside the larger circle. This means that the arc length the red circle sweeps out as it rolls through an angle <img src='http://l.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> must equal the arc length of the outer circle through an angle <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' />. For the big circle, the arc length <img src='http://l.wordpress.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='L' title='L' class='latex' /> is given by</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=L+%3D+R+%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='L = R \theta' title='L = R \theta' class='latex' />.</p>
<p style="text-align:left;">For the inner circle,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=L+%3D+-+r+%5Cvarphi+%2B+r+%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='L = - r \varphi + r \theta' title='L = - r \varphi + r \theta' class='latex' />.</p>
<p style="text-align:left;">The second term of this expression is due to the fact that the inner circle is rolling around a circle rather than rolling on a line. Equating the two expressions for the length <img src='http://l.wordpress.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='L' title='L' class='latex' /> and solving for <img src='http://l.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> gives</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cvarphi+%3D+%5Cfrac%7BR+-+r%7D%7Br%7D+%5Ccdot+%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\varphi = \frac{R - r}{r} \cdot \theta' title='\varphi = \frac{R - r}{r} \cdot \theta' class='latex' />.</p>
<p style="text-align:left;">
<p>If the hypotrochoid is to be closed, for some sufficiently large value of <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' />, the inner circle will have to be back in its initial position. This means that <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=%5Cvarphi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\varphi' title='\varphi' class='latex' /> are both integer multiples of <img src='http://l.wordpress.com/latex.php?latex=2+%5Cpi&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2 \pi' title='2 \pi' class='latex' /> radians (or equivalently 360 degrees). When this occurs we can write</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Ctheta+%3D+2+%5Cpi+a%2C+%5Cquad+%5Cvarphi+%3D+2+%5Cpi+b&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta = 2 \pi a, \quad \varphi = 2 \pi b' title='\theta = 2 \pi a, \quad \varphi = 2 \pi b' class='latex' /></p>
<p style="text-align:left;">for some integers <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b' title='b' class='latex' />. Combining this with the previous result gives</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=2+%5Cpi+b+%3D+%5Cfrac%7BR+-+r%7D%7Br%7D+2+%5Cpi+a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2 \pi b = \frac{R - r}{r} 2 \pi a' title='2 \pi b = \frac{R - r}{r} 2 \pi a' class='latex' />.</p>
<p style="text-align:left;">Equivalently</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cfrac+b+a+%3D+%5Cfrac+%7BR-r%7D%7Br%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac b a = \frac {R-r}{r}' title='\frac b a = \frac {R-r}{r}' class='latex' />.</p>
<p style="text-align:left;">Since <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b' title='b' class='latex' /> are integers, this requires that <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac%7BR+-+r%7D%7Br%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac{R - r}{r}' title='\frac{R - r}{r}' class='latex' /> is a rational number, hence <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' /> must be a ratio of <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' />. Further, given <img src='http://l.wordpress.com/latex.php?latex=R&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='R' title='R' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='r' title='r' class='latex' />, we can find the smallest value of <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' /> (and hence <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' />) so that the hypotrochoid is closed. The requirement that <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' /> be the <em>smallest</em> integer such that</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=%5Cfrac+b+a+%3D+%5Cfrac+%7BR-r%7D%7Br%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac b a = \frac {R-r}{r}' title='\frac b a = \frac {R-r}{r}' class='latex' /></p>
<p style="text-align:left;">means that <img src='http://l.wordpress.com/latex.php?latex=%5Cfrac+b+a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\frac b a' title='\frac b a' class='latex' /> is in lowest terms. Therefore the greatest common denominator of <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' /> and <img src='http://l.wordpress.com/latex.php?latex=b&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='b' title='b' class='latex' /> is 1, so we can solve for <img src='http://l.wordpress.com/latex.php?latex=a&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a' title='a' class='latex' />,</p>
<p style="text-align:center;"><img src='http://l.wordpress.com/latex.php?latex=a+%3D+%5Cfrac%7Br%7D%7B%5Cmathrm%7Bgcd%7D%28R-r%2C+r%29%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='a = \frac{r}{\mathrm{gcd}(R-r, r)}' title='a = \frac{r}{\mathrm{gcd}(R-r, r)}' class='latex' />.</p>
<p style="text-align:left;">So now we know how big we need to make <img src='http://l.wordpress.com/latex.php?latex=%5Ctheta&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\theta' title='\theta' class='latex' /> to close our hypotrochoid.</p>
<p style="text-align:left;">Well, I think that is quite enough math for tonight. But I will leave you with a few more hypotrochoids that I made.</p>
<p style="text-align:left;">
<div id="attachment_56" class="wp-caption aligncenter" style="width: 370px"><img class="size-full wp-image-56" title="color" src="http://rosenblog.wordpress.com/files/2009/07/color.jpg" alt="Design in color" width="360" height="360" /><p class="wp-caption-text">Design in color</p></div>
<div id="attachment_55" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-55" title="color-2" src="http://rosenblog.wordpress.com/files/2009/07/color-2.jpg" alt="Another color design" width="450" height="450" /><p class="wp-caption-text">Another color design</p></div>
<div id="attachment_59" class="wp-caption aligncenter" style="width: 370px"><img class="size-full wp-image-59" title="fill" src="http://rosenblog.wordpress.com/files/2009/07/fill.jpg" alt="Fill pattern" width="360" height="360" /><p class="wp-caption-text">Fill pattern</p></div>
<p style="text-align:center;">
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Week 2, Day 3]]></title>
<link>http://livedby.com/2009/07/19/week-2-day-3/</link>
<pubDate>Sun, 19 Jul 2009 07:37:36 +0000</pubDate>
<dc:creator>livedby</dc:creator>
<guid>http://livedby.com/2009/07/19/week-2-day-3/</guid>
<description><![CDATA[Well, I just got back from a party.  I think it takes me three days to master a routine.  The first ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Well, I just got back from a party.  I think it takes me three days to master a routine.  The first day I&#8217;m always a mess, but by day three I have enough free time that I&#8217;m done everything by 6 &#38; have time to relax.</p>
<p>The party was strange because I wasn&#8217;t allowed to drink.  Also, I don&#8217;t tend to make a good first impression on anarchists.  I met some really interesting people, however, &#38; I may have found an excellent new participant (wait &#38; see, maybe she&#8217;ll turn up in the future).  There was also a cute dog.</p>
<p style="text-align:center;"><img class="size-medium wp-image-222 aligncenter" title="IMG_0050" src="http://livedby.wordpress.com/files/2009/07/img_0050.jpg?w=300" alt="IMG_0050" width="300" height="225" /></p>
<p>(No Bella, I&#8217;ll admit.)</p>
<p>Today after a breakfast of trout &#38; (1a) dried apricots (during which I listened to [1b] &#8220;The Tennessee Waltz&#8221;) I unpacked &#38; alphabetized my bookshelves (made it through O).</p>
<p>Bella &#38; Chance helped.</p>
<p style="text-align:center;"><img class="size-medium wp-image-223 aligncenter" title="IMG_0041" src="http://livedby.wordpress.com/files/2009/07/img_0041.jpg?w=300" alt="IMG_0041" width="300" height="225" /></p>
<p>Then I bought a comic book &#38; a frozen (2a) coca-cola.  Making plans on the phone with my friend I said: (1c) &#8220;Everything&#8217;s getting terrible&#8221;   and (2c) &#8220;I&#8217;m doing all right by myself.&#8221;  Then I went to her house where I made a (3a) peanut butter sandwich.  I took a picture with my iPhone &#38; showed her how pretty it was.</p>
<p style="text-align:center;"><img class="size-medium wp-image-221 aligncenter" title="IMG_0049" src="http://livedby.wordpress.com/files/2009/07/img_0049.jpg?w=225" alt="IMG_0049" width="225" height="300" /></p>
<p>Doesn&#8217;t it look like a detail from a Vermeer painting? I asked.  (3c) &#8220;If I could paint, I&#8217;d paint that picture.&#8221;  I ate my sandwich in the elevator.  Then, in the car before the party, I (2b) flipped through my comic book.</p>
<p>Now all I have left to do is (3b) pray.  I&#8217;ll do that before I go to bed.  The only thing that&#8217;s missing is a nightcap.  It <em>is</em> after midnight, but I know that would be cheating.</p>
<p>I&#8217;m saving most of my &#8220;deep thoughts&#8221; for my end of week essay, but I will share an interesting little &#8220;deep fact.&#8221;  Since I&#8217;ve started the project, it has infiltrated all my dreams, &#38; at least once a night the week&#8217;s participant has appeared, if only peripherally, as a character in my dreams (talking to me on the phone, providing feedback on my execution of tasks, etc.)  There&#8217;s a particularly peculiar effect <em>this</em> week, as my authors &#38; their characters have appeared consistently too.</p>
<p>I&#8217;ll see you all after my day off.  Participants should be expecting week assignments/requests soon.</p>
<p>p.s. I&#8217;ve figured out how to see when people do that @ me thing on Twitter!  So now I will actually be able to respond, I think!</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Visualizing sorting algorithms]]></title>
<link>http://rosenblog.wordpress.com/2009/07/18/visualizing-sorting-algorithms/</link>
<pubDate>Sat, 18 Jul 2009 18:44:06 +0000</pubDate>
<dc:creator>Will</dc:creator>
<guid>http://rosenblog.wordpress.com/2009/07/18/visualizing-sorting-algorithms/</guid>
<description><![CDATA[First and foremost, I would like to welcome you to my new blog. My other blog (Photangeles Nuevo) is]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>First and foremost, I would like to welcome you to my new blog. My other blog (Photangeles Nuevo) is dedicated solely to photography, so I figured I would start a new blog where I can talk about everything else that I&#8217;m doing. Before getting started, here is some eye candy:</p>
<p style="text-align:center;"><img class="size-medium wp-image-22 aligncenter" title="heap-carpet" src="http://rosenblog.wordpress.com/files/2009/07/heap-carpet.jpg?w=71" alt="heap-sort operating on a larger array" width="71" height="300" /></p>
<p>This summer, I decided to start learning the <a href="http://en.wikipedia.org/wiki/PostScript">PostScript</a> programming language. PostScript is an interesting language because the output of the program is (typically) an image. Right now, I don&#8217;t want to get too technical into the specifics of the PostScript language, but I&#8217;ve really enjoyed learning the language. It is very different from other languages that I&#8217;ve used in the past (C/C++, Ruby, Java, Mathematica).</p>
<p>The project that I have been working on involves sorting algorithms. The basic idea is this: given an array (or list) of numbers, how do you organize the array into increasing (or decreasing) numerical order? There are many, many algorithms that solve this problem. The real test of a sorting algorithm is how quickly it sorts a list of <em>n</em> numbers.</p>
<p>As a first example of a sorting algorithm, I&#8217;ll describe a straightforward and naive sorting algorithm. It works like this: Look at each element in the array and find the smallest number. Then swap the smallest number with the first entry in the array. Then find the second smallest number in the array and swap that number with the second entry. Repeat this procedure until you fill the last entry in the array, and the array will be in increasing numerical order.</p>
<p>Let&#8217;s work an example of sorting with this algorithm. Start with the array [ 3 4 2 5 1 ]. We can see that 1 is the smallest entry, so we swap 1 with the first entry, 3. We get [ 1 4 2 5 3 ]. Now we look for the next smallest entry (2) and swap that with the second entry (4) and get [1 2 4 5 3]. Continuing on, we get [ 1 2 3 5 4 ], [1 2 3 4 5] and we are done.</p>
<p>This algorithm works fine for small arrays, but it is impractical for sorting large arrays. In order to find the smallest element not yet in order, we have to look at every element in the array (or at least every element that hasn&#8217;t already been sorted). Therefore, we have to make <em>n &#8211; i</em> comparisons between numbers just to find the smallest element in the array, where <em>i</em> is the number of elements already sorted. But we have to find the smallest element <em>n</em> times in order to complete the algorithm. So I calculate that we need to make (<em>1/2</em>) (<em>n^2 &#8211; n</em>) comparisons to sort an array of <em>n</em> elements. So if we wanted to sort an array of 10 numbers, we would need to make 45 comparisons. For 100 numbers we would need to make 4,950 comparisons! Clearly, this naive sorting algorithm gets out of hand very quickly for large arrays.</p>
<p>I examined four sorting algorithms that are significantly more efficient than the naive sort described above. I used <a href="http://en.wikipedia.org/wiki/Heapsort">heap-sort</a>, <a href="http://en.wikipedia.org/wiki/Gnome_sort">gnome-sort</a>, <a href="http://en.wikipedia.org/wiki/Bubble_sort">bubble-sort</a> and <a href="http://en.wikipedia.org/wiki/Quick_sort">quick-sort</a>. I don&#8217;t want to go into too much depth explaining how these algorithms work (see the links to Wikipedia if you want an explanation of them). Each of these algorithms has the advantage of sorting an array &#8220;in place.&#8221; This means that a computer doesn&#8217;t need to save any extra data while sorting. In contrast, the naive sorting algorithm described above does not sort in place, because each time the algorithm finds the smallest element in the array, it needs to store the value (or at least the index of the smallest entry). On average, heap-sort and quick-sort are allegedly the fastest algorithms, while gnome-sort and bubble-sort are considerably slower. Allegedly.</p>
<p>The aim of my project was three-fold. First, I wanted test the various algorithms and see which was truly the most efficient. Second, I wanted to come up with a way of visualizing how the algorithms actually operate on an array. And finally, I wanted to learn enough PostScript to implement the project.</p>
<p>In order to visualize an array of numbers, I decided to use colored squares. Each square represents a number. Forest green represents the smallest number in the array, while ultramarine is the largest element in the array. I printed the unsorted array as a horizontal block of colored squares, and applied the various sorting algorithms. I printed an updated row each time two entries in the array were swapped until the array was sorted. Here are the results of the race of the algorithms. Each algorithm was given the same initial unsorted array.</p>
<p>And they&#8217;re off!</p>
<div id="attachment_24" class="wp-caption aligncenter" style="width: 444px"><img class="size-large wp-image-24 " title="race" src="http://rosenblog.wordpress.com/files/2009/07/race.jpg?w=724" alt="the race of the sorting algorithms" width="434" height="614" /><p class="wp-caption-text">the race of the sorting algorithms</p></div>
<p>As expected, heap-sort and quick-sort are the fastest, with gnome-sort and bubble-sort lagging behind. Additionally, quick-sort seems to have the array partially ordered sooner than heap-sort. I would say that, true to its name, quick-sort is the all around sorting champion of this competition. But I like the visualization of heap-sort the best.</p>
<p>I&#8217;ll leave you with some additional images of quick-sort and heap-sort at work:</p>
<div id="attachment_23" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-23 " title="quick-carpet" src="http://rosenblog.wordpress.com/files/2009/07/quick-carpet.jpg" alt="quick-sort operating on a larger array" width="450" height="1619" /><p class="wp-caption-text">quick-sort operating on a larger array</p></div>
<div id="attachment_22" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-22 " title="heap-carpet" src="http://rosenblog.wordpress.com/files/2009/07/heap-carpet.jpg" alt="heap-sort operating on a larger array" width="450" height="1898" /><p class="wp-caption-text">heap-sort operating on a larger array</p></div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.4.5]]></title>
<link>http://netvietnam.org/2009/07/15/notepad-5-4-5/</link>
<pubDate>Wed, 15 Jul 2009 12:23:02 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/07/15/notepad-5-4-5/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>
<item>
<title><![CDATA[Musings of a High School Vampire: Ways to Kill a Cat]]></title>
<link>http://musingsofahighschoolvampire.wordpress.com/2009/07/10/musings-of-a-high-school-vampire-ways-to-kill-a-cat/</link>
<pubDate>Fri, 10 Jul 2009 16:24:22 +0000</pubDate>
<dc:creator>jonathon8</dc:creator>
<guid>http://musingsofahighschoolvampire.wordpress.com/2009/07/10/musings-of-a-high-school-vampire-ways-to-kill-a-cat/</guid>
<description><![CDATA[The Cat and me, in the middle of the street in the middle of the night.   I&#8217;m standing there i]]></description>
<content:encoded><![CDATA[The Cat and me, in the middle of the street in the middle of the night.   I&#8217;m standing there i]]></content:encoded>
</item>
<item>
<title><![CDATA[Notepad++ 5.4.4]]></title>
<link>http://netvietnam.org/2009/07/06/notepad-5-4-4/</link>
<pubDate>Mon, 06 Jul 2009 12:22:56 +0000</pubDate>
<dc:creator>Nhân Mã</dc:creator>
<guid>http://netvietnam.org/2009/07/06/notepad-5-4-4/</guid>
<description><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></description>
<content:encoded><![CDATA[Notepad++ là trình biên tập mã nguồn miễn phí (và là công cụ thay thế cho Notepad), hỗ trợ nhiều ngô]]></content:encoded>
</item>
<item>
<title><![CDATA[Lexikon: PostScript]]></title>
<link>http://rebellprint.wordpress.com/2009/06/30/lexikon-postscript/</link>
<pubDate>Tue, 30 Jun 2009 16:42:38 +0000</pubDate>
<dc:creator>rebellprint</dc:creator>
<guid>http://rebellprint.wordpress.com/2009/06/30/lexikon-postscript/</guid>
<description><![CDATA[PostScript ist eine Seitenbeschreibungssprache, die seit 1984 von Adobe entwickelt wird und in den 9]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:left;">PostScript ist eine Seitenbeschreibungssprache, die seit 1984 von Adobe entwickelt wird und in den 90-er Jahren zum weltweiten Standard in der Druckindustrie für die Ausgabe bei der Film- und Plattenbelichtung wurde, aber nun teilweise vom <a title="Lexikon: PDF" href="http://rebellprint.wordpress.com/2009/06/30/lexikon-pdf/" target="_blank">PDF</a>-Format verdrängt wird, das ebenfalls von Adobe stammt.</p>
<p style="text-align:left;">PostScript arbeitet system-, größen- und auflösungsunabhängig &#8211; die Qualität des Ausdrucks oder der Belichtung richtet sich nach den technischen Möglichkeiten des Ausgabegerätes.</p>
<p style="text-align:left;">PostScript-Dateien können nahezu ohne Verlust grafischer Informationen in PDF-Dateien umgewandelt werden.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
