HOWTO: Setup an Aggregated RSS feed for your Friends using Google Reader

HOWTO: Setup an Aggregated RSS feed for your Friends using Google Reader

Lets say you have three friends, and you don’t really want to check all of there twitter, blogs, rss feeds all day long.

RSS Feeds:
http://danfolkes.com/index.php/feed/
http://twitter.com/statuses/user_timeline/17508497.rss
http://rss.slashdot.org/Slashdot/slashdot

  • What you do is open Google Reader (Part of a Google account.)
  • Add all of the feeds to it by selecting “Add a Subscription”
  • gread1

  • Go into the “Manage Subscriptions” page (link in lower left)
  • Now, click “Add to Folder” and Create New Folder for the item
  • gread21

  • Now add the rest of the feeds to that folder in the same fashion.
  • Now to refresh, Click “« Back to Google Reader” then “Manage Subscriptions”
  • Goto the “Folders and Tags” Tab (near Manage Subscriptions)
  • Select your new folder, and select Public from the “Change Sharing…” drop down list.
  • gread3

  • You should now have “View Public Page” button.
  • That page contains a nice looking aggregate HTML view and a rss feed related to the page that you can add to any feed reader.
  • Here are my links: HTML and RSS
  • I hope this helps someone! Leave comments if it did.

Started Using Git SCM For my Darkness is Spreading

So, I setup my own Git repo tonight. This is the exact order of my evening:

First,
I watched Linus Torvald rip all the other SCM’s a new one here:
http://www.youtube.com/watch?v=4XpnKHJAok8

Then I watched,
Emerging Tech Talk #24 – Learning Git, Part 1 – Introduction to Version
Emerging Tech Talk #25 – Learning Git, Part Two – Getting started with
24: http://www.youtube.com/watch?v=MLLkJ2rngk0
25: http://www.youtube.com/watch?v=dDJOb2wGLjY&NR=1

Then, I went to http://github.com/ and setup my own public git repository.
(you can make it private, if you pay. but who would want to do that? viva la open source!)

Then I setup a clone of my Darkness is Spreading Game (dis-game):
Public Clone URL: git://github.com/danfolkes/dis-game.git
Github Home Page: http://github.com/danfolkes/dis-game/tree/master

I want to thank github for making things so awesome and easy to setup. They seem to really know a lot about helping n00bs.

Taken from their homepage:

Not only is Git the new hotness, it’s a fast, efficient, distributed version control system ideal for the collaborative development of software.

GitHub is the easiest (and prettiest) way to participate in that collaboration: fork projects, send pull requests, monitor development, all with ease.

AspDotNetStorefront – Changing Max File Upload Size

In Asp.Net StoreFront – You can change it by editing the file here:

/RadControls/Editor/ConfigFile.xml
Properties:
MaxImageSize
MaxFlashSize
MaxMediaSize
MaxDocumentSize
MaxTemplateSize

Who wants 2K images anyway!

Set them to a higher or lower value depending on what you need to happen.

Clickonce – Unable to Sign Application

I get this error when I try and publish the Click-Once project in .Net:

Cannot publish because a project failed to build.
SignTool reported an error ‘Failed to sign bin\Debug

Here is the Fix:

  1. Go to the properties of the project.
  2. Go to “Signing”
  3. “Create Test Certificate”
  4. Dont bother with a password
  5. Save
  6. Re-Publish

-Do this to all the projects in the solution.

This should fix the error and get you ClickOnce Publishing again.

Python: Grab Email from Gmail and Insert into MySql Database

This script will:

  • Log into Gmail Pop
  • Read the email
  • Delete the read email
  • Insert the email’s text into a MySql database
  • Sleep for 1800 seconds, and repeat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
