Category Archives: computer

Brendan’s blog » The USE Method: Mac OS X Performance Checklist

“Mac OS X Performance Checklist” is one of the best blog posts I have read in a long time. The posts describes how find bottlenecks if something is not working as it should be. Awesome read! via Brendan’s blog » … Continue reading

Posted in computer | Tagged , , , , , | Leave a comment

Fixing TruePreview for Apple Mail 6.6

If you started mail before these two commands make sure to copy the plugin from the Bundle (Disbaled) folder back to the Bundle folder. defaults write ~/Library/Mail/Bundles/TruePreview.mailbundle/Contents/Info SupportedPluginCompatibilityUUIDs -array-add DAFFB2B4-77BC-4C25-8CE1-2405E652D54B defaults write ~/Library/Mail/Bundles/TruePreview.mailbundle/Contents/Info SupportedPluginCompatibilityUUIDs -array-add 2B98D2DD-000B-4521-83EB-7BFCB9B161C8

Posted in computer | Tagged , , , | 7 Comments

Send broadcast messages to android

Faking a received SMS: adb shell am broadcast -a android.provider.Telephony.SMS_RECEIVED

Posted in computer | Tagged , , , | Leave a comment

common.h

So I got sick with NSLog and wrote myself a simple wrapper which you can find here. The Syntax is the same but the printout is why nicer to read, it looks like this: 2013-09-02 17:00:49.543 AppName[4841:a0b] (FilterAppDelegate.m:15 -[FilterAppDelegate application:didFinishLaunchingWithOptions:]) … Continue reading

Posted in computer | Tagged , , | Leave a comment

Automatically increment build number (CFBundleVersion)

David wrote this nice little helper that automatically increments the build version every time. #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c “Print CFBundleVersion” “$INFOPLIST_FILE”) buildNumber=$(echo $buildNumber | sed ‘s/0*//’) buildNumber=$(($buildNumber + 1)) buildNumber=$(printf “%04d” $buildNumber) /usr/libexec/PlistBuddy -c “Set :CFBundleVersion $buildNumber” “$INFOPLIST_FILE” In Xcode just … Continue reading

Posted in computer | Tagged , , , , , , , | Leave a comment

Android

I just had enough, I need a valve to get it out so here it comes: Android 4.3 during setup: “To improve [..] scan for nearby Wi-Fi networks, even when Wi-Fi is off” The documentation to “dab log cat” is … Continue reading

Posted in computer | Tagged , , , , , , | Leave a comment

cURL and error codes

So brew threw this to me this morning: curl: (56) SSL read: error:00000000:lib(0):func(0):reason(0), errno 54 This error code clearly states #define X509_V_ERR_CRL_PATH_VALIDATION_ERROR 54 Which is actually not interesting but error code #50 is though: /* The application is not happy … Continue reading

Posted in computer | Tagged , , , , , , , , | Leave a comment

ActivityManager | isUserAMonkey()

public static boolean isUserAMonkey Added in API level 8 Returns “true” if the user interface is currently being messed with by a monkey. Update: There are more: public void fyiWillBeAdvancedByHostKThx () Added in API level 11 Called by an AppWidgetHost … Continue reading

Posted in computer | Tagged , , , | Leave a comment

Improving the security of your SSH private key files — Martin Kleppmann’s blog

Read this great article: Improving the security of your SSH private key files — Martin Kleppmann’s blog. For my own convenience I just put all the important commands together but won’t explain anything. Again: Go and read the article. Reading … Continue reading

Posted in computer | Tagged , , , , | Leave a comment

Fixing TruePreview for Apple Mail 6.5

If you started Mail and it tells you that your plugin got disabled you have to move the plugin first from the disblaed folder back to the “normal” folder: mv ~/Library/Mail/Bundles\ \(Disabled\)/TruePreview.mailbundle ~/Library/Mail/Bundles/ after this you need to figure out … Continue reading

Posted in computer | Tagged , , , , | Leave a comment