Friday, November 14, 2008

Class 8 - Threaded Blog


No authentication yet.

Code is in threadedblog directory.

Class 8 - Final Project Description

For my final project I would like to program a front end to allow a user to retrieve a specific subset of data from an extremely large data set containing tic-by-tic information about stock options. Ideally, this site would be used by myself and the faculty at NYU Stern, my place of employment. These screen shots show an existing website at Penn that functions as a frontend to a very large selection of data. My website would be a much simpler version this type of interface.



Saturday, November 8, 2008

Class 7 - Image Gallery


Man, this was hard and this is an ugly presentation of the assignment but hopefullly I'll have a chance to go back and spruce up the style a bit.

Code Files here

Implementation:

I used the $_SERVER php variable in the login.php and upload.php pages. I use it to test if a visitor to the page is already in the page and has clicked the submit button or if he/she is just coming to the page from somewhere else.

Example from login.php

if ($_SERVER["REQUEST_METHOD"] == "POST")


This code tests to see if the REQUEST_METHOD equals POST, i.e., was the submit button clicked on this page. If yes, the code inside the "if" block is executed which processes the login logic. If no, we know the user is just arriving to the page via normal methods, e.g., redirected to this page, and we show the XHTML and the login logic is not executed (until submit button clicked).

I used the php function shell_exec() to execute the bash commands "tail -6 | tac > images_reversed.txt". These commands lists the last 6 lines of the image.txt file and then reversed the order of the lines and redirected the output to a new file "images_reversed.txt"

Friday, October 31, 2008

Class 6 - ecommerce with php


I modified the ecommerce site by using php to make it easier show different content using the same website structure.

I created two versions of the site, i.e., the original and a another with a different sub category of products. I also improved the second version so that the "More Info" and "Buy Now" links do not change position depending on the size of the product info text. I used position: relative on containing product div then position:absolute for each of the links contained in that div.

Here is the code for both sites:
ecommerce1
ecommerce2

Wednesday, October 22, 2008

Class 5 - eCommerce site - Solved mouseout blinking problem


I was having this problem - every time I moved the mouse over an image. What happened is the prod info would start to flash back and forth from image to prod info.

I solved this problem by checking the position of the mouse and only reverting back to the image if the mouse coordinates moved outside the current thumb element.


Here is my code (the solution lies in the javascript).

ecommerce.html
ecommerce.css
ecommerce.js

Monday, October 13, 2008

Saturday, October 11, 2008

Class 3 - Personal Web Page

The assignment here was to create a personal web page.

Here is my wire frame and code.

personal_webpage_wire.html
personal_webpage_wire.css


Here is the finished website and code.

personal_website.html
personal_website.css