Hacker Newsnew | past | comments | ask | show | jobs | submit | nareshv's commentslogin

If we can find "why" we go to all these apps/websites, then we can find a solution by ourselves by satisfying the "why" with some other one which can improve our skills (or any other desired quality)

For example, if we always check emails just to see how many new-emails we have got, so that we can act on them asap, Its a good case as its going to improve our productivity and time-to-respond lower.

Another example, if we always check fb to see what other people's activities are. Well, we can turn this around and make us the person who is doing lots of personal activities (outside of internet domain) and posting it to facebook (may be weekly), or restrict it to closer pals/family.

Personally, if we interact more with Nature around us, it feels great.

Restrict the use of these "virtual" worlds and try to participate more with the world around us. Instead of posting a message on facebook, may be call your best friends and say hi. Its million times better than seeing 1 like for the post in the virtual world.


When you cannot work with other experience people or participate in open-source projects. Try these things.

1. Take a task and implement it in the most laziest way (like implementing everything in a single code file)

2. Try to make the implementation "look beautiful" (with proper indentation, etc)

3. Try to make the instructions in your code analyze the return codes, check the input parameters to functions, catch exceptions, split them into various files, functions, classes etc by adding more code.

Third step is where you will try to learn more from the programming language that you have chosen. See https://gist.github.com/nareshv/50fa0884d09622792e34 for example

Once you master the step-3, you will always do begin with these things when you start implementing your project.

Source: Personal experience.


1. Start with the basic syntax/cheat-sheet of the language.

2. Read instructions as 'that's what they are' and try to come-up with examples for yourself as why they are like that. (This is a bit creative and examples are only for yourself so that you can remember it)

3. once step-2 is done, its going to make it easier to remember things via your own-made-examples and things will flow smoothly when you see things.

say: http://www.maplesoft.com/support/help/maple/view.aspx?path=s...

1. take 'concatenation'. a || b

2. remember it like you are gluing two things with || thingy. and || thingy can be remembered as a chewing-gum or anything you like

3. next time you see || you remember the object (chewing-gum) and it always leads you to concatenation.

Try it out, it might sound funny. But works..


If your app can run with just the h/w (CPU,Disk,RAM) available @ D-O you can do the migration. AFAIK, D-O does not have EBS like storage, which is essential in case there is lot of data that needs to be stored.

I have couple of sites (pretty low traffic) [nodejs, hhvm] running on D-O with pretty good uptime (> 1 year)

I'd recommend you to jot things down w.r.t what all things you have in terms of CPU, Disk, Memory, Apps, Server Usage over a week/month/year period and then see if the instances @ D-O can help.

Also, plan for future growth of the App, Just in case there is a sudden spike in traffic, there might be sudden need for additional Storage. In such scenario, with D-O you need to buy new servers, with EC2 you can add another disk with ease and can scale on storage.

AFAIK, D-O does not have ELB, so we need to buy instances and run ATS, Nginx, HAproxy, etc to do the load-balancing


Thanks.

We definitely are using ELB, S3, Route53 and the EC2 services. I am happy to hear that the uptime on your apps is really good, that makes me feel better, but given we use ELB's for our internal and external balancing it would be a consideration that we would have to run more servers and maintain that software. Not that ELB's are perfect, but so far they have been really reliable and "safe".

Thanks again for the input.


> deleted account completely many years back.

Felt that living life is so better than recording all of it in facebook.


built-in "firecookie" would be great addon.


+1 for Firecookie, super convenient to read and modify cookies on a site-by-site basis and one of the few reasons I still have Firebug installed albeit I always dread how much slower it is vs. the built-in developer tools.


we + { don't need + no } + education => we + { do need } + education

with some smart css styling ofcourse !


nice !

any way to save it offline ;-?


Just click the "save" button in your browser - the file gets saved as a .html.


No.

Its Mac Only right now. can't try yet.


say /var/www/html is where the code is served from.

Active symlink is maintained to the proper build which comes from (say hudson/jenkins)

Say the current symlink is /var/www/html -> build.v5

Below commands illustrate the sequence of the deployment via ssh for the next build number 6 (which can even be a no-op build)

tar jcf build.v6.tar.bz2 build.v6

scp build.v6.tar.bz2 prod-server:/var/www/

ssh prod-server 'VER=6; cd /var/www && tar jxf build.v$VER.tar.bz2 && ln -sf html build.v$VER && sudo service httpd reload'

Similar logic is followed with the help of git/etc. Idea is to 'keep versions' of your code. so that if things get messed up you can rollback quickly. Most people don't think of rollback, until it bites them really bad !


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: