I emailed Cards Against Humanity about having to miss lunch due to playing their game. They sent me snacks in the mail!
http://ift.tt/1sC0oFL via /r/funny http://ift.tt/1ruH8FH
http://ift.tt/1sC0oFL via /r/funny http://ift.tt/1ruH8FH
http://ift.tt/1nBOLYt via /r/funny http://ift.tt/1pylAHa
http://ift.tt/1pyp0tm via /r/funny http://ift.tt/1lQEomK
http://ift.tt/1pJWUgT via /r/funny http://ift.tt/1l8p8vF
http://ift.tt/1pKazUZ via /r/funny http://ift.tt/1lQEnzi
http://ift.tt/1wtWnBQ via /r/funny http://ift.tt/1q5PGW8
http://ift.tt/1jMsMvg via /r/funny http://ift.tt/1jMsMvk
http://ift.tt/1pJWUgT via /r/funny http://ift.tt/1l8p8vF
http://ift.tt/1pEdajp via /r/funny http://ift.tt/1j74uMH
http://ift.tt/1p8odU0 via /r/funny http://ift.tt/Tmwc1n
http://ift.tt/UA66J9 via /r/funny http://ift.tt/1ipBF3l
http://ift.tt/1pt3OVx via /r/funny http://ift.tt/V4g9GP
http://ift.tt/Ti4VNt via /r/funny http://ift.tt/1yxiGIB
http://ift.tt/1pjpCCU via /r/funny http://ift.tt/UhIloZ
http://ift.tt/UCIbZm via /r/funny http://ift.tt/1qFNxQM
http://ift.tt/UBD2kh via /r/funny http://ift.tt/V6FQ9K
http://ift.tt/V6LPeR via /r/funny http://ift.tt/V6Hwju
http://ift.tt/1iJv0eM via /r/funny http://ift.tt/1pidsdH
http://ift.tt/1phCI3F via /r/funny http://ift.tt/UfLTrR
http://ift.tt/1aD8e3K via /r/funny http://ift.tt/1kngcrS
http://ift.tt/1aD8e3K via /r/funny http://ift.tt/1kngcrS
http://ift.tt/1r8hmXN via /r/funny http://ift.tt/1r8hk28
http://ift.tt/1r7bPAO via /r/funny http://ift.tt/1r7PN0B
http://ift.tt/1qeOYmR via /r/funny http://ift.tt/1ph1FMD
http://ift.tt/1uCcAC3 via /r/funny http://ift.tt/1qqSFIF
http://ift.tt/1pK88Ru via /r/funny http://ift.tt/1lgH0ca
http://ift.tt/1l2oyoS via /r/funny http://ift.tt/SzZrNp
http://ift.tt/TTKLKp via /r/funny http://ift.tt/1mSVr2S
http://ift.tt/1oRQED3 via /r/funny http://ift.tt/SCzFIn
http://ift.tt/1knnJkn via /r/funny http://ift.tt/1leqE3R
http://ift.tt/1lou2u7 via /r/funny http://ift.tt/1vkyXOF
http://ift.tt/1lpEz8h via /r/funny http://ift.tt/1lx886l
http://ift.tt/1u9wKTL via /r/ProgrammerHumor http://ift.tt/1u9wNih
http://ift.tt/1p1hW8d via /r/funny http://ift.tt/1oUnfrV
http://ift.tt/1xQx3rk via /r/funny http://ift.tt/TSbAOR
http://ift.tt/1oS6Mod via /r/funny http://ift.tt/1ubl9Ue
http://ift.tt/1ldXbCi via /r/funny http://ift.tt/1ucEyUH
http://ift.tt/1ndwKzM via /r/funny http://ift.tt/1qOZhS8
http://ift.tt/1uFZmH9 via /r/funny http://ift.tt/1uFZmqD
http://ift.tt/1mBT1FG via /r/funny http://ift.tt/1qn5Ozy
http://ift.tt/1l6L4H4 via /r/funny http://ift.tt/1kNHc2w
http://ift.tt/1uVjkNu via /r/funny http://ift.tt/1l5TG0G
http://ift.tt/1pUTTeM via /r/funny http://ift.tt/1qfdILf
http://ift.tt/1kUCtMk via /r/funny http://ift.tt/1qfMQe0
http://ift.tt/UnkGnv via /r/funny http://ift.tt/1ifg8om
http://ift.tt/1kQTOXH via /r/funny http://ift.tt/1ptrbzh
http://ift.tt/1kUqTAI via /r/funny http://ift.tt/1oMuWi6
http://ift.tt/1oLUko6 via /r/funny http://ift.tt/1kU98kZ
http://ift.tt/1kUCtMk via /r/funny http://ift.tt/1qfMQe0
http://ift.tt/UnkGnv via /r/funny http://ift.tt/1ifg8om
http://ift.tt/1kQTOXH via /r/funny http://ift.tt/1ptrbzh
http://ift.tt/1kUqTAI via /r/funny http://ift.tt/1oMuWi6
http://ift.tt/1oLUko6 via /r/funny http://ift.tt/1kU98kZ
http://ift.tt/1pTbaoE via /r/funny http://ift.tt/1prjIAM
http://ift.tt/1kPgQhx via /r/funny http://ift.tt/1kREZCV
http://ift.tt/1oAEaQf via /r/funny http://ift.tt/1kJC7bH
http://ift.tt/1jMtxd8 via /r/funny http://ift.tt/1kRBcFM
http://ift.tt/1pTb8gt via /r/funny http://ift.tt/1rYwmvq
http://ift.tt/SnDBg3 via /r/EarthPorn http://ift.tt/1kIvK8x
http://ift.tt/1pqDZXh via /r/funny http://ift.tt/1tVRcHz
http://ift.tt/1q9rrmG via /r/funny http://ift.tt/1tV7BvT
http://ift.tt/1uAsvCN via /r/funny http://ift.tt/1k7hUYe
http://ift.tt/Tt1Jis via /r/funny http://ift.tt/1kXzCxu
http://ift.tt/1pqKaur via /r/funny http://ift.tt/1o2riVa
http://ift.tt/1kXzzSm via /r/funny http://ift.tt/1hru7w3
http://ift.tt/1kNLOqq via /r/funny http://ift.tt/1rXa4u9
http://ift.tt/1o2cZjy via /r/funny http://ift.tt/1qbbjBo
http://ift.tt/1pos6AV via /r/funny http://ift.tt/1o1FHRq
http://ift.tt/1q9rqzm via /r/funny http://ift.tt/SnqcVc
http://ift.tt/1kMAqLs via /r/funny http://ift.tt/1uBRZ2u
http://ift.tt/T50Jkg via /r/ProgrammerHumor http://ift.tt/1ok2OT5
http://ift.tt/1i98ls4 via /r/ProgrammerHumor http://ift.tt/1pMWo2M
http://ift.tt/1n282DG via /r/ProgrammerHumor http://ift.tt/1n281zK
http://ift.tt/1oA60uV via /r/ProgrammerHumor http://ift.tt/1taNBVM
http://ift.tt/1j4Mjdq via /r/ProgrammerHumor http://ift.tt/1sCBBvU
http://ift.tt/1pm1Qaw via /r/ProgrammerHumor http://ift.tt/1ouXgY6
me> So, how was your day friend> meh me> So, how was your day –verbose via /r/ProgrammerHumor http://ift.tt/1mnPt9M
http://ift.tt/1nHGXcm via /r/funny http://ift.tt/S2lbRI
http://ift.tt/T7Sdkt via /r/funny http://ift.tt/1oPsoD7
http://ift.tt/1jJqnoz via /r/funny http://ift.tt/1jJqn8j
http://ift.tt/1wtTpOH via /r/funny http://ift.tt/1wsTnqj
http://ift.tt/1mFEfk8 via /r/funny http://ift.tt/1pjPf9X
http://ift.tt/1kNMryE via /r/funny http://ift.tt/1lTAEMa
http://ift.tt/1oOHuq3 via /r/funny http://ift.tt/1rljEGR
http://ift.tt/1gDUDC6 via /r/funny http://ift.tt/1k4NsU8
http://ift.tt/SWaOQC via /r/funny http://ift.tt/1oA4OKu
http://ift.tt/1k5DHVW via /r/funny http://ift.tt/1rlS5gL
http://ift.tt/1wsBB6z via /r/funny http://ift.tt/1rl9jKY
http://ift.tt/1nWynSX via /r/funny http://ift.tt/1lSpFSU
http://ift.tt/1pbkVOI via /r/funny http://ift.tt/1pf5buc
http://ift.tt/SKCMyE via /r/funny http://ift.tt/1weYNFc
http://ift.tt/TRA23t via /r/funny http://ift.tt/1ioNWix
http://ift.tt/1w9Xnf5 via /r/funny http://ift.tt/1wfPowX
http://ift.tt/1rdyTS8 via /r/funny http://ift.tt/1wghFnf
http://ift.tt/1phEpRJ via /r/funny http://ift.tt/1phEogT
“In the beginning, God created the earth, and he looked upon it in his cosmic loneliness.
And God said, “Let Us make living creatures out of mud, so the mud can see what We have done.” And God created every living creature that now moveth, and one was man. Mud as man alone could speak. God leaned close to mud as man sat, looked around, and spoke. “What is the purpose of all this?” he asked politely.
“Everything must have a purpose?” asked God.
“Certainly,” said man.
“Then I leave it to you to think of one for all this,” said God.
And He went away.â€
― Kurt Vonnegut, Cat’s Cradle
“In the beginning, God created the earth, and he looked upon it in his cosmic loneliness. And God said, “Let Us make living creatures out of mud, so the mud can see what We have done.” And God created every living creature that now moveth, and one was man. Mud as man alone could speak.
http://ift.tt/1olGHg5 via /r/ProgrammerHumor http://ift.tt/1lYv0to
This weekend Steve Bosworth shared a great article from net tuts+ on our program’s Facebook group. It’s titled The 11 Phases of a Web Developer’s Career (As Illustrated by Memes) and it is written by Jeffrey Way.
The 11 Phases are as follows:
I found this article very relatable. To describe Phase 1 (the Noob Stage) Way writes
the period when you have absolutely no clue what you’re doing. Like a fish out of water, each new line of code is a mystery. Doctype? Huh? What the heck does a
<div>
do? The first phase is an intimidating, scary, but exciting one. How many dang languages are there?
I can distinctly remember learning for the first time what a doctype was. I knew what a div was, but that isn’t much to celebrate. I was definitely out of my element.
The next phase, The First Steps is described by Way as the Phase where you slowly start building your skill set and actually start to see your code from your code editor reflected in the web browser. In this phase I often gained a sense of pleasure from trying things and seeing them visually.
Phase 3 made me laugh. It is called Complete Frustration, and it is so true.
Way writes
Imagine being lost in a cave, shining your flashlight down each tunnel, as you search for a way out. With each step, you hope to see a glimmer of light. Unfortunately, the learning curve in our industry is a steep one. That speckle of light won’t come for a long time, I’m sorry to say. Expect to spend hundreds of hours in this phase, reading technical books over, and over, and over, as you desperately try to make sense of the madness!
Our teachers have told us that this moment would could and pass, however when I was experiencing it, their words did not help. It is the point where you feel like giving up because you want to do something and you just can’t figure out how to do it. Every article, book, video is using a different version or language or program to achieve the result you want and you often end up search through Stack Overflow for hours.
Way reminds the readers at the end of this phase that “if the frustration becomes too overwhelming, find peace in the fact that every one of us felt that exact way at one point or another in our careers. You’re not alone. Stick with it, and, before long, you’ll reach the aha phase!”.
This brings us to the Aha Phase. It is describes by Way as “one of the greastest feelings in the world: that brief instance when, suddenly, you “get it”. This phase is definitely my favourite ones so far. I have had that experience of looking at my code and suddenly I could see exactly what I needed to do to make something happen. It made me feel like all of my studying and flipping through textbooks was suddenly worth it.
The final phase I will go over is the Fragile Code phase, because it seems to me that I am at this phase or at least approaching it. Way explains,
Like it predecessors, the Fragile phase is a lengthy one. At this point, you are successfully building applications and achieving your desired end result, but the underlying code is one client feature-request away from popping. In this phase, your methods are dozens of lines long, and the concept of testing hasn’t yet entered your brain.
Although concept testing has entered my brain because of Security and quality assurance, I am fairly certain this is where I am. We are building features and websites that are achieving our desired end result, however it isn’t an easy process. It still takes a long time to build something simple, which I assume is what Jeffrey means when he writes “the underlying code is one client feature-request away from popping”.
This article was really great after a particularly stressful weekend. It helped me realize that I’m not in this alone, that it does get better, and that every web developer has gone through these phases.
Have a read for yourself: http://net.tutsplus.com/articles/general/the-11-phases-of-a-web-developers-career-as-illustrated-by-memes/
This weekend Steve Bosworth shared a great article from net tuts+ on our program’s Facebook group. It’s titled The 11 Phases of a Web Developer’s Career (As Illustrated by Memes) and it is written by Jeffrey Way. The 11 Phases are as follows: Noob The First Steps Complete Frustration The Aha Moments Fragile Code Copycat
For the ASP.NET website I’m building a feature that I’m working on is a virtual greeting card creator that also emails the card
I am creating a virtual greeting card creator as a feature for my ASP.NET website. It’s functionality allows a user to create a custom greeting card by selecting an image, font-color, font-size and writing a personal message. The user must also specify the e-mail address of the patient they would like to send the card to.
An issue I came across when building this feature was sending the Panel control in the e-mail. I kept getting System.Web.UI.Panel showing up as my e-mail content instead of the card that the user created.
I realized I needed to convert the Panel control into HTML so I could send it via e-mail. I found the following solution to fix my problem.
Step 1: Create a Render Control function and import the following namespaces:
using System.Web.UI.HtmlControls;
using UserControlHandlerDemo;
using System.Web.SessionState;
using System.Text;
using System.IO;
using System.Web.UI.HtmlControls;
private string RenderControl(Panel pnlCard)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter writer = new HtmlTextWriter(sw);
pnlCard.RenderControl(writer);
return sb.ToString();
}
Step 2: Create an emailClass (App_CodeemailClass.cs)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Net.Mail;
using System.Net;
using System.Configuration;
using System.Net.Mime;
public class emailClass
{
public bool sendEmail(string _conName, string path, string _conEmail, string _conReason, string _conMessage)
{
MailMessage objMail = new MailMessage(_conEmail, _conEmail, _conReason, _conMessage);
NetworkCredential objNC = new NetworkCredential(“email@email.com”, “password”);
SmtpClient objSMTP = new SmtpClient(“smtp.gmail.com”, 587); // smptp server for gmail
using (objSMTP)
{
objMail.IsBodyHtml = true; // allows use of html in body
objSMTP.EnableSsl = true; // enable ssl, required for gmail
objSMTP.Credentials = objNC;
objSMTP.Send(objMail);
return true;
}
}
}
Step 3: On the code-behind of the aspx file, once the user clicks the send e-mail button call the RenderControl for the update panel and the following information is passed to the emailClass.
emailClass objEmail = new emailClass();
protected void subClick(object sender, EventArgs e)
{
TextBox txtName = (TextBox)FindControl(“txt_name”);
TextBox txtPatient = (TextBox)FindControl(“txt_patient”);
TextBox txtMessage = (TextBox)FindControl(“txt_message”);
string txtReason = “Greetings from ” + txtName.Text;
Panel pnlCard = (Panel)FindControl(“pnlCard”);
string panel_html = RenderControl(pnlCard);
_strMessage(objEmail.sendEmail(txtName.Text, txtPatient.Text.ToString(), txtReason, panel_html));// name, email, subject, message)
}
For the ASP.NET website I’m building a feature that I’m working on is a virtual greeting card creator that also emails the card I am creating a virtual greeting card creator as a feature for my ASP.NET website. It’s functionality allows a user to create a custom greeting card by selecting an image, font-color, font-size
This week in PHP we learned how to send mail using the mail() function. We had to upload a php file onto our servers and send an e-mail to our group mates through that file. This sounds straightforward, however everyone in the class is using different hosting companies. There are a few people who are hosting their website on GoDaddy, a few on Hostgator (myself included), and then a handful more that I’m not sure of. Every time we have to configure something in class with our web servers it takes at least half an hour. This is due to the inconsistencies between hosting companies and the limited knowledge everyone had regarding what we would be needing our servers for specifically.
I was trying to use this simple code to send my mail:
<?php
$from = “Ender Wiggin”;
$subj = “Battle School”;
$email = “test_email@gmail.com”;
$body = “test”;
$headers = “From: anja@mydomain.com” . “rn”;
$headers .= “Reply-To: “. $email . “rn”;
$headers .= ‘Content-type: text/html’ ;message = “<html><body><h1>$from has submitted a contact form!</h1>”;
$message .= “<p><b>Name:</b> $from</p>”;
$message .= “<p><b>Email:</b> $email</p>”;
$message .= “<p><b>Subject:</b> $subj</p>”;
$message .= “<p><b>Message:</b> $body</p>”;
$message .= “</body></html>”;$success = mail(
“anjag@mydomain.com”,
$subj,
$message,
$headers);
echo “You did it!”;
}?>
[disclaimer: *@mydomain.com should be replaced by whatever your domain is]
When I used the above code I kept getting this error:
Warning: mail() [function.mail]: SMTP server response: 550 <test_email@gmail.com> No such user here in D:InetPubvhosts….
It was extremely frustrating as one of my group mates who was using GoDaddy as their hosting server was able to send the e-mails with no problem and I was struggling to debug my code.
After countless hours spent googling this issue, I combined the various solutions that other users found and was able to get it working. For Hostgator Windows Shared plans, you cannot send e-mails to gmail accounts using the mail() function. Instead, I downloaded PHP Mailer and followed the instructions to upload the following files onto my server:
class.phpmailer.php languages/phpmailer.lang-??.php ( 'en' is hardcoded into PHPMailer) If you are using the SMTP mailer then copy class.smtp.php as well.
I put them in a PHP folder where I keep all my PHP projects. Next, I entered the following code:
<?php
require_once “../class.phpmailer.php”;
require_once “../class.smtp.php”;
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->Host=’xx.xx.xx.xxx’; //your server address, I always enter mine in using the server IP.
$mail->Port=25; //This is used for SMTP
$mail->SMTPAuth=true; //
$mail->SMTPDebug=2;//Comment out once it works, but the debug info is invaluable
$mail->Username=”anjag@mydomain.com”; //e-mail username associated with your hosting account
$mail->Password=”password”; //your password for the email account above
$mail->setFrom(“anja@mydomain.com”); //the email you are sending it from
$mail->Subject=’Look what i CAN Do I am the Hostgator MASTER’;
$mail->Body=’Hihihihihihihi. Monkeys monkeys monkeys fly!’;
$mail->AddAddress(‘test_account@gmail.com’);/*email of person you want to send to*/
$mail->Send();
?>
And it finally worked! I thought I would share and try to save someone else from spending a whole afternoon googling.
This week in PHP we learned how to send mail using the mail() function. We had to upload a php file onto our servers and send an e-mail to our group mates through that file. This sounds straightforward, however everyone in the class is using different hosting companies. There are a few people who are