Showing posts with label software. Show all posts
Showing posts with label software. Show all posts

Friday, June 17, 2011

Yet another Great doodle!




Google's new doodle eclipses everything


"this doodle not only shows you the moon's movement, but allows you to move a dial as far backwards and forwards as you like in order to observe whichever minute detail takes your fancy."


This is amazing! In fact many of Google's doodles are awesome. Yet another one I love is this, for pacman!

BTW, I learned of this when searching for this article, it is amazing too - Les paul!

Friday, November 26, 2010

Overflow in Binary search

Overflow in Binary search:
http://googleresearch.blogspot.com/2006/06/extra-extra-read-all-about-it-nearly.html

Apparently this bug was there in Java libraries till JDK 6.0

Wednesday, September 2, 2009

Windows 7 laptop display brightness!

Windows 7 laptop display brightness control sucks! Every other day it automatically goes into "dark mode", where even with the best display brightness, screen is barely visible. If you can't think of any invention, just screw up something? Nice!
For all its faults Vista atleast didn't screw this up!

Now I don't know how to work on this shit screen! I learned my lesson. Never ever upgrade unless you must!
Hoping another reboot will fix this!?

Update: OK, I found the workaround! Just remove the power cord and plug it back in. That's so 21st century OS like!

Monday, September 22, 2008

Google transliteration in Google search!

It is beautiful!
Now google search supports google transliteration. Apart from being amazing innovation, it is a great service to people in countries like India speaking Tamil, Malayalam, Hindi etc.
e.g. if you type a it shows அம்மா etc.
You have to change your locale to Tamil or appropriate language for this to work.
Great job, Google - hats off!

கூகிள் தேடலில் இப்பொழுது ஆங்கில மொழியில் டைப்பிங் செய்தால் தமிழ் வார்த்தைகள் வரும்!
கூகிள் நல்ல வேலை செய்துள்ளது!

ഗൂഗിള്‍ സീര്ച്ചില്‍ ഇംഗ്ലീഷില്‍ ടൈപ്പ് ചെയ്താല്‍ തമിള്‍ വാക്കുകള്‍ സജ്ജെശന്‍ വരും!
മലയാളത്തില്‍ ഇന്നും തുടങ്ങിയിട്ട് ഇല്ല! വേഗം തുടങ്ങും എന്നും കരുതാം.
ഗൂഗിള്‍ എക്ഷ്സെല്ലെന്ട് പണി ചെയ്ദിട്ടുണ്ട്!

Friday, August 15, 2008

prepare this blank disc in vista

I got this irritating prepare blank disc message with DVDs.
This link solved the problem for me. Goto device manager -> uninstall and 'scan for hardware changes'
http://www.copadata.it/forums/showthread.php?t=239

Sunday, July 27, 2008

layman intuition of finite automata [regular expression]

A finite automata [or regular expression proper] is one which has no notion of 'n' with in it
it has no memory.
the things it solves can't be f(n) -
e.g aaaa ... ntimes followed by bbbbb ... n times
a^n b^n
can't be recognized by Finite automata - because it has no 'n'. it can understand only a constant notion in some sense.
It has to represent all the info. with in its state which should be finite [but can be very huge]. hence finite automata - compared to a machine with a stack [Pushdown automata] or general memory [turing machine].

So remember regex [proper - what is called regex in say C# is not regex proper]- no 'n'

how to play flv files

that is outside browser - I had to do this to play a video at

http://www.mindscience.org/OxfordDebate.html#videos

fullscreen.

http://www.afterdawn.com/guides/archive/how_to_play_flv_files.cfm

in summary install a codec and a splitter

Google books

It is a great effort from Google.
The other day I read "einstein's - relativity special and general theory" from Google books.
Also it is easier to read from screen sometimes than holding books.
I can watch say bbc news on the side in the same screen.
I don't know what they gain from this.
But a great effort nevertheless.

Monday, July 21, 2008

flash player fullscreen slow

To fix this right click to goto settings and uncheck the box saying "enable hardware accelaration"

Tuesday, May 27, 2008

Equation in Microsoft Word


I wrote the equation in my post using MS word 2007. It is very very useful. I will recommend it. But has still long way to go.

Wednesday, April 16, 2008

DONT install IE8 beta

It is very hard to get rid of [you will want to almost as soon as you install it]
It is very unstable and crashes and once took the OS with it.

The worst thing is IE is now integrated into vista it is stupidly complex to replace IE8 with IE7. you can't delete files in IE directory because so many processes seem to load it.

I wasted so much time because of it.

This link might help, if you installed it anyway
http://www.mydigitallife.info/2008/03/07/how-to-uninstall-windows-internet-explorer-8-ie8-in-vista/

Thursday, January 24, 2008

Vista system restore!

Vista system restore works like charm!

I totally screwed up my tablet by fooling around with registry using autoruns.exe from sysinternals to cleanup unwanted startup programs.

afterwards my display got totally screwed up. Reinstalling video driver won't solve the problem.

I simply used vista system recovery -> system restore to restore the version earlier to my screw up.

Lo and behold - everything came back to normal!

Thursday, December 27, 2007

Google analytics!


It is very nice! It gives all the statistics about a website!
And it is very simple - just go and signup and add a bit of javascript to your site and you are done!

Tuesday, December 4, 2007

Auto hotkey!

I found this very useful.
I was looking for a software which would allow me to map increase/decrease volume to some keyboard keys. This does the job very nicely!
[I have mapped +/- volume to win + up/down arrow keys!]

This has a very simple and intuitive scripting language and auto record function!

http://www.autohotkey.com/download/

Saturday, November 24, 2007

Remote desktop and domain change

If you recently changed the domain of your machine,
RDP to the machine might stop working if you don't give fully qualified name [mymachine.mydomain.com].

I wasted sometime today trying to figure out why it is not working.

Tuesday, August 21, 2007

LDAP and AD

The worst system I have worked on!

If you get an error no way to find out what is the problem. Try doing random things till something works out.
You get beautiful errors like "unspecified error", "server is unwilling to process the request".

This should be taught to all computer engg. students to teach them how not to design a system.

This system was designed and implemented by brainless morons who decided that we kings will only implement features, error handling is for normal programmers.

Wednesday, February 28, 2007

example code for BMP image display!

something I tried out for 256 colour bmp, with no attempt at cleanup [It is not hard after all!]:
Algorithm is here: The .bmp file format


#include "stdafx.h"
#include "ImageDisplay.h"
#include <fstream>
#include <map>
#include <CommDlg.h>
using namespace std;

....
ifstream image(fileName);
...
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
// TODO: Add any drawing code here...
int dummy;
long dummyLong;
//read header
image.read((char*)&dummy, 2);
long size;
//read file size
image.read((char*)&size, 4);
long bitmapOffset;
image.read((char*)&dummyLong, 4);
image.read((char*)&bitmapOffset, 4);
long bitMapHeaderSize;
image.read((char*)&bitMapHeaderSize, 4);
long width;
image.read((char*)&width, 4);
long height;
image.read((char*)&height, 4);
image.read((char*)&dummy, 2);
int bitsPerPixel;
image.read((char*)&bitsPerPixel, 2);
bitsPerPixel = *((char*)&bitsPerPixel);
int test;
image.read((char*)&test, 2);
int paletteOffset;
int paletteSize;
paletteSize = 4* (1 << bitsPerPixel);
paletteOffset = bitmapOffset - paletteSize;
currentPalette = new unsigned char[paletteSize];
image.seekg(paletteOffset);
int l;
for(l = 0; l < paletteSize;++l) {
image.read((char*)&(currentPalette[l]), 1);
}
image.seekg(bitmapOffset);
for(i = 0; i < height; ++i) {
for(j = 0; j < width; ++j) {
unsigned char charVal = 0;
image.read((char*)&charVal, 1);
if(0 == charVal) {
continue;
}
int val = charVal* 4;
SetPixel(hdc, j, height-i,/*RGB(r, g, b)*/RGB(currentPalette[val+2], currentPalette[val+1], currentPalette[val]));
}
}
EndPaint(hWnd, &ps);
...

Sunday, February 25, 2007

cool talk about image processing

Nice one!
Recent Advances in Digital Processing of Images and Audio by Microsoft Distinguished Engineer Malvar!
http://mitworld.mit.edu/stream/404/

Wednesday, January 10, 2007

keyboard in your language!

You can create custom keyboard in different languages using Microsoft keyboard layout creator. It maps unicode characters to keyboard keys.
http://www.microsoft.com/globaldev/tools/msklc.mspx