Skip to content

Instantly share code, notes, and snippets.

View drewcrawford's full-sized avatar

Drew Crawford drewcrawford

View GitHub Profile
AppDelegate *app = (AppDelegate *)[[UIApplication sharedApplication]delegate];
NSMutableArray *dataarray = [app search];
if([dataarray count]==0)
{
[uncheckedbtn1 setImage:[UIImage imageNamed:@"unselect.png"] forState:UIControlStateNormal];
[uncheckedbtn2 setImage:[UIImage imageNamed:@"unselect.png"] forState:UIControlStateNormal];
[uncheckedbtn3 setImage:[UIImage imageNamed:@"unselect.png"] forState:UIControlStateNormal];
[uncheckedbtn4 setImage:[UIImage imageNamed:@"unselect.png"] forState:UIControlStateNormal];
[uncheckedbtn5 setImage:[UIImage imageNamed:@"unselect.png"] forState:UIControlStateNormal];
[uncheckedbtn6 setImage:[UIImage imageNamed:@"unselect.png"] forState:UIControlStateNormal];
Below is a list of the hacks in this diff:
1. The IE PNG hack causes errors in Safari, so I've hacked it to only be enabled on IE. In my case, this was causing FF and Safari users not to be tracked in Google Analytics since my tracking code was below the IE PNG hack. Fixed.
2. There is a script tag in header.php, I have no idea what it does, seems to be named something to do with the slider, but nothing to do with the slider involves header.php, so that makes no sense. It was causing an error in Safari so I removed it.
2. Support for pages on the homepage slider was introduced in 1.3. However, the properties that 1.3 checks for to decide if something goes on the slider are prefixed with "billboard_". In my case, the WP Page Editor had dropdowns for properties prefixed with "GB_". The diff includes hacks to drop support for the billboard_ prefix and add support for the GB_ prefix.
3. Billboard Pages, Products and Services are now sorted by menu order (not date) which, IMHO, is the right way to do
10:09:16 AM CST :  Please let our Representative know if you have contacted us by email regarding this same issue or question so that we may remove the duplicate request from our systems. Thank you!
 10:09:26 AM CST :  You are number (2) in queue.
 10:09:46 AM CST :  A Customer Service Representative will be with you as soon as one becomes available.
 10:10:17 AM CST :  Thank you for your patience.
 10:11:37 AM CST :  You are next in queue...
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 8 20:32:45 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Attaching to process 4008.
2012-01-19 18:07:01.027 CLSpike[4008:13c03] starting performLaunchSetup
2012-01-19 18:07:01.026 CLSpike[4008:13703] starting performLaunchLogging
[info] 18:07:01 Application Launched! WPK_timestamp=2012-01-20 00:07:01 +0000 CLSAppDelegate.m:54
Sampling process 14623 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling terminal-notifier (pid 14623) every 1 millisecond
Process: terminal-notifier [14623]
Path: /Users/drew/Dropbox/Code/ConstructPM/develop-environment/terminal-notifier.app/Contents/MacOS/terminal-notifier
Load Address: 0x105e71000
Identifier: nl.superalloy.oss.terminal-notifier
Version: 1.4.207 (4e43c0)
Code Type: X86-64 (Native)
Parent Process: bash [12933]
Binary files /Users/drew/Desktop/zmq_doesnt_work/__init__.pyc and /Users/drew/Desktop/zmq_that_works/__init__.pyc differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/__init__.pyc and /Users/drew/Desktop/zmq_that_works/core/__init__.pyc differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/_poll.so and /Users/drew/Desktop/zmq_that_works/core/_poll.so differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/_version.so and /Users/drew/Desktop/zmq_that_works/core/_version.so differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/constants.so and /Users/drew/Desktop/zmq_that_works/core/constants.so differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/context.so and /Users/drew/Desktop/zmq_that_works/core/context.so differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/device.so and /Users/drew/Desktop/zmq_that_works/core/device.so differ
Binary files /Users/drew/Desktop/zmq_doesnt_work/core/error.so and /Users/drew/Desktop/zmq_that_works/core/error.so differ
Binary files /
./assembler/ARMAssembler.cpp:#if ENABLE(ASSEMBLER) && CPU(ARM_TRADITIONAL)
./assembler/ARMAssembler.cpp:#endif // ENABLE(ASSEMBLER) && CPU(ARM_TRADITIONAL)
./assembler/ARMv7Assembler.cpp:#if ENABLE(ASSEMBLER) && CPU(ARM_THUMB2)
./assembler/LinkBuffer.cpp:#if CPU(ARM_THUMB2)
./assembler/LinkBuffer.cpp:#elif CPU(ARM_TRADITIONAL)
./assembler/MacroAssemblerARM.cpp:#if ENABLE(ASSEMBLER) && CPU(ARM_TRADITIONAL)
./assembler/MacroAssemblerARM.cpp:#if CPU(ARMV5_OR_LOWER)
./assembler/MacroAssemblerARM.cpp:#endif // ENABLE(ASSEMBLER) && CPU(ARM_TRADITIONAL)
./assembler/MacroAssemblerSH4.cpp:#if ENABLE(ASSEMBLER) && CPU(SH4)
./dfg/DFGAssemblyHelpers.cpp:#if CPU(X86_64)
@drewcrawford
drewcrawford / gist:6754526
Created September 29, 2013 17:23
Riddle of the day:
Riddle of the day:
* There are more than 10 different kinds
* They can be put together to make useful combinations
* Some are more common than others
~/Downloads/sonar-runner-2.3/bin/sonar-runner -X
SonarQube Runner 2.3
Java 1.6.0_65 Apple Inc. (64-bit)
Mac OS X 10.9.1 x86_64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: /Users/drew/Downloads/sonar-runner-2.3/conf/sonar-runner.properties
INFO: Project configuration file: /Users/drew/Dropbox/Code/caffeine-ios/sonar-project.properties
INFO: Default locale: "en_US", source code encoding: "UTF-8"
INFO: Work directory: /Users/drew/Dropbox/Code/caffeine-ios/.sonar
INFO: SonarQube Server 4.1.1
./bootstrap.sh
Installing dependencies...
[!] Invalid `Podfile` file: Could not find cocoapods (= 0.26.2) amongst [activesupport-3.2.17, addressable-2.3.3, aws-s3-0.6.3, bigdecimal-1.1.0, builder-3.2.0, bundler-1.3.0, chronic-0.10.2, claide-0.4.0, cocoapods-0.29.0, cocoapods-core-0.29.0, cocoapods-downloader-0.3.0, cocoapods-try-release-fix-0.1.1, colored-1.2, crack-0.3.2, domain_name-0.5.12, escape-0.0.4, faraday-0.8.8, faraday_middleware-0.8.8, fuzzy_match-2.0.4, highline-1.6.19, highline-1.6.15, hpricot-0.8.6, http-cookie-1.0.1, i18n-0.6.9, io-console-0.3, json-1.8.0, json-1.5.5, json_pure-1.8.1, mechanize-2.7.1, mime-types-1.21, minitest-2.5.1, multi_json-1.8.4, multipart-post-1.2.0, mustache-0.99.4, nap-0.6.0, net-http-digest_auth-1.3, net-http-persistent-2.8, net-sftp-2.1.1, net-ssh-2.6.5, nokogiri-1.5.6, ntlm-http-0.1.1, open4-1.3.1, papertrail-0.9.7, rake-10.0.3, rake-0.9.2.2, rdiscount-2.1.6, rdoc-3.9.5, rest-client-1.6.7, ronn-0.7.3, rturk-2.10.1, rubygems-bundler-1.1.1, rvm-1.11.3.6, typingpool-0