Planet Apache

Syndicate content
Updated: 5 hours 15 min ago

Justin Mason: Links for 2014-03-10

Mon, 2014-03-10 18:58
Categories: FLOSS Project Planets

Bryan Pendleton: Gorgeous Internet maps

Mon, 2014-03-10 18:09

CNN have a beautiful gallery online: This is what the Internet actually looks like: The undersea cables wiring the Earth

The information age is powered by thin fiber-optic cables buried in the sea bed, spreading between continents to connect the most remote corners of the planet. These great arteries account for practically all of our international web traffic, and each one has been logged by Washington research firm Telegeography in its interactive Submarine Cable Map 2014. The company's research director Alan Mauldin told CNN about the world's underwater networks.

The full map is on the TeleGeography web site: Submarine Cable Map 2014.

I'd love to buy the full map for my wall at work, but it's a bit out of my price range. To be accurate, it's priced at about 10x what I'd be willing to pay.

Still, the online version of the map is simply beautiful.

Are the cables actually "buried in the sea bed"? For some reason I thought they were just resting on top of the sea floor.

Wow, has it really been 18 years since Neal Stephenson wrote Mother Earth Mother Board ? Time sure passes quickly...

Here's what Stephenson said, at the time:

The amplifiers need power - up to 10,000 volts DC, at 0.9 amperes. Since public 10,000-volt outlets are few and far between on the bottom of the ocean, this power must be delivered down the same cable that carries the fibers. The cable, therefore, consists of an inner core of four optical fibers, coated with plastic jackets of different colors so that the people at opposite ends can tell which is which, plus a thin copper wire that is used for test purposes. The total thickness of these elements taken together is comparable to a pencil lead; they are contained within a transparent plastic tube. Surrounding this tube is a sheath consisting of three steel segments designed so that they interlock and form a circular jacket. Around that is a layer of about 20 steel "strength wires" - each perhaps 2 mm in diameter - that wrap around the core in a steep helix. Around the strength wires goes a copper tube that serves as the conductor for the 10,000-volt power feed. Only one conductor is needed because the ocean serves as the ground wire. This tube also is watertight and so performs the additional function of protecting the cable's innards. It then is surrounded by polyethylene insulation to a total thickness of about an inch. To protect it from the rigors of shipment and laying, the entire cable is clothed in good old-fashioned tarred jute, although jute nowadays is made from plastic, not hemp.

Oh wait, no, there's more later (Stephenson wrote a LONG article...). Here it is:

At Tong Fuk, FLAG is encased in pipe out to a distance of some 300 meters from the beach manhole. When the divers have got all of that pipe bolted on, which will take a week or so, they will make their way down the line with a water jet that works by fluidizing the seabed beneath it, turning it into quicksand. The pipe sinks into the quicksand, which eventually compacts, leaving no trace of the buried pipe.

Beyond 300 meters, the cable must still be buried to protect it from anchors, tickler chains, and otter boards (more about this later).

Well, that wasn't it, exactly, as that's still talking about the part where the cable reaches land. How about this part:

These nozzles fluidize the seabed and thus make it possible for the giant blade to penetrate it. Along the trailing edge of the blade runs a channel for the cable so that as the blade works its way forward, the cable is gently laid into the bottom of the slit. The barge carries a set of extensions that can be bolted onto the top of the injector so it can operate in water as deep as 40 meters, burying the cable as deep as 9 meters beneath the seabed. This sufficed to lay the cable out for a distance of 10 kilometers from Tong Fuk. Later, another barge, the Chinann, will come to continue work out to 100 meters deep and will bury both legs of the FLAG cable for another 60 kilometers out to get them through a dangerous anchorage zone.

Still seems like we're talking about the part close to shore.

OK, no, here it is (I knew I remembered it):

The route between the landing station at Songkhla, Thailand, and the one at Lan Tao Island, Hong Kong, might have a certain length when measured on a map, say 2,500 kilometers. But if you attach a 2,500-kilometer cable to Songkhla and, wearing a diving suit, begin manually unrolling it across the seafloor, you will run out of cable before you reach the public beach at Tong Fuk. The reason is that the cable follows the bumpy topography of the seafloor, which ends up being a longer distance than it would be if the seafloor were mirror-flat.

