decibel measuring iPhone apps

Main menu:

Topics

Recent Posts

Blog

July 2015
M T W T F S S
« Jun    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Past Posts

Java/Java EE

JDBC

Other

decibel measuring iPhone apps

July 1st, 2015 by Jeanne Boyarsky

I was curious how loud my apartment is. I live on a busy street. I waited until there was little to no traffic noise to do the test. I tried two iPhone apps.

 

Category Expected result The free Decibel Meter app The 99 cent DbVolume Meter
Inside my apartment 35-45 55-60 44-46
On my terrace (mild honking) 50-60 75-80 50-60
My normal speaking voice back inside 50-60 75-85 50-55
My voice when projecting back inside (like giving a speech or on the phone) 60-70 90-100 57-60

Guess the free one is free for a reason. It’s highly inaccurate! All in all, an interesting experiment.

eclipse mars (4.5) for the mac

June 27th, 2015 by Jeanne Boyarsky

First of all, happy birthday. This is Eclipse’s tenth annual release train.

When I went to eclipse.org, I saw a nice picture of Mars. I have a choice of downloads including Java EE, Java and Spring Tool Suite. The matrix comparing the packages is still clear. I chose the Java EE version. The download page had a warning that “Eclipse requires Mac OS X 10.5 (Leopard) or greater.” No problem. I’m on the latest version. I’m also on the latest version of Java 8.

marsThe “tar” file (native app)

The first thing to notice is that Eclipse provides a tar file. Ok so that’s not new. What is new is that the tar file cannot be opened by the tar command because it contains absolute path names. And that Eclipse is now a native Mac app. This took me by surprise because I installed before looking at the docs.

More memory

Eclipse Mars uses more memory by default. Make sure you have enough before launching. I don’t expect to have problems with this.

To improve the “out of the box” user experience on today’s modern hardware, the default maximum heap size (-Xmx VM argument) has been increased from 512M to 1024M. And the initial heap size (-Xms) has been increased from 40M to 256M.

Initial launch

When launching my workspace, I got the warning:

Warning: Workspace ‘/myWorkspace’ was written with an older version of the product and will be updated. Updating the workspace can make it incompatible with older versions of the product. Are you sure you want to continue with this workspace.

Which is fine. I’m not going backward. And all the important code is in Subversion or Git anyway.

Installing the plugins

Like last year, I decided to install the plugins I need for Eclipse Marketplace so I can shed the plugins I tried out and don’t actually want. Cleaning plugin house once a year is nice.

The significant plugins I use are listed in this table. A number of plugins were beta for Luna or I had to use the Kepler version. I don’t remember that problem in previous years.

Last year, I tried out the Code Recommenders plugin. I didn’t install it this year as I hardly used it. I added Contrast and Bytecode Analyzer as plugins I installed in the past 12 months that I like. I also added ADT and tried out Optimizer for Eclipse by Zero Turn Around.

 

Plugin Purpose
Mongrel Tomcat integration supporting recent versions of Tomcat.
Ecl Emma Code coverage
PMD and FindBugs Static analysis. For PMD, I had to use the update site. An install “happened” through Eclipse Marketplace, but I didn’t any of the PMD settings I was expecting. Using the update site gave me what I expected
Subversive To access Subversion repositories
Groovy/Grails Tool Suite (didn’t install) Groovy project/editor and console. At this time only the Luna version is available. But more Groovy/Grails support is native to Mars so it probably isn’t needed anymore as a separate plugin.
Eclipse Memory Analyzer For finding memory leaks. Last year it was in Eclipse MarketPlace. The year before I needed to use the update site. This year we are back to using the update site.
Freemarker IDE Freemarker syntax highlighting and macro assistance.  Note that it is listed under the JBoss Tool Project. You pick that plugin and then unselect everything except “Freemarker IDE”. The JBoss Tool plugin was in beta on Mars release day. I installed this beta.
Python Python plugin/perspective
Contrast In the past 12 months, I installed the Contrast plugin for security. I like this one so re-installed it. See my impressions of the Contrast plugin.
Bytecode Outline I’ve been looking at bytecode a good fit for the book to make sure I understand why things are happening. This plugin makes it easy. I first tried Bytecode Visualizer but install failed. (The website says there were 25 failed installs with the same dependency problem in the last 7 days). After installing Bytecode Outline, I realized this was the one I had installed for Luna anyway.
Android Development Tools I have ADT as a separate install. It will be nice to be able to use my “main” Eclipse for that.
Optimizer for Eclipse This is like a freeware ad for JRebel. I tried it out and it told me a couple things of interest like the heap size. And offered to clear my indexes which had been collecting for over a year.

