The Problem One day it was just there. A mischievous NullPointerException causing, eh, mischief. It was fairly easy to provoke with my application but for some reason my code was not part of the stacktrace. 12-07 14:42:52.722 E/AndroidRuntime(18421): FATAL EXCEPTION: main 12-07 14:42:52.722 E/AndroidRuntime(18421): java.lang.NullPointerException 12-07 14:42:52.722 E/AndroidRuntime(18421): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1064) 12-07 14:42:52.722 E/AndroidRuntime(18421): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1081) [...]
Entries Tagged 'Tips & Tricks' ↓
Android: The Mysterious NullPointerException
December 15th, 2011 by Darius Katz — Android, Tips & Tricks
Tags: Android, mobile, programming
Testing Web.config Transformations, Part 1
December 8th, 2011 by Mads Troest — .Net, Testing, Tips & Tricks
Web.config transformations is a Microsoft-supported technology for adapting a base configuration to a particular deployment environment. In my previous post, I mentioned how AppHarbor provides an online tool for manually testing transformations. Also, the Visual Studio extension SlowCheetah provides support for manually testing and transformation and diffing them against the base configuration from inside Visual Studio. These [...]
Tags: automated testing, configuration, Deployment, transformation, web, Web.config, xml
WinRM w/ self-signed certificate in 4 steps
November 21st, 2011 by Henrik Feldt — .Net, Architecture, Cloud, Tips & Tricks
Targeted environment: Windows Server 2008 or Windows Server 2008 R2 You’ll be self-signing with makecert from the Windows 7.1 SDK. The certificate tool is a single executable, specifically at %PROGRAMFILES%\Microsoft SDKs\Windows\v7.1\Bin\makecert.exe, per default. You’ll need it – copy it to the server unless you already have the SDK installed on it. Secondly, you’ve got a [...]
Tags: devops
Web.config Transformations and XML Namespaces
November 14th, 2011 by Mads Troest — .Net, Tips & Tricks
In the project I’m currently working on, we use Web.config transformations to adapt a base configuration to a particular deployment environment. I was adding a transformation to adapt our NLog configuration for the various environments, when I ran into a problem. I’d added the following transformation, intended to set the log level to Warning on [...]
Tags: .Net, configuration, Deployment, namespace, NLog, transformation, web, Web.config, xml
WP7 app update and NeutralResourcesLanguage
November 10th, 2011 by Andreas Hammar — .Net, Tips & Tricks
The Windows Phone Marketplace was updated with new features in July 2011, one has to do with default language. The previous process to submit an app required you to define the default language when submitting the app, the new version checks the default language in the uploaded xap. The problem An app created before July [...]
Tags: .Net, marketplace, windows phone, windows phone 7, wp7dev
WP7 Marketplace Beta – new app downloadable delay
November 3rd, 2011 by Andreas Hammar — .Net, Tips & Tricks
Have you seen the new (since fall 2011) ways to publish a Windows Phone app to Marketplace? In addition to regular publishing, you can now publish as private beta or targeted. Neither will make the app discoverable in the Marketplace, Beta is time limited and does not include the full certification requirements. MSDN has a [...]
Tags: .Net, marketplace, windows phone, windows phone 7, wp7dev
Azure Blob Storage – a simple example
October 18th, 2011 by Peter von Lochow — .Net, Cloud, Tips & Tricks
This is for all of you that just want a simple, up to date, example/how-to/tutorial of how to use Azure Blob Storage. You won’t see any screen shots or a lengthy guide on how to get started from scratch. Instead I will just focus on writing some code examples for general stuff that you might [...]
Getting started with Android NDK
October 13th, 2011 by Per-Erik Bergman — Android, Embedded, Java, Tips & Tricks
You want to try out the Android NDK? I have gotten a lot of questions about how to setup and work with the NDK and I decided to write down how I do it. My goal with this entry is to gather all the information you need to get started with the Android NDK. I [...]
Tags: Java, ndk, programming, tutorial
Fixing WP7 app not starting after project rename
October 12th, 2011 by Andreas Hammar — .Net, Tips & Tricks
If your Windows Phone 7 project isn’t starting at all – you’re not even hitting App.xaml.cs, you’ve probably renamed the app project. Fix: Set the startup object on the app project’s properties page In the .csproj file, this corresponds to the SilverlightAppEntry element: <SilverlightAppEntry>PhotoDiary.App</SilverlightAppEntry> I would call it a bug, that you cannot rename a [...]
Tags: .Net, tips, tricks, windows phone, windows phone 7, wp7dev
Open links from Text-elements in QtQuick
October 12th, 2011 by Mario Boikov — Embedded, Tips & Tricks
From day one, QtQuick’s Text-element sports opening URL:s in an external application, typically a web page. It’s very easy to use this feature and probably most of you have already been close to or have used it. The only thing that is required is that you set the Text.textFormat property to Text.RichText. Default, textFormat is [...]
Tags: Qt
Simple Parsing of Complex JSON and XML Documents in Java
October 9th, 2011 by Johan Haleby — Java, Testing, Tips & Tricks
In this blog I’m going to demonstrate how to parse and validate more complex JSON and XML documents in Java using the REST Assured framework and the XmlPath and JsonPath components available in this framework. Since REST Assured is implemented in Groovy it can be really beneficial to take advantage of Groovy’s collection API. Let’s [...]
Finding unread mail in Gmail in your browser
October 8th, 2011 by Tobias Södergren — Tips & Tricks
Usually when I have a lot of emails in my inbox, I tend to skim most of them and then mark interesting mails as being unread so that I can read them later on. Sometimes that later on is getting pushed further and further away in the future and suddenly there’s a bunch of unread [...]
Tags: filter, filtering, gmail, unread
Backing up a boot camp partition
October 6th, 2011 by Anders Poulsen — Tips & Tricks
As a .Net developer using a MacBook Pro as my development machine, I plan on using Windows 7 installed on a Boot Camp partition. That way I can either boot into Windows directly for maximum performance or use VMWare Fusion to get the best of both platforms. After a few initial days of work, I’ve [...]
Tags: .Net, apple, backup, Boot Camp
Using s3cmd to Backup your WordPress Installation
October 2nd, 2011 by Henrik Bernström — Cloud, Tips & Tricks
This article will explain, in a few short steps, how to backup your WordPress installation to Amazon S3 service. It will deal with Ubuntu as operating system and Amazon EC2 for hosting but is not limited to such an environment. Prerequisits are an Amazon account for the S3 service, a WordPress installation and knowledge of [...]
Tags: amazon, backupwordpress, cron, crontab, ec2, s3, s3cmd, shell scripting, ubuntu, wordpress
IntelliJ IDEA performance improvement
September 26th, 2011 by Mattias Severson — Java, Tips & Tricks
Working as a consultant, it is not unusual that I am referred to customer specific software environment with regard to computers, operating systems, networks and other configurations. However, since I work with Java, most tools are available online and they can easily be downloaded and installed on different platforms. IntelliJ IDEA is no exception, but [...]
Tags: home directory, idea, intellij, performance, tools
