FROM SENDER:
Hi,
Sorry to disturb you,
I have some (big) problems to compile MTLocation framework and i would like to know if you have a workable example to share with me.
I saw your comment on github...
<?php | |
// USAGE: | |
// php script.php -t "title" -b "bundleID" -p "platform" -r "release type" | |
$new_url = "https://rink.hockeyapp.net/api/2/apps/new"; | |
function getMyBundleID() | |
{ | |
// framework folder, there shouldn't be more than one | |
foreach (glob("*.framework") as $framework) {} |
#!/bin/bash | |
# | |
# (Above line comes out when placing in Xcode scheme) | |
# | |
# Inspired by original script by incanus: | |
# https://gist.github.com/1186990 | |
# | |
# Rewritten by martijnthe: | |
# https://gist.github.com/1379127 | |
# |
FROM SENDER:
Hi,
Sorry to disturb you,
I have some (big) problems to compile MTLocation framework and i would like to know if you have a workable example to share with me.
I saw your comment on github...
#!/usr/bin/env ruby | |
ioreg = `ioreg -w 0 -rc IOUSBDevice -k SupportsIPhoneOS` | |
device_uuid = ioreg[/"USB Serial Number" = "([0-9a-z]+)"/] && $1 | |
if device_uuid | |
puts device_uuid | |
else | |
puts "No device detected." | |
exit 1 |
Running echo "*.m diff=objc" >> .gitattributes
in a git repo tells git to use the obj-c diff algorithm when running git diff
. For the most part, this isn't much different from the standard diff algorithm. However, it adds one key benefit.
In a unified git diff, added lines are prefixed with a +
, and removed lines are prefixed with a -
. Unchanged lines are provided for context, and have no prefix. As added context, though, unified diffs have a @@
-prefixed line at the beginning of each hunk. Minimally, the @@
lines specify which lines in the file are being changed. It can also contain a label, if git can determine an appropriate label for that section of code.
By default, the label on a hunk context line is the name of the enclosing C function. That works great for C-ish code, but completely misses Obj-C method signatures. As a result, when diffing Obj-C files, the context label is either empty, or falls back to the last C-ish declaration it could find. This is usually entirely useless.
Adding
#import <UIKit/UIKit.h> | |
@interface UIDevice (HostUUID) | |
- (NSString *) xcd_uniqueIdentifier; | |
@end |
ubuntu@domU-12-31-39-0C-49-FB:~$ ab -n 8000 -c 250 -k http://localhost:8001/middleware | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 800 requests | |
Completed 1600 requests | |
Completed 2400 requests | |
Completed 3200 requests |
// | |
// Created by Cédric Luthi on 2011-05-03 | |
// Copyright 2011-2012 Cédric Luthi. All rights reserved. | |
// | |
#import <AppKit/AppKit.h> | |
@interface NSRunningApplication (DockIcon) | |
- (BOOL) setDockIconHidden_xcd:(BOOL)dockIconHidden; |
// stringByAddingPercentEscapesUsingEncoding is pretty conservative about escaping characters, which is fine most of the time. This method however escapes *all special characters*, allowing any arbitrary string to be used when building any part of a URL. | |
// (c) 2011 Springs & Struts. Released under MIT-style license. See: http://www.opensource.org/licenses/mit-license.php | |
@interface NSString (SSURLEscaping) | |
- (NSString *)ss_stringByEscapingAllURLCharactersForRealWithEncoding:(NSStringEncoding)encoding; | |
@end | |
@implementation NSString (SSURLEscaping) | |
- (NSString *)ss_stringByEscapingAllURLCharactersForRealWithEncoding:(NSStringEncoding)encoding |