What excites me

  1. The JUnit view as a button to view only skipped tests. Awesome!
  2. The JUnit view now lets you re-run just one test in a parameterized test suite.
  3. The ability to close all tabs to the left or right of a current tab is cool.
  4. Search is faster on multi-core machines. I did notice a marginal improvement. I can’t tell if it was from this or from cleaning out my indexes.
  5. Quick assists between lambdas and method references
  6. When copying a file the new file is X2 instead of CopyOfX. Saves a few keystrokes per copy.

What I didn’t like

  1. I had troubles setting up Subversion connectivity, but did eventually get it to work.
  2. Since this install is on my home machine, I chose to enable error reporting. Eclipse asks me each time there is an error if I want to report it. I turned it off after reporting one error. It popped up to frequently and I have trouble imagining the dump has value to anyone. I was also annoyed they included my email in the HTML in the incident.
  3. I have a few launch configurations to run JUnit tests that I use regularly. When I ran each for the first itme, I got prompted for whether I wanted to use the Android JUnit or Java JUnit launchers. Not a big deal, but unexpected.
  4. I’m not thrilled about the native Mac application thing. The features/plugins directories are now in /Applications/Eclipse.app/Contents/Eclipse instead of a directory of my choosing. I’m also concerned about whether I’ll be able to have 4.4 and 4.5 on my machine concurrently in a year. Bear says you can have multiple versions installed.

Other interesting features

  1. Ctrl-Alt-B shortcut to skip all breakpoints. I don’t use breakpoints often so I don’t need a shortcut for this. It’s cool they created one though.
  2. There are said to be Maven updates including better autocomplete. I didn’t notice anything.
  3. Oomph for deploying Eclipse sounds like it has potential in a workspace environment
  4. A Java 9 experimental plugin It assumes have you have downloaded Java 9 which I haven’t already. I’m glad I won’t need to install a beta Eclipse when I’m ready to try out Java 9 though.

eclipse mars (4.5) and trouble connecting to subversion

June 25th, 2015 by Jeanne Boyarsky

Every year, I create a blog post about the latest version of Eclipse. While this post is about Eclipse Mars (4.5), it is not that post. This post is about my troubles connecting to Subversion using Eclipse. Which was unexpected as I’ve never had that problem before.

After installing Subversive, I restarted Eclipse. I then got prompted for installing a SVN Connector. I chose the first one (SVN Kit 1.7). I don’t know what happened; it didn’t work.

Unsuccessful attempts

I then went to the workspace preferences > team > svn and clicked add connectors to get the prompt again. I wanted to choose SVN Kit 1.8. Unfortunately I clicked Javahl by accident. Which of course didn’t work because it I don’t have SVN natively installed.

The error I got for Javahl was at least clear:

SVN: ‘0x00400104: Check HEAD Revision’ operation finished with error: Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Connector.
Get log messages for ‘https://svn.javaranch.com/svn’ failed.
Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Connector.

Selected SVN connector library is not available or cannot be loaded.
If you selected native JavaHL connector, please check if binaries are available or install and select pure Java Subversion connector from the plug-in connectors update site.
If connectors already installed then you can change the selected one at: Window->Preferences->Team->SVN->SVN Connector.

No problem. I’ll just go back there and click add connectors again. Nothing. Can’t get pop-up to show up. I unsuccessfully tried restarting. Then I decided to uninstall Subversive entirely and start over.

Uninstalling

I went to help > installation details > subversive and clicked all subversive one. I then uninstalled. This was unnecessary as the problem was a connector. I then did help > installation details > javahl and uninstalled. After re-starting Eclipse, I got the connectors pop-up back.

Third attempt?

The connectors pop-up came back. SVN Kit 1.7 failed again. I then tried SVN Kit 1.8 which gave me an error about there not being any connectors. I restarted yet again and was finally able to connect to SVN. I’m not sure why this worked. I suppose the lesson is to uninstall and keep rebooting until it works?