Skip to main content

Posts

Showing posts from 2012

Ada Lovelace honoured by Google

You may already notice that today’s Google doodle is about Ada Lovelace. According to online source, she was a mathematician and also she is known to be the first computer programmer.

The interesting point here for me is that she was mathematician and programmer. I personally believe you cannot be a real programmer unless you have mathematical blood in your vein ;) , not necessary being mathematician but at least you should know that programming has driven from mathematics.

Sometimes I wish I had the chance to explain why mathematics is important in computer fields especially in programming. There are some awesome people on internet who I sincerely praise their work on this matter, for example the Khanacademy.

She died of cancer at age 36 :(

Secrets to Success

1. Trust yourself 
Trust yourself, dig deep down and ask yourself: ‘who do you want to be?’. Not what, but who. Not what your parents or teachers want you to be, but you! Figure out for yourself, what makes you happy, no matter how crazy it may sound to the people.

2. Break the rules
We have so many rules in life about everything, break the rules! It is impossible to be a true original if you too well behaved and not break the rules; you have to think outside the box. What is the point of being on this world if all you want is to be liked by everyone? The only way that I ever got any place was by breaking some of the rules

3. Don’t be afraid to fail
Anything that I’ve ever attempted I was always willing to fail. You can’t always win, but don’t be afraid of making decisions. You can’t be paralyzed by fear of failure or you will never push yourself. You keep pushing because you believe in yourself and in your vision and you know that it is the right thing to do, success will come.

4. …

The surprising truth about what motivates us

I do blogging over 5 years and many people do the same, though some of them do very well and professionally. There are many reasons which motivate people to make a blog such as money and passion. Let’s watch this video first:
It sounds silly, but sometimes I read my old post in my blog and it surprises me: “did I write this?”, so my blog is kind of a diary for me which is not too personal.  By blogging I usually keep track of my thought and the progress of skills development which I think it is necessary to stay motivated.

Why feedback is important in business?

It’s enough has been said that every business has different ways of managing their employees. There are some common ways which most businesses could share them, such as motivation, hardworking and many more, but don’t forget the feedback. It is an “easy” and “les cost” way which employers could use to improve their employees productiveness. Giving effective feedback will improve communication between both sides and decrease the gap between boss’s expectation and employee’s performance.

(P vs NP) vs E=MC2. A computer science concept vs a physics concept

I guess whoever read this post heard about E=MC2 (Mass–energy equivalence). Many people don’t know what does that mean however it has become simple of knowledge. E=MC2 is a physics thing, we have something better and more valuable in computer science, which called P=NP? (P vs NP).

I personally believe that concept of P=NP? is more important than concept of E=MC2, but what made people to think this way is only media . Probably it is easy to understand the E=MC2 compare to P=NP?, or maybe the physician (who talked to aliens) made it clear for people.
The question I asked myself “why many people never heard about P=NP? ?”, unfortunately even some people who are in the field of computer science don’t know about this concept.
My dissertation in university was “scheduling problem” which is a NP-Complete problem, so I spent one year studying these concepts/problems. In future I shall write more about P vs NP here and explain why it is important. For now watch few videos about P and NP probl…

Read the question and make sure you understand it, because usually most part of the answer is within the question itself

I spent one year to study how to define a problem for a computer in order to optimise the solutions. As far as I am concerned, we (at least I) know very less about artificial intelligent because we are still unable to define a complex problem for a robot/computer. This reminds me a quote from my favourite lecturer who said “read the question and make sure you understand it, because usually most part of the answer is within the question itself”.

Quote from my final year project's report:
“The abstract of the project is "usually the complexity of a problem is because no one can explain it in a simple way". This makes the problem puzzle-like.

After reading many papers and blogs, it could definitely be said that, despite the same problem (timetabling), everyone explained it in different ways, and everyone had different timetable structure. In other words, looking very closely, it could be seen that they are talking about different problem. Therefore, the complexity of this …

How to make three divs with the same height and width? HTML

My brother asked me how he could make three divs with the same height, as I was busy, “search on google” I replied. He insisted that he cannot find on search, so I stop what I was doing and searched on google to give him the link.
Although I did not spend too long on searching, I could not find any solution, so I tried myself and create one myself. Here is the solution using JavaScript. You can copy and paste code from here and also you may want to download html file.

<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Equal height/width</title> <style type="text/css" > body { width: 500px; margin:auto; } #all_contents, #content1, #content2, #content3 { overflow: auto;} #content1, #content2, #content3 { float: left;} #content1 {background-color:blue;} #content2 {background-color:red;} #content3 {background-color:green;} &l…

Education, education, education.

Sometimes a picture can tell a story which hardly could be explained in words. Educate yourself to free your mind and soul. 

The beauty of mathematics

Mathematics is beautiful, no doubt. Try to print this picture and cut one of the shape (rectangle or square) and compare to other one. Any idea why they appear to have equal area?

Quick review of my final year project in university

Being passionate about mathematics and programming, I had to choose a project which allows me to practise both, mathematical aspect and wring algorithmic program. Before I stated final year, I already had chosen few projects which all were around artificial intelligence.

One of the choices was “Intelligent Timetable Scheduling System”, which my supervisor, Professor Lee allowed me to take this project. The aim was to create a system which automatically generate a timetable, for example for a university.

I knew that this project is slightly hard for undergraduate student, it best suited for Ph.D. or at least master students who can spend all time on this work rather than being worry about other few modules too. In my case I had four other modules which I had to allocate time for all, however; I was motivated and happy to take all because I personal believe that “intelligence is result of past diligence”.

As a quick review of how and what I did;
Tools I used for project management an…

Lorem Ipsum generator extension for google chrome

You don’t stop learning when you pass your exam (or graduated); that’s when you really start to build up your skills. I strongly believe in this and always try to build up my skills in many areas of technology such as web development.
On one occasion I was programming, I had to test my code especially testing SQL data; I needed some texts to test my system. I searched on internet and found some websites which generate random text however; they were not convenience to use. I decided to write a program to do such but that time I had other commitments which were in more priority therefore I made a note that I shall make one when I got time. Finally I found the time for it and here is my google chrome extension for generating random text (Lorem Ipsum).
 It is very simple and easy to use. Actually this is my second google extension for chrome. My first chrome extension is a currency converter.  
I have some other programs to write which I made note of them while I was studying in universi…

Believe in teamwork

Sometimes a picture can easily illustrate a concept. We have been taught in school that teamwork is important but how important; usually this has not been clarified appropriately. As I have always been interested in education when I see a teenager from family or friends, I usually ask them some questions to understand what they think. One the question is about teamwork. Do you believe in teamwork? Do you know what is the advantage or disadvantage of teamwork? Do you think that your teachers encourage you toward team work? etc. Nevertheless, I don’t ask these questions directly.
 I noticed, even in university there are some students who have negative view toward teamwork. “Students tend to work together in the individual assignment and work individually in the group assignment”. This is not always true however; unfortunately in many cases it is true.
By observing individuals, the first thing that I notice is what they believe in the first place. “In individual work you are responsibl…

Linear equations task

When we graduated that does not mean we should stop learning, this is what at least I believe. These days after graduation I worked on some projects, below is one of them:

This was a program I created after university to keep my skills, up-to-date.
As I am a passionate Mathematical, I created a program which allowed me to find out “determinant” of the 3x3 matrix coefficients and also find whether the matrix has any solution. In other word, I found out whether this matrix has any dependent or independent row. I used many Array, ArrayList, double and other primitive types to accomplish this program.

You can download the code here. Below is small part of code.

import java.io.IOException; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Scanner; /** * * @author Mehdi Dana * @date 25/07/2012 * */ public class MathDana { /** * @param args * @throws IOException */ // round a double value public static double roundTwoDecimals(double d) { Dec…

Spare time projects; a game in JavaScript

Recently I made some small and medium projects which almost all of them have been done in my spare time. For example in base converter case;  I finished my maths assignment few weeks before the deadline and got bored, and then I decided to write an algorithm which could do what I did by hand for base converting. Basically my classmates could check their answer with this algorithm which l coded with PHP and Java. The PHP version is online here. There are some base converters programing online however, most of them do not work with decimal number such as 102.3 from base 10 to base 5 (This was exactly a question in the assignment).


Few days ago, my broadband internet connection lost so I really get bored, as above I should do something. If there was internet connection, I probably watch cat video on YouTube (just kidding, however I do sometimes) or reading blogs and interacting with other people, nevertheless there is no internet. So I could play a computer game, wait! why not make a comp…

Educate yourself to work intelligently

"Ask me my three main priorities for government and I tell you education, education, and education."   Tony Blair  (source)
Regardless of whether we like him or not, he pointed at a very important and fundamental concept. What would make a great change in our life and future of human is education, as Sal Khan said, not president Kardashian (source). After being student for over 20 years, when I look back and observe my student life and experience, I would say that usually in the current system,  going to school is more “getting better grade” oriented rather than “better understating a subject”. I say this base on my experiences and my observation from the environment where I live. I studied in different countries and have experience of attending in high quality school; all of these gave me an enhanced understanding the concept of education worldwide.

Everyone demand “power” (at least what I believe) and “knowledge is power”, so to gain power one must educate himself/herself…