try:
        import poplib, sys, time
        import string, random
        import StringIO, rfc822
        import datetime
        SERVER = "pop.gmail.com"
        USER  = "gmailusername"
        PASSWORD = "gmailpassword"
        i = 0;
        print """
        |------------------------------------------|
        |  This is a python program that checks a  |
        |  POP account and if there is a message,  |
        |  it adds it to the SQL server.           |
        |------------------------------------------|
                  by: Daniel Folkes
                         email: [email protected]
 
        (every 180 seconds)
        Checking POP server....
"""
        while 1:
                try:
                        server = poplib.POP3_SSL(SERVER, 995)
                        server.user(USER)
                        server.pass_(PASSWORD)
                except:
                        print "error setting up server."
 
 
                resp, items, octets = server.list()
                # download a random message
                try:
                        id, size = string.split(items[0])
                        resp, text, octets = server.retr(id)
 
                        text = string.join(text, "\n")
                        file = StringIO.StringIO(text)
                        note = ""
                        name = ""
                        message = rfc822.Message(file)
                        for k, v in message.items():
                                if k=='from':
                                                name = v[:12]
                        note = message.fp.read()[:50]
                        print "note: ", note
                        server.dele(1) #this will delete the message after you read it
                        server.quit()
                #-------------------------------------------
                        if note !="":
                                import MySQLdb
                                db = MySQLdb.connect(host="localhost", user="USERNAME", passwd="PASSWORD",db="DATABASENAME")
 
                                cur2 = db.cursor()
                                if name:
                                        cur2.execute("INSERT INTO note (note, name) VALUES (%s, %s)", (note, name))
                                else:
                                        cur2.execute("INSERT INTO note (note) VALUES (%s)", (note))
                except:
                        i+=1
                        #print "Unexpected error:", sys.exc_info()[0]
                        time.sleep(1800)
except:
        print "Failed Unexpectedly"

Min-Height CSS Hack – Height – Minheight – IE – FF – Minimum

1
2
3
4
5
selection {
  min-height:450px;
  height:auto !important;
  height:450px;
}

This code will give min-height to all browsers. IE, FF, Opera, Safari and more.
Continue reading “Min-Height CSS Hack – Height – Minheight – IE – FF – Minimum”

Darkness is Spreading – Backstory – Game – How to Play

BACK STORY

In the year 2920, the Golden Age of Psionics is unlocking worlds of
possibilities for humankind. The psionically gifted are recruited at
a young age to participate in the Planetary Defense Force’s psi-ops
program, where their talents are honed through
cybernetically-interactive mind games. These games can reprogram the
trainees’ subconscious minds for optimal psionic output, all in
parallel with the conscious effort toward solving the puzzle.

DARKNESS IS SPREADING
Continue reading “Darkness is Spreading – Backstory – Game – How to Play”

CoreLaborate – Document Elaboration on the Core Formats

Document Elaboration on the Core Formats
Document Elaboration on the Core Formats

A site I created so that collaborating on Photoshop, Illustrator, GIMP, SVG files would be easier. All of those binary formats that are complicated to share and elaborate on.

I hope this is helpful to many people. Especially in the Open Source world.

Supports: PSD,AI,PDF,XCF,SVG.

Thanks,
Daniel Folkes

DiS – Darkness is Spreading Version 08.1218

A new version of DiS – Darkness is Spreading Version is out. Version 08.1218

I have added a whole host of features. I wish I had a list, but I don’t!

Here’s a picture:

DiS - Darkness is Spreading Version 08.1218
DiS - Darkness is Spreading Version 08.1218

Here is the page on sourceforge:
http://dis-game.sourceforge.net/

Here is the Play page on sourceforge:
http://dis-game.sourceforge.net/play.php

DiS – Darkness is Spreading

dis - darkness is spreading

I coded this puzzle game that I now have hosted on Sourceforge here:
http://dis-game.sourceforge.net

It’s written in PHP and it is based off the game Flood-it. It takes the general principle and changes it some.

The levels are easily made and can be added pretty easily too.

I’d like to make a level editor, but that is defiantly for a later release.

Here is the plan:
-Make it look better
-Add Score
-Add Level Editor