Tuesday, April 10, 2012

Arild handled the situation perfectly



When I was the project manager in “somewhere in” and then “escenic (now Vizrt)”, many times I faced strange problems. Sometimes I could solve that alone, sometimes I had to take advice from my bosses. In such cases I got help mostly from Jana, then Espen and once from Arild (3 owner of somewhere in…). Then I really felt Arild knows how to handle situations where emotions are involved. Let me explain the situation.


In my team there are many young programmer worked. Sometimes romantic relations grow between them. I never interfere in these matters. I believe may be they are young, but adult. So, it’s their personal matter. Weather it’s wrong or right, they should take the final decision, what will they do.

But one day one mom called me. She was very anxious about her son. She was shouting, crying and sometimes requesting me to stop her son to make relation with a girl who is elder than him and not to mass up his student life. I tried to make her calm nicely. I told her they are working with different project in different rooms, here we all sit together and work, nothing can happen here. But I can’t say anything about his phone calls, sms and his night talking with a girl. It’s office. But she was not listening to me. She is saying that I am big sister for all of them, they will listen to me. Then she asked should she talk with arild? I said yes…. He can handle this situation better. And I was right. Arild really could make this situation calm.

Here what Arild told to her “i will talk to your son and with the girl, so that they keep interaction to office time and let the boy focus on studies, your son is 23 or something, and not a child, you mustn't keep him like a small baby... they have a good friendship, their chemistry is good, and we will ensure that nobody goes astray.  difficult for me to discuss these things in bangla over a poor line, but i hope i can build up an understanding that as long as we can make them give each other space for studies and keep within family preferences, they must be allowed to work and have the freedom to mix at office. i will have a nice talk with your son and with that girl, and I will follow up with you.  You are ultra conservative, but have to accept that your son is growing up, they cannot keep him as a baby boy now, and he needs guidance and support from them, not jail threat. I would never allow the boy to be sent to family jail, never! Well, seems this relation still very innocent to me, just some good feelings of getting a close friend. If I keep the watch, i can also give them guidance in how to take things slow and let time work.  Studies first, proper job career and then where they want to bring things later must be fully up to them. I can pretend to be a "father", but what I love to be is a personal coach.” 

Giving advice to your own life, is really difficult



I was (may be now too) very popular to give advice to other people about their life. I always gave good advices and in most cases they got good effect from my advice. Now if I see in my life, am I in good position? I don’t think so. Then what should I do? I really want to take a good decision for me. But it’s difficult. I have some options… all are difficult; really don’t know which way to go... And it’s very difficult to stay stick with one. Right now my big issue is money. I have to have money to give a good life to my son. And I have to change the way of my life… for the sake of my son and also for me.

Sunday, April 8, 2012

Some pictures of Deborah





When Deborah (my ex-colleague) was working at somewhere in, she wear sharee one day ( I forget the occasion) and asked me to take some pictures with my cell phone. This picture had taken at road 24, Gulshan, Dhaka. 

Saturday, April 7, 2012

After breaking so many times, my heart became powder, it can’t be broken again



When I was studying in the Dhaka University, I use to say this to my friends, “after breaking so many times, my heart became powder, and it can’t be broken again”. It didn’t mean that many boys make my heart broken. I didn’t have any relation with boys. It was about many other things… But bottom line was, I won’t b e dishearten again, because I had enough.

And I was wrong. After those days, many things happened in my life and still many things happening and some are coming in future, I can guess those, which will again hurt me in my heart. But after dishearten so many times, I thing, my heart is now vanish. Nobody can hurt me again. I don’t care for anything. (Or maybe I am wrong again; I have to have more pain in my heart.)

Friday, April 6, 2012

PHP: Form validation


Long time back, I found this on net.


0
#
1
# login.htm
2
#
3

4

5
DOCTYPE html PUBLIC "-//W3C//XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
<head>
8
    <title>MyWeb.com Logintitle>
9
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
10
head>
11

12
<body>
13
    <form method="post" action="verify.php">
14
    <input type="text" name="user" />
15
    <input type="password" name="pass" />
16
    <input type="submit" value="Login" />
17
    form>
18
body>
19
html>
20

21

22
#
23
# verify.php
24
#
25

26
php
27

28
function anti_injection$user$pass )
29
{
30
    # We'll first get rid of any special characters using a simple regex statement.
31
    # After that, we'll get rid of any SQL command words using a string replacment.
32

33
    $banlist = array
34
        (
35
        "insert""select""update""delete""distinct""having""truncate""replace",
36
        "handler""like""as""or""procedure""limit""order by""group by""asc""desc"
37
        );
38

39
    if ( eregi "[a-zA-Z0-9]+"$user ) )
