The post has moved to SAOSLab's blog on Microsoft Azure:
FFTSys Tech Blog on Azure Clound
Saturday, May 28, 2011
Friday, May 20, 2011
PingGuin, Net Notifier Software
Software is about making life easier. It's right that to check whether internet is available we make command line ping requests. To know whether the connection is really active we can just ping to www.anydomain.com i.e; www.saosx.com. Whenever this ping fails we ping to our default gateway to check whether gateway is reachable. A gap between the host and gateway will result unreachability to web servers. When gateway is reachable we further need to check whether DNS servers are reachable. So we need more two pings. I always thought about automating these tasks. I have once indeed written a script that does all these works. Well, that's another story.
I wanted to create a software for general people who can use this tool to automate the ping process to all three servers (gateway, pri dns, sec dns) . Moreover, I implemented feature to show balloon tips on the taskbar notification area whenever internet is available.
I have made attempts to make the software as user friendly as possible. When start the software the initial dialog box is shown which has a static box that updates whether internet is available or not. In that window I have enabled automatic retrieval of network interface settings so that user don't have to go through tedious typing everytime he/she starts the software.
It is really amazing that the entire internet is running on kindness and openness of people. Why not I contribute some from my side! That's the reason behind my delivering of this software as open-source. Together we make a better world. I don't want others to go through same tedious procedure during building components for my software. You can straight visit my project source code here:
http://code.google.com/p/pingguin/source/browse/#svn%2Ftrunk
It's an opensource project. You have freedom to use my code. But please acknowledge me and my project in comment. I will also welcome anyone to contribute in this project. Contribution can be of many forms. May be pointing out a bug, suggesting features that should be included in the future release or working with the code directly and improving the quality of work.
I would like to acknowledge my endless debts to msdn, microsoft forums, codeproject and all the forgotten resources of internet that helped me to get new ideas and develop and nourish them. msdn is Microsoft Developer Network and forum for VC++ is available here: http://social.msdn.microsoft.com/Forums/en/category/visualc while codeproject is an awesome website for helping developers across many programming languages and frameworks.
Native Software developers can take help on following topics from my this project:
By this time when I'm writing this post this software is available for Windows only. I'm checking user responses. According to that I'll decide whether to release for other platforms. You can download installer of pingguin for windows from here:
http://code.google.com/p/pingguin/downloads/list
This software is built in my off-time (killing my traveling time, yeah I call this little exploring in this universe as traveling, you can't sue me until you're oracle! :P). Hence, this software has still no relation with my software company, Reve Systems. It's all about pingguin, a net notifier software. You are welcome to visit: http://code.google.com/p/pingguin/
I wanted to create a software for general people who can use this tool to automate the ping process to all three servers (gateway, pri dns, sec dns) . Moreover, I implemented feature to show balloon tips on the taskbar notification area whenever internet is available.
I have made attempts to make the software as user friendly as possible. When start the software the initial dialog box is shown which has a static box that updates whether internet is available or not. In that window I have enabled automatic retrieval of network interface settings so that user don't have to go through tedious typing everytime he/she starts the software.
It is really amazing that the entire internet is running on kindness and openness of people. Why not I contribute some from my side! That's the reason behind my delivering of this software as open-source. Together we make a better world. I don't want others to go through same tedious procedure during building components for my software. You can straight visit my project source code here:
http://code.google.com/p/pingguin/source/browse/#svn%2Ftrunk
It's an opensource project. You have freedom to use my code. But please acknowledge me and my project in comment. I will also welcome anyone to contribute in this project. Contribution can be of many forms. May be pointing out a bug, suggesting features that should be included in the future release or working with the code directly and improving the quality of work.
I would like to acknowledge my endless debts to msdn, microsoft forums, codeproject and all the forgotten resources of internet that helped me to get new ideas and develop and nourish them. msdn is Microsoft Developer Network and forum for VC++ is available here: http://social.msdn.microsoft.com/Forums/en/category/visualc while codeproject is an awesome website for helping developers across many programming languages and frameworks.
Native Software developers can take help on following topics from my this project:
- Standard mechanism of accessing Windows Management Instrumentation information
- DNS Lookup and PING API (alway check msdn for reference)
- Showing Balloon Tips and adding icon in the taskbar
- Displaying menu from resource using tray icon
- Creating Windows Threads using structure
- Unicode string manipulation (using tchar library)
- Creating Installer for Native Software (see PingGuin_Installer in the svn trunk)
By this time when I'm writing this post this software is available for Windows only. I'm checking user responses. According to that I'll decide whether to release for other platforms. You can download installer of pingguin for windows from here:
http://code.google.com/p/pingguin/downloads/list
This software is built in my off-time (killing my traveling time, yeah I call this little exploring in this universe as traveling, you can't sue me until you're oracle! :P). Hence, this software has still no relation with my software company, Reve Systems. It's all about pingguin, a net notifier software. You are welcome to visit: http://code.google.com/p/pingguin/
Wednesday, January 19, 2011
Blog is migrating
The post has moved here:
Sunday, January 2, 2011
Installing Latex on Windows and Linux and Latex Document Compilation Instructions
In this article, I’ll present some tips and tricks on how to do certain things on latex such as adding sections, subsections, inserting images and writing equations etc. Then I’ll provide a sample tex file and instructions for compiling the file using latex along with installation instructions of latex software on various operating systems.
Adding sections and subsections in latex documents
To add a section, use section tag. Here’s an example,
Adding sections and subsections in latex documents
To add a section, use section tag. Here’s an example,
\section{Overview} |
If this section is in a chapter it is preceded by a numbering. For example, if it is chapter 1 numbering is 1.1, 1.2 etc.
If you want to add a subsection under a section use use subsection tag. Here's an example,
It will have numbering like 1.1.1, 1.1.2 etc. If you need subsections under subsection, use subsubsection tag.
No more nesting (after 3 levels) is supported.
How to insert images on latex documents
The first thing you need to do is to convert your image (jpg, png, gif etc) to eps (a postscript format) which is easy to convert to pdf. To convert an image to eps format you need ImageMagick. In fedora installation command of ImageMagick is
In Windows you can install ImageMagick after downloading from http://www.imagemagick.org/download/binaries/
Current latest release direct link for Windows:
http://www.imagemagick.org/download/binaries/ImageMagick-6.6.6-7-Q16-windows-dll.exe
Now use the convert command to convert the image.
In widows you have to put the installation path as well with the command. For example, if it installed in C:\Program Files\ImageMagick directory.
To view eps files you need ghostscript. In Windows, you can install ghostscript from here:
http://ghostscript.com/releases/gs900w32.exe
In Fedora, you have to apply following command as root to install ghostscript,
Now it’s time to include the eps file on tex. Use figure tag to make caption, includegraphics command to include the image. You need to specify the correct path of your image in \includegraphics command. Here’s an example,
Set the caption text and label text same. Label text is used on List of figures. In a template they are automatically numbered according to chapter. If you need to scale up image to half of its size use scalebox tag along with includegraphics.
Writing scientific/math equations in latex
If your equations require numbering on right side use this tag,
For example,
But if your equation doesn’t require numbering use tag like this,
For example,
Integration symbol: \int
To show only root sign not n-th root use tag: \sqrt{x}, replace x with your expression or symbol
To show nth root use tag: \sqrt[n]{x}
To show fractions like ½ use \frac tag. Example,
For summation sign use \sum tag,
\limits is used to set limits on summation sign. Here, i=1 goes down and n goes up. You write texts preceding _ to put them down (subscript) and use ^ to superscript.
For using only one math symbol you can use \ensuremath{} tag. For example,
Here are latex tags for some of the math symbols:
You can find a detailed list of latex symbols here:
http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html
Installation Instructions of Latex for Fedora Core
Apply following commands after opening a terminal and logging into root. Alternatively you can apply su command and provide root password for instant switching.
Installation Instructions of Latex for Ubuntu
Apply following commands if you are using Ubuntu
Installation Instructions for Windows (XP, Vista, Seven)
Download basic-miktex from here: http://miktex.org/2.9/setup and run the installer.
Compiling Tex Documents
Now let’s learn how to compile latex document file. Here’s a sample tex file,
Open a text editor. Create a new file and paste the code given above. Save the file with name test.tex.
Now let’s compile the tex file. In Linux, apply following commands on terminal
A pdf file will be generated with same filename. In Linux if you need to view dvi files you can use either evince or xdvi
In Windows, you might skip generating dvi files. You can use pdflatex.
To compile tex files in Windows you need to apply following command,
assuming "C:\Program Files\TeX” is your installation directory for basic-miktex.
If there is no error on the tex file it will generate a pdf document which you can open using a pdf reader like Adobe pdf reader or Foxit Reader.
More tips and tricks
Here’s an example of using bullets for following texts:
Using tables
Follow this link: http://en.wikibooks.org/wiki/LaTeX/Tables It explains tables well.
Adding newlines: use \\ to add a newline
Using Bold styles: Use \textbf{text here} tag to bold your text.
Italicizing texts: You can use \emph tag or \textit tag to italicize your text. Example,
Subscripting: Write texts preceding _ to make them subscripted. To write xi type x_i
Superscript: use ^ to superscript. To write x^2 use x^2 exactly.
Troubleshooting
If you get errors like this frequently,
Latex expects including math tag during usage of math notations like superscript, subscript and symbols. Here’s an example,
When this syntax is ensured latex will not display those error messages anymore.
If you want to add a subsection under a section use use subsection tag. Here's an example,
\subsection{Formulation} |
It will have numbering like 1.1.1, 1.1.2 etc. If you need subsections under subsection, use subsubsection tag.
No more nesting (after 3 levels) is supported.
How to insert images on latex documents
The first thing you need to do is to convert your image (jpg, png, gif etc) to eps (a postscript format) which is easy to convert to pdf. To convert an image to eps format you need ImageMagick. In fedora installation command of ImageMagick is
# yum install ImageMagick |
In Windows you can install ImageMagick after downloading from http://www.imagemagick.org/download/binaries/
Current latest release direct link for Windows:
http://www.imagemagick.org/download/binaries/ImageMagick-6.6.6-7-Q16-windows-dll.exe
Now use the convert command to convert the image.
$ convert filename.jpg filename.eps |
In widows you have to put the installation path as well with the command. For example, if it installed in C:\Program Files\ImageMagick directory.
C:> “C:\Program Files\ImageMagick\convert.exe” filename.jpg filename.eps |
To view eps files you need ghostscript. In Windows, you can install ghostscript from here:
http://ghostscript.com/releases/gs900w32.exe
In Fedora, you have to apply following command as root to install ghostscript,
# yum install ghostscipt |
Now it’s time to include the eps file on tex. Use figure tag to make caption, includegraphics command to include the image. You need to specify the correct path of your image in \includegraphics command. Here’s an example,
1 \begin{figure}[htbp] 2 \centering 3 \includegraphics{./Figures/SA_Spheric.eps} 4 \caption{Latitude and Longitude \label{ Latitude and Longitude }} 5 \end{figure} |
Set the caption text and label text same. Label text is used on List of figures. In a template they are automatically numbered according to chapter. If you need to scale up image to half of its size use scalebox tag along with includegraphics.
\scalebox{0.5}{ \includegraphics{./Figures/SA_Spheric.eps}}
|
Writing scientific/math equations in latex
If your equations require numbering on right side use this tag,
\begin{equation} Your math exp \end{equation} |
For example,
\begin{equation}\int r = \sqrt[2]{x^2 + y^2 + z^2}\end{equation} |
But if your equation doesn’t require numbering use tag like this,
\begin{math} Your math exp \end{math} |
For example,
Our equation is, \begin{math}\int r = \sqrt[2]{x^2 + y^2 + z^2}\end{math}. Proof ... |
Integration symbol: \int
To show only root sign not n-th root use tag: \sqrt{x}, replace x with your expression or symbol
To show nth root use tag: \sqrt[n]{x}
To show fractions like ½ use \frac tag. Example,
thd = \frac{1}{n} |
For summation sign use \sum tag,
\sum\limits_{i = 1}^n Abs (t_i - t_{i-1})\end{equation} |
\limits is used to set limits on summation sign. Here, i=1 goes down and n goes up. You write texts preceding _ to put them down (subscript) and use ^ to superscript.
For using only one math symbol you can use \ensuremath{} tag. For example,
If angle in degree is \ensuremath{\theta} then the slope is .. |
Here are latex tags for some of the math symbols:
\Phi \lambda \Pi \epsilon |
You can find a detailed list of latex symbols here:
http://web.ift.uib.no/Teori/KURS/WRK/TeX/symALL.html
Installation Instructions of Latex for Fedora Core
Apply following commands after opening a terminal and logging into root. Alternatively you can apply su command and provide root password for instant switching.
$ su Password: # yum install tetex-latex evince-dvi xdvik |
Installation Instructions of Latex for Ubuntu
Apply following commands if you are using Ubuntu
# sudo apt-get install tetex-base tetex-bin |
Installation Instructions for Windows (XP, Vista, Seven)
Download basic-miktex from here: http://miktex.org/2.9/setup and run the installer.
Compiling Tex Documents
Now let’s learn how to compile latex document file. Here’s a sample tex file,
\documentclass[12pt]{article} \usepackage{amsmath} \title{\LaTeX} \date{} \begin{document} \maketitle \LaTeX{} is a document preparation system for the \TeX{} typesetting program. It offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing, tables and figures, page layout, bibliographies, and much more. \LaTeX{} was originally written in 1984 by Leslie Lamport and has become the dominant method for using \TeX; few people write in plain \TeX{} anymore. The current version is \LaTeXe. % This is a comment; it is not shown in the final output. % The following shows a little of the typesetting power of LaTeX: \begin{align} E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \end{align} \end{document} |
Open a text editor. Create a new file and paste the code given above. Save the file with name test.tex.
Now let’s compile the tex file. In Linux, apply following commands on terminal
$ latex test.tex $ dvipdf test.dvi |
A pdf file will be generated with same filename. In Linux if you need to view dvi files you can use either evince or xdvi
$ evince test.dvi & $ xdvi test.dvi & |
In Windows, you might skip generating dvi files. You can use pdflatex.
To compile tex files in Windows you need to apply following command,
D:> "C:\Program Files\TeX\miktex\bin\pdflatex.exe" test.tex |
assuming "C:\Program Files\TeX” is your installation directory for basic-miktex.
If there is no error on the tex file it will generate a pdf document which you can open using a pdf reader like Adobe pdf reader or Foxit Reader.
More tips and tricks
Here’s an example of using bullets for following texts:
- Dining and canteen system
- Library, reading room system
- Debate,language club system
- Games and sports system
- Washing and cleaning system and Utensil management
\begin{itemize}
\item {Dining and canteen system}
\item {Library, reading room system}
\item {Debate,language club system}
\item {Games and sports system }
\item {Washing and cleaning system and Utensil management }
\end{itemize} |
Using tables
Follow this link: http://en.wikibooks.org/wiki/LaTeX/Tables It explains tables well.
Adding newlines: use \\ to add a newline
Using Bold styles: Use \textbf{text here} tag to bold your text.
Italicizing texts: You can use \emph tag or \textit tag to italicize your text. Example,
\emph{set your text here}
\textit{set your text here }
|
Subscripting: Write texts preceding _ to make them subscripted. To write xi type x_i
Superscript: use ^ to superscript. To write x^2 use x^2 exactly.
Troubleshooting
If you get errors like this frequently,
! Missing $ inserted. |
Latex expects including math tag during usage of math notations like superscript, subscript and symbols. Here’s an example,
\begin{math} Your expression for example C_i end{math} |
When this syntax is ensured latex will not display those error messages anymore.
Wednesday, December 22, 2010
How to Update Fedora Core 13 to Fedora Core 14
The process is simple. We have to apply some commands on terminal mode. After that update will be done using internet.
It means we need internet on terminal. But when GUI closes; internet that is configured with NetworkManager is lost. Hence we have to try other way out.
First, install system-config-network and then stop Network Manager Daemon
It means we need internet on terminal. But when GUI closes; internet that is configured with NetworkManager is lost. Hence we have to try other way out.
First, install system-config-network and then stop Network Manager Daemon
# yum install system-config-network # service NetworkManager stop |
Now open system-config-network using system-config-network command on the terminal or run. Enter root password if it asks for.
Untick the option "Controlled by Network Manager". Click apply. Now switch to terminal mode by pressing Alt + Ctrl + F2. Log in as root.
Untick the option "Controlled by Network Manager". Click apply. Now switch to terminal mode by pressing Alt + Ctrl + F2. Log in as root.
# init 3 |
Doing the update
After it is done press enter and enter following commands.
# rpm --import https://fedoraproject.org/static/97A1071F.txt # yum update yum # yum --releasever=14 distro-sync --skip-broken |
Accelerate Linux with the ISP ISPROS and other ISPs which support GNU Mirror
After update reboot your system using reboot command. After restart select Fedora 14 from Boot Menu. Once System is booted into Fedora 14 update the system using yum.
If your ISP has its own GNU Linux Mirror then update will be very fast. With around 300 KBPS it will take around half an with an decent configuration PC.
Bangladeshi Linux users can have this benefit with ISPROS isp. They have ubuntu mirror, fedora mirror, cent-os mirror and gnu mirror and some other useful mirrors(apache, php etc).
One thing more if your Fedora yum does not choose ISPROS as mirror you can force it by changing fedora.repo Set your mirror list to this url: http://mirrors.ispros.com.bd/fedora/releases/$releasever/Everything/$basearch/os/ by editing the file /etc/yum.repos.d/fedora.repo.
Enjoy Linux with ISPROS.
After update reboot your system using reboot command. After restart select Fedora 14 from Boot Menu. Once System is booted into Fedora 14 update the system using yum.
If your ISP has its own GNU Linux Mirror then update will be very fast. With around 300 KBPS it will take around half an with an decent configuration PC.
Bangladeshi Linux users can have this benefit with ISPROS isp. They have ubuntu mirror, fedora mirror, cent-os mirror and gnu mirror and some other useful mirrors(apache, php etc).
One thing more if your Fedora yum does not choose ISPROS as mirror you can force it by changing fedora.repo Set your mirror list to this url: http://mirrors.ispros.com.bd/fedora/releases/$releasever/Everything/$basearch/os/ by editing the file /etc/yum.repos.d/fedora.repo.
Enjoy Linux with ISPROS.
Wednesday, December 1, 2010
Windows Seven Tips & Tricks: Enable Classic Taskbar
I always liked the classic taskbar. It's why I got to get it back with Windows Seven. Here's I'm telling you how to do it.
First, reduce the taskbar size following previous post.
First, reduce the taskbar size following previous post.
Now right the click taskbar. Click properties. There is an option called "Taskbar buttons" on the middle of the dialog box.
Select the option "Combile when taskbar is full". "Click ok. You'll get your classic taskbar back. Screenshots attached below:
How to Change MAC Address on Linux using NetworkManager
In previous post I showed how to change MAC address on Linux using ifconfig command and system-config-network tool. Today I will show you how to change MAC address using Network Manager. The method is comparatively easier.
- Follow the steps given below to change MAC address.
- Right click on the Network Manager applet and click "Edit Connections"
- Select eth0 and click edit button
- On Cloned MAC Address type the MAC address that you want to change to as shown in image below:
- Click apply.
You are done. It was damn easy. Right!? ping to check back your internet connection.
$ $ ping www.google.com PING www.l.google.com (74.125.43.105) 56(84) bytes of data. 64 bytes from bw-in-f105.1e100.net (74.125.43.105): icmp_seq=1 ttl=53 time=220 ms 64 bytes from bw-in-f105.1e100.net (74.125.43.105): icmp_seq=2 ttl=53 time=220 ms 64 bytes from bw-in-f105.1e100.net (74.125.43.105): icmp_seq=3 ttl=53 time=219 ms 64 bytes from bw-in-f105.1e100.net (74.125.43.105): icmp_seq=4 ttl=53 time=220 ms 64 bytes from bw-in-f105.1e100.net (74.125.43.105): icmp_seq=5 ttl=53 time=220 ms ^C --- www.l.google.com ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4298ms rtt min/avg/max/mdev = 219.408/220.194/220.799/0.709 ms $ |
If you don't find "Cloned MAC address" in Network Manager update your Network Manager and then try again.
$ $ yum update NetworkManager |
Lex, Yacc Installation and Compilation Shell Script
If you don't have lex and yacc install them using the following command.
Fedora Core
Ubuntu
Fedora Core
# yum -y install flex bison |
Ubuntu
$ sudo aptitude install flex bison |
This script will be very useful for compiling lex and yacc files. Here is the script:
After saving this in file named compile.sh
You have to apply the following command to make it executable script.
Now you can run the script like this:
1 echo SA-OS Script [http://sa-os.blogspot.com] 2 echo Generating lex 3 lex $1 4 echo compling using yet another compiler compiler 5 yacc -d $2 6 echo Creating objects for c files 7 gcc -c lex.yy.c y.tab.c 8 echo Creating executable 9 gcc -o p.out lex.yy.o y.tab.o -ll 10 echo Running executable 11 ./p.out
After saving this in file named compile.sh
You have to apply the following command to make it executable script.
$ chmod a+x compile.sh |
Now you can run the script like this:
$ ./compile.sh lexfilename.l yaccfilename.y |
Sunday, November 28, 2010
Good Movies on Artificial Intelligence II
In previous post I mentioned some movies on AI. Today I'm adding some more AI movies.
A.I. Artificial Intelligence (2001)
This movie (A.I) is directly related with Artificial Intelligence. An artificially intelligent robot is manufactured which looks exactly like the boy a couple recently lost. However intelligent or alike the robotic agent looks is it is difficult to replace a human child. Consequences follow.
When the notorious real child is found back tragedy starts. Time comes to give this robot back to the manufacturer company for disposal. With uncontrolled emotion of love for this human-looking robot the mother cannot leave the boy for disposal. She leaves the robot boy in a forest. This leads to other interesting stories. But the boy only dreams to get back to her human mother for who his love is never defeated.
To download wallpaper of this movie follow here. View more info on imdb about this movie: http://www.imdb.com/title/tt0212720/
2001: A Space Odyssey (1968)
I’m adding this movie because of its reputation (it is ranked as one of the top 10 movies). The movie is not enjoyable if you don’t understand the central story. But it contains a good theme which is a juxtaposure of human evolution, technology and artificial intelligence. Human evolution part is related with a monolith. Artificial intelligent part is related with HAL computers.
You can find good info about this movie and its plot here. View more info on imdb: http://www.imdb.com/title/tt0062622/
You can find good info about this movie and its plot here. View more info on imdb: http://www.imdb.com/title/tt0062622/
The Matrix (1999)
This is an awesome mind-blowing science fiction movie. A Hacker learns the new definition of reality and when he possesses the control of it, it means he has matrix. With matrix human beings can be programmed according to necessities and can be useful in fighting in the world where they are also real!
Among Matrix trilogy most enjoyable is this one. Matrix has good base story which is very scientific and detailed. View more info on imdb: http://www.imdb.com/title/tt0133093/
Among Matrix trilogy most enjoyable is this one. Matrix has good base story which is very scientific and detailed. View more info on imdb: http://www.imdb.com/title/tt0133093/
The Matrix Reloaded (2003)
It all about saving trinity and destroying Zion. Too dramatic but you will enjoy some special effects! View more info on imdb: http://www.imdb.com/title/tt0234215/
The Matrix Revolutions (2003)
View info on imdb: http://www.imdb.com/title/tt0242653/
Endhiran (2010)
It is a very good hindi movie that is worth watching. A scientist named Dr. Vasi builds an intelligent robot which resembles his image. The scientific body does not approve the robot. Hence emotion is also integrated into the robot. Then with awesome emotions it falls in love with its creator’s fiancée Aishwariya Rai! Let’s see how to fix this. :)
View more info on imdb: http://www.imdb.com/title/tt1305797/
View more info on imdb: http://www.imdb.com/title/tt1305797/
Inception (2010)
The movie does not deal with artificially intelligent agents. Rather it deals with scientific theories of subconscious mind. The information can be stolen from a subconscious state of brain when it is at its most vulnerable. It is called extraction. Also ideas can be planted. With subconscious minds it always comes to dreaming. In dreams human agents are more powerful, they work as better agents. That’s the artificial part.
Cobb is the best thief of information extraction. But he has a strong rival in his subconscious world a woman named Mal. Mal will always mess up the plan and cause Cobb to be defeated though once Mal was his love and everything. With all these hard obstacles of subconscious world Cobb has to win in his impossible plan called inception. They have to win fights on minds in a combined shared illusive, beautiful, adventurous subconscious environment.
View info on imdb: http://www.imdb.com/title/tt1375666/
Cobb is the best thief of information extraction. But he has a strong rival in his subconscious world a woman named Mal. Mal will always mess up the plan and cause Cobb to be defeated though once Mal was his love and everything. With all these hard obstacles of subconscious world Cobb has to win in his impossible plan called inception. They have to win fights on minds in a combined shared illusive, beautiful, adventurous subconscious environment.
View info on imdb: http://www.imdb.com/title/tt1375666/
Transformers (2007)
There is a clash between two extra-terrestrial clans which affects existence of earth and beings. A young held teenager possesses all the power and clue who can save the world? Too dramatic! Huh? This one is better than the next of the sequel! View info on imdb: http://www.imdb.com/title/tt0418279/
Transformers: Revenge of the Fallen
View info on imdb about this movie: http://www.imdb.com/title/tt1055369/
I’ve got some more movies. Before adding them I’ll watch them first to make sure if they relate with Artificial Intelligence. Relevant movies will be added on next post. Thanks for visiting.
I’ve got some more movies. Before adding them I’ll watch them first to make sure if they relate with Artificial Intelligence. Relevant movies will be added on next post. Thanks for visiting.
Thursday, November 11, 2010
How to Disable Deprecation Warning on Visual Studio
Deprecation warnings can really be headache sometimes. But there are ways to disable it. Here I describe one.
To deprecation warnings you have to define _CRT_SECURE_NO_DEPRECATE as true before including any header file. An example code is attached below:
To deprecation warnings you have to define _CRT_SECURE_NO_DEPRECATE as true before including any header file. An example code is attached below:
1 /******************************************************* 2 * Problem Name: Money in the bag 3 * Problem ID: 1002 4 * Occassion: Offline Contest CSEDU Easy Volume 5 * 6 * Algorithm: 7 * Special Case: 8 * Judge Status: Accepted 9 * Author: Saint Atique 10 * Notes: 11 * 12 *******************************************************/ 13 14 #define _CRT_SECURE_NO_DEPRECATE 1 15 //#define _CRT_NONSTDC_NO_DEPRECATE 16 17 #include <iostream> 18 #include <cmath> 19 #include <cstring> 20 //#include <new> 21 #include <vector> 22 #include <queue> 23 #include <map> 24 #include <algorithm> 25 #include <iomanip>//for cout formatting 26 #define INF 2147483648 27 #define EPS 1e-8 28 using namespace std; 29 30 int main() { 31 //freopen("..\\1002_in.txt", "r", stdin); 32 //freopen("..\\1002_out.txt", "w", stdout); 33 34 double tk_amount[10] = {1000, 500, 100, 50, 20, 10, 5, 2, 1, 0.50}; 35 double sum = 0; 36 int i, n; 37 38 for (i=0; i<10; i++) { 39 cin>>n; 40 sum += n * tk_amount[i]; 41 } 42 43 cout.setf (ios::fixed, ios::floatfield); 44 cout.setf(ios::showpoint); 45 cout<<setprecision(2)<<sum<<" taka"<<endl; 46 47 //fclose(stdin); 48 //fclose(stdout); 49 return 0; 50 } |
How to Set Precision in C++
Programmers who use C++ for problem solving may need to set precision before printing floating numbers in standard output.
To display a floating number value of variable result with precision 2 (equivalent to .%2lf in scanf) use following code:
To display a floating number value of variable result with precision 2 (equivalent to .%2lf in scanf) use following code:
1 cout.setf (ios::fixed, ios::floatfield); 2 cout.setf(ios::showpoint); 3 cout<<setprecision(2)<<result<<endl; |
Here’s an example code used to solve a problem in easy volume section.
1 /******************************************************* 2 * Problem Name: Money in the bag 3 * Problem ID: 1002 4 * Occassion: Offline Contest CSEDU Easy Volume 5 * 6 * Algorithm: 7 * Special Case: 8 * Judge Status: Accepted 9 * Author: Saint Atique 10 * Notes: 11 * 12 *******************************************************/ 13 14 #define _CRT_SECURE_NO_DEPRECATE 1 15 //#define _CRT_NONSTDC_NO_DEPRECATE 16 17 #include <iostream> 18 #include <cmath> 19 #include <cstring> 20 //#include <new> 21 #include <vector> 22 #include <queue> 23 #include <map> 24 #include <algorithm> 25 #include <iomanip>//for cout formatting 26 #define INF 2147483648 27 #define EPS 1e-8 28 using namespace std; 29 30 int main() { 31 //freopen("..\\1002_in.txt", "r", stdin); 32 //freopen("..\\1002_out.txt", "w", stdout); 33 34 double tk_amount[10] = {1000, 500, 100, 50, 20, 10, 5, 2, 1, 0.50}; 35 double sum = 0; 36 int i, n; 37 38 for (i=0; i<10; i++) { 39 cin>>n; 40 sum += n * tk_amount[i]; 41 } 42 43 cout.setf (ios::fixed, ios::floatfield); 44 cout.setf(ios::showpoint); 45 cout<<setprecision(2)<<sum<<" taka"<<endl; 46 47 //fclose(stdin); 48 //fclose(stdout); 49 return 0; 50 } |
Wednesday, November 10, 2010
How to change Document Root on WAMP
In this post we discuss how to change the www folder in apache based software wamp, which stands for Windows Apache, MySQL, PHP.
By default wamp’s www folder is C: \wamp\www. It means if you put a file on that folder for example test.html and enter address like this,
http://localhost/test.html
on the browser it will fetch your test.html page.
To change the default www folder we need to change the configuration file of apache which is httpd.conf (httpd stands for http daemon). Follow the steps given below:
By default wamp’s www folder is C: \wamp\www. It means if you put a file on that folder for example test.html and enter address like this,
http://localhost/test.html
on the browser it will fetch your test.html page.
To change the default www folder we need to change the configuration file of apache which is httpd.conf (httpd stands for http daemon). Follow the steps given below:
- Browse to the directory C:\Program Files\wamp\bin\apache\Apache2.2.11\conf
- Open the file using a text editor i.e. notepad or notepad++ etc.
- Search for the text ‘DocumentRoot’. You will see a line like this in the search result:
DocumentRoot "C:/wamp/www"
- Edit this line to your preferred directory where your web page files are stored. For example, D:\web
DocumentRoot "D:/web/"
- Again search for text ‘<Directory’
On the second result you will see a line like this one:
<Directory "C:/wamp/www/">
You will have to change this one too.
<Directory "D:/web/">
- Now clicking wamp icon on the system tray restart all services.
Changes will take into effect soon after you refresh localhost pages.
Saturday, October 16, 2010
Bangla Font Fixing for Google Chrome & Other Windows Software
In operating systems like Windows XP, Seven we see Vrinda font by default when
What if we could use our favorite bangle font instead of Vrinda? I think it’d be nice. Let’s see how to do it.
Follow the steps given below:
- Visiting a website that does not specify a font for Bangla
- In Windows Explorer
- Typing on any software like MS Office Softs switching keyboard mode using Avro
What if we could use our favorite bangle font instead of Vrinda? I think it’d be nice. Let’s see how to do it.
Follow the steps given below:
- Download font fixer from http://www.vistaarc.com/download/font_fixer_2.0.0.exe
- If it is windows seven run it as administrator by right clicking. In Windows XP just double click it.
- Choose your favorite Bangla font.
- Click fix it.
- Close the window.
- Restart the computer.
- Visit a website using Google Chrome or type Bangla in any other software you’ll see the change. The default font has been set to your favorite one.
Xbox 360 Repair Tips for the Speedy Xbox Repair
Microsoft has revolutionized the gaming scene by the introduction of the Xbox 360 game. This console has gained huge popularity and people even of older age are hooked up with this game all the time. The least favorite thing for the gamers for the Xbox is that if some problem arises in Xbox, and you have to send it to the repair shop or to the Microsoft office for its repair. But, keeping in mind the craze of the people for this gaming console, many new Xbox repair options have been introduced. Moreover, the experts also recommend some Xbox 360 repair tips, for repairing the Xbox yourself. Some of the major tips are given below.
- One of the major problem reported by the Xbox users, is that the screen suddenly start freezing. The tip in such situation is to unplug the power, and then remove hard drive. After that switch on the gaming console. If the Xbox, starts working then get happy because you have managed to repair the Xbox. If it starts, then the next step is to shut the power off and place the hard drive in its original location inside the console. The same tip can be applied if the “red ring of death” problem arises.
- Another tip that can be followed for Xbox repairis to unplug the power and remove the hard drive. In addition to this remove all the cables that are plugged into the gaming console. If it starts working after this, then you can simply put everything back in its position and then power up the console again.
- Above are some of the repair tips, if you want to repair the Xbox yourself. But, in case you dont and can afford the repair expanses, you can simply send your Xbox to Microsoft repair office. And if luckily, you are still in warranty, then you don’t even have to pay the charges but your Xbox will be repaired free of cost.
- Another tip for Xbox repair is that you can rely on any other repair company other than Microsoft, for the repair as Microsoft repair charges are not affordable by everyone. But, before sending your Xbox to any repair company makes sure that the repair company is authentic and reliable. Otherwise your Xbox won’t be repaired insated got worsen.
In case you have chosen to do Xbox repair yourself, in that case the tip for you is to purchase the repair guides for the repair, but make sure that the guide is authentic and the genuine one and has a money back guarantee. These guides can be really helpful for you but a great tip in respect to guides is that select the guide with the video instruction so that you get the detailed information for repair. So, these Xbox 360 repair tips are really helpful for you, if your Xbox is not working properly and you want it to get repaired as soon as possible.
-- Written by:
Alisha John (Guest blogger)
-- Written by:
Alisha John (Guest blogger)
Friday, August 27, 2010
Moved - Avro Keyboard 4.5.3 and UniBijoy
Moved to fftsys wp blog
Wednesday, August 18, 2010
Booting Solaris Operating System using Windows Boot Loader - redirect
The post has moved here:
http://tech.saoslab.com/post/2010/08/18/boot-solaris-windows-bcdedit-bootloader
http://tech.saoslab.com/post/2010/08/18/boot-solaris-windows-bcdedit-bootloader
Blog is migrating
The post has moved here:
Cannot boot Ubuntu 10.04 after installation of Ubuntu or after installation of Windows Seven
You have just installed Ubuntu 10.04 but you cannot boot to it. System boot straights to Windows Seven and you are feeling deceived. I also faced this issue.
May be there’s a problem with Ubuntu 10.04 distro that’s happening with some PCs having Windows Seven. Well here’s a fix. Follow the steps.
Ø Boot the system using Live CD.
Ø Press Alt+F2 and enter gnome-terminal command. And continue by entering:
$ sudo fdisk -l |
It shows partition table. Here’s mine.
/dev/sda1 29 8369 66999082+ 83 Linux /dev/sda2 * 8370 13995 45190845 7 HPFS/NTFS /dev/sda3 13996 14593 4803435 5 Extended /dev/sda5 13996 14593 4803403+ 82 Linux swap / Solaris |
Now mount Linux boot partition. As you can see from the output of previous command it was sda1 for my system.
$ sudo mount /dev/sda1 /mnt
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
Now chroot into the enviroment:
$ sudo chroot /mnt |
After chrooting, we need not add sudo before commands.
You may want to edit /etc/default/grub file to fit your system (timeout options etc)
# vi /etc/default/grub |
After edition press ESC & then :wq to store and exit. Now install/recover Grub2 via command:
# grub-install --recheck /dev/sda |
Now you can exit the chroot, umount the system and reboot your system:
# exit $ sudo umount /mnt/dev $ sudo umount /mnt/proc $ sudo umount /mnt $ sudo reboot |
How to concatenate/merge Solaris 10 DVD image segments
Here's an example how to merge segments in Unix or Unix like systems:
[sa@ispros.com.bd ]$ cat sol-10-u8-ga-sparc-dvd-iso-a sol-10-u8-ga-sparc-dvd-iso-b > \ sol-10-GA-sp-dvd.iso |
In Windows system, concatenate the files using the following command:
D:\> copy /b sol-10-u8-ga-x86-dvd-iso-a + sol-10-u8-ga-x86-dvd-iso-b \ sol-10-u8-ga-x86-dvd.iso |
The result is a true ISO image that you can use to burn a DVD.
Use software like Nero or MagicISO to burn the DVD in Windows.
Use software like Nero or MagicISO to burn the DVD in Windows.
Why micrsoft.com doesn’t reply to ping
[sa@localhost ]$ ping www.microsoft.com
Pinging lb1.www.ms.akadns.net [65.55.21.250] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 65.55.21.250:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
|
Do you know why Micrsoft.com doesn’t replies to ping?
ping is a powerful small command line tool. Seeing the output of ping command a security analyst or hacker can grab important information about the target hosts. Target hosts can be web servers or a pc on local area network. Information includes Operating System & Version, availability of host etc.
Subscribe to:
Posts (Atom)



















