Bookmarklet for Google Dictionary

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.

[English to Bangla]

[English to English]

image

3টি মন্তব্য

Google Sites – Home of my academic website

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.

image

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/

Update: Some of my friends are also using this technique. I’ll keep link of their sites here:

Raisul  - http://teacher.buet.ac.bd/raisulislam (Hosting24)

Shanto – http://teacher.buet.ac.bd/ashfanoor (Google Sites)

মন্তব্য নেই

Google Brings Indic IME

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, the Google 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

Google Indic IME

মন্তব্য নেই

কতদিন দেখিনা মায়ের মুখ

খালিদ হাসান মিলুর গাওয়া  অসাধারণ একটি গান|

কতদিন দেখিনা মায়ের মুখ
শুনি না সেই কোকিল নামের
কালা পাখির গান
হায়রে পরান

হায় রে আমার গাঁয়ের বাড়ি
সারি সারি গরুর গাড়ি
মরা নদীর চর

দিঘির জলে হাঁসের খেলা
ঘরের চালে দুপুর বেলা
রঙ্গিলা কইতাম

উঠানে ছরাইনা সোনার ধান
হায়রে পরান

কতদিন ধরিনা ডোবায় মাছ
করি না সেই মরা নদীর
মিঠা পানি পান
হায়রে পরান

হায়রে আমার রাখল মিয়া
কাজলা গরুর গোসল দিয়া
মাঠে নিয়া যায়
বিকাল বেলা বাঁশের বনে
ঝিকি মিকি রোদের সনে
মন মিলাইতে চায়

ভুলিতে পারি না মাটির টান
হায় হায়রে পরান

কতদিন রাখিনা চাঁদের খোঁজ
দেখিনা সেই তারার চকের
মিছা অভিমান
হায় রে পরান

মন্তব্য নেই

আভিধানিক অর্থ সরাসরি আপনার ব্রাউজারে দেখুন

আপনি যদি কোন শব্দের আভিধানিক অর্থ পেতে চান, তবে ব্রাউজার উইন্ডোতে সরাসরি তা পেতে পারেন। এই বুকমার্কলেটটি ব্যবহার করুন:

Define It

ব্যবহার:

লেখা থেকে কোনও শব্দ নির্বাচন করুন ও Define It!  এ ক্লিক করুন। আপনার ব্রাউজার উইন্ডোতে সরাসরি শব্দের অর্থ দেখাবে

image

4টি মন্তব্য

The Lost Symbol – Symbol Quest Spoiler

I solved the lost symbol- symbol quest. Select the text below to reveal solution.

!!!Spoiler Alert!!!

image Without end

image The “S” in Mozart’s D.S

image Leo’s chaste neighbour

image IESOUS CHRISTOS THEOU YIOS SOTER

image Quicksilver

image Scribe of Sidereus Nuncius was the first to see rings around it

image Silence for Berlioz, Bizet and Bartok

image Circle’s circumference divided by its diameter

image Octothorpe

image Sounds like a resident in the Garden of Eden

image Hood ornament for Emil Jellinek’s daughter

image French Monarch’s lily

image Robert Langdon’s favourite symbol

image Meditative chant

image Opposing, yet unified

image Greek Goddess of Triumph

image Venus’ Hand Mirror

image The Golden Ratio

image Proofreader’s mark from the Latin “Delere”

image Anagram of “Madras Pen”

image The cross of Bogart’s Falcon

image Who uses this symbol

image An age in the hair of Broadway

image Casanova, Mozart and Houdini had this in common

image Zeus’ Games

image The fork of Zeus’ younger brother

image Centaur archer

image One eyed man + two ravens

image Alpha’s antithesis

image Demisemiquaver

image “Fourth rock” from the sun

image Hieroglyph of seven body parts in one

image Latin “recipe” offered by doctors

image Kafka, Poe or Khepri Embodied

11টি মন্তব্য

প্রথম আলো ও অন্যান্য বাংলা অ-ইউনিকোডীয় সাইট গুগল ক্রোম ও মজিলা ফায়ারফক্স দিয়ে দেখুন

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

[BijoyShamokal 2 UniBangla]

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

১টি মন্তব্য

ব্লগে ল্যাটেক্স এর সমীকরণ


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
\alpha+\beta\geq\gamma

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/

১টি মন্তব্য

গুগল বাংলা আক্ষরিক অনুবাদ

আপনি যদি বাংলা কীবোর্ড সম্পর্কে অনভিক্ষ হন, এবং অভ্র ইজি যদি আপনির কাছে তেমন সহজ মনে না হয়, গুগল আপনারই জন্য এনেছে গুগল ট্রান্সলিটারেশন (আক্ষরিক অনুবাদ) এটি অক্ষরকে অনুবাদ করে।

(http://www.google.com/transliterate/indic/Bengali)


টাইপ করুন  ”banglate shonskrito shomikkha”
পাবেন: বাংলা তে সংস্কৃত সমীক্ষা

এটি আমার ব্যবহার করা সর্বোৎকৃষ্ঠ টাইপ ইন্টারফেস

টাইপ করুন ”gogone goroje mesh ghono borosha”
পাবেন : গগনে গরজে মেঘ ঘন বর্ষা
রবীন্দ্রনাথ ঠাকুরের বানানের জন্য কি আবার অভ্র লাগবে? না? বানানের উপরে ক্লিক করুন…
Google Transliterate
Google Transliterate

১টি মন্তব্য

দক্ষ ম্যাটল্যাব কোডিং

(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

Use repmat() to tile matrix to form a larger version.

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

This is a popular (and allegedly faster) trick used to form a matrix by repeating a row/column vector. (Courtesy of omar)

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

3টি মন্তব্য