Over long (intercontinental) distances, the difference averages out to about 1 percent, so you might need a 2,525-kilometer cable to go from Songkhla to Lan Tao. The extra 1 percent is slack, in the sense that if you grabbed the ends and pulled the cable infinitely tight (bar tight, as they say in the business), it would theoretically straighten out and you would have an extra 25 kilometers. This slack is ideally molded into the contour of the seafloor as tightly as a shadow, running straight and true along the surveyed course. As little slack as possible is employed, partly because cable costs a lot of money (for the FLAG cable, $16,000 to $28,000 per kilometer, depending on the amount of armoring) and partly because loose coils are just asking for trouble from trawlers and other hazards. In fact, there is so little slack (in the layperson's sense of the word) in a well-laid cable that it cannot be grappled and hauled to the surface without snapping it.

So at least when Stephenson wrote about this, twenty years ago, the cable was only buried in the seabed close to shore, to prevent it from being damaged by dragging anchors and other dangerous things that arise in the shallow ocean close to land.

Out deeper, they just laid it down on the sea floor.

So, has that changed? If you know, let me know.

Categories: FLOSS Project Planets

Heshan Suriyaarachchi: Fixing BSFException: unable to load language: java

Mon, 2014-03-10 15:39
I was using JMeter to execute BeanShell scripts that I have written and came across this exception. I had to waste sometime to find out what was the exact issue. Although I copied the BSF jar to the JMeter lib directory, it was not sufficient. When I added the bsh-bsf-2.0b4.jar, the script started running successfully. 
I thought someone else might find this tip useful, therefore blogging it.
Categories: FLOSS Project Planets

Bryan Pendleton: Europa Universalis IV: Mat Rus

Mon, 2014-03-10 09:48

Although the first expansion pack for EU IV has now been out for more than a month, I'm still playing the base game.

(What? I've only been playing for 5 months.)

I declared the Ottomans Campaign over, and looked elsewhere for a fresh start.

This time, I'm playing as Muscovy.

I've made it to 1454 so far; the first decade is complete.

In the early game, I'm struggling to overcome tiny northern countries with names like Tver, Ryazan, Pskov, and Yaroslavl, just barely earning enough to keep my country alive in the tough frozen winters, while I try to keep peace and mostly avoid the activity of the central asian tribes to my east.

But I can already see that the only hope for prosperity lies with the trade routes and ocean access to the south, in places like Armenia, Georgia, Abkhasia, and Crimea.

It's oh, so au courant.

Categories: FLOSS Project Planets

Claus Ibsen: hawtio 1.2.3 Released - Screenshots of some of the new hawt stuff

Mon, 2014-03-10 09:33
Today we released hawtio 1.2.3 - yay that is a beautify version number ;) 1-2-3 hawtio is ready for download and use.

The highlights of this new release from the changelog includes:

  • New hawtio Chrome Extension for easier connection to remote JVMs from your browser without having to run a hawtio server or connect through a web proxy
  • Upgraded to TypeScript 0.9.5 which is faster
  • threads plugin to monitor JVM thread usage and status.
  • Moved java code from hawtio-web into hawtio-system
  • Clicking a line in the log plugin now shows a detail dialog with much more details.
  • ActiveMQ plugin can now browse byte messages.
  • Improved look and feel in the Camel route diagram.
  • Breadcrumb navigation in Camel plugin to make it easier and faster to switch between CamelContext and routes in the selected view.
  • Added Type Converter sub tab (requires Camel 2.13 onwards).
  • Better support for older Internet Explorer browsers.
  • Lots of polishing to work much better as the console for fabric8
  • Fixes these 175 issues and enhancements


I will like to showcase the chrome extension a bit more.
hawtio as chrome extensionIn the last 1.2.2 release we had a preview of the Google Chrome Extension which now has been improved and polished. So let's kick of this blog by installing and using hawtio 1.2.3 in your google web browser.

Just follow the instructions on the getting started page. And hawtio should be available from the web browser as shown below.


What we would do next is to connect to the remote JVM which we want to manage and gain insight what happens in the JVM. For example to connect to the upcoming Apache ActiveMQ 5.10 message broker, you connect using the details shown in the screenshot.

And when connected to the broker, you can access the server log, and as well manage the broker, such as browsing the queues and topics, and much more.

Browsing remote ActiveMQ server log using hawtio directly from your web browser.You can also launch hawtio using the Chrome App Launcher from your operating system. For example from my OSX I can click the app launch icon which now includes hawtio.
Launch hawtio as a native application from your OS
Another highlight is the improved look and feel of the Camel plugin. Though we are not done yet, so we would like feedback on this, as finding the right colors that everybody
likes isn't so easy :)

Improved Camel Diagram look and feelThe Camel diagram which shows the routes visually now shows the various EIPs using different colors. For example the Apache Camel Servlet Tomcat example is shown below:

Camel diagram improved with more colors
Also we added a breadcrumb functionality which is known in IDEA which makes switching between routes and endpoints in the Camel plugin faster. To use that click that double arrow on the top right corner of the Camel Tree as shown below:

Double arrow accesses the breadcrumb functionality for fast switching between routes and endpoints.And we are also ready for the upcoming Apache Camel 2.13 release, which allows hawtio to list all the registered type converters, and associated utilization statistics, as illustrated below:

Camel 2.13 can now list all the registered type converters and their utilizationAnother functionality I want to highlight is the Maven plugins we included in last release.
Maven Plugin to bootup with hawtioFor example we can bootup the examples that comes out of box with Apache Camel. For example to run the management example with the hawtio web console, all we do is.

davsclaus:~/Downloads$ tar xf apache-camel-2.12.3.tar.gz
davsclaus:~/Downloads$ cd apache-camel-2.12.3
davsclaus:~/Downloads/apache-camel-2.12.3$ cd examples/
davsclaus:~/Downloads/apache-camel-2.12.3/examples$ cd camel-example-management/
davsclaus:~/Downloads/apache-camel-2.12.3/examples/camel-example-management$ mvn compile io.hawt:hawtio-maven-plugin:1.2.3:camel

And hawtio opens a web page with hawtio ready to use. With that I can gain insight into the Camel example and see real time data from the routes, and so forth.

hawtio plugin launched together with the Camel Management ExampleYou can find more details about the hawtio Maven plugins here.


Want to learn moreYou can find more details about hawtio at the website. Its 100% open source, and licensed using the permissive Apache License. The source code is at gihub.

At the DevNation conference next month, Stan Lewis, James Strachan, and myself is demonstrating and talking more about hawtio. For example James will talk about open source integration in the cloud, where hawtio is the console for JBoss Fuse and fabric8. Stan Lewis gives two talks about hawtio, one focused how you can extend and write your custom plugins, and as well how to skin the look and feel, to create your own custom consoles.


Categories: FLOSS Project Planets

Apache Wicket Community News: Wicket at ApacheCon 2014: Croquet

Sun, 2014-03-09 07:06
Due to an unfortunate scheduling conflict I’m unable to attend ApacheCon 2014 in North America, but it appears that ApacheCon isn’t bereft of a Wicket attendance: William Speirs is presenting his Wicket, Jetty, Hibernate and Guice framework called “Croquet”. Croquet is a framework that combines Apache Wicket, Jetty, Hibernate, and Google’s Guice into a high-performance […]
Categories: FLOSS Project Planets

James Duncan: Wow. The last few months have been a complete maelstrom but...

Sat, 2014-03-08 12:14


Wow. The last few months have been a complete maelstrom but everything is working out well. Yesterday was the last day I owned my place in Portland. I’m sad to see it go, but I’m already enjoying the start of the next chapter. More to come. Soon.

Categories: FLOSS Project Planets

Bryan Pendleton: Reading my way to Ireland, part 1: travel guides

Sat, 2014-03-08 11:59

We're hoping to travel to Ireland before too long.

So I've been doing my typical thing: reading.

This is not the first time we've thought about visiting Ireland. So, tucked away in a closet somewhere, we had:

  • Michelin Green Guide IrelandTHE GREEN GUIDE, the perfect travel companion: a discerning and up-to-date source of information. Practical and comprehensive, it offers suggestions on what to see and what to do, background on history and cultural heritage.

I really like the organization of this book, and the way the information is presented. It's easy to read, illustrated with lots of nice pictures, and full of useful information.

It's over a decade old at this point, and Ireland has changed a lot in the last ten years. But the editors of the Michelin Guide are to be congratulated, as the book doesn't seem very dated at all. They wisely chose to focus on more-or-less timeless topics, such as descriptions of the various towns and cities, points of interest, historical background, ideas for things to do.

But, it's ten years old.

So, I bought two other similar guides, to fill in the gaps and provide more recent information:

  • Rick Steves' Ireland 2013Rick’s candid, humorous advice will guide you to good-value hotels and restaurants. He’ll help you plan where to go and what to see, depending on the length of your trip. You’ll get up-to-date recommendations on what is worth your time and money. More than just reviews and directions, a Rick Steves guidebook is a tour guide in your pocket.
  • Lonely Planet Ireland (Country Travel Guide)You can trust our travel information because Lonely Planet authors visit the places we write about, each and every edition. We never accept freebies for positive coverage so you can rely on us to tell it like it is.

Each book has a slightly different style: the Michelin guide is very corporate in its approach, with very little personality. Dry, but useful.

The Rick Steves organization have been publishing books (and leading guided tours, which I think is where they actually got started) for many, many years. Where the Michelin team stick mostly to the facts, and are reluctant to make recommendations, the Rick Steves books are less neutral, and have a point of view.

The Rick Steves books are also more selective in what they cover. Where the Michelin guide tries to cover everything, the Rick Steves guide selects destinations that they enjoy, and provide lots of coverage of those, simply omitting the things they don't like. This means that almost everything in the book has a good rating and is a recommended choice, which gives the book an overall cheery, positive tone that makes the entire exercise of trip planning much more light-hearted.

The Lonely Planet organization have also been publishing guides for decades. They got their start focusing on trips for youth, to exotic and less-traveled destinations, but have expanded to the point that they pretty much cover everywhere.

Lonely Planet's focus on travel-for-the-young means that they tend to include a lot of coverage of hostels, low-priced eateries, public transit, and other practical matters, and rather less coverage of romantic getaways, cultural history, etc. Their guides also include pursuits like canoeing, surfing, and other outdoor activities that are clearly aimed at the younger traveler.

The Lonely Planet crew are also more willing to "tell it like it is," and will tell you if a place is likely to be "mobbed in the summer," "isolated if the unthinkable happens and it rains," or if it's an "unflinchingly honest town with a tough past."

I like having all three guides to compare and contrast. It's a lot of information, but I'd rather have too much than too little.

I'm not sure if I'll carry any of them along in the suitcase, though, as they're all a bit heavy. I'll have to think about this and see if there's one of them that seems like the best one to lug around when the actual trip arrives.

Categories: FLOSS Project Planets

Chris Hostetter: Solr 4.7 Now Available

Fri, 2014-03-07 19:36

Lucene & Solr 4.7 were announced today. You can download Solr 4.7 from the Apache mirror network.

In addition to 52 bug fixes, Solr 4.7 includes several significant new features folks should be aware of:

Categories: FLOSS Project Planets

Claus Ibsen: Fuse at the DevNation conference (CamelOne 2014)

Fri, 2014-03-07 08:17
I have previously blogged about CamelOne 2014 conference is now hosted as part of the DevNation conference.



The agenda is now complete, and its great to say that the Fuse team will be there presenting the latest cool stuff happening around projects like fuse/fabric8 and hawtio, and about Apache ActiveMQ and Camel too.

Make sure to be there on sunday for the fuse track, where you will hear from James, Rob, Ioannis about all the latest greatness that are part of fabric8 and hawtio. And where it stands with OpenShift, Docker, and all the lovely cloudiness that changes how we roll out and host our applications, in hybrid environments.

Rob wrote a blog entry which details more about what the DevNation conference is about, and what to expect from it. I suggest to continue reading here.

Hope to see you next month in San Francisco. And yeah the Fuse team love beers too, so hopeful a chance to meet and chat over a beer too - and not only coffee.

Categories: FLOSS Project Planets

David Reid: Goodbye Zite

Fri, 2014-03-07 05:02

Of all the apps I have installed on my phone, the one I most frequently use is Zite. Following todays news that will be changing and the app will soon be uninstalled. It’s a shame, but doesn’t really come as a big surprise as Zite offered a useful, free service – something that is becoming rarer and rarer.

It was my wife who first introduced me to Zite on her iPad. It was an app that filled a void in the market for me and soon became one of the few apps I would look at every day. It’s ability to find stories of interest to me and display them in an easy to browse format was incredibly refreshing. When their android app went through a period of not working well I tried Flipboard.

As with most people my initial reaction to flipboard was “wow” but that faded within minutes. The odd page flipping that was initially “wow” soon became “ugh” and the limited content was annoying. Despite trying to tailor it to my interests the signal:noise ratio was too low – certainly far, far lower than Zite. I found the interface increasingly became an obstacle to the stories with Flipboard, so it was with some relief that updates to the Zite app made it usable again.

I have no idea what the business model was for Zite, but I suspect that being acquired by Fliboard will be viewed as a success by their investors. With the demise of their app I find my phone increasingly resembling and being used as just that – a phone. While the investors may celebrate, I think there will be a lot of users who will view it as a step backwards.

In fact I find myself wondering why I need a “smart phone” at all. I don’t play games. I don’t download music or movies to it. I do use the camera from time to time. The colour screen is nice, but is a camera and a nice screen ample compensation for battery life that is measured in hours compared with the days I enjoyed with a simpler phone 10 years ago?

Recent activity in the IT world has also shown that apps and services have very little user loyalty. The sudden rush of whatsapp users for alternative services following their acquisition by Facebook may be a recent example, but it’s hardly an isolated instance. Using an app and coming to rely on it for anything seems bound to lead to disappointment. Companies now view you as a commodity to be traded at the first opportunity to sell for massive rewards. How did we get here?

Categories: FLOSS Project Planets

Rob Davies: Fuse At the DevNation Conference!

Fri, 2014-03-07 04:14


The JBoss Fuse engineering team have sponsored and organised CamelOne for the last 3 years, but after CamelOne 2013, the opportunity came up to put all the effort into a new developer conference, sponsored by Red Hat called DevNation. This is the first time the event has been run, and its a great opportunity to learn about all aspects of development and deployment. CamelOne was focused on Apache projects used for integration, but that in itself is quiet limited, and as an integration developer, you have to be able know about so much more. DevNation is an opportunity to learn from like minded developers about all aspects of real world deployments, from Hadoop to elastic search, from best practices in DevOps or OSGi,  to getting an insight into Docker, Apache Spark, Elastic Search and so much more. DevNation has a lot of promise to be a great developer conference, with a broad scope that will be informative and fun. Its for this reason that the fuse team decided to focus our attention on DevNation this year, rather than CamelOne.
The traditional way of delivering applications is outdated. Many users are rolling out across hybridised environments, and the need to be insulated from all the different environments,  to have location independence and the ability to dynamically deploy, find and manage all your integration services is going to be the key theme for the Fuse tracks at DevNation - as well as all the usual tips, tricks and secret ninja (OK undocumented) stuff that we like to share with the attendees.
DevNation this year is being held in San Francisco, and will run from Sunday April 13 - 17. You can register here - and we really hope to see you there!
Categories: FLOSS Project Planets

Justin Mason: Links for 2014-03-06

Thu, 2014-03-06 18:58
Categories: FLOSS Project Planets

Heshan Suriyaarachchi: Fixing java.lang.ClassNotFoundException: org.apache.bsf.engines.java.JavaEngine

Thu, 2014-03-06 13:02
When using JMeter’s Java request sampler, I started seeing the below error.
2014/03/06 09:46:39 ERROR - org.apache.bsf.BSFManager: Exception : java.lang.ClassNotFoundException: org.apache.bsf.engines.java.JavaEngine
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:693)
at org.apache.jmeter.util.BSFTestElement.processFileOrScript(BSFTestElement.java:98)
at org.apache.jmeter.visualizers.BSFListener.sampleOccurred(BSFListener.java:51)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:443)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)

