/
index.html
142 lines (125 loc) · 7.49 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Emphasized Insanity - Mean Mail Machine</title>
<script type="text/javascript" src="/javascripts/application.js"></script>
<link rel="stylesheet" type="text/css" href="/stylesheets/application.css">
<link rel="alternate" type="application/rss+xml" title="Emphasized Insanity - Elad Meidar" href="http://feeds.feedburner.com/EladOnRails" />
</head>
<body>
<div id="wrap">
<div id="header">
<img src="/images/500.png" alt="Emphasized Insanity" />
<div id="summary">
<h1><strong>EmphasizedInsanity</strong> at <strong>/life
</strong></h1>
<h2>undefined method `Sanity` for #<EladMeidar::Developer:0x12e0670></h2>
<ul>
<li class="first"><strong>file:</strong> <code>
brain.rb</code></li>
<li><strong>location:</strong> <code>instance_missing
</code></li>
<li class="last"><strong>line:
</strong> 1</li>
</ul>
</div>
<div class="clear"></div>
</div>
<div id="backtrace" class='expanded'>
<h3>BACKTRACE</h3>
<p><a href="#" id="expando"
onclick="toggleBacktrace(); return false">(condense)</a></p>
<p id="nav"><strong>JUMP TO:</strong>
<a href="#get-info">GET</a>
<a href="#post-info">POSTS</a>
<a href="#cookie-info">COOKIES</a>
<a href="#env-info">ENV</a>
</p>
<div class="clear"></div>
<ul id="backtrace-ul">
<li class="frame-info framework">
<code>
No, this is not a real Sinatra error :). <br/>
This is the personal homepage of Elad Meidar, a web developer and an entrepreneur specializing in Ruby on Rails. I hang around Fort Lauderdale, FL and Tel-Aviv in Israel, and i am currently running <a href="http://www.nautilus6.com">Nautilus6</a> so Feel free to contact me regarding projects :).<br/>
I am a proud member of <a href="http://www.railsbridge.org">RailsBridge</a>, Helping new <a href="http://www.railsmentors.org/users/185">Rails developers</a> get into our world and also contributed a few <a href="http://contributors.rubyonrails.org/contributors/elad-meidar/commits">Patches</a> to the Ruby on Rails core.
</code>
</li>
<li class="code framework">
</li>
</ul>
</div> <!-- /BACKTRACE -->
<div id="get">
<a id="homepage_link" href="/">Back to Posts List</a>
<h3 id="get-info">GET</h3>
<h3 class="post_title"><a href="/2007/08/mean-mail-machine-2">Mean Mail Machine</a></h3>
<div class="single_post">
<p>i was trying the other day to create some sort of a newsletter. sadly it took me about 2 hours to generate and send 51000 emails (not spam :) ) so i tried to find a way to do it a little faster.<br />a friend of mine came across the idea of using threads so i tried to override the basics of ActionMailer in order to make the delivery method to user threads.<br />the change boosted me up to 18-20 mails per second, in other words, 1900% more efficient!<br />here is the code, just push it in your environment.rb (or lib, whatever), just don’t use it for mean/nasty/microsoft needs :).<br /><br /><div id="hlDiv" class="dp-highlighter"><div class="bar"></div><ol class="dp-rb" start="1"><li class="alt"><span><span>ActionMailer::Base.delivery_method = </span><span class="symbol">:thread_smtp</span><span> </span></span></li><li class=""><span> <span class="keyword">module</span><span> ActionMailer </span></span></li><li class="alt"><span> <span class="keyword">class</span><span> Base </span></span></li><li class=""><span> <span class="keyword">def</span><span> perform_delivery_thread_smtp(mail) </span></span></li><li class="alt"><span> thread = <span class="builtin">Thread</span><span>.</span><span class="keyword">new</span><span> </span><span class="keyword">do</span><span> </span></span></li><li class=""><span> perform_delivery_smtp(mail) </span></li><li class="alt"><span> <span class="keyword">end</span><span> </span></span></li><li class=""><span> thread.run </span></li><li class="alt"><span> <span class="keyword">end</span><span> </span></span></li><li class=""><span> <span class="keyword">end</span><span> </span></span></li><li class="alt"><span><span class="keyword">end</span><span> </span></span></li></ol></div></p>
</div>
<div class="clear"></div>
</div> <!-- /GET -->
<div id="post">
<h3 id="post-info">POST</h3>
<div class="clear"></div>
</div> <!-- /POST -->
<div id="cookies">
<h3 id="cookie-info">COOKIES</h3>
<p class="no-data">I Don't have cookies.</p>
<div class="clear"></div>
</div> <!-- /COOKIES -->
<div id="rack">
<h3 id="env-info">ELAD ENV</h3>
<table class="req">
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
<tr>
<td>LINKEDIN</td>
<td class="code"><div><a href="http://www.linkedin.com/in/eladmeidar">http://www.linkedin.com/in/eladmeidar</a></div></td>
</tr>
<tr>
<td>TWITTER</td>
<td class="code"><div><a href="http://www.twitter.com/eladmeidar">http://www.twitter.com/eladmeidar</a></div></td>
</tr>
<tr>
<td>FACEBOOK</td>
<td class="code"><div><a href="http://www.facebook.com/eladmeidar">http://www.facebook.com/eladmeidar</a></div></td>
</tr>
<tr>
<td>GITHUB</td>
<td class="code"><div><a href="http://github.com/eladmeidar">http://github.com/eladmeidar</a></div></td>
</tr>
<tr>
<td>WWR</td>
<td class="code"><div><code>{ :working_with_rails => '<a href="http://www.workingwithrails.com/person/5844-elad-meidar">http://www.workingwithrails.com/person/5844-elad-meidar</a>' }</code></div></td>
</tr>
<tr>
<td>IRC</td>
<td class="code"><div><code>{ 'irc.freenode.net' => [ '#rubyonrails', '#railsbridge', '#ruby', '#jquery' ]}</code></div></td>
</tr>
<tr>
<td>SKYPE</td>
<td class="code"><div>eladmeidar</div></td>
</tr>
</table>
<div class="clear"></div>
</div> <!-- /RACK ENV -->
<div class="stats">
<p>
<a href="http://feeds2.feedburner.com/EladOnRails"><img src="http://feeds2.feedburner.com/~fc/EladOnRails?bg=FFFFFF&fg=444444&anim=0" height="26" width="88" style="border:0" alt="" /></a>
<script type="text/javascript" language="javascript" src="http://twittercounter.com/embed/?username=eladmeidar&style=white"></script>
</p>
<p>
<script type="text/javascript" src="http://s51.sitemeter.com/js/counter.js?site=s51eizesusrulez"></script>
<noscript>
<a href="http://s51.sitemeter.com/stats.asp?site=s51eizesusrulez" target="_top">
<img src="http://s51.sitemeter.com/meter.asp?site=s51eizesusrulez" alt="Site Meter" border="0"/></a>
</noscript>
</p>
<div class="clear"></div>
</div>
<p id="explanation">You're seeing this error because I think it is funny.</p>
</div> <!-- /WRAP -->
</body>
</html>