With Ubuntu [A Fresh Install]
No, the old install didn’t crash !!!
i just was very anxious about the new Ubuntu release (Karmic Koala), so i installed the RC version
and as u know i hate to install a fresh install of any OS until the currently running one crashes, hangs and cries to let it die
SQL Multiplication
i was shocked to find that there is no aggregate multiplication functions in SQL, something like
select mul(number) from table
but i needed to use a multiplication function…, so as usual i googled it and found this statement
select exp(sum(log(cast(number as float)))) from table
that does the multiplication,
so with a mouth half opened i tested this line and it worked
Recursive SQL statment using CTE “With as”
having such a table in a MS SQL Server 2005
where the table represents some employees and their tree structure in the organization, where each employee has a foreign key “ManagerID” which is the ID of another Employee in the same table, and this table is represented with the following tree
Manipulating Visio “Shape Data” using VBA
recently i needed to write a macro that processes an MS Visio 2007 page and and does some actions based on the contents of a custom defined stencil shapes, where this contents are saved as a Shape Data field in the shape
Common OpenGL Exception
this is a kind of exception that happens normally when u r coding with opengl, whether using Tao framework for C# or native opengl
when u run the opengl program and u find it just crashes with no reason
then one of the main reason is the function “glutInit()“
this function initializes the GLUT which should be initialized only ONCE per program run
and if this function fails to initialize -for many reasons- but with me mainly because it’s called more than a time, it crashes the program and just closes it
so just make sure u call this function only once..
Strings, JavaScript & IE

if u r familiar with Javascript can u tell what will be the output of these lines ?
var src="abcd";
var dest="";
for (var i=0;i<4;i++)
{
dest+=src[i];
}
alert(dest);
well, it’s obvious that this fragment will produce a message box holding the string “abcd” unless u r used to code Javascript for IE
in Firefox or Chrome it works like a charm
Configure MPI programs in eclipse
Al Salamu 3alykom Wa Ra7matULLAH
if u r familiar with the distributed computing, then u have used,seen or even heard about MPICH
well, here are the steps u follow to make and run an MPICH program
1-download and install the MPICH executable form their website
2-include the headers and add the lib files
3-write ur program and build it
4-and after solving the errors that will reveal in ur code
go to the mpich bin directory -All programs in the start menu if u r a windows user- and open the mpirun program and browse for the executable u have built, configure the number of processes to run and finally run in
well…
Simple Polygon Construction
that was one of the assignments in Scientific Computing Dept in my college
\”to construct a simple polygon form ALL the points i have in a plan\”
well, a simple polygon is the polygon where it\’s edges doesn\’t intersect
Troubleshooting in ACM-ICPC Contest
i’ve participated in many contests as organizer, specifically in the technical stuff which is mainly two portions
and in the last contest i’ve participated in it’s technical preparations i faced a number of troubles
lets take them one by one
1.Teams don’t connect to the Server which is a Linux Machine
- Solution : before you open the server edit the “pc2server” file and edit this line
- java -Djava.security.policy=policy.ini $PC2CN $*
- to be
- java -Djava.rmi.server.hostname=”10.106.0.35″ -Djava.security.policy=policy.ini $PC2CN $*
- of course change the ip according to your server ip
and make this edit in all the executables you will run {team, board, judge…..}
How to configure ur hotmail account on Evolution [ubuntu]
hey hey….. before you read… check this “OUUUUUF At Last !!! (Hotmail & POP3)“
hi,
here are the steps to configure your free hotmail account on evolution mail client as a POP3 mail in ubuntu
well.. open a terminal and copy & paste those commands or write them ..as u like
first make sure that your system is up to date
sudo apt-get update sudo apt-get install inetutils-inetd sudo apt-get install hotway hotsmtp sudo gedit /etc/inetd.conf
the last command will open u a file “inetd.conf”


