Friday, 6 March 2009

The transformation of creative arts practice within the music industry of the digital epoch.



The genre that I will discuss in this paper is that of contemporary music, its significance as an art form in the changing attitude towards digital media as the instrument of choice and the distortion that the use of such technologies lends to the establishment of what is known as a recording “artist” within the genre.
Until recently, being a great artist was, according to 18th century author and poet Samuel Johnson, to be simply a “skilled manual worker” and that was enough. Shakespeare, Rembrandt and Mozart created works of fine art as a job, a means to pay the bills and although their works were highly valued, they did not have much social stature in a world dominated by the church and wealthy royal courtiers. Bart Rosier introduces his work What is art? with a description of this mentality:
In late Antiquity the arts consisted of the seven artes liberales, the liberal arts: Grammar, Logic, Rhetoric, Geometry, Arithmetic, Astronomy, and Music. Philosophy was the mother of them all. On a lower level stood the technical arts like architecture, agriculture, painting, sculpture and other crafts. "Art" as we conceive of it today was a mere craft. Art in the Middle Ages was "the ape of nature". And what is art today?
Bart Rosier. (July 2008) What is art? [online] Available: http://www.geocities.com/SoHo/Coffeehouse/6831/whatsart.html [date accessed 29 Jan. 08]
The Romantic Movement of the early 19th century championed by such artists as Byron, Baudelaire and van Gogh, turned away from producing craft works to please the rest of society and focussed ever more intently on indulging their own whims and elevating themselves as heroic enlightened and unique individuals, striving constantly to produce perfection through their own talent and suffering.
Artists of any genre are often henceforth portrayed as solitary, reflective, lonely and even unhappy figures that are far too complicated and intelligent for a lay person to comprehend. This “romanticised” archetype is a product of the movement that has played on the psyche of society for some 200 years since.
As such the portrayal of recording artists as a singular talented, creative elite has dominated the music business as much, or even more so, than many other art forms. This, in no small terms, is due to the widespread publicity with which such musicians are paraded day after day.
Take, for example, John Lennon, Bob Dylan and Bruce Springsteen. Each of these men are accomplished musicians and songwriters in their own right and although the messages that their works convey differ from artist to artist, they have all at some point been idolised for their single minded dedication to their work and their self sacrifices to the benefit of music as an art form and all who have practised it since.
The overriding factor that combines all of the above artists however, is the fact that they used their talent with music to earn large sums of money. Each man played their instruments and wrote their songs for money, as a job. As the title of the Beastie Boys 1992 single states they used their Skills to pay the bills. Thus they could be referred to as artisans of the musical art. This is a term that rests well with me as a way to define those that would use music as an art to win their earnings. This does not necessarily mean that they are not artists, but should probably referred to as such second to a term that informs one that they are paid for the work they produce.
As Rosier discusses in his work it is very difficult indeed to define what is art and as such the concept of an artist is also just as difficult. He quotes the art philosopher Richard Wollheim with reference to painting and those that practise it:
"So, there are house-painters: there are Sunday painters: there are world-politicians who paint for distraction, and distraught business-men who paint to relax. There are ... psychotic patients who enter art therapy, and madmen who set down their visions: there are little children of three, four, five, six, in art class, who produce work of explosive beauty: and then there are the innumerable painters ... who once, probably, were artists, but who now paint exclusively for money and the pleasure of others. None of them are artists, though they all fall short of being so to varying degrees, but they are all painters. And then there are painters who are artists. Where does the difference lie, and why? What does the one lot do which the other lot doesn't? When is painting an art, and why?"
Richard Wollheim. (1987):Painting as an art (ref: Rosier July 2008) What is art? [online] Available: http://www.geocities.com/SoHo/Coffeehouse/6831/whatsart.html [date accessed 29 Jan. 08]

Perhaps the definition of art needs to be revisited.

