Well! Today I did two of my favorite things. And I did them a LOT! I discovered new technological tools I knew little about, and I also tooled. ALL. DAY.
:D
It was wonderfully refreshing for the soul! [ And my AP Psych experiment really needed it]. So. The results of my toolerage? Well! Glad you asked! Located right here: http://www.mediafire.com/file/ykyqzmuhjiz/Psych Experiment.zip.
Thereby bringing us to tool #1! www.mediafire.com appears to be a no-strings-attached file sharing site like NO OTHER I’ve seen: wonderful! It’s easy to use, and quick!
:D
Tool #2 is more of an ANT script for Nebeans. Basically, it allows you to compile your .java files into one fancy little JAR, then it goes ahead and compiles your compile-time libraries INTO THAT SAME JAR file, and THEN it zips the whole thing, giving you a nice neat little [internally] zipped JAR file that can be distributed as a single unit. Say good bye to those days where lib folders haunted your dreams!
Here’s the script!
<target name=”package-for-store” depends=”jar”>
<!— Change the value of this property to be the name of your JAR,
minus the .jar extension. It should not have spaces.
<property name=”store.jar.name” value=”MyJarName”/>
—>
<property name=”store.jar.name” value=”INSERT_JARNAME_HEREt”/>
<!— don’t edit below this line —>
<property name=”store.dir” value=”store”/>
<property name=”store.jar” value=”${store.dir}/${store.jar.name}.jar”/>
<echo message=”Packaging ${application.title} into a single JAR at ${store.jar}”/>
<delete dir=”${store.dir}”/>
<mkdir dir=”${store.dir}”/>
<jar destfile=”${store.dir}/temp_final.jar” filesetmanifest=”skip”>
<zipgroupfileset dir=”dist” includes=”*.jar”/>
<zipgroupfileset dir=”dist/lib” includes=”*.jar”/>
<manifest>
<attribute name=”Main-Class” value=”${main.class}”/>
</manifest>
</jar>
<zip destfile=”${store.jar}”>
<zipfileset src=”${store.dir}/temp_final.jar”
excludes=”META-INF/*.SF, META-INF/*.DSA, META-INF/*.RSA”/>
</zip>
<delete file=”${store.dir}/temp_final.jar”/>
</target>
The only thing that you need to do is take the line ” from above, and replace <property name=”store.jar.name” value=”INSERT_JARNAME_HEREt”/> with your JAR name. Then, take that whole code, and insert above the final line of the auto-generated Netbeans ANT build script, located in build.xml [you can navigate straight there inside the IDE from the file view [as opposed to the project view]]. Once you’ve appended that, it’s quite easy to compile. Just navigate to your build script in the file view, right click, then select Run Target—>Other Targets—>compile-for-store, and tadaaaa! It will be compiled and zipped, better than new.
;-)










![Despite the minor temporal displacement between this post and my previous one [yesterday], I find myself with so much to say, and comparatively little space or time with which to say it. So I’ve decided to begin using pictures as part of my blog. In fact, it’s all part of my secret plan to branch out into multimedia. Hold on to your seat! There might be videos soon!
Of course, this is an example of me blatantly disregarding my unphotogenic appearance, but hey. We can dream, right?
So…what odd chain of events might have led me to dress up, you ask? A good question indeed, given that I’ve an abhorrence for the silly tradition. However, there are two prevailing reasons. First, the majority of girls I’ve met have this weird thing where they seem to like guys who dress up - beats me why! [That’s not actually true. I do have the resources offered me by psychology. Specifically, the postulates of the field of evolutionary psychology, which proposes that females are more interested in males who possess status and power. The reason? These males are more likely to be able to support future offspring, and provide a safer environment for the mother. The result? Silly trends, such as dressing up.] Second, I’m a member of the Honors Choir at my school. This is an audition-only choir, and I’m really quite happy to be in it [amongst other things, I love to sing, especially with other people who are good at it. At MIT, I plan on trying out for the MIT Chorallaries - and a certain someone had better try out as well, when they get in! *ahem Andrea ahem*] Thus, I dress in the standard issue tux [which is really quite uncomfortable, when compared with my own suit - another reason to hate dress-up].
This picture captures the effect, mere seconds before I drove to the concert [with my sister, who {as you may have guessed} is also a singer [albeit in the non-audition choir]]. It was relatively brief, and we performed relatively well. Hopefully, someone recorded it, in which case it may be posted to YouTube [and I may be able to post a link here. :D]
However, the whole ‘concert experience’ brings us to our next picture….forthcoming shortly. (I dislike this interface, because I can’t embed media dynamically into text posts. If anyone knows how….let me know!)](http://24.media.tumblr.com/tumblr_ktdhp38sWE1qas0qyo1_500.jpg)