This file contains hidden or 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
<% if notice %> | |
<p id="notice"><%= notice %></p> | |
<% end #notice %> | |
<h1>Your Pragmatic Catalog</h1> | |
<% @products.each do |product| %> | |
<div class="entry"> | |
<%= image_tag(product.image_url) %> | |
<h3><%= product.title %></h3> |
This file contains hidden or 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 ApplicationController < ActionController::Base | |
protect_from_forgery | |
@time = Time.now | |
end |
This file contains hidden or 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 AddPriceToLineItems < ActiveRecord::Migration | |
def self.up | |
add_column :line_items, :price, :decimal | |
LineItem.all.each do |line_item| | |
line_item.price = line_item.product.price | |
line_item.save | |
end | |
end |
This file contains hidden or 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
aegir@sea:~/tmp/migrate$ drush @zhso.ru provision-deploy /var/aegir/tmp/migrate/zhso.ru-20110111.121249.tar.gz | |
array_keys() expects parameter 1 to be array, null given [warning] | |
deploy.provision.inc:84 | |
array_merge(): Argument #2 is not an array deploy.provision.inc:88 [warning] | |
Invalid argument supplied for foreach() deploy.provision.inc:89 [warning] | |
The external command could not be executed due to an application [error] | |
error. | |
Drush command terminated abnormally due to an unrecoverable error. [error] | |
Error: Unsupported operand types in | |
/usr/share/drush/includes/environment.inc, line 895 |
This file contains hidden or 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
Notice: Undefined variable: skinr in include() (line 27 of /var/vhosts/drupal/pressflow-6.22.104/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php). | |
Notice: Undefined variable: skinr in include() (line 27 of /var/vhosts/drupal/pressflow-6.22.104/sites/all/themes/fusion/fusion_core/panels-pane.tpl.php). | |
Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 437 of /var/vhosts/drupal/pressflow-6.22.104/sites/all/modules/views/handlers/views_handler_field.inc). | |
Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 437 of /var/vhosts/drupal/pressflow-6.22.104/sites/all/modules/views/handlers/views_handler_field.inc). | |
Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 437 of /var/vhosts/drupal/pressflow-6.22.104/sites/all/modules/views/handlers/views_handler_field.inc). | |
Notice: Undefined property: stdClass::$unknown in views_handler_field->render() (line 437 of /var/vhosts/drupal/pressflow-6.22.104/sites/all/mod |
This file contains hidden or 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
server { | |
server_name wiki.domain.tld; | |
root /var/www/dokuwiki; | |
location / { | |
index doku.php; | |
try_files $uri $uri/ @dokuwiki; | |
} | |
location @dokuwiki { |
This file contains hidden or 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
Processing IssuesController#create (for 178.236.241.96 at 2011-09-19 04:04:53) [POST] | |
Parameters: {"authenticity_token"=>"Y7xzr+d+tGT3UWkJm2li7lj67qlcaxuGAqHuF2DzzQY=", "issue"=>{"tracker_id"=>"2", "subject"=>"\xD0\x9D\xD0\xB0\xD1\x81\xD1\x82\xD1\x80\xD0\xBE\xD0\xB8\xD1\x82\xD1\x8C ChiliProject", "parent_issue_id"=>"", "description"=>"", "status_id"=>"1", "priority_id"=>"4", "assigned_to_id"=>"3", "start_date"=>"2011-09-19", "due_date"=>"", "estimated_hours"=>"", "done_ratio"=>"0"}, "attachments"=>{"1"=>{"description"=>""}}, "send_notification"=>"1", "commit"=>"\xD0\xA1\xD0\xBE\xD0\xB7\xD0\xB4\xD0\xB0\xD1\x82\xD1\x8C", "controller"=>"issues", "action"=>"create", "project_id"=>"blackbat"} | |
Encoding::CompatibilityError (incompatible character encodings: UTF-8 and ASCII-8BIT): | |
app/models/mailer.rb:46:in `issue_add' | |
app/models/issue_observer.rb:19:in `after_create' | |
/opt/nginx/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/observer.rb:186:in `block in notify_observers' | |
/opt/nginx/.rvm/rubies/ruby-1.9.2-p290/ |
This file contains hidden or 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
Умер хард на компе бухгалтера (WinXP Pro). Имеется свежий бэкап, сделанный ntbackup'ом. | |
Беру новый хард, разбиваю на разделы, копирую файлы из бэкапа, восстанавливаю MBR и активный раздел. | |
Винда не грузится — ntbackup спас файлы, занятые виндой в момент бэкапа. Консоль восстановления не работает, т. к. под рукой только другой дистр и не видит эту винду. | |
Ставлю еще один виндоус на тот же раздел. Создается папка Windows.0, папки Documents and Settings и Program Files становятся общими. В Documents and Settings создаются папки пользователей с префиксами. | |
Понимаем с бухгалтершей, что все данные какбе на месте, но 1С, КриптоПро, Такском, Контур, Банк-клиент, Консультант — не работают. Восстанавливать все это из дистрибутивов — дело недели, а то и двух. Не вариант, нужно спасать старую винду. |
This file contains hidden or 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
15:30:41 [SEVERE] Unexpected exception | |
java.lang.NullPointerException | |
at net.minecraft.server.WorldServer.c(WorldServer.java:106) | |
at net.minecraft.server.World.a(World.java:2224) | |
at net.minecraft.server.Chunk.addEntities(Chunk.java:629) | |
at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:81) | |
at net.minecraft.server.ChunkProviderServer.getOrCreateChunk(ChunkProviderServer.java:106) | |
at net.minecraft.server.World.getChunkAt(World.java:300) | |
at net.minecraft.server.World.getTypeId(World.java:247) | |
at net.minecraft.server.World.isEmpty(World.java:251) |
This file contains hidden or 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
procs = 1 | |
rendermode = ["day", "night", "cave", "cave-lighting"] | |
imgformat = "png" | |
optimizeimg = 3 | |
north_direction = "upper-left" |