Following steps will resolve this issue.

1. Remove existing bsf jar from the jmeter/lib directory
heshans@15mbp-08077:~/Dev/tools$ rm apache-jmeter-2.11/lib/bsf-2.4.0.jar
2. Download and extract BSF http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/BSF4Rexx_install.zip.

3. Copy the following two jars to the jmeter/lib directory.
heshans@15mbp-08077:~/Dev/tools$ cp bsf4rexx/bsf-rexx-engine.jar apache-jmeter-2.11/lib/
heshans@15mbp-08077:~/Dev/tools$ cp bsf4rexx/bsf- apache-jmeter-2.11/lib/

Categories: FLOSS Project Planets

Jon Scott Stevens: I miss Steve Jobs

Thu, 2014-03-06 12:18
This morning, my dad sent me this screenshot from his several months old Macbook Pro... sigh.


Categories: FLOSS Project Planets

Tim Bish: Packt's Learning Apache Maven 3 Video Course

Thu, 2014-03-06 10:37
I took some time recently to watch the latest Maven 3 video course offered by Packt publishing.  I wasn't sure what to expect since I have seen any of their other video courses.  I was pleasantly surprised by the depth of coverage and the well thought out organization of the course.

The course walks you through the ins and outs of using maven 3 which is great if you are a new user.  What's also great is that it shows you how to integrate development with maven into different IDE's like Eclipse and IntelliJ. 

