Thursday, March 29, 2012

Future of Education?

My brother is staying with me a couple days to get a feel for college life, and Purdue in general. He showed me this video this morning while we were waiting for one of his info sessions to start, and it's really interesting.


 

Sunday, March 25, 2012

Microsoft Embracing Decent Marketing

Back when IE9 came out, from a tech perspective it looked like Microsoft was finally putting in effort for the first time since IE6. It actually has decent support for standards, and is decently snappy on opening. That said, it didn't do much to change people's perspectives outside of actual web designers who work with it day in and day out. General techies still hate IE on principle, and general non technies still think the little E icon on the screen in "The Internet".

Seems like Microsoft has finally decided to try and change perception along with reality. I've been seeing this commercial on TV for a week now, and I finally looked it up online. It's quite good. Catchy song, pretty graphics. It almost makes me want to go use IE.


 

WordPress Update

So I'm trying to start a web design business with a friend, using WordPress. Over the past couple days, I've finally had a bunch of free time, so I've been reading a lot on how WordPress actually works. Turns out, Thesis is just a theme, not a tool to edit other themes. The only difference is that it's very easy to edit using checkboxes and things, without touching code. That's really the only benefit, that one pays 80 bucks for. 80 bucks, for every website. Or 160 for a dev license plus 40 per site. I really don't think it's worth it.

In fact paying for any premium theme to edit and resell to a client doesn't seem to be worth it. The real money is in MAKING the themes from scratch. And that's what I've been trying to figure out how to do. I've had limited success already though, actually. I went through a from scratch tutorial, and managed to create a whole new theme. Looks terrible, it's some white boxes with black borders. But it works, and it pulls the info from WordPress. Posts and pages. Then last night I built a nav bar with dropdown menus and added it, and it grabs the entries from WordPress successfully as well.

If I can get good at this, it's something I might switch over to focusing on full time. A prebuilt WordPress site goes for $700. A custom built one can run up to $1000-$2000. For personal sites. And when I get good, it won't take much longer to build it using WordPress than it does using static HTML, which means a couple weeks. Could certainly pay for my last semester. Sadly though, the URL I want if I ever started a company myself, 79 Design Co, is taken. 79design.com actually just got renewed, doesn't end until next march.
 

Thursday, March 22, 2012

What An Engineering Degree Gets You

Do you ever find yourself full after only eating half your meal, and want to be healthy and save the rest for later, but don't have clingy wrap? Well, the clever geniuses here in my head have found a solution! You will need:

Ziplock Baggy (x2):


Duct tape:


Scissors:


Food to save:


Step 1:
- Cut the bags down one side.


Step 2:
- Place one bag over one side of container.


Step 3:
- Place second bag over the other side.


Step 4:
- Wrap duct tape around to hold bags together


Step 5:
- Place covered container in refrigerator.


Now you can be healthy and eat less, and be more cost effective by making a can of chili last two meals. Success!
 

Wednesday, March 21, 2012

Will The Real Mitt Romney Please Stand Up

Saw this video today, and was amused, so I thought I'd share it with you all. Enjoy!


 

Monday, March 19, 2012

What Microsoft is Doing Wrong



Way back in August, I wrote an article discussing why Windows tablets have a chance. At the time, we’d seen images of the new Windows 8 operating system, and I predicted that Microsoft would offer transforming devices, which would use the new interface on tablets but move to full desktop Windows when plugged into a mouse and keyboard setup. I predicted that that extra capability to use full Windows would give Windows Tablets the ability to succeed where the iPad has failed, namely, enterprise.

Read my full article at TekGoblin.com.
 

Saturday, March 17, 2012

WordPress

When a friend came to me and wanted to start developing websites together, I was quite happy to oblige, because it gave me an excuse to hang out with said friend, and it would let me improve my mad web skillz. (Not to mention making a bit of money, which is never bad). Then she said we'd be using the WordPress.org software, and I was a wary. I'd never worked with it before, and I wasn't sure how it worked.

Most people know WordPress as a blog site, similar to Blogger (which powers this blog). However, that is Wordpress.com. WordPress.org is a different matter. Turns out that unlike Blogger, the underlying PHP for WordPress is open source, and WordPress.org offers it for free to people who want to host their own site.

According to above friend, we could use it, change the way it looks like a regular site, and sell it to the client. Unlike a site built with static HTML however, the client would then have a backend page to log into, where s/he could edit the content of each page.

Well damn, sounds great. So I download and install it on one of my sites, and then get it up. It looks nice under the default theme (themes let you change the look or the site), but I can't really figure out how to edit things. But that's okay, there's a program called Thesis that lets one edit themes more easily. So hopefully soon I shall be offering sites that allow easy editing. I'm a bit confused on what exactly it is, but we'll see as we go.
 

Wednesday, March 14, 2012

Mobile Thumbnail Gallery

A new site I'm starting work on is a personal website with the primary purpose of showing off the owner's artwork. She didn't indicate a desire for the website to work on mobile devices, but given that mobile is what I'm focusing heavily on right now, I'm going to create and offer that functionality just in case.

The main design of the gallery page will consist of two pieces. The first is a full gallery. This will be squares, 3 across the most narrow dimension, height or width depending on orientation. The key will be making them square, which will require javascript, because despite my CSS height proposal, no changes are likely to occur in the near future.

So, javascript will be used to set the height of the square thumbnail links. What about the images though? Will all be square? Probably not. And do we want to resize ahead of time so that the images loaded are all small thumbnails? It will require extra steps beforehand, but it will pay off in page-load time. Loading the entire image and jut resizing will work, but it will load much more slowly.

Right now my squares are just black, I'm trying to find some images to use for the moment in place of the real ones we don't have yet. We'll see what happens though.
 

Tuesday, March 13, 2012

Strippers

A friend of mine wants to take me to a strip club because she thinks it would be amusing, given I've never been to one. I really have no desire to go to a strip club though, and I was trying to describe way to another friend, who didn't really buy it (what hot blooded male wouldn't want to go to a strip club?). The reason behind is it not that I disprove of strip clubs or think they are morally wrong. It's that I'm greedy. Here's what I came up with to describe them:

Strip Clubs - They're like a going to a candy store and looking at all the great candy, then being told, you can't have any of it.

My friend laughed, and I agreed that that was a pretty humorous way of saying it, so I posted that as my Facebook status. And no sooner did that happen than I got a comment about how I'm treating women like objects. I disagree.

My friend's mistake was misunderstanding what the analogy relates to. Mistaking what the stripper is selling for the person underneath. What she is selling is her physical appearance. She's selling it on purpose, and the appearance IS an object. And that is what the joke is refering to. The candy is analogous to the object that is being sold, which is the physical appearance. Another analogy would be to a musician. I pay for the singer's music, not for the person underneath. I don't interact with the person underneath, there's no contact. All I hear is the singing. Just like all I see is the body.

I objectify the singer's music, I buy it. But no one protests. Yet when a woman (or a man!) wants to see their physical appearance instead of their voice, people talk about how it's objectifying them. It's not.
 

Monday, March 12, 2012

jQuery Efficiency

Over the summer I started working on a data table project, and in the end got it working entirely. But the code was bulky. Over the past 6 months I've learned a lot more about jQuery though, and so have been going back to old code and trying to rewrite it.

This particular code controls the hiding and showing of rows depending on what checkboxes a user clicks. About a month go I changed part of the code and reduced it's original 35KB down to 7KB. Now though I've gotten the rest updated, and it's 1.5KB. It's also much more flexible, because it can handle changes in the data without needing changes itself.

So just to show off, I present here the original, and the newest version.

New
Original

$(document).ready(function() {

  var course;

  $(":checkbox").click(function(event){

    course = "." + $(this).attr("id");

    if ( $(this).prop("checked") ) {

      $(course).css("display", "block");

      $(':checkbox:not(:checked)').each(function(){ $('div.'+ $(this).attr("id")).hide(); });

    }

    else {
      $(course).css("display", "none");

    }

  });

  $(':checkbox:not(:checked)').each(function(){ $('div.'+ $(this).attr("id")).hide(); });

});
$(document).ready(function()

{

  if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
  if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
  if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
  if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

  if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
  if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
  if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
  if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
  if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
  if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
  if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
  if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
  if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
  if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

  if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
  if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
  if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
  if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
  if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
  if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
  if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

  $("#sem_spring2009").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".aspring2009").css("display", "block");

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".aspring2009").css("display", "none");

    }

  });

  $("#sem_fall2010").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".bfall2010").css("display", "block");

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".bfall2010").css("display", "none");

    }

  });

  $("#sem_spring2011").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".cspring2011").css("display", "block");

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".cspring2011").css("display", "none");

    }

  });

  $("#sem_fall2011").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".dfall2011").css("display", "block");

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".dfall2011").css("display", "none");

    }

  });

/*************************************************************************************************/

/************************************* The class checkboxes **************************************/

/*************************************************************************************************/

  $("#class_CE331").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE331").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE331").css("display", "none");

    }

  });

  $("#class_MA266").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".MA266").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".MA266").css("display", "none");

    }

  });

  $("#class_CE203").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE203").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE203").css("display", "none");

    }

  });

  $("#class_CE340").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE340").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE340").css("display", "none");

    }

  });

  $("#class_CGT164").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CGT164").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CGT164").css("display", "none");

    }

  });

  $("#class_CE343").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE343").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE343").css("display", "none");

    }

  });

  $("#class_CE361").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE361").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE361").css("display", "none");

    }

  });

  $("#class_CE398").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE398").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE398").css("display", "none");

    }

  });

  $("#class_CE399").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE399").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE399").css("display", "none");

    }

  });

  $("#class_CE383").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".CE383").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#type_spreadsheet").prop("checked")) )  {$(".spreadsheet").css("display", "none");}
      if ( !($("#type_worddoc").prop("checked")) )      {$(".worddoc").css("display", "none");}
      if ( !($("#type_presentation").prop("checked")) ) {$(".presentation").css("display", "none");}
      if ( !($("#type_photoshop").prop("checked")) )    {$(".photoshop").css("display", "none");}
      if ( !($("#type_image").prop("checked")) )        {$(".image").css("display", "none");}
      if ( !($("#type_adobedoc").prop("checked")) )     {$(".adobedoc").css("display", "none");}
      if ( !($("#type_autocad").prop("checked")) )      {$(".autocad").css("display", "none");}

    }

    else {

      $(".CE383").css("display", "none");

    }

  });

/*************************************************************************************************/

/************************************ The file type checkboxes ***********************************/

/*************************************************************************************************/

  $("#type_spreadsheet").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".spreadsheet").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

    }

    else {

      $(".spreadsheet").css("display", "none");

    }

  });

  $("#type_worddoc").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".worddoc").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

    }

    else {

      $(".worddoc").css("display", "none");

    }

  });

  $("#type_presentation").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".presentation").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

    }

    else {

      $(".presentation").css("display", "none");

    }

  });

  $("#type_photoshop").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".photoshop").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

    }

    else {

      $(".photoshop").css("display", "none");

    }

  });

  $("#type_image").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".image").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}
    }

    else {

      $(".image").css("display", "none");

    }

  });

  $("#type_adobedoc").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".adobedoc").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

    }

    else {

      $(".adobedoc").css("display", "none");

    }

  });

  $("#type_autocad").click(function(event){

    if ( $(this).prop("checked") ) {

      $(".autocad").css("display", "block");

      if ( !($("#sem_spring2009").prop("checked")) ) {$(".aspring2009").css("display", "none");}
      if ( !($("#sem_fall2010").prop("checked")) )   {$(".bfall2010").css("display", "none");}
      if ( !($("#sem_spring2011").prop("checked")) ) {$(".cspring2011").css("display", "none");}
      if ( !($("#sem_fall2011").prop("checked")) )   {$(".dfall2011").css("display", "none");}

      if ( !($("#class_CE331").prop("checked")) )  {$(".CE331").css("display", "none");}
      if ( !($("#class_MA266").prop("checked")) )  {$(".MA266").css("display", "none");}
      if ( !($("#class_CE203").prop("checked")) )  {$(".CE203").css("display", "none");}
      if ( !($("#class_CE340").prop("checked")) )  {$(".CE340").css("display", "none");}
      if ( !($("#class_CGT164").prop("checked")) ) {$(".CGT164").css("display", "none");}
      if ( !($("#class_CE343").prop("checked")) )  {$(".CE343").css("display", "none");}
      if ( !($("#class_CE361").prop("checked")) )  {$(".CE361").css("display", "none");}
      if ( !($("#class_CE398").prop("checked")) )  {$(".CE398").css("display", "none");}
      if ( !($("#class_CE399").prop("checked")) )  {$(".CE399").css("display", "none");}
      if ( !($("#class_CE383").prop("checked")) )  {$(".CE383").css("display", "none");}

    }

    else {

      $(".autocad").css("display", "none");

    }

  });

});

The way that this was achieved is in two ways. The first is by making everything not dependent on clicking certain checkboxes. Instead of saying, when the user clicks checkbox A, hide row A, I say when the user clicks any checkbox, check the name of that checkbox, and hide that row. Then only one statement is needed instead of one for every checkbox.

Additionally, there is a line that hides all rows who's checkboxes aren't checked. This is useful if the user refreshes the page. But originally it was an if/then statement for every single checkbox, and now is a single line. I had to get help for that one, but the results are beautiful.

Thoughts? Comments? Could it be even BETTER? Let me know in the comments.
 

Tuesday, March 6, 2012

Dancing Violin

A friend shared this on Facebook, and I'm digging it. This lady can not only play great violin, but can dance while doing it. (She also does Cosplay in one of her videos O.O) Check it out!


 

Weekend Roadtrip

Last weekend I went down to Bloomington, IN, for a road trip. I have a friend who goes to IU, we stayed at her apartment.

We left Purdue Friday afternoon, and picked up one person from Indy on the way down. Got to IU in the evening, then went out to the bars until pretty late.

On Saturday, we explored the town and campus, including getting up on the roof of the tallest tower of the student union. And unlike Purdue's student union, this tower wasn't 3 stories tall, it was 9. We ended Saturday by going bowling. Pictures below!










 

Thursday, March 1, 2012

And Life Goes On

I had a strange afternoon yesterday, with nothing to do. I'd had a geotech exam in class, which canceled my geotech homework for this week. In Surveying, I was assigned a paper this week, which canceled any regular homework that that that. Bowling never has homework, and I'd just turned on the every-two-weeks homework for Construction. So, nothing to do.

Plus it was super warm out, but my bicycle still isn't working. Sort of like the world was teasing me with warm weather I couldn't use.

I ended up sitting down with a good (well, decent) book, and relaxed for the rest of the afternoon, before coming home and fiddling with Mass Effect, trying to get it working on my computer. It did work for a bit, but then overheated my computer. On the lowest settings.

It's okay though, because I'm tomorrow I'm gettin' out of this town. Going on a weekend vacation down to Bloomington, IN, to see some friends. In 4 years of college, this is the first weekend road trip I've ever taken, so I'm looking forward to it.