Xamarin – Mac OS 10.10 Yosemite as a build host

September 15th, 2014

There is an annoying error when you try to pair the Visual Studio + Xamarin combo with Mac OS 10.10 Yosemite build host:

The PIN you entered was invalid. Please ensure you have entered the correct PIN

Even though you are entering correct PIN. To fix this, execute on Windows machine:

telnet [ip address of mac host] 5000

If you get an error similar to this:

system_profiler[18700:1303078] Error loading /System/Library/SystemProfiler/SPNVMeReporter.spreporter: Error Domain=NSCocoaErrorDomain Code=4 “The bundle “SPNVMeReporter.spreporter” couldn’t be loaded because its executable couldn’t be located.”

Go to /System/Library/SystemProfiler/ and most likely the SPNVMeReporter.spreporter bundle will have zero size. Delete it (or move it to a safe place) and try pairing again, it should work this time.

To: field ala iOS Mail

February 23rd, 2013

If you’d like to add something like this to your iOS app:

Make sure you check out my fork.

Please check my latest project, Shiftr, also!

Logging from iOS to logentries.com – II.

November 9th, 2012

In the last article we showed how to report iOS app crashes to the logentries.com service.

Today, we’re going to demonstrate how to symbolicate those crash reports.

Read the rest of this entry »

Logging from iOS to logentries.com

October 24th, 2012

Logentries.com is such a great service for your logs.
If you wish to report your iOS application crashes into your logentries.com account, read on!

Read the rest of this entry »

I like Shure :-)

May 10th, 2012

I’ve been really enjoying my Shure SE530 earphones, but one day they broke and I couldn’t hear any high tones on the left side anymore.

I was already way out of the warranty, but contacted the seller (sluchatka.net) anyway (what if…?)… As assumed, it wasn’t just a simple problem they could’ve fixed themselves so they sent them to authorized repair center (pmc.cz) to get the estimated cost of repair.

I haven’t heard back from them for few days and suddenly I got delivered package with brand new pair of Shure SE535 (newer model with better cable) for free!!!

Well played, Shure!

Western Digital HDD spin down problem in Mac OS 10.6

January 1st, 2011

I’ve bought brand new Western Digital Scorpio Blue 750 GB SATA HDD for my MacBook laptop (as my secondary hard drive). It’s currently the maximum capacity you can get for standard height (9 mm), the 1000 GB model is taller and wouldn’t fit into my OptiBay which I use instead of CD drive.

There is one annoying issue with this drive in Mac OS and that is its aggressive power management which spin downs the drive immediately after last application stops accessing it. Not only causes this clicking sound every few seconds and excessive wear (spin up/down cycle count is limited), but also performance is really crappy, as application accessing the drive after spin down has to wait for drive to spin up again.
Read the rest of this entry »

iOpravna & Apple rulez!

June 16th, 2010

After 1.5 years my Macbook battery capacity dropped suddenly (only after about 130 cycles). I’ve contacted iOpravna.cz to ask whether it would be possible to get the battery replaced under my 3 year NBD warranty and they’ve sent technician to test the battery (at my place).

Result is positive: I’ve got new battery (for free) that allows me to work 4 hours again!

Good job!

Java – print stack trace to a String

February 25th, 2010

Simple and quick one today - what if we need to print stack trace into a String?

JAVA:
  1. ...
  2. catch (Exception e) {
  3.     StringWriter sw = new StringWriter();
  4.     PrintWriter pw = new PrintWriter(sw);
  5.     e.printStackTrace(pw);
  6.     pw.flush();
  7.  
  8.     String stackTraceString = sw.toString();
  9.     //use the stackTraceString as you need...
  10. }
  11. ...

Instantiating Beehive JdbcControl manually

February 18th, 2010

Common usage pattern for Beehive Jdbc control is:

  • Create DB control class by extending JdbcControl
  • Declare DB control variable in page controller and use @Control annotation to have it automatically instantiated and injected
  • Use the DB control

The above works fine. But what happens if we would like to use our DB control class from within JSP page which is not part of our Beehive application and has no access to our controller?

The following text presents one possible approach.

Read the rest of this entry »

Malibu for iPhone/ iPod touch released!

February 5th, 2010

Malibu is a free drumming game for iPhone and/or iPod touch with talking pelican and awesome dancers and it was just released!

Download here.

More information can be found here.