If you've never used maven or you haven't spent much time using it inside an IDE this course is a great tool to get you started.  There's a lot of good tips in there even for those who already use maven as well.
Categories: FLOSS Project Planets

Shane Curcuru: The Ol’Wizard needs your wit and wisdom

Thu, 2014-03-06 10:18

My father – the self-styled Ol’Wizard – passed away over a year ago, and there’s been a lot of paperwork clearing up the estate. He also chose to bequest some funds for a few local charities in his estate plan, which I’m working on disbursing now. He wanted to both be remembered, and to help out both people and animals: in the first case, journalism students and Coast Guard sailors; in the second case, cats at a pair of local animal shelters.

Here’s where I need your help. In each case, the gift is at a level where I am offered a small sign or plaque to commemorate his gift. I need your help, dear readers, to come up with some witty sayings or words of wisdom from the Ol’Wiz to pass on his message from the beyond.

The first assignment is a set of short messages for the Northeast Animal Shelter, where dad’s donation covers the cost of several sets of cat and kitten cages in this great no-kill shelter. I’ve already arranged to sponsor two sets of cages: for the cats, three cages in a row on the top shelf, and then two cages in a row immediately below them. Similarly, there are four kitten cages grouped together.

As my father was fond of witty sayings, I was hoping to come up with a pair of short “stories” or Burma Shave-like quotes that would fit on these small plaques in order. Since the cages sponsored are right next to each other, I think this would also be memorable for people looking for just the right shelter cat (or kitten) to bring home.

