Bloggeh.com
BJJ, technology, psychology & other cool stuff
BJJ, technology, psychology & other cool stuff
Sep 10th
Very fast way to prototype websites and give them that Web 2.0 look and spacing.
Normal: http://960.gs/
Fluid: http://www.designinfluences.com/fluid960gs/12/
Jun 16th
<% 3.times do -%>
Ho!<br />
<% end %>
Merry Christmas!
<% 3.downto(1) do |count| -%>
<%= count %>…<br />
<% end %>
Lift off!
Email: <%= h(”Ann & Bill <frazers@isp.email>”) %>
Think of symbols in rails as “the thing named”.
So in a link for example <%= link_to “goodbye”, :action => “goodbye” %>
The thing named :action => “goodbye”
<% for file in @files %>
file name is: <%= file %>
<% end %>OR
<% @files.each do |file| %>
file name is: <%= file %>
<% end %>
May 18th
Lots of amazing effects and abstract photoshop skills at PDSvault.
Jan 19th
Generally speaking, the e-mail will go to junk because of incomplete and missing headers. Many spam filters pick these “lack of headers” as a commonality between all those e-mails for all those enlargement pills and pirated software we’ve all been after.
Your mail code is slightly incorrect though, generally speaking the usage for mail is:
mail(”To”,”Subject”,”Message”,”Headers”)
Which could explain why it went to junk the first time. Therefore you would have something like this established:
$headers = “MIME-Version: 1.0\r\n”;
$headers .= “Content-type: text/html; charset=iso-8859-1\r\n”; // Important to change if you ever add attachments
$headers .= “From: “.$email_address.”\r\n”;
$headers .= “Reply-To: “.$email_address.”\r\n”;
$headers .= “X-Mailer: PHP/”.phpversion().”\r\n”;
I’m sure you can work out the rest. Word of warning though, your e-mail address may be blacklisted as “junk” if you didn’t set the “from” value. There are many more headers that you may want to look up RFC2821 or some explanation on various headers.
Aug 25th
Coding Style – http://www.phpro.org/tutorials/PHP-Coding-Style.html
MVC – http://www.phpro.org/tutorials/Model-View-Controller-MVC.html
OOP – http://www.phpro.org/tutorials/Object-Oriented-Programming-with-PHP.html