Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Tuesday, June 11, 2013

Monday, February 4, 2013

Yourself as a developer...


Saturday, September 22, 2012

The Go programming language

Just installed the Go programming language on my iMac.


$ sudo port install go
--->  Computing dependencies for go
--->  Fetching archive for go
--->  Attempting to fetch go-1.0.2_0.darwin_12.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/go
--->  Attempting to fetch go-1.0.2_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/go
--->  Attempting to fetch go-1.0.2_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/go
--->  Fetching distfiles for go
--->  Attempting to fetch go1.0.2.src.tar.gz from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/go
--->  Verifying checksum(s) for go
--->  Extracting go
--->  Configuring go
--->  Building go
--->  Staging go into destroot
Warning: go installs files outside the common directory structure.
--->  Installing go @1.0.2_0
--->  Activating go @1.0.2_0
--->  Cleaning go
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.
$ go version
go version go1.0.2

Monday, September 10, 2012

Old binary format


$ file test
test: Mach-O executable ppc
$ ./test 
-bash: ./test: Bad CPU type in executable

Monday, May 28, 2012

About programming...


"If you want to learn something, read about it; if you want to understand something, write about it; if you want to master something, program it."
Programming is like the ultimate teaching challenge. Teaching a computer to do something requires that you know your stuff really well. By teaching/programming, you will learn to become a master.
For example, if you want to learn physics, write a physics engine. If you want to learn chess, program a chess game. If you want to learn deep C# knowledge, write a C# compiler (or some other tool).
Read the full story here.

Sunday, April 1, 2012

iOS Programming (3rd ed.)

Ordered the book from amazon.co.uk a few days ago and looking forward to reading it :)
Have a happy April.

Wednesday, February 1, 2012

An advice on iOS programming books

When you buy a book about iOS programming, read it immediately!
That is because if you delay reading it, a new version of iOS may come up and then you will have an old (!) book.
If you cannot read it immediately, do not buy it until you have enough time to read it.

Wednesday, January 25, 2012

Tuesday, January 17, 2012

Bubble sort :)


Saturday, January 7, 2012

Keep trying


Thursday, January 5, 2012

One thing to do with your Mac

From MacFormat, January 2012 issue.

Thursday, October 13, 2011

R.I.P. Dennis Ritchie


Tuesday, October 4, 2011

Larry Wall


Friday, August 5, 2011

Just build something

Found it in MacTech magazine, May 2011.
by Justin Williams

Monday, May 30, 2011

iPhone is case-sensitive

I had a strange issue today while programming my iPhone. Although the application was running find on iOS Simulator, it crashed on my iPhone 4.


The iPhone was generating the following error:
2:53 unknown Pickers[15251] : *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'


The problem was a wrongly typed file name. The "wrong" command was:
NSString *path = [[NSBundle mainBundle] pathForResource:@"Crunch" ofType:@"wav"];


and I had to change it to (notice the small __c__)
NSString *path = [[NSBundle mainBundle] pathForResource:@"crunch" ofType:@"wav"];


The funny thing was that both of them were working on the iOS Simulator but only the second one on my iPhone! So, iPhone is case-sensitive.

Saturday, May 28, 2011

Tab bar items

As I was reading a book on iPhone 3 development, I thought that it would be useful to point out the new way (in Xcode 4) of creating tab bar items.




In Xcode 3, this job was done from the Attributes inspector of the Tab Bar Controller.
You should now drag a Tab Bar Item from the library to a Tab Bar Controller.

Friday, May 6, 2011

Dive into Python

As I will teach the Python programming language, I wanted a good book to quickly teach me Python.
My brother told be about the "Dive Into Python" book. The good news is that the book is freely available as well as published by Apress.
I have downloaded and printed the free version :)


There are two editions of the book that can be found here and here.

Wednesday, May 4, 2011

Developer promo codes

I am sorry to inform that it is no longer possible
to rate or review
an app if it was downloaded
using a developer’s promotional code.

(Sounds fair, I think)
Read it here.

Friday, March 4, 2011

Book: Programming iOS 4

Release date: May 2011
You can find more about the book here.
You can buy it from amazon.co.uk.

Saturday, January 29, 2011

iOS 4 Programming Cookbook book released!

It is available at amazon.com. I will buy it from amazon.co.uk as soon as it becomes available.