Each of these plaques is a small plastic sign, hung at the top of the cage. Most of the other cages that are claimed have text like “In memoriam, with much love from our dear father John Doe” or the like. It seems like we could have either two lines of reasonable sized text (somewhat short), or three lines of somewhat smaller font on each plaque.

What say you, friends of the Wizard passed? Any good turns of phrase, or anything you can imagine Ol’Wiz exhorting some humans come to do the good deed of adding a shelter cat to their home?

Similarly, we have also sponsored a bench (to be placed outdoors, probably by the intake area for people dropping off animals) with a very slightly larger plaque, either three or possibly four lines of text depending on how the shelter prints the signs. Any ideas for an outdoor sign?

Categories: FLOSS Project Planets

Bryan Pendleton: Satoshi is ...

Thu, 2014-03-06 09:51

... Satoshi?

At least, that's what Newsweek claims: The Face Behind Bitcoin

Of course, there is also the chance "Satoshi Nakamoto" is a pseudonym, but that raises the question why someone who wishes to remain anonymous would choose such a distinctive name. It was only while scouring a database that contained the registration cards of naturalized U.S. citizens that a Satoshi Nakamoto turned up whose profile and background offered a potential match. But it was not until after ordering his records from the National Archives and conducting many more interviews that a cohesive picture began to take shape.

