devxlogo

The Latest

Using the onMouseDragged Event in JavaFX

It’s easy to implement a nice dragging effect in JavaFX, using the onMouseDragged event in conjunction with the bind operator (incremental and lazy evaluation of attributes operator). import javafx.ui.canvas.*;import javafx.ui.*;import

Working with Objects in F#

In the article “An Introduction to F# for Functional Programming” you saw an example of working with basic shapes and calculating the total perimeter of a drawing based on those

CTIA, San Francisco, ’08: Teenage Wasteland?

Related Posts UVU’s entrepreneurship education boosts Utah’s economyCisco to cut 7% of workforceIBM Cloud Computing Revenue Climbs 70%Greatly Improved Edit Mode and Data Refresh in Updated Devart Excel Add-ins 1.7Southampton’s

Getting Started with the .NET Task Parallel Library

arallel programming has been around for decades, but unless you had access to special-purpose hardware, you’ve probably written mostly single CPU applications. You could distribute truly intensive applications across a

CTIA, San Francisco, ’08: Teenage Wasteland?

The last day of this year’s second CTIA show in San Francisco featured an interesting new focus: teenagers. Friday boasted two sessions about teenage mobile use: First, there was a

“Getting Real” with RDF and SPARQL

he “Getting Real” approach by Web 2.0 poster child 37signals reverses the usual development process (from model to code to user interface) by going “from brainstorm to user interface sketches

Converting Numbers to Strings

Instead of writing your own function to convert an integer or float to a string, just use the C++ class stringstream (in the sstream header). In C++: #include #include #include

Capture a Screenshot in Java

Use the following Java code to capture a screenshot: import java.awt.AWTException;import java.awt.Rectangle;import java.awt.Robot;import java.awt.image.BufferedImage;import java.io.File;import java.io.IOException;import javax.imageio.ImageIO;public class ScreenCapture { public static void main(String[] args) { try { Robot robot

Fixing Settings and Configuration Errors in .NET

Sometimes, adding default settings will result in your program throwing a generic error in the app.config file. The MSDN reference page for the error says something like, “This is a

Using Google Maps in Android

n this previous article, you learned about the Eclipse development IDE and how to create a simple Android application and debug it on the Android emulator. Continuing with our exploration

VMWare Chief Chiefly Wrong

In a recent speech, VMWare CEO Paul Maritz raised the rising virtualization rhetoric to a ludicrous level. Among his statements was this gem: “By and large, people are no longer

Programatically Set or Change DataRow‘s RowState

The .NET Framework 2.0 adds a new feature: SetAdded, SetModified. You use this feature to set DataRow‘s RowState value programatically. This is applicable only when the current DataRow‘s RowState is

Create a JavaFX foreach Nested Loop

When you want to create a nested loop in JavaFX, use the foreach statement. Here’s an example that displays a circle model: import java.lang.*;import javafx.ui.*;import javafx.ui.canvas.*;Frame { centerOnScreen: true visible:

Yahoo’s Doing Just Fine, Thank You

Related Posts Musk diverts AI chips from Tesla to X and xAIPrevent Shutdown from a C# AppSalesforce Launches Heroku Enterprise Cloud Development PlatformConvert a Byte Array to a Hexadecimal StringFormat

Yahoo’s Doing Just Fine, Thank You

I had the opportunity to attend Yahoo’s second Open Hack Day at the Sunnyvale, CA campus. This was my first time visiting and I was impressed. It’s a big campus,