curl ifconfig.me
thanks to AskUbuntu
Tech stuff around computer programming, basically for web development, especially opensource. Topics will go round Ruby on Rails (git gems etc.), Ubuntu (admin and basic shell) and work organization (agile philosophy)
ActiveRecord::Migration.new.add_column :payments, :card_verification, :string, limit: 8 ActiveRecord::Migration.new.execute "full sql here"
The correct way to render html inside your XHR response in Rails.
app.showFlashMessages('<%=j flash_messages %>')
$('.booking').replaceWith( '<%=j render @booking %>' )
app.myFunction( <%=raw array.map(&:to_json) %> ) # TODO: double check
# /config/initializers/backtrace_silencers.rb
Rails.backtrace_cleaner.add_silencer { |line| line =~ /lib\/action_dispatch\/middleware\/static.rb/ } if Rails.env.development?
[FTL] ActionController::RoutingError (No route matches [GET] "/assets/ecoologic/rooms/room_tb.png"): actionpack (3.2.5) lib/action_dispatch/middleware/static.rb:62:in `call'
# Print the query result into a file mysql> select * into outfile '/tmp/new.txt' from users; # show the current database mysql> select database();
&pws=0to the end of your search URL in the search bar. Useful for SEO.
Disclaimer: You can't get out of all of the filters bubble.