Thursday, December 29, 2011

Burning LaTeX

    Most of the people who write scientific notes, have trended to use LaTeX editors. You may think why don't they use MS Word or any other WYSIWYG editors. Well, LaTeX is much complex and platform independent, therefore users might have some benefits rather than using MS Word. Learning LaTeX is not much difficult, but finding a proper tutorial can be difficult. So I decided to give a little help for people who haven't experienced with LaTeX documenting.

In this example I'll use "TexLive" package.

1. Installing "TexLive" is not different from others. (in Debian/Ubuntu)

# apt-get install texlive

Well, this may take a long time, which depends on your internet connection. It will install all the packages which is related to "LaTeX" and some other tools as well. If you have the distribution CD (full), you'd better check that out for this package.

2. Once you installed, you can start creating LaTeX files. These files can be edited by using any text editor and save it with ".tex" extinction.

3. This is just a small example, if you need further documentation syntax, you need to check LaTeX wiki.



4. To view the document you need to generate a pdf file. Only a single command required.

# pdflatex sample.tex

5. Use any pdf viewer to open the "sample.pdf" file.

Sunday, October 30, 2011

Drop box in Debian

      If you find some difficulties with file sharing, Dropbox is one of the best tools you can use. If you haven't tried yet, visit Drop box web site. click here


 Good news : Drop box can be used under Linux platform.

 Bad news    : It only supports for a few distros. You need to compile the                                 source code for the other distros. linux version

Here are the listed distros.


I downloaded the Debian version and installed using the normal dpkg command.

        dpkg -i nautilus-dropbox_0.7.0_i386.deb 


This is just an installer, not the actual dropbox daemon. To install dropbox daemon you need to use following command.

       dropbox start -i


That's it. Once it finishes the installation, it will load a wizard to login, basic settings and file selection. enjoy !!!

Friday, October 28, 2011

SETI@home

       SETI (search for extraterrestrial intelligence)  is a project which searches for intelligent life on other planets. Any individual can become involved with SETI research by using Berkeley Open Infrastructure for Network Computing (BOINC) program. more info



        In this post,  I'm going to show you how to install BOINC in Debian / Ubuntu and involved with SETI project.

1. Download BOINC and install to the system using mirror sites.

     apt-get install boinc-manager boinc-client


2. Open BOINC manager


     or you can use the terminal and type

     boincmgr

3. Then it will give a wizard



4. You need to select the project.

                               

5. Then it will ask for user login. If you haven't registered before, you need to     sign up for the project.

6. Once you finish the task it will load the BOINC client with SETI logo.


    For advance configuration click on "Advanced View".

7. Now you are done. This is a finale preview. 


  PS: Once you're involved with SETI@home project, it will take your computer resources to their work. If you don't want this, you can stop the program at any time.

Tuesday, October 25, 2011

Ancient Computer

       Here I am again. Have you ever heard about Antikythera mechanism ?


        This is kind of a computer which has been created in 150-100 BC. click here for further information. (wiki)  There is a nice documentary program called Ancient Aliens from History channel. You can find many information about unbelievable things including this ancient computer. I'd like to post online streaming links to watch that documentary. Enjoy !!!

Ancient Aliens Season 1
    
    Episode 0: Chariots, Gods and Beyond
    Episode 1: The Evidence
    Episode 2: The Visitors
    Episode 3: The Mission
    Episode 4: Closer Encounters
    Episode 5: The Return

Ancient Aliens Season 2

    Episode 1: Mysterious Places
    Episode 2: Gods and Aliens
    Episode 3: Underwater Worlds
    Episode 4: Underground Aliens
    Episode 5: Aliens and the Third Reich
    Episode 6: Alien Tech
    Episode 7: Angels and Aliens
    Episode 8: Unexplained Structures
    Episode 9: Alien Devastations
    Episode 10: Alien Messengers

Ancient Aliens Season 3

    Episode 1: Aliens and the Old West 1, 2, 3
    Episode 2: Aliens and Monsters 1, 2, 3
    Episode 3: Aliens and Sacred Places 1, 2, 3
    Episode 4: Aliens and Temples of Gold 1, 2, 3
    Episode 5: Aliens and Mysterious Rituals 1, 2, 3
    Episode 6: Aliens and Ancient Engineers 1, 2, 3
    Episode 7: Aliens, Plagues and Epidemics 1, 2, 3
    Episode 8: Aliens and Lost Worlds 1, 2, 3
    Episode 9: Aliens and Deadly Weapons 1, 2, 3
    Episode 10: Aliens and Evil Places 1, 2, 3  
    Episode 11: Aliens and the Founding Fathers 1, 2, 3
    Episode 12: Aliens and Deadly Cults 1, 2, 3
    Episode 13: Aliens and the Secret Code 1, 2, 3
    Episode 14: Aliens and the Undead

Special Thanks for the up-loader Time4TruthDOTorg.

Friday, August 19, 2011

Midnight Commander

       What is your file manager ? It can be Nautilus, Thunar or Dolphin. All these file managers are quite popular in most of the Linux distributions. If you are using the core installation of any Linux distribution (install the OS without a Desktop Manager) for a server or any kind of secure system, you might have problems with managing files using the terminal. Midnight Commander is a good tool for terminal base file manager. It doesn't require a X-window system.


Installation : you can use your mirrors to download.

ex : in Debian type apt-get install mc

Usage : type mc command and you are in. use function keys to manage files / folders.

ex : to view a file use F3

More : for more info, type man mc




Saturday, June 25, 2011

Ajax to PHP

     If you are planing to develop a real time web application or a web based tool, you may use javascripts or action scripts. In javascripts you can only develop only client side applications. If you want to develop a server side application, like a registration form or login page, then you need to use server side scripting language to do that. Most popular server side scripting languages are PHP,ASP.NET and JSP.

The main disadvantage of the server side scripting languages is you need to submit the entire web page to the server.

Is there any solution ?

Yes, simply you can use jQuery.

How to use jQuery ? where can I find that ?

You can download jQuery (it's not a program, it's a javascript .js file) from their official web site. click here

This is a simple usage of jQuery.



This is the ajax code which calls the php function. You can call this in button click event or any other event.

1. The java script function should be call with a string parameter.

2. You should include the path of the jquery.js inside <script>  tags.

3. make a variable which include the path of .php file. (line 5)

4. In line number 6-8 is the function of jquery.js which makes a html post to the php script.

5. You may see a few parameters in that function.
             url - which explained before
             name - you can directly call $_POST['name'] in php. It will gives                             the  value of param
             param - the parameter should pass to this function when it calls.
             mname - a variable which takes the returning value in php script.

6. line 7, Div1 is the id of a div tag and by calling html().show() function, it's inner html should assign with mname value.



This is the php code, which gets the input from the html page and return the string to the html page. (strrev() is the function which reverse a string).