Browsed by
Category: Programming

Create Thumbnails Programatically

Create Thumbnails Programatically

If you have several images following a certain structure on a web page and want them as thumbnails, it can be useful to programatically create these. The manual way of creating thumbnails (using Photoshop or similar) can often be time consuming while the execution time for a script resizing an image is counted in microseconds. If you already have a script this can also be fitted for other similar situations. With the Python Image Library (PIL) thumbnails can be created…

Read More Read More

What does your Twitter followers look like

What does your Twitter followers look like

I like Twitter. It’s the virtual world’s answer to Post-it notes, well not really, but the nature of the site constrains people from droning on-and-on about a topic. The restrictions in the number of characters a user may put into a tweet causes brevity, which is ideal when the total number of people who you follow is increasing and the live-feed of Tweets is updated several times per minute. This restrictions in the number of characters have fostered a certain…

Read More Read More

Screen Scraping med Python

Screen Scraping med Python

Tim Berners-Lee, Internetts pappa, snakker i et inspirerende TED foredrag om the web of data, og oppfordrer alle til å dele sine data. Ideen med web of data er at webben fram til i dag hovedsakelig har vært dokumentbasert og at denne nå endres til å bli mer databasert. I webbens dokumenter ligger det mye bakenforliggende informasjon hvor det semantiske innholdet ofte kan være utfordrende å hente ut, spesielt hvis du er en datamaskin. Selv om, ideeltt sett, all informasjon…

Read More Read More

iProgrammering

iProgrammering

Det har vært interessant å følge Apples utvikling de siste 11 årene siden de slapp første versjon av Mac OS X. I 2001 ble versjon 10 (derav X) sluppet, og denne hadde en rekke forandringer fra tidligere versjoner. Apple opplevde en nedtur på 90-tallet og ønsket på et tidspunkt å kjøpe inn eksternt operativsystem framfor å videreutvikle sitte eget selv. Mange alternativer ble vurdert, men istedet for å velge for eksempel Suns unix-baserte Solaris, eller Windows NT (som faktisk ble…

Read More Read More

Start with Ruby on Rails

Start with Ruby on Rails

Over the last two months I have been looking into a new way of doing web-development, and found an ingenious timesaver in the relatively new and popular framework Ruby on Rails. It all started as I wanted to add some back-end functionality to some of the technologies I have experimented with on lovholm.net/projects. Front-end development is exiting with new super-fast Javascript engines, expanded possibilities with the new CSS3 implementation, and easy-to-use frameworks such as Processing.js and jQuery. It is fun…

Read More Read More

Lær programmering med Processing: del 0

Lær programmering med Processing: del 0

Nå er det lenge siden jeg har oppdatert bloggen med en post på norsk. Dette skyldes at jeg har arbeidet med en master på engelsk, og har ønsket å kun fokusere på et språk. Nå er oppgaven levert inn, og jeg kan endelig igjen bruke tid på å skrive uformelt og jovialt om ting der interessen komme og går. Det har vært en interessant prosess å skrive en større oppgave, men jeg har savnet å skunne skrive kortere artikler uten…

Read More Read More

New version of Non-linear narrative

New version of Non-linear narrative

As the second semester in my master program is moving towards the end I have some content I want to share with you all. Beside the digital marketplace course and a reading course I have been working on a digital media studio project, or as we call it, the DMSP. In this course sound designers, the digital design media students, the composers and some of us, the digital media and culture students, have been working together on different projects using…

Read More Read More

No more testing inferno

No more testing inferno

If you have spent time trying out the endless opportunities contained in the art of programming you know how frustrating testing can be. Endless nights and days with an endless amount of  changing variables and recompiling. A missing semicolon, a misspelled word, well, the reasons to frustrations are many.  I know how it is, and I feel with you, you have my sympathy when you trying to clear up a for-for-for-for loop with ten different curly brackets, and that’s just…

Read More Read More

Object Oriented Programming

Object Oriented Programming

This post is written as a blog post on the Digital Media Studio Project blog Non-Linear Narratives. In this post I want to discuss some aspect of object oriented programming, and some philosophy behind the non-linear computer program in its current version. The program is built in Processing, which utilizes the Java programming language, and is ideal to make sketches with its easy-to-create graphical user interface (GUI). Processing has a clear division between its two runtime methods which are crucial…

Read More Read More

Non-linear Narratives and Agents in Processing

Non-linear Narratives and Agents in Processing

The last weeks my Digital Media Studio Project group and I have been spinning around ideas on how to make a non-linear narrative based on a computer model using agents. This is an interesting way of taking advantage of Object Oriented Modelling, since the agents have attributes and methods relevant to humans. The model is based upon a matrix consisting of two arrays, this model is ideal to represent geographical space, and especially maps seen from above because of the…

Read More Read More