Configuring mysqld to listen for remote connections

I’m not sure if I originally configured this or if this is the default. My my.cnf file had this line in it which configures mysql to only listening for incoming connections from localhost and ignores all remote connections:

bind-address            = 127.0.0.1

Changing this to be the real ip of the server will allow it to listen for remote connections.

Maven and JAXB

Add this dependency to your pom.xml:

<dependency>
    <groupId>com.sun.xml.bind</groupId>
    <artifactId>jaxb-impl</artifactId>
    <version>2.2.5-b10</version>
</dependency>

If you have your jaxb.index file in your src/main/java source tree (probably should be in src/main/resources instead, unless you’d rather see it alongside your source), then you’ll also need a file pattern include in your build section:

<resources>
<!-- include jaxb index files -->
    <resource>
        <directory>src/main/java</directory>
        <includes>
            <include>**/*.index</include>
        </includes>
    </resource>
</resources>

Maven: Changing the Java target version

Maven defaults to Java 1.5 by default. You can change this via settings on the maven compiler plugin:

<build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

Alternatively, you can specify the source and target Java verison using these properties:

    <properties>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
    </properties>

PSA to users of the Internet: All sites track you. There is no privacy on the internet.

The recent story in the WSJ about Google ‘bypassing Safari security settings’ is getting out of hand in the media. What they don’t seem to be focusing on is the other side of the argument, not that company X bypassed browser Y’s security settings, but browser Y’s security settings apparently don’t work.

There hasn’t been any forced attempts to break security in any particular browser, Google is just taking advantage of the way these settings work. Others do the same too, it’s not just Google. And let’s put this is perspective: ALL WEBSITES TRACK YOU (to some degree or another).

There needs to be some resetting of people’s expectations of privacy on the internet. Unless you’re taking extreme measures involving anonymous proxies and encryption, then the reality of it is that there is no privacy on the internet. All sites track you by some means because it’s how they make their money. Sites don’t offer you the use of their services for free because they’re charities or see it as a public service that they should do so, they’re offering you services for free as a way to get ads in front of your eyeballs. Taking this a step further, if they can provide information on your surfing habits to advertisers so that they can target ads specifically to you and increase the chance that you’ll a) click an ad, and b) make a purchase, then that information is even more valuable and advertisers are prepared to pay for this information. This is why you are tracked.

Most if not all websites have a privacy statement linked from the footer of every page on their site. Other sites that require a sign up will have lengthy terms and conditions which you must agree to by signing up and for using that site. Maybe it’s time more people started reading these to find out what sites on the internet typically do. Most people apparently would be surprised.

If you want or even expect privacy, then please disconnect your internet connection. In today’s world you’re not going to find any privacy on the internet.