Renewed My PC for 2015


Recently I used with Apple Macintosh, with OS X. And I decided to move from OS X to other OS again. There were many reason for moving, but most biggest reason was for liberty of my computing environment.

Actually OS X is the better environment for both daily usage and programming, but not for gaming and some free usage with many external devices. I love the Mac Pro Xeon tower type, with some external slots and free of expanding, but nowadays it renewed with trash-typed closed platform.

I decided to design my next PC with latest parts, with Intel devil’s canion and Nvidia GeForce GTX 970, and some excellent parts for my 2015 style as below.

  • Case: Antec P100
  • Motherboard: ASUS Z97-K
  • CPU: Intel Core i7 4790K 4GHz
  • CPU Fan: SCYTHE Kotetsu
  • RAM: CFD 16GB (8GB x2)
  • Video:  ASUS Strix GTX970
  • Power Supply: Seasonic SS-660XP2
  • SSD: Crucial MX100 256GB
  • HDD: Hitatchi 2TB
  • Keyboard: Topre Realforce 87U SE170S
  • Mouse: Logitech G302
  • OS: Windows 8.1 64-bit, Oracle Linux 7 64-bit
  • Monitor: Iiyama Pro Lite XB2374HDS 23-inch

Unfortunately the PC parts prices are now increasing due to decrease Japanese Yen JPY rate compare with USD, so decided to get within November. Saved over 10,000 JPY by early purchasing before increasing prices.

Thanks for the silent type PC case and video card, I got a exteremely silent PC in normal desktop usage. I cannot hear any noise except for the HDD very small clicking sounds. With some latest 3-D gaming, the video card’s fans are start turning with very small noise.

Additionally the new keyboard Realforce special silent model (SE170S) is good for my typing speed and noiseless confortable desktop works. I think this keyboard is the best PC keyboard in the world so far. I want the its PS/2 version for true n-key rollover, but current USB version is almost enough for my normal desktop computing.

The new PC is connecting with my old Victor amplifier and small Tannoy speakers, and listening HD audio with ALAC format. Thanks for the silent environment, this PC is also good for the audio listening.

I satisfied with this new PC for multiple usage, especially for my home programming usage, and now I’m trying latest 3-D heavy PC games which I cannot tried in my old MacBook Air.


How to Install GCC 4.8 with NetBeans in OS X 10.9

Screen Shot 2014-02-15 at 11.39.21 PM

I tried to update GCC environment in my OS X 10.9 with NetBeans 8 beta environment to use C++11 new features, including shared pointer. There’s some useful information to update using MacPorts, and this article is just my memo.

1. Install Command Line Tools for Xcode

MacPorts’ policies of supporting GCC is as follows, and it must be installed separately from apple site. If this tools not installed, you’ll be failed in the compile operations with some header missing messages.

MacPorts migration policies

Download command line tools for Xcode

2. Install MacPorts and GCC 4.8

Next, install MacPorts normally, and self update to refresh latest package information to your local repository of MacPorts.

$ cd /opt/local/bin
$ sudo ./port self update
$ sudo ./port sync
$ sudo ./port install gcc48
$ sudo ./port install gmake
$ sudo ./port install gcc_select

3. Set the Environment Variables

Set the GCC standard to 4.8 as follows.

$ sudo ./port select --list gcc
Available versions for gcc:
none (active)
$ sudo ./port select --set gcc mp-gcc48
Selecting 'mp-gcc48' for 'gcc' succeeded. 'mp-gcc48' is now active.

And set the environment variables to use as the standard gcc as below.

export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/man:$MANPATH

4. Change the NetBeans Settings

Finally stars the NetBeans and open the preferences > C++ > Build Tools, Add GNU_MacPorts and set each compiler path to /opt/local/bin/*.

After finished the global settings, make a new C++ project and open its properties > Build > C++ Compiler > C++ Standard to “C++11”, and compile & run with easy samples.

It seems the NetBeans environment is fine in OS X Mavericks for C++ general programming usage rather than Xcode 5. Of course, it can also use with nice Java EE environment.

How to Install OpenCOBOL in OS X 10.9

I tried to install the OpenCOBOL, the open source COBOL compiler, in OS X 10.9. This is the note of it. The original site installation is old, no additional package compiles and installations are required. Just do the MacPorts installation commands only. All required packages are ready in MacPorts repository for OpenCOBOL.

1. Install MacPorts

Install MacPorts normally from here.

2. Install OpenCOBOL from MacPorts repository

$ sudo port install open-cobol
---> Computing dependencies for open-cobol
---> Dependencies to be installed: db44 gettext expat libiconv ncurses libgnugetopt libtool mpfr
---> Fetching archive for db44
---> Attempting to fetch db44-4.4.20_2.darwin_13.x86_64.tbz2 from
---> Attempting to fetch db44-4.4.20_2.darwin_13.x86_64.tbz2.rmd160 from
---> Installing db44 @4.4.20_2
---> Activating db44 @4.4.20_2
---> Cleaning db44
---> Fetching archive for expat
---> Attempting to fetch expat-2.1.0_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch expat-2.1.0_0.darwin_13.x86_64.tbz2.rmd160 from
---> Installing expat @2.1.0_0
---> Activating expat @2.1.0_0
---> Cleaning expat
---> Fetching archive for libiconv
---> Attempting to fetch libiconv-1.14_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch libiconv-1.14_0.darwin_13.x86_64.tbz2.rmd160 from
---> Installing libiconv @1.14_0
---> Activating libiconv @1.14_0
---> Cleaning libiconv
---> Fetching archive for ncurses
---> Attempting to fetch ncurses-5.9_2.darwin_13.x86_64.tbz2 from
---> Attempting to fetch ncurses-5.9_2.darwin_13.x86_64.tbz2.rmd160 from
---> Installing ncurses @5.9_2
---> Activating ncurses @5.9_2
---> Cleaning ncurses
---> Fetching archive for gettext
---> Attempting to fetch gettext- from
---> Attempting to fetch gettext- from
---> Installing gettext @
---> Activating gettext @
---> Cleaning gettext
---> Fetching archive for libgnugetopt
---> Attempting to fetch libgnugetopt-1.3_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch libgnugetopt-1.3_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch libgnugetopt-1.3_0.darwin_13.x86_64.tbz2 from
---> Fetching distfiles for libgnugetopt
---> Attempting to fetch libgnugetopt-1.3.tar.bz2 from
---> Verifying checksums for libgnugetopt
---> Extracting libgnugetopt
---> Configuring libgnugetopt
---> Building libgnugetopt
---> Staging libgnugetopt into destroot
---> Installing libgnugetopt @1.3_0
---> Activating libgnugetopt @1.3_0
---> Cleaning libgnugetopt
---> Fetching archive for libtool
---> Attempting to fetch libtool-2.4.2_3.darwin_13.x86_64.tbz2 from
---> Attempting to fetch libtool-2.4.2_3.darwin_13.x86_64.tbz2.rmd160 from
---> Installing libtool @2.4.2_3
---> Activating libtool @2.4.2_3
---> Cleaning libtool
---> Fetching archive for mpfr
---> Attempting to fetch mpfr-3.1.1-p2_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch mpfr-3.1.1-p2_0.darwin_13.x86_64.tbz2.rmd160 from
---> Installing mpfr @3.1.1-p2_0
---> Activating mpfr @3.1.1-p2_0
---> Cleaning mpfr
---> Fetching archive for open-cobol
---> Attempting to fetch open-cobol-1.1_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch open-cobol-1.1_0.darwin_13.x86_64.tbz2 from
---> Attempting to fetch open-cobol-1.1_0.darwin_13.x86_64.tbz2 from
---> Fetching distfiles for open-cobol
---> Attempting to fetch open-cobol-1.1.tar.gz from
---> Verifying checksums for open-cobol
---> Extracting open-cobol
---> Configuring open-cobol
---> Building open-cobol
---> Staging open-cobol into destroot
---> Installing open-cobol @1.1_0
---> Activating open-cobol @1.1_0
---> Cleaning open-cobol
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.

3. Try Hello COBOL

Make the COBOL program as below. (from OpenCOBOL getting started page

* Sample COBOL program
PROGRAM-ID. hello.
DISPLAY "Hello World!".

Next, compile and execute.

$ cobc -x hello.cob
clang: warning: argument unused during compilation: '-R/opt/local/lib'
$ ./hello
Hello World!

Fine 😉