Skip to content

Instantly share code, notes, and snippets.

View ch1ago's full-sized avatar
🏠
Working mostly from home since 2006

Thiago Almeida ch1ago

🏠
Working mostly from home since 2006
  • Mexico City
  • 04:33 (UTC -06:00)
View GitHub Profile
NameError in Site#exce
Showing /home/r3/apps/ex1/vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/_request.text.erb where line #3 raised:
uninitialized constant ActionView::CompiledTemplates::PP
Extracted source (around line #3):
1: * URL : <%= raw @request.url %>
2: * IP address: <%= raw @request.remote_ip %>
Started GET "/site/exce" for 187.58.37.215 at 2010-11-27 13:22:32 -0800
Processing by SiteController#exce as HTML
Completed in 0ms
Rendered vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/_request.text.erb (1.0ms)
Rendered vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/_message.text.erb (0.3ms)
Rendered vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/_application_trace.text.erb (0.5ms)
Rendered vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/_full_trace.text.erb (0.6ms)
Rendered vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/_session.text.erb (0.9ms)
Rendered vendor/plugins/exception_notification/lib/exception_notification/views/exception_notification/notifier/notify.text.erb (27.7ms)
Rendered vendor/plugins/exception_notification/li
<!DOCTYPE html>
<html>
<head>
<title>Teste</title>
<%= stylesheet_link_tag :all %>
<%= javascript_include_tag :defaults %>
<%= csrf_meta_tag %>
<style>
body {background:#C52F24;margin:0}
div.menu {width:800px;background:#D5E9F6;margin:0 auto;padding: 10px 20px;text-align:right;color:#333;}
Started GET "/Thiago/list/followers" for 127.0.0.1 at 2010-12-21 16:22:15 -0200
Processing by UsersController#list as HTML
Parameters: {"id"=>"Thiago", "list"=>"followers"}
User Load (12.2ms) SELECT "users".* FROM "users" WHERE (lower(username)='thiago') LIMIT 1
Relationship Load (1.1ms) SELECT user2_id FROM "relationships" WHERE ("relationships".user1_id = 3 AND ("relationships"."is_followed" = 't'))
User Load (240.6ms) SELECT "users".* FROM "users" WHERE (id in (2,1,4,6,10,14,17,18,26,28,29,23,22,31,34))
Post Load (31.4ms) SELECT "posts".* FROM "posts" WHERE ("posts"."id" IN (356,359,203,348,317,74,338,361,287,333,327,294,363))
Photo Load (0.6ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" IN (1,2,3,13,7,11,12,21,33,49,28,34,56,60))
User Load (4.5ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 3) LIMIT 1
Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE ("photos"."id" = 50) LIMIT 1
Started GET "/out" for 187.7.224.38 at 2010-12-28 09:42:04 -0800
Processing by Devise::SessionsController#destroy as HTML
[paperclip] Saving attachments.
Redirected to http://executter.com/
Completed 302 Found in 9ms
Started GET "/" for 187.7.224.38 at 2010-12-28 09:42:04 -0800
Processing by HomeController#index as HTML
Redirected to http://executter.com/in
r3@r3:~/apps/ex1$ rails s
=> Booting WEBrick
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-12-28 20:19:33] INFO WEBrick 1.3.1
[2010-12-28 20:19:33] INFO ruby 1.9.2 (2010-08-18) [i686-linux]
[2010-12-28 20:19:33] INFO WEBrick::HTTPServer#start: pid=4869 port=3000
==> production.log <==
Starting the New Relic Agent.
#tempo para renderizar o corpo da pagina
Started GET "/s" for 187.54.96.15 at 2010-12-28 15:26:10 -0800
Processing by SiteController#search as HTML
Rendered parts/_search_box.html.erb (49.0ms)
Rendered site/search.html.erb within layouts/application (136.8ms)
<?php
$mysql_db = "test";
$mysql_user = "root";
$mysql_pass = "root";
$con = mysql_connect("localhost", $mysql_user, $mysql_pass);
mysql_select_db($mysql_db, $con);
$create_query = "CREATE TABLE emp_table (emp_id INT NOT NULL AUTO_INCREMENT,
emp_name VARCHAR(50), emp_designation VARCHAR(50), PRIMARY KEY (emp_id))";
mysql_query($create_query, $con);
Started GET "/h/ajax_tab_data/1/after/374/count/1" for 127.0.0.1 at 2010-12-30 16:56:46 -0200
Processing by HomeController#ajax_index_tab_data as */*
Parameters: {"tab_id"=>"1", "after"=>"374", "count"=>"1"}
User Load (9.2ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 3) LIMIT 1
Relationship Load (1.6ms) SELECT "relationships".* FROM "relationships" WHERE ("relationships".user1_id = 3 AND ("relationships"."is_follower" = 't'))
SQL (0.3ms) SELECT COUNT(*) AS count_id FROM (SELECT 1 FROM "posts" WHERE (id > '374') AND (user_id IN (3,1,4,6,10,8,7,5,29,23,22,31,33,32)) LIMIT 3) AS subquery
Rendered text template (0.1ms)
Completed 200 OK in 421ms (Views: 1.8ms | ActiveRecord: 11.1ms)
@ch1ago
ch1ago / pos_registro.rb
Created December 30, 2010 18:23
PROCESSO DE registro e pós registro DE UM NOVO USUARIO
Started GET "/h/after_sign_up" for 127.0.0.1 at 2010-12-30 17:18:49 -0200
Processing by HomeController#after_sign_up as HTML
User Load (5.5ms) SELECT "users".* FROM "users" WHERE ("users"."id" = 36) LIMIT 1
User Load (0.5ms) SELECT "users"."id" FROM "users" WHERE (LOWER("users"."email") = LOWER('[email protected]')) AND ("users".id <> 36) LIMIT 1
User Load (0.3ms) SELECT "users"."id" FROM "users" WHERE (LOWER("users"."username") = LOWER('elane')) AND ("users".id <> 36) LIMIT 1
User Load (0.2ms) SELECT "users"."id" FROM "users" WHERE ("users"."username" = 'elane') LIMIT 1
SQL (3.9ms) UPDATE "users" SET "first_geo_city" = '', "first_geo_state" = '', "temp" = '---
:follow_on_registration: "32"
', "updated_at" = '2010-12-30 19:18:50.321475' WHERE ("users"."id" = 36)
[paperclip] Saving attachments.