Shortcuts that save time

Imagine the following situation:

You would like to clone a repo ‘chitchat’ and make a typo in a word git (‘_’ is your cursor position)

$ gir clone https://github.com/gajendrakumarjena/chitchat.git _

So you’d like to correct it and… Well, the vast majority of programmers that I know will hit left arrow key over 30 times to get there because they don’t know that:

Ctrl-A returns cursor to the beginning of current line, Ctrl-E moves cursor to the end of the line, Ctrl-K deletes the rest of the line, beginning from the cursor.

Those shortcuts work on OSX almost everywhere, for example in Safari address bar.

75 questions to ask yourself

An old proverb says, “He that cannot ask cannot live”. If you want answers you have to ask questions. These are 75 questions you should ask yourself and try to answer. You can ask yourself these questions right now and over the course of your life.

1. Why not me?

2. Am I nice?

3. Am I doing what I really want to do?

4. What am I grateful for?

5. What’s missing in my life?

6. Am I honest?

7. Do I listen to others?

8. Do I work hard?

9. Do I help others?

10. What do I need to change about myself?

11. Have I hurt others?

12. Do I complain?

13. What’s next for me?

14. Do I have fun?

15. Have I seized opportunities?

16. Do I care about others?

17. Do I spend enough time with my family?

18. Am I open-minded?

19. Have I seen enough of the world?

20. Do I judge others?

21. Do I take risks?

22. What is my purpose?

23. What is my biggest fear?

24. How can I conquer that fear?

25. Do I thank people enough?

26. Am I successful?

27. What am I ashamed of?

28. Do I annoy others?

29. What are my dreams?

30. Am I positive?

31. Am I negative?

32. Is there an afterlife?

33. Does everything happen for a reason?

34. What can I do to change the world?

35. What is the most foolish thing I’ve ever done?

36. Am I cheap?

37. Am I greedy?

38. Who do I love?

39. Who do I want to meet?

40. Where do I want to go?

41. What am I most proud of?

42. Do I care what others think about me?

43. What are my talents?

44. Do I utilize those talents?

45. What makes me happy?

46. What makes me sad?

47. What makes me angry?

48. Am I satisfied with my appearance?

49. Am I healthy?

50. What was the toughest time in my life?

51. What was the easiest time in my life?

52. Am I selfish?

53. What was the craziest thing I did?

54. What is the craziest thing I want to do?

55. Do I procrastinate?

56. What is my greatest regret?

57. What has had the greatest impact on my life?

58. Who has had the greatest impact on my life?

59. Do I stand up for myself?

60. Have I settled for mediocrity?

61. Do I hold grudges?

62. Do I read enough?

63. Do I listen to my heart?

64. Do I donate enough to the less fortunate?

65. Do I pray only when I want something?

66. Do I constantly dwell on the past?

67. Do I let other people’s negativity affect me?

68. Do I forgive myself?

69. When I help someone do I think “What’s in it for me”?

70. Am I aware that someone always has it worse than me?

71. Do I smile more than I frown?

72. Do I surround myself with good people?

73. Do I take time out for myself?

74. Do I ask enough questions?

75. What other questions do I have?

How to Install Rmagick on Windows

how to install RMagick + ImageMagick on Windows.



1. Uninstall any Image Magick or RMagick gem from before (if you have installed anything).

2. Download rmagick-win32 for windows that has the gem and the ImageMagick installer from the following link

http://rubyforge.org/frs/download.php/64917/RMagick-2.12.0-ImageMagick-6.5.6-8-Q8.zip

3. Unzip the rmagick-win32 zip file that you downloaded above.

4. Install the ImageMagick from the installer that came in the zip i.e. run the ImageMagick-6.5.6-8-Q8-windows-dll.exe. This will install ImageMagick for you.

5. Now, we need to install the rmagic gem that came in the zip i.e. rmagick-2.12.0-x86-mswin32.gem. To do that, run the following command on a windows command line:

> gem install “path of the rmagick-2.12.0-x86-mswin32.gem where you have extractedrmagick-2.12.0-x86-mswin32.gem”

Note: When you read this post, the version nos. of the gem and the zip file may change. Please adjust your commands for that.

Follow

Get every new post delivered to your Inbox.