varying degrees of difficulty

May 2

Random Activity Stream Examples

Since I couldn't find a good set of activity stream examples I thought I would through some together based on the spec at http://activitystrea.ms/head/activity-schema.html.

 

Comment Example:

Badge Example:

Bookmark Example:

File / Attachment Example:

Group Example:

Note/Microblog Example:

Person Example:

Service Example:

General Uber Example:

May 31

Open Shift Express with Identity Cert project

I decided to test out openshift offering by redhat. It runs python via the wsgi framework approach. So I decided to try and deploy the Identity Cert project I'm working on.

After a couple changes in the application startup / library configuration based on PyToaster. I was ready to deploy. (Still need to incorporate the changes back into pytoaster project from identity cert for next projects I do, also some duplicate code cleanup)

Here is some of the steps I ended up having to do:

  • In identity cert project, grab a copy: git archive --format zip --output ~/temp/identitycert.zip master
  • Create project for open shift: rhc-create-app -a osidentitycert -t wsgi-3.2.1
  • cd osidentitycert
  • Add files from identity cert repo: unzip ~/temp/identitycert.zip
  • Resolve depends: ./bin/resolvedepends
  • Add everything: git add .
  • Commit all: git commit -m"initial commit"
  • Add to open shift: git push

So now its up at: http://osidentitycert-driedtoast.rhcloud.com/. App still needs a bit of work though. Now I have some motivation to complete it. Some gotchas I had to deal with:

  • Pathing of files, used os.path.dirname(__file__) to get abs paths
  • Debugging of app, have to download app via rhc-snapshot -a osidentitycert (which downloads a tar you look into appname/logs)
  • Forgot my url for testing it, used rhc-user-info to find it

Overall its still a bit clunky of a service, all command line (would be nice to have a little dashboard for quick url viewing) and debugging is a bit annoying.

Apr 1

Sketchbook pro for Android...

-1573925221

My first attempt, got to get used to drawing on a phone. Sketchbook from autodesk is probably the best drawing program I've used. Sort of painter meets a touch screen environment.

More to come as I get used to it.

Posted from Watkinsville, GA
Apr 1

Trying out android posterous

If this works well I might just start posting more on different things.
Posted from Watkinsville, GA
Mar 14

Started to paint again...

I'm playing around with a different style. Acrylic and sumi ink overlay.

Below is called solitude.

Picplz_20110315_00000994834_original

Feb 15

Workaround for NX Capslock problem

Create a script for your path, like so:

#!/bin/sh
xsendkeycode 66 1
xsendkeycode 66 0

and install lineakd (which contains the xsendkeycode).

Nov 9

Setting up the mac via command line

Thought I would try to play around with setting up a mac via the command line, based on http://commandlinemac.blogspot.com/2008/12/installing-dmg-application-from-co....  Hopefully it makes it easier to get a machine setup.

Here is the script:

Nov 9

simple ssh script fun

Just playing around with bash to make it a little easier to add keys to different servers.

Jul 1

Mac oddity - Terminal Fun 1

So I was looking at my files today via the terminal and noticed an @ sign next to one of the files. This is sort of odd since the file was just a text file and I downloaded it as part of an open source project.

Check it:

 

Notice the special apple command "ls -@" to show the details of what that @ means. It indicated extra metadata on the file. Thanks to Flester's blog on the post.

Some other details of the @ sign is over on mac hints.

I fixed it just by "cat changes.txt > newfile.txt; rm changes.txt; mv newfile.txt changes.txt".

May 20

Coffee Pot Protocol

Its been about 12 years since it was proposed, now where is the coffee pot protocol?

http://rfc.askapache.com/rfc2324/rfc2324.txt

I'm disappointed with the standard bodies on this one.

Get Updates

Tags