Ramblings of a Deranged Mind

pageicon Monday Dec 29, 2008

To C or not to C? (part 2)

So here's the conclusion to my last post.

In case anyone hasn't figured it out, I'm running OpenSolaris 2008.11 and apparently our open source, developer focussed, Web 2.0 community targetted, Linux alternative operating system it doesn't include any of the C header files in /usr/include which means that it's useless for developers.

Can anyone say oops?

BTW it also seems apparent that the compiler that was used to build OpenSolaris 2008.11 is a newer version that is used internally in Sun but it not available for external download yet. I say apparently because when I downloaded the Sun Studio 12 compilers from our external website, it's dated May 2007 and I have a comment posted that informs me the "latest" version in use is dated April 2008.

Also if you read part 1 of this blog entry, the output from the Sun Studio 12 C compiler detects OpenSolaris 2008.11 as Sun OS 5.9? WTF?

Sigh! Comments?

pageicon Tuesday Dec 09, 2008

To C or not to C?

How hard can it be to download a compiler to start cutting some code?

I downloaded a copy of the Sun Studio compilers from http://developers.sun.com/sunstudio/downloads/index.jsp, installed it and tested that it was working.

$ /opt/SUNWspro/bin/cc -V
cc: Sun C 5.9 SunOS_i386 2007/05/03

Next I tried the venerable "Hello, World!" test, using the following source code which I tried to extract out of my very aged brain.

$ vi helloworld.c

#include <stdio.h>

void main() {
	printf("hello, world!");
}

Then comes the real test, the compile.

$ /opt/SUNWspro/bin/cc helloworld.c

Any guesses what happened? Has the world changed so much that C is no longer C?

Comments?

pageicon Tuesday Dec 02, 2008

This would be a funny story if it wasn't too true.

Read this and tell me how it makes you feel. :-O

http://www.gather.com/viewArticle.jsp?articleId=281474977067637

Comments?

Changing power management settings in OS X

So the other night I was sitting in bed working on my MacBook Pro sitting on the blanket on my lap. After about 20 minutes I noticed that my legs were sweating, a lot!

I picked up the MacBook Pro and it was *hot*, damn *hot*, felt like the chassis was on the verge of melting. So hit F12 and looked at iStat Pro and it showed most components at around the 50C mark, with both fans running above 2000 rpm.

My theory about what happened is that OS X waited too long before turning on the fans and now it wasn't cooling the system fast enough to lower the temperature. So doing some searching on the internet led me to an utility called Fan Control which allows me to change the minimum fan speed (I increased it to 2000 rpm from 1000 rpm) and to change the lower and upper trigger levels.

In my search for a solution to my overheating problem I discovered a way to turn off Intel SpeedStep, for those times where I need all the performance I can get without OS X trying to 2nd guess what my CPU speed should be.

To turn off Intel SpeedStep, use the following command:-

sudo pmset -a reduce 0

and change the 0 to 1 to turn it back on again.

Just checked iStat Pro again and everything is nice and cool, at least my legs are sweating. :-)

Comments?


« November 2008 »
SunMonTueWedThuFriSat
 
1
3
4
5
6
7
8
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
30
31
   
       
Today

Feeds

Search this blog

Links

Weblog menu

Today's referrers

Today's Page Hits: 2

Gamertag

WebMap

ip-location

AdSense

Kiva Microloans