<link rel="me" href="https://www.blogger.com/profile/09265409234253063841" /> <meta name='google-adsense-platform-account' content='ca-host-pub-1556223355139109'/> <meta name='google-adsense-platform-domain' content='blogspot.com'/> <!-- data-ad-client=ca-pub-2799935330569724 --> <!-- --><style type="text/css">@import url(https://www.blogger.com/static/v1/v-css/navbar/3334278262-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/24422183?origin\x3dhttp://nccwarp9.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>
0 comments | Thursday, August 28, 2008

Unlike Photosynth, OpenPhotoVR is a open source version of it. But unlike Photosynth that does the processing by computer here only the interface is copied and humans need to create links between pictures.
Making it nothing more than a "pseudo-3D photo browser in Flash, a free analog to Microsoft Photosynth."


Labels: , , ,

0 comments | Saturday, June 09, 2007

If you love statistics as I do then this is the site for you. Swivel is a online community that posts data, there are some analysis but most of the site is composed of pure data.
Swivel lets you explore data and share your insights with others. Swivel has data about politics, economics, weather, sports, business and more.
You can view information in a graph form but the most satisfying feature is that you can download a CSV file (can be opened in Excel without any problems) and preform what ever action you want on it.
Currently, Swivel is in Public Preview mode which means that any data set you post on it is visible to everybody else.
The amount of data is surprising but the quality can be an issue as some data sets that you find interesting are not of sufficient depth. This will improve over time, and reminds me of Wikipedia but for data. A person can find all sorts of information on it and is a site worth of your visit.

Labels: , , ,

1 comments | Sunday, February 11, 2007


After a huge disappointment with Star Trek franchise and its inability to produce a game worth while a moment of nostalgic made me turn once again to Descent Freespace 2 for the rescue. So I installed the Freespace 2 and went in search of mods, I remember that there was a modding community up and running making good, not bad, but just good mods for Freespace 2.
Then it happened or better yet, when did it happen? Freespace 2 is open source, with community of developers that are slowly and painstakingly taking this game to the next level.





Let’s face it, Freespace 2 was and is the best Space FPS available. The story is excellent, the interface was astoundingly manageable but provided with so much features that sometimes you had to use the entire keyboard which felt like you are trying to play a flight sim, the AI and computer controlled players were smart as was the interface to control them. It allowed the players to produce their own maps and mods with ease as a very good editor (FRED) was shipped with the game.The only thing that is not good is old graphics. This also changed, supported resolutions are maxed to 1024x768 but you can turn on the unsupported ones... OO... the joy. And then you put new textures, the game just lifts up. It can really be argued that now, this is a completely new game and we have there The Freespace 2 Source Code Project to thanks for that.
Not only did Freespace 2 get a new life but its graphic engine is being used for some upcoming games. Some of them are:

Babylon 5



but the most compleate conversation is for the upcomming Battlestar Galactica. This will be a beauty.






Labels: , ,

0 comments | Sunday, January 14, 2007

The good old days. Days when even programing complex things meant you only needed to know one or perhaps two programing languages. When 64kb of memory was sufficient to produce games that are even now played with joy. There are many Commodore 64 emulator software out there but all of them are, lets say, not that user friendly.
Darron Schall and Claus Wahlers created an interesting Flash and Action Script implementation of C64 emulation. Once you load the page with the emulator it automatically loads the start message we all know and love from C64 and strait on we can play games or program the legendary machine.
Emulation is still not complete and a list of things has to be added but I love it. It would also be nice if you could save the program you made or upload your own games, stretch the emulation to full screen and etc.

Labels: , ,

0 comments | Wednesday, December 06, 2006

There is always a need to reduce work and programing is no exception. Alot of times there is some algorithm or function that are simply to dirty to code, I call it "manual labor". Under "Manual Labor" I take any programing problem where solution is known but to get to that point we need to spend hours of coding.
With Introduction of Krugle and Google Code Search this task has become alot easier.

Krugle is a search engine designed for searching large stacks of source code for variety of programing languages.
Demo of Krugle capabilities can be seen here.

Labels: ,

0 comments | Wednesday, November 15, 2006

Ever since I first used WinAmp plugin to turn off/on my keyboard lights I wanted to reproduce that effect. finally some time ago I found out how its done and here's how.

The image on the left is from KeyLED 0.9.3 plugin for Samurize that I made.

My programing language of choice is Delphi from Borland since its first birth as Pascal for Windows and later as Delphi 1. Never needed to change so code will be for delphi but it is such a small part of code that it could be translated to any programing language with relative ease.

The trick with controlling your keyboard lights is a very old one. Computer communicates with keyboard on I/O ports 60h which is data port, and with port 64h which is Command/Status port of keyboard. By writing to port 60h we bypass the system and change the LED indicator for eg. Caps Lock to off even if Caps Lock is on but without changing the Caps Lock status. Caps Lock stays on even if LED is off. This enables us to play with keyboard lights without any worries.

Port 64h is used to detect if keyboard is ready. We do that by waiting that status of port 64h becomes 0. Then we prepare keyboard to change keyboard light by writing EDh to port 60h and then wait port 64h to once again become 0.

The waiting for 64h port to become 0 is a safety measure that can be bypassed but I would recommend against it. You would still be able to change the LED state but by waiting for ready state you remove some unwanted artifacts like missing keystrokes etc.

After we prepare the keyboard we can turn off and on Keyboard lights. By writing to port 60h combinations of

  1. Caps Lock = 4 or second bit = 1 (00000100)
  2. Num Lock = 2 or first bit = 1 (00000010)
  3. Scroll Lock = 1 or zero bit = 1 (00000001)

we can selectively turn on and off lights on the keyboard without changing caps lock or numlock status.

This is all just theory but how it is applied in reality? Well, Windows XP introduced restrictive methods for accessing hardware ports so we need a library that can to that for us. In the good old Dos there was Int 9 and direct access to ports but not anymore. Library that I use is Inpout32.dll. It is open source so if you really like it you could incorporate it directly into your applications removing the need for "one additional file to carry around".

First we need to create functions connecting to DLL by

function Out32(wAddr:word;bOut:byte):byte; stdcall; external 'inpout32.dll';
function Inp32(wAddr:word):byte; stdcall; external 'inpout32.dll';

With functions for port access defined we can now proceed with writing and waiting and writing and waiting by:

PROCEDURE Set_keyboard_lights(n,c,s : boolean);
var
bErr:byte;
val : byte;
BEGIN
val := 0;
IF s THEN inc(val);
IF n THEN inc(val,2);
IF c THEN inc(val,4);
repeat until (inp32($64) AND 2)=0;
bErr:=(Out32($60,$ED));
repeat until (inp32($64) AND 2)=0;
bErr:=(Out32($60,val));
END;

Procedure presented will take three parameters that can be either true of false; NumLock Status, CapsLock Status and NumLock Status.

This small snippet is all you need to control your Keyboard Lights. Have Fun!!

Labels: , ,

2 comments | Saturday, November 11, 2006

Cambrian House

Cambrian House defines them self as crowdsourced. They started with a simple idea in 2005, and that idea was to allow
"brilliant ideas are submitted (by you) for the community (that's you too) to rate. If an idea gets a lot of support, Cambrian House will build it with the help of the worldwide development community (there you are again). Contributors take their pick of exciting projects, and in return, they get a piece of the royalty pie (...that's money)."
Cambrian House is a part of SourceForge.org and there are currently 3288 ideas submitted.

One of interesting moves in order to thank people that pay, Cambrian House decided to feed Google 1,000 pizzas.

Labels: ,