Pages

Tuesday, June 4, 2013

big O complexities of common algorithms

The following link summarizes the complexities of common computer science algorithms stating weather they are good or not for specific tasks. This could be very useful.

http://bigocheatsheet.com/

RTMP

RTMP is a real time messaging protocol owned by macromedia. This protocol is used to stream video, audio and data over internet between a flash player and a server.  It uses 1935 port by default. Another variant of this protocol is RTMPT (real time messaging protocol with tunneling) and it is encapsulated within an http request to traverse firewalls.

Friday, May 24, 2013

how to store user uploaded files in a web app

Generally for simple apps you can use a hash as the file name and link the file using a database. Another approach would be to keep the file in the database. But that would mean the database would fill up quite quickly and it'll cause high usage of db as well. Then again another simple approach is to transfer it to a hosting service and then provide the URL in order to retrieve it. However there are things that needs to be addressed like the file size, number of files, load etc... Therefore the best way is to make sure that the method you implement, suits your requirements. I came across this nice article on how facebook provide the infrastructure to store photos. This provide some insight into how large scale services are organized in order to provide the fascility.

Monday, May 13, 2013

Signs of a good programmer

Now I've been working in the software industry for more than an year. Recently I decided to evaluate myself and see where I am as a developper. Then I found the qualities of a good programmer and a bad programmer. These are habits more than qualities. The first link describes the signs that you are a good developer. The latter describes the signs of a bad developer. God through both the articles and see where you are now as a programmer.


  1. https://sites.google.com/site/yacoset/Home/signs-that-you-re-a-bad-programmer
  2. https://sites.google.com/site/yacoset/Home/signs-that-you-re-a-good-programmer
Hope this will help you to improve as a developer.

Saturday, January 19, 2013

some simple vim commands

undo : u
redo : Ctrl+R
delete: d<number of lines to delete>d
copy : y<number of lines to copy>y
indent: <number of lines to indent>>>