Blogs
Tags > java
Validation in Flex with Hamcrest-AS3
By Joel HooksNovember 20, 2009
Hamcrest? No, it isn't a fancy sandwich topping. Hamcrest is a framework for creating matchers, allowing matching rules to be defined declaratively (from Wikipedia). Hamcrest has been used by many popular unit testing frameworks including JUnit and FlexUnit 4. Hamcrest-AS3...
Using UDP socket connections for low-latency and loss-tolerant scenarios in AIR 2 (Part 3)
By Ian McLeanNovember 19, 2009
Now that we have a client built that will send and receive packets we need a server for it to communicate with. Lets walk through a quick implementation of a basic Java UDP socket server. Some familiarity with Java is...
Using UDP socket connections for low-latency and loss-tolerant scenarios in AIR 2 (Part 2)
By Ian McLeanNovember 17, 2009
So now that we understand the usage of UDP lets jump right into building a basic UDP client and server. We'll use the DatagramSocket class to send packets to a specific port at a specific address. We'll also bind our...
Using UDP socket connections for low-latency and loss-tolerant scenarios in AIR 2 (Part 1)
By Ian McLeanNovember 17, 2009
Flash player has supported socket connections for some time but has lacked UDP specific support. Although there was the recent addition of RTMFP (a protocol utilizing UDP to enable low latency data transfer and P2P connections) it doesn't provide direct...
Announcing O'Reilly Answers - Clever Hacks. Creative Ideas. Innovative Solutions.
By Allen NorenNovember 4, 2009
We're launching the beta of O'Reilly Answers, and I'm inviting you to be part of it. In brief, O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). O'Reilly is at the center of an amazing exchange of knowledge sharing and idea generation, and we want you to join us in changing the world by spreading the knowledge of innovators.
Getting Java, C# and Perl to speak the same language (with JSON)
By Andrew StellmanOctober 4, 2009
I've been thinking a lot about architecture lately. It's partially because Jenny and I are going to do our Beautiful Teams talk at the ITARC 2009 conference next week. But it's also because I've been writing a lot of code...
Is There Any Correct Java Code Out There?
By James ElliottAugust 5, 2009
Writing correct, concurrent code is really hard. Java makes it seem easier than it is, even when you think you're being careful. The language support is better than it was before Java 5, but we still have a lot to learn. And we have to learn fast, because our code is running on more and more processors every day.
Writing the Pac-Man Game in JavaFX - Part 5
By Haining Henry ZhangJune 12, 2009
In previous articles, we finished writing most of the code of the Pac-Man game. In article 3, we implemented a simple algorithm for the ghosts to catch the Pac-Man. The ghosts randomly decides in which direction they move. They do not chase the Pac-Man even they are very close to him. This makes the game less challenging. In fact, the behavior of the ghosts are the most tricky part of the game. According to Iwatani, the author of the original arcade game, he had designed each ghost with its own distinct personality in order to keep the game from becoming too difficult or boring to play. ( More info) However, there is generally no conclusion on what behavior of the ghosts are good for the players.
Writing the Pac-Man Game in JavaFX - Part 4
By Haining Henry ZhangJune 2, 2009
In the last article, we developed a preliminary version of the Pac-Man game. Four ghosts are randomly roaming the maze and a Pac-Man character can be controlled by a player. Now, we write some more code for the interaction between ghosts and the Pac-Man: Pac-Man eats a ghost after he gobbles a magic dot. A ghost eats the Pac-Man when it touches him.
Writing the Pac-Man Game in JavaFX - Part 3
By Haining Henry ZhangMay 25, 2009
We are now ready to create the ghosts in our game. The four ghosts, namely Blinky(red), Pinky(pink), Inky(cyan) and Clyde(orange), are trapped inside a cage when a game starts. After some time, they get out of the cage one by one and start roaming the maze. Their goal is to catch the Pac-Man. The Pac-Man dies if he is touched by one of the ghosts. If the Pac-Man swallows a magic dot, he has the power to eat ghosts for a while. During this time, the ghosts turn hollow and move more slowly.
Writing the Pac-Man Game in JavaFX - Part 2
By Haining Henry ZhangMay 14, 2009
In last article, we designed a data model and drew a maze with dots spread into the maze. Now we are ready to create the Pac-Man character. The Pac-Man character is controlled by the game player to move around the maze. While he is moving, he keeps gobbling dots along the path. To implement the Pac-Man character, we divide the coding into a few tasks so that we can create it bit by bit:
Writing the Pac-Man Game in JavaFX - Part 1
By Haining Henry ZhangMay 10, 2009
When I was young I was fascinated by arcade games. One of my favorites was the Pac-Man game. Recently, when I was learning the JavaFX language, I decided to write the game in JavaFX. Based on my experience in other programming languages, I assumed there would be some amount of work in building a game such as Pac-Man, giving me a good feel for RIA development in JavaFX.
What the Sun/Oracle Combination Means for Java and Open Source
By Timothy M. O'BrienApril 22, 2009
What does the Oracle/Sun merger mean for Java? There's been a lot of speculation and a fair amount of apocalyptic, "sky is falling" Twitter activity, but does anyone really know what Ellison has in store for Java?
Google Introduces Comprehensive, Standards-based Java Support in AppEngine
By Timothy M. O'BrienApril 8, 2009
Google's announcement of Java support in AppEngine is more than just the announcement of support for a second language. Java on AppEngine changes the dynamics of the Java ecosystem and redefines the concept of Write Once Run Anywhere.
An Up and Down Week for JAVA
By Timothy M. O'BrienApril 6, 2009
...and, I'm not talking about the language. I'm talking about the stock, Sun Microsystems is down 20% in the futures market @ 8:10 AM ET. -20% On the news of the $7 billion game of brinksmanship, it is important to...
Blue Sun? What an IBM acquisition of Sun means for software
By Kurt CagleMarch 24, 2009
However, Sun's software side of the acquisition ledger, especially by IBM, has been rather oddly overlooked, given that it will likely have major implications for software development and cloud computing for years. Sun's software holdings cover five primary areas - Java, Solaris, mySQL, Open Office, and Sun's recently acquired QLayer cloud infrastructure. Understanding how IBM could potentially ramp up (or destroy) each of these gives some interesting insight into the real value of IBM's potential software acquisitions.
Apache up against corporate dominance of fake standards process?
By Rick JelliffeMarch 17, 2009
Read the rather startling comments to the article The long-running Sun-Apache dispute<at Javaworld.
ActionScript Data Structure Performance
By Mike SlinnMarch 11, 2009
As I have previously reported, lots of Java programmers are adopting Flex. One question that Java programmers always ask is "where are my beloved collections classes?" First, the good news: this blog will point you to some excellent collection classes,...
Practice
By Simon St. LaurentJanuary 1, 2009
My New Year's Resolution for this year is simple: practice. You don't have to achieve (or even aim for) total mastery for the practice to be worthwhile.
Java to ActionScript Converter, Take 3
By Mike SlinnDecember 26, 2008
I needed to estimate the effort required to port a Spring Rich Client application to AIR. Spring RCP applications are actually Java Swing applications. The project had 93 Java files, consisting of 118 Java classes and 16,950 total lines of...
Does Java Run Faster On .NET VM and Windows Azure?
By M. David PetersonDecember 20, 2008
Looking for ways to tweak the performance of your Java applications? Look no further than the .NET platform and Windows Azure.
Java in the Cloud
By Hari K. GottipatiDecember 20, 2008
Every one is talking about building apps in cloud or moving the apps to cloud. There are plenty of jobs on job boards looking for the people with the skills: "familiarity with cloud" or "expertise in cloud". The latest buzzword is "Cloud Computing". What is Cloud? Why all of sudden Cloud is a buzz? What are my options to move Java app to the Cloud? What are the features and limitations of the Cloud? How IaaS and PaaS will fit in the Cloud? Read 'Java in the Cloud' for details ......
Anvil - a Flash and Java-Based Open Source Portal Server
By Mike SlinnDecember 4, 2008
Portal servers are popular for enterprises, because they provide a mechanism to aggregate multiple web-based applications, including news feeds and content management. The applications running in portals are called portlets, and they are specified by JSR 168 and Web Services...
A Conversation with the Authors of JRuby Cookbook
By Timothy M. O'BrienNovember 25, 2008
Henry Liu and Justin Edelson authors of the just released JRuby Cookbook talk about JRuby, the current state of the Java platform, and some of the compelling benefits of integrating a language like Ruby with the Java platform.
Interview with Jason Hunter of MarkMail.org
By Timothy M. O'BrienNovember 23, 2008
At OSCON 2008, Mike Hendrickson interviewed Jason Hunter about MarkMail.org a site which archives 34 million email messages from 6,470 open source mailing lists. Mike asks Jason about the technology behind Markmail.org and how MarkLogic's products can scale to handle Petabyte-scale data
Sun's Layoffs, Anil Gadre, and What happens to Java now?
By Timothy M. O'BrienNovember 14, 2008
Sun announced massive layoffs of up to 18% of the global workforce as they split the software division into three groups. What do these changes mean for Java? And, who is managing the new Application Platform Software group?
Spring Getting into a Groove with Groovy: SpringSource Acquires G2One
By Timothy M. O'BrienNovember 12, 2008
Rod Johnson and Graeme Rocher discuss SpringSource's acquisition of G2One. In this 20 minute interview, both Johnson and Rocher discuss the differences between Groovy and other scripting lanuages available on the JVM and why they believe that Groovy on Grails provides the path of least resistance for enterprise web application development.
Data Visualization With Processing
By Andrew TriceOctober 9, 2008
One of the most common themes that I write about on this blog is data visualization, especially with Flex and AIR. This time I decided to change things up a bit and am exploring data visualization with Processing.
AIR, Java, and obots
By RJ OwenSeptember 3, 2008
Jordan Snyder turned more than a few heads at 360Flex when she demoed a lego Mindstorm robot controlled through an AIR interface. Adam Flater took some videos of the 'bot (since named "Nathan") cruising around the eBay campus. Cool stuff, to say the least. Videos of the bot and some more info on this project in the full entry.
C++ for RIA?
By Richard Monson-HaefelAugust 21, 2008
Qt is a powerful and surprisingly pervasive fit client technology that could become the next RIA solution for C++ programmers.
Curl and the Java Processing Language
By Richard Monson-HaefelAugust 19, 2008
The Java processing language is a great for creating data visualizations and so is Curl. See the data visualizations written in the Java precessing language and compare them to similar programs written Curl.
Does Enterprise Development Have to be Painful, part three
By chromatic August 14, 2008
chromatic explores how to build, bundle, and deploy an application with SAP NetWeaver Composition Environment and evaluates the whole process for creating and deploying applications in the enterprise.
Is Sun Setting?
By Kurt CagleAugust 14, 2008
The global slowdown is beginning to take its toll on more exposed hardware and consulting companies. On Friday, July 10, Sun began sending out pink slips to more than 1000 employees, primarily in the marketing and sales areas as part...
Google Open Sources Google XML Pages
By Kurt CagleAugust 14, 2008
Given the mind-numbingly large number of pages that Google serves up every day, compiled efficiency is a key requirement for their web development team. However, as with many organizations, Google's team has also needed to split up their development efforts, so that web designers do not need to be programmers (and more importantly, do not need to endlessly spend their time validating and debugging low level code), and the core developers could spend time building components.
Hands On With JavaFX - First Impressions
By Andrew TriceAugust 1, 2008
If you haven't heard the news yet, today Sun released the JavaFX preview SDK (previously covered on insideria here and here). I decided to dive and and see it for myself. Here's what I found (from a developer's perspective)...
Processing the Deep Backlist at the New York Times
By Liza DalyJuly 31, 2008
At OSCON, Derek Gottfrid explained how the New York Times is using Amazon cloud computing services to make the paper's historical archive viewable on the Web.
Merapi is Live
By Adam FlaterJuly 15, 2008
Merapi, the framework to enable integration between Java and AIR at the desktop, was released in Alpha on Monday, July 14th.
Neo4J: A Different Database (+ Expect More Bad Java News)
By Timothy M. O'BrienJuly 12, 2008
Foocamp attendees, beware, we're covering you from afar. Peter Neubauer twittered about Neo4J this morning and it caught my eye. "Neo is a graph database. It is an embedded, disk-based, fully transactional Java persistence engine that stores data structured in graphs rather than in tables." Is this to be believed? Something interesting happening in Java?
Java 6 on the Mac
By Daniel H. SteinbergMay 5, 2008
Who doesn't care more about Java on the Mac--Sun or Apple?
RIA at JavaOne and Community One
By Andre CharlandApril 25, 2008
I'm going to be at JavaOne May 6th-9th and CommunityOne on May 5th. This is going to be the most exciting JavaOne to date for RIA developers. There's lots of great Ajax, JavaScript and JavaFX content obviously. But there's a number or Flex sessions and at least on AIR session which includes a case study.
Merapi Project
By Rich TretolaApril 25, 2008
I was really excited during the early days of Apollo testing when the Artemis project was announced and wrote several sample applications. It was a way for AIR to communicate with Java through a bridge.
Cocoa Spaces
By Daniel H. SteinbergMarch 27, 2008
Imagine giving your iPhone the power of a nearby eight-core Mac Pro.
Repairing a fracture
By Daniel H. SteinbergJanuary 28, 2008
Last week I attended the Java Mobile and Embedded Developer Days in Santa Clara. I'd gone because I produce their community podcasts (http://mobileandmebedded.org). I like the people but was unprepared for how interesting the content was.
1 to 43 of 43








