<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Thomas Pelletier - Latest Comments</title><link>http://kiznet.disqus.com/</link><description>A student's thoughts on CS</description><atom:link href="https://kiznet.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 07 Sep 2013 23:01:41 -0000</lastBuildDate><item><title>Re: Dijkstra&amp;#8217;s algorithm Python implementation</title><link>http://thomas.pelletier.im/2010/02/dijkstras-algorithm-python-implementation/#comment-1033950655</link><description>&lt;p&gt;if D[child_node] &amp;lt; D[node] + child_value: should be if D[child_node] &amp;gt; D[node] + child_value:&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zheng Ruan</dc:creator><pubDate>Sat, 07 Sep 2013 23:01:41 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-903820497</link><description>&lt;p&gt;Sorry, I don't know what's going on here. Maybe you can use the console to see if the system logs any interesting message about the failure.&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Tue, 21 May 2013 08:32:59 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-903633711</link><description>&lt;p&gt;Thx for the post, I'm backing up no problems. Where i run into a problem is when I try to do a system restore from a install disk. I'm doing a dry run so when I'm under the gun to restore my laptop I won't have the added stress of figuring this part out.  I can mount the afp share ( /Volumes/TimeMachine) and verify the sparsebundle is there (#ls TimeMachine) but the restore utility hangs at the searching for a backup disk window. Any hints or wisdom would be greatly appreciated&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kevin Mitchell</dc:creator><pubDate>Tue, 21 May 2013 01:02:07 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-879923215</link><description>&lt;p&gt;It should be fixed now. Apparently there is a recent bug in the software I use to generate the pages.&lt;/p&gt;&lt;p&gt;Sorry for the inconvenience!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Mon, 29 Apr 2013 17:39:00 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-857638666</link><description>&lt;p&gt;Something appears to be wrong with the html on your page. I can't see the text for the freebsd cmds. e.g. First, let's start by installing Netatalk (as root):&lt;br&gt;I get a blank line after this&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Johann </dc:creator><pubDate>Tue, 09 Apr 2013 11:02:04 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Git-based Django deployment</title><link>http://thomas.pelletier.im/2011/04/git-django-deployment/#comment-851280506</link><description>&lt;p&gt;I wasn't able to do a git pull from my server due to a security restriction, so I had to setup a bare repo and push to that then convert it to a non-bare repo via the instructions here &lt;a href="http://stackoverflow.com/questions/10637378/how-do-i-convert-a-bare-git-repository-into-a-normal-one-in-place/10637882#" rel="nofollow noopener" target="_blank" title="http://stackoverflow.com/questions/10637378/how-do-i-convert-a-bare-git-repository-into-a-normal-one-in-place/10637882#"&gt;http://stackoverflow.com/qu...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin Hamade</dc:creator><pubDate>Wed, 03 Apr 2013 20:01:35 -0000</pubDate></item><item><title>Re: Websocket + Tornado + Redis</title><link>http://thomas.pelletier.im/2010/08/websocket-tornado-redis/#comment-795440664</link><description>&lt;p&gt;New and update version (tested against redis 2.6.9) is available here: &lt;a href="https://gist.github.com/lbolla/4754600" rel="nofollow noopener" target="_blank" title="https://gist.github.com/lbolla/4754600"&gt;https://gist.github.com/lbo...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lorenzo Bolla</dc:creator><pubDate>Mon, 11 Feb 2013 09:14:30 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Switching to nanoc, and more</title><link>http://thomas.pelletier.im/2012/02/switching-to-nanoc/#comment-753233983</link><description>&lt;p&gt;"As you've configured sinatra it will only listen to localhost?"&lt;/p&gt;&lt;p&gt;That's correct: Nginx will forward the connections to the Sinatra app, so it does not need to listen on the outside.&lt;/p&gt;&lt;p&gt;Sorry for replying 3 months after.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Wed, 02 Jan 2013 08:18:45 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-739301461</link><description>&lt;p&gt;You don't need to do the steps under "On the client side" anymore with the most recent versions of OS X (tested under 10.8) and netatalk (tested under 2.2.3). Makes life a lot easier :)&lt;/p&gt;&lt;p&gt;It now created the .sparsebundle file all by itself. And apparently netatalk now presents itself as a supported network volume.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Xudonax</dc:creator><pubDate>Sun, 16 Dec 2012 16:14:13 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Switching to nanoc, and more</title><link>http://thomas.pelletier.im/2012/02/switching-to-nanoc/#comment-657839510</link><description>&lt;p&gt;Interesting write up. I was trying to create a simple deploy from github solution myself and ended up using a similar solution but for php. But I really like the sinatra solution and would like to switch. How did you solve the hook? As you've configured sinatra it will only listen to localhost?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">stenehall</dc:creator><pubDate>Fri, 21 Sep 2012 10:14:29 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-646291638</link><description>&lt;p&gt;I found this worked much better for me once I added these lines to /etc/rc.conf:&lt;/p&gt;&lt;p&gt;# And some more time machine&lt;br&gt;dbus_enable="YES"&lt;br&gt;avahi_daemon_enable="YES"&lt;/p&gt;&lt;p&gt;This was one freebsd9.0  -- not sure if dbus is needed, but I'll bet avahi_daemon_enable was.&lt;br&gt;I'd be able to defend these choices, if I could remember the website I got them from!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nat Howard</dc:creator><pubDate>Mon, 10 Sep 2012 20:33:13 -0000</pubDate></item><item><title>Re: Demi-finale au Prologin 2010</title><link>http://thomas.pelletier.im/2010/02/demi-finale-au-prologin-2010/#comment-623241268</link><description>&lt;p&gt;Forum Casio - Prologin 2012 par totoyo [b]Les Prologin sont des ... PAS aux messages privés concernant des problèmes avec la calculatrice.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Søgemaskineoptimering</dc:creator><pubDate>Sun, 19 Aug 2012 03:46:01 -0000</pubDate></item><item><title>Re: Écrire des maths sous Mac &amp;#8211; Thomas Pelletier</title><link>http://thomas.pelletier.im/2009/09/ecrire-des-maths-sous-mac/#comment-591845396</link><description>&lt;p&gt;Bonjour,&lt;br&gt;J'ai un problème avec pages, en fait lorsque j'insère une expression à partir de Mathtype, l interligne devient plus grand....de plus plus l'expression est longue plus l'image que j'insère est grande...du coup la mise en page n'est pas terrible ....&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">meryem </dc:creator><pubDate>Thu, 19 Jul 2012 06:05:40 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-500109411</link><description>&lt;p&gt;1/ No: this is the place on the server where the backup will be stored. &lt;br&gt;2/ Yep, you have to copy that file to the server. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Tue, 17 Apr 2012 15:57:58 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-500076350</link><description>&lt;p&gt;Thank you for the effort. Could you explain a bit more?&lt;/p&gt;&lt;p&gt;1. In your example, is the path "/home/thomas/tm/" meant as the source (to be backuped) on the client?&lt;br&gt;2. What is the aim of the "512 GB journaled HFS+ sparsebundle image"?Doesn't it need to be copied to the server?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bob Leers</dc:creator><pubDate>Tue, 17 Apr 2012 15:18:57 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Mixing Django Forms</title><link>http://thomas.pelletier.im/2011/09/mixing-django-forms/#comment-499921782</link><description>&lt;p&gt;Very nice solution! As for you remark concerning "hacking the framework", this could possibly be avoided by declaring your own ModelForm class, using the DeclarativeMetaclass; and have all your ModelForms subclass that (untested).&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Izz ad-Din Ruhulessin</dc:creator><pubDate>Tue, 17 Apr 2012 12:22:32 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Mixing Django Forms</title><link>http://thomas.pelletier.im/2011/09/mixing-django-forms/#comment-499918230</link><description>&lt;p&gt;Very nice solution! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Izz ad-Din Ruhulessin</dc:creator><pubDate>Tue, 17 Apr 2012 12:18:34 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Git-based Django deployment</title><link>http://thomas.pelletier.im/2011/04/git-django-deployment/#comment-499579167</link><description>&lt;p&gt;Okay, thanks. Everything is working fine now. :) How easily can I replicate this process on a VPS(like Linode)? (Given that, I have absolutely no previous experience in setting up servers)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Samrat Man Singh</dc:creator><pubDate>Tue, 17 Apr 2012 02:22:35 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Git-based Django deployment</title><link>http://thomas.pelletier.im/2011/04/git-django-deployment/#comment-499568574</link><description>&lt;p&gt;oh, I seem to have missed the --pid setting while running gunicorn. In think it'll work now. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Samrat Man Singh</dc:creator><pubDate>Tue, 17 Apr 2012 02:01:00 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Git-based Django deployment</title><link>http://thomas.pelletier.im/2011/04/git-django-deployment/#comment-499554291</link><description>&lt;p&gt;Thanks. `git push` is working now. But I'm still having trouble. DO i have to configure gunicorn to store the pid file in `var` or is it set to default? The script seems to have trouble killing the gunicorn process already running.&lt;/p&gt;&lt;p&gt;I'm trying to make this work with Flask instead of Django.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Samrat Man Singh</dc:creator><pubDate>Tue, 17 Apr 2012 01:31:15 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Git-based Django deployment</title><link>http://thomas.pelletier.im/2011/04/git-django-deployment/#comment-498769745</link><description>&lt;p&gt;You can use `localhost:2222` (2222 is the default ssh port to your Vagrant VM. You can check with `vagrant ssh-config`).&lt;/p&gt;&lt;p&gt;You can also set up a bridged interface [1] but I think it's quite cumbersome here.&lt;/p&gt;&lt;p&gt;[1] &lt;a href="http://vagrantup.com/docs/bridged_networking.html" rel="nofollow noopener" target="_blank" title="http://vagrantup.com/docs/bridged_networking.html"&gt;http://vagrantup.com/docs/b...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Mon, 16 Apr 2012 08:34:22 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Git-based Django deployment</title><link>http://thomas.pelletier.im/2011/04/git-django-deployment/#comment-498738081</link><description>&lt;p&gt;What should `yourserver` be when pushing to a Vagrant VM?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Samrat Man Singh</dc:creator><pubDate>Mon, 16 Apr 2012 07:16:51 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Switching to nanoc, and more</title><link>http://thomas.pelletier.im/2012/02/switching-to-nanoc/#comment-453686802</link><description>&lt;p&gt;Nice! I wasn't aware of this command.&lt;/p&gt;&lt;p&gt;However, I don't think I can use that: I use nanoc-cachebuster [1] to dynamically change the filenames of my static files for caching purpose. It is great but it has a major flaw: it does not create dependencies between files, so if I update a stylesheet and just compile the website, the URLs in the HTML files will remain unchanged (see [2]).&lt;/p&gt;&lt;p&gt;[1] &lt;a href="https://github.com/avdgaag/nanoc-cachebuster" rel="nofollow noopener" target="_blank" title="https://github.com/avdgaag/nanoc-cachebuster"&gt;https://github.com/avdgaag/...&lt;/a&gt;&lt;br&gt;[2] &lt;a href="https://github.com/avdgaag/nanoc-cachebuster/issues/6" rel="nofollow noopener" target="_blank" title="https://github.com/avdgaag/nanoc-cachebuster/issues/6"&gt;https://github.com/avdgaag/...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Thu, 01 Mar 2012 15:24:37 -0000</pubDate></item><item><title>Re: Thomas Pelletier | Switching to nanoc, and more</title><link>http://thomas.pelletier.im/2012/02/switching-to-nanoc/#comment-453671659</link><description>&lt;p&gt;Cool! You can use “nanoc prune” (new in 3.3) to remove irrelevant files from the output directory instead of nuking the output directory in its entirety. You can even auto-prune every time you compile, but I seem to have forgotten to document that. Take a look at this (part of config.yaml): &lt;a href="https://gist.github.com/1952764" rel="nofollow noopener" target="_blank" title="https://gist.github.com/1952764"&gt;https://gist.github.com/195...&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Denis Defreyne</dc:creator><pubDate>Thu, 01 Mar 2012 15:10:24 -0000</pubDate></item><item><title>Re: Thomas Pelletier | FreeBSD, AFP, Time Machine</title><link>http://thomas.pelletier.im/2012/01/freebsd-afp-timemachine-updated/#comment-442706549</link><description>&lt;p&gt;Thank you for your complement, I will add this to the post as soon as possible.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas Pelletier</dc:creator><pubDate>Sat, 18 Feb 2012 05:52:26 -0000</pubDate></item></channel></rss>