<?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/'><id>tag:blogger.com,1999:blog-6580088942610704648.post7565903757477113910..comments</id><updated>2011-05-25T08:31:16.301+02:00</updated><category term='mobile'/><category term='pictures'/><category term='postgresql'/><category term='cli'/><category term='sysadmin'/><category term='s3'/><category term='funny'/><category term='news'/><category term='clojure'/><category term='erlang'/><category term='web'/><category term='profoss'/><category term='development'/><category term='myowndb'/><category term='zattoo'/><category term='asus'/><category term='mozart'/><category term='last.fm'/><category term='gwt'/><category term='hosting'/><category term='fosdem'/><category term='wtf'/><category term='toolinux'/><category term='api'/><category term='eucalyptus'/><category term='linkedin'/><category term='eeepc'/><category term='serveralias'/><category term='phone'/><category term='rubyonrails'/><category term='mapreduce'/><category term='product'/><category term='nohilism'/><category term='hadoop'/><category term='picasa'/><category term='dell'/><category term='firefox'/><category term='radio1'/><category term='fantasy'/><category term='printer'/><category term='spam'/><category term='rss'/><category term='symbian'/><category term='overclocking'/><category term='license'/><category term='video'/><category term='luckyasme'/><category term='tv'/><category term='vim'/><category term='eclipse'/><category term='mashup'/><category term='freelance'/><category term='aws'/><category term='training'/><category term='tld'/><category term='rant'/><category term='openoffice.org'/><category term='lessonsoflife'/><category term='acquisition'/><category term='facebook'/><category term='yui release'/><category term='virtualbox'/><category term='bulkmail'/><category term='plugg'/><category term='mysql'/><category term='livre'/><category term='java'/><category term='taocp'/><category term='ogg'/><category term='wifi'/><category term='vmware'/><category term='studies'/><category term='webcam'/><category term='humour'/><category term='tmdtc'/><category term='cloud'/><category term='linspire'/><category term='experiment'/><category term='bash'/><category term='multimedia'/><category term='vlc'/><category term='beta'/><category term='mvc'/><category term='uploadforme'/><category term='ez publish'/><category term='maemo'/><category term='hplip'/><category term='asterisk'/><category term='windowmanager'/><category term='interview'/><category term='photo'/><category term='report'/><category term='dns'/><category term='flickr'/><category term='n810'/><category term='cpartyeu'/><category term='linuxworld'/><category term='arora'/><category term='lyx'/><category term='ubuntu'/><category term='defcon'/><category term='trackback'/><category term='extjs'/><category term='stupid'/><category term='hp'/><category term='google'/><category term='screencast'/><category term='oz'/><category term='ruby'/><category term='yui'/><category term='media'/><category term='yahoo'/><category term='javascript'/><category term='darts'/><category term='ec2'/><category term='mailing'/><category term='taktiki'/><category term='perl'/><category term='quote'/><category term='christmas'/><category term='github'/><category term='lapremiere'/><category term='helma'/><category term='codecs'/><category term='jekyll'/><category term='nl'/><category term='announcement'/><category term='webkit'/><category term='nokia'/><category term='opensource'/><category term='cms'/><category term='jetty'/><category term='amazon'/><category term='browser'/><category term='script'/><category term='gimp'/><category term='imagemagick'/><category term='ivr'/><category term='pipes'/><category term='gandi'/><category term='usability'/><category term='anecdote'/><category term='googlereader'/><category term='linux'/><category term='gunther'/><category term='hack'/><category term='krita'/><category term='smugmug'/><category term='php'/><category term='ajax'/><category term='note'/><category term='howto'/><category term='stumpwm'/><category term='politics'/><category term='phobos'/><category term='streaming'/><category term='voip'/><category term='ssh'/><category term='music'/><category term='lisp'/><category term='backups'/><category term='activities'/><category term='deezer'/><category term='xmonad'/><category term='learn'/><category term='ie'/><category term='rem'/><category term='netbeans'/><category term='tip'/><category term='fr'/><category term='exim'/><category term='rtbf'/><category term='ion'/><category term='jwt'/><category term='twitter'/><category term='slideshow'/><category term='search'/><category term='microsoft'/><category term='foss'/><category term='mozilla'/><category term='qt'/><category term='jruby'/><category term='virtualisation'/><category term='capistrano'/><category term='questions'/><category term='management'/><title type='text'>Comments on Raphinou's blog: Generate a random string in Clojure</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.raphinou.com/feeds/7565903757477113910/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default'/><link rel='alternate' type='text/html' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html'/><author><name>raphinou</name><uri>http://www.blogger.com/profile/10541528354162666577</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6580088942610704648.post-8229063160867211446</id><published>2011-05-25T08:30:53.884+02:00</published><updated>2011-05-25T08:30:53.884+02:00</updated><title type='text'>This is my version:

(defn random-string [length]
...</title><content type='html'>This is my version:&lt;br /&gt;&lt;br /&gt;(defn random-string [length]&lt;br /&gt;  (let [ascii-codes (concat (range 48 58) (range 66 91) (range 97 123))]&lt;br /&gt;    (apply str (repeatedly length #(char (rand-nth ascii-codes))))))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/8229063160867211446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/8229063160867211446'/><link rel='alternate' type='text/html' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html?showComment=1306305053884#c8229063160867211446' title=''/><author><name>Filip</name><uri>http://www.blogger.com/profile/03794005480738237424</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html' ref='tag:blogger.com,1999:blog-6580088942610704648.post-7565903757477113910' source='http://www.blogger.com/feeds/6580088942610704648/posts/default/7565903757477113910' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-190733180'/></entry><entry><id>tag:blogger.com,1999:blog-6580088942610704648.post-1378362893972253136</id><published>2011-05-25T08:30:36.599+02:00</published><updated>2011-05-25T08:30:36.599+02:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/1378362893972253136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/1378362893972253136'/><author><name>Filip</name><uri>http://www.blogger.com/profile/03794005480738237424</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html' ref='tag:blogger.com,1999:blog-6580088942610704648.post-7565903757477113910' source='http://www.blogger.com/feeds/6580088942610704648/posts/default/7565903757477113910' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-190733180'/></entry><entry><id>tag:blogger.com,1999:blog-6580088942610704648.post-2179518048542271226</id><published>2011-01-13T09:25:32.382+01:00</published><updated>2011-01-13T09:25:32.382+01:00</updated><title type='text'>Yeah, now we can use rand-nth, but this function w...</title><content type='html'>Yeah, now we can use rand-nth, but this function wasn&amp;#39;t around when I first commented.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/2179518048542271226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/2179518048542271226'/><link rel='alternate' type='text/html' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html?showComment=1294907132382#c2179518048542271226' title=''/><author><name>Jeff</name><uri>http://www.blogger.com/profile/03072242299988314846</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html' ref='tag:blogger.com,1999:blog-6580088942610704648.post-7565903757477113910' source='http://www.blogger.com/feeds/6580088942610704648/posts/default/7565903757477113910' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1683390521'/></entry><entry><id>tag:blogger.com,1999:blog-6580088942610704648.post-4784845966287063939</id><published>2011-01-13T03:31:43.841+01:00</published><updated>2011-01-13T03:31:43.841+01:00</updated><title type='text'>Jeff, your random-char function could be simplifie...</title><content type='html'>Jeff, your random-char function could be simplified like this:&lt;br /&gt;&lt;br /&gt;(defn random-char []&lt;br /&gt;(random-nth VALID-CHARS))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/4784845966287063939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/4784845966287063939'/><link rel='alternate' type='text/html' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html?showComment=1294885903841#c4784845966287063939' title=''/><author><name>Topher</name><uri>http://www.blogger.com/profile/05140396398622610188</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html' ref='tag:blogger.com,1999:blog-6580088942610704648.post-7565903757477113910' source='http://www.blogger.com/feeds/6580088942610704648/posts/default/7565903757477113910' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-227401870'/></entry><entry><id>tag:blogger.com,1999:blog-6580088942610704648.post-7154307476667744694</id><published>2010-08-05T23:57:45.066+02:00</published><updated>2010-08-05T23:57:45.066+02:00</updated><title type='text'>Jeff, I think you meant:

(range 65 91) ; A-Z

Don...</title><content type='html'>Jeff, I think you meant:&lt;br /&gt;&lt;br /&gt;(range 65 91) ; A-Z&lt;br /&gt;&lt;br /&gt;Don&amp;#39;t want to forget A!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/7154307476667744694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/7154307476667744694'/><link rel='alternate' type='text/html' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html?showComment=1281045465066#c7154307476667744694' title=''/><author><name>Aaron B. Iba</name><uri>http://www.blogger.com/profile/07997792533986629803</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='http://4.bp.blogspot.com/_fbJZL_SEIPs/SzfzPPyOkZI/AAAAAAAAAgw/zjiQ8RCfAY8/S220/CRW_9444.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html' ref='tag:blogger.com,1999:blog-6580088942610704648.post-7565903757477113910' source='http://www.blogger.com/feeds/6580088942610704648/posts/default/7565903757477113910' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1064810880'/></entry><entry><id>tag:blogger.com,1999:blog-6580088942610704648.post-1919945157121589089</id><published>2009-05-02T13:41:00.000+02:00</published><updated>2009-05-02T13:41:00.000+02:00</updated><title type='text'>A slightly modified version, without using Java's ...</title><content type='html'>A slightly modified version, without using Java's random and with corrected ranges for the characters.  (Annoying that blogger won't allow code or pre tags...)&lt;br /&gt;&lt;br /&gt;(def VALID-CHARS&lt;br /&gt;   (map char (concat (range 48 58)     ; 0-9&lt;br /&gt;                     (range 66 91)     ; A-Z&lt;br /&gt;                     (range 97 123)))) ; a-z&lt;br /&gt;&lt;br /&gt;(defn random-char []&lt;br /&gt;  (nth VALID-CHARS (rand (count VALID-CHARS))))&lt;br /&gt;&lt;br /&gt;(defn random-str [length]&lt;br /&gt;  (apply str (take length (repeatedly random-char))))</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/1919945157121589089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6580088942610704648/7565903757477113910/comments/default/1919945157121589089'/><link rel='alternate' type='text/html' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html?showComment=1241264460000#c1919945157121589089' title=''/><author><name>Jeff</name><uri>http://www.blogger.com/profile/03072242299988314846</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.raphinou.com/2009/03/generate-random-string-in-clojure.html' ref='tag:blogger.com,1999:blog-6580088942610704648.post-7565903757477113910' source='http://www.blogger.com/feeds/6580088942610704648/posts/default/7565903757477113910' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1683390521'/></entry></feed>