The first commercial digital recordings were produced in the early 70’s and much experimentation began with this new technology. When an audio track is recorded it’s sound wave is converted to binary bits at a rate of 24 bits per word ( word representing the length of the audio waveform), the number of bits required was originally hotly debated, because each bit sampled is reconstructed by digital audio devices the less bits there are per word the harder it is to reconstruct the audio signal with enough fidelity, however the larger the number of bits per waveform the better the potential accuracy and the larger the size of sample on a disk / tape.

There had been electronic synthesizers before like the Moog synthesizer produced by Dr Robert Moog, however unlike its modern descendants the Moog required a series of magnetic tapes for artists to realize their works. The limitations of the devices components were such that often notes had to be recorded separately and reconstructed later, using the speed at which the tapes were run to produce the different pitch and then splicing with the master. An altogether lengthy and frustrating procedure.

In 1982 the advent of MIDI (Musical Instrument Digital Interface), created by Adam Brooks Kinder was marked as the industry standard protocol for interface between electronic musical instruments, computers and other electronic musical equipment allowing the hardware / software of each device to be synchronized. It was widely adopted throughout the industry and remains today as the music synthesis standard for computers worldwide. Because MIDI does not store audio information in waveforms sounds can be constructed on a computer by sequences that, through sound output devices, may be played as music.

Many artists now found that with digital sample tapes and synthesizing keyboards they could produce entirely new sounds that could not have been achieved with the previous levels of technology employed in such devices as the Moogs. With the right hardware a recording artist could record directly from their instruments to a digital tape for immediate playback and review .

If music can thus be created without instruments, without the necessary skills needed to know why each chord works the way it does and with the use of pre – programmed or pre – recorded synthesized percussion is it really art? Yet many recording artists are producing works that have been synthesized by computer code that use background beats that have not been produced by their own hand and yet are receiving critical acclaim and large sums of money for their work. Does the responsibility for that work rest solely with the artist or is it prudent to theorize that the software developers that produced the synthesizing program gain some credit for their efforts towards the recording artist’s success? The fact of the matter is that other than a license fee or registration fee for the software many mainstream music software companies do not receive royalties for works produced with the programs that they have designed. CakeWalk is just one of such software companies that produce midi sequencers, but is widely thought to be the leader in the business.

Adversely one could look at the computer as an addition to the artist’s instrument complement. Does not the producer of a guitar or a drum kit receive kudos for their product by having it used by the recording artist in the production of their works? Not by way of royalties they don’t, but they do tend to piggyback marketing campaigns off the back of live performances, music videos and in fact any other visual media they can be shown to have their instruments used by famous artists. So guitar manufacturers label the head of their guitars with their name or logo, drum manufacturers place their stamp on cymbals or drum skins and so on. When there are no aesthetic or portable means of exhibiting the digital instrumentation used to make music will this practise change? I think not.

Similar to audio synthesis is the practise of audio sampling. Again the artist is using something they have not produced to add a track to their song that they could otherwise not do. Audio samples may be loops of percussion, many modern recordings are strings of drum beat samples tied together and looped to produce the backing percussion. They may also be samples of spoken words, entire recordings, or other more unconventional sounds.

Some audio samples are also taken without permission and the recording artist often finds themselves in a difficult situation with copyright lawsuits being thrust upon them from unexpected angles. One such artist to be stung by copyright infringement was the white hip hop rapper Vanilla Ice. Ice used a sample of the main guitar riff from the legendary rock collaboration Under Pressure by Queen and David Bowie in his signature track Ice Ice Baby from 1990. His defence rested on the addition of extra notes, which were in fact only further cutting and sampling, to the original riff. No lawsuit was filed in the end, but there is speculation that Ice agreed to pay the rockers if they agreed not to openly sue. Some artists, however simply allow or even advocate re – use of their music in sample form.

The most notorious piracy of a sampled beat is the Amen break, a 6 second long drum beat, or break beat that was originally produced by a funk and soul band called The Winstons in their song Amen Brother. This break beat was taken by sampler and is ingrained into the western subconscious through tracks such as Straight out of Compton by the rap pioneers NWA, Words of wisdom by New York duo Third Base, and King of the beats by Mantronics. The Amen break could also be cited as responsible for the advent and longevity of drum and bass, dance and hip hop as musical genres and many of the beats behind songs from the early nineties rave scene. The Amen break has been broken down into its constituent drum hits by artists to create new tracks ever since and is still being used in popular music, advertising campaigns and soundtracks to this day.

This does not imply that any of the aforementioned artists ever owned any part of the Amen break. What they did own though, were samplers, without which modern music would be very different indeed.

Now although I digress slightly from the point of the discussion, this is a necessary diversion to explain that the originality of many a recording artist’s works can be called into question once they start using pre – recorded samples and although this does not detract from the newer work being a work of art in its own right per se, it does call into question whether the recording artist should be vaunted for the work in its entirety or whether such a recording artist should now only be allowed to claim the merit for the assembly and mixing of their work’s consistent parts.

So now it is clear that the creative practice of musicians has changed in the last 30 years. A musician producing works pre synthesizer would be required to have a fair knowledge of music theory at the least to play and record their songs, they would need to be learned with many musical instruments, or employ other artists to play along with them and they would be required to complete a recording in a single take for distribution. Inevitably records produced before digital sampling would take far longer to record due to this requirement for the artist to play their song from start to finish over and over until they were happy with the results.

In this way digital recording has become a boon for recording artists across the board. Songs can be constructed modularly, a verse at a time, with the chorus only ever needing to be finally mastered once per version and the sample repeated. Thus allowing for those odd moments when one can hear an artist drawing out a long note or verse without needing to stop for breath and carrying on into the chorus without missing a beat, or the moments where the artist will record a harmony to their own lead and thus harmonize without being physically able to. This practice is also applied to musical instruments in some bands, where a singer will record their vocals over the finished track to allow them to participate in the more energetic instrument playing at the same time that would otherwise leave them out of breath. Whilst allowing the artist more freedom to produce works of notably higher quality to live performance, additionally this allows a song to be produced far quicker than could possibly done to the same standard previously.

Many critiques, I amongst them rate not only the studio recording of the artist, but the live performance of the song and I have come to the opinion that if I am impressed by the live performance as much or even more than their studio recording then they are a band worthy of inhabiting my music collection. Only a few have managed to surpass themselves and my expectations and they take pride of place. This does not mean that I only listen to live bands in fact it could not be farther from the truth. I enjoy a healthy mix of music, like many other eclectic types, that involves many technically brilliant musicians that I could only label as artists well worthy of the title and also includes songs that are simply impossible to reproduce exactly live.
One of the many musical genres that I foster a love – hate relationship with is drum and bass. Commonly abbreviated to d&b and also known as jungle, drum and base is a purely electronic dance music that uses fast break beats like the Amen break, generally up to 180 beats per minute, with very heavy bass lines. It began in the late 1980’s and was an offshoot of the early UK rave scene. D&b and to a similar extent today’s dance music is intended to be listened to live. Now that might sound a bit daft considering almost anything can be performed live, but d&b differs because it is designed to be played by a DJ (disk jockey) and constructed live, using a pair of record players otherwise known as decks a sampler and ever more frequently an i – book or laptop, from constituent parts usually referred to as dub plates in the case of new records. Each part of the song has intro and outro sections designed for the DJ to keep time and match the beats and could technically be played in any order across any number of different tracks. In this way the DJ becomes not only the author of each mix record (despite not necessarily being the source of the sounds) but a performance artist as well who mixes and samples live on stage. Thus it could be said that in d&b the art is not just in the crafting of the song but in the performance of the DJ as well as no two performances will ever be entirely the same.

DJs and MCs (master of ceremonies – pompous I know) often have strange and outlandish pseudonyms, often related to their stage performance and the sub – culture of the genre to which they belong. Whilst some are comic at best, other DJs with slightly better taste are seen with an almost godlike mysticism about them and receive as much accolade as any mega rock star. This attitude could be identified as the romanticism cropping up again where the lone DJ heroically mixes away striving to rock the spectator’s world.

Contrary to this mythical concept of the lone artist writing and producing every part of their artwork as a solitary edifice of introversion of their own volition, many recording artists are individuals who want to share their life experience with their audience through the medium of song and as such could be seen as very sociable characters. Bruce Springsteen can be regarded as a prime example of a man with a message to share, one that thankfully makes for a good rock song that people want to listen to. I could not put it in better words than this:
His most famous albums, Born to Run and Born in the U.S.A., epitomize his penchant for finding grandeur in the struggles of daily life.
Bruce Springsteen (1972-present) Springsteen: Wikipedia [online] Available: http://en.wikipedia.org/wiki/Springsteen [date accessed 29 Jan. 08]

As such Springsteen has become somewhat of an American everyman hero, a champion of the ideal that artists are people too.

The current era of mass digitization and cut and paste song craft does not come about without leaving a few casualties in its wake though. Large scale recording studios are swiftly becoming a thing of the past and the speed of their decline shows little sign of slowing down any time soon. Now that most of the functions that would be familiar to a sound engineer have been incorporated into software for the home computer there is little need for large and expensive establishments, unless you are scoring the next movie blockbuster with an orchestra of course. One studio that has sprung up amongst this change of face is The Doghouse in Brooklyn NYC. In their introduction to the article: Breaking the glass wall. They explain exactly what is happening to the old establishment:

The art of recording has changed dramatically. Mammoth recording spaces, giant glass walls, and mile long consoles have given way to smaller, more specialized rooms. As the decadent recording budgets of the last century dry up, small studios are cropping up even faster than the old behemoths fall silent.
The Doghouse NYC Recording Studio (May 2005) Breaking the Glass Wall:
Reinventing the Modern Recording Studio [online] Available: http://www.doghousenyc.com/articles/glass_wall.php [date accessed 28 Jan. 08]
So small studios and in – house production are becoming the accepted norm for recording artists both in the USA and here in the UK, perhaps Springsteen could have benefitted from such technology so close to home, but I’m not so sure his fans would have been so ready to accept him with an electronic dub beat.
The Doghouse also philosophises in its review of “single seater” studios, which may in fact hold as many as 8 to 10 musicians to one or two sound technicians that it’s not all about the technical gear:
The one - seater caters to the mindset that it is people who make recordings - not spaces or equipment.
The Doghouse NYC Recording Studio (May 2005) Breaking the Glass Wall:
Reinventing the Modern Recording Studio [online] Available: http://www.doghousenyc.com/articles/glass_wall.php [date accessed 28 Jan. 08]

This is rather a poignant reflection on their own practices that sometimes it’s good to remind people in a studio environment that the digital technology is not the most important aspect, but the people who use it to create their music are. This does not detract though from the truth that musicians that do not follow the trend in technological advances will eventually fall by the wayside as newer and better products will be released that will far outstrip theirs in quality and production value.

In conclusion I would have to say that I have gained the opinion that although a DJ or MC uses a computer, a set of decks, or a synthesizer / sampler to produce their work they have as much right to call what they produce an artwork as a folk guitarist or a flautist because it takes a considerable amount of skill and experience to produce and develop their work. The musicians of the digital age might not be classically trained, they might not know the difference between a fret and a bridge and they might not play the instruments that they use in their work, but they have the freedom of their imagination, a massive archive of information available and the talent to string a mash of beats, tunes and vocals together to create music the likes of which have never been seen before to such high qualities of sound that they could make Mozart weep with joy. In essence the concept of the “artist” has returned to more of a definition of a craftsman producing his wares and is in effect contradicting the neo – romantic view of all artists being somehow better than mortal man.
With new technologies such as digital sampling and editing software becoming more readily available to the consumer market it is not too difficult to comprehend music production again returning to a craft and a hobby to which standards ordinary people may begin to parallel big budget record producers and mainstream recording artists. With that in mind it pleases me to think that many new recording artists, producers and DJs will rise to fame who never would have otherwise had a chance, much in the same way that Daniel Beddingfield the popular singer / songwriter began his own career. A number 1 single created in his bedroom at home with a microphone and a cheap piece of music software.

