hit counter

Timeline

My development logbook

Building Erlang R16B02

Got this at the end of configure

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************

wx             : wxWidgets not found, wx will NOT be usable

*********************************************************************
*********************************************************************
**********************  DOCUMENTATION INFORMATION  ******************
*********************************************************************

documentation  : 
                 fop is missing.
                 Using fakefop to generate placeholder PDF files.

*********************************************************************

NSInvalidArgumentException When Using Count

Oops.

1
2
2013-12-03 22:01:10.281 Questions[50951:70b] -[NSNull count]: unrecognized selector sent to instance 0x101cb4b40
2013-12-03 22:01:10.311 Questions[50951:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull count]: unrecognized selector sent to instance 0x101cb4b40'

Solution:

Check if the target is indeed an array

1
2
3
4
if ([anObject isKindOfClass:[NSArray class]]) { // Add a check here
    NSInteger count = [anObject count];
    ...
}

Grab

The built-in screen capture app grab… Why it only allows saving in tiff format?

Severly reduce its usefulness

Easy_install Scipy Problem

No luck with scipy so far

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ easy_install scipy
Searching for scipy
Reading https://pypi.python.org/simple/scipy/
Best match: scipy 0.13.1
Downloading https://pypi.python.org/packages/source/s/scipy/scipy-0.13.1.zip#md5=485411032b02583b4eb63caec6f2a916
Processing scipy-0.13.1.zip
Writing /var/folders/hc/9mbf3qy10mz8wxjmd9314kl80000gn/T/easy_install-fmDJqI/scipy-0.13.1/setup.cfg
Running scipy-0.13.1/setup.py -q bdist_egg --dist-dir /var/folders/hc/9mbf3qy10mz8wxjmd9314kl80000gn/T/easy_install-fmDJqI/scipy-0.13.1/egg-dist-tmp-vWQr5z
Running from scipy source directory.
Splitting linalg.interpolative Fortran source files
/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy-1.8.0-py2.7-macosx-10.9-x86_64.egg/numpy/distutils/system_info.py:507: UserWarning: 
    UMFPACK sparse solver (http://www.cise.ufl.edu/research/sparse/umfpack/)
    not found. Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [umfpack]) or by setting
    the UMFPACK environment variable.
  warnings.warn(self.notfounderror.__doc__)
error: None

Pod Spec Lint

Wanted to make a custom podspec to fix the JSONKit compilation error, as mentioned here

Made a first cut and wanted to do a sanity check. At first it did not look good.

1
2
3
4
$ pod spec lint /Users/antkong/Documents/Cocoa/jsonkit/JSONKit/JSONKit.ak.spec
pod spec lint /Users/antkong/Documents/Cocoa/jsonkit/JSONKit/JSONKit.ak.spec

[!] Unable to find a spec named `/Users/antkong/Documents/Cocoa/jsonkit/JSONKit/JSONKit.ak.spec'.

There are several issues here:

  • the pod lint does not take a file parameter
  • the pod runtime expects the spec file to use file extension podspec.

Fixed the above and committed the code change. Now I got these error messages:

1
2
3
4
5
6
7
8
9
10
11
12
13
$ pod spec lint

 -> JSONKit (1.6)
    - WARN  | Git sources should specify a tag.
    - NOTE  | [xcodebuild]  warning: no rule to process file 'JSONKit/JSONKit.podspec' of type text for architecture x86_64
    - NOTE  | [xcodebuild]  JSONKit/JSONKit.m:2600:77: warning: bitmasking for introspection of Objective-C object pointers is strongly discouraged [-Wdeprecated-objc-pointer-introspection]
    - WARN  | Unable to find a license file
    - NOTE  | [xcodebuild]  warning: no rule to process file 'JSONKit/JSONKit.podspec' of type text for architecture armv7
    - NOTE  | [xcodebuild]  warning: no rule to process file 'JSONKit/JSONKit.podspec' of type text for architecture armv7s

Analyzed 1 podspec.

[!] The spec did not pass validation.

Need to work on the two warnings