Friday, November 30, 2012

Working With Classes: Accessor, Mutator

This weeks lab involved working with 3 separate classes.  I'm excited about this lab because it worked out perfectly for me in the end and the lab itself was fun.  The goal of this project was to create a program that would ask for input for 3 different pets that included the name, weight, length, and date born  then print all of the results.  The main class referred to the pet class to set the name, weight, and length.  The pet class in turn refers to the date class to set the date of birth.


Sunday, November 25, 2012


I'm not that good at photoshop, but this turned out decent.  Using this for work.

Saturday, November 24, 2012

Thanksgiving!


It's Thanksgiving break which means no school and no javascript lab updates!!  Just enjoying the weekend with family, working, playing Halo 4 and getting back into MMO's.  Also watching some anime like Sword Art Online, GTO, Psycho Pass, and Code Breaker.

Next week I have a few things on my plate, between registering for classes and joining a computer club at the college.

Wednesday, November 21, 2012

Less school means more work and more money in my pocket!  Working on some video editing for a FAQ's/Help page for my works website.  Also installing Planet Side 2 which just officially launched and is F2P!

Tuesday, November 20, 2012

Mostly for my own record later today when I'm out of work; I want to watch this movie.

http://www.imdb.com/title/tt0159784/

Music to Program to



Been playing a lot of Halo 4 these last few days (well as much as I can squeeze in).  This game, like the past Halos, still has the greatest soundtrack ever.

Sunday, November 18, 2012


Running Backtrack 5 on a phone!  This is hella awesome.  I was running an update on r3 and noticed some packages for android so I started googling and it looks like this is a thing.  Now if only the hardware were a little more powerful on say my tablet, then I'd run this all the time.

Saturday, November 17, 2012

Arg Linux is sooooo frustrating sometimes!  Trying to get my brothers wireless card working over the phone took forever and we still didn't get it going.  I think it's a drivers issue, but the commands to view the hardware just weren't working...


    It looks like an old favorite torrent website is coming back online.  Demonoid went down early this year and everyone thought they were one of a few torrent sites to get closed down.  Now their trackers are back online and on a new host in Hong Kong.  The website isn't up yet though.

Here's the link to the news article I read.
http://torrentfreak.com/demonoid-is-back-bittorrent-tracker-is-now-online-121112/


Friday, November 16, 2012

Working With Classes

Finally finished my lab from yesterday and turned it in.  Here's the code from the two files.  I have a main java file and a sub java file that holds all of the operations.  The prime number may not be perfect in the sub file, but the logic is there.

There's also a menu that's called to choose what operation what you want done.

Host Name for Your Home Address

I've used VPN's for the longest time, whether for gaming with friends or accessing files off my home machine.  I've always relied on Hamachi to create a mesh network for the VPN, because the home IP address is never the same and makes it difficult when using a program like OpenVpn.

My coworker forwarded me to this free service http://www.no-ip.com that dynamically updates your ip address in your DNS so that you can point to a host name and always connect to your home computer no matter what your IP address is.

I don't think my roommates will it to much when my friends connect through our internet connection to game over VPN, but they'll live haha.  Can't be any worse than when they/roommates torrent all night.

Which Came First?

Found this on tumblr and thought it was funny.  This'll break your program btw.


“function chicken() {
return egg();
}
function egg() {
return chicken();
}
print(chicken() + ” came first.”);”

Super Informative

I've been messing with a lot of code that is over my head atm.  My main goal has been to take data from a table generated in asp and move it into a cookie when I click a button.  That cookie can then be read into another table/form, ie shopping cart.  Looking through example code, there are a lot of things I don't have a grasp on.

This site was hella informative.  It has a breakdown of a lot of the things I needed help understanding in javascript.

Refresh Button for the Table Search and Filter

Here's the bit of code that I took from the Table Search and Filter (http://cscstud.blogspot.com/2012/11/javascript-search-and-filter-table.html#more)  post, that'll refresh the table.  It may not be too pretty and it probably shows that I don't have the greatest understanding, but it works.  Just add this bit inside the <script> tags you already have for the search & filter and create a button that refers back to it inside a div tag or table.  Also if you haven't already, make sure to add the onload="tableSearch.init(); to your body tag.


Thursday, November 15, 2012

Rack Server

In the process of building a rack server at work.  We're much further along in our setup now, 2 weekends away from being able to switch over to this server.  This pic is from weekend #2.



Life: In One Picture


Javascript Search and Filter Table

The below code is not my own work.  I found it highly useful and beautifully coded, if you ever want to search for a keyword in a designated table and filter out the rest of the results.

I was able to take a piece of the code and add a refresh button.  I'll post that later when I get into work tomorrow.

update

Working on classes next.  They're due tomorrow night around 12 so I'll post it here as well.

Javascript Sub Routines Part 2

Unfortunately the code below doesn't totally work. I got mixed up and I ran out of time to fix my errors. But you can sort of see the logic (sort of) behind the code.


Javascript Sub Routines Part 1


Javascript Working With an Array


Javascript Document Read and Write


Javascript Nested While Loops


Javascript Working With While Loops Part 2


Javascript Working With While Loops


Hello World

I'm a computer science major at Sacramento State in CA.  I'm currently a junior but taking entry level computer courses due to previous classes not being transferable.

I'm currently taking CSC 15 which is an entry level class for Javascript.  I save a lot of the coding I do in my google docs so that I can go back and check out previous examples and/or admire how much better I've gotten at coding.  I decided that I tend to go on the net a lot to look up coding examples and that helps me out both in school and at the job.

So I've decided to start this blog and share my computer science experience.  Maybe the code I do (however basic or not) will help another person just as much as other people's code has helped me.