Skip to main content

Never stop learning and try to extend your knowledge

My dissertation was "Intelligent Timetable Scheduling System", It was a system which auto generate a high quality timetable based on given data and time. Given data here is: list of students, courses, rooms, labs lectures, time-slots etc.. plus their constraint, for example not all student take the same course or not all room has same capacity, some lecturers are not available in some days and more, this list can go almost endless.

So, I spent one year working on this system and only wrote 300 lines of code in prolog and lisp language however, I improved massively my skills in logic programming and more important skills in finding the best solution rather than any solution. hint, timetable solution is a NP-Complete problem.

My dissertation's product compare to some other students was not something visual like a website or application which you could interact with, even I've been told by some classmates that "Hey, where is your codes, I wrote over 20,000 lines of code". Well, my product apart from some codes was few mathematics formulas in optimisation which rarely makes sense to anyone. I never thought one day I may use what I learnt unless I do PhD in this field, but I was wrong.

When I started to work at Car loan 4 U, I never thought my skills in logic programming and algorithm will be useful as the role was "application developer", but I noticed I am using my skills where I learnt them in my dissertation, when I approached to design the database, everything seem easy as I did similar task in my dissertation.

The thing I learnt from this experience was to never stop learning and try to extend my knowledge outside a narrow skill.  


Comments

Popular posts from this blog

I solved GCHQ puzzle and this is how I did it

Today, I was reading the BBC news and I stumbled upon this GCHQ puzzle:
Take the digits 1,2,3 up to 9 in numerical order and put either a plus sign or a minus sign or neither between the digits to make a sum that adds up to 100. For example, one way of achieving this is:
1 + 2 + 34 - 5 + 67 - 8 + 9 = 100, which uses six plusses and minuses. What is the fewest number of plusses and minuses you need to do this? I love to challenge myself with these kind of puzzles, so I solved this and here is how:
We have 9 numbers [1 to 9] and also we have three possible separators [+, - and nothing] which to fill the gap between numbers we have 8 combinations of separators, e.g. we have 1+2+3+4+5+6+7-89 which in this case we have six times plus, one minus and one time nothing. 
So, I need to find all possibilities of combination which total is: 6561

Then, hook the possible combinations into numbers and check the total, easy enough. Now print the solution.
I have written this algorithm in PHP but ea…

Vim cheatsheet

Global

:help keyword – open help for keyword

: o file – open file

:saveas file – save file as

:close – close current pane

Cursor movement

h – move cursor left

j – move cursor down

k – move cursor up

l – move cursor right

H – move to top of screen

M – move to middle of screen

L – move to bottom of screen

w – jump forwards to the start of a word

W – jump forwards to the start of a word (words can contain punctuation)

e – jump forwards to the end of a word

E – jump forwards to the end of a word (words can contain punctuation)

b – jump backwards to the start of a word

B – jump backwards to the start of a word (words can contain punctuation)

0 – jump to the start of the line

^ – jump to the first non-blank character of the line

$ – jump to the end of the line

g_ – jump to the last non-blank character of the line

gg – go to the first line of the document

G – go to the last line of the document

5G – go to line 5

fx – jump to next occurrence of character x

tx – jump to before next occurrence of character x

} – jump to …

Why Prestashop needs improvement for large application?

I have worked with Prestashop 1.6 long enough to know inside/outside of the application and even I developed few modules myself, all is simple and great but in small scale. My application is big, I am talking about millions rows in database. Two databases weight almost 18G (see the picture).

One day at 2AM I received a notification that my website/application is down. I looked at the server the application seems OK but the databases gone crazy big, (see the picture) it has gone from 18G to over 90G less than 6 hours. 
Since there was almost none free space left on the server, all server running really slow even I could not restart NGINX. All was frozen. All my websites/applications run on dedicated server on UKFast, so none of websites would work because all is glued together. 
There are many issues here, e.g. the server infrastructure is wrong (I know that already), there should be monitoring service in place which there was no such thing (I know that too) etc. but why this happened,…