Saturday, June 20, 2009

Latex too many }'s - algorithm2e

Algorithm2e package seems to be incompatible
with the ACM latex classes. The error thrown is
similar to that shown here -
! Too many }'s.
l.1616 }

?
The way around this is by including the following
lines before including the algorithm2e package as
follows-

\makeatletter
\newif\if@restonecol
\makeatother
\let\algorithm\relax
\let\endalgorithm\relax
\usepackage{algorithm2e}

Hope it works for all of you! Let me know if
you run into any issue.

Thursday, June 18, 2009

ACM Latex \and tag

Use '\and' if you need 'another row' of author names.
This tag is used as a part of the \author tag in the ACM
latex template for paper submission.

What is the SAR level?

SAR level is used to describe the safe exposure level
of electromagnetic radiations typically produced by
mobile devices for the human body. SAR stands for
specific absorption rate, which stands for the amount
of radiation power in Watts absorbed by per kilogram
of tissue. Hence-

SAR = (Electrical conductivity of sample * E^2)/density


The FCC limit for public exposure from cellular telephones
is an SAR level of 1.6 watts per kilogram (1.6 W/kg).

A list of the top 20 handsets for highest and lowest mobile
emissions is available on CNET.com

Sunday, June 14, 2009

Debug not working - Bloodhsed Dev C++

If debugging is not working try these two steps-

1. Go to the tools menu, and within the compiler
and linker options please enter "-g". Ensure that
this is enabled both for the compiler and linker.
This essentially enables generation of all debugging
information.

2. Also, within the Tools -> Compiler options ->
Settings tab. Select the linker option and enable
the "Generate debugging information" by saying
yes

Initial declaration used outside C99 mode

C99 is a recent standard of C than the one GCC which is used by default.

E.g.Declaring the loop counter inside the for loop is only allowed in C++ files
unless you tell GCC to use the C99 standard. For C and ObjC, you need
to declare i outside the loop.