Entries Tagged 'Tips & Tricks' ↓

Android: The Mysterious NullPointerException

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) [...]

Tags: , ,

Testing Web.config Transformations, Part 1

Mads Troest

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: , , , , , ,

WinRM w/ self-signed certificate in 4 steps

Henrik Feldt

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:

Web.config Transformations and XML Namespaces

Mads Troest

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: , , , , , , , ,

WP7 app update and NeutralResourcesLanguage

Andreas Hammar

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: , , , ,

WP7 Marketplace Beta – new app downloadable delay

Andreas Hammar

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: , , , ,

Azure Blob Storage – a simple example

Peter von Lochow

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 [...]

Tags: ,

Getting started with Android NDK

Per-Erik Bergman

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: , , ,

Fixing WP7 app not starting after project rename

Andreas Hammar

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: , , , , ,

Open links from Text-elements in QtQuick

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:

Simple Parsing of Complex JSON and XML Documents in Java

Johan Haleby

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 [...]

Tags: , ,

Finding unread mail in Gmail in your browser

Tobias Södergren

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: , , ,

Backing up a boot camp partition

Anders Poulsen

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: , , ,

Using s3cmd to Backup your WordPress Installation

Henrik Bernström

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: , , , , , , , , ,

IntelliJ IDEA performance improvement

Mattias Severson

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: , , , ,