বৃহস্পতিবার, ২৯ মার্চ, ২০১৮

How it feels like reading a book in a kindle reader?

Recently I have a amazon kindle reader as gift from my little brother. Though I am in temptation to have one for 3 years. One of my friend recommended it to me. Reading pdf is not a good idea from smart screen. And all books are not available as hard-copy. I will put my overview about Kindle reader.

Benefits
----------

  1. Yes, It feels like reading a newspaper.
  2. It is very light.
  3. You don't have to remember where you left previous time.
  4. You don't need your charger for 6-7 days read.
  5. You can store unknown words as flash card and in future skim through the words and where in a book this appeared.
  6. You can select a word to know its meaning from built-in oxford dictionary.
  7. It can guess your required time to finish a book.
  8. It can store 5mb of 800 ebooks.
  9. It supports popular ebook formats like .epub .mobi  and others.
  10. Amazon keeps your library backed up to amazon cloud.
  11. You have options of custom font and font size.
Problems
-----------
  1. Amazon kinlde basic does not have backlit. Many user complain that because they can not read in dark. But in my opinion it makes it more like a book than another electronic device.
  2. Yes Kindle supports PDF format. But it is not a good idea to read compact text figure books in pdf format in kindle. The limitation is not a problem with kindle. It is because of the nature of pdf format. To become portable pdf don't allow reformatting. So how can this fit in a small screen without zoom-in and zoom-out.
  3. But you can convert pdf books with only texts to epub or mobi formats and enjoy them.

মঙ্গলবার, ১৩ মার্চ, ২০১৮

Simple tic-tac-toe game implementation using min-max algorithm

Recently I have implemented tic-tac-toe game for my Artificial Intelligence Lab. For this purpose I have followed this article for enriching  min-max algorithm knowledge and to get insight of tic-tac-toe actions.

https://www.neverstopbuilding.com/blog/2013/12/13/tic-tac-toe-understanding-the-minimax-algorithm13

Here is my C++ code for this article's pseudo code.

https://github.com/avijit1258/AI_lab_codes/blob/master/tic_tac_toe.cpp

For better learning of alpha-beta pruning kindly follow Artificial Intelligence: A modern Approach By Peter Norvig and Russel

রবিবার, ৫ নভেম্বর, ২০১৭

Productivity tools I love


  1. f.lux (for windows) & redshitf(for linux)
  2. Pomodone app
  3. StayFocusd (blocking disturbing sites)
  4. Lastpass (password manager )
  5. Evernote
  6. medium.com to read more about topics I care
  7. listen music on soundcloud.com
  8. razam for screen recording
  9. ted.com for ideas
  10. trello.com for organizing projects
  11. Google calendar for maintaining schedule
  12. TexStudio for latex ide
  13.  Artha for looking up words meaning in pop-up





শুক্রবার, ৬ অক্টোবর, ২০১৭

NS2 network simulator pros and cons

Installation
------------------
1. To install in Ubuntu-16.04 use the following commands
sudo apt-get install ns2  
        sudo apt-get install xgraph
    
2. For installing nam you have to download it from here (in ubuntu repositories nam is depricated .
Ubuntu 64 bits
Ubuntu 32 bits

3. Now run the following command to install nam
cd ~/Downloads
        sudo dpkg --install  nam_1.14_amd64.deb (for 64 bit ubuntu)
        sudo dpkg --install  nam_1.15-10_i386.deb (for 32 bit ubuntu)

4. Now restart you terminal and run the command
ns
It will show % as output which indicates you have successfully installed ns2 program .

To run a tcl program in ns2
--------------------------------------------
 1. Download ns-simple.tcl  program . And run following commands in terminal
cd ~/Downloads
ns ns-simple.tcl
Now you should see the output in nam animator .

For getting started with ns2
---------------------------------------------
1. For tutorial and documentation
Tutorial
NS2 Documentation

2. For 2000 examples of tcl program

https://drive.google.com/file/d/0B7S255p3kFXNUUpUYWJ6TTdseWc/view?usp=sharing


Resource used
-----------------------
http://nile.wpi.edu/NS/simple_ns.html
https://www.linuxquestions.org/questions/ubuntu-63/installation-problem-in-nam-4175604400/#post5701136


শনিবার, ১৬ সেপ্টেম্বর, ২০১৭

Windows Shortcut for different task

JVM Bind exception solution while doing client-server application . To free an application from port busy problem. 
 
C:\Users\username>netstat -o -n -a | findstr 0.0:3000
   TCP    0.0.0.0:3000      0.0.0.0:0              LISTENING       3116

C:\Users\username>taskkill /F /PID 3116

বুধবার, ২৩ আগস্ট, ২০১৭

LInux utility

1. For closing a freezed program

Press ALT+F2 then run xkill command . Then a cross will appear at mouse cursor . Place this cursor to freezed program tab .

2. For deleting files of a specific type

find . -name "*.o" -type f -delete

শনিবার, ১২ আগস্ট, ২০১৭

Getting started with latex in ubuntu simple

  1. apt-get install texlive (for ubuntu)
  2.  
    \documentclass[a4paper,12pt]{article}
    \begin{document}
    
    The foundations of the rigorous study of \emph{analysis}
    were laid in the nineteenth century, notably by the
    mathematicians Cauchy and Weierstrass. Central to the
    study of this subject are the formal definitions of
    \emph{limits} and \emph{continuity}.
    
    Let $D$ be a subset of $\bf R$ and let
    $f \colon D \to \mathbf{R}$ be a real-valued function on
    $D$. The function $f$ is said to be \emph{continuous} on
    $D$ if, for all $\epsilon > 0$ and for all $x \in D$,
    there exists some $\delta > 0$ (which may depend on $x$)
    such that if $y \in D$ satisfies
    \[ |y - x| < \delta \]
    then
    \[ |f(y) - f(x)| < \epsilon. \]
    
    One may readily verify that if $f$ and $g$ are continuous
    functions on $D$ then the functions $f+g$, $f-g$ and
    $f.g$ are continuous. If in addition $g$ is everywhere
    non-zero then $f/g$ is continuous.
    
    \end{document}
    
    
    Save this content to test.tex named file . 
     
    3.latex test.tex (for compiling)
    4.xdvi test.dvi & (for seeing output)
    5.pdflatex test.tex  (for generating output)
    6.htlatex text.tex (for getting output in html file)
    To install htlatex in ubuntu type (sudo apt install tex4ht 
     
    source
     
    http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/ 
     
     

How it feels like reading a book in a kindle reader?

Recently I have a amazon kindle reader as gift from my little brother. Though I am in temptation to have one for 3 years. One of my friend ...