Steffest Digitale Pulptuur

Tag: Programming

42 berichten

USB LED graphic equaliser

Another demo of the LED-matrix screen.
This time I created a program that monitors the audio levels of your PC and renders a graphic equaliser or a simple VU meter on the LED-panel.
Of course the scrolling text is also still present.

Video preview
Download the original video (FLV)


Much to my surprise the hardest part was how to capture the audio information of your PC.
After some digging I ended up with the most excellent BASS audio library of Un4seen.
It's very well documented and very easy to integrate in your own projects.
Luckily some examples where included how a graphic equaliser works because that stuff gets pretty theoretical very fast ! (and I had no clue)

The idea is to build a large - but low-res - custom LED wall (or hey ... a T-shirt you know) to replace the current 8x8 LED matrix. I have something wandering my mind of a panel, 60cm width and 240 cm high, with 8x16 or even 16x32 RGB led-boxes.
We'll see what resolution I can achieve and what will run out first: my mind, my time or my budget :-)

Gadgets, in English, ProgrammingReacties (0)

Twitter on a tiny LED display

As a small exercise in my progress towards to ultimate tweetshirt, I created an interface for a 8x8 LED matrix display.
It doesn't do much at this moment: a program runs on the PC, fetches your latest tweet and controls the USB attached LEDs to show it as scrolling text.

Video preview
Download the original video (FLV)

The hardware is from Byvac and is cheap and easy, but also a bit limited.
The software is by me and uses their IASI-2 protocol
The scrolling is in fact much smoother then appears in the video.
Maybe I'll rework the hardware interface to control a 4x4x4 LED cube.
I ordered an Arduino today, which will allow much more low level processing and control for these kind of things
a 8x8 RGB display seems a nice project to start with, hoping to scale up to a 16x16 grid if things are going well.

Gadgets, in English, Programming, TwitterReacties (2)

Koekentrein

mobile_3_20_24 PM_1172009koekentrein.jpg

Suikerkoeken trein gemaakt. Berefun!
En eigenlijk was dit ook een test voor een twitter/blog client voor windows mobile dat ik in elkaar flansde, mét ondersteuning om rechtreeks foto's en video's vanop je mobiele telefoon te posten.
Het post of naar je blog, of naar twitter/plurk/facebook, of naar alletwee tegelijk.

Mooi, dat schijnt netjes te werken. Nu nog een naam verzinnen
(Posted by mobile phone)

Blogging, in 't Nederlands, Lifelog, Programming, TwitterReacties (0)

Tweetshirt

tweetshirt.jpg

Yesterday I gave a demo of my TWEET-SHIRT at Barcamp Gent.
A tweetshirt is a web connected t-shirt with an embedded display that can be configured through a web interface to diplay a.o. live Twitter feeds, Flickr pictures, custom texts ....
Every t-shirt has a web-interface that allows one to configure what is shown on the display.
www.tweetshirt.net

Big fun!
The demo was done with a prototype I just finished the day before, pieced together with old cellphone parts, a 2,5 inch video display and lots of duct tape.

It still has some design flaws, mainly the heat produced by the display (it's comfortable the first 10 minutes but it actually gets VERY hot).
Also the battery drain is excessive: I walked around fully wired with a 9-volt battery in my pocket and used about 4 of them during 1 day.

It's a concept, but it's a concept I want to take further so I gues I'm on the lookout for hardware partners or other interested partners to get this thing to a finished wearable product.
Thanks bnox for spreading !

I started the project as a real-life case for the use of Flash (Lite) as development platform for mobile devices. So everything (including the webinterface) is written in flash lite (meaning you can also control your T-shirt with any flash-lite enabled mobile phone)
Everying runs both on the mobile device as in standard websites, so you can just as easily put the widget on your site as some form of twitter/flickr display.


Below are the slides of my presentation. (also made in Flash lite - just click to proceed)


These kind of ideas have a "networked" way of growing, So thanks to Dorien for the inspiration, Clopin for the slogan and also maeseele for a very cool add-on idea: (the X-ray:  connect a mini-camera at the back of the T-shirt, so you'd have a see-through effect when looking at the front display.)

Gadgets, in English, Mobile, Programming, Twitter, Web 2.0Reacties (3)

Pitches and speeches

Wauw - What a great speech that was - the Obama victory speech.
You can rewatch it here and reread it here.
Although he's probably not written it himself, clearly Obama has a way with words and a gift to inspire people with his ideas.
That's a gift, and something the world can use, an inspiring leader, and probably one of the main reasons he won.

It's not a gift that I have :-)
"I'm a developer - I don't do pitches (very well)" I tweeted some time ago at FOWA, when I was picked as 1 of the 3 winners for the Adobe AIR competition that had to present their idea to a expert-panel and to the public.
The video recording of those presentations are now online.
A bit shocking to see yourselves one stage - especially with such a cruel English accent - but well - it was fun :-)
The video is here.
Steffest FOWA Video
My app-idea came accross a bit incomprehensible I'm afraid. I just wanted to cram everything in that one minute. (Big mistake BTW)
It was an idea I woke up with that morning and turned it in a few minutes before deadline, but actually it was just a variation on the little ideas I build for myself all the time: bridging the gap between your PC and the world around you, allowing you to have a two way interaction between your PC and its environment.
That's also why I like the Tikitag project that much: it's another method of interaction to add to the chain: moving RFID-tagged objects around the place to trigger actions on your PC (thus linking a physical object to the web)
Voice recognition, X10 control, webcam controls ... all methods of interaction with the real world around you, thus enriching your experience.

The Relocally thing - As I dubbed it - is another example: what if you could enrich the way you access your online social network by allowing trusted accounts a controlled access to your PC to trigger some event.
Like when you send a tweet with a link to a music file, and that file would be played instantly on the PC's of your connected contacts.
Or what if you (or someone else your trust) could control your (PC based) video recorder - or your lights - or your ... whatever ... by tracking messages from Twitter, facebook, Netlog ...
For example it could listen for colours and adjust the lighting accordingly (probably more suited for public places that what to give the audience some form of interaction)
The though behind this is always the same: make sure all devices are connected to the web in one way or another and are able to receive input from the web, and you'll have a whoppingly cool system that brings the web in your home without being tied to a computer all the time.
Relocally would then enable your remote friends to interact with your environmental experience - and if that would enrich your experience ... why not ?

And then that Richard Moross guy spoiled the moment a bit by asking how I would monetize the app ...
Excuse me ? Monetize it? No thank you, why would you want to monetize on an idea that's about social experience ?
Djeez.

Anyway - probably AIR is not the right platform to build it on because it still has very limited access to the host (e.g. it can't spawn new processes) and probably this idea will end up in one of my homebrewn domotica/automation setups, but still ...
To borrow some Obama words:
    So let us summon a new spirit
    This is our time:
  Can we build it?     YES WE CAN !
Yes We Can

in English, Programming, Scripting, Twitter, Web 2.0Reacties (0)

Cloudcamp Brussel

Frank stuurde me een mailtje om mijn aandacht erop te vestigen dat er volgende donderdag een soort mini-barcamp specifiek rond cloud computing plaatsvindt: Cloudcamp
Waarschijnlijk wist hij niet dat dat een schot in de roos was - ik ben al een tijdje aan het uitkijken naar een hosting oplossing die het toelaat goedkoop met server instances te smossen voor kleine startup projectjes en die toch de mogelijkheid bieden naadloos door te schalen als de applicatie wat tractie krijgt.
Cloud computing belooft dat allemaal waar te kunnen maken.
Op FOWA was dat al in van de hot topics, maar een gelegenheid om dat eens op Belgische schaal te bespreken komt als geroepen.
Dus: Op naar Brussel, donderdag 30 oktober om 20 uur (bovendien is't gratis en is er nog plaats)

Een oplossing als Google app engine spreekt me niet aan: door je applicatie in een specifiek scripting framework te schrijven koppel je jezelf onherroepelijk vast aan de Google engine - een gevaarlijke positie om jezelf in te zetten want waar ga je heen als je niet meer tevreden bent van het platform of wanneer google besluit je account te blokkeren ?

In de meer generieke virtuele server oplossingen lijken de 2 interessantste oplossingen de Amazon Elastic Cloud te zijn en UK based Flexiscale.
Of het allemaal wel zo financieel interessant is voor de wat grotere projecten, vergeleken met een eigen dedicated server?
Ik heb er zo mijn twijfels over, maar het is zeker de moeite om er wat dieper in te duiken.
Te beginnen met cloudcamp

in 't Nederlands, Programming, Web 2.0Reacties (0)

Bloggeheugen

gearsa.jpg

Hoeveel tijd is een developer eigenlijk kwijt met het in topconditie houden van zijn systemen, of het opzetten van nieuwe systemen ?
Veel teveel in ieder geval, en dat is allemaal tijd die je NIET kunt spenderen aan meer nuttige zaken zoals blogs lezen, de live persconferentie volgen van de eerste Google Android phone of - allez vooruit dan - wat ontwikkelwerk doen.

Hier wat dingen die ik deze week nodig had en die naar mijn goesting veel te lang duurden (Ik zet ze hier zodat ik er de volgende keer niet zo lang naar moet zoeken)

  • Om in linux een apt-get install programma weer te verwijderen: apt-get remove
  • Om een NTSC miniDV te capturen (met de Vista video import wizzard) : eerste een seconde de tape afspelen zonder de import te starten, dan de tape pauzeren, dan de import wizzard starten (anders denkt Vista dat het een PAL tape is)
  • Om in IIS7 Classic asp pagina's aan de praat te krijgen:
    • error meldingen naar de browser sturen (ipv de standaard melding) : %windir%\system32\inetsrv\appcmd set config -section:asp -scriptErrorSentToBrowser:true
    • om parent paths terug toe te laten: %windir%\system32\inetsrv\appcmd set config -section:asp -enableParentPaths:true
    • om de loadUserProfile voor de Default Application Pool af te zetten (zodat access databases terug benaderbaar zijn)
      %windir%\system32\inetsrv\appcmd set config /section:applicationPools /[name='DefaultAppPool'].processModel.loadUserProfile:false
    • en om dan de Network Service temp directory op read/write rechten te zetten:
      icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant Users:(CI)(S,WD,AD,X)
      icacls %windir%\serviceprofiles\networkservice\AppData\Local\Temp /grant "CREATOR OWNER":(OI)(CI)(IO)(F)
    • als je dan de oude (en onveilige) beschijvende errormeldingen terug wil om te debuggen
      %windir%\system32\inetsrv\appcmd.exe set config "websitenaam" -section:system.webServer/httpErrors  /errormode:"Detailed" /commit:apphost
      en
      %windir%\system32\inetsrv\appcmd.exe set config "websitenaam" -section:system.webServer/asp /scriptErrorSentToBrowser:"true" /commit:apphost


Bon, genoeg generd !

in 't Nederlands, Programming, ScriptingReacties (1)

twitter2identica and plurk2identica

Another day, another social network.

Today all the buzz was about Identi.ca, a twitter clone, but based on the open source Laconica

the 140 char limit posting thing made it an ideal target to hook up to Feedtweeter: Keeping track of all those social networks gets a little insane, so it makes sense to have a tool that syncs all your networks, no ? Post something in twitter or plurk, and it will appear in Identi.ca too.
Here's the post-to-idetica script in VB Identi.ca has no official API yet, but the approach is the same as the Plurk posting: just hit the website and simulate the login and posting forms.


<%
identicaAccount = "Steffest"
identicaPass = "*********"
	
identica("hello identicaworld!")
	
	
function identica(message)
	
	' based on http://monkey.linuxworld.com/scripts/twit
		
	url_login = "http://identi.ca/main/login"
	url_post = "http://identi.ca/notice/new"
	
	' first: login
	useragent = Request.ServerVariables("HTTP_USER_AGENT")
	poststring = "nickname=" & identicaAccount & "&password=" & identicaPass
	set objXMLHTTP = Server.CreateObject("MSXML2.SERVERXMLHTTP")
	objXMLHTTP.Open "POST", url_login, false
	objXMLHTTP.setRequestHeader "User-Agent",useragent 
	objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
	objXMLHTTP.Send poststring
			
	' then send the message
		message=server.URLEncode(message)
	poststring  = "status_textarea=" & message
	
	objXMLHTTP.Open "POST", url_post, false,plurkAccount,plurkPass
	objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
	objXMLHTTP.Send poststring
		
	identica = objXMLHTTP.responseText
end function

in English, Programming, Scripting, Twitter, Web 2.0Reacties (0)

twitter2plurk

Damn, I can't believe I haven't tought of this approach myself, but Ryan Lim did some digging and pulled an unofficial Plurk API out of his sleeve :-)
I's written in PHP.
Here's the original copyright notice.

I translated the bits needed to post a plurk from a 3th party application to vbscript, for use in feedtweeter.
So a few days after plurk2twitter, twitter2plurk is a fact. (And it works!)
Tomorrow I'll update feedtweeter to be able to post to Plurk.


<%

	plurkAccount = "Steffest"
	plurkPass = "*********"
	
	plurk("hello plurkworld!")
	
	
	function plurk(message)
	
		' big thanks to Ryan Lim for doing the digging
		' translated from http://code.google.com/p/rlplurkapi/
		' this is just a small function to send a plurk
		' for a more complete API: http://code.google.com/p/rlplurkapi/
		
		url_login = "http://www.plurk.com/Users/login?redirect_page=main'"
		url_post = "http://www.plurk.com/TimeLine/addPlurk"
	
		' first: login
		poststring = "nick_name=" & plurkAccount & "&password=" & plurkPass
		set objXMLHTTP = Server.CreateObject("MSXML2.SERVERXMLHTTP")
		objXMLHTTP.Open "POST", url_login, false,plurkAccount,plurkPass
		objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
		objXMLHTTP.Send poststring
	
		' then send the plurk
		lang = "en"
    	qualifier = ":"
    	nocomments = "0"
	
		' get the ISO8601date
		postdate = ISO8601date(now(),"+02")
		
		message=server.URLEncode(message)
	
		poststring  = "posted="&postdate&"&qualifier=" & qualifier& "&content="&message&"&lang="&lang&"&no_comments=" & nocomments & "&limited_to="
	
		objXMLHTTP.Open "POST", url_post, false,plurkAccount,plurkPass
		objXMLHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
		objXMLHTTP.Send poststring
		plurk = objXMLHTTP.responseText
		set objXMLHTTP=nothing
	
	end function
	
	function ISO8601date(dt,timezone)
		ISO8601date = year(dt) & "-" &  padding(month(dt)) & "-" &  padding(day(dt)) & "T" & hour(dt) & ":" & minute(dt) & ":" &  second(dt) & timezone & ":00"
	end function
	
	function padding(s)
		if len(s)=1 then
			padding="0" & s
		else
			padding = s	
		end if
	end function

in English, Programming, Scripting, Web 2.0Reacties (2)

Feedtweeter


Yesterday I launched a lttle service: www.feedtweeter.com
It's about RSS and about Twitter and about mixing several social medai networks together.
Basically it's a system that keeps track of an RSS feed and processes any new items that appear.
For example: if you post a video on youtube, this will end up in your youtube RSS feed, it gets picked up by tweetfeeder that decides what to with it, like posting it to your blog for example.
So you upload a video to Youtube, and it will appear on your blog automatically.
These days RSS, and XML in general, is the data-glue that ties about any data-driven website together and it's become the standard for moving data between sites or services.
Tweetfeeder tries to be different by adding some spice: it adds a processing layer to the mix so that every item can be slightly altered. For example:
  • when posting to twitter, images and html will be stripped because twitter doesn't display that
  • commercial messages can be stripped
  • you can define some special chars like: "when a tweet starts with *, post it to my blog" or "when a flickr image contains the tag "granny", send it by email to grandma"
  • and endless other variations

The twitterstream on the left is an example of that also.
At the moment feedtweeter focuses on getting messages from Plurk to Twitter: You write something in Plurk and it also appears in Twitter.
It's in closed beta for the moment, so if you want an invite: send me a tweet (And follow me on twitter so I can send you your login by direct message, offcourse you can unfollow me after that)
it's based on this code I put together 2 days ago, allthough its heavely modified and optimised (and ported to .net)
I spend 1 evening building the website (graphics and HTML) and 1 night doing the code (user accounts, feed management, message queue management)
It has launched yesterday, has currently about 40 users and has processed 1100 messages.
Now ... if only Plurk and Twitter would stay up and running, as both platforms have had hickups today ... *sigh*

Rrradiogirrrl posted a nice little review.
Blogging, in English, Programming, Scripting, Twitter, Web 2.0Reacties (5)