40
    {
41
        $user trim str_replace $banlist''strtolower $user ) ) );
42
    }
43
    else
44
    {
45
        $user NULL;
46
    }
47

48
    # Now to make sure the given password is an alphanumerical string
49
    # devoid of any special characters. strtolower() is being used
50
    # because unfortunately, str_ireplace() only works with PHP5.
51

52
    if ( eregi "[a-zA-Z0-9]+"$pass ) )
53
    {
54
        $pass trim str_replace $banlist''strtolower $pass ) ) );
55
    }
56
    else
57
    {
58
        $pass NULL;
59
    }
60

61
    # Now to make an array so we can dump these variables into the SQL query.
62
    # If either user or pass is NULL (because of inclusion of illegal characters),
63
    # the whole script will stop dead in its tracks.
64

65
    $array = array ( 'user' => $user'pass' => $pass );
66

67
    if ( in_array NULL$array ) )
68
    {
69
        die ( 'Hacking attempt. Go play someplace else, you script kiddie.' );
70
    }
71
    else
72
    {
73
        return $array;
74
    }
75
}
76

77

78
# Now to filter the login data through the Anti-Injection Attack function
79
# and assign the results to an array. The values used are assuming the
80
# login form itself is using the POST method, and the username and
81
# password fields were given the names of "user" and "pass"
82
# respectively. This works with the GET method, too, but
83
# I *STRONGLY* advise you not to use it.
84

85

86
$login anti_injection $_POST['user'], $_POST['pass'] );
87

88

89
# Verify the filtered user/pass combo...
90

91
$conn mysql_connect 'localhost''sql_user''sql_pass' );
92
$conn_db mysql_select_db 'some_db'$conn );
93

94
$result mysql_query "SELECT * FROM some_table WHERE user = '" $login['user'] . "' AND pass = '" $login['pass'] . "'" );
95

96
if ( mysql_num_rows $result ) > )
97
{
98
    # Success!
99

100
    echo "Welcome!";
101
}
102
else
103
{
104
    # Humiliating defeat!
105

106
    echo "Bad credentials.";
107
}
108

109
?>

Thursday, April 5, 2012

My first income from PTC site



From this site I have earned $ 1.0355 this is my first income from a PTC site. Which means paid per click. Here you need to click or visit the websites, they will give you the links, and then they will give you a very small amount of money. Just for visiting the sites. Isn’t it exciting? On net you will find several sites, which give you this offer and most of them are fake. This site isn’t, they send me my income. Hurray! 

Wednesday, April 4, 2012

Cute little bed





In Farida Clinic (Shantinagar), they give a cute little bed to a new born child. I liked it very much. After born, babies use to fold their legs, which shafeen didn’t. So, when he slept, it became too small for him. In these pictures, he was only 4 days old.

Tuesday, April 3, 2012

If you go out to the road, you will know monsoon (rainy season) is coming



If you are living in Dhaka, you must know when most of the (almost all) road construction are to be done. So, whenever you go out you will see everywhere road had been cut or dig for maintenance or construction.  Good for the inhabitants. Now they can easily understand that the rainy season is coming. Rainwater will stop the work; water will be filled where they cut the road, it will be impossible for anyone to cross the road. Many people will fall down from the rickshaw and will have a bath with the mix of rain and drain water. If they are lucky then they might get a chance to visit inside the manhole. 

Monday, April 2, 2012

Flashlight from camera on face



Shafeen was few minutes old. For the first time he came to visit his relatives as well as his father, in sister’s (nurse) lap. His dad tried to take his first photo with a cell phone camera with a flash light. See, my son’s first experience about flash light on his face. From his (Shafeen’s) reaction, papa understood his (papa’s) fault and turned off the flash light and again took some beautiful pictures. Then my son gave some good pose in front of camera. And on that very moment dad understood my son has got anger, just like his mom!

Sunday, April 1, 2012

Facebook profile picture can be helpful to know how much your spouse loves you (funny post)



Do you know how much your spouse loves you? Well, they will always say, I love you most. Do they really? Let me give you a simple way to understand this. It’s a secret; don’t tell this to your spouse.

Internet always gives you the best solution. So, open your computer. Now look at your spouse’s profile picture at facebook. If your spouse gave a picture of you and them, then they love you. If they post a family picture (you, kid and them) as profile picture, then great… they love the whole family very much.

If they post their picture with your kid, then you must understand, they are not liking you anymore or don’t want to let other know, that you are their spouse. Be careful with this relation.

If they post their own picture (alone) in facebook as a profile picture, then it’s a red alert for you. They love neither your kid nor you. They only love themselves.

Don’t take my post seriously, but you can think about it J