This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$data = preg_replace(array( | |
'/&[#a-z0-9]+?;/i', | |
'/\(.+?\)/', | |
'/\n/', | |
'/feat[^\s]+/i', | |
'/-/', | |
'/ft\./', | |
'/[ ]{2,}/', | |
'/ .+`.+ /', | |
'/[ |.]+\?[ |.]/', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= @var.each do |channel| %> | |
Namn: <%= channel.name %><br /> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @var.each do |channel| %> | |
Namn: <font color="red"><%= channel.name %></font><br /> | |
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Fetch product prices" | |
task :envc => :environment do | |
require 'nokogiri' | |
require 'open-uri' | |
save = Array.new | |
doc = Nokogiri::XML(open('http://pager.com')) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = Url.include(:services).where('services.name =', service).first |