Backup, or Things to not do like me.
by Mike
So I have been looking around for some old code I have written to criticize(or post on github) and it led me to go looking around this blog for code I had written since I started writing this. The first thing I realized is that I am terrible at backup, I actually have non of the code that I had originally linked, prime example: LDAP authentication using TLS in Java
(EDIT: Thanks to Gedge this is back up. He pointed me to a project we worked on a couple of years ago. I had written a Java servlet to implement this. So I extracted the code from the servlet and hopefully now people can take it an modify that code for their own needs(as its not very complete.)
That peice of code, I cannot find anywhere and I remember spending a fair amount of time making that work. I thought I had backed up a copy of everything on the server when I moved from Media Temple however I must not have, because I cannot find it on any of the servers I have.
I think soon I am going to have to buy some space from Amazon S3 for backups.
As a little aside to how much I such at backups I had a job interview today and some of the things we talked about was objects and whatnot. One of the questions the interviewer asked me was about passing by reference and passing by value, and we talked about Java just a little bit, and it seems I answered this question differently today then I did over 2 years ago. This is kind of funny, because I said today that you pass primitives by value and Objects by reference, oddly enough I was more right then than I was now.
(just made sure the old post was actually correct, thanks Gedge, I don’t know why I went off on a tangent there at the end
)
Its really funny when you aren’t working with something every day how the little details slip your mind and you start to just generalize.
Anyway, lesson for today seems to be don’t backup your code or answer interview questions like me
Comments
Well, I think the easiest way to answer that question is “In Java, everything is passed by value”. Now this is sort of confusing at first, but what you have to realize is that all your objects are accessed through references. So if I have “Object x = new Object()” then x doesn’t contain that Object instance but rather a reference to it. In other words, it’s similar to a pointer/reference in C++. In reference to your post from the past, it would be “blehbleh” after the function call
In terms of the code, I actually might have that lying around still. It’s basically similar to the code we used in our web app project for 3715 right? I’ll let ya know if I find it!
Backup, or Things to not do like me. – mikegrouchy.com http://bit.ly/ra3Qm
This comment was originally posted on Twitter
I realized after reading down through your old post (in a more thorough manner) that you point most of this out. Anyways, I found that “LDAP authentication using TLS” code if you’d like it. Let me know where to send it!
If decide to backup your data to S3 try CloudBerry Backup. It is powered by Amazon S3 reliable and cost efficient storage. If you want to take part in beta sign up on the website http://cloudberrydrive.com
It it is part of HRT, I should be able to dig it up, I removed a lot of the cruft I believe when I put the code out there before.
But thanks for pointing me in the right direction! (As an aside, really liked your post on Java annotations)