Category: technology

  • Kom igang med Android programmering

    Mobilplattformen Android har gått forbi Apples iOS i populæritet, og er snart tilgjengelig i versjon 4.1 (Jelly Bean). Android har en hardware-uavhengig arkitektur og kan derfor finnes på mobiler, nettbrett, og snart også andre enheter som biler, TV set-top bokser og innen sikkert en helt andre bruksområder.

    1. Sjekk at du har riktige Java verktøy

    De fleste Android applikasjoner skrives i Java og du trenger derfor Java installert for å få utviklingsverktøyene til å fungere, og selvfølgelig for å få kompilert din gave til menneskeheten til maskinkode. Hva slags versjon du trenger er avhengig av tid, sted og hvilket operativsystem du bruker. Jeg benytter mac i min utvikling, og dersom dette er plattformen du bruker kan du åpne Terminalen (har du ikke allerede lært å bruke dette verktøyet, så er dette et godt tidspunkt.) og skrive “java -version”. Forhåpentligvis får du noe slikt tilbake:

     java version "1.6.0_33"
     Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
     Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

    Husk at dette endres fortløpende (selv om mange vil si at Java er et språk som endrer seg langsomt). Uansett operativsystem er det ikke vanskelig å finne både JRE og JDK, og det er også tonnevis skrevet om Java-installasjon på verdensveven, men her kan du finne det du måtte trenge: http://www.java.com/getjava.

    2. Last ned Eclipse

    Selv om du strengt talt ikke trenger Eclipse for å utvikle Android applikasjoner, og til tross for at det finnes andre IDEer som kan brukes, er det denne plattformen som de fleste bruker. Siden de fleste brukerne benytter Eclipse er det også dette IDEet som det meste av opplærings- og faglitteratur, supportoppføringer, bloggposter og guider omhandler.

    Når du programmerer er det alltid godt å ha gode støtteverktøy og Eclipse er nettopp et slikt støtteverktøy. I tillegg til å gi en god oversikt over kildefilene og syntaksfarging får du hjelp til å huske rammeverkene igjennom auto-complete og dokumentasjon. Når det kommer til kompilering, debugging og testing har Eclipse også mange gode hjelpefunksjoner som gjør jobben enklere for deg.

    Eclipse kan lastes ned fra prosjektets hjemmesider. I downloads-seksjonen finner du flere versjoner hvor mange er satt sammen spesielt for forskjellige programmeringsmiljøer eller arbeidssituasjoner, men jeg pleier å laste ned Classic. Dersom du skulle trenge noe mer funksjonalitet senere er det mulig å laste ned plug-ins igjennom Eclipse.

    3. Last ned Android verktøyene

    Får å kunne begynne Androidutvikling på maskinen din trenger du Android SDK – programvareutviklingspakke (Software Development Kit). Denne pakka inneholder en rekke terminalverktøy for å klargjøre, teste og debugge Androidprogrammer, men også verktøy som er nyttige i utviklingsprosessen, for eksempel et pakkehåndteringssystem for å laste ned kildekode til de forskjellige Androidversjonene og en Emulator som gjør at du kan kjøre ditt program i forskjellige Androidplattformer uten å ha fysisk tilgang til maskinvaren. Softwaren lastes ned fra Android sine hjemmesider og installasjonen er grei, tidligere har jeg installert filene i Apples Developer-mappe på root, men etter endringen av plasseringen av utviklingsfilene som kom med Mountain Lion, har jeg nå opprettet en src-mappe i hjemmappen min (jeg er eneste bruker som utvikler på laptoppen min).

    4. Gjør Eclipse klar for Android

    Nå som vi har lastet ned utviklingsverktøyet Eclipse og Android-pakka gjenstår det bare et steg, og det er å sammenkoble de nevnte delene igjennom Androids Eclipse plug-in. Dette laster du ned i selve Eclipse. Gå først i til “Help”, deretter “Install New Software”. Skriv så inn linken

     https://dl-ssl.google.com/android/eclipse/ 

    (dersom denne ikke fungerer, se på denne siden, det kan jo hende at det har endret seg). Nå som du har installert Android Eclipse plug-in har du en link mellom Eclipse og Android kompilatoren samt Emulatoren og annet småtjafs. Du har nå også fått lenket kildekoden til redigeringsprogrammet så mens du skriver Android kode vil forslag dukke opp, skrivefeil rettes og feilmeldinger vises før du faktisk kompilerer koden. Her finner du Android verktøyene. Når du har installert android-verktøyene for Eclipse kan du åpne Android-vinduet og laste ned de versjonene du ønsker å utvikle for. Last gjerne ned noen av de ferdige programmene så du kan se igjennom deres kode for å finne ut av hvordan forskjellige programmer kan kodes.

    5. Test ut oppsettet

    Nå skal alle de nødvendige programmene være installert. Gå nå inn, velg nytt prosjekt og velg Android prosjekt. Fyll inn ønsket Android versjon – hvis du ikke er sikker på hvilken versjon, bare velg et av de høyeste nummerene, målet nå er jo å teste. Følg menyen igjennom, og vær sikker på at du genererer prosjektet med en aktivitet (Activity). Koden vil nå genereres, og når dette er gjennomført vil du kunne kjøre et helt enkelt utgangspunkt med en aktivitet og et utsyn (view) ved hjelp av emulatoren. Dersom du allerede ikke har satt opp en emulator vil du, når du ønsker å kjøre programmet, et vindu hvor du kan skape emulatorer. Skap et nytt emulatorbilde basert på den ferskeste versjonen og benytt dette for å kjøre koden.

  • Panorama

    A couple of weeks ago I replaced my ever faithful brick-Nokia with a recent smart phone. I like HTC and when my friend Henrik (an excellent salesman working at Elkjøp Ullevål – in case you need new a new phone) recommended X One I chose that instead of Samsungs result from the collaboration with Google, the Nexsus.

    This post is not so much about the phones, but more about the photographic quality of new phones and some cool features, most importantly the title function – the new panorama function in Android 4.0. I’ve always been fascinated by good photographic works and in upper secondary I started playing around with digital cameras though I still chose to shoot SLR pictures with an analogue camera, using the classic tangible 45mm film. Just years earlier we bought (still living at home so more correctly, my dad bought) a digital camera from HP. This camera had the specs of a five year old phone with 1.3 Megapixels picture processor, and since it was communicating with the computer through a very slow Serial interface (Our Intel Pentium II didn’t support this interface anyway) higher resolution would just result in more frustration. Anyway the digital and the analogue had very much the same features at this time, the analogue had just much higher technical quality.

    Lets jump forward to 2012 again, now analogue cameras are a rarity. Digital sensors are fitted into High-Fidelity equipment and used in everything from action movies to small indie-productions, so the quality and range of artistic impression is maintained even when cellulite and plastic is replaced with digital sensors. At the same time users of digital technology is using filters made to resemblance analogue noise and cheap techniques with advanced cameras. I don’t know if this is to make an authentic feeling or anything else, but instagram and hipstamatic does make some cool photos (I find it fascinating how pinhole has become a popular effect. After all with was the lack of lens which led to projection methods for capturing images).

    With my new phone there are two effects that I find especially cool, and this is mostly because they just don’t add a layer of colours by changing the HSI-values or adding a mask. The HDR, or High Dynamic Range and the Panorama. For more about HDR i recommend the Wikpedia entry or this blog post by Richard Coyne.

    Panorama

    The panoramic picture is known for its width and perspective (at least when you go extreme with the rotation you cram into a flat surface). With the earliest cameras it was also possible to make panoramic photos and in the beginning the technique was very simple. You aligned pictures next to each other and used glue or other tangible tools. The first version of the digital photos had a similar technique. You took different pictures and then you opened them in a special program which added the pictures next to each other. The big difference here is that the result was a brand new picture composed of two instead of two separate glued together, a nice thing made possible when operating with pixels in bits not atom.

    This process was tiresome, no help to show you where to take the next picture since there was no way of remembering the boundries of the pictures already taken. Well, some solved this problem by adding a part of the last picture in the beginning of the next. Some camera producers even made the part semi-transparent, those fancy pants.

    I never created panorama pictures that much. I love it through, panorama, both when it is presented in a spherical enviroment such as at the Norwegian theme park Hunderfossen, but particularly when it’s presented on a flat surface. It’s like seeing the world normally located around you in front of you. Now, I can create more, and I want to thank technology for that. In Android 4 it is an ingenious panorama function which makes it harder for the phone (CPU-cycle wise) and easier for the user. Just swipe your camera from left to right or from right to left. In this swiping movement you are presented rectangles at where the camera wants you to move past. When you focus the rectangle the camera takes a picture and calculates where the next rectangle should be placed. Very elegant. And when your pictures are taken it automatically calculate the panoramic picture.

    Enough of the text, let’s see some pictures

    Since the picture is not taken at once you may see that somethings reappear in more than one picture. If a person moves from one frame to the next as a picture is taken he will appear in both. Can you spot some of these “deja vu”s?

  • Visuell programmering i Processing

    I dag holdt jeg en liten innledning og workshop om visuell programmering hos Norsk Telemuseum på Kjelsås. Jeg ønsket å vise fram programmeringsmiljøet rundt Processing og var også innom forskjellige emner jeg mener er viktig i dagens IT-landskap. I hovedsak orienterte dette seg om data og interfaces, eller data og dingser som jeg kalte det. En artikkel på det kontekstuelle kommer snart, men inntil videre kan du forsøke deg på oppgavesettet jeg lagde til den praktiske gjennomføringen av kurset. Jeg tror denne praktiske delen godt også kan fungere som en del 1 i serien “lær programmering med processing”.

     

    Et enkelt program:
    Syntaks introdusert: Kommentarer, print(), println(), size().

    + Start opp processing
    + Skriv en åpningskommentar på toppen av programmet ved å sette inn //. Alt som følger etter disse tegnene fram til linjeskift vil ikke bli prosessert. Dersom du ønsker flere linjer med kommentarer kan du bruke /* i begynnelsen av kommentarblokken og avslutte med */
    + Klikk på play-knappen for å åpne sketsjen. Hva dukket opp. Klikk på x-symbolet i vinduet som åpnet.

    +Skriv kommandoen size(x,y) i programmet. Denne kommandoen tar to parametere. X angir bredden og y angir høyden i pixler. Erstatt x og y med nummere. Forsøk forskjellige tall og se resultatet ved å klikke på play etter å ha endret et av tallene. Normalt sett skal variblene være mellom 1 og 1200, avhengig av oppløsningen støttet av datamaskinen. Du må avslutte en kommando med et semikolon.

    + Skriv ut en tekst til terminalen ved å bruke kommandoen print() og println(). Dette kan være en tekststreng, et nummer eller tegn. Tegn og tekststrenger må termineres, dette gjøres ved å sette et hermetegn i hver ende.

    Resultat:

    //Dette er en kommentar
    /* Vi kan også kommentere
    over flere linjer med kode */
    
    size(200,300);
    print(“Dette er en commando fra programmet”);
    println(“Hello World!”);
    print(“Dette skal komme på en ny linje”);

    Variabler
    Syntaks introdusert: int, float, String, char, boolean, +, -, /, *
    + Nå har du laget ditt eget lille program. Forsøk nå å bytt ut nummerene fra size med variabler. Variablene skriver du ved å først initialisere dem med datatype og navn for deretter å sette en verdi til dem. Variabler er plassholdere for verdier.

    int x = 200;

     int y = 500; 

    + Opprette et par nye int-variabler. Velg navn selv, men følg
    navnekonvensjonene som bestemmer at en variabel skal begynne med liten bokstav og ikke ha mellomrom. Sett disse til forskjellige tall og forsøk og opprett nye variabler ved å utføre matematiske funksjoner på eksistrerende variabler inn i nye.

    + Opprett en variabel for en tekststreng og skriv en velkomstmelding til denne (Bruk type String i stedet for int). Deklarer variablene på toppen av dokumentet og referer til det nedover. Bruk regneartene til å legge verdier inn i nye variabler. Eksempel:

    int i = 10;

    String k = “Dette er en tekststreng”; 

    int j = 5;

    int k = i* j;

    println(k);

    Vi har hittil benyttes oss int og String (String skrives med stor forbokstav, mens alle andre datatyper vi bruker her skrives med små bokstaver). int er kort for integer (heltall), og String er en tekststreng, som også kan være tall som ikke kan regnes på. I tillegg bruker vi float som er flyttall (eks 1.2), char som er enkelttegn og boolean som true eller false. Forsøk å utfør følgende kode, og gjett hva du får:

    int a = 3;

    int b = 2; 

    int c = a / b; 

    println(c);

    + Forsøk å endre a eller b og c til float. Hvilket svar får du nå.
    + Opprett en variabel boolean og sett denne til false eller true. Hva skjer? Skriv denne ut.

    Resultat:

    // Variabler for size-kommandoen

    int x = 200;

    int y = 500;

    // Tekst

    String tekst = “Dette er en hilsen”

    boolean test = false;

    println(test);

    //Variabler for å teste verdier

    int i = 10;

    int j = 5

    int k = i* j;

    println(k);

    //Variabler for å teste heltall og flyttallsdivisjon

    int a = 3;

    float b = 2;

    float c = a / b;

    println(c);

    //Dette er en kommentar

    /* Vi kan også kommentere over

    flere linjer med kode */

    size(x,y);

    print(“Dette er en commando fra programmet”);

    println(tekst);

    print(“Dette skal komme på en ny linje”);

     

    Punkter, linjer og firkanter i Processing
    Syntaks introdusert: point(), line(), rect().

    Nå som du har kjennskap til variabler og funksjonskall i programmering kan vi begynne å more oss med funksjonaliteten i Proessing. Funksjonene point(), line(), og rect() tegner det de heter. Point tar to verdier, x og y som blir punktets koordinater på lerretet. Line tar fire argumenter, de to første er x og y for utgangspunktet og de to siste er x og y for sluttpunktet. Rect tar også fire argumenter: x, y, bredde og høyde.

    size(500,500);

    rect(10,10,50,50);

    rect(20,60,200,100);

    rect(200,400,70,70);

    line(0,0,500,500);

    line(0,500,500,0);

    I denne introduksjonen tar vi bare for oss en 2D kontekst. I denne konteksten refererer vi til posisjoner som i et kartesiansk rom. Utgangspunktet for koordinatene er øvre venstre hjørne. Derfor vil høyere tall på x aksen bevege objektet mot høyre, og høyere tall på y aksen nedover. Dette kan du selv forsøke ved å endre på nummerene i koden ovenfor. Fra dette eksempelet kan du også se hvordan objektene blir tegnet til lerretet. Dersom et objekt er tegnet og et nytt objekt seinere skal være i samme område blir det siste tegnet over det første.

    For å skape en kode det er lettere å endre (selv om Processing programmer aldri burde bli så lange at all oversikt blir borte) kan du bruke height og width, som er konstanter satt av programmet. Disse er også reserverte ord i programmet. La oss teste dette ved å endre på koden for de to siste linjene i eksempelet over.

    line(0,0,width,height);

    line(0,height,width,0);

    Å tegne punkter er ganske kjedelig på dette tidspunktet, men frykt ikke, om litt kommer du til å kunne tegne punkter på en annen måte, noe som gjør det mye morsommere.

     

    Variabler og if/else
    Syntaks introdusert: if, else, blokker.
    + Nå begynner det å bli en del kode, så nå kan du enten opprette en ny fil eller fjerne all teksten ved å markere koden du allerede har og fjerne denne på samme måte som i en tekstbehandler.
    +Opprett en if-blokk. Den ser omtrent ut som dette:

    if(logisk spørring) {

    // Gjør noe dersom logisk spørring er tilfelle

    } else {

    // Gjør noe annet dersom det ikke er tilfelle

    }

    En logisk spørring resulterer i en boolean verdi som kan være enten true eller false. For enkelhetsskyld opprett en boolean variabel og sett denne til true. Referer til denne i if(variabel). Disse logiske spørringene etterfølges av en blokk. Tenk på denne blokken som en inndeling av kode som gjennomføres. Du kan gjøre så mye du ønsker i blokken, og denne kan bestå av en kommando eller hundre, men husk å start og slutt blokken med krøllparanteser.

    boolean test = false;

    if(test) { 

    print(“Denne kommer ikke til skrives ut ”); 

    println(“Kan du finne ut hvorfor?”);

    } 

    Det hele blir mer interessant når du kan teste på verdier i de logiske spørringene. Typiske spørringer for tall er ==,eller en kombinasjon av disse.
     int i = 50; 
     if(i == 20 ){  
     println(“Hvordan kan du få skrevet ut dette?”); 
     } 

    Her kan du se at = og == er to forskjellige. Den første setter er verdi til en variabel og den andre tester om to verdier er de samme.

    + Forsøk nå å lage en egen if-else forgrening der du skriver ut noe dersom en verdi er sann og noe annet dersom dette ikke er tilfelle.

     

    Løkker
    Syntaks introdusert: for, while.

    Løkker er et nyttig redskap for å gjøre en handling mange ganger. De består gjerne av en logisk spørring, en blokk og en endring. Den enkleste løkka er while(), som til norsk kan oversettes til mens. Så for å oversette den syntaktiske meningen kan du si at en while løkke går mens spørringen er sann.

    //setter variabelen i 
    int i = 0; 
    //mens i er mindre enn tusen 
    while(i < 1000){ 
    //Denne har du ikke sett ennå, men her skriver vi ut 
    //verdien av i 
    println(i++); 
    // i++ er kortform for i = i+1 
    } 

    + Hvis du vil være litt vågal kan du nå forsøke å endre i++ til i. Gjett hva som skjer først og deretter test det. Litt av moroa med å programmere er at uansett hvor mange feil du gjør skjer det ikke noe veldig alvorlig.

    Den andre formen for løkker er for()-løkker. Disse er litt mer avanserte enn while, og ser typisk slik ut:

    for(int i = 0; i < 100; i++ ){ }

    Hvis du tenker på hva slags funksjoner som en løkke typisk inneholder, er alle disse implementert i en for-løkke. Vi kan forstå en for-løkke som for(startvariabel; utgangskriterie; inkrement) { blokk }. Når en variabel blir opprettet innenfor en blokk er den usynlig utenfor. Deklarer derfor variabler du ønsker å aksessere igjennom hele programmet utenfor en løkke, eller funksjon. I eksempelet ovenfor ser du at i blir deklarert i den logiske spørringen.
    + Forsøk å skriv ut verdien av i nedenfor den siste krøllparantesen. Hva skjer? Hva skjer dersom du deklarerer i ovenfor for-løkka?

    + Tegn et stort antall geometriske gjenstander i Processing ved hjelp av løkker. Forsøk å endre noen av parameterene ved å trekke inn iteratoren i løkka i tegnefunksjonene.

     

    Funksjoner
    Syntaks introdusert: funksjoner, void

    Å kunne skrive kode er vel og bra, men når koden blir lengre oppstår det et behov for å abstrahere vekk alle detaljer. Hvis du bruker, som vi har gjort tidligere i heftet, bokstaver som variabelnavn kommer du ganske raskt til å gå tom, dessuten kan det være vanskelig å huske mange navn. En annen fordel ved å lage metoder er at disse kan kalles fra hvilket som helst sted i programmet. Dette gjør det enkelt å hoppe fram og tilbake i koden.

    Metoder deklareres med
    returtype navn(argument1, argument2, argumentN){
    //Her skriver du innmaten
    }

    Returtyper kan være alle datatyper, eller ingenting. Dersom du bruker en datatype må du bruke utrykket return samt en verdi eller variabel som inneholder data av typen oppgitt.
    Denne funksjonen tar to argumenter av typen heltall og returnerer et heltall med summen av disse to tallene.

    int plusser(int tall1, int tall2){ return tall1 + tall2; }

    Denne funksjonen returnerer en sannhetsverdi av et heltall om hvorvidt dette tallet er et partall. Denne funksjonen introduserer et nytt tegn % – modulo – Dette utrykket returnerer rest ved divisjon. Premisset er at et partall som deles på to ikke skal returnere en rest. If grenen tester om dette er sant og returnerer true hvis dette er tilfelle.

    boolean isPartall(int tall){

    if(tall %2 == 0){

    return true;

    } else {

    return false;

    }

     

    setup() og draw()
    Syntaks introdusert: setup(), draw(), noLoop().

    Processing har to funksjoner du som programmerer skriver. Disse heter setup() og draw(). Selv om du kan lage et program uten disse, kan det være en fordel å stykke programmets funksjonalitetet, som ikke allerede har sin egen funksjon, inn i disse blokkene. I setup() skriver du kode som eksekveres en gang i begynnelsen av programmet. Her kan du plassere size() metoden samt andre definisjoner og kall som ikke trengs å være en del av draw()-loopen.

    I draw() skriver du all funksjonalitetet som kjøres for å tegne. Skal du lage geometriske figurerer er det lurt å gjøre dette her. Denne funksjonen kjører helt til du kaller noLoop(). Du kan også kalle noLoop() i setup() for å la programmet kjøre kun en gang.

    Verken setup() eller draw() returnerer en verdi og tar derfor returneringstypen void.

    Et godt utgangspunkt kan se slik ut:

    void setup {

    size(200,200);

    noLoop();

    }

     

    void draw() {

    point(width/2, height/2);

    }

    Dette lille programmet setter en prikk midt på skjermen.

     

    Farger
    Syntaks introdusert: color(), background(), fill(), stroke(), noFill(), noStroke()

    Farger kan få prosjektet til å se mye flottere ut, og kan også være en effektiv måte å gruppere forskjellig informasjon. Processing støtter forskjellige typer farger, men her bruker vi RGB-baserte farger hvor hver av verdiene settes til et tall mellom 0 og 255.

    color() brukes for å sette en farge til en variabel av typen color. F.eks
    color c1 = color(0,0,255);
    Dette gjør det enkelt å referere til farger senere i programmet og slik gjøre det enkelt å holde en fargeplan. Du kan bruke fargevariabler eller fargeverdier igjennom programmet
    background() tar en farge og setter denne til bakgrunnen. For å lage en applikasjon der ting skrevet til lerretet ikke blir der i neste runde av draw() må du kalle background() i draw. Det kan være lurt å la background være det første som blir kalt i draw().

    Objektene du tegner på skjermen i Processing er litt som ting i Photoshop og andre steder, de har en linje som følger formen og innmat. Du kan sette hvilken farge disse har ved å kalle fill() og/eller stroke() før du tegner en form. Fargene du setter med disse metodene vil være der til du setter de på nytt.

    Siden vi allererede har vært igjennom blokker og løkker la oss tegne noen farger. Denne lille kodesnutten kommer til å tegne rødt, grønt og blått i steg fra svart (0) til full farge (255)

    /* Skriver ut fargene i RGB-fargebånd. Går i steg på 2px per verdi fra 0 til 255, 

    skriver ut hver farge i 50 pixler brede remser. */ 

     

    void setup() { 

    size(3*50, 3*255); 

    // Setter størrelsen til antall bånd 

    //* 3 og antall steg *3. 

    noStroke(); 

    //Bruker ikke rand-farging 

    background(255); 

    //I utgangspunktet hvit farge 

    noLoop(); 

    // Programmet eksekverer og stopper. Draw kun kalt en gang. 

    } 
    
    
     // Tegner rødt
     void draw() { 
     for(int r = 0; r < 255; r++){
     fill(r,0,0); 
     rect(0,r*3,50,3); 
     } 
    
    
     // Tegner grønt 
     for(int g = 0; g < 255; g++){
     fill(0,g,0); 
     rect(50,g*3,50,3); 
     }  
    
    
    // Tegner blått 
    for(int b = 0; b < 255; b++){
     fill(0,0,b); 
     rect(100,b*3,50,3); 
     } 
    } 

     

    Mus

    La oss returnere til punktene. Disse ønsket vi å ikke tegne selv siden de er veldig små, og du først ser morsomme resultater når du har mange av dem.

    + Skriv en setup() funksjon som setter størrelsen til 500×500 pixler. Husk å ikke ta med kallet til noLoop(). Ta deretter å skriv en draw() funksjon som plasserer en prikk midt på skjermen. Bytt nå ut prikkens x-koordinat med mouseX og prikkens y-koordinat med mouseY. Beveg musepekeren rundt på skjermen.

    + Forsøk å skrive bakground(155) i begynnelsen av draw() funksjonen. Hva skjer? Ta den vekk. Hva skjer nå?

     

    Arrays og online ressurser

    Et annet viktig element innen programmering er arrays. Denne kan være av alle datatyper og er en organisert samling av data. Gå inn på processing.org og se etter array i dokumentasjonen.

    + Forsøk å opprett en array med 10 forskjellige tekststrenger. Skriv deretter ut verdien av hver av disse ved hjelp av en for-løkke og println. NB: Dette er vanskelig. Se om du finner ut hvordan du kan gjøre dette ved hjelp av google, eller kontakt meg.

     

    Jeg håper å komme tilbake med mer Processing-kode snart, men i mellomtiden anbefaler jeg tutorialene som ligger ute på Processing.org. Temaer jeg ønsker å dekke neste gang inkluderer å lese til og fra fil, XML og objektorientering.

     

    Bildet er tatt fra Flickr brukeren blprnt. Det er lisensiert under en Creative Commons lisens. 


  • On Technology

    This text started with the title “Technological meditations”. The text is not so much written to be a result as it is written as a stimuli for a process where my goal was to get a deeper understanding of the technological phenomenon.


    Technology plays an important role in how we perceive ourselves as human beings,
    how we perceive nature and how we organise our lives. Technology is an integrated
    part in most areas of our lives, and several disciplines are interested in technology, but
    on different levels. Engineering, science, economics and many more disciplines are
    working with and trying to understand technology. How a bridge could be improved,
    a new natural phenomenon could be harnessed or how we can diffuse new software
    more often to larger audiences are interesting questions, but not for our investigation.
    This paper will look at technology from a philosophical perspective, first by trying to
    define the nature of technology itself and then by viewing different ways in which
    technology, and its close relation to science, is influencing society.

    We are living in technological times, and technology is dominating an ever-increasing
    number of areas of human existence. Medical technology has prolonged our life
    expectancy. Transportation technology, such as trains, road systems of highways and
    aeroplanes have increased the distance of how far we can travel and shortened the
    time we use on these. More global trading ensures that we can get raw material,
    products and services from all over the world, and with computer technology we can
    communicate with people on the other side of the planet in real time according to the
    narrative of progress (Ihde 1993, 60-61).

    On the other hand, humanity today poses several threats to the planet and also to our
    existence. Some of these are results of technological exploitation of the planet’s
    natural resources. The use of non-renewable energy sources such as oil, gas and coal
    have increased the emission of carbon dioxide and there is an agreement that this has
    caused or speed up the greenhouse effect. This environmental problem is what
    philosopher of science Don Ihde categorises as the Big Problem: this refers to the
    effect on the earth as being an inhabited globe, and also including large industrial
    accidents such as Chernobyl, the Valdez oil spill and the ongoing problem in
    Fukushima (Ihde 1993, 87-88).

    Not all issues raised by technology have an environmental aspect however; other
    problems also arise from the introduction of new technology. An example is the
    increasing number of communication technology devices and aggregation of digital
    traces. Surveillance technology has been made possible to a much larger extent than
    earlier. The European Union is now tracking traffic generated by individuals in the
    digital sphere, but also commercial agents are using the new technology to track their
    customers and employees. This raises questions as to how technology should be used,
    and where ethical and moral limits should be set.

    The idea for this article while reading Evgeny Morozov’s book The Net Delusion. In
    this book, Morozov points out the limitations of the Internet in promoting democracy.
    What he calls a delusion is the expectations placed in information technology to solve
    big problems. He quotes several members of the American public sphere, including
    Wall Street Journal’s Yochi Dreazen, National Public Radio’s Daniell Schorr and
    Nicholas Kristof from New York Times, all of whom are pointing to social media as
    the main instigators or the Middle East uprisings (Morozov 2011, 2). This zeitgeist he
    diagnoses as what he coins “cyber-utopianism” and “Internet centrism” (Morozov

    2011, xvii). The issue, which Morozov introduces, is a persistent belief in the
    superiority of information technology and its technological fixes; that technology has
    some built-in values, which will automatically foster freedom, wealth and democracy.

    Morozov argues for a more realistic view on information technology, one that rather
    focuses on the dilemmas information technology create rather than on the built-in
    solutions. He does not deny that social media such as Twitter, Facebook or various
    blogs can contribute to free speech, more social engagement and, ultimately,
    democratic government, but he identifies and asks questions about an established
    axiom where this is the inevitable result of technological progress rather than an
    hypothesis among others. He asks the reader, and the Western media and politicians,
    to look behind the technology and to see that there are also other factors relevant for
    promoting democracy; social media is just one element among many. He ridicules
    what he considers to be the mainstream perception with an old ontological quote: “If a
    tree falls in the forest and everyone tweets about it, it may not be the tweets that
    moved it” (Morozov 2011, 16).

    I want to take advantage of this topic, but to broaden its scope, as I see its academic
    and philosophical undertones. I want to have a closer look at some ideas of
    technology, its limitations and its effect on the society. In order to do this I will
    start by looking on different definition of technology.

    What is technology?

    First I want to discuss the concept of technology. This is not an easy task as the
    concept has many areas which can be excluded or included depending on which
    definition we choose to use. Definitions are not neutral, and in the search for an
    understanding of technology what we consider to be technological implicates what we
    consider to be technology, how it comes about and our critique of it.

    To decide what should be counted for as a technology leaves us in a similar
    predicament as Karl Popper experienced as he tried to demarcate what should be
    regarded as a science and what should not. That physics is to be considered as a
    science and an aeroplane a piece of technology is not a controversial statement; but
    what about social administration, or computational algorithms? Should they count as
    technologies as well? Let us start by looking to the lexical and etymological
    understanding of the word.

    A search in the Cambridge dictionary on technology gives us the following definition:
    “(the study and knowledge of) the practical, especially industrial, use of scientific
    discoveries” (Cambridge Dictionaries Online 2011). A search in Oxford dictionaries
    gives us a similar result: “the application of scientific knowledge for practical
    purposes, especially in industry.” (Oxford Dictionaries 2011)

    The German philosopher Martin Heidegger gives an etymological account of the
    word technology and some of its early philosophical use in his essay The Question
    Concerning Technology. He writes that the word technology stems from Greek and
    means something that belongs to techne; Technikon. He also points out two things
    worth observing with this word: that it is not only describing the activities or skills of
    the craftsman, but also that of the mind and the fine arts. It belongs to bringing-forth; to poisis. This is a broader sense of the word technology than it being an application
    of scientific knowledge.

    These two different understandings leave us with a leap of definition. I want to
    understand the lexical definition as a view on modern technology. This is a definition
    we will spend some time trying to understand; we can also see that there is a link
    between science and technology in this definition. So probably more correct usage for
    the contemporary associations connected to technology would be to use “high
    technology”, or “high-tech” for short. This, as we can see, varies from Heidegger’s
    etymological understanding of the word, which has a broader notion.

    It is important that we keep a distinction here between what I would like to coin as
    micro and macro technology. The micro technology is, for example, a pen, a
    computer or an algorithm. Macro technology, on the other hand, is the totality of all
    technology. When we speak about a technological artefact, we are within the field of
    micro technology. On the other hand, when we speak about technology as an ideology
    and a way of observing the world, I will understand this as macro technology. We
    will return to the totality of technology later. Let us first have a closer look at the
    individual technological objects.

    Technology must fulfill a human purpose; it is an assemblage of practices and
    components. It is often used to refer to the entire collection of devices and practices,
    which are available to culture (Arthur 2009, 28)

    How do we understand technology?

    A philosophical theory asserts that we first see technology when it breaks down. This
    concept leads us to Heidegger: a hammer is often used to illustrate this concept of
    breakdown. I prefer, however, to present the computer example presented by
    Winograd and Florence as well as Ihde. When one is using a computer to write an
    essay, for example, the underlying structure is not visible. The text document
    emulates a paper with standardised paper format and font set, but if the program
    crashes the abstracted structure will be revealed to the user. In other words, it will be
    brought to our attention (Winograd and Florence 1986, 33; Ihde 1993, 40). This
    example is used to illustrate that our experience with the text editor is made up from
    our praxes using the technology rather than our knowledge of the hammer.

    We will look closer at the latter. If we were to use the other perspective and interpret
    it in a praxis-oriented way, we will see at the flow which is created when writing,
    being abstracted from its technological nature is the goal. Since we choose to use the
    other perspective such a disruption of flow is what we want, as we wish to expose the
    underlying structure of sub-technologies. As we will see later in this article see, this
    makes up an important part of technologies in a “technology as nature” perspective.

    The nature of technology

    Just as a broken kettle, a heavy snowfall or a Null Pointer Exception withdraw us
    from the flow of our tasks they also make us aware of the underlying structure of
    technology. We look at the technology whether it is a kitchen appliance, a road with
    traffic chaos or a now terminated computer program, and we can see the underlying

    structure. This is one of the traits of technology as object according to W. Brian
    Arthur. In his book The Nature of Technology (2009) he pursues an understanding of
    technology in the micro scope. One of the traits he points out is that all technologies
    are made up of many sub-technologies.

    These sub-technologies are apparent inside the computer, which is made up of many
    modules, which on the lowest level is determined by the physical attributes of the
    material of which the components are made. Not only does a technological artefact
    consist of many underlying sub-technologies, it partakes also as a sub-system in itself.
    A computer could partake as sub-technology of a computer network, or in an
    organisation’s production apparatus. A third trait is that technology is also executing
    one or more functions, and these are determined by the context in which they take
    place. A toy can be meant for children, but ending up being circuit-bended as an
    instrument in a concert.

    In their execution, technology takes part in a complex of interactive processes,
    constantly relying on and calling each other. In our kettle, a button completes an
    electric circuit, which gets broken when a sensor detects that the water is boiling. All
    these parts which make up the totality is also technology. A similar notion of
    fragmentation of sub-technologies and its complexities can be found in an argument
    for a free capitalistic market economy.

    The economist Leonard Read has already in his text I, Pencil (1958) shown the
    complexity behind the production of one apparently simple object. His essay states
    that the creation of a pencil is far from as mundane as it may be expected, and that in
    fact nobody could alone be able to produce a pencil of corresponding quality with one
    that can be bought. Reads article presents a key argument in the capitalist debate as a
    defence of Adam Smith’s theory of the invisible hand. This text is very much linked to
    technology as the production process Read references consists of the extraction of
    several raw materials and how these are refined into smaller subsystems such as the
    rubber, the metal ring, the graphite and the wooden exterior. To return to the
    explanations of Andrew, the pencil takes advantage of the phenomenon that graphite
    transfers coloured particles when scratched across a surface. Based on the natural phenomenon clusters.

    Technological domains

    “[Different] families of phenomena – the chemical ones, electrical ones,
    quantum ones – are mined into and harnessed, they give rise to
    groupings of technologies that work naturally together.”
    (Arthur 2009, 69)

    A method of grouping technology together is to place them in appropriate categories
    according to which natural phenomena which they utilise. For example, within the
    field of electronics, the electron is the phenomena being harnessed. Each of these
    technological domains has different “rules” formed into a “grammar”. This
    “grammar” determines the allowable combination within each domain; this could be
    how elements interact, and how they combine various structures. These grammars

    ultimately arise from the natural phenomenon harnessed to utilise this domain, they
    are not necessary strictly separated and combined with each other, but organised as
    clusters of technologies which share commonality and which have the ability to work
    together (Arthur 2009, 70). Each domain holds a repository of elements, which is
    standing ready and can be used (Arthur 2009, 79).

    The field of electronics, for example, is based upon the nature of the electrons and
    computers are based upon our understanding of logic and structures expanded from
    bits. At the same time domains are dependent on other domains, as the logical
    operation in a computer is dependent on the physical material the sub-technologies are
    built. This has to do with the nature of the domain, but is independent of what tasks
    that can be executed across the respective fields. Arithmetic operations were also
    performed before the introduction of computers. Abacus and various mechanical
    calculation devices were used to do these tasks. With the introduction of
    computational operations, mathematical problems are solved in a more efficient way,
    but they can still be undertaken outside the technological domain. There are, however,
    some limitations.

    This can be illustrated with Dreyfus’ view on the limitations of the tasks possible for a
    computer to do. In his books What Computers Can’t Do and What Computers Still
    Can’t Do, he gives an account of the limitations in the domain of computing. The
    field of artificial intelligence (AI) can solve complex mathematical equations, sort
    through a huge number of data in seconds, and in 1997 the IBM super computer Deep
    Blue won a chess game against the then current world champion Garry Kasparov.
    These are examples of tasks that computers are generally good at, but in other areas it
    is hard to introduce the computer. This is apparent when it comes to doing
    commonsensical tasks and operating on processes that do not follow an explicit
    pattern of operations. Just as Morozov asked about the legitimacy of the causal
    relation between more Internet access and the rise of a liberal democracy, Dreyfus
    identifies the limitation inherit in digital technology when it comes to emulating
    human intellectual faculties. From the following quote, written by two experts on
    artificial intelligence, Allen Newell and Herbert Simon, Dreyfus identifies a set of
    assumptions about the similarities between the human brain and computers.

    “It can be seen that this approach makes no assumption that the
    ‘hardware’ of computers and brains are similar, beyond the assumptions
    that both are general purpose symbol-manipulating devices, and that the
    computer can be programmed to execute elementary information
    processes functionally quite like those executed by the brain”
    (Cited in Dreyfus 1994, 155, from Computer Simulation of Human
    Thinking)

    From this quote Dreyfus identifies four assumptions which he later refuses; a
    biological, a physiological, an epistemological and a digital (Dreyfus 1994, 155).
    There are four fundamental axioms of our human existence; that the brain works
    through on and off switches, that the brain functions as a device on bits of information
    according to rules, that knowledge can be formalised, and that the world must be
    analysable as a set of situation-free determinate objects. This leads to an expectation
    that computers can do thinking similar to the way humans do.

    We have now looked at technology in a micro perspective, but technology does not
    exist alone. It exists in a relation with humans, but how does this relation affect
    humans? Ihde points out that there are no human cultures that are pre-technological.
    Cultures have embedded technology into their lifeworlds through all of human history
    (Ihde 1993, 49). Since the early periods when technology was found and applied,
    humans have modified technology to interact with the world and to gratify our needs.
    Technology is also a defining paradigm for naming the epochs of human development
    up until the modern age.

    Ihde mentions three further traits for technology: first it has to be some kind of
    material substance; secondly, it must enter some human praxis in which humans make
    use of these components; and finally there has to be a relation between the
    technologies and the humans who use, design, make, or modify the technologies in
    question (Ihde 1993, 47).

    The relationship between science and technology

    What we have chosen to understand as macro technology, or Technology with a
    capital T, is a characterisation of the metaphysical tradition of science, and calculative
    reason. This technology in total includes a view, which seeks to frame the world (Ihde
    2004, 102). This appears with high technology that has a close relationship to modern
    science.

    The knowledge-producing discourse dominating our contemporary society is often
    referred to as “techno scientific”. Both Ihde and Arthur mention what could be viewed
    as a symbiotic relationship between science and technology (Ihde 1993, 74; Arthur
    2009, 64). The instruments used in temporary science are strongly technological, and
    the understanding of how to take advantage of the natural resources are in many areas
    influenced by, if not impossible without, science. The relationship between science
    and technology is one of causality; novel phenomena provide new technologies,
    which in turn help discover new phenomena (Arthur 2009, 66). For example, the
    thermometer detects and standardises the concept of temperature; it would be
    impossible to repeat a scientific experiment of Baconian standards without having
    instruments to ensure that the subsequent experiments are conducted in an identical
    fashion.

    As we saw with the technological domains, the “grammar” is decided by the
    harnessing of the natural phenomena which is what the domain is built upon. Here
    science holds a key function as it exposes the predicted nature of certain elements
    under different conditions, and this is the way in which technology can work upon the
    natural phenomena.

    Science and its discipline of physics is described by Heidegger: “[a] coherence of
    forces calculable in advance, it orders its experiments precisely for the purpose of
    asking whether and how nature reports itself when set up in this way.” (Heidegger)
    The equipment and methodology of science tries to verify or falsify a hypothesis set
    in a strict and controlled environment. To find a predictable pattern in which
    something occurs tells us something about nature, or in Heideggerian terms, it
    discloses something. This is the foundation of modern science. To reveal the potential of the natural phenomena, and by focusing on this perspective we can overlook other
    ways in which nature can be perceived.

    Heidegger also thinks that the current unfolding of technology threatens revealing.
    By this, he means there is the threat of the possibility that all revealing will be
    consumed in ordering and that everything will present itself only in the
    unconcealment of standing-reserve. Heidegger also mentions that humans are changed
    by this process. As man is serving the challenging-forth, or the search and
    development, in which man enframes the world. Enframing here could be understand
    as a rack or framwork, into which the world is categorised. By doing this he may
    think he disclosures the world, while he is in fact is concealing it through his pursuit
    to enframe.

    “The hydroelectric plant is set into the current of the Rhine. It sets the
    Rhine to supplying its hydraulic pressure, which then sets the turbines
    turning. This turning sets those machines in motion whose thrust sets
    going the electric current for which the longdistance power station and
    its network of cables are set up to dispatch electricity. In the context of
    the interlocking processes pertaining to the orderly disposition of
    electrical energy, even the Rhine itself appears to be something at our
    command. The hydroelectric plant is not built into the Rhine River as
    was the old wooden bridge that joined bank with bank for hundreds of
    years. Rather, the river is dammed up into the power plant. What the
    river is now, namely, a water-power supplier, derives from the essence
    of the power station.” (Heidegger).

    Heidegger is sceptical to this view in which nature is being turned into Bestand, or in
    English ‘standing-reserve’. In the quote mentioned above he explains the difference
    between an old wooden bridge crossing the Rhine is different from a dam producing
    electricity. In a “technology as nature view” they are both executing a human purpose,
    but in different ways. From a Heideggerian view, however, the dam is a way of
    turning the Rhine into a standing reserve; a resource that can be exploited when
    needed. This is not a neutral action or something free from ideology. This view of
    nature is strongly influenced by values, but in the disguise of rationality.

    The social effects of technology

    Technology is also an important perspective in the Marxist understanding of historical
    development; it makes up the base in Marxist analysis of society. In this theory,
    means of production is the base, and the determing force for the superstructure which
    contains ideology, culture, religion and other ‘soft’ aspects.

    Herbert Marcus is associated with the Frankfurt Institute for Social Science, also
    known as the Frankfurt school. In his famous book, One Dimensional Man, he comes
    with a critique of contemporary society, and how an essential critical theory, such as
    how the ideas of liberal democracy were upon its inception, has first prevailed and
    then imposed a restrictive way of living on human beings. He believes that the
    technological and scientific process has turned into an instrument of domination:

    “A comfortable, smooth, reasonable, democratic, unfreedom prevails
    in advance industrial civilization, a token of technical progress.
    Indeed, what could be more rational than the suppression of
    individuality in the mechanization of socially necessary but painful
    performances; the concentration of individual enterprises in more
    effective, more productive corporations; the regulation of free
    competition among unequally equipped economic subjects; the
    curtailment of prerogatives and national sovereignties which impede
    the international organization of resources. “
    (Opening of One Dimensional Man, Herbert Marcuse 1964, 3)

    Marcuse’s one dimensional man lives in the one dimensional society and thinks one-
    dimensional thoughts. This, Marcuse believes, is a result of how the contemporary
    society is working. He thinks that technology is far from neutral and is used to enslave
    people. He sees the modern high technology society as one which is having an
    apparent rational appearance, but which ultimately is far from this. The technological
    rational reason comes with a set of expectations of how a society should be governed,
    how we should live our lives, and what progress is to be made. According to Ihde,
    Marcuse saw the rise of Technology as a technocratic ideology, and that the neutrality
    is not at all neutral; it brought with it a form of domination (Ihde 1993, 34).
    According to Marcuse freedom is something which comes in negation. To be
    economically free is to be free from economical oppression; to be politically free is to
    be free from political oppression. In modern society, people are forced to have a job
    to be able to live and a perpetual circle of work and consumption defines existence.
    This, he thinks, is an inherent value in society: “Theoretical and practical Reason,
    academic and social behaviourism meet on common ground: that of an advance
    society which makes scientific and technical progress into an instrument of
    domination.” (Marcuse 1964, 18)

    Throughout this paper we have had a closer look at technology, both as a nature in
    itself and related to the society. First we looked at the lexical and etymological
    definitions of technology, and then we divided between two domains of technology
    which we coined micro and macro perspectives. We have also seen that technologies
    are integrated in modules and at different levels, and that these become apparent as a
    technological device breaks down, these devices can also be grouped into different
    domains on behalf of which natural phenomena they harness in their execution. We
    have also seen that technology does not promote a value neutral worldview, but that it
    is laden with values concerning our experience and relation to nature. This is what
    Martin Heidegger coined ‘bestand’ or standing reserve.

    Modern technology has a close relation to science, in a relationship that can be called
    reciprocal. Science is in need of technological instruments to develop, and new
    domains of technology is established as new natural phenomena are discovered.

    From Hubert Dreyfus have we seen that Artificial Intelligence has limitations in how
    computers can emulate human intellectual faculties, but that they are good at dealing
    with operations which can be reduced to numbers. As noted, computers are good
    devices for this purpose, but not good for working at more implicit sides of

    knowledge, such as common sense. In the beginning of this text, I introduced a
    critique from Evgeny Morozov of Western policy makers where he pointed towards
    the misleading assumption that technology itself could fix problems. This is not just a
    naïve assumption, but also potentially harmful. I do not mean to say that technology is
    either bad or good in itself, but we have seen that possibilities are created with new
    technologies.

    Herbert Marcuse argued that technology in fact promotes values, the technological
    rational view is laden of values of how life should be lived, and how progress is to be
    pursued. Modern technological society has a system for upholding its own existence,
    and to dominate the humans living in it.

     

    Sources:

    Arthur, W. Brian (2009). The nature of technology – What it is and how it evolves.
    London: Penguin books

    Dreyfus, Hubert L. (1994). What computers still can’t do – A Critique of Artificial
    Reason. Cambridge, MA: The MIT Press

    Heidegger, Martin. The Question Concerning Technology. Retrieved April 11, 2011,
    from http://www.wright.edu/cola/Dept/PHL/Class/P.Internet/PITexts/QCT.html

    Ihde, Don (1993). Philosophy of Technology – An introduction. New York: Paragon
    House

    Ihde, Don (2004). Philosophy of Technology. In World and Worldhood. Ed: P. Kemp.
    London: Springer Retrieved April 10, 2011, from
    http://www.springerlink.com/content/h711479032312757/

    Marcuse, Herbert (1964). One-Dimensional Man – Studies of the ideology of advance
    industrial society. London: Routledge Classics

    Morozov, Evgeny (2011). The Net Delusion – How not to liberate the world. London:
    Penguin books

    Read, Leonard E (1958). I, Pencil. Retrieved March 20, 2011 from
    http://www.fee.org/library/books/i-pencil-2/

    Technology. (2011). Oxford Dictionaries. Oxford University Press. Retrieved April
    13, 2011, from
    http://oxforddictionaries.com/view/entry/m_en_gb0848700#m_en_gb0848700

    Technology. (2011). Cambridge Dictionaries Online. Cambridge University Press.
    Retrieved April 13, 2011, from
    http://dictionary.cambridge.org/dictionary/british/technology

    Winograd,Terry and Fernando Flores (1986) Understanding computers and cognition
    – a new foundation for design. Norwood, N.J. : Ablex Publishing

     

    The picture is by Tony Brierton, and is shared under a Creative Commons license. The picture is found on his Flickr-page.

     

  • Trenger du hjelp med digitale medier?

    Mye tyder på at digitale medier har kommet for å bli. Samtidig peker mye i retning av at disse kommer til å være like, om ikke mer, aktuelle i årene som kommer. Internet, Android, iPhone, iPad, HTML 5.0, Semantic web, nye lisensierings ordninger, cloud computing, QR koder, WiMax, Zigbee, Near Field Communication og Open Soruce. Dette er bare noen begreper og teknologier gjeldene i dag eller i nær framtid. Mulighetene er mange, og det kan være vanskelig å følge med.

    Du lurer kanskje på hvordan du kan komme inn i et slik marked? Burde du satse på det nyeste og freshe, eller burde du velge allerede standardiserte og utbredte løsninger? Hvilke løsninger er best for deg, og hvor du burde begynne er forhåpentligvis noe jeg kan hjelpe deg besvare. Under har jeg samlet noen områder jeg kan hjelpe deg med.

    Hjemmesider for flere skjermplattformer

    Internett var lenge forbeholdt datamaskiner i forskningssektoren og forsvaret, men med allmenngjøringen av Internett og introduksjonen av verdensveven på 90 tallet ble stadig flere tilkoblet, og i dag føres statistikk i større grad på antall enheter tilknyttet Internettet enn mennesker. De fleste i vesten har i dag flere enheter med mulighet for å kommunisere over Internettet, og særlig i Norge er gadgetlysten høy.  I dag benyttes det også mange forskjellige apparater for å innhente informasjon over internettet. PC, mobiler, nettbrett, e-bøker er noen av de løsningene som finnes i dag, men om kort tid kommer også andre apparater til å bli digitalisert og muliggjort for kommunikasjon. Web over TV har lenge vært utprøvd, men uten større hell. Med Google TV ser det ut til at dette kan bli mer enn en kuriositetfor “bleeding edge” konsumenter. Det kreves i dag websider ikke bare i standard oppløsning og standard brukergrensesnitt. Nye plattformer fordrer ny bruk.

    Det burde være unødvendig å forklare hvor viktig tilstedeværelse på nettet er, og det koster heller ikke mye å komme igang. For rundt tusen kroner kan du få registrert et domene, få tilgang til lagringsplass online og et innholdsystem. Jeg kan hjelpe deg sette opp et slikt system, og sørge for at du eller ditt foretak er på online iløpet av et par dager (registrering tar noe tid). Dersom du ønsker spesialtilpassede utseende på nettsiden kan vi også ordne dette. Ta kontakt for mer informasjon eller et uforpliktende tilbud.

    Applikasjoner for Android eller iPhone:

    Skreddersydde applikasjoner – aller apps som de populært blir kalt – for mobiler har blitt veldig populært nå som alle kan utvikle programmer . Både Google og Apple tilbyr løsninger der applikasjoner kan lastes ned gjennom nettbutikker, enten gratis eller for et rimelig beløp. Siden både Googles Android og Apples iPhone kommer med mye innebygd teknologi  kan mye moro skapes. Siden mange mobiler også er konstant tilkoblet Internet over WiFi eller 3G har også sanntids data-drevne applikasjoner blitt populære. Har du en god idè og ønsker å samarbeide med noen med teknisk kompetanse er jeg være interessert i å utvikle applikasjoner, ta kontakt også kan vi se nærmere på ulike løsninger. Jeg har riktignok ikke arbeidet mye innen dette feltet frem til nå men har kjennskap til Apples og Googles plattformer.

    Visualisering av informasjon:

    IT – Informasjons Teknologi – er et samlebegrep for datamaskiner, Internet og tilsvarende teknologier. Med raske prosessorer og klare instruksjoner kan mye informasjon håndteres, sorteres, samles, grupperes og representeres. Når det er sagt er det mye datamaskiner ikke er særlig gode på. Å gjennomføre en mer skjønnsmessig vurdering, å gjøre etisk riktige vurderinger (når vi ser bort i fra utilitarismen, og veldige rasjonalistiske tankesett) samt å trekke konklusjoner utenfor grenser eksplisitt satt er noe mennesker gjør langt bedre enn selv de kraftigste datamaskiner.

    Datamaskiner er (per definisjon) veldige gode på databehandling, de er også veldige gode på å presentere data ifra flere kilder og på forskjellige måter. Denne videoen er et eksempel på hvordan datamaskiner kan benyttes til å behandle og presentere data på nye og gode måter

    [youtube]http://www.youtube.com/watch?v=jbkSRLYSojo[/youtube]

    Ønsker du å gjøre noe lignende? Det kan vi ordne!

    Prototyping

    Ønsker du hjelp til å prototype et program eller et informasjonsteknologisk konsept? Har du et kjøleskap du ønsker å muliggjøre for Twitter? Ønsker du å styre volumet på stereoanlegget fra mobiltelefonens posisjon? Trenger du en ny Wii håndkontroll, og vil bruke mobiltelefonen din? Ta kontakt. Det er få grenser for hva en god idé, noen tegninger og litt programmering kan gjøre.

     

    Kontakt meg.

     

    “Information” er tatt av Heath Brandon, og er delt under en Creative Commons lisens. Se her for mer informasjon

     


  • The future of Ideas

    In the book The Future of Ideas –The fate of the commons in a connected world professor Lawrence Lessig at the Standford Law School introduces us to some issues of contemporary law and its implication on the Internet and creativity. Lessig, who is the chairman of Creative Commons, brings forward the restrictions imposed on the creativity by a hinge for more control on the physical, the code and the content layer. This division of layers he borrows from Yochai Benkler (23), and these three layers are used to explain the different aspects of the Internet culture, and its features.

    One of the fundamental elements of the Internet is the end to end principle (e2e). Behind this lies a premise that simplicity in the architecture will make the transmission easier, more cost-efficient and more reliable, as well as more equal between the users. This idea is incorporated into the architecture of the Internet and the IP protocol which is responsible for finding the receiver and transmitting the packages to her. Since the intelligence is located at the ends the code operating at the core of the network is not enabled to ask about the content of the package or making any handling differences between the different users. Other principles of the Internet norms include that each client is a potential server, and vice versa. The equality is ensured in the code, and this code is open to all to apply since it is donated to the public domain. As we will see, the commercialization of the Internet is, according to Lessig, threatening these principles as more control is being pursued.

    On the physical layer Lessig discusses the right the owners of infrastructure have to impose control over their customers. He draws attention to the cable companies, which have been restricting the freedom of their Internet users through their monopoly. The problem is that those larger corporations are using their monopolistic advantage on the platform to gain advantages over competitors on the content level. This is exemplified in how some cable companies are blocking online video, in the name of capacity, which is competing against the channels broadcasted on the network, other examples on limitations includes server restrictions, fixed backbone choice, filtering and no possibility to create a  home network (156-157). The ownership structure is also changing towards that of more horizontal ownership, meaning that the same corporations that own the infrastructure also are content producers, and they are using their control over several layers to discriminate competitors.

    On the content layer the interest organization of the movie and music industry (MPAA and RIAA) are using the new technology to strike down on possible infringements, and the US Congress and courts have in many ways let them do this, also outside the domain of copyright laws. They are increasing their control over the new services which are made possible by the Internet. perceive the consequences of this control oriented direction in copyright law as harmful. He points out that the argument behind the copyright law is, besides being an economic incentive through a limited monopoly on published work, to ensure the realization of fair use and to ensure the access to the work by the public. The latter has been overruled perpetually as the years a work is under the exclusive right of the author has increased. From initially 14 year to the lifetime of the copyright holder plus 70 years (107). Not only has there been an expansion in the law when it comes to duration, also the scope has been increased. From the first Copyright Act which gave authors of maps, charts and books an exclusive right, has the protection been expanded to also protect derivate work, and computer code among others. This means that the source code of programs made by organizations today will be protected for 95 years, in a world where major updates are shipped annually if not more frequent.

    Lessig is pursuing greater attention paid to the commons, as they are an important repository to enhance creativity and other aspects beneficial to society such as education and the creation of opinions. Ideas, throughout history, have been built on other ideas. The Internet and digital technology has reduced the production cost of being creative, and to distribute the works. It contains a great potential, as it was originally created, but this potential has been regulated and diminished by the skepticism of the old regime which has been executing its power in the three layers to keep their advantages.  Therefor Lessig asks for a weight decision between the market power of some companies on one hand and the value contributed to the society on the other. Can the strong rights of the copyright holder, the control exercised on the physical layer and the threats of private users, and impediment of new technology by the old players be justified, or do we need to change the laws and practices to enhance creativity again? (Lessig’s last words in the book are arguing that the initial values of the Internet are lost.)

    Lessig suggest several changes which can be made. The government could regulate that no major player on the Internet could empower its own strategic behavior, it could also allocate a sector on each band of the radio waves to the commons. He further suggests that time of the exclusive copy right should be limited, but expandable upon request, and that rights are granted after application and not universally as they are today. Incentives should be made for computer companies to release the code they are not using to the public, and to be granted copyright they would have to escrow their source code with the government, and the time frame should be shortened to 5 years, renewable once. On the content layer could the file sharing of music not be treated as property right, but rather through compulsory licensing with a fee set to strike balance. This system is today used by the cable networks, where they pay a licence to the broadcaster as compensation, but they are not required an explicit permission to distribute signals. Lessig does also mention that there should be limits on contract rights distributed with software so fair use can be upheld.

    The Future of Ideas –The fate of the commons in a connected world was written ten years ago, in 2001, and it is interesting how the examples, and the contemporary technology he mentions are historical today. Especially for the parts concerning the commons of the airwaves which he foresees have been actively introduced today with the wireless technology in local networks, RFID and Bluetooth. Despite the fact that there has been changes technically since the book was written are his ideas as important today as they were 10 years ago. Many of the problems Lessig mentions are still with us today, and they  can remind us that the future of the Internet as well as the directions this may take, is not only dependent on new technology, but also on legislation regulating the layers in which the Internet operates.

    As an alternative to copyright Lessig has worked on an alternative juridical licencing framework which creators can use with their works: Creative Commons. This framework is being adjusted to local law throughout the world, and make it possible to share work under alternative licences: Attribute, share-alike, Non Commercial and No Derivatives.

    Literature

    Creative Commons, About the Licences. Retrieved from: <http://creativecommons.org/licenses/>
    Lessig, Lawrence.(2001) The future of Ideas. New York: Vintage Books

    If you don’t want to buy the book it is also available under CC from Lawrence Lessig’s homepage

    The picture is borrowed from Darren Tunnicliff on Flickr and the picture is licenced under…..you guessed it…..Creative Commons

  • Electronic Workshop Weekend: Arduino

    After an inspiring lecture on circuit bending and electronics held by Edinburgh based digital artist Yann Seznec last week I decided to try something new. In this lecture we looked at some interesting possibility in using electronics separately and in combination with computers. This seemed like an interesting domain to check out, so I ordered some electronic components and an Arduino to play with the ideas from the lecture to learn more about it.

    Perhaps the most interesting part is that electronics offer us to work at a lower abstraction level than the computer. Another advantage is the alternative inputs and outputs you can use in combination with projects in everything from low level C to high level Max MSP.  Hearing a relay click or to see some simple LEDs blinking gives a feeling of mastery on the same level as sorting algorithms and searching through huge databases, and by getting it to communicate with the computer you can experiment beyond the limits of the sandbox provided in the computer. Why not let a variable in the program be dependent on the temperature in the room, or on the amount of light? Or you can turn it around and let the result of your last budget result in a green or a red lamp blinking. Or maybe you want the number of visitors of your webpage be represented by the frequency of a tune from a speaker. Maybe you want to combine it together with the power of the Internet to take a picture each time your alarm clock goes off and publish this using Twitter or surveillance the toaster through its own blog where it will put a new post as the toast reach for the sky? Well, you have the opportunity.

    The most obvious difference from playing around with computers is that the electronic components are physically alterable and the real deal; no surprise, but it has implications. If you simulate a higher voltage than expected or connect something the wrong way in a computer program the worst thing that would happen is that the program prompt a catched error or maybe an infamous null pointer exception. Dealing with real voltages and circuits, the components can bust, but if you make sure not to use anything really powerful and read the instructions when you use more complicated components such as micro controllers you should be OK.  The set I bought contained several components, and endless opportunities. In the beginning I tried to get a LED to flash and to gather input from the photo sensor, but with time and training I was able to do some more advance stuff, and in the end of a long day I managed to controll the time between each exposure on my DSLR (great for time lapse).

    The interface between the computer and the components is the Ardurino. This is a little blue board with some analog ports, some digital ports, an USB connector and a power inlet. It is running on open source software downloadable from the homepage. The program is very similar to Processing, and has the opportunity to compile and upload the code, and to receive messages sent from the board. The board can run alone with software uploaded and using the ports on the board you can make small programs, meaing that you don’t need to have it hooked up to the computer to play around. If you want to use wireless technology or controll the board using Ethernet there are shields supporting Bluetooth and RJ45 Ethernet connections available. You can also get smaller components with Ardurino loader if you want to bring with you the logic programmed away from the little blue board.

    There is a wide variety of components, and they all have their distinctive features and functions.Measuring temperature, light, radon level, speed, direction, proximity, RFID tags, taking pictures, well you find all kinds of components to hook up, and if you don’t want to buy new, you can always reuse your old toys, as in this video.

    As we know from electric and electronic theory, the whole play is about getting the electricity from plus to minus and in between the polarities we can play around. The electricity will find the shortest path in terms of resistance, and the circuiut has to be complete to work. One of the easiest circuits are made by connecting an outlet from one of the digital ports through a LED, further through a resistor and then to ground. The lamp will be switched on when the port is set to high, and accordingly switched off when the port is set to low. This can be realized using the digital port (0 or 1, off or on), but using the analog ports the Arduino can address the lamp with a signal between 0 and 255 (a byte instead of a bit), which makes it possible to dim or to set it to a value in between the 0 and the 1. The repspective ports can be set at both input and output, and this is done really easy through methods in the Arduino “language”, there are also many libraries to do everyting from utilizing advance components with the board to sending messages to different software.

    I have created a folder here, where I will put up some source code as I try out different things. I will also see if I can get up some sketches of the components as well. Until further, here are some pictures taken while playing around.

  • Grown up digital

    Grown up digital is the second latest book signed the Canadian author Don Tapscott. Published in 2008 it was released twelve years after one of his earlier books Growing up digital. The book is a generational study of the Net Generation, and throughout the book Tapscott presents traits associated with NetGeners, and how these affect different institutions. The institutions which the computer-savvy generation is affecting includes the educational and the commercial sector, the work place, the family and the political system in both state and volunteer form.

    The Net Generation is made up of the cohort born between 1977 and 1997, following the Baby Boom Generation (1946-1964) and the Generation X (1965-1976). They differ from their parental generation in various ways, and their exposure to digital media plays an important part in their life. The experience of one-way communication, strong hierarchies, slow procedures is something the Net geners do not like since they have grown up with a technology enabling immediate response, constant communication with their peers and constant access to information. The Net geners are not just being subject to the digital technology, they are also changing it, and since this is an important aspect of the knowledge economy this may be a reason to the flatten hierarchy of the family, of the work place and in their education. The Net generation has been involved in a bigger part of family life taking part in the decision making process in their home, they are expecting to be a part of executive decisions at the work place, and to have influence over arenas where they participate. The book does also imply a paradigmatic shift from the workplace, the politics and the education of the industrial age, which now have to be replaced with a more egalitarian, faster, flexible and entertaining system to fit with the norms of the Net Geners.

    Tapscott lists eight Net Generation norms: freedom, customize, scrutinize, integrity and openness, entertainment and play, collaboration and relationship, speed, and innovation (34-36). These norms are important throughout the book and make up a framework for how the new generation can be understood. Freedom is important in, for example, how the Net Geners want to work. Instead of face time at work, they want to have the opportunity to work from home, work flexible hours, to combine work with family life and to try out new jobs (161). The broadcasting model is obsolete; with two-way communication enabled through the Internet two way content is also expected, this changes how things are done. Regarding politics Tapscott mentions the presidential campaign of Barak Obama as a new way of doing political campaigns. The leader of his online presence Chris Huges made a people-powered campaign to win the election. Through the influence of friends on social networking sites, through authentic encouragements from famous people on YouTube, through a web page filled with content and do-it-yourself instructions and a financing model based on many small contributions rather than few large sponsors played an important role in Obama winning the nomination and the election. It is also a moral side to this, since the Net Generation is used to navigating through the Internet where content can be published by everyone, and where companies, peers as well as more negative aspects such as bullies and other threats are lurking around the generation has developed a higher criticism to information. This combined with the powerful search and storage functions of the cloud politicians, companies both as producers and as potential employers and other are subject to scrutiny. Videos on YouTube are juxtaposing video clips of politicians presenting inconsistent opinions to different groups, or videos of speeches years earlier purporting different opinions from what they are presenting today. Youth in developing countries are writing about corporate behaviour in the south, and this is influencing consumer behaviour in the north, and user reviews with elaborated technological specifications makes the active consumers choose between the products which are best fulfilling their needs. All information needed is online, and if not the Net Geners are able to publish what is missing.

    The book begins and ends with negative claims about the Net Generation written in books such as The Dumbest Generation: How the Digital Age Stupefies Young Americans and Jeopardizes Our Future by Mark Bauerlein, Crazy Busy by Edward Hallowell or the Spoiled Rotten: Today’s Children and How to Change Them seminars held by Fred Gosman. I perceive Tapscotts book as an answer to these claims about the generation growing up with digital communication technology. The book consists of many examples used to falsify the claims of the Net Generation being lazy, stealing, unengaged in society and other vices. The book is a good introduction to understand the Net Generation and how they are affecting the society, it sees the generation from a positive perspective and includes many interviews, examples as well as statistics to reinforce this view.

    Reference: Tapscott, Dan (2008). Grown up digital: How the net generation is changing your world. London: Mc Graw Hill

    *I have deliberately referred to the net generation as second person plural to keep a distance while reviewing the book.

  • The Work of Art in the Age of Digital Reproduction

    In the book the Work of Art in the Age of Mechanical Reproduction from 1936 critical theorist and member of the Frankfurt school Walter Benjamin discusses the work of art in modern time. He uses photography and film as examples of how the mechanical reproduction breaks with the traditional aspect of artworks, and with religious cultic aspects to be replaced by displayability.
    All art is reproducible: what man has made, man has always been able to make again, however the reproduction of art is somewhat particular and have happened intermittently through time (Benjamin 3). Reproduction has been made possible with printing techniques, as in copperplate engraving and etching, which ultimately lead to lithography, but with photography the work done by hand was replaced by decisions made by the eye. The speed in which things could be photographed, the possibility of enlargement of sections, and with the film the introduction of a temporal narrative changed the work of art.

    Further, Benjamin writes that the invention of the photography has removed the reproduced artwork of its ritual value and its aura. “The genuineness of an art work is the quintessence of everything since its creation that can be handed down, from its material duration to the historical witness that it bears” (7). This constitutes the aura of the work, and as the work is reproduce this disappears. Let us exemplify this by the comparison between the famous mural The Last Supper by Leonardo da Vinci and a postcard depicturing this mural. The actual mural, and as for paintings in general, is not suitable for being watched by many simultaneously, but the reproduced copy can be seen by many more and can be seen other places than in Milan. The emphasis of the painting is its cultic value the photographic reproduction its displayability.

    The film in 1936 was a physical film exposed to light, chemically processed into a negative, which could be produced into many exemplars. None of the copies was being more authentic than the others. This effect is increased with the emergence of digital media. In the age of digital reproduction it is meaningless to speak about an original or master, since copies can be extracted without a loss in quality since they consists of exactly the same stream of bits as the original. We can say that the digital reproduction is taken yet another step from the mechanically reproduction since an exemplar is now existing in the world without a physical manifestation in itself. It is being stored on hard drives, but unlike the film negative, it is not chemically imprinted into the hardware but stored in magnetically particles or in solid-state disks. Whether the work is located on a server accessed through the Internet – in the cloud – or in a memory card in your computer, the bit stream is abstracted from a physical presence. A file, a sequence of binary bits, will as long as it is not altered by compression or other methods, stay in the same bit-stream independent of which computer, memory-card or disk-medium it exists. The work of art, digitally reproduced is no longer bound to a physical media, neither is it bound to a geographical place.
    Simultaneously as this is happening, some cell phone applications try to resemble a visual expression from the past, through digitally manipulating pictures to look like those shoot with a pinhole camera, or adding elements resembling the holes of a film reel or the white plane at the bottom of a Polaroid picture. The digital reproduction has started a trend where mechanical reproduction is emulated.

    Literature
    Benjamin, Walter (2008) The Work of Art in the Age of Mechanical Reproduction London: Penguin Books

    The picture is shot during a trip to France and Spain the summer of 2008 at the Walter Benjamin Memorial in the Spanish city of Port Bou close to the French border. Benjamin died here while fleeing from the Nazi Germany 27th of September 1940.

  • Congratulations, Wikipedia

    The 15th of January 2001 a new encyclopaedia was released. Beginning with Nupedia Larry Sanger and Jimmy Welsh created an online web encyclopaedia, where expert authors wrote articles which were followed up by a formal peer process, not unlike how articles in the academic world are created. Later Wikipedia was introduced and this site which was independent form Nupedia, became based on a more democratized model with an open editing model and collective correction based on consensus.

    Wikipedia, as a word, is created through the combination of wiki and pedia. The former is the Hawaiian word for fast, and the latter is derived from paidos meaning child, but means in this context referenced work arranged alphabetically from its use in encyclopaedia.

    Wikipedia history has been influential. According to Alexia, the site is the seventh most visited in the world, and it is being used extensively. Many of the information based sectors have become dependent on the new online source of facts. Since its nature is free, open and under a more liberal reuse IP regime with GNU and Creative Commons licences it has been accepted as a place where online forums, blogs and debates are referring to. Within the educational sector and especially at academic levels this has provoked debates; can Wikipedia be used as a source? Is it trustworthy? Who have the authorial responsibility for the articles published on Wikipedia? The online encyclopaedia has also been criticised for quoting material from others which is protected under copyright. The open nature of Wikipedia has also made articles on controversial figures and topics to a place for falsities and libelous comments.

    The weakness is simultaneously the strength. Since it is unclear if the information is written by laymen or experts it is open for scrutiny for the increasing number of people gathering information online. In one of my fields, computer science, I find Wikipedia very useful and often a good source for information. I have found relative few falsities myself, but it happens I uncover some bad formulations, off-topic contemplation and personal opinions, but as long as one know what Wikipedia is and how it works and takes this into consideration it is a great place of information. The problem is that as long as 98% of the information is correct, it is still 2% which is incorrect, and this minority makes the whole uncertain. For a better control on the articles written is more text backed up by external authors who have been through a verification process and this increases the trustworthiness of the site. I would like to have a seal of approval on the articles which has been through extensive scrutiny and a warning if it is still a draft; this is something I hope gets implemented the next ten years. There is nothing wrong using Wikipedia, but information acquired here has to be checked towards third party sources, and when Wikipedia is being used it has to been referred to.

    I want to wish Wikipedia congratulations on their 10th year anniversary and hope that the next 10 year will be equally successful. Welcome to your adolescence, Wikipedia.