As configured in my dotfiles.
start new:
tmux
start new with session name:
#include <bitset> | |
#include <string> | |
#include <iostream> | |
#include <sstream> | |
using namespace std; | |
int main(int argc, char **argv) | |
{ | |
if(int(argc) > 1) |
#define logC NSLog(@"%@", NSStringFromSelector(_cmd)); | |
#define logP NSLog(@"%s", __PRETTY_FUNCTION__); | |
//example to use | |
- (void)applicationDidFinishLaunching:(UIApplication *)application | |
{ | |
logC; | |
logP; | |
} |
Here's how I did it. | |
Shut down Xcode. | |
Back up the project.pbxproj file. | |
Edit the project.pbxproj file and remove lines of instances where it mentions the old provisioning profile. | |
eg. Delete line: | |
PROVISIONING_PROFILE = "8D024EDA-DC05-40DF-B3EB-536392615EE2"; | |
Restart Xcode and perform a full clean of the project. | |
It should then build without warnings. | |
Enjoy! |
find . -name '*.xib' -exec echo {} \; -exec sed -E -i "" -e 's/>([a-zA-Z0-9_\@\.]+)(\.png)/>your_name_bundle\.bundle\/\1\2/' {} \; |
// | |
// Copyright (c) 2012-2013 Cédric Luthi / @0xced. All rights reserved. | |
// | |
#if TARGET_IPHONE_SIMULATOR | |
static const char *fakeCarrier; | |
#import <objc/runtime.h> |
NSBundle *bundle = [NSBundle mainBundle]; | |
NSDictionary *info = [bundle infoDictionary]; | |
if ([info objectForKey: @"SignerIdentity"] != nil) | |
{ | |
/* do something do you want*/ | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# !/bin/bash | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), | |
# to deal in the Software without restriction, including without limitation | |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
# and/or sell copies of the Software, and to permit persons to whom the |
[root@server chromaprint]# yum install git ffmpeg ffmpeg-devel fftw taglib boost cmake | |
[root@server chromaprint]# git clone https://masbog@bitbucket.org/masbog/chromaprint.git && cd chromaprint | |
[root@server chromaprint]# cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 . | |
[root@server chromaprint]# make && install | |
test your chromaprint is work? | |
[root@server chromaprint]# fpcalc ../mp3/BrunoMars_Grenade.mp3 | |
FILE=../mp3/BrunoMars_Grenade.mp3 | |
DURATION=222 |
#!/usr/bin/python | |
import sys | |
import os | |
import pprint | |
import subprocess | |
import pickle | |
import atexit | |
import simplejson as json | |
sys.path.insert(0, "../API") |