Skip to content

Instantly share code, notes, and snippets.

ERROR: Error installing rails:
activesupport requires tzinfo (~> 0.3.16, runtime)
bente-oleanders-macbook-pro:torrify oleander$ sudo gem install rails --prerelease
ERROR: Error installing rails:
activesupport requires tzinfo (~> 0.3.16, runtime)
class CreateMovies < ActiveRecord::Migration
def self.up
create_table :movies do |t|
t.integer :id
t.string :title
t.string :imdb
t.integer :grade
t.integer :year
t.integer :length
t.string :url
INSERT INTO `channels` (`id`, `name`, `clicked`, `link`, `active`, `alias`) VALUES
('2', 'NRK mPetre', '9', '', '1', 'NRK mPetre'),
('3', 'NRK 5.1', '2', '', '1', 'NRK 5.1'),
('4', 'Jazz', '0', '', '1', 'Jazz'),
('5', 'NRK Alltid Folkemusikk', '0', '', '1', 'NRK Alltid Folkemusikk'),
('6', 'NRK Sami Radio', '16', '', '1', 'NRK Sami Radio'),
('7', 'NRK P1', '2', '', '1', 'NRK P1'),
('8', 'Gull', '0', '', '1', 'Gull'),
('9', 'NRK P3', '5', '', '1', 'NRK P3'),
('10', 'NRK Trøndelag', '5', '', '1', 'NRK Trøndelag'),
Stationar:Rubyfy linus$ sudo env ARCHFLAGS="-arch x86_64" gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
Warning (2): fopen(/var/www/radiofy/tmp/cache/models/cake_model_default_channels_songs) [function.fopen]: failed to open stream: Permission denied [CORE/libs/file.php, line 154]Warning (2): fopen(/var/www/radiofy/tmp/cache/models/cake_model_default_songs) [function.fopen]: failed to open stream: Permission denied [CORE/libs/file.php, line 154]Warning (2): fopen(/var/www/radiofy/tmp/cache/models/cake_model_default_artists) [function.fopen]: failed to open stream: Permission denied [CORE/libs/file.php, line 154]Warning (2): fopen(/var/www/radiofy/tmp/cache/models/cake_model_default_channels) [function.fopen]: failed to open stream: Permission denied [CORE/libs/file.php, line 154]Warning (2): fopen(/var/www/radiofy/tmp/cache/models/cake_model_default_cplaylists) [function.fopen]: failed to open stream: Permission denied [CORE/libs/file.php, line 154]Warning (2): fopen(/var/www/radiofy/tmp/cache/models/cake_model_default_toplists) [function.fopen]: failed to open stream: Permission denied [CORE/libs/file.php, lin
$data = preg_replace(array(
'/&[#a-z0-9]+?;/i',
'/\(.+?\)/',
'/\n/',
'/feat[^\s]+/i',
'/-/',
'/ft\./',
'/[ ]{2,}/',
'/ .+`.+ /',
'/[ |.]+\?[ |.]/',
<%= @var.each do |channel| %>
Namn: <%= channel.name %><br />
<% end %>
<% @var.each do |channel| %>
Namn: <font color="red"><%= channel.name %></font><br />
<% end %>
desc "Fetch product prices"
task :envc => :environment do
require 'nokogiri'
require 'open-uri'
save = Array.new
doc = Nokogiri::XML(open('http://pager.com'))
end
url = Url.include(:services).where('services.name =', service).first