Temple City, eh? I remember my mom used to take me to the skateboard park by the Whittier Narrows dam, which is only a mile from Temple City.

Newsweek even runs a picture.

Let the madness begin.

Categories: FLOSS Project Planets

Jay D. McHugh: I am a happy boy...

Wed, 2014-03-05 21:01
Finally!!!!

I got all of the pieces worked out on my app running on Apache TomEE.

Before you invest too much time reading - this is really dry reading. But, if you are planning on connecting to a MySQL database from an app running on TomEE it might help you get it working.

You're still here! Well...

It took a bit longer than I had expected it to (of course I didn't get to work on it full time). But it works!

I've got my JSP sending data to my servlet using AJAX. The servlet is properly parsing the XML and uses JPA to access my MySQL database.

Perhaps strangely enough, the biggest headache that I ran into was getting the data source properly configured.

Here is what it took...

In the WEB-INF directory is my resources.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<resources>
<Resource id="pInit" type="DataSource">
ignoreDefaultValues true
JdbcDriver com.mysql.jdbc.Driver
JdbcUrl jdbc:mysql://ksdb:3306/projectInit
UserName username
Password password
defaultAutoCommit true
jtaManaged true
</Resource>
</resources>


In the META-INF directory is the persistence.xml file:
<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"> <persistence-unit transaction-type="JTA" name="pilCommon"> <jta-data-source>pInit</jta-data-source> <class>com.pubint.projInit.entity.Project</class> <properties> <property name="openjpa.jdbc.DBDictionary" value="mysql" /> <property name="openjpa.AutoDetach" value="close" /> <property name="openjpa.DetachState" value="fetch-groups(AccessUnloaded=true)" /> <property name="openjpa.Multithreaded" value="true" /> <property name="openjpa.TransactionMode" value="managed" /> <property name="openjpa.NontransactionalRead" value="true" /> <property name="openjpa.RestoreState" value="all" /> <property name="openjpa.jdbc.SynchronizeMappings" value="false" /> <property name="openjpa.InverseManager" value="true" /> </properties> </persistence-unit> </persistence>
I might have gone overboard on the properties that I set in the persistence file but the minimal version that I modeled after from the TomEE site did not work. TomEE kept trying to use HSQL to connect to the database rather than MySQL (which is what it really should have been).
But that is okay - it works and I can finally move on to building the real pages and implementing the needed functionality.
Whew...
Categories: FLOSS Project Planets

Justin Mason: Links for 2014-03-05

Wed, 2014-03-05 18:58
  • A cautionary tale about building large-scale polyglot systems

    ‘a fucking nightmare’:

    Cascading requires a compilation step, yet since you’re writing Ruby code, you get get none of the benefits of static type checking. It was standard to discover a type issue only after kicking off a job on, oh, 10 EC2 machines, only to have it fail because of a type mismatch. And user code embedded in strings would regularly fail to compile – which you again wouldn’t discover until after your job was running. Each of these were bad individually, together, they were a fucking nightmare. The interaction between the code in strings and the type system was the worst of all possible worlds. No type checking, yet incredibly brittle, finicky and incomprehensible type errors at run time. I will never forget when one of my friends at Etsy was learning Cascading.JRuby and he couldn’t get a type cast to work. I happened to know what would work: a triple cast. You had to cast the value to the type you wanted, not once, not twice, but THREE times.

    (tags: etsy scalding cascading adtuitive war-stories languages polyglot ruby java strong-typing jruby types hadoop)

  • It’s So Easy

    Attempting to cash out of Bitcoins turns out to be absurdly difficult:

    Trying to sell the coins in person, and basically saying he ether wants Cash, or a Cashiers check (since it can be handed over right then and there), has apparently been a hilarious clusterfuck. Today he met some guy infront of his bank, and apparently as soon as he mentioned that he needs to get the cash checked to make sure it is not counterfeit, the guy freaked out and basically walked away. Stuff like this has been happening all week, and he apparently so far has only sold a single coin of several hundred.

    (tags: bitcoin fail funny mtgox fraud cash fiat-currency via:rsynnott buttcoin)

  • Florida cops used IMSI catchers over 200 times without a warrant

    Harris is the leading maker of [IMSI catchers aka "stingrays"] in the U.S., and the ACLU has long suspected that the company has been loaning the devices to police departments throughout the state for product testing and promotional purposes. As the court document notes in the 2008 case, “the Tallahassee Police Department is not the owner of the equipment.” The ACLU now suspects these police departments may have all signed non-disclosure agreements with the vendor and used the agreement to avoid disclosing their use of the equipment to courts. “The police seem to have interpreted the agreement to bar them even from revealing their use of Stingrays to judges, who we usually rely on to provide oversight of police investigations,” the ACLU writes.

    (tags: aclu police stingrays imsi-catchers privacy cellphones mobile-phones security wired)

Categories: FLOSS Project Planets