The smallest C program possible

Interestingly the smallest C program you can write in windows is.

int main[] = {0xC3};

Basically the same as.


#include

int main()
{
return 0;
}

Also I’m assuming you are using a X86 processor and the 0xC3 is just a return (RET).

No Comments

Years of development? Free up your HD!

Here’s a really simple tip for any windows developer frustrated by the clutter created by their old code projects. Use this information at your own risk, if you delete something important don’t blame me :/ I take no responsibility for any loss!

I tend to back up my code by grabbing the folder and dumping it on my backup drive. Unless you’re a very organized person you may have duplicates of the same project all containing a mega amount of build, object, compiler and other junk files. This was getting a little ridiculous my “code dump” folder was over 10GB – surely source files aren’t that big!

After browsing around I noticed that the majority of the space was taken up by object, build and the IDE internal files. I noticed the biggest offender to be Visual Studio, it creates .sdf and .ndb file that can be hundreds of megabytes. I attempted to manually delete these files but after a few minutes decided to make a tiny little old school DOS script to do the work.

Create a text file with the following script and give it the extension .bat. Replace %WHEREYOUWANTTOCLEAN% with the location the script needs to start, i.e. c:\mycode


#assume c drive, change if you are cleaning another drive
c:
cd %WHEREYOUWANTTOCLEAN%
del *.sdf /S
del *.obj /S
del *.o /S
del *.d /S
del *.tmp /S
del *.pdb /S
del *.ilk /S
del *.ndb /S

What are these files? Okay here’s what you’re deleting :-

.sdf – Used and created by Visual Studio this looks like an internal DB file. The .sdf format is described as.

Compact relational database developed by Microsoft, also known the SQL Server Compact (SQL CE) format; designed for applications that run on mobile devices and desktops; contains the complete database contents and can be up to 4GB in size.

** NOT very “compact” though, many I found were 50MB large :/

.obj – Compiled Object File

Usually created by Visual Studio, it’s the binary representation of your source file. Deleting will just require the project to rebuild it the next time you run.

.o – Compiled Object File

Usually created by gcc/mingw, it’s the binary representation of your source file. Deleting will just require the project to rebuild it the next time you run.

.d – Compiled Object File

Usually created by gcc/mingw, it’s the binary representation of your source file. Deleting will just require the project to rebuild it the next time you run.

.tmp – temporary files

You should know what these are!

.pdb – Program database

This file contains information used when debugging and can get very large.

ilk
– Incremental Linking File

Used by Visual Studio when linking the project.

.ndb – Another Visual Studio database file

This looks like another internal database file used by Visual Studio and can get very large.

After deleting these files I recovered 4GB on my hard drive :) I’m sure there are a bunch of other files that can be safely removed, feel free to comment if you know of any.

,

1 Comment

FINALLY!!! Here’s WiiRadio 0.7

It’s finally here! After months of being sidetracked I’ve completed version 0.7 which turned into a total code rewrite of WiiRadio. Not to bore everyone with the techie geek talk I’ll just list all the new features and slap in a video I threw together. It’s hard to point at the Wii while watching the video on a laptop. I guess I need to invest in some video splitter cables :)

So…..here are all the goodies!!!

  • Stream searching is now working again
  • Stream ripping
  • Basic local playback (SD/USB) of mp3 files ** Currently only FAT partitions
  • Album Art if the local file has it
  • Clean up of visuals and a new mix mode
  • ProjectM Visuals
  • New skin and skin design allowing lua scripting
  • And more ….

Download Here from google code

And here’s the highly crappy video I put together

21 Comments

WiiRadio v0.7 Early Preview Video

6 Comments

WiiRadio 0.7 Update

It’s been quite a while since I’ve officially released a version of WiiRadio. Fear not I’ve been hard at work and should have a new version out before Christmas.

New features in the forthcoming version will include:

  • Stream Ripping
  • Local playback of MP3 (seems necessary if we now rip)
  • Local Media Browser for USB/SD
  • New visuals and support for 3rd party visuals
  • Updated skins with scripting support
  • Album art
  • Official Releases for Windows, Linux and possibly Mac (Please contact me if you could help with a Mac build)
  • A whole bunch of smaller changes you’ll notice
wiiradio 0.7 Preview

wiiradio 0.7 Preview

13 Comments

PAX Day 2 – 2010

PAX Seattle photo montage 9/4/10

Random pictures from PAX 2010….

No Comments

WiiRadio 0.6 Released

I’ve just released a new version of WiiRadio:-

Version 0.6

* More Visuals
* Added Icecast Support
* Search on stations
* Connection to a stream address
* Booting from USB support
* Widescreen setting
* Added ability for user to select visual mix mode or single mode
* Bug Fixes

Download URL :- http://code.google.com/p/wiiradio/downloads/list

15 Comments

Progress – WiiRadio v0.6

I’m hoping to get another version of WiiRadio (v0.6) released in the next few weeks. Here’s a quick summary of the improvements :-

.:: Icecast support in browser. ::.
.:: Widescreen option ::.
.:: Search improvements – can search for genre, playing song, station or connect to any stream via IP or web address ::.

11 Comments

WiiRadio v0.5 Released

Finally I’ve put out another version of WiiRadio. Here’s a list of updates :-

Version 0.5

* Skins
* Languages
* Genre Searching
* New visual system
* Bug Fixes

19 Comments

More On WiiRadio v0.5

Here’s a preview of v0.5 which will be out in the next few weeks, The video is focusing on the new visual engine that will be in v0.5.

No Comments