Tag Archives | Programming

QN: imgscalr Java Image-Scaling Library 1.2 Released

Version 1.2 of the imgscalr Java image-scaling library has been released. This release makes the library easier to use, accessible from the new The Buzz Media Maven repository and improved the logic used to determine the proportionally-scaled width and height for images depending on their orientation (LANDSCAPE or PORTRAIT). For download links, Javadoc, source code [...]

Read full story Comments { 0 }

QN: Things You Might Not Know About jQuery

jQuery is a very popular JavaScript library used to make writing JavaScript-enabled sites easier; handy shortcuts and pre-defined functions that do popular things and all. David Flanagan (author of jQuery Pocket Reference) has put together 5 tips about jQuery that you most likely didn’t know. My favorite one is the use of namespaces when it [...]

Read full story Comments { 0 }

imgscalr – Java Image Scaling Library Released

If you have ever wanted to quickly rescale an image in Java you have probably noticed the following confusing things: There seem to be something like 9 different ways to do this: Image.getScaledInstance(), Graphics.drawImage(), Graphics2D.drawImage(…), BufferImageOps, AffineTransforms and don’t forget Java Advanced Imaging API. Which one are you suppose to use? Which one performs the [...]

Read full story Comments { 1 }

CSS3 Pie: Adding Support for CSS3 to Internet Explorer 6, 7 and 8

CSS3 Pie (download) is a set of CSS “behaviors” that can be attached to any CSS file by way of the behavior element in order to add rendering support to Internet Explorer 6, 7 or 8 for the more popular CSS3 rendering features: border-radius box-shadow border-image multiple background images linear-gradient background images CSS3 Pie is [...]

Read full story Comments { 1 }

@Override Compiler Errors in Play! Framework “Must Override a Superclass Method”

If you are working with the Play! Framework and have run into exceptions that read like “The file <MyFile>.java could not be compiled. Error raised is : The method <MethodName> of type <ClassName> must override a superclass method” then you might be wondering if there is a compiler bug in Play! – worry not, it’s [...]

Read full story Comments { 0 }

HTML5 Drag and Drop Upload and File API Tutorial

Update #3: Using the techniques outlined in this article I have rolled out and initial release of imgscalr.com. Feel free to download the JS source (it is heavily commented) and take a look at how it was rolled out. Unfortunately the required File API support is only in Chrome and Firefox currently, Safari gets it [...]

Read full story Comments { 87 }

IntelliJ IDEA Tip: source release 1.6 requires target release 1.6

If you are an IntelliJ IDEA user and you are using Maven in your project, chances are you may some day run into this incredibly cryptic and confusing message: Error: javac: source release 1.6 requires target release 1.6 Googling it digs up a few approaches to solving the problem as well as some IntelliJ IDEA [...]

Read full story Comments { 30 }

Digg Rewrite Drops MySQL in Favor of NoSQL Apache Cassandra Backend

John Quinn from Digg recently posted on the Digg blog about Digg’s ongoing rewrite of the entire site — both front end and back end. One of the biggest performance and growth challenges that John cited for Digg was growing it’s MySQL-based relationship DB across different data centers and keeping the site performant and in [...]

Read full story Comments { 2 }

Apache Wicket Powers mobile.walmart.com and mobile.wellsfargo.com

Update #1: From the same development team that did the mobile.walmart.com site in Wicket also clarified that they finished (last year) the mobile.wellsfargo.com website using Wicket as well. That’s some serious props to Wicket! I am on the Apache Wicket mailing list and one of the developers (Joachim) on the list wrote in this morning to [...]

Read full story Comments { 1 }

I'm a Closet Artist… Apparently

I’ve always identified myself as a “scientific person”. I have a Computer Science degree (virtual high-five to Laurence Hartje), I’ve been obsessed with computers and technical gadgetry since I was 10 (virtual high-five to Grant Gochnauer) and I glommed onto software development at the age of 12 and have loved it ever since. I pretty [...]

Read full story Comments { 0 }

Make Your Own Game with Game Kodu

At CES yesterday during the Microsoft Keynote Robbie Bach  showed off the new game building engine that will be released for The XNA Community Games later in 2009. It’s called Kodu and it allows anyone to pick up a 360 controller and make their own game.  It reminds me how the described LittleBigPlanet before it [...]

Read full story Comments { 4 }

Using 'resources' path in Wicket Causes Problems Loading CSS, Images and JavaScript

Bah… 3 hours worth of debugging and finally figured out what was going on with this issue in Wicket and wnated to share this with any other developers out there that might be running into this. Issue I typically create a /resources directory under the root of any web app I’m working on where I [...]

Read full story Comments { 0 }

Programming Like a Douchebag

Ran across this post with an example of the worst toString method this developer has ever seen, let’s take a look: public String toString() { if (this != null) return “**** implement me”; return “i am null”; } This is really for the programmers in the group… the amount of stupid involved in writing the [...]

Read full story Comments { 0 }

Introducing Google Charts API

Just got a heads up that Google’s Chart API has been updated to include Venn Diagram support now (As you see above). Blogos created the example above using the following simple HTTP request: http://chart.apis.google.com/chart? the base URL cht=v& chart type: v for Venn chs=400×200& chart size: 400 by 200 pixels chd=t:119,96,43,67,22,38,16& chart data: the 3 [...]

Read full story Comments { 0 }