Wednesday, July 8, 2009

Verify your Battlefield Heroes account in gmail

If you get a verification email that appears to be blank, click on the downward arrow and click on 'show original', and then you should see a page of email text, scroll down to the link:


...
------=_NextPart_001_AEA6_74B0DC51.19495CFF
Content-Type: text/plain;
charset="utf-8"
Content-Disposition: inline


Thanks for creating an account with Battlefield Heroes!

To verify that your account has been properly created we need you to click the link below and follow the on screen instruction.

http://www.battlefieldheroes.com/user/verify/c2N4OXN....



And cut and paste the link and load it to complete the verification.

Thursday, June 18, 2009

Nvidia Tegra - ARhrrrr



It looks like they have an dev version of an Nvidia Tegra, I think that's mentioned in the video. How do I get one?

Also, how does it compare to the 3D capabilities of the new iphone? Any source code to the game or the libraries used?

Thursday, May 21, 2009

Amazon Sneakernet

The next time you want to transfer a few terabytes to or from Amazon S3, mail them a few external hard drives and they'll fill them up and send them back. Not sure if Amazon Prime membership makes the shipping free or not.

Saturday, March 28, 2009

OpenCV 1.1pre1 on Ubuntu

To make it build with ffmpeg, install libswscale-dev, libavcodec-dev,
and libavformat-dev.

./configure --prefix=/home/binarymillenium/other/install/
--with-ffmpeg --without-gstreamer --without-xine --without-quicktime

It's important to set this if the install prefix is not the usual place:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/binarymillenium/other/install/lib/pkgconfig

run ./build_all.sh in samples dir to build samples

Friday, March 27, 2009

Compiling OSG 2.8.0 in Cygwin- missing -lGL and -lGLU during linker stage

Otherwise there will be a lot of error output like this:

[ 15%] Building CXX object src/osg/CMakeFiles/osg.dir/Viewport.o
Linking CXX shared library ../../bin/cygosg-2.8.0.dll
CMakeFiles/osg.dir/AlphaFunc.o:AlphaFunc.cpp:(.text+0x14): undefined
reference to `_glAlphaFunc'
CMakeFiles/osg.dir/BlendColor.o:BlendColor.cpp:(.text+0x159):
undefined reference to `_glGetString'
CMakeFiles/osg.dir/BlendColor.o:BlendColor.cpp:(.text+0x288):
undefined reference to `_glGetString'
CMakeFiles/osg.dir/BlendColor.o:BlendColor.cpp:(.text+0x3c8):
undefined reference to `_glGetString'
CMakeFiles/osg.dir/BlendColor.o:BlendColor.cpp:(.text+0x1263):
undefined reference to `_glGetString'
CMakeFiles/osg.dir/BlendEquation.o:BlendEquation.cpp:(.text+0x1b9):
undefined reference to `_glGetString'

Tuesday, March 10, 2009

OpenCV SURF naiveNearestNeighbor

https://opencvlibrary.svn.sourceforge.net/svnroot/opencvlibrary/trunk/opencv/samples/c/find_obj.cpp

This code finds the two nearest neighbors, but only returns the very
nearest if it is distinctly better than the second nearest:

int
naiveNearestNeighbor( const float* vec, int laplacian,
const CvSeq* model_keypoints,
const CvSeq* model_descriptors )
{
int length = (int)(model_descriptors->elem_size/sizeof(float));
int i, neighbor = -1;
double d, dist1 = 1e6, dist2 = 1e6;
CvSeqReader reader, kreader;
cvStartReadSeq( model_keypoints, &kreader, 0 );
cvStartReadSeq( model_descriptors, &reader, 0 );

for( i = 0; i < model_descriptors->total; i++ )
{
const CvSURFPoint* kp = (const CvSURFPoint*)kreader.ptr;
const float* mvec = (const float*)reader.ptr;
CV_NEXT_SEQ_ELEM( kreader.seq->elem_size, kreader );
CV_NEXT_SEQ_ELEM( reader.seq->elem_size, reader );
if( laplacian != kp->laplacian )
continue;
/// in compareSURFdescriptors, the third parameter is said to be the
/// 'best' distance, but it is really the second best here
d = compareSURFDescriptors( vec, mvec, dist2, length );

if( d < dist1 )
{
dist2 = dist1;
dist1 = d;
neighbor = i;
}
/// if dist1 < d <dist2
else if ( d < dist2 )
dist2 = d;
}
/// the two best can't be close to each other
if ( dist1 < 0.6*dist2 )
return neighbor;
return -1;
}

Sunday, February 22, 2009

Friday, February 20, 2009

Boston Dynamics



Science fiction frequently concerns itself with runaway super-intelligent AI that is only decades away from reality, for now we have to settle for the weakly doglike.