I’m trying out the code to upload videos to blip TV.
I made a new textmark “UPLOAD” that leads to
http://itp.nyu.edu/~sw1146/MOBILEMEDIA/daumeline/BLIP/upload_blip.php

at the moment there is nothing there, but I hope it works soon

http://blip.tv/file/683150/

http://itp.nyu.edu/~sw1146/MOBILEMEDIA/daumeline/upload_blog.php

http://itp.nyu.edu/~sw1146/MOBILEMEDIA/daumeline/BLIP/upload_blip2.php

<? echo “\n”; ?>

body {

font: 10px arial;
color: #6EB222;
background-color: #fff;
padding: 10px;
margin: 200px;

}

THE BRADDOCK SIGN PROJECT

please submit your sound

“3gp”,
“audio/aif”=>”aif”,
“audio/x-wav”=>”wav”,
“video/mp4″=>”mp4″,
“video/3gpp2″=>”3g2″,
“video/mpeg”=>”mpg”,
“video/quicktime”=>”mov”,
“video/x-quicktime”=>”mov”,
“video/x-msvideo”=>”avi”,
“image/jpg”=>”jpg”,
“image/jpeg”=>”jpg”,
“image/png”=>”png”,
“audio/vnd.wave”=>”wav”
);

// Make sure form was submitted
if (isset($_POST['form_submitted']) && $_POST['form_submitted'] == “true”)
{
// Check the mime type
$allowed_types = array_keys($allowed_mime_types);
$allowed = false;
if (isset($_FILES['bytes']['type']))
{
for ($i = 0; $i < sizeof($allowed_types) && !$allowed; $i++)
{
if (strstr($_FILES['bytes']['type'], $allowed_types[$i]))
{
$allowed = true;
}
}

// If the mime type is good, save it..
if ($allowed)
{
$uploadfilename = time() . “_” . rand(1000,9999) . “_” . basename($_FILES['bytes']['name']);
// Make sure apache can write to this folder
$uploaddir = ‘/home/sw1146/public_html/MOBILEMEDIA/php_popper/posts/’;
$uploadfile = $uploaddir . $uploadfilename;
$uploadrelativefile = ‘http://itp.nyu.edu/~sw1146/MOBILEMEDIA/php_popper/posts/’ . $uploadfilename;

if (move_uploaded_file($_FILES['bytes']['tmp_name'], $uploadfile))
{
// Make sure the file isn’t executable and you can delete it if you need
chmod($uploadfile, 0666);

// Put it in the database
/* Database Table:
mobile_me_messages
message_id int(11) auto_increment
attachment varchar(255)
subject varchar(255)
body varchar(255)
from_name varchar(255)
from_domain varchar(255)
*/

$subject = “”;
$message_text = “”;

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

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

// Connect to the database
$mySql = sqlConnect();

// Insert Data
$query = “insert into mobile_me(attachment, subject, body, from_name, from_domain) values (‘” . $uploadfile . “‘, ‘” . $subject . “‘, ‘” . $message_text . “‘, ‘mobile web user’, ‘mobile web user’)”;
$result = mysql_query($query, $mySql);

// Disconnect from the database
mysql_close($mySql);

// Tell the user
echo ”

Success
” . $uploadrelativefile . “

“;
}
else
{
echo ”

Error on upload…!

“;
}
}
}
}
else
{
?>

Title:
Description:


Phone (iPhone) doesn’t support file uploads? Email it instead..

Since in industrialized countries virtually everyone has a mobile phone, almost everyone has a
camera with them at all times. This ubiquity has changed a lot, it has positive and negative
impacts on society. Last week we talked about “happy slapping” and other brutal ways of
broadcasting violence, documented on mobile phone. Today I would like to show you some
examples of NGOs trying to use mobile phones for social change.
Some work with the opportunity of witnessing crimes and fil m to fight them:
Witness provides a service
http://www.witness.org/
MobileActive.org
http://mobileactive.org/background-why-cell-phones-civic-action
http://www.pamonet.org/?p=3
Pan African Mobile Activist Network (PAMONet)
Tactical Technology Collective, an international NGO working at the meeting point of
advocacy and technology, are about to launch the draft version of a Mobile Advocacy Toolkit.
And another positive way to make use of phones is of course art: mobile phone orchestra
Dialtones (A Telesymphony)
http://www.flong.com/projects/telesymphony/

There is a little artist group in Braddock, that wants to create awareness towards the variety of communities in Braddock’s three main boroughs that are in a way spread out and not related. The project should give an insight into the history and identity of the city and it’s inhabitants (17% unemployment, diverse ethnic backgrounds, former steel industry). The group will design street signs and mount them strategically in different parts of Braddock. I thought it would be great to add phone numbers or TextMarks to the signs. When a user stands in front or drives by one of their street signs, they could call and listen to some sound, an interview or a historic recording related to that site.
At the same time users could upload sound files into the database and submit them to be part of the installation.

So, I tried to use this assignment to start on that project. I used the php script to upload files:

http://itp.nyu.edu/~sw1146/MOBILEMEDIA/daumeline/upload.php


I used the php script to upload files,

I made a textmark for “BRADDOCK”, and wanted to change the script so it sends back the last uploaded sound file from the database. This doesn’t work yet, but hopefully will really soon.

braddock_small.jpg

MIME = mail with attachments

Multipurpose Internet Mail Extensions (MIME) is an Internet Standard that extends the format of e-mail to support:
text in character sets other than US-ASCII;
non-text attachments;
multi-part message bodies; and
header information in non-ASCII character sets.
Virtually all human-written Internet e-mail and a fairly large proportion of automated e-mail is transmitted via SMTP in MIME format. Internet e-mail is so closely associated with the SMTP and MIME standards that it is sometimes called SMTP/MIME e-mail

Going through popper script: add providers and formats to the lists in the script

MAILTO=”rringrring@gmail.com”
0,5,10,15,25,30,35,40,45,50,55 * * * * /usr/bin/php /home/sw1146/public_html/MOBILEMEDIA/php_popper/parseMailScript.php

* min of hour * hour of the day * day of the week * week of the month

or * * * * * sleep(15); …sleeps 15 sec and then starts running
sleep (1)

I took the information about this project from this blog : http://www.shakethepillars.com/?p=50

FINDING INFO OUT ON
GENETICALLY-MODIFIED ORGANISMS
IN THE FOOD YOU ARE ABOUT TO BUY

(more…)

oh it’s so exciting!

« Previous Page