← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 86
  1. I maintain jasmine-jquery, a library providing jquery matchers and fixture loading for jasmine.

  2. It’s a bit tricky to install Ruby on Mac OS X Maverick (10.9), but here’s what worked for me.

  3. Recently ran into this issue where Google Chrome wouldn’t open iTunes links (e.g. links to WWDC videos, iOS apps, songs, etc.), a while ago I’d set Chrome to remember not open those links (oops).

  4. I had someone ask me for the best way to get the status bar’s height.

  5. When using AVFoundation, you’ll notice that the numbers returned when checking the audio channel power levels may look kind of strange.

  6. Compiling sucks, for the most part, and while it’s getting better with smarter compilers and faster computers this is what it often feels like: So instead of sitting there, you head over to the kitchen, make a fresh cup of tea, and see how your friends and

  7. I read a lot of code, and some of the most common mistakes I see is how people override UIViewController’s view property.

  8. Having a modular and well-organized code is clearly great from an architectural standpoint, but it can make the actual filesystem layout and hierarchy of your project a little complex, now that text editors and IDEs also have good fuzzy finding capabiliti…

  9. I released a project called TRVSNavigationControllerTransition.

  10. Alias in ZSH with completion

    I use git in a terminal all day, every day. 3 characters adds up if you type them enough, g i t, so let’s shorten what we have to type.

  11. Two techniques that iOS developers use to make visually appealing app are masks and shadows; for example, masking an image to have round corners, or adding a drop shadow to an image to have depth.

  12. Recently I was implementing a view where the last cell of a table view needed a drop shadow.

  13. You’ve subclassed UITableViewCell and you’ve added a UIButton as a subview.

  14. I’ve seen bad practices for handling errors with JSON and Rails: Not using proper HTTP statuses; Not using the error callback; and Making errors message building harder than necessary.

  15. You can call Backbone.history.start() once.

  16. Chrome released a new Web Inspector feature called Dock to right.

  17. I like ActiveModel’s Errors object.

  18. In JavaScript, the this keyword refers to the object it belongs to, and the object depends on where you use it.

  19. Ruby has a conditional assignment operator: ||=.

  20. Rails’ generators can pump out code and save you from tedious work.

  21. Git added a feature that enables you to split your Git config across multiple files.

  22. Before I change a Rails partial that’s shared across the project, I check what effect my change will have by looking at where and how the partial’s used.

  23. Prelude Recently I implemented a piece of functionality that used PostgreSQL’s hstore data type in a Rails application and I’d like to share how we did it including some improvements you can make to use data stored as an hstore easier. hstore is PostgreSQL

  24. Vim and the power of :g

    Vim’s :g takes two inputs: a pattern and an operation, and it runs that operation on each line that matches the pattern in the current file.

  25. Modern grep

    Update: I updated the post for ripgrep. grep reigned as the preeminent text search tool for a long time.

  26. $ git grep <regexp> Try it out on a project, then try the same search with ack and grep and you see that we have speed that’s better than either grep or ack.

  27. After running a command like $ rake new_post["hello world"], you may have seen an error like the following: zsh: no matches found: new_post[...]

  28. No matter how clean your code is, you need to document your code.

  29. If you need to build a JavaScript RegExp from multiple strings or regexps, dynamically, here’s how: var re = new RegExp("some string" + /some.

  30. I’ve experimented with making DSLs in Ruby and here’s an example: class User def initialize &block if block.arity == 1 block[self] else instance_eval &block end end def name new_name = nil @name ||= new_name end def location new_location = nil

  31. For teams building projects with Git, a good habit is to rebase and merge often so conflicts are less frequent and easier to resolve.

  32. I often open a file in a directory that doesn’t exist yet.

  33. Markdown headers in Vim

    With TextMate’s Markdown bundle, you can mark headers by moving your cursor to the line after the intended header, typing # and pressing <Tab>.

  34. I’m going to show you how to use the reflog to fix mistakes you’ve made with Git, where you seemingly can’t recover the history.

  35. M-x occur for Vim

    Emacs has a feature named “occur” that lists the lines in the current buffer that match a given regexp.

  36. Hello. Yes, this is blog.

    Stay tuned!