Welcome to Hardcode Sign in | Join | Help

September 2006 - Posts

Considered one of the Holy Grails of J2ME programming, self-replication is a must for viral marketing by helping your product spread quickly. It involves two parts: getting your hands on the jar and sending it via Bluetooth OBEX.

Retrieving the JAR contents is cumbersome, it involves re-packing the JAR or hacking the ZIP structure (an excellent paper is this one). As for OBEX, most phones don't support it natively (the API) so you'll have to implement it from scratch.
Who wants to bet that until year 2020 blogs will be dead ? :)
After a couple of years of working with IIS, I still have no idea how to do the following stuff (don't know if it's possible actually!) :

    - redirect all subfolders / subpages to something else (i.e. redirect http://localhost/a/b/etc to a single page or handler like http://localhost/page?query=a/b/etc)

    - forward sites to other servers based on hostname (suppose you have NAT and 80 routed to a IIS, however you want to forward the query to other servers in the LAN based on the hostname).
What is the difference between:
    cd c:\a\b
    rd /s /q .
and:
    rd /s /q c:\a\b
? Well, the first one can have disastrous results when the c:\a\b\ folder does not exist. Go check your build scripts now !

As I am one of the last programmers still using VB - here is one possible solution of the dreaded crash when linking a VB project: check if the used ActiveXes are able to initialize and destroy gracefully (using a simple test project or something).
This is veeery old news. Here's the wiki - overall it's a good idea (I was surprised back then to see Microsoft doing a wiki). Still it's not well indexed by Google and Google Groups remains the best for programming-related searches.

Speaking of old stuff - this C++ FAQ written by The Inventor Himself is simply excellent! Did you know about this:
class D : public B {
public:
using B::f;// make every f from B available
?
I have just finished the 5th year of study but will graduate in January as only then I can present my graduation diplomma project.
Question: What year of study am I ? I'm not in the 5th anymore as I passed all the exams. Still - there's no 6th year.
Maximum efficiency: I've written about 10 lines for the 250-point problem and submitted it in like 5 minutes.

Congratulations! The results of the Google Code Jam 2006 Qualification Round have been officially tabulated, and we're happy to announce that you have advanced to Round 1. This is a great accomplishment.

The 750 one was too difficult though :)