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
| ActionView::Template::Error (undefined method `tag_text_regexp' for ActsAsTaggableOn::Tag(id: integer, name: string):Class): | |
| 19: != markdownify(post, :youtube_maps => post[:youtube_titles]) | |
| 20: - if post.o_embed_cache_id.present? | |
| 21: = o_embed_html(post.o_embed_cache) | |
| lib/diaspora/taggable.rb:44:in `format_tags' | |
| app/models/status_message.rb:64:in `formatted_message' | |
| app/models/status_message.rb:49:in `text' | |
| app/views/status_messages/_status_message.html.haml:22:in `_app_views_status_messages__status_message_html_haml__1172895017_56252100_10886956' | |
| app/views/shared/_stream_element.html.haml:41:in `_app_views_shared__stream_element_html_haml___413411123_50720540_6958476' | |
| app/views/shared/_stream.haml:5:in `_app_views_shared__stream_haml___62388603_51007060_2787724' |
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
| diff --git a/db/migrate/20111012215141_move_photos_to_their_own_table.rb b/db/migrate/20111012215141_move_photos_to_their_own_table.rb | |
| index 33e3d9e..4e8b31a 100644 | |
| --- a/db/migrate/20111012215141_move_photos_to_their_own_table.rb | |
| +++ b/db/migrate/20111012215141_move_photos_to_their_own_table.rb | |
| @@ -21,45 +21,45 @@ class MovePhotosToTheirOwnTable < ActiveRecord::Migration | |
| if postgres? | |
| execute %{ | |
| -INSERT INTO photos ( | |
| -tmp_old_id |
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 postgres? | |
| execute %{ | |
| INSERT INTO photos ( | |
| tmp_old_id | |
| , author_id | |
| , public | |
| , diaspora_handle | |
| , guid | |
| , pending | |
| , text |
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
| % be foreman start | |
| 20:14:12 web.1 | started with pid 7828 | |
| 20:14:12 redis.1 | started with pid 7829 | |
| 20:14:12 websocket.1 | started with pid 7830 | |
| 20:14:12 worker.1 | started with pid 7832 | |
| 20:14:13 worker.1 | process terminated | |
| 20:14:13 system | sending SIGTERM to all processes |
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
| (rdb:1) p Post.all.find { |p| p.author_id == 978 } | |
| #<StatusMessage id: 1051, author_id: 978, public: false, diaspora_handle: "alice@localhost:9887", guid: "b82ff21c4136c8bc", pending: false, type: "StatusMessage", text: "ohai", remote_photo_path: nil, remote_photo_name: nil, random_string: nil, processed_image: nil, youtube_titles: {}, created_at: "2011-10-04 13:58:54", updated_at: "2011-10-04 13:58:54", unprocessed_image: nil, object_url: nil, image_url: nil, image_height: nil, image_width: nil, provider_display_name: nil, actor_url: nil, objectId: nil, root_guid: nil, status_message_guid: nil, likes_count: 0, comments_count: 0> | |
| (rdb:1) p Post.where(:author_id => 978) | |
| NoMethodError Exception: undefined method `abstract_class?' for Object:Class |
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
| % dig mail.purepistos.net | |
| ; <<>> DiG 9.7.1 <<>> mail.purepistos.net | |
| ;; global options: +cmd | |
| ;; Got answer: | |
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63340 | |
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
| ;; QUESTION SECTION: | |
| ;mail.purepistos.net. IN A |
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
| * { | |
| font-family: sans-serif; | |
| } | |
| body { | |
| color: #000000; | |
| background-color: #ffffff; | |
| } | |
| input { |
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
| puts "[#{Time.now}] starting" | |
| raw = `ps aux | egrep 'Sl.*unicorn worker.*0e.pist0s.ca' | grep -v grep | awk '{ print $2,$5 }'`.split("\n") | |
| unicorns = raw.map { |r| | |
| data = r.split(' ') | |
| if data[1].to_i > 60000 && data[0].to_i > 1 | |
| puts "[#{Time.now}] killing pid #{data[0]} for memory #{data[1]}" | |
| system 'kill', '-s', 'TERM', data[0] | |
| 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
| (rdb:1) p ['hey'].should include('hey') | |
| TypeError Exception: wrong argument type String (expected Module) | |
| (rdb:1) p ['hey'].include?('hey').should be_true | |
| true |
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
| (rdb:1) p ['hey'].should include('hey') | |
| TypeError Exception: wrong argument type String (expected Module) | |
| (rdb:1) p ['hey'].include?('hey').should be_true | |
| true |