Bookmarklet for Google Dictionary
Sajid Muhaimin ChoudhuryPosted by in Uncategorized on December 23rd, 2009, 9 Poush 1416
A reader of my blog was kind to let me know by telephone that he was eager to use Google dictionary with my inline dictionary bookmarklet. So today I am launching the Google version of my bookmarklet. As usual, drag them to your browser bar to use. The English to Bangla dictionary is still being developed, and not that robust.
Google Sites – Home of my academic website
Sajid Muhaimin ChoudhuryPosted by in Uncategorized on December 22nd, 2009, 8 Poush 1416
I like wordpress as a blogging environment. And freebeehosting is a as great as a hosting platform can ever be. But for my academic materials, I need a hosting platform that is 24×7 available without any interruption. Google sites seemed to be a good option.
The BUET website management allows to upload 5 files at a time. So all I did was to create an index.html file with iframe set to my google site page.
Google sites give options to rapidly create a website. I edited a default theme to incorporate the BUET logo into the banner. Problem is, you can’t have any custom CSS or javascript code, and if you are logged in, the google icons appear overhead.
Nevertheless, it is where I am hosting all my course related materials.
My BUET page: teacher.buet.ac.bd/sajid
My actual Sites Page: sites.google.com/site/smcbuet/
Google Brings Indic IME
Sajid Muhaimin ChoudhuryPosted by in Software on December 22nd, 2009, 8 Poush 1416
Avro and other phonetic typing software enabled us to forget about memorizing the so called “Bijoy Keyboard”, where h means ba and l means da. Any way, I don’t like their keyboard for one reason: you have to keep pressing the shift key to switch between letters. To me, phonetic typing means I’ll type the pronunciation in English, and computer will understand what I mean. That is when Google Transliteration came. First it started as a browser based text only editor. Then it brought rich text editor support and bookmarklets to support any web based text editor. But it still isn’t enough. I do a lot of typing using windows live writer and Microsoft Word. So I was still somewhat dependent on Ekushey and Avro. Now google has decided to end that misery. Google has launched it’s own version of Ekushey, theGoogle Indic IME. Imagine what google has to offer:
- Offline Support – No dependency on internet connection.
- Word Completions – Dictionary based word completions for prefixes.
- Personalized Choices – Remember user corrections for personalized service.
- Easy Keyboard – Dictionary enabled keyboard to enter rare and complex words.
- Cool Customization – Customize suggestions page size, display font and more.
Beware, however that Google will be able to access every word you type, so careful what you are typing. Download it from : http://www.google.com/ime/transliteration/index.html Some people may have some difficulty with google update behind a firewall. (Especially my BUET colleagues). For them, here is a direct link to the installer.http://sites.google.com/site/sajiduc/my-files/googlebengaliinputsetup.zip

