Skip to content

Instantly share code, notes, and snippets.

@clifff
clifff / gist:4066952
Created November 13, 2012 16:55
HTC Thunderbolt ADB Log 2/3
I/PhoneInfo(12047): getLteLevel - lteRsrp: -1 lteCqi:-1
D/dalvikvm(14225): GC_CONCURRENT freed 3368K, 50% free 5921K/11655K, external 211K/532K, paused 2ms+3ms
D/dalvikvm(14225): GC_CONCURRENT freed 2250K, 60% free 4725K/11655K, external 211K/532K, paused 2ms+5ms
D/dalvikvm(14225): GC_CONCURRENT freed 661K, 60% free 4669K/11655K, external 211K/532K, paused 3ms+3ms
D/dalvikvm(14225): GC_CONCURRENT freed 599K, 61% free 4645K/11655K, external 211K/532K, paused 2ms+2ms
D/dalvikvm(14225): GC_CONCURRENT freed 551K, 60% free 4681K/11655K, external 211K/532K, paused 3ms+3ms
D/dalvikvm(14225): GC_EXPLICIT freed 210K, 61% free 4612K/11655K, external 211K/532K, paused 35ms
D/dalvikvm(14225): GC_EXTERNAL_ALLOC freed 27K, 61% free 4584K/11655K, external 211K/532K, paused 38ms
D/skia (14225): createPlugin (300,150) screen proportion:(w,h)=(0.813008,0.039288), content ratio:2.000000 mainUrl:http://athleticsnation.local:3000/
D/skia (14225): createPlugin F10 typical2 video content (300,150)/(369,3818), url=
@clifff
clifff / gist:4066937
Created November 13, 2012 16:51
Droid Bionic ADB Logs
11-12 14:31:14.553 497 797 I ActivityManager: Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.bruinsnation.com/2012/11/11/3631264/veterans-day-thank-you-to-all-who-serve cmp=com.android.browser/.BrowserActivity } from pid 2679
11-12 14:31:15.358 2679 2679 I browser : Console: Error: Too much time spent in unload handler. http://static.getclicky.com/js:1
11-12 14:31:15.413 2679 2681 D dalvikvm: GC_CONCURRENT freed 2084K, 47% free 5214K/9671K, external 3354K/3630K, paused 5ms+3ms
11-12 14:31:16.710 2679 2701 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.insert()
11-12 14:31:17.936 2679 2679 I browser : Console: Starting to load [CreativeUnit banner (1)] http://www.bruinsnation.com/2012/11/11/3631264/veterans-day-thank-you-to-all-who-serve:518
11-12 14:31:17.936 2679 2679 I browser : Console: Phase 'generic' started. http://www.bruinsnation.com/2012/11/11/3631264/veterans-day-thank-you-to-all-who-serve:526
11-12 14:31:17.936 2679 267
@clifff
clifff / gist:4066928
Created November 13, 2012 16:50
Droid Bionic ADB Log 2/2
11-12 14:37:36.949 497 746 I ActivityManager: Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.sbnation.com/ cmp=com.android.browser/.BrowserActivity } from pid 3169
11-12 14:37:37.340 3169 3191 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.update()
11-12 14:37:37.340 3169 3192 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.update()
11-12 14:37:37.347 3169 3179 V SQLiteDatabaseWrapper: enter SQLiteDatabaseWrapper.update()
11-12 14:37:39.472 3169 3171 D dalvikvm: GC_CONCURRENT freed 1229K, 46% free 4017K/7431K, external 3354K/3560K, paused 3ms+11ms
11-12 14:37:39.926 3169 3181 D dalvikvm: GC_FOR_MALLOC freed 653K, 45% free 4235K/7623K, external 3249K/3560K, paused 23ms
11-12 14:37:41.597 852 852 I wpa_supplicant: CTRL-EVENT-STATE-CHANGE id=1 state=4 BSSID=00:00:00:00:00:00
11-12 14:37:41.597 497 924 V WifiMonitor: Event [CTRL-EVENT-STATE-CHANGE id=1 state=4 BSSID=00:00:00:00:00:00]
11-12 14:37:41.597 497 577 V WifiSt
@clifff
clifff / gist:4066861
Created November 13, 2012 16:42
HTC Thunderbolt ADB Log 1/3
D/dalvikvm(14127): GC_CONCURRENT freed 1056K, 58% free 5146K/11975K, external 1168K/1313K, paused 3ms+6ms
D/skia (14127): purging 193K from font cache [28 entries]
D/skia (14127): createPlugin (300,150) screen proportion:(w,h)=(0.791557,0.057826), content ratio:2.000000 mainUrl:http://athleticsnation.local:3000/2012/10/23/3543068/simple-question-giants-or-tigers
D/skia (14127): createPlugin F10 typical2 video content (300,150)/(379,2594), url=
D/webcore (14127): [WebViewCore::handleMessage] handle msg=[4::120] over 1 sec. (1038.0
D/skia (14127): purging 193K from font cache [27 entries]
D/dalvikvm(14127): GC_CONCURRENT freed 1825K, 63% free 4497K/11975K, external 1168K/1313K, paused 3ms+6ms
D/webcore (14127): [WebViewCore::checkBlock] mHandleClass=3 mHandleMsgId=1 mHandleStartTime=385.0 hascode-0=1079596336
D/webcore (14127): [WebViewCore::checkBlock] == m_bIsPauseTimes=false, mLastHandleMsg=null --d1=1.352745715978E12 d2=948.0
W/ContentService( 1646): binderDied() at ObserverNode name allowed_geo
@clifff
clifff / gist:3406515
Created August 20, 2012 18:37
month plus ordinal date
def date_whatever(time,tz=false)
return "" if time.nil?
if time.kind_of? String
time = Time.parse(time)
end
tz = TzTime.zone unless tz
time = tz.utc_to_local(time.utc)
month = time.strftime("%B")
day = time.day.ordinalize
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
{
if git rev-parse --git-dir >/dev/null 2>&1
then
gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')
@clifff
clifff / live.json
Created June 14, 2012 06:12
Syllabus live.json example
{
"entries":[
{
"body":"<p>Tim Cook announces iOS 6</p>\n",
"id":1788,
"pinned":false,
"sequence":318000,
"timestamp":"2012-05-29T15:40:43Z",
"published_at":"2012-05-29 14:26:38 -0400"
},
@clifff
clifff / gist:2846239
Created May 31, 2012 20:58
git + colors in bash
c_cyan=`tput setaf 6`
c_red=`tput setaf 1`
c_green=`tput setaf 2`
c_sgr0=`tput sgr0`
parse_git_branch ()
{
if git rev-parse --git-dir >/dev/null 2>&1
then
gitver=$(git branch 2>/dev/null| sed -n '/^\*/s/^\* //p')
5.times do | j |
Story.create(:user => users[:author], :community => com,
:title => "This is test story ##{j}",
:body => test_body(j), :draft => false, :front_page => true)
end
@clifff
clifff / gist:986229
Created May 23, 2011 04:41
Google Code Jam Rakefile sample output
[master] clifff@~/Programming/code_jam/hangman: rake
(in /Users/clifff/Programming/code_jam/hangman)
Testing hangman.rb against works/sample.in...
Great success!
Testing hangman.rb against fails/B-small-attempt0.in...
Not a total failure!
Testing hangman.rb against fails/B-small-attempt4.in...
FAIL. Current program matched a known bad output!