Non multa, sed multum!

Now with octopress.

String Work

| Comments

Bash vs Java

Ruby, Rvm, Lion and Xcode

| Comments

What do I have?

1
2
$rvm --version
rvm 1.13.1 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Picture I want to see

Lion switched to LLVM-GCC from the gcc-4.2

1
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)

This cause segfault So, I want my GCC:

1
2
3
4
5
$ /usr/bin/gcc-4.2 --version
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Install GCC tool chain from:

GCC with no Xcode

Environment!

1
2
export rvm_archflags="-arch x86_64"
export CC=/usr/bin/gcc-4.2

Crossing fingers:

1
rvm install 1.9.2

Hey, I’ve got this:

1
2
3
4
5
6
7
8
ruby-1.9.2-p320 - #fetching 
ruby-1.9.2-p320 - #extracting ruby-1.9.2-p320 to /Users/olegkossoy/.rvm/src/ruby-1.9.2-p320
ruby-1.9.2-p320 - #extracted to /Users/olegkossoy/.rvm/src/ruby-1.9.2-p320
ruby-1.9.2-p320 - #configuring 
ruby-1.9.2-p320 - #compiling 
ruby-1.9.2-p320 - #installing 
...
Install of ruby-1.9.2-p320 - #complete

Thanks to:

WhatSize in Bash V2

| Comments

Screenshots:

Source:

Thanks to bolk

3.5k OS

| Comments

2004 International Obfuscated C Code Contest winner:

This is a 32-bit multitasking operating system for x86 computers,
with GUI and filesystem, support for loading and executing user
applications in elf binary format, with ps2 mouse and keyboard drivers,
and vesa graphics. And a command shell. And an application -
a simple text-file viewer.

Here

Resolution Comparison

| Comments

Retina is the best.

OS Width Height Diagonal Resolution
Smartphones
iPhone 3GS iOS 320 480 3.5 165
iPhone 4, 4S iOS 640 960 3.5 330
Acer Liquid A1 (S100) Android 480 800 3.5 267
Samsung Galaxy S Android 480 800 4 233
Samsung Galaxy S II I9100 Android 480 800 4.3 217
Motorola Atrix Android 540 960 4 275
Galaxy Nexus Android 720 1280 4.65 316
Galaxy Note Android 800 1280 5.3 285
Sony Xperia P Android 540 960 4 275
Tablets
iPad 2 iOS 1024 768 9.7 132
The New iPad iOS 2048 1536 9.7 264
Galaxy Tab Android 600 1024 7 170
Galaxy Tab 7.7 Android 1280 800 7.7 196