Dǝve Derıso

This is pretty cool. Since CSS SUCKS at adjusting to screen size, I wrote a javascript app that basically forces certain divs to expand to the page size. Javascript is way more convenient for doing this because you can write functions to put specific constraints. As a result, the page is very flexible, and the home page behaves differently than the rest of the site. Check out the screenshots and look at the way the footer and body expand and contract. If the screen size is less than 730px, the body will contract a little. If the screen is bigger, as is the case these days, the footer fills the void. The home page drops the content down to the top of the footer, and again this relationship depends on the page size. The content pages, however, have a stable footer size, and the content is kept at the top of the page. Cool stuff, impossible though in CSS. Thank jeebus for java!

Here’s some example code of how flexible javascript can make CSS:

var myHeight = 0;  
if( typeof( window.innerHeight ) == 'number' )  
{ 	
 	//gets the height of the screen
 	myHeight = window.innerHeight;	 
}  
if (document.title == "Paulus Lab: Home") 
{ 	 	
 	if (myHeight > 730)
 	{
 	 	//this is how you control CSS div properties with java
 	 	document.getElementById('footer').style.height = myHeight - 437 + 'px';
 	 	document.getElementById('fLeft').style.height = myHeight - 437 + 'px';
 	 	document.getElementById('fRight').style.height = myHeight - 437 + 'px';
 	 	document.getElementById('footerBg').style.height = myHeight - 437 + 'px';
 		myHeight = 730; 	
 	} 
}

Credits for the window sizing script: here.

6 hours

This was the best gift I could have asked for. I perfected my matrix conversion function in R, now with dynamic variable assignment!! You can tell it works because it goes from FALSE to TRUE, as indicated by the screenshot. Sweet.
Been up all night workin on Dr. Marc Wittmann’s data. Sleepy.
Spent 2 hours today playing with Paulus site’s css. css can suck. Im compensating for its weaknesses with some javascripting.. 1 week in, and IT madness is going strong
Site:2 hours Marc’s Data: 7 hours!

This was the best gift I could have asked for. I perfected my matrix conversion function in R, now with dynamic variable assignment!! You can tell it works because it goes from FALSE to TRUE, as indicated by the screenshot. Sweet.

Been up all night workin on Dr. Marc Wittmann’s data. Sleepy.

Spent 2 hours today playing with Paulus site’s css. css can suck. Im compensating for its weaknesses with some javascripting.. 1 week in, and IT madness is going strong

Site:2 hours
Marc’s Data: 7 hours!

Whew! This is my first fully php website. Its way cleaner and more efficient to use php. Each page renders the entire “theme” (all the links, images, css, html) in only 5 lines!! Now thats lightweight coding. I need to make the flash part next.

http://research.davidderiso.com/paulusweb/index.php

Worked on it over the past 2 days, which is about 10 hours..

IT Madness continues.
Here, I have spent the day designing the feel of the new website. It looks bad ass.
The chemical structures are for methamphetamine, lorazepam, and cocaine. Sweet.
The font is Agrafa-hairline. Its free at myfonts.com
…hundreds of revisions. Simple is difficult to achieve.
13 hours!

IT Madness continues.

Here, I have spent the day designing the feel of the new website. It looks bad ass.

The chemical structures are for methamphetamine, lorazepam, and cocaine. Sweet.

The font is Agrafa-hairline. Its free at myfonts.com

…hundreds of revisions. Simple is difficult to achieve.

13 hours!

Thats right, I stayed up all night. 839 lines of code later, I finished the php script that scores Zuckerman’s Sensation Seeking Scale (SSS). The SSS is a neat inventory that basically quantifies how gnarly you are. Zuckerman (1979) has a different percentile distribution because he had a different sample size, it was a different era, and he was in Europe. Dr. Paulus has resampled his inventory with 3000 people, in this era, and in California! So, the results that you get from this application are actually VERY good!!!!

Enjoy!

http://research.davidderiso.com/survey/

By the way, I’m apparently off the deep end of Sensation Seeking, I am in the 99.4th percentile. Swweet!

Here’s my data:

This took 9 hours and knocks off the second project I have completed for IT Madness!!

Sweeeeeeeet!!! Just fixed a ton of bugs and made it look awesomer.

Improvements:

  1. Wrote a flash webcam image uploader that automatically save the image from your webcam to the proper item in the database (AS3 kicks ass!!). This addressed the issue of how to allow anyone to put images in the database. This is sustainable, so when Im gone, the next guy can keep the database strong
  2. Resized columns, such as the Description column, so I can record more stuff, like IPs
  3. Improved the database updater GUI so its more user friendly
  4. Created an Iframe link on the lab’s site so people have access

Total of 13 hours!

Here’s the webcam uploader:

heres the actual database browser

heres the database updater (i designed it to look like a spreadsheet):

I just took my last final. It was online and it finished at 10pm. Whew! Now that its over, I have 2 full weeks to make things happen for the Paulus lab. Martin and Heather have given me so much, now is my time to give back.

Im usually up for 16 hours, I figure that 10 of those hours can now be devoted to IT and 6 of the remaining hours can be devoted to research, eating, and facebook.

Here are the projects I’ve come up with, and the time they will take. By December 31st, I want to accomplish ALL of this:

Finish IT Inventory Database: 12 hours

Finish Laptop System: 5 hours

Finish Facebook Survey: 5 hours

Rebuild Student Computer (fix IRQ conflicts): 5 hours

Rebuild Carolyn’s PC (super slow): 5 hours

Build HAL 9000 into a processing server: 6-10 hours

Clean Up Lab Wiki(s): 10 hours

New Lab Website/Design: 35 hours

Clean All Monitors in Lab: 2

Total hours: 89

I will blog about this as I go. Check under Tags: “Paulus IT”

Now, let’s get crazy! ….ready, …set, …go!

Designed By Dave Deriso © 2010