Where is time kept? In the hands of a clock? Or in the heart?

So I started writing this a few days ago but never really finished it. Now I have a few min while this video renders so I can finish it.

A few days ago I had some lunch with my ex. We haven’t talked in person for over a year. The few times we have talked online were very brief. Anyway it was nice. It’s great to see how far each of us come from what we used to be. I wish her the best of luck with her being a chef.

I’ve been thinking about a lot recently. Not about her but about myself. Eh

The movie just finished rendering so I’ll have to finish this another day.

Twitter + XSS = Not Good

Just so everyone knows this post is going to be really techy.

Oh so there is/was this twitter xss problem over the last few days.  xss is cross site scripting, aka getting your own script to run on someone elses site.  It can be used for a ton of different things like getting passwords/spam and quite a few other things.

It seem’s like twitter’s problem was they weren’t sanitizing the data that they were given.  Twitter was made with RoR, something I havent used but im assuming there is something built in to sanitize data.  There is stuff in php that lets you strip html tags or you can make sure its encapsulated in a string.

Anyway here are links to the different versions of the js that was used.  They give greate insight into how these things work.  First versionLast version (at the time of writing).  Anyway i’ve never wrote any js before.  I’ve done java though so a lot of that makes sense.  I can walk through most of it and explain what is going on.

If your wondering how it spreads just by viewing somone’s tweets check out either line 104 on the first version or line 108 on the last version.  That script is being inserted and being sent as html because it is not sanitized.

Pretty interesting.

hi

i’ve been meaning to post something here for a while, same goes for my website.  I found some old code that I wrote.  It was for a php script I was working on.  What it did was grab the list of files in a directory and generate thumbnails, if they didn’t already exist, and then display the thumbnails on a page with links to the full size images.  Anyway it was pretty interesting, I know how I could change it but I found something that I think is pretty interesting online that works for me.  Well its a php script also but this means I don’t have much code to write.

Anyway the reason I made this first thing was that I wanted to make a little photo site for pictures I take on my eyePhone.  The only way to get to my server would be FTP, at least if I wanted to be able to upload stuff from anywhere.  I found a neat-o eyePhone app to take care of that for me.

——————————————

I was going to make a tumblr theme for this site but I realized I suck at design.  I should at least draw something out before I fiddle around with CSS.  Oh well, sometime soon maybe.

——————————————

I realized that I never really talk about myself/feelings/whateverthefuckelse, 99% of the time.

——————————————

My sister, her BF, and their dog are still living here.  It’s weird.  I have to keep the dog out of my room so he doesnt take/eat anything.  I don’t really get to watch tv, I dvr all my shows and watch them back a few days later when I can actually use the tv.  They still haven’t given me back one of my dvd’s and they borrowed it a few weeks ago.  This is just really annoying.

Beta two

Came out today. Means I have a 2gb download when I get home.

Visual studio 2008 pro on windows 7. Doing a c++ lab for class. About 1/2 way done writing with all the tests. Prob looking at 1-2 hr to finish them. And prob another 1-2 hr to cleanup / make stuff better.

Visual studio 2008 pro on windows 7. Doing a c++ lab for class. About 1/2 way done writing with all the tests. Prob looking at 1-2 hr to finish them. And prob another 1-2 hr to cleanup / make stuff better.

Core Data, it works

So after fooling around for 2 hours I was able to get the data to store in core data.  Wow it makes the code a lot easier to read but mine is a mess right now.  I’ll probably re-write the app knowing what I know right now.  It shouldnt be that hard starting over, it’ll prob take me a few hours for everything (think upwards of 4 hr).  I’ll probably start that re-write thursday.  I’m pretty busy with school stuff until then, exam’s and two labs.

I’ve got to say I’m having a blast working on this app.  It reminds me of when I wrote that facebook app (yes I know it needs to be updated).

From sqlite to…

CoreData. http://developer.apple.com/macosx/coredata.html

I’m making a branch of where I am at currently so I can always go back.  This is going to be crazy but it looks simpler than sqlite.

oh btw, niftystopwatch.com is going out for an hour b/c of earth hour.

I should have tried this sooner

So i’m working on this app.  Well i’m reading some tutorials on using an sqlite db to store the data.  The sql stuff is easy considering I set up my own little db scructure for my facebook app.  So i have this code in to get what I need done.  grabing a row from the db and displaying it in a cell.  So i compile it and run it in the simulator and it crashes with an uncaught exception error.  I spend literally 30 minutes trying to figure it out.  I’m setting breakpoints and stepping through all the code to find that it is crashing on

[window addSubview:[navigationController view]];

So i’m like WTF?  Anyway come to realize im compiling it for OS 2.2.1 simulator and when i tried it on my phone thats what I had it set to.  I set it to 3.0 simulator and it works.  GG me.  I guess it uses some new stuff.  oh well it works now :P

So I understand most of the code that i’m using but I can’t actually sit down and write it all from scratch.  I don’t think that that’s a bad thing considering I just started playing with Objective-C like 3 days ago.