Ayush's Blog

  • Rake Tips

    Dependancies are in Hash syntax Dependancies run only once. So if a, b depend on c and a task d has both a, b as dependancy, running task d wouldn’t run c twice. Also, tasks are not functions 1 2 3 4 5 6 7 8 9 10 11 12...

  • Access Keychain From iOS Extension

    Accessing keychain on iOS is pretty easy, given that you are using SSKeychain. Surprisingly, keychain sharing on iOS is also pretty easy. Keychain access is determined by the Keychain Group your app is using. Since the containing app and an extension are built as two different targets, to share a...

  • Avoid Core Data

    I suggest this to everybody who are writing an app, whose true data lies outside the app itself. Mostly, it’s any app that needs internet connection. I learnt this when developing Checkvistle. The true data was with Checkvist. The data could change when my app was in background or killed....

  • Top Level Functions In Ruby

    While working on Matasano crypto challenges, I reached a stage where I could reuse the functions I had written in previous exercises. So let’s suppose I had a function foo in 1.rb 1 2 3 def foo "foo" end I need the function foo in my second script named 2.rb...

  • Non Breaking Space For Html

      is used to create a non breaking (doesn’t insert a new line) space character in HTML.

  • Creating Footer For Jekyll

    I am updating this jekyll blog to a new theme. For the new theme, I had to update the footer to include links to my mail, github and twitter. What I really wanted was to just show the relevant icons and then link them to my accounts. Github and Twitter’s...

  • Bash Too Many Arguments

    if test ! -f $path The above script would create bash warnings for you like test: too many arguments The problem here is that the path contains spaces in it, and thus the test gets “more than one arguments”. The solution for the above problem is a pretty simple one,...