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

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/ 
     
     

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

গিটহাবের অ-আ-ক-খ !!!!!

১। প্রথমে git এর windows ক্লাইন্ট ডাউনলোড করে ইন্সটল করতে হবে ।

২। তারপর project ফোল্ডার সিলেক্ট করে ctrl+shift+right-click করি । তাহলে ওই ফোল্ডারে কমান্ড লাইন ওপেন হবে ।

৩। এইবার git init কমান্ডটি রান করি ।

৪। তারপর

git add .

git commit -m "change message"

git remote add origin "put your github repository url"

git push origin mater

git pull origin master


মঙ্গলবার, ২৮ ফেব্রুয়ারী, ২০১৭

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 ...