Kotodin Dekhina Mayer Mukh
Sajid Muhaimin ChoudhuryPosted by in Uncategorized on November 18th, 2009, 4 Agrohayon 1416
খালিদ হাসান মিলুর গাওয়া অসাধারণ একটি গান|
কতদিন দেখিনা মায়ের মুখ
শুনি না সেই কোকিল নামের
কালা পাখির গান
হায়রে পরান
হায় রে আমার গাঁয়ের বাড়ি
সারি সারি গরুর গাড়ি
মরা নদীর চর
দিঘির জলে হাঁসের খেলা
ঘরের চালে দুপুর বেলা
রঙ্গিলা কইতাম
উঠানে ছরাইনা সোনার ধান
হায়রে পরান
কতদিন ধরিনা ডোবায় মাছ
করি না সেই মরা নদীর
মিঠা পানি পান
হায়রে পরান
হায়রে আমার রাখল মিয়া
কাজলা গরুর গোসল দিয়া
মাঠে নিয়া যায়
বিকাল বেলা বাঁশের বনে
ঝিকি মিকি রোদের সনে
মন মিলাইতে চায়
ভুলিতে পারি না মাটির টান
হায় হায়রে পরান
কতদিন রাখিনা চাঁদের খোঁজ
দেখিনা সেই তারার চকের
মিছা অভিমান
হায় রে পরান
Get Definitions of Words in your web Browser
Sajid Muhaimin ChoudhuryPosted by in Bookmarklet on October 1st, 2009, 16 Ashin 1416
The Lost Symbol – Symbol Quest Spoiler
Sajid Muhaimin ChoudhuryPosted by in Literature on September 9th, 2009, 25 Bhadro 1416
I solved the lost symbol- symbol quest. Select the text below to reveal solution.
!!!Spoiler Alert!!!
Without end
The “S” in Mozart’s D.S
Leo’s chaste neighbour
IESOUS CHRISTOS THEOU YIOS SOTER
Quicksilver
Scribe of Sidereus Nuncius was the first to see rings around it
Silence for Berlioz, Bizet and Bartok
Circle’s circumference divided by its diameter
Octothorpe
Sounds like a resident in the Garden of Eden
Hood ornament for Emil Jellinek’s daughter
French Monarch’s lily
Robert Langdon’s favourite symbol
Meditative chant
Opposing, yet unified
Greek Goddess of Triumph
Venus’ Hand Mirror
The Golden Ratio
Proofreader’s mark from the Latin “Delere”
Anagram of “Madras Pen”
The cross of Bogart’s Falcon
Who uses this symbol
An age in the hair of Broadway
Casanova, Mozart and Houdini had this in common
Zeus’ Games
The fork of Zeus’ younger brother
Centaur archer
One eyed man + two ravens
Alpha’s antithesis
Demisemiquaver
“Fourth rock” from the sun
Hieroglyph of seven body parts in one
Latin “recipe” offered by doctors
Kafka, Poe or Khepri Embodied
Visit Prothom Alo and other websites using Google Chrome and Mozilla Firefox
Sajid Muhaimin ChoudhuryPosted by in Bookmarklet on July 22nd, 2009, 7 Srabon 1416
This Article is under construction.
Prothom Alo and other Bangla news papers use non Unicode fonts. These pages cannot be viewed properly using Firefox or Google Chrome.
Use this bookmarklet to convert sites such as Prothom Alo, … to Unicode
[ইউনিকোড]
This bookmarklet is recommended. Drag it to your bookmark bar, and click on it to correct Bangla rendering in Firefox or Chrome
[Ascii 2 Uni Bangla]
News sites use three type of encoding. Use these bookmarklets to Change manually, the encoding of the page. (If you select the wrong encoding, press refresh to reload the page)
[BijoyMJ 2 UniBangla]
Used in amadershomoy.com, ittefaq.com, bhorerkagoj.net, manabzamin.net, jaijaidin.com
Used in shamokal.com
[Alpona 2 UniBangla]
Used in Prothom Alo
To learn more about how to use a bookmarklet, in Internet Explorer, Firefox, and Google Chrome visit:
http://t13n.googlecode.com/svn/trunk/blet/docs/help_bn.html
If you are using firefox, or using chrome with grease monkey, you can add the script directly without needing to press the bookmarklet every time.
Declaration: The Grease monkey scripts are largely adapted, and to be more specific, copy-pasted and minorly edited from the Poroshmoni extesion by Rifat Nabi . Special thanks to him for providing the firefox extension. However, in the firefox extension page, no license is specified for the extension. So it might be copyright protected. This article is for educational purpose only, following the “Fair Use” policy of US Copyright law. You are forbidden to use this information for commercial purpose
Latex Equations in Blog
Sajid Muhaimin ChoudhuryPosted by in Uncategorized, web-development, wordpress on May 30th, 2009, 16 Joishtho 1416
Warning: fopen(/home/sajidmc/domains/sajidmc.net/public_html//wp-content/cache/tex_6d168bf791ae7264421e7ec0d2068202.png) [function.fopen]: failed to open stream: No such file or directory in /home/sajidmc/domains/sajidmc.net/public_html/wp-content/plugins/latex/latex.php on line 100
Warning: fputs(): supplied argument is not a valid stream resource in /home/sajidmc/domains/sajidmc.net/public_html/wp-content/plugins/latex/latex.php on line 101
Warning: fclose(): supplied argument is not a valid stream resource in /home/sajidmc/domains/sajidmc.net/public_html/wp-content/plugins/latex/latex.php on line 102
Using the Wordpress for Latex Plugin, I’m able to use Latex Equations in my post now

This might come in handy, for explaining some equations here. I could not install Latex on my webserver, so I am just using the default public server given by wordpress
http://wordpress.org/extend/plugins/latex/
Google Bangla Transliteration
Sajid Muhaimin ChoudhuryPosted by in Personal on May 29th, 2009, 15 Joishtho 1416
If you are not familiar with the Bangla keyboards, and the avro easy keyboard doesn’t seem that intutive to you, here is what google offers: (http://www.google.com/transliterate/indic/Bengali)
- Google Transliterate
Efficient Matlab Coding
Sajid Muhaimin ChoudhuryPosted by in Programming, matlab on May 20th, 2009, 6 Joishtho 1416
(This article is inspired by Omar’s Article)
Most people programming at Matlab first get accustomed to some other programming languages like C, C++, Java or even Visual Basic. They learn tactics of manipulating arrays with loops. But as more and more loops are added to a program, the clumsier it gets. In Matlab also, the techniques learned at the previous mentioned languages can apply. But Matlab has some other advantages. In Matlab, every variable is a matrix. This gives some inherent advantages of matrix manipulation. In C, (and in C++ without having a custom class) you will not be able to do a matrix multiplication by simple A*B, in Matlab, you have a provision of doing so.
Ok let’s start with some basic array operations. These may not be arcane secrets, still it’s always good to know.
Identity Matrix, Zero Matrix and Unity Matrix
n = 3; A = eye (n); %creates n x n identity matrix A = eye (n, 1); %creates n x 1 identity matrix A = zeros(n); % creates n x n zero matrix (all elements zero) A = ones(n); % creates n x n matrix (all elements one)
A set of linearly increasing values
This one is useful if you are making a sine wave or other functions. linspace (initialvalue, finalvalue, number of samples)
t = linspace (0, 2*pi, 1000); %creates linearly increasing array with values 0 to 2*pi S = sin (t); % creates the sine wave
Accessing a particular row or column
A(i,:) = 1 => makes all the elements of row i of matrix/vector A equal to 1. A(:,i) = 1 => does the same thing with column 1. B = A(i,:) => stores row i in a row vector B
Accessing more than one rows/columns simultaneously
A = ([1, A([i,j],:) = 1 => makes all elements of rows i and j equal to 1 B = A(:,[i,j])=> B is a matrix with columns i and j of A as its two columns
Swapping rows / columns
A([i,j],:) = A([j,i],:) => swaps the elements of rows i and j A(:,[i,j]) = A(:,[j,i]) => swaps the column elements of col i and col j
Replacing Values of A
To make a unipolar signal bipolar:
A = double(A); % required if the signal is of boolean type A (A==0) = -1;
The find( ) function
Used to find index of elements satisfying some condition.
find(A) % returns indices of all non-zero elements find(A > 5) % finds indices of all elements greater than 5. length(find(A==1)) %number of ones in A
Inserting blank Rows / Columns:
A = [zeros(1,n-1); A]; % insert column A = [A zeros(n,1)]; %insert Row
Repeating or tiling a Matrix
A = [1 2 3; 4 5 6]
A =
1 2 3
4 5 6
>> repmat(A, 3, 3)
ans =
1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6
1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6
1 2 3 1 2 3 1 2 3
4 5 6 4 5 6 4 5 6
Deleting a row/column of a matrix
A(i) = [] % Deletes the i-th element of a row/column vector A
A(i,:) = [] % Deletes an entire row A(:,i) = [] % Deletes an entire row
Chaning Size of Matrix
Wanna make a 3×4 matrix a 2×6 Matrix?
use the reshape command
A = [2 3 4 5; 6 7 8 9]
A =
2 3 4 5
6 7 8 9
>> reshape (A, 4, 2)
ans =
2 4
6 8
3 5
7 9
If you want to make only a vector,
B = A(:);
Warning: reshape, *ALWAYS* takes data from columns, and put them in column serially. You may get unexpected result, if, you want the data to be taken from rows instead. Try to transpose the matrix (A') instead.
Ctrl+C. Break the running loop of Matlab.
You may need to select the command window first to activate this.
Making Plots pretty
http://blogs.mathworks.com/loren/2007/12/11/making-pretty-graphs/
http://blinkdagger.com/matlab/matlab-tips-and-tricks-on-creating-better-figures-and-plots
http://www.nada.kth.se/~hjorth/matlab/
Repeating Values of a Matrix
Kronecker Tensor Product
Use the Kronecker Tensor Product function (kron),
A = [1 2 3]
A =
1 2 3
>> kron (A, ones(1, 3))
ans =
1 1 1 2 2 2 3 3 3
Tony’s Trick
B = A(ones(3,1),:)
*Example:
>> A =[1 2 3] % A is a row vector
>> B = A(ones(3,1),:)
>> B =
1 2 3
1 2 3
1 2 3
>> A = [1 ; 2 ; 3] % A as a column vector
>> B = A(:,ones(3,1))
>> B =
1 1 1
2 2 2
3 3 3
And WOW! it’s really faster for replication in one dimension! For matrix A given above:
Elapsed time is 0.014354 seconds. %Using repmat()function
Elapsed time is 0.000063 seconds. %Using Tony’s trick
Repeating Matlab row elements:
Based on the Tony’s trick mentioned above, this is a program I’ve written for the ‘time scaling’ a matrix by repeating elements.
%time scaling function y = timescale (Mat, L) [m, n] = size(Mat); temp = zeros(m, n*L); for i = 1:m cur_row =Mat(i,:); cur_row = cur_row (ones(1,L),:); temp(i,:) = reshape(cur_row, 1, n*L); end y = temp; end
![[Bloglines]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/bloglines.png)
![[del.icio.us]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/google.png)
![[Twitter]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/twitter.png)
![[Yahoo!]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/email.png)
Recent Comments