Translate

Search This Blog

Friday, December 30, 2011

The new C Programming language (C11, or C1x) published

It defines and clarifies:

-the representation of C programs;
-the syntax and constraints of the C language;
-the semantic rules for interpreting C programs;
-the representation of input data to be processed by C programs;
-the representation of output data produced by C programs;
-the restrictions and limits imposed by a conforming implementation of C.

It does not have:

-the mechanism by which C programs are transformed for use by a data-processing system;
-the mechanism by which C programs are invoked for use by a data-processing system;
-the mechanism by which input data are transformed for use by a C program;
-the mechanism by which output data are transformed after being produced by a C program;
-the size or complexity of a program and its data that will exceed the capacity of any specific data-processing system or the capacity of a particular processor;
-all minimal requirements of a data-processing system that is capable of supporting a conforming implementation.

ISO/IEC 9899:2011 is designed to promote the portability of C programs among a variety of data-processing systems.

Friday, December 16, 2011

Galaxy Nexus now available in the U.S.

Starting today, Galaxy Nexus by Samsung will be available in the U.S. on the Verizon Wireless 4G LTE Network.

Visit google.com/nexus to buy it online, or go to your nearest Verizon Wireless, Best Buy, Costco or Radio Shack store.

Galaxy Nexus is also available through our carrier partners in Canada, the United Kingdom, Germany, Italy, Korea and Japan. Soon, it will be available in Australia, France, Russia, India, Taiwan, Hong Kong, and elsewhere!

Change JVM parameters for NetBeans

To change the JVM parameters for NetBeans so that it runs better (in case you have hardware), go to Netbeans installation directory and find the netbeans.conf file inside the /etc dir:

C:\NetBeans-7.0.1\etc\netbeans.conf

Open the file netbeans.conf and find netbeans_default line:

netbeans_default_options="-J-server -J-Xss4m -J-Xms256m -J-XX:PermSize=64m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Duser.language=en -J-Duser.region=US"

I changed mine to include some additional JVM parameters. Also, note that I changed the mode from -client to -server (it runs better in my notebook's hardware I guess :-).

So the new JVM parameters are:

-J-server -J-Xms128m -J-Xmx512m -J-XX:+UseConcMarkSweepGC -J-XX:+UseParNewGC -J-XX:ParallelGCThreads=4 -J-XX:+CMSParallelRemarkEnabled -J-XX:NewSize=64m -J-XX:MaxNewSize=64m -J-XX:+DisableExplicitGC -J-XX:PermSize=64m -J-XX:MaxPermSize=256m

The complete line:

netbeans_default_options="-J-server -J-Xms128m -J-Xmx512m -J-XX:+UseConcMarkSweepGC -J-XX:+UseParNewGC -J-XX:ParallelGCThreads=4 -J-XX:+CMSParallelRemarkEnabled -J-XX:NewSize=64m -J-XX:MaxNewSize=64m -J-XX:+DisableExplicitGC -J-XX:PermSize=64m -J-XX:MaxPermSize=256m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Duser.language=en -J-Duser.region=US"

Enjoy the better performance! :-D

How to change NetBeans language (locale)

I am not used to any IDE in Portuguese (my native language) so I do not like to use the NetBeans interface in Portuguese.

So, in order to change that:

Go to Netbeans installation directory and find the netbeans.conf file inside the /etc dir:

C:\NetBeans-7.0.1\etc\netbeans.conf

Open the file netbeans.conf and find netbeans_default line and just add "-J-Duser.language=en -J-Duser.region=US" at the end of this line and restart NetBeans.

netbeans_default_options="-J-client -J-Xss4m -J-Xms256m -J-XX:PermSize=64m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Duser.language=en -J-Duser.region=US"

That is it! :-D