From: Dylan Lloyd Date: Wed, 23 Mar 2011 02:08:04 +0000 (-0400) Subject: Moved projects/ out of repo. X-Git-Url: https://disinclined.org/git/?a=commitdiff_plain;h=75e132f05e9b46a388c2ca3a23e30e57e9d9bc3f;p=dylansserver.git Moved projects/ out of repo. I don't really know why I was versioning these, it doesn't seem appropriate, I wan't to be able to easily change them. --- diff --git a/projects/drawcss.html b/projects/drawcss.html deleted file mode 100644 index e5f8bdd..0000000 --- a/projects/drawcss.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

drawcss

writing markup for website wireframes - always seemed silly.
- -
- this is a tool to draw them (it's not done).
-
- check - out the invisible elements this page is built on.
-
- then get the - code.
- -
diff --git a/projects/i_like_pandora.html b/projects/i_like_pandora.html deleted file mode 100644 index 0a615cc..0000000 --- a/projects/i_like_pandora.html +++ /dev/null @@ -1,17 +0,0 @@ -
-

i_like_pandora

searches - youtube for what you - like on pandora.
- -
- then it downloads the first video.
-
- it's working, but i'm still making it better.
-
-
- the code is free (as in freedom), here.
- -
-
diff --git a/projects/peepshow.html b/projects/peepshow.html deleted file mode 100644 index 08156c5..0000000 --- a/projects/peepshow.html +++ /dev/null @@ -1,16 +0,0 @@ -
-

foxy-addons/

- -

peepshow

a - firefox - addon, to load linked images inline (like on reddit).
- -
- here's the repo - for the source code.
-
diff --git a/projects/readoo.html b/projects/readoo.html deleted file mode 100644 index 1c1919c..0000000 --- a/projects/readoo.html +++ /dev/null @@ -1,13 +0,0 @@ -
-

readoo

helps - you find search keywords to target.
-
- it reads your IIS logs, and finds successful keywords - worth focusing on.
-
- it's not done yet! here's the source - code.
- -
diff --git a/projects/repthis.html b/projects/repthis.html deleted file mode 100644 index c395d49..0000000 --- a/projects/repthis.html +++ /dev/null @@ -1,17 +0,0 @@ -
- 3D printing is a form of additive - manufacturing technology where a three dimensional object - is created by successive layers of material. [1]:http://en.wikipedia.org/wiki/3D_printing
- -
- reprap is a free - - desktop 3D printer capable of printing plastic - objects.
-
- repthis.info is the - account of a friend and I learning to build our own.
-
-
diff --git a/projects/youtube_backup.html b/projects/youtube_backup.html deleted file mode 100644 index 8f7767e..0000000 --- a/projects/youtube_backup.html +++ /dev/null @@ -1,16 +0,0 @@ -
- -

youtube_backup

backs - up all the youtube - videos in a users favorites list.
-
- this is my fork of the original - youtube_backup which adds asynchronous alerts after - successful downloads.
-
- - it's written in python.
-
diff --git a/publish_projects.py b/publish_projects.py index 7e5535c..6e538d9 100755 --- a/publish_projects.py +++ b/publish_projects.py @@ -1,5 +1,7 @@ #!/usr/bin/python +PROJECTS_DIRECTORY = '/home/dylan/docs/projects' + import os import time import MySQLdb as db @@ -11,10 +13,9 @@ domain = config.get('database', 'domain') user = config.get('database', 'user') password = config.get('database', 'password').replace('"', '') database = config.get('database', 'database') -print domain, user, password, database cursor = db.connect(domain, user, password, database).cursor() -notes = os.listdir('projects') +notes = os.listdir(PROJECTS_DIRECTORY) sql = "SELECT title FROM projects" cursor.execute(sql) @@ -25,7 +26,7 @@ for row in results: for note in notes: title = note[:note.index('.')] - f = open(os.path.join('projects', note)) + f = open(os.path.join(PROJECTS_DIRECTORY, note)) if title in existing_titles: continue text = f.read() cursor.execute("INSERT INTO projects (title, text)\