Skip to content

Instantly share code, notes, and snippets.

View tbalthazar's full-sized avatar
👻
chasing ghosts

Thomas Balthazar tbalthazar

👻
chasing ghosts
View GitHub Profile
@tbalthazar
tbalthazar / his-logs
Created May 8, 2014 18:22
TextSecure bug (continued)
------- beginning of /dev/log/main
W/KeyCachingService(23985): Incrementing activity count...
D/AbsListView(23985): onDetachedFromWindow
W/KeyCachingService(23985): Decrementing activity count...
D/AbsListView(23985): onVisibilityChanged() is called, visibility : 0
D/AbsListView(23985): unregisterIRListener() is called
D/AbsListView(23985): onVisibilityChanged() is called, visibility : 0
D/AbsListView(23985): unregisterIRListener() is called
W/RecipientProvider(23985): Cache miss [ASYNC]!
W/RecipientProvider(23985): Cache miss [ASYNC]!
@tbalthazar
tbalthazar / his-logs
Last active August 29, 2015 14:01
TextSecure bug
--------- beginning of /dev/log/main
D/AbsListView(32231): unregisterIRListener() is called
D/AbsListView(32231): unregisterIRListener() is called
W/PhoneNumberFormatter(32231): Got local CC: BE
W/Session (32231): Checking session...
W/SessionRecordV1(32231): Checking: 67
W/KeyCachingService(32231): Incrementing activity count...
I/MmsCommunication(32231): Couldn't write APN settings, expected. msg: No permission to write APN settings: Neither user 10014 nor current process has android.permission.WRITE_APN_SETTINGS.
W/MmsSmsDatabase(32231): Executing query: SELECT _id, body, read, type, address, address_device_id, subject, thread_id, status, date_sent, date_received, m_type, msg_box, part_count, ct_l, tr_id, m_size, exp, st, transport_type FROM (SELECT DISTINCT date_sent * 1 AS date_sent, date * 1 AS date_received, _id, body, read, thread_id, type, address, address_device_id, subject, NULL AS m_type, NULL AS msg_box, status, NULL AS part_count, NULL AS ct_l, NULL AS tr_id, NULL AS m_size, NULL AS exp, NULL AS
@tbalthazar
tbalthazar / gist:1104441
Created July 25, 2011 15:53 — forked from omz/gist:1102091
Creating arbitrarily-colored icons from a black-with-alpha master image (iOS)
// Usage example:
// input image: http://f.cl.ly/items/3v0S3w2B3N0p3e0I082d/Image%202011.07.22%2011:29:25%20PM.png
//
// UIImage *buttonImage = [UIImage ipMaskedImageNamed:@"UIButtonBarAction.png" color:[UIColor redColor]];
// .h
@interface UIImage (IPImageUtils)
+ (UIImage *)ipMaskedImageNamed:(NSString *)name color:(UIColor *)color;
@end
#!/bin/bash
# -- change this to match your config
XCODE_BUILD_PATH="/Xcode4/usr/bin/xcodebuild"
# -- constants
BENCHMARK_PATH="$HOME/Desktop/BENCHMARK_THREE20"
REPOS_URL="https://github.com/facebook/three20.git"
COMMIT="6fecb7e39b7590173410d24086afb7aef8581f54"
PROJECT_PATH="three20/samples/TTCatalog"
def index
@last_modified_post = Post.find(:first, :order => "updated_at DESC")
expires_in 0, :public => true
if @last_modified_post.nil? || stale?( :etag => @last_modified_post,
:last_modified => @last_modified_post.updated_at.utc,
:public => true)
logger.error("--\n\n--LAST MODIFIED #{@last_modified_post.updated_at.utc}--\n\n--")
logger.error("--\n\n--INVALID CACHE at #{Time.now.utc}--\n\n--")
logger.error("--\n\n--STALE : #{stale?(:last_modified => @last_modified_post.updated_at.utc, :public => true)}--\n\n--")
def index
@last_modified_post = Post.find(:first, :order => "updated_at DESC")
response.headers['Cache-Control'] = "public, must-revalidate"
if @last_modified_post.nil? || stale?( :etag => @last_modified_post,
:last_modified => @last_modified_post.updated_at.utc,
:public => true)
@posts = Post.find(:all)
end
end
def index
@last_modified_post = Post.find(:first, :order => "updated_at DESC")
if @last_modified_post.nil? || stale?( :etag => @last_modified_post,
:last_modified => @last_modified_post.updated_at.utc,
:public => true)
@posts = Post.find(:all)
end
end
// A small variant of Jeff Lamarche code as seen here : http://iphonedevelopment.blogspot.com/2010/05/custom-alert-views.html
//
// CustomAlertView.m
// Custom Alert View
//
// Created by jeff on 5/17/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
/*
* AppController.j
* TestOutlineView
*
* Created by Thomas Balthazar on January 21, 2010.
* Copyright 2010, Suit My Mind SPRL All rights reserved.
*/
@import <Foundation/CPObject.j>
@import <AppKit/CPOutlineView.j>
tba@earthling ~/Documents/dev/code/cappuccino/280north-cappuccino[jake]$ rm -Rf $CAPP_BUILD
tba@earthling ~/Documents/dev/code/cappuccino/280north-cappuccino[jake]$ sudo ./bootstrap.sh
Password:
================================================================================
Found an existing Narwhal/Cappuccino installation, /usr/local/narwhal. Remove it automatically now?
WARNING: custom modifications and installed packages in this installation WILL BE DELETED.
Enter "yes" or "no":
yes
================================================================================
Narwhal JavaScript platform is required. Install it automatically now?