Why SOPA sucks – in a nutshell

January 19, 2012 Leave a comment

Why SOPA sucks

This is a video (gif) by Matthew Inman (aka
“The Oatmeal”)
about the craziness that is SOPA

Categories: Uncategorized Tags:

Tested oliver.doepner.net on all major browsers

January 12, 2012 Leave a comment

I just tested my personal “résumé” – British would say “CV” – website at oliver.doepner.net successfully on IE8, IE9, Firefox 3.6 to 9, latest and older Chrome versions, Opera 10 and 11 and Safari 4 and 5.1. It works on all browsers and looks fine.

You might wonder if I have all these browser installed? No, I don’t. I used the amazing browserling.com service that runs all the various browsers in virtual machines “in the cloud”, and embeds the UI in their website. Cool stuff and currently free for everyone to use!

One caveat with browserling.com is a tool called IETester that they use to emulate the ancient IE5.5 and IE6 browsers. Its seems to have bugs related to PNG graphics which prevented reliable testing. So if anyone out there still uses IE5.5 or IE6: Please visit oliver.doepner.net and let me know if you can see the photo of me on the page with the transparency effect.

On the newer CSS3 capable browsers, my site now sports drop shadows and rounded corners, using border-radius and box-shadow.

I also tested W3C standards compliance (XHTML, CSS3) and all my pages did pass those tests as well. What a nice way to end the computer oriented part of the day …

Categories: doepner.net, firefox

Job trends – Programming languages

January 10, 2012 Leave a comment

TIOBE index and trends

According to the current TIOBE index, Objective-C market share is growing the fastest. This is the native programming language of Apple devices like iPhone, iPad and iMac.

Indeed.com job ad trends

Absolute volume: Java is still leading the pack (as of 2011/2012).

php, perl, java, ruby, python, scala, c++, cobol, c# Job Trends graph

Relative growth: Look at Scala and Ruby …

php, perl, java, ruby, python, scala, c++, cobol, c# Job Trends graph

Categories: coding, java, mac os

Maven integration (m2e) for Eclipse 3.7.x (Indigo)

January 2, 2012 Leave a comment

Sonatype’s Maven integration for Eclipse (m2e) has been migrated to eclipse.org and is now available from the default update site for Indigo.

This means that you no longer have to add any Sonatype update sites as mentioned on the old (now outdated) m2eclipse site.

In particular, this also means that the old “m2e-extras” update site is obsolete for Eclipse 3.7.x and later. Things like WTP integration or Subclipse integration are now available as “m2e connectors” through Window – Preferences – Maven – Discovery.

All of this is very poorly (or not at all) documented on the new m2e home page and some people had problems with these changes.

Categories: java

Programming principles for Java methods

January 1, 2012 Leave a comment

Topics I want to cover in the future about Java methods:

Categories: java

JQuery DataTables column filters state saving

December 12, 2011 Leave a comment

The JQuery DataTables plugin supports state saving for column filters. But it does not automatically set the column filter values to the saved values when the user navigates to a page that has saved filter state.

I saw the code suggested here and cleaned it up a little (for example, using the oSettings parameter of the fnInitComplete function).

$(document).ready(function() {

        var oTable = $('#REPLACE_THIS_WITH_TABLE_ID').dataTable({
            "bStateSave": true,
            "fnInitComplete": function(oSettings, json) {
                var cols = oSettings.aoPreSearchCols;
                for (var i = 0; i < cols.length; i++) {
                    var value = cols[i].sSearch;
                    if (value.length > 0) {
                        $("tfoot input")[i].value = value;
                    }
                }
            }
        });

        $("tfoot input").keyup(function () {
            oTable.fnFilter(this.value, $("tfoot input").index(this));
        });
    });

Please note that I completely removed all code that supported initial display texts in the filter fields (because I don’t use that).

Categories: javascript

Java News feeds

December 9, 2011 Leave a comment
Categories: java

Jenkins on minimalistic Debian Virtualbox VM (64bit)

November 23, 2011 Leave a comment

A Jenkins build server (LTS release) can now be easily installed on the minimalistic Debian VM:

  1. Download and install Virtualbox
  2. Download debian-stable-amd64-minimal.ova and import it into Virtualbox
  3. Start the “debian-stable-amd64-minimal” VM in Virtualbox
  4. If you are outside Nova Scotia, please review debian-stable-amd64-minimal.txt and adjust locale, timezone and Debian mirror based on your location
  5. Start an ssh session to localhost, port 1111 (using PuTTY, for example)
  6. Log in as user (default password is “user”)
  7. Issue “sudo install.sh jenkins” (default root password is “root”)
  8. Press enter for any questions during installation
  9. Open http://localhost:8888/ in a browser on the host OS for Jenkins web ui

You can go to “Manage Jenkins” – “Configure System” and see that JDK, Ant and Maven entries are already configured for you.

Important: Make sure to change root and user passwords to something secure, as mentioned in debian-stable-amd64-minimal.txt.

Categories: debian, java, virtualization

Convert Virtualbox VDI for VMware Player

November 15, 2011 Leave a comment

Regarding the VM that I mentioned in my previous post – this way I also got it to work in VMware Player:

  • Install and start Virtualbox (https://www.virtualbox.org/wiki/Downloads)
  • Go to File – Import Appliance (and import the ova file mentioned in my last post)
  • Close Virtualbox
  • Use VBoxManage on the command line to clone the VDI to VMDK, roughly as described here (but do not try to uninstall guest additions):  http://scottlinux.com/2011/06/24/convert-vdi-to-vmdk-virtualbox-to-vmware/
  • Create a new empty Linux/Debian VM in VMware Player
  • Close VMware Player
  • Edit the new vmx file so that it points to the cloned vmdk
  • Then open the VM in VMware player again. Now it should boot into Debian.
Categories: debian, virtualization

Minimalistic Debian VM (64bit)

November 10, 2011 Leave a comment

I uploaded a VM image to doepner.net: It is a minimalistic Debian VM that can be used as a base for lean servers. It is in OVA format, exported from Virtualbox 4.1.6. Details are in the corresponding txt file.

You can add the VM to your Virtualbox using “File” – “Import Appliance …”. VMware should also work but might require some compatibility conversion of the ova file.

Recipes for specific Nexus, Jenkins, Wiki, Bugzilla setups will follow … I will publish those as scripts/instructions relative to the minimal base image, rather than maintaining several VMs.

Categories: debian, foss, virtualization
Follow

Get every new post delivered to your Inbox.