Tuesday, 8 July 2008
google image search image color
Somethimes you want to search for images where one colour is dominant. So you want to to search for a picture of a globe where green is the dominant colour. Now (in google) you can only search black and white or colour. Would be cool if you could say green and blue too. Just a quick though
Friday, 20 June 2008
Social surfing
Remember the times when you where programming some shitty little page with php and all the book started with a counter somewhere on the page. This was a counter on how many people visited today and so on. Further the next chapter was a counter on how many people are currently on your website and if you really wanted to top things of you wrote how many logged on users and how many guest where online
From http://www.phpbb.com/community/So why doesn't someone take this to the next step and make a browser addon where you can see who is browsing the page. Something that integrates into the status bar and tells you how many people of your community are looking at this page right now. You can leave a comment, you can chat with other people viewing the page, add some tags or rate the page. This would be like browser social networking. Of course you would have to sign up with a little picture and some information but I suppose you could get this out of facebook and the lot. You would further have to blacklist some pages. Like gmail, google search and so on, you don't want to chat with all the people that are reading theire email do you.
Who is online
In total there are 1427 users online :: 96 registered, 4 hidden and 1327 guests (based on users active over the past 30 minutes)
Most users ever online was 8680 on Mon Mar 19, 2007 1:28 am
Wednesday, 18 June 2008
Make a coffee machine that talks rfc2324
http://en.wikipedia.org/wiki/Hyper_Text_Coffee_Pot_Control_Protocol
Friday, 13 June 2008
erd2db
I am looking for a tool in which I can create a nice erd diagram with all the relations and then this will output SQL, ruby migrate syntax or what ever. There is something like this called toad but there is nothing open source. Further there are some dia converts that take in some dia pic and convert it to something, but this doesn't work. So please would someone write something like this.
http://en.wikipedia.org/wiki/Comparison_of_database_tools
http://en.wikipedia.org/wiki/Comparison_of_database_tools
Tuesday, 27 May 2008
Wednesday, 12 March 2008
Google custom message changer
I change my google chat or talk message quite frequetly. I would love to publish this message on my website. But I can't really find an api that will let me read this message :(
Monday, 25 February 2008
Shell Captcha
Lots of internet services use Captchas to authentikate there users. So after 3 failed password attemps you get a little script generated image that a machine should not be able to read.
So now my idea is to port this to my shell and get rid of all those pesty ssh bruce force attacs. First enter the captcha if you can't solve that you are not allowed to enter your passwd into ssh. Or something around thouse lines. More to come (like always)
Wednesday, 6 February 2008
A new db
So time for another crazy didi idea. While writing dbook I was thinking about using sqlLite to save my data. After some though though I realised that this would be quite hard as the data would be very dynamic. So I thought of using a object oriented db. But this seamed to be a little unflexible and I would have to ship with another dependency. So I took a pice of paper and seched waht I call a hashDB. It is basically very simpel every data entry only exists once in the whole db. Then entries have links to other entries. So If you would be described in my db. You would have a name this would link to hair and this would link to blond. So with your person there would be the tupels links describing that you have blond hair. I am currently writing a little prototype maybe then it becomes clearer.
Friday, 25 January 2008
command line social networking
We all agree myspace, facebook, etc.. are shit. You spend your time looking at stupid stuff and you give a big company all the data it will ever need to create a product exactly for your needs with automatic advertisement buyer. So how can a little geek like me keep in contact with this friends and find out what really matters.
The idea: A command line tool that connects to a server and then you have your personal profile with what you are currently working on you can join the group "C++ developers" or "Linux is BSD without brain" and to be honest what to people like best "flame wars" what a better place to put this and take it away from the mailing lists.
Further everything is done like cvs/git so you can see what your friend has changed etc...
You might have your software backup somewhere or something like that.
I have to think about this a little more. But please comment
What it needs :
The idea: A command line tool that connects to a server and then you have your personal profile with what you are currently working on you can join the group "C++ developers" or "Linux is BSD without brain" and to be honest what to people like best "flame wars" what a better place to put this and take it away from the mailing lists.
Further everything is done like cvs/git so you can see what your friend has changed etc...
You might have your software backup somewhere or something like that.
I have to think about this a little more. But please comment
What it needs :
- Profile page
- Friends list
- Fotos?
- Groups
- Who viewed my profile last
- Current activity
- Link people to content
- Pinboard
- Change log
- Mood indicator [hacking/sleeping/...]
- Encrypt a file amongs many users with secret shareing. So only when all users click on share the file can be read
- ??????
Monday, 12 November 2007
Vector Video Codec
bash-3.00$ ls -lah /tmp/Spectre.svg
-rw------- 1 xxx 110K Nov 12 14:09 /tmp/Spectre.svg
bash-3.00$ zip /tmp/lol.zip /tmp/Spectre.svg
adding: tmp/Spectre.svg (deflated 69%)
bash-3.00$ ls -lah /tmp/lol.zip
-rw-r--r-- 1 xxx 35K Nov 12 14:10 /tmp/lol.zip
bash-3.00$
According to this compression is quite easy too. Comments welcome
Friday, 26 October 2007
DicHash
Hashing is a superb way of validating and in some way to find out if someone has tempered with your files. But the chances are that if he can tamper with your files that he could change the table of hashes. So how to find out if someone has really done something bad to your computer. My idea is that you can create a hash with a password. So to hash a file you have to enter a password this is incorporated into the hash. So only if the file has not changed and the password was right the hash will be the same. But now this will return (c2471b27e6a1410c1e51814a5a7011a3ee8692af) a normal human being can not remember this. So why not map this hash to a dictionary. So i have a file (listofimportantfiles) I hash this with my password then I map this to a dictionary and the program returns 'tree'. I can easily remember tree as the correct hash but not c247.... Of course to be 100% correct you would need a dictionary as big ass all hash combinations. I notice that this is impossible (+- 24^65) With a sufficient big dictionary the chances are quite small.
Tuesday, 23 October 2007
A python object graph
In python every variable is a 'pointer' to an object. But sometimes you need to know what variable points to what obj. A nice graph over time would be nice.
more to come
more to come
Monday, 15 October 2007
File viewer
Many files are associated with a special viewer. For example I use less to view text files, eog for images, mplayer for vids and music. Why do I always have to type the appropriate program. Why can't I just call a script that will use the 'file' command and open the appropriate viewer? Basically just a few if cases
if [`file $fileToTest | cut -d' ' -f2` eq "JPEG"] then; eog $fielToTest; fi
and so on.
This must have been done. Does someone know somethinglike this?
You can apply the same idea to editing files too.
So two programs 'e' and 'v' schould be nice.
Thanks to my friend David Garcia Quintas
http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html
if [`file $fileToTest | cut -d' ' -f2` eq "JPEG"] then; eog $fielToTest; fi
and so on.
This must have been done. Does someone know somethinglike this?
You can apply the same idea to editing files too.
So two programs 'e' and 'v' schould be nice.
Thanks to my friend David Garcia Quintas
http://portland.freedesktop.org/xdg-utils-1.0/xdg-open.html
Interactive shell
I work entirely in the shell. I don't really need more :) But I spend most of mine time typing ls, emacs [somefile], mv this rm that and lots of less. Further I repeat a lot of commands, especially when I am programming. Some stats out of my .bash_history. (1000 lines)
63 x make
159 x ls
22 x rm
101 x cp
42 x emacs
25 x less
$cat .bash_history | sort | uniq | wc
359
from 1000. So 641 commands are repeated.
You get the idea. So I am a computer programmer, I am lazy, what I can I do against this?
Create an interactive shell.
The shell sits there and waits. As soon as you hit any key (not Enter or Space) it goes into a special configured mode. And then does appropriate. So if I want to ls a dir, I just type 'l' and then this resolves to ls. If I want to edit a file I type 'e' and then the file name.
This is in somewhat different to alias. As you don't have to hit space. A little example:
I want to edit a file:
bash : em [TAB] [SPACE] file [ENTER]
alias : e [SPACE] file [ENTER] (assumeing alias e=emacs)
dash : e file [ENTER]
Further you can suggest auto completion based on what you normally type. If you have completed a command and you hit enter again it will just repeat the command. This should get rid of about 80 % percent of the stuff I type into the shell.
In 1000 shell commands I had to type a space after 756 commands. (Remember 159 are only ls)
$cat .bash_history | grep -E "[a-zA-Z] ." | wc -l
756
If you hit space you will drop down to normal bash. So you can start creating the wonderful piped commands.
63 x make
159 x ls
22 x rm
101 x cp
42 x emacs
25 x less
$cat .bash_history | sort | uniq | wc
359
from 1000. So 641 commands are repeated.
You get the idea. So I am a computer programmer, I am lazy, what I can I do against this?
Create an interactive shell.
The shell sits there and waits. As soon as you hit any key (not Enter or Space) it goes into a special configured mode. And then does appropriate. So if I want to ls a dir, I just type 'l' and then this resolves to ls. If I want to edit a file I type 'e' and then the file name.
This is in somewhat different to alias. As you don't have to hit space. A little example:
I want to edit a file:
bash : em [TAB] [SPACE] file [ENTER]
alias : e [SPACE] file [ENTER] (assumeing alias e=emacs)
dash : e file [ENTER]
Further you can suggest auto completion based on what you normally type. If you have completed a command and you hit enter again it will just repeat the command. This should get rid of about 80 % percent of the stuff I type into the shell.
In 1000 shell commands I had to type a space after 756 commands. (Remember 159 are only ls)
$cat .bash_history | grep -E "[a-zA-Z] ." | wc -l
756
If you hit space you will drop down to normal bash. So you can start creating the wonderful piped commands.
Subscribe to:
Posts (Atom)