Aspiring Independant (a.k.a. not employed to do anything I should mention here) Massachusetts born, Yorkshire based builderGeek.
Instead of sorting out my taxes ... I made a skybox!
I have solved a floating point round off error by dividing instead of multiplying. When calculating the unit vector I was multiplying a (non-unit) vector by 1 over it's length. I was doing this because I had a multiplication method available. It seems that the use of two floating point operations (instead of just the one) lead to rounding errors creeping into my calculations.
Weird
(this is my first - and probably only - attempt at a Starcraft 2 mission guide. it's been sitting on my desktop for awhile and leaves a lot up to the player's judgement)
I watched - Youtube.com - after watched - Youtube.com - and I noticed something. One of these shows lots of destruction of US skylines. One shows people expressing self doubt and emotional insecurity - the other one just shows a guy getting mad. One of these shows the actual threat, and the other just discusses what is going to happen. One of these trailers shows characters who may or may not be getting along at the end of the movie - the other just shows characters threatening to be mad. One expresses different philosophical beliefs ... one tries to rewrite its own cannon for no apparent reason
Clearly one of these things is not like the other
I've hit an encouraging milestone in a personal project. Effectivley there's no need for innovation left in the project, it's just a matter of whacking it again and again in varying ways until the pieces settle correctly. I don't know if I should feel sad about being past the need for "inspiration" and now being in the realm of "perspiration" but all I can think is that I've won.
It's like when you've destroyed your opponent's workers and town halls. I can finish now. I can reach my goal. Only god and myself can stop me.
Wow; I really wish spellcheck was working
... which is great when you just want to run a piece of programming and not deal with setting up a program for the purpose of testing a lib.
sys.path.append('./jars/sqljdbc4.jar')
... that's it. Replace ./jars/sqljdbc4.jar with whatever the path to you jar is.
Oh ... you have to import sys. Yeah if you don't import sys there's really no reason.
I've been `working` with Maven recently and decided I'd try to make an archetype. It was not smooth sailing, until I used the archetype, archetype to see what it was supposed to look like ... then it was easier. It's just the second JMonkeyEngine tutorial. Tragically it's only available from a remote repository
archetypeGroupId=org.jmonkeyengine.archetypes
archetypeArtifactId=beginner02
archetypeVersion=3.0-NIGHTLY
remoteRepositories=https://dl.dropbox.com/u/15094498/dropbox-mvn-public
I'm now wondering how useful archetypes actually are when someone is trying to develop a product. They're not too hard to create, but I'm not sure how many times I'm going to have to re-create the same project. I suppose if I want to distribute a mod kit they'd be very useful. It's just that the heading of "use before reuse" makes me feel a bit uneasy.
This took me over 2 hours to get working right - so I'm posting my results
<Resource name="mail/Session"
auth="Container"
type="javax.mail.Session"
mail.smtp.host="smtp.gmail.com"
mail.smtp.port="465"
mail.smtp.auth="true"
mail.smtp.user="website's name@gmail.com"
password="the password"
mail.smtp.starttls.enable="true"
mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" />
It can be used like this:
final InitialContext initialContext = new InitialContext();
final Session session = (Session)(initialContext.lookup("java:comp/env").lookup("mail/Session"));
final MimeMessage mimeMessage = new MimeMessage(session);
mimeMessage.setSubject("Testing javamail plain");
mimeMessage.setContent("This is a one true tag", "text/plain");
mimeMessage.addRecipient(Message.RecipientType.TO, new InternetAddress("user@email.host"));
final Transport transport = session.getTransport();
transport.connect();
transport.sendMessage(mimeMessage, mimeMessage.getRecipients(Message.RecipientType.TO));
transport.close();
... suck. Nobody goes "Oh boy! I have the whole afternoon to do X" when X is a `distraction` However (across the course of a week) most people probably spend an afternoon's hours in total interacting with distractions.
I smell a new years resolution, something about making the most of the few hours in the day.
Update;
This has also been a great way to get way more done. If I'm distractable - I sort some laundry instead of poking around Wikipedia.
... is pondering whether or not this system has a "cloud" feature like ... Steam. If not, can I set a "saves" folder so that all of my saved games go off into my DropBox folder? I was able to edit KoTOR's config file and do this.
... just a thought. It's always nice to be able to do that sort of thing.