Day 11 - Graffiti Wallpaper
*** memory leak fixed in server code, I wasn't properly disposing of streams ***
Connect to remote machines running the server portion of this app (like my machine - see below) and scribble on the wallpaper. What a cool social experiment! Thanks to HAK.5's Darren for the great idea (again, Jedi Console was his too).
This application is 2 parts once again, like the broadcaster. Server and client.
The server runs on a machine and allows clients to connect to it and graffiti up the desktop wallpaper. Upon launching it will ask for a port to run on. Then you hit start. You can close the form, double clicking the green W in the systray brings it back.
The client prompts for a server and port to connect to, then allows you to draw on the server machines desktop for 2 minutes. It gives a warning after 60 seconds. The drawing is implemented very crudely, but built from scratch. After hitting the "Save as remote wallpaper", your be prompted with a captcha text image. This is so no one can hack the client to programmatically repeatedly send nasty images. :)
Of course, I'm running the server portion wide open for the world to scribble on my desktop. After launching the client use the server "softwarejedi.servepics.com" and port "8910"! Internet Explorer users with .NET 2.0 SHOULD be able to just click here without downloading anything for a direct connection into my desktop. This seems to have mixed results though, so tell me what it does for you (IE USERS ONLY - SORRY).
Download the app here
Download the source here
What great source code for reference! The wallpaper and remoting stuff I did previously with the wallpaper and broadcast apps, but throwing in the captcha? Pure genius
I also demonstrate a ClickOnce deployment (For IE ONLY) with a passed in querystring. I can't get into the details here, but maybe one day I can! Just google it if you're interested!
7 Comments:
wow, great job!
ClickOnce with parameters in querystring doesn't work for me (in IE) it displays some XML. So does http://www.anappaday.com/downloads/DAY11-GraffitiWallpaper/ClickOnce/AnAppADay.GraffitiWallpaper.Client.application http://www.anappaday.com/downloads/DAY11-GraffitiWallpaper/ClickOnce/publish.htm shows the same xml when clicking the Run button.
ClickOnce works well on this machine, this is the first time it didn't..
For your next app could you setup something that can connect to your chat from inside a corporate firewall. I can't connect to your chat when I'm in the office, I can from home. Thank you.
This is like asking people to draw porn on you desktop :P
ClickOnce is having issues because the MIME type returned by this server is incorrect. I'm not the server admin, but when I can get in touch with him I'll have the MIME setup in apache.
No offence but, isn't pointless to write a 'little and efficient' app to have it running on top of some framework? (specially THAT memory-hungry one)
Pointless to you maybe, not to me. RAM chips are pretty cheap, you should pick some up.
Post a Comment
<< Home