Recent Updates RSS Toggle Comment Threads | Keyboard Shortcuts

  • iamsrijon 10:28 pm on January 21, 2011 Permalink | Log in to leave a Comment
    Tags: How to run vlc player as root, How to run vlc player as root without compiling again, run vlc as root, run vlc without compiling, run vlc without recompiling   

    How to run vlc player as root without compiling again 

    Vlc player exits with an error if you try to run it from terminal as root. However, there is a trick to run vlc player as root (without recompiling). The credit of the post goes to Net_Spy (http://www.linuxquestions.org/). The steps are as follows.

    Step-1: Open a hex editor preferably ghex/khex. If u didn’t have one then download ghex editor from here and install (after resolving dependencies).
    Step-2: Now open vlc binary (by default /usr/bin/vlc) into the hex editor, make a backup before that.
    Step-3: Now search for the following string

    geteuid

    Step-4: Edit the string as follows

    getppid

    Step-4: click on Save

    That’s all. Thanks :)

     
  • iamsrijon 10:35 am on November 13, 2010 Permalink | Log in to leave a Comment
    Tags: cron, crond, crontab, job scheduling, job scheduling in Cent os, job scheduling in fedora, job scheduling in linux, job scheduling in redhat   

    Job Scheduling in LINUX 

    Cron is a time based job scheduler for Unix based OS.  Most of the Linux Distributions have it installed. Job scheduling is much more simple with cron. First of all, make sure that cron is installed.

    rpm -qa crontabs

    If output shows something then cron is installed. Otherwise we can install it.

    yum install crontabs

    Suppose we have to run a copy operation (for backup purpose) everyday at 12:01pm. The scheduling starts with the following command.

    crontab -e

    Generally the command opens a Schedule file in VI Editor. Then write the following script in that file & save that. If you aren’t familar with VI Editor then visit http://www.cs.colostate.edu/helpdocs/vi.html

    SHELL=/bin/bash

    PATH=/sbin:/bin:/usr/sbin:/usr/bin

    MAILTO=root

    HOME=/

    1. ._____________ minute (0 to 59)
    1. |  .___________ hour (0 to 23)
    1. |  |  ._________ day of month (1 to 31)
    1. |  |  |  ._______ month (1 to 12) OR (jan to dec)
    1. |  |  |  |  ._____ day of week (0 to 6) (Sunday=0 or 7)  OR
    1. |  |  |  |  |      sun,mon,tue,wed,thu,fri,sat
    1. |  |  |  |  |
    1. *  *  *  *  *  command to be executed

    1 12 *  *  *  cp /file1 /file2

    The script is self descriptive as the comments of the script explains the operation. Finally

    service crond restart

    Customize the script to schedule your own tasks. That’s all, Enjoy!!

     
  • iamsrijon 12:12 am on June 9, 2010 Permalink | Log in to leave a Comment
    Tags: Activate Windows 7, activation of win 7, activation of windows 7, Chinmoy Barman Spandan, How to Activate Win 7, How to Activate Windows 7, How to Activate Windows 7 Ultimate, win 7 crack, win 7 key, windows 7, windows 7 crack, windows 7 license   

    How to Activate Windows 7 

    Three Easy Steps should be followed to activate Windows 7.

    • Download the crack from here.
    • Open Windows 7 Loader.exe & Click Install button.
    • Restart your windows 7 & Check Status (window+pause/break).

    That’s all. You may checkout “Advanced options”. The Crack works with any versions of Windows 7 (as the developer claimed). , Enjoy!!
    The Credit of the Post goes to Chinmoy Barman Spandan, my lil bro :)

     
  • iamsrijon 4:18 pm on March 14, 2010 Permalink | Log in to leave a Comment
    Tags: download torrent, download torrent via proxy, How to download Torrent via Proxy, proxy, torrent, torrent via proxy   

    How to download Torrent via Proxy 

    We can download files from torrent via proxy server if proxy server/firewall allows non standard port for TCP communication. The following steps should be followed.

    • Install\Update to latest µTorrent build.
    • Ensure ports are forwarded for bit torrent  (non standard port recommended).
    • Options >> Preferences >> Advanced >> bt.transp_disposition set to 255
    • >> Bit Torrent > Protocol Encryption > Outgoing: Forced >> Check Allow Legacy Connections.
    • >> Connection >> Set µTorrent forwarded port.
    • >> General >> Associate µTorrent associations >> Install IPV6.
    • Click OK.
    • Vista/Windows 7:  Goto Start > Run, write  services.msc & Run.
    • Set IP Helper Service to Automatic and ensure it is started.
    • Restart µtorrent, ensure port is forwarded.

    That’s all, ENJOY!

     
  • iamsrijon 2:18 pm on February 5, 2010 Permalink | Log in to leave a Comment
    Tags: google, google pagerank, Google PageRank via PERL, pagerank, PERL   

    Determine Google PageRank via PERL 

    We can determine Google PageRank with a code of 3 lines in PERL. You need to install WWW::Google::PageRank, download from here. The script is as follows

    #!/usr/bin/perl
    use WWW::Google::PageRank;
    my $pr = WWW::Google::PageRank->new(proxy => ‘http://A.B.C.D:Port/’);
    print scalar($pr->get($ARGV[0])), “\n”;

    Usage: perl <script_name> <static_URL>

    If you use no proxy then delete “proxy => ‘http://A.B.C.D:Port/’&#8221; otherwise mention the Proxy IP address & Port. The script returns an integer as PageRank (Higher is better). That’s all, Thanks.

     
  • iamsrijon 3:43 pm on January 25, 2010 Permalink | Log in to leave a Comment
    Tags: how to install iis 7, How to Install Internet Information Services (IIS 7) on Windows 7 Ultimate, iis7, iis7 in win 7, iis7 in windows 7, install iis 7, installing iis 7   

    How to Install Internet Information Services (IIS 7) on Windows 7 Ultimate 

    internet-information-services-iis7-manager

    If you want to install Microsoft Internet Information Server (IIS 7) on your new Windows 7 computer first time after working with IIS 6 for long years, I believe you will be surprised with the improvements and changes both in IIS and IIS installation process.

    First of all Microsoft has renamed the IIS as Internet Information Services and is not now using Internet Information Server for IIS.
    In this short guide I will summarize the steps of installing IIS 7 on Windows 7 in the way I had recently on my Windows 7 Ultimate Edition PC. I’m using this pc as a home pc but I work on my web projects at home so I run SQL Server 2008 R2 as well as IIS and host ASP.NET applications.

    So if you want to install Internet Information Services (IIS 7) for a developer computer then you can follow me by reading my notes below.
    I do not know the other editions but Windows 7 Proffessional edition and the Windows 7 Ultimate edition are able to install and run IIS 7.

    IIS Installation

    IIS 7 can be installed and features of IIS 7 can be added or removed by Windows 7 “Control Panel > Programs” management screen. You can add and install Windows 7 components and build in applications using the “Turn Windows features on or off” link.

    iis 7 installation on windows 7

    When the Windows Features screen opens and generates in a short time a list of Windows 7 features installed and configured on the current system and a list of Windows 7 features not installed yet.
    When the list is completed drill down the Internet Information Services node.

    Internet Information Services – IIS 7 World Wide Web Features

    Application Development Features

    I started with the World Wide Web Services and Application Development Features.
    Since I’m an ASP.NET developer and aim to work with ASP.NET on IIS 7, I selected the checkbox next to ASP.NET. When you click on ASP.NET the following features will be automatically selected :

    • .NET Extensibility,
    • ISAPI Extensions and
    • ISAPI Filters.

    iis7-application-development-features

    Security

    Then I opened the Security node and marked Windows Authentication beside Request Filtering.
    I did not choose any other options since I do not think to develop using other authorization and authentication features in a short time.
    So I keep them uninstalled. I can installed these features in future somehow.

    iis-7-security-features-list

    Common HTTP Features

    From the Common HTTP Features, I choosed Static Content in order to serve static web pages in .htm and .html file extensions.
    I did not select Directory Browsing feature to install as you will see, since directory browsing function is one of the basic ones that we remove from each web site on IIS 6 or other IIS versions.
    I do not prefer to work with WebDAV now, so I keep WebDAV Publishing feature unchecked too.

    installing-iis-7-common-http-features

    Health and Diagnostics

    From the Health and Diagnostics tools you will find new logging, monitoring and tracing tools helpful for keeping your web server secure. The Request Monitor and Tracing features will also help you to debug your applications by tracing the web request easily.

    install-iis7-health-and-diagnostic-tools-and-features

    Performance Features

    In the IIS 7 Performance Features section there exists compression functions for static content and dynamic content. You can choose any compression feature.

    installing-iis-7-performance-features

    Internet Information Services – IIS 7 Web Management Tools

    The IIS Management Console is a must if you are working with Internet Information Services. It is a handy web management platform which contains tools and serves methods for you to publish, manage, trace and log your web sites and web applications.

    I checked the IIS Management Scripts and Tools. I believe these tools and scripts will make my life easier while working on IIS 7.

    IIS Management Services is used to perform management of Internet Information Services from remote computers. If you want to perform management of your web server from remote computers, you should mark this option. Especially if you are installing IIS 7 on a web server, probably you will want to remote manage your IIS web server.

    install-iis-7-web-management-tools

    After you select all the necessary components, tools and features required for you click on OK button to start installing IIS 7 on Windows 7.
    You will have wait for a few minutes while Windows 7 is installing IIS 7 and changing IIS 7 features.

    installing-iis7-on-windows7-ultimate

    After the Internet Information Services – IIS 7 installation is completed you can browse to the http://localhost in order to see if your IIS7 is installed and start running on your Windows 7 computer.
    If IIS7 (Internet Information Services) is up and running the following static web page will be displayed on your browser.

    iis-7-welcome-screen

    You can open the Internet Information Services (IIS) Manager console by following the below path.

    iis-7-management-console-path

    Open “Control Panel > System and Security > Administrative Tools” then click on Internet Information Services (IIS 7) Manager icon to open the IIS 7 management console.

    I believe web developers and IIS administrators installed IIS before will not face difficulty installing IIS 7 on Windows 7

     
  • iamsrijon 8:29 pm on December 23, 2009 Permalink | Log in to leave a Comment
    Tags: calc, calculator, flex, infix, yacc   

    Infix Calculator in yacc and flex 

    Calc.yacc

    %{
    #include "stdio.h"
    #include "math.h"
    #define YYSTYPE double
    YYSTYPE last_value = 0;
    extern int yylex(void);
    %}
    %token NUMBER
    %token LAST
    %left '+' '-'
    %left '*' '/'
    %left '^'
    %left NEGATIVE
    %left COS EXP SIN SQRT TAN
    %%list:
    | list '\n'
    | list expr '\n' { printf("%.8g\n",last_value=$2);
    }
    ;
    expr: term { $$ = $1; }
    | expr '+' expr { $$ = $1 + $3; }
    | expr '-' expr { $$ = $1 - $3; }
    | expr '*' expr { $$ = $1 * $3; }
    | expr '/' expr { $$ = $1 / $3; }
    | expr '^' expr { $$ = pow($1,$3); }
    | '-' expr %prec NEGATIVE { $$ = - $2; }
    | COS term { $$ = cos($2*3.141592654/180); }
    | SIN term { $$ = sin($2*3.141592654/180); }
    | SQRT term { $$ = sqrt($2); }
    | TAN term { $$ = tan($2*3.141592654/180); }
    ;term: NUMBER { $$ = $1; }
    | LAST { $$ = last_value; }
    | '(' expr ')' { $$ = $2; }

    ;
    %%
    #include "stdlib.h"
    #include "string.h"
    #include "unistd.h"
    int lineno;
    char *fname = "-stdin-";
    int yyerror(const char *s)
    {
    fprintf(stderr,"%s(%d):%s\n",fname,lineno,s);
    return 0;
    }
    main()
    {
    yyparse();
    return 0;
    }

    Calc.flex

    %{
    #include "stdio.h"
    #include "unistd.h"
    #include "stdlib.h"
    #include "math.h"
    #define YYSTYPE double
    #include "y.tab.h"

    extern int lineno; /* current line number */
    extern YYSTYPE yylval; /* value of numeric token */
    %}

    digit [0-9]
    space [ \t]

    %%

    {space} { ; } /* spaces are ignored */
    {digit}+\.?|{digit}*\.{digit}+ {
    yylval = strtod(yytext,0);
    return NUMBER; }
    \*\* { return '^'; }
    last { return LAST; }
    cos { return COS; }
    exp { return EXP; }
    sin { return SIN; }
    sqrt { return SQRT; }
    tan { return TAN; }
    pi { yylval = atan(1.0)*4;
    return NUMBER; }
    e { yylval = exp(1.0);
    return NUMBER; }
    \n { lineno++; return '\n'; }
    . { return yytext[0]; }
    %%

    How to Compile & Run:
    Open Terminal, then

    [root@Srijon Desktop]# yacc -d Calc.yacc
    [root@Srijon Desktop]# flex Calc.flex
    [root@Srijon Desktop]# g++ lex.yy.c y.tab.c -ll
    [root@Srijon Desktop]# ./a.out

    That’s it. ENJOY!!!!!!!!

     
    • refat 9:03 pm on December 23, 2009 Permalink | Log in to Reply

      thanks for this……….
      Kalke bhujaiya dio
      bye.

    • rizel 4:11 am on December 24, 2009 Permalink | Log in to Reply

      joss. partner. go ahead.

      Thanx 4 this contribution of compiler lab…..

  • iamsrijon 7:55 pm on December 16, 2009 Permalink | Log in to leave a Comment
    Tags: সংবিধিবদ্ধ, bangla, bangladesh, freedom, iamsrijon, rajakar   

    সংবিধিবদ্ধ 

    বাংলাদেশ, সহস্রবিন্দু রক্তকণিকার মিলিত মানচিত্র। দেশটির অফুরন্ত সম্পদ সেই আদিকাল থেকেই বিশ্বকে লালায়িত করে আসছে। নবাব আলিবর্দী খাঁ এর শাসনামলে ও ইংরেজ বণিকগন এদেশের নবাবকে তাঁর স্বীয় মর্যাদা দিতেন, বানিজ্যে তাঁদের নিয়ম-নিষেধ মেনে চলতেন। পরবর্তীতে নবাব সিরাজউদ্দৌলার সময় ইংরেজরা তাদের স্বীয় আধীপত্য বিস্তারের জন্য উপমহাদেশে নবাবী প্রথার বিলুপ্তি ঘটিয়ে নিজেরাই উপর মহলের নির্দেশে ক্ষমতা দখল করে। পূর্ববর্তী ইংরেজ শোষনের পাশাপাশি তখন ইংরেজ শাষনকালের সূচনা ঘটল, পরাভূত হল বাংলার স্বাধীনতা।

    স্বাধীন বাংলার পরাধীনতার জন্য আমরা ইংরেজদের দায়ী করি। কিন্তু সেই ইংরেজরা কখনোই বাংলার স্বাধীনতায় হস্তক্ষেপ করতে পারত না যদি বাংলার কতিপয় বাঙ্গালী দোসর তাদের সাথে হাত মিলিয়ে তাদের সাহায্য না করত। সুতরাং তৎকালীন বাংলার পরাধীনতার পেছনে বাঙ্গালীরাই দায়ী।

    বহুকাল পরের কথা। পাক-ভারত উপমহাদেশ ততদিনে বিভক্ত হয়ে গেছে, সৃষ্টি হয়েছে ভারত ও পাকিস্তানের। এই পাকিস্তানেরই একটি অংশ পূর্ব-পাকিস্তান যেখানে সেই বাঙ্গালীদের বসবাস এবং যা আবার ও পশ্চিম-পাকিস্তানের শোষনের সম্মুখিন। শোষন-বঞ্চনা মাত্রা অতিক্রম করতেই শুরু হয় মুক্তিযুদ্ধ, ১৯৭১। স্বাধীন রাষ্ট্র হিসাবে পূর্ব-পাকিস্তানের নাম হয় ‘বাংলাদেশ’। বাঙ্গালী জাতি যখন তাদের দেশ-মাতৃকার সার্বভৌমত্ব রক্ষায় সোচ্চার, যুদ্ধরত; ঠিক তখনই একদল স্বাধীনতাবিরোধী, রাজাকার, এই বাঙ্গালী জাতির কলঙ্ক, পাকিস্তানীদের সাথে হাত মিলিয়ে বাংলার স্বাধীনতাকামী জনতার বিরুদ্ধে লেগে পরে। তাদের নৃশংস তৎপরতায় বাংলার বহু দামাল ছেলেরা বিনা দোষে অকালে প্রাণ হারায়। বাঙ্গালী জাতির গর্ব, বুদ্ধিজীবী-শিক্ষিত সমাজ কুচক্রী দেশদ্রোহী রাজাকার এবং স্বগোত্রীয় আল্‌বদর, আল্‌শামস ওরফে শান্তি বাহিনীর তৎপরতায় পাক্‌-পশুদের হাতে ধরা পরে এবং বন্দুকের গুলিতে নয়, বেয়নেটের আঘাতে প্রাণ হারায়। দেশটি হয়ে পরে মেধাশূন্য।

    পাকিস্তানী জান্তা এদেশের যতটা ক্ষতি করেছে, তার চেয়ে অনেক বেশি অপূরনীয় ক্ষতি করেছে দালাল্‌রা, বিক্রি করতে চেয়েছিল দেশের স্বত্তা। যারা দেশের এত বড় ক্ষতি করেছে তাদের তো এই স্বাধীন বাংলাদেশের নাগরিকত্ব পাবার যোগ্যতা নেই। পাকিস্তান কেন তাদের পুনর্বাসনের ব্যবস্থা করছে না; সুশীল সমাজ তাদের এই বাংলাদেশে আর দেখতে চায় না।

    হঠাৎ করেই বুকের মধ্যে একটা পুরোনো ব্যাথা চিনচিনিয়ে ওঠে যখন মনে পড়ে সেই স্বাধীনতাবিরোধীরাই আজ স্বাধীনতা অর্জন, রক্ষার কথা বলে ( আমরা স্বাধীনতা এনেছি, আমরাই তা রক্ষা করব: আলী আহসান মো. মুজাহিদ, http://bdnews24.com/bangla/details.php?cid=3&id=116335&hb=4 )

    কয়দিন আগেই তো তারাই ছিল জনগনের প্রতিনিধি। তারা এদেশের জনগনের কল্যানে কাজ করেন! স্বাধীন বাংলাদেশে রাজাকারদের এই উন্নত অবস্থা এটাই প্রমাণ করে যে বাংলাদেশ আজও স্বাধীনতা থেকে অনেক দূরে। আজ কথাগুলো শুধু লেখা যায় আর পড়া যায়, কিন্তু মুখ ফুটে বলা যায় না।

     
    • সিয়াম 4:38 pm on January 30, 2010 Permalink | Log in to Reply

      এইসব দালালদের তো একপা কবরে। কিন্তু এসব দালালরা যেসব ছানা পোনা রেখে যাচ্ছে সেগুলো নিয়ে আমার ভয় ।

      • iamsrijon 1:53 pm on February 5, 2010 Permalink | Log in to Reply

        কি আর বলবো? লেখাটা আমার ডায়েরিতে যখন লিখেছিলাম (class 8 ) তখন অনেক কিছু লিখতে-বলতে ইচ্ছে করতো, এখন আর কিছুই বলতে ইচ্ছে করে না

    • সমীরণ পাল 5:50 pm on February 18, 2010 Permalink | Log in to Reply

      আসলে মাঝে মাঝে মনে হয় যে আরেকটা মুক্তিযুদ্ধ দরকার। যেটা হবে এসব স্বৈরাচার দের বিরুদ্ধে বাংলাদেশের সাধারণ জনগণের যুদ্ধ।

      • iamsrijon 1:06 pm on March 1, 2010 Permalink | Log in to Reply

        আরেকটা মুক্তিযুদ্ধ হলে হয়তো ভালো হতো, কিন্তু আজ মানুষের দেশপ্রেম নিয়ে আমি সংকিত

  • iamsrijon 3:19 am on November 3, 2009 Permalink | Log in to leave a Comment
    Tags: compiling trix, compiling Vypress Chat in fc10, installing trix, installing Vypress Chat, trix, vyPress, Vypress Chat, Vypress Chat in fc10, Vypress Chat in fedora 10, Vypress Chat in LINUX [fc10]   

    Vypress chat in Linux fc10 

    Vypress Chat is a user-friendly application for real-time chatting in small office or home office (SOHO) local networks. TriX chat is based on the VyQChat [unix clone of Vypress Chat]. You can install Trix in LINUX by following these steps.

    • Download Trix from here.
    • Download Qt from here.
    • Extract Qt & move the folder “qt-x11-free-3.3.8″ into /usr/local/ & rename it as “qt”.
    • Open /root/.profile as root & type the following & save

      • #!/bin/bash
      • QTDIR=/usr/local/qt
      • PATH=$QTDIR/bin:$PATH
      • MANPATH=$QTDIR/doc/man:$MANPATH
      • LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

    • Open terminal & type the following to build Qt

      • cd /usr/local/qt
      • ./configure && make

    • Extract trix-0.94.tat.bz2 & change the directory into the folder trix-0.94.
    • Install Trix
      • ./configure –disable-mt –with-qt-dir=/usr/local/qt && make
    • Goto “/etc/rc.d/rc5.d” & delete K##iptables, K##ip6tables, S##iptables, S##ip6tables. “##” denotes any combination of two digits.
    • If u want to run Trix at boot time then make a link & rename it “S##trix” into “/etc/rc.d/rc5.d”
    • Reboot the pc.

    That’s all, ENJOY!

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
Follow

Get every new post delivered to your Inbox.