All posts by webguruji

Syllogic consultants champions a future where integral sustainable development is the norm, not the exception.

The Hinglish Project

I recently came across the Hinglish Project, a lovely effort to bridge Hindi and English by blending a the 2 languages in a special font that allows the each letters to merge one over the other.  They also developed some great merchandise, including fun card games, t-shirts, mugs and other fun books.

Unfortunately the sight is developped in Flash, which in today’s social-media and search-engine dominated Internet is a strict no-no due to the fact that web-spiders (those little robots that scour the net in search for new sites) are unable to reach Flash, thus making it impossible for the content of the site to be searched by Google and other search engines.

However, one  of the reasons why they have used Flash is primarily doe to the fact that merging and blending of fonts is something that is not currently possible in HTML5 + CSS3, but it is coming…. and this is precisely what I wanted to do for a new project.  So I decided to spend a little time to research how the blending effect of the Hinglish project font could be achieved using javascript and HTML drawing canvas.  Here are the result, I have made a small tutorial below as to how to use the Hinglish font in your HTML pages to create logos for example,

hinglish

So how do we this effect in pure HTML?

The Code

Download the following archive and unzip it in your folder.

hinglish-html.zip

First you want to ensure that you have the following lines of codes in your header,

<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="./hinglish/draw.js"></script>
<link rel="stylesheet" type="text/css" href="./hinglish/stylesheet.css"></link>

If you are using WordPress, the jquery is already included.  The 2nd line is a javascript file  and the 3rd line is a css stylesheet, both of which come in the archive that you downloaded above.

Finally you need to get the code for the actually canvas, you can use the code generator below to optimise your colour scheme, blend mode, font size, transparency and canvas size.  The code is automatically generated for you and you just need to cut and paste it into your <body> element of your page.


HTML5 Canvas not supported

Experiment with different blend modes available for HTML Canvas.
You can change the font size, colour, transparency of layers, and…
FINALLY, adjust the canvas width and height (the red lines) to ensure optimal size

Once you have finalised your text design, copy the code below and paster it in the HTML file index.html provided with this tutorial.


To view test your canvas code, paste in the body of the index.html file provided in the downloaded archive above.  You can then open the file in your browser and view the results.

Do we share molecules with Magellan?

There is a question that gives rise to a lot of debate which is “what are the odds that we breath, eat, drink molecules of matter that have gone through someone else before?”  Here is a correct approach to the question, but a little confusing the way it is presented.

The reasoning is quite simple: for example, water is an important part of anyone’s life.  So in the case of Magellan (pictured above) what are the chances for his water molecules (that he used in his life-time) to be found in a glass of water we drink, or a drop of rain from the sky?

We need to solve 2 questions,

(Q1) How many molecules circulate in anyone’s body in their entire life-time?

– We know that our body regenerates entirely in 7 years.

– 60% of our body is made of water.

– We assume that our avg body weight is 50 kg in a life-time (linear increase from 0 to 20, steady weight of 80kg till 70)

– average life-time of 70 years.

H2O  (kg/life-time) = (60% x 50kg) x(70 yrs / 7yr to regenerate completely)

300 kg of water in 1 life-time.  18gm of water represents 1 mol of water molecules (6 x 1023)

300 kg = 1028 molecules of water will circulate in the body in the entire life-time of an average person.

(Q2) How many water drops are there on earth?

– A recent survey by the US Ocean Survey concluded that there is about 1.3 x1021 litres of water on Earth (oceans, lakes,rivers).

– 1 drop of water is about 10mm3, or 10-5 litre (assuming the average density of water of 1gm/cm3).

So we can calculate 1.3×1026 drops of water on Earth.

Then IF we assume that all 1028 molecules of Magellan’s life-time are spread evenly in the entire water reserve of Earth, we can calculate how many of these molecules are present in each drop of water on earth:

1028  / 1.3 x1026 = about 80 molecules in each drop of water.

Note: This is a quick, back-of-the-envelope calculation and therefore full of assumptions.  There are 2 main ones which would affect considerably the above number.  The first is that we assume that the 1028 in a life-time are unique molecules, however this is simply wrong, because the chances are that someone will ingest their own water molecules (localised ocean, rain, river cycle), so this number would in reality be lower.

The 2nd main assumption is that these molecules are evenly spread throughout the world, and again this is not quite right.  Possibly in time our climate and ocean currents would carry water molecules across the world, but there would always be pockets of higher concentration.  However, this is somewhat offset by the fact that in this specific example, Magellan went round the world and spent a major part of his life in India and other Portuguese colonies around the world, so his molecules of water where naturally disseminated in various places around the world.

Lions of renewable energy!



http://www.dnaindia.com/india/report_solar-power-cells-on-narmada-canal-to-light-up-rural-homes_1647046

The western Indian state of Gujarat is all set to become the first state in the country to generate solar power through panels mounted on a water body. Installation of panels on the canal will help in doing away with the need to acquire land. Evaporation of lakhs of litres of water will be prevented since the canal will be covered. And will generate clean energy. Generated solar power will be supplied to villages alongside the canal, which will lead to lower transmission losses aiding rural development. 
A great pioneering effort in renewable energy that will hopefully lead the way for future innovations! 




Lets lay some roads!

The invention has taken place…
The innovation has been explored and is ready to be executed…
What’s next?

The Hindu : NATIONAL / TAMIL NADU : Plastic collection on Wednesdays

The ingenious, resourceful contrivance of using plastics in the laying of roads is now facing a peculiar and unexpected snag. Believe it or not… The process has come to a screeching halt due to the lack of (usable) shredded plastic!

The answer to this rather unbelievable problem lies in the hands of the everyday consumer. The corporation of Chennai has now decided to go door-to-door collecting daily usage plastics specially, thin carry bags. They have declared every Wednesday as plastic collection day. The local conservancy staff will travel in tricycles around the city collecting plastics from houses and small businesses.

They have further initiated various educational institutions to be a part of this drive. The students are encouraged to carry waste plastics from their homes and neighborhoods to school on Wednesdays, which will then be collected by the conservancy staff of that area.
This initiative in the process of enabling a crucial innovative will also help promotes healthier household habits.

Lets remember… Wednesdays are plastic collection days!