Joined May 2013
·

Miha Rekar

Slovenia
·
·
·

Posted to Get rid of Dropbox conflicted copies over 1 year ago

Wow, that's great news :D Glad to help :)

Posted to Your Privates Stink over 1 year ago

I would disagree. Private methods are a great way to separate API calls from business logic. Also private methods shouldn't be tested - they are used by the classes own public methods which are the ones that need to be tested. That way it's easy to refactor code without wrecking havoc, since private methods can change all the time. That's their purpose after all.

Posted to Easy Multi-Select Sublime Text 2 over 1 year ago

There is a lot of usefull stuff written at the docs: http://www.sublimetext.com/docs/2/

It's really easy to do that with NewRelic. Just set up availability checking :)

There is always git reflog

Use a gem called bullet It will tell you when to use it and when you are just throwing performance away using it ;)

Posted to Bootstrap3 for Ruby on Rails over 1 year ago

Now that they have their own CDN I would actually recommend using that instead ;)

Posted to Remap Caps Lock to Control over 1 year ago

I'm a heavy user of Alfred (and you should be too) and I remaped Caps Lock to F16 which fires up Alfed. You do need some software to do app, like PCKeyboardHack

I use the one that has all the package managers (since I do Obj-C too) and is really nice. Package Managers

Posted to Rails: How to Override default_scope? over 1 year ago

Fix typo uncoped -> unscoped. Also should be noted that default_scope is bad practice

Posted to PostgreSQL, Rails and OS X over 1 year ago

Then there is Postgress.app

Posted to Rails 4 Scopes and as_json response over 1 year ago

Just FYI - if you are building just API, take a look at rails-api

Posted to OSX window management tips over 1 year ago
Posted to Week's Plan over 1 year ago

I don't have an answer because I don't know Django, but you might find StackOverflow better fitted for your question. The platform is made for questions like this, while CoderWall is more of a share-your-protip kinda platform.

Yes but if you bind directly to the element and it does not exist it will not bound to it if it is created in the future. That's why I suggested document and then selector as a parameter which will go the delegation way.

The .on() part is actually not true anymore, read the docs: Event handlers are bound only to the currently selected elements; they must exist on the page at the time your code makes the call to .on().

That said, you could bind events to document and then as the first parameter send in the selector. This is NOT a best practice but will do it's job.

Posted to git log for humans over 1 year ago

There is an unwanted space between --abbrev-c and ommit, it should be --abbrev-commit

You do know that GitHub provides all this URLs nicely in the sidebar, right?

@pravinsb oh, didn't know that. I switched to postgres about a year ago and I love it.

Posted to Metaboxes globales //WP. over 1 year ago

I don't really understand what you are saying but you might find my library for WordPress meta boxes useful: https://github.com/mrfoto/mr-meta-box

Posted to count and size for ActiveRecord over 1 year ago

If you do counting a lot you should cache it with counter_cache http://railscasts.com/episodes/23-counter-cache-column

It's really not that hard. You just need Xcode Command Line Tools, RVM and rubygems. This is an excellent guide: http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/

Posted to Blank Facebook Canvas With Rails over 1 year ago

Oh my god, I wanna kiss you now :D I've been banging my head all day with this and I had no clue where to look at. THANK YOU!!!

Achievements
422 Karma
26,608 Total ProTip Views