Choose Your Theme
Warren Shea

Archive for the ‘Development’ Category

What to learn? HTML5 or ASP.NET?

Monday, January 10th, 2011 at 4:00 pm

The CSS book that I’m currently reading is 350 pages. I’m currently on 230, having gone through 100 on Saturday…and the other 130 in the 2 weeks before -_-; I can accomplish so much in one night if I focus! :S

As I close in on the final 120 pages, which I hope to finish very soon, I’m wondering what to study next?

I decided that for my EPIC SITE, I may as well do it in ASP.NET 3.5/4 AND HTML 5 (not XHTML 1.0).

While the ASP.NET code would compile and render to XHTML 1.0, would that be HTML5 valid? I mean, if I built my site in HTML5, I would like it…y’know, in all HTML5, not HTML5 + ASP.NET compiled XHTML1.0/HTML 4.01.

I really like the look of <br />….<br > just looks wrong to me. It’s how I used to develop…but gave that up to be XHTML valid. Now, <br> is valid again in HTML5 so why do <br />? <br> is 2 characters smaller as well as just as easy to read as <br />

I really (and I wouldn’t be surprised if you thought this too) have a bad habit of procrastinating my ASP.NET learning. Like, did I really need to read a CSS book before ASP.NET? Should I really be reading a HTML5 book before studying a multiple-year resolve of studying ASP.NET?

I’m trying to learn both for my EPIC SITE but I imagine that the learning curve for ASP.NET is much higher than HTML5, with the exception of the canvas tag, which seems very daunting. Like learning ActionScript….bleh.

There’s so much to learn! Not that I’m under a strict time limit, everything is self-imposed…but it seems like if you don’t study frequently, it’s so easy to fall behind in technology. I’m already behind with my current skills…but at least I’m attempting to catch up. That’s leaps and bounds better than the progress from my recent, WoW years.

Turing and my 2001 Pokemon Game

Thursday, January 6th, 2011 at 10:35 pm

My UWaterloo friend was tweeting about her sibling learning Turing and needed help for it…
It’s been a while since I did Turing, about a decade but I literally did not touch the language for 10 years…and despite being a programming language, it’s really very different from anything I’ve done lately, ASP VB, C#, JavaScript, etc. It was pretty tough to look back and understand the code…

Anyways, in OAC, I did this Turing Pokemon game…I couldn’t get it to run for the last 10 years because
1. I didn’t have a turing compiler
2. My images are in a Turing image format, tm2, which is no longer supported (apparently). I was Googling this format and even in 2004, it was outdated -_-;

Anyways…for some reason, I spent the last 4~ hours making the program work. This involved making new .jpg images and learning Turing a bit again…sorta.

Anyways, here’s Turing compiler/executable and my game:

***** Turing_Pokemon_warrenshea.zip [7 MB] *****

Steps to run the program:
1. Extract the files to a directory.
2. Open Turing.exe
3. Open the file Pokemon.T


4. Run the program (F1) or press the Run button under FILE.

Use the keyboard and press 1, 2, or 3 depending on the options.

Screenshots:



Tips to win:
1. Don’t try to run from the fight. It’s a waste of a turn.
2. Use your “elemental ability” against an enemy who is weak to that element (ex. Lightning > Water)
3. In the last battle, your new ability >> any of your old abilities
4. It’s all about math and probability. You’ll win if you simply consistently attack using a normal attack unless you’re really unlucky.

Notes:
This game is pretty weak and probably below your expectations. It was developed in my second high school computer science course ever…at the time, I had only started learning about loops and conditional statements.

I love solving a good problem.

Sunday, November 28th, 2010 at 3:50 am

Not much to write about. I have been coding all night, from around 6pm-11pm in ASP classic, VB.
I couldn’t get this file upload thing to work.

It’s dumb, I should have written everything in ASP.NET C#…but 90% was already coded in ASP classic VB…so I tried to power through.

5 hours later with no success, and no wanting to recode everything in ASP.NET C# or ASP.NET VB, I decided to go with PHP.

30 minutes later and I had most of what I needed. I was so happy!

And then I ran into another bug. Skip forward 4 hours (to now)…and I have it solved :) And I’m feeling very good…it’s a good feeling, working on something, in this case, 10 hours….and finally solving the problem. Yourself. I mean, there’s the internet, but not asking friends/coworkers…and being able to do what you need.

I dunno…just really happy right now :)

I really wanted to spend this weekend reading. Reading my novel and reading a CSS book. But this was good, I learned a lot about PHP and have more code base to work with, and isn’t that what it’s all about? :)

 (\  /)
 ( . . )   – Warren’s Rabbit Post
c(“)(“)

Monday, November 22nd, 2010 at 9:49 pm

Came across something I did almost a year ago for/at work. I was testing the navigation to a site and for some reason, chose to make lot of ascii rabbits. Cute…but not very professional. Oh well =D

Ivan (i don’t even know who that is) liked them :)

Daily Ramblings….

Saturday, November 20th, 2010 at 2:35 am

I feel like I haven’t written in this blog in weeks but it’s only been….3 days!? O_O I think I have….blogging problems.

I was going to post last night about Jamie Oliver and the show I saw….but I was just insanely tired.




I read this on a friend of a friend’s wall. It’s awesome:

CS Problem: Given two strings, A and B, with length A > length B, write a function that returns true if all the characters in B are in A. Solution: Assign a prime number to each character in the alphabet. Take the different prime numbers in string A and multiply them together. Divide the result by each prime number in string B. At any time, if you get a remainder, return false. Craziest. Algorithm. Ever.




I was reading about the (non physical) differences between males and females. Differences in communication, attention to detail, positive and negative reinforcement…

I gotta say, I have some very typical feminine traits. It’s slightly disturbing.




This week has been busy, no time to blog, just so tired lately. I’ve been working my ass off on the tool I started earlier this week. It’s kool but the requirements keep going up and up….

I want to finish it ASAP…so I’m going to work on it over the weekend. It’s one of the more fun project I’ve had…I kinda wish I could read something new, .NET or HTML5 or my novel…but let’s face it, if I wanted to do that, I would be. And if I were gonna do that, I’d find something else to kill my time (like sleep or play games).

I actually enjoy development more than any of that. How very, very sad.