# Previously
sudo etc/init.d/NetworkManager stop
# Updated
sudo etc/init.d/network-manager stop
Friday, November 26, 2010
Network manager in Ubuntu 10.10
Not sure which version of Ubuntu has this been implemented.
Sunday, November 21, 2010
Enabling bash completion
Uncomment the following in /etc/bash.bashrc
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
f
Hijacked keyboard shortcut
Somehow when I upgraded to Ubuntu 10.10, my "Shift + f" launches firefox.
Apparently that keybinding was assigned to run command_1 in metacity which was assigned to launch firefox. To disable it go to,
gconf > apps > metacity > global_keybindings
Apparently that keybinding was assigned to run command_1 in metacity which was assigned to launch firefox. To disable it go to,
gconf > apps > metacity > global_keybindings
Saturday, November 20, 2010
Thursday, November 11, 2010
Error messages for Rails 3
# Deprecated <%= error_messages_for :question %> # Use partial in app/views/shared <% if target.errors.any? %><% end %> # Render partial in view <%= render "shared/error_messages", :target => @question %><%= pluralize(target.errors.count, "error") %> prohibited this record from being saved:
<% target.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
Subscribe to:
Posts (Atom)