Friday, 19 December 2008

TECHNOLOGY AND ITS REPRESENTATION IN THE COMMUNICATIONS MEDIA

BIOMETRIC IDENTIFICATION TECHNOLOGIES

The term Biometrics has recently undergone a change. Where once before it used to refer to the collection and analysis of data from a biological community, it has now been broadened to include the study of methods for uniquely recognising other human beings based upon physiological and psychological traits. With this data a being can be catalogued and the information stored on a database for validation or Identification procedures in the future.

The emergence and development of Biometric Identification technologies in recent years has caused mass debate in the communications media on a worldwide scale. The topic is a controversial one, because it involves costly mass production and distribution of scanning and identification technology, a vast amount of personal information requiring collection and assimilation, probabilities of infringements of civil liberties and all under the suspicion of compulsory membership of a ‘non compulsory’ scheme. You won’t have to carry Identity, but it may harm you in the long run if you do not.

The positives however are much more appealing:

The National Identity Scheme (NIS) is intended to secure our borders and tackle illegal immigration, to prevent identity fraud and criminal assumption of multiple identities (which is commonplace), to enhance the safeguards in place during police checks for people working with children and those who are vulnerable and to enhance the level of customer service provided across governmental departments and the wider public sector.

The Home Office. (December 2006) Strategic action plan for the National Identity Scheme. [online] Available: http://www.ips.gov.uk/identity/downloads/Strategic-Action-Plan.pdf [date accessed: 13 Jan. 08]

The emphasis on identity has arisen, due to the recent political shift, relative to the global paranoia, post September 11th 2001. Since 9/11 governments in both USA and the UK have redoubled their efforts to pass laws that would introduce biometric systems to their countries health, immigration, employment, security and welfare systems to name but a few.

With all these services to cover there are more than enough sources of revenue for the biometrics industry. In 2005 the research and debate group BITE (Biometric Identification Technology Ethics) stated that:

The number of biometric devices in use in Europe has jumped from 8,550 in 1996 to more than 150,000 in 2004 and biometric industries revenues are expected to more than triple in the next two years.

BITE Project. (2005) Promoting Research and Public Debate on Bioethical Implications
of Emerging Biometric Identification Technologies. [online] Available: http://www.biteproject.org/ [date accessed: 13 Jan. 08]

These figures suggest an increase of more than 1750% over 8 years. The devices not only include heavy duty retinal scanners and fingerprint readers for access to secure buildings, but they also include the consumer security market figures too. Miniature portable fingerprint scanners are now available as a USB device for personal computer / laptop security. Some of the latest laptops even come with a scanner built in. You can pick them up on your local high street.

The good intentions of the governing bodies attempting to currently introduce this technology are small in comparison to the fears of what the information could be used for and the possibility that should corporations get hold of the information, a new form of invasive advertising and product pushing might begin.

This is no more evident than in the Stephen Spielberg action thriller Minority Report (an adaptation of the Philip K. Dick short story.)
At one point the male lead is in the centre of a busy shopping district with an example of the un-ethical use of unauthorised retinal scanning to produce “personalised” adverts for their customers. But this man is on the run and seconds later his face is plastered across every screen and hologram within a five block radius. Further on and he has had to receive an eye transplant (bear in mind this is set 45 years in the future) to shake off his previous identity. The police employ a miniature retinal scanner in the hunt for him, but it is fooled by his “new eyes.”

Minority Report [DVD] (2002) Directed by Stephen Spielberg. Cruise / Wagner Productions. 142 mins.

This simple concept now appears to be closer than we think and through this medium of film indicates some of the possible problems it might incur.

It would appear that the British government consider the biometric ID card to be a more secure version of a passport or drivers licence. It is in fact plausible that the drivers licence and maybe even the passport would be scrapped entirely in favour of indicating driving privileges on the Identity Card. In 2002 David Blunkett made a television appearance on Newsnight for the BBC. In a transcript of the conversation he hints at the similarities between the current statistics of passport and drivers licence holders and the expected number of ID card holders, should a voluntary system be implemented:

Well, you have to register if you want to drive a car. You have to register if you want a passport. 38 million people have a driving licence. 44 million, including some youngsters, have their own passport. There's nothing new about registering. All those people do.

Blunkett. D. (2002) Teletext subtitle transcript from Newsnight (Real video of this interview is also available) [online] Available: http://news.bbc.co.uk/1/hi/programmes/newsnight/archive/2093573.stm [date accessed: 12 Jan 08]

Mr Blunkett seems to make a good indication that although these technologies may not be mandatory you would require one if you wanted to do anything. This is what is worrying most of the people who will choose to “opt-out” of the system (The House of Lords allowed the bill to pass after five previous attempts on the condition that there was the possibility to opt-out of the system.) However the BBC has gathered this information:

What will happen when I apply for a passport?
You will have to go to your local passport office where you will be photographed and fingerprinted. The new Identity and Passport Service will then carry out a "background check" on you to establish that you are who you say you are. Your details will then be entered in a national database and you will be issued with a passport and an ID card. You will probably be able to use your ID card as a passport within the EU.
Will there be a discount for those who opt-out of having an identity card?
No. Charles Clarke, who steered the measure through Parliament when he was home secretary, said the final charges have yet to be worked out but those who opt out of ID cards will have to pay the same for a passport as those who accept one and their details will be entered into the database in the same way.

BBC News (09 Jan 2008) Q&A: Identity card plans [online] Available: http://news.bbc.co.uk/1/hi/uk_politics/3127696.stm [date accessed 10 Jan 2008]

So although you might have decided to opt out of the ID card scheme this implies that the government will try to get you on their system in as many ways as possible. There would be no way of obtaining a passport without being entered into the biometric database.

The technologies themselves are not necessarily the root cause of the problem, but it is in the way it could be used for profiling that scares many people. The use of one method under biometrics, finger prints for instance, have been used for over a hundred years in the solving of crimes, because every one is unique.
It is a tried and tested system and the faults are known (for instance being at the scene of a crime hours before whilst totally innocent you might be arrested or just asked to provide a statement) as is the fact that someone intending to do crime would be smarter than to expose their fingers to anything.

Finger prints are also in this way one of the best security identifiers, hence why they have been used for years as right of access. They have replaced passwords for many people as a password is often forgotten or is easy to crack because many people use personal information such as date of birth and children’s names etc.

There is another form of risk when it comes to biometric passwords. There are no lengths to which some people will go to steal your identity, for instance the removal of a finger of a business man to start his Mercedes Benz.

Of course one can see why this might give biometrics a bad reputation.

In late 2007 it appeared in the news that the government had “misplaced” copies of 25 million Briton’s social security information, information that could be used in identity theft. What is to say that in the future this won’t happen again with countless numbers of British citizens biometric data? This information would not only have to be scrapped from the records for fear of mass identity fraud, but it would also be irreplaceable as the fields measured would be permanent factors of the person’s identity. The government’s answer to this is:

As described in Chapter 2, the information
in each person’s NIR entry will be in several
parts, with each part being held on a separate
set of technologies:
-biometric details will be held on the
biometric system;
-a biographical part of the entry will be held
on the Customer Information System (CIS)
technology; and
-Public Key Infrastructure (PKI) related
information will be held on the PKI
technology already being used for issuing
passports.

The Home Office. (December 2006) Strategic action plan for the National Identity Scheme. [online] Available: http://www.ips.gov.uk/identity/downloads/Strategic-Action-Plan.pdf [date accessed: 13 Jan. 08]

Essentially only those in the highest positions would ever be able to view our biometric NIR (National Identity Register) in full and each separate identifier would be stored in separate locations and on different formats.

From what I can discern from the communications media articles there are two distinct sides to this argument.
On the one side are the majority of the Labour party and a percentage of the population of the United Kingdom who are prepared to pilot the biometric National Identity Scheme. And on the other are the Conservatives and Liberals whom are united with a larger percentage of the population.

It would seem that the government’s main representation in the media is through gruelling television or radio interviews where they have attempted to defend the reasons for gathering so much data about the citizenry and their public information on the home office and passport office websites.

Whereas most of the opposition to the scheme has been highly distributed via a similar range of sources including TV, radio, newspaper and the internet, but they are receiving more focus for their protestations, because their arguments are entirely plausible as many have roots in current issues that, although it is claimed the ID cards will solve them, it is already too easy to see the flaws with the system. What is in place to stop someone who has access to the biometric information from passing that information on? It is argued that once the information has been gathered it will be sold to third party companies which may very well breach one’s privacy.
Is it necessary to record the facial structure of every person in the UK over a certain age? Would this not lead to extra surveillance on the population and the possibility of mistakes? Facial appearance is often subject to change depending on the health, weight and age of the person. There is also the possibility that plastic surgery will become more popular amongst the unlawful so as to assume one’s identity further.

The government is attempting to communicate the fact that the biometric scheme will improve civil security, whereas the general public consensus that has been forwarded directly by the communications media is the idea that security levels would not change in lieu of the current systems in place, but it will in fact only lead to a loss of the civil liberties that we take for granted.

The main premise here is that many more people are willing to watch a television debate or read a newspaper, than they would be to listen directly to the government ministers, but through these sources they are biased by the opinions of those who send out the messages.

Essentially we only receive the information we have been allowed to see by people of higher authority in the media and will only truly know the extent of success or failure by testing the system for ourselves.

In 2006 the National Identity act was passed with a view to start voluntary application this year (2008). This year passports will also be changing to include more biometric data. So it is already here, despite all of the public opposition.

Friday, 7 November 2008

Organism project update


The main interface was intended to be Flash based as shown in the file
TRACY office anno.jpg
No.1 is the funtion to exit the program.
No.2 is the list of stored "suspects"
No.3 is the "reply" function (styled as a typewriter)
No.4 is where the PI would answer the telephone ( Incoming Mail)

Unfortunately i have been unable to produce a working interface
in time

Bruce Eckel has some interesting thoughts

This blog has definitely improved my awareness of the "situation" surrounding the web design community and despite being almost two years old it raises some interesting points that could still be hot topics in today's climate.

Organism project update

I found the solution to my connection problem! One little change to my code ( Literally adding an s on the end of Pop3) has allowed me to connect to the mail server and testing has found the spam in my dummy emails!

from

try
{
Properties props = System.getProperties();
Session session = Session.getDefaultInstance(props, null);

store = session.getStore("pop3");

store.connect(popServer, popUser, popPassword);
folder = store.getDefaultFolder();

to

try
{
Properties props = System.getProperties();

Session session = Session.getDefaultInstance(prop
s, null);
store = session.getStore("pop3s");
store.connect(popServer, popUser, popPassword);

folder = store.getDefaultFolder();





I am so happy :) this has been bugging me for days.

Thursday, 6 November 2008

Organism project pop3 info



Organism project update

I have downloaded some sound clips to serve as alerts / background music etc for my flash GUI.

These files are from a popular game (Team Fortress 2) which is an american cartoon stylised first person shooter for the pc.







Organism project update

Java coding is definitely more complicated than I first thought.

I have "borrowed" the source code for a mail application with the intention of modifying it to interact with my flash GUI and i have managed to get the mail app to work... to a degree. unfortunately i have come acropper with the code because although it appears to work there are some connection issues between my computer and the mail server.


here is my mailreader

package mailproject;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
import java.io.*;
import net.sf.classifier4J.*;
import net.sf.classifier4J.bayesian.*;

import net.sf.classifier4J.summariser.*;
public class MailReader
{
public static void main(String[] args)
{
try

{
String popServer="pop.gmail.com";
String popUser="ss.tybs";
String popPassword="xenophobe1";
GetMail(popServer, popUser, popPassword);
}

catch (Exception e)
{
e.printStackTrace();
}
System.exit(0);
}

public static void GetMail(String popServer, String popUser, String popPassword)
{
Store store=null;
Folder folder=null;
String strEmail = "";
double dSpamScore = 0.0;
try
{
Properties props = System.getProperties();

Session session = Session.getDefaultInstance(props, null);
store = session.getStore("pop3");
store.connect(popServer, popUser, popPassw
ord);
folder = store.getDefaultFolder();
if (folder == null) throw new Exception("No default folder");
folder = folder.getFolder("INBOX");
if (folder == null) throw new Exception("No POP3 INBOX");
folder.open(Folder.READ_ONLY);
Message[] msgs = folder.getMessages();
for (int nMsg = 0; nMsg < stremail =" buildMessage(msgs[nMsg]);" strsumm =" getSummary(strEmail,3);">
m.out.println(strSumm); dSpamScore = checkSpam(strEmail); //dSpamScore = checkSpamWithBayes(strEmail); if(dSpamScore > 0.7)
{
System.out.println("------------------------
--");
System.out.println("SPAM DETECTED:");
System.out.println("--------------------------");
System.out.println(strEmail);
System.out.println("--------------------------");
}}}
catch (Exception e)
{

e.printStackTrace();
}
finally
{
try
{
if (folder!=null) folder.close(false);
if (store!=null) store.close();
}
catch (Exception e2)

{
e2.printStackTrace();
}}}
public static String buildMessage(Message message)
{

String strReturn = "";
try
{
String from=((InternetAddress)message.getFrom()[0]).getPersonal();
if (from==null) from=((InternetAddress)message.getFrom()[0]).getAddress();
strReturn += "FROM: " + from;

String subject=message.getSubject();
strReturn += "SUBJECT: "+subject;
Part messagePart=message;
Object content=messagePart.getContent();
if (content instanceof Multipart)
{
messagePart=((Multipart)content).getBodyPart(0);
strReturn += "[ Multipart Message ]";

}
String contentType=messagePart.getContentType();
strReturn += "CONTENT:"+contentType;
if (contentType.startsWith("text/plain")|| contentType.startsWith("text/html"))
{
InputStream is = messagePart.getInputStream();
BufferedReader reader=new BufferedReader(n
ew InputStreamReader(is));
String thisLine=reader.readLine();
while (thisLine!=null)
{
strReturn +=thisLine;
thisLine=reader.readLine();
}}
}
catch (Exception ex)
{
ex.printStackTrace();
}
return strReturn;
}

public static double checkSpam(String strEmailBody)
{
double dClassification = 0.0;
try
{
SimpleClassifier classifier = new SimpleClassifier();
classifier.setSearchWord( "belgium" );
dClassification = classifier.classify(strEmailBod
y);
}
catch(Exception e)
{

e.printStackTrace();
}
return dClassification;
}
public static double checkSpamWithBayes(String strEmailBody)
{
double dReturn = 0.0;
try

{
IWordsDataSource wds = new SimpleWordsDataSource();
wds.addMatch("Belgium");
wds.addMatch("Vogon");
wds.addMatch("Devx");
IClassifier classifier = new BayesianClassifier(
wds);
dReturn = classifier.classify(strEmailBody);
}
catch(Exception e)
{
e.printStackTrace();
}

return dReturn;
}
public static String getSummary(String strEmailBody, int nSentences)
{
ISummariser summ = new SimpleSummariser();
String strSumm = summ.summarise(strEmailBody,nSentences);
return strSumm;
}
}

and here is what happens when i run it:





annoying to say the least!

Another issue i can't fathom to work around is jdeveloper does not work on my vista laptop! Upon which flash is installed and any hope of me combining the two parts of the organism. :(


Monday, 3 November 2008

Organism project update

I have scanned in my workbook to show the processes worked upon in the last few weeks. These include sketches of the process tree i expect from my organism.

I am working on applying these processes with java code. This way i can have a working format and work on the GUI later.




So these pages from my sketchbook show the thought processes behind the program's functionality... and that i think Jeff Han is a ninja....


Erm... 4shot espresso please!

The Caffeine Click Test - How Caffeinated Are You?
Created by OnePlusYou - Free Dating Site