Archive for the ‘programming’ Category

Logging not working with Titanium 1.6.1 and Xcode 4.3

Friday, May 13th, 2011

If logging messages are not showing after updating to the latest Xcode apply the following workaround.

Appcelerator Developer Center – Titanium 1.6.1 and XCode 4.3 – Debug/Info problem

Or if you want the short version:

$ cd ~/Library/Application\ Support/iPhone\ Simulator/
$ ln -s 4.3.2 4.3

Learning Scala: Recursion

Wednesday, January 19th, 2011

If you like me are learning Scala you might after a bit of coding realize that even if it is possible to write java-like code in Scala – and by using some of the nice features of Scala it will actually be more fun than writing normal Java code. It will quite often look a bit ugly and not feel that natural.

That is because it is not the Scala-way of doing it.

I’m still trying to understand the Scala-way of thinking but it’s not something you pick up over night. I’m taking baby steps and hopefully making some progress every day.

Two articles I found yesterday helped me understand how to assign immutable variables from if-statements and how Scala loves recursion:

Rails 3.0: It’s ready!

Tuesday, August 31st, 2010

“Rails 3.0 has been underway for a good two years, so it’s with immense pleasure that we can declare it’s finally here. We’ve brought the work of more than 1,600 contributors together to make everything better, faster, cleaner, and more beautiful.”

Riding Rails: Rails 3.0: It’s ready!

id Software Demos Rage On iPhone

Friday, August 13th, 2010

Slashdot Games Story | id Software Demos Rage On iPhone, Releases Source Code For Two Games

“Kotaku has posted their liveblog of the QuakeCon 2010 keynote, with some big announcements by game developer and Slashdot regular John Carmack. Highlights include a video of the id Tech 5 engine (aka Rage) running on the iPhone 4G at 60fps, with claims that it also runs on the iPhone 3GS.

Another hilarious quote from John Carmack was

“The game would have been more enjoyable if people could actually see it.” – Carmack on Doom 3

If you are interested read through the liveblog from the QuakeCon 2010 keynote. Carmack sure has some strong opinions sometimes!

Getting even more annoyed at Maven

Wednesday, August 11th, 2010

How can it be easier to change the java code I’m trying to execute as part of the generate goal to create the output directory than to make Maven create the directory for me?

I understand that Maven is conceptually totally different compared to Makefiles and Ant but still, I just want to create a directory. How hard can it be?

Sometimes Maven is such a pain.

Update: IntelliJ IDEA bug?

Friday, March 26th, 2010

I’m super impressed with JetBrains!

15 minutes after I wrote the blog post about the IntelliJ IDEA bug I found yesterday which automatically got written to my twitter account as well, Anton Makeev an IntelliJ IDEA Developer replies on twitter that he has created a bug report for the problem.

So now it’s possible to track the status of the bug here: http://youtrack.jetbrains.net/issue/IDEA-53257

IntelliJ IDEA bug?

Friday, March 26th, 2010

Alternative 1

Screen shot 2010-03-24 at 18.06.34.png

Alternative 2

Screen shot 2010-03-24 at 18.07.05.png

Me and javac think the two code snippets above are both valid and pretty much same. Funnily IntelliJ IDEA disagrees.

But it’s OK, I still think it’s the best Java IDE available.

HotCocoa!

Thursday, February 4th, 2010

The latest MacRuby with HotCocoa is amazing! Finally a way to write OS X applications without having to learn Objective-C.

require 'rubygems'
require 'hotcocoa'
include HotCocoa
application do |app|
  win = window :size => [100,50]
  b = button :title => 'Hello'
  b.on_action { puts 'World!' }
  win << b
end

Facebook’s HipHop Goes Public With a New PHP Runtime

Wednesday, February 3rd, 2010

“Facebook said the results of using HipHop have been dramatic. CPU usage on Facebook servers has dropped by an average of 50 percent as the HipHop PHP engine reduced the load on Facebook’s infrastructure.”

Facebook’s HipHop Goes Public With a New PHP Runtime — Developer.com

The article isn’t that detailed but from the following quote:

“This is not an extension to PHP — this is pretty different,” Recordon said. “Right now, the process is once you build and compile HipHop, it comes with a tool that will go through the transformation process and output the binary, and that’s what you actually use to run it.”

And the fact that they’ve removed Apache and uses an own web server. I start to wonder if what they do is actually take the PHP source code and compile it to get one binary that is both the web server and the application in one.

PHP is an interpreted script language so what normally happens is that PHP takes the source file and reads it line by line as it’s executing it. If they’ve bypassed this step completely by pre-compiling the script file into machine code that would explain the reduced CPU usage.

Maker’s Schedule vs Manager’s Schedule

Friday, July 31st, 2009

“One reason programmers dislike meetings so much is that they’re on a different type of schedule from other people. Meetings cost them more.”

Maker’s Schedule, Manager’s Schedule

A good article by Paul Graham.

Don’t disturb your programmers!