Archive for February, 2008

 

Flash with buttons:

This weeks assignment was to use flash along with the iPac. The iPac is a key board emmulator which is actually pretty simple to use. There is no hardware to be installed, its just simple plug into your computer and use.

THere are two serial plugs in the ipac which are labeled pass through and usb. Use the usb connection for the computer.

I made a really simple karaoke for children.

There is a small controller with two buttons which are used for navigation.Once the movie is played the music starts and the lyrics are navigated using the controller.

screen shot

code:

var myListener:Object = new Object();
Key.addListener(myListener);

// this funciton is called (executed) every time a key is pressed.
// notice that if your pc/mac has a Key-Repeate (like thissssssssssss), than this will be called on each repetition
myListener.onKeyDown = function ()
{
_root.abc.nextFrame();
trace (”You pressed a key.”);
}

myListener.isDown(Key.BACKSPACE)
{
_root.abc.prevFrame();
trace (”you are going backwards”);
}
// this function is called when a key is released
myListener.onKeyUp = function () {
trace (”*********You RELEASED a key*********”);
}

Posted by admin under Uncategorized  •  No Comments

ZiPic – midterm

Mid term concept:

ZIPIC

Text 41411 with the key word zipic and you will get a link https://itp.nyu.edu/~sp1650/mobilemedia/blogposting/zipic12_12.php

go to the link and upload a picture with the zip code and you will recieve pictures back with the same zip code which other users tagged and uploaded. Then you can go in search of those pictures when your in the area. The pics are also uploaded to the blog www.sp1650.wordpress.com .

Code issues:

  • Create a field in the data base to store the zip code , body and title
  • query the data base when the user inputs the zip code

if ($good_zip)
{
$mySql = sqlConnect();
$sql = “insert into mobile_me_messages (attachment, subject, body, from_name, from_domain, zip_code) values (
‘$uploadrelativefile’, ‘$title’, ‘$description’, ‘blah’, ‘blah’, ‘$zip_code’
)”;
mysql_query($sql);
}

$result = mysql_query(”SELECT subject, body, attachment, zip_code FROM mobile_me_messages WHERE zip_code=’$zip_code’”);
while($row = mysql_fetch_array($result))
{
echo “<img src=\”" . $row['attachment'] . “\”>”;
echo $row['body'];
//$post_body = $description.’<br /><br />’.”\n”.’<img src=”‘.$uploadfile_rel.’/>’;
echo “<br />”;
}

  • validate the zip code so the users can not enter fake zip codes

code :

$good_zip = false;

if (isset($_POST['zip_code']));
{
$zip_code = $_POST['zip_code'];

$result=ereg(”^[0-9]{5}”,$zip_code);
if(!($result))
{ echo “</br>”;
echo “</br>”;
echo “</br>”;
echo “Enter a Valid American Zip Code”;
}
else if((strlen($zip_code)<5)||(strlen($zip_code)>5))
{
echo(”Enter a Valid American Zip Code”);
}
else
{
$good_zip = true;
}

  • upload the pictures to the blog also
  • put the xml rpc files in the server
  • create a text mark account with the key word zipic so when a user texts zipic to 41411 they will get back the zipic link

zipic

In textmarks replace the ~with a %7e because ~ does not work in textmark.

Had alot of issues with php itself. The syntax was not easy to learn so looked at many online tutorials and many php books.

Posted by admin under Uncategorized  •  No Comments

Cleaning Interview:

Name of the interviewee: Confidential

Age: 28

Gender: Male

Profession: University Student

Address: Brooklyn, New York

Apartment type: Large Studio(about 750 sqr/ft) w/t 1 Bathroom

  1. How often do you clean? –> Every two or three weeks.
  2. When do you clean? –> When I realize that I need to put ‘it’ away.
  3. How long do you spend? –>
  4. Why do you clean? –> When someone is coming, I need to clean./When nothing else to do.(boredom)/Normally, I clean when I see ‘it’, however I am okay living with them because school is my top priority now.
  5. How do you know if something is clean? –> By comparing ‘Before & After’ look of my space.
  6. How do you feel when you are cleaning? –> Feel good from getting it done. But I don’t enjoy it, I rather see cleaning as a ‘task’. I mostly do it all at once.
  7. How do you feel when you are done cleaning? –>Good, as I said before. But if it’s too often, then there will be no feeling of ‘completion’.
  8. What do you like about cleaning? –>Feeling of after completion.(The answer repeats from #6.)
  9. What do you dislike about cleaning? –>Knowing that I’d have to do it again.
  10. What motivates you to start cleaning? –>(Similar as #4)In case other people are coming, I don’t want to let them down. I’d feel bad about it. And too much stuff makes me feel like ‘mental threshold’.
  11. How do you stay motivated to continue cleaning? –>Knowing that there will be a ‘finish’. Speed… the fact that it’s not done yet…etc.
  12. What is your favorite cleaning contraption? Why? –> ‘HANDS’! Sponge, Brooms, and a Swifer(w/t spray in front)
  13. What is your least favorite cleaning contraption? Why?–>‘DUSTER’ / Downey’s Laundry Ball – I find it ‘cumbersome’.
  14. Do you have a personal style of cleaning? Any rituals or traditions? Is there something that you do that no one else does? –>Admiring my ‘work’ afterwards. Being around the space I cleaned.
  15. What other activities do you engage in while you clean, if any? –> Music, phone call, (turning on) the lights…
  16. If i called you on the phone and asked you what you were doing and you said “cleaning” what might you be doing?–>(1st) I might be using SPONGE and wiping something. (2nd)Organizing clutter, rearranging the items or doing laundry.

Posted by admin under Uncategorized  •  No Comments

Blog Upload version2:

In the description i want people to write the zip code of where they took the picture and then return another picture to them with the same zip code which they have to find. So kind of like a tresure hunt but maybe add pictures of monuments so it could be educational. The pictures sent will be added to the DB and sent to another person who adds pics with that zipcode.

Posted by admin under Uncategorized  •  No Comments

Upload and Blog upload

I tried to get the upload.php code working but encountered theese issues:

  • page loaded fine but showed an error while uploading the image
  • the image was getting stored as a “pjpg” which was not a file format which was defined in the code ( don’t know why) so added another file format pjpg and it worked
  • the file was going from the page to the server db and the path was defined as ../../upload.php which brings back the file to sp1650/upload.php instead of sp1650/public_html/mobilemedia/upload.php so the “../../ ” was deleted

Once all this was corrected it ran fine.

Blog Upload:

  • For uploading to the blog we require the path of the XML RPC.php of the blog server which is /xmlrpc.php (www.wordpress.com/xmlrpc.php)
  • Then like upload.php had to add another file format pjpg
  • // Couple of variables
    $username = “sp1650″;
    $password = “test1234″;
    $xml_rpc_url = “/xmlrpc.php”;
    $blog_host = “sp1650.wordpress.com”; // Variables that need to be set
    // Using variables from upload form
    //$title = “test title”;
    $title = $subject;
    //$description = “test description”;
    $description = $message_text;
    //$uploadfile_rel = “http://test.upload/something.3gp”;
    $uploadfile_rel = $uploadrelativefile;

Posted by admin under Uncategorized  •  No Comments

Flash kicked my a#*…

This week our assignment was to create a flash project which demonstrates the working of an interface. I decided to prototype the canon sd 1000. I started prototyping by getting the pictures of the camera and the screen on the camera.

First task was to demo how to browse pictures in the camera by pressing the flash and the mode buttons located on the outer ring of the circular button so created a movie clip with the pictures.

idea:

  • stop the frames in the as soon as its played
  • click the on button which takes you to the first picture
  • click the left and right button for navigation between pictures

result:

  • Tried various different ways but the buttons don’t work
  • movie file does not stop when a stop is given
  • code is everywhere

Posted by admin under Uncategorized  •  No Comments

Preliminary Research Plan for a Human Centered Study of Cleaning:

Hunt Statement

How can we increase the physical and emotional benefits of cleaning?

Research Objectives

  1. Why is cleaning good or what are the benefits of cleaning?
  2. When do people clean
  3. What do people consider to be cleaning?
  4. Are there any specific, personal cleaning methods that people employ?
  5. How do people get and stay motivated to clean?

Methods

  1. Tools
    • Questionnaires
    • Shadowing
    • Interviews
    • (Photo journals)
  2. What we would look for
    • Physical aspects of cleaning: being active, getting exercise.
    • Emotional aspects: feeling good about being active, satisfaction when things are clean, feeling bad about having neglected to clean, changes in emotional reactions as cleaning is taking place, feelings about cleaning other people’s mess vs. one’s own mess, issues of responsibility, feelings of futility (because cleaning is an endless cycle.)
    • When people clean: when waiting for something else (food is cooking, someone is coming to pick you up etc.), on a schedule, when an area is messy/dirty, when guests are coming, when there is time to clean.
    • What is considered cleaning: organizing/restoring order/putting things away, vacuuming, dusting, sweeping, when cleaning large areas, when cleaning one type of thing.
    • Idiosyncratic methods: particular materials used, personal connections to products or tools, the order in which tasks are undertaken, rituals, why things are done that way
    • Motivation: what makes people start to clean, what makes people stop cleaning, what are people’s goals for cleaning, are the goals accomplished

Participants

  1. Adults.
  2. Not first generation immigrants. (Because that might add too many cultural considerations into the mix.)
  3. We want to avoid skewing our results by having too many students as participants but perhaps will include one or two. (The living situation for students is quite different from the population as a whole, often.)
  4. As many via questionnaires as we can, perhaps 6-10 for interviews and shadowing.

Logistical Issues

  1. Getting people to allow us to watch them clean
  2. The possibility of extreme diversity in cleaning styles
  3. The possibility of an extreme lack of diversity in cleaning styles
  4. Scheduling (if people do not have a set time when they will be cleaning, how will we shadow them doing it?)

Posted by admin under Uncategorized  •  No Comments

3G:

Wider network so more users can be accomodated on the n/wBetter spectral efficiency ( Amount of information that can be sent on a communication n/w)

it supports upto 384 kbps data transfer for mobile devices and upto 2 mbps for stationary devicesIMT ( International Mobile Telecommunication) 2000 is the standard which set the3GSome features of 3G are”

  • 384 kbit/s packet switched
  • Location services
  • Call services: compatible with Global System for Mobile Communications (GSM), based on Universal Subscriber Identity Module (USIM)
  • Edge radio (enhansed data rates for GSM Evolution)
  • Multimedia messaging
  • improved security levels
  • Improved location services
  • IP Multimedia Services (IMS) (internet service over GPRS [global packet radio service])
  • IPv6, IP transport in UTRAN
  • Improvements in GERAN, Mexe, etc
  • HSDPA (High speed downlink data packet access)

  • WLAN integration
  • Multimedia broadcast and multicast
  • Improvements in IMS
  • HSUPA(High speed uplink data packet access)

1G – Basic analog mobile system which used AMPS (analog mobile phone system). AMPS was the first generation cellular technology which used seperate frequencies for each call (FDMA).It was a little more tech heavy than 0G as it used more processing power for handoff , selecting the frequency etc. It was using analog technology

2G-2G used a both TDMA(time division multiple access – same freq diff time slots) and CDMA ( code division multiple access-special coding scheme (where each transmitter is assigned a code) to allow multiple users to be multiplexed over the same physical channel).Some of the features that came up around 2.5 G are data services, camera phones, high-speed circuit-switched data (HSCSD) and General packet radio service (GPRS)

CDMA TDMA

0 G 1 G 2 G

 

Posted by admin under Uncategorized  •  No Comments

Pew Internet & American Life Report Summary:

Syllabus

Increased use of video sharing sites:

Studies have shown that 48% of internet users have used video sharing sites like Youtube. The amount of users for such sites has doubled since last year.

Statistics have shown that the majority of increase of viewers are actually women, they have had a 59% increase from the pervious year. The majority of viewers are still men, young adults and college graduates.

Research has found that 22% of Americans shoot their own video and out of that 22%, 14% of them post their videos online which is more than triple of the people when the research was conducted 2 years ago.

One of the main reasons for the increase of traffic to video sharing sites may be the fact that in dec 2006 only 45% of the people had broadband internet at home where as now 54% has broadband at home.

Riding the Waves of Web “2.0”:

Web 2.0 has nothing to do with internet 2.0 and it is not an improved internet network which runs on a separate backbone.

Some of the features of web 2.0 are as follows:

Users have control over their data

  • Provides network enabled interactive services
  • It utilized collective intelligence

Web 2.0 is a set of rules and regulations which are followed by various technologies.

With the rise of Web 2.0 the weight has been lifted off the shoulders of the big institutions for generating content and it is being taken over collectively by the web users. One proof of this is the rise of Wikipedia an online encyclopedia generated by the users and the fall of Encarta encyclopedia.

Similarly the decline of the photo sharing site Kodakgallery.com and the rise of the more social web 2.0 photo sharing site photobucket.com.

Even with communication growth such as IM, text messaging, and social network site messaging 53% of the users check and read email which is web 1.0. Email even beat out search engines that are only 38% of the users use search.

Digital footprints:

Almost half (47%) of the internet users have searched themselves online. The amount has more than doubled in the last 5 years. Majority of the users who search themselves are teenagers and those with higher education and income levels.

Most common information to be found are e-mail address, phone number, home address, employer information, photos and names of groups they belong to.

Most of the users have not given consideration on what information or how much information of them can be found online and only 38% have actually limited themselves giving or posting information on the internet.

I find this surprising with the amount of identity theft and credit card fraud happening at present.People should be more careful.

Studies have also found that more than half of the users have searched other people’s foot prints and the most searched information is basic contact information.

Cyberbullying:

About one third of the teenagers online have been bullied online of which girls are more likely to be bullied more than the guys.

The most common forms of cyberbullying are sending threatening messages, forwarding private messages, mails or instant messages(which is the most common) with out consent, posting pictures online with out consent from the person and having rumors spread about the victim.

It has been found out that apart from girls, people who post things online are victims of cyberbullying compared to the less active teenagers.

Social networks have been found to be one of the main places where people are cyberbullied due to the amount of information and photos that can be found on it.

Even with the rise of the internet bullying is still more popular offline rather than online.

 

Posted by admin under Uncategorized  •  No Comments

Prototyping with S/W: Week 3:

I decided to make the clock for blind, which was my initial idea where there was a button on the walking stick which tells the time.

I used the arduino linked with processing to make this prototype work. I wrote a simple serial to processing code which read the o/p of the digital pin number 6 and every time th button was pressed the value would become one and the time was played.

Pic 1 Pic 2 Pic 3

Processing Blind clock:

import processing.serial.*;
import pitaru.sonia_v2_9.*;
int backgroundColor= 125;
Serial myPort;
int xPos, yPos;
Sample mySample;
void setup() {
println(Serial.list());
myPort = new Serial(this, Serial.list()[1], 9600);

Sonia.start(this);
mySample = new Sample(”time2.aif”);

size(255, 255);
yPos = height/2;
}

void draw() {
background(backgroundColor);
ellipse(xPos, yPos, 100, 100);
}
void serialEvent(Serial myPort) {
xPos = myPort.read();
if (xPos == 1)
{
mySample.play(); }
// print the serial data.
println(xPos);
}
Arduino:

int val;
void setup(){
Serial.begin(9600);
}

void loop(){
val = digitalRead(6);

Serial.println(val,BYTE);
}

Posted by admin under Uncategorized  •  No Comments