<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>Paris Holley</title>
	<link>http://parisholley.com</link>
	<description>Software Engineer, Hip Hop Artist, Internet Entrepreneur</description>
	<lastBuildDate>Mon, 13 Oct 2008 14:38:28 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>JUnit: OutOfMemoryError using &#8220;junitreport&#8221; Ant task</title>
		<description>If you (like I), have googled all around trying to figure out this problem to no avail then perhaps my solution will work best for you. Everywhere I read said to simply increase the max memory size in your forked JUnit task however, even if that had worked it (which ...</description>
		<link>http://parisholley.com/?p=82</link>
			</item>
	<item>
		<title>Mozilla Ubiquity: First Impressions</title>
		<description>When Mozilla Labs announced it's first public release of Ubiquity, I like most people, was quite intrigued. The first feature they displayed that caught my eye, was the ability to not only book a flight, but look at its routes and email the schedule to other people at the same ...</description>
		<link>http://parisholley.com/?p=71</link>
			</item>
	<item>
		<title>PHP 5.3: Introduction of Namespaces</title>
		<description>I think PHP programmers across the world are now rejoicing over the recent addition of namespaces into the PHP 5.3 alpha build. Though it isn't likely we will see a stable release till the middle of September or October, this new feature will give programmers more flexibility in developing programs ...</description>
		<link>http://parisholley.com/?p=67</link>
			</item>
	<item>
		<title>BarCamp: Des Moines Technology Gathering</title>
		<description>I had a great time at this year's BarCamp and look forward to attending one next year as well. We discussed many different topics and I have taken some interest in things we discussed. I've heard a lot about Twitter lately, and the group session we had on microblogging convinced ...</description>
		<link>http://parisholley.com/?p=59</link>
			</item>
	<item>
		<title>JSF: Stream File for Download</title>
		<description>
&#60;h:commandLink action="#{myBean.streamFile}"&#62;Download&#60;/h:commandLink&#62;



public class MyBean {
	public String getStreamFile(){
		byte[] file = new byte[]{};

		FacesContext ctx = FacesContext.getCurrentInstance();

		HttpServletResponse response = (HttpServletResponse) ctx.getExternalContext().getResponse();
		response.setHeader("Content-disposition", "attachment; filename=file.ext");
		response.setContentType("text/plain");

		try {
			response.getOutputStream().write(file);
		} catch (IOException ex) {
			return "go_to_an_error_page";
		}

		ctx.responseComplete();

		return null;
	}
}

When the user selects the link, either the file will be streamed to user so they may download it, or they will be redirected ...</description>
		<link>http://parisholley.com/?p=43</link>
			</item>
	<item>
		<title>JavaMail 1.4.1: Use Gmail account as SMTP</title>
		<description>Without Attachment


	// Setup connection
	Properties props = new Properties();
	props.put("mail.smtps.auth", true);
	//props.put("mail.debug", true); // uncomment to display in console/log

	Session session = Session.getInstance(props);
	//session.setDebug(true); // uncomment to display in console/log

	// Setup message
	Message msg = new MimeMessage(session);
	msg.setFrom(new InternetAddress("your@email.com"));
	msg.setRecipients(Message.RecipientType.TO, new InternetAddress[] { new InternetAddress("their@email.com") });
	msg.setSubject("My Subject");
	msg.setSentDate(new Date());
	msg.setText("my message");

	// Connect and mail
	Transport transport = session.getTransport("smtps");
	transport.connect("smtp.gmail.com", "username", "abc123abc");
	transport.sendMessage(msg, msg.getAllRecipients());
	transport.close();


With ...</description>
		<link>http://parisholley.com/?p=36</link>
			</item>
	<item>
		<title>Naming Conventions</title>
		<description>Below I've just put a couple of my own conventions, let me know what you think.

Databases:

	Tables are lowercase and singular and separated by an underscore. 
This prevents confusion both during coding and managing the database. A lot of languages and frameworks are case sensitive and lowercase is the easiest method ...</description>
		<link>http://parisholley.com/?p=28</link>
			</item>
	<item>
		<title>Convert HTML to PHP - Only $19.95!</title>
		<description>Apparently someone behind Website Databases has come up with a revolutionary method of turning a HTML (HyperText Markup Language) file into a PHP (HyperText Preprocessor) file. After taking a few seconds to come up with my own inovative ideas, I came across a couple methods that they have possibly implemented.

	Rename ...</description>
		<link>http://parisholley.com/?p=24</link>
			</item>
	<item>
		<title>Error: MySQL Server Has Gone Away</title>
		<description>max_allowed_packet=10M
The maximum value you may specify is 1GB however setting it to a high amount (ie: 250mb), will not cause any performance issues because MySQL will only use that much if necessary.

NOTE: Make sure you have enough memory on your system to handle the increase in packet size or else ...</description>
		<link>http://parisholley.com/?p=15</link>
			</item>
</channel>
</rss>
