Archive for the 'programming' Category

Aug 21 2009

[Personas | Metropath(ologies)]Your life map online

Published by yigit under grabbed from outside, programming

Today, I’ve found sth really nice, called Personas.

You give it your name (or any name of course), it searches the web using sophisticated natural language processing, groups the result data with some clever logic and gives you your online portrait.

It’s built by Aaron Zinman @ MIT Media Lab.

Go try yours: http://personas.media.mit.edu/personasWeb.html

And here is mine:

No responses yet

Aug 10 2009

MySql drove me crazy!

Published by yigit under programming

Today, I was trying to optimize some mysql query in our experiment framework.I came across to two query explains that I cannot understand.

Here are the two queries:

explain select * from TABLE_NAME where created > ‘2009-08-09 19:10:44′

explain select * from TABLE_NAME where created > ‘2009-08-09 20:10:44

′and here are the explain results:

mysql> explain select * from TABLE_NAME where created > ‘2009-08-09 19:10:44′;

+—-+————-+——————+——+—————+——+———+——+———+————-+

| id | select_type | table            | type | possible_keys | key  | key_len | ref  | rows    | Extra       |+—-+————-+——————+——+—————+——+———+——+———+————-+

|  1 | SIMPLE      | TABLE_NAME | ALL  | ou_created    | NULL | NULL    | NULL | 1226122 | Using where

|+—-+————-+——————+——+—————+——+———+——+———+————-+

1 row in set (0.00 sec)

mysql>explain select * from TABLE_NAME where created > ‘2009-08-09 20:10:44′;

+—-+————-+——————+——-+—————+————+———+——+——–+————-+

| id | select_type | table            | type  | possible_keys | key        | key_len | ref  | rows   | Extra       |+—-+————-+——————+——-+—————+————+———+——+——–+————-+

|  1 | SIMPLE      | TABLE_NAME | range | ou_created    | ou_created | 4       | NULL | 206400 | Using where |

+—-+————-+——————+——-+—————+————+———+——+——–+————-+

1 row in set (0.00 sec)when you change the parameter you search, mysql changes query plan in a wrong way,interesting, isn’t it ? (fyi, my mysql version is: 5.0.51a)

No responses yet

Jan 29 2009

A nice shell command to diff two folders

Published by yigit under linux, programming

Today, while working, I had to take “diff” of each folder and found the following command. Works perfectly on macOSx shell, should work in linux shell too.

diff -qr dirA dirB | grep -v -e ‘DS_Store’ -e ‘Thumbs’ | sort

here, DS_Store and Thumbs are two folders you want to exclude. The output looks like:

Files ./dirA/File1 and ./dirB/File1 differ
Files ./dirA/File2 and ./dirB/File2 differ

No responses yet

Aug 28 2008

a good presentation to understand what flash and flex is for

today, while I was trying to find some interview questions for a guy coming for the interview today, I came across to a good presentation…

It briefly explains when should use flex, when should use flash by comparing flex-flash , flash player-air .

It is good for people who has problems to distinguish flex-flash and overuse flex (or flash).

So I decided to share it here:

No responses yet

Aug 20 2008

google failure

Published by yigit under grabbed from outside, programming

I was working on some stuff about openfire and made a google search

openfire AuthCheckFilter

then google returned this page:

Couldn’t match
/search?q=openfire+AuthCheckFilter&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a

Array
(
)

seeing google main page with an error is not common, so it was good seeing the giant failing to handle a request :)

after 1-2 minutes, google started working, but i have a screen shot ! :)

google Error

No responses yet

Apr 02 2008

Flex Builder non-english Character Set Problem

Published by yigit under programming, flex

When you install flex builder into a windows machine which has a non- english local settings, you may get the following error while you compile your applications.

Could not resolve <mx:Script> to a component implementation

if you get this error, you need to edit your FlexBuilder.ini file. It is located in the root directory of your flex installation .(default: C:\Program Files\Adobe\Flex Builder 3)

At the end of your FlexBuilder.ini file, you must add the following lines:

-Duser.language=en
-Duser.location=us

Then save the file, restart flex builder and it’s done!

One response so far

Apr 02 2008

First post from airpress

Published by yigit under Adobe AIR, programming, flex

This is my first post using airpress. I was thinking of making such an application using Adobe AIR, While searching for cool applications for my presentation on “Offline Desktop Applicaitons” i came across to this cool application.I very cool and easy to use application to control your wordpress blog.

You can download it from here.

No responses yet