שמע ישראל ה' אלהינו ה' אחד
فمن كان يرجوا لقاء ربه فليعمل عملا صالحا ولا يشرك بعبادة ربه أحدا


May 30, 2015

Hana Wa Saku

Posted By Snow at 5/30/2015 4 comments


Afghan tribes e.g. the Yussafzai, Pashtun are said to be Israelite والله أعلم


Malala Yussufzai
Yussufzai means Ben Joseph

Dr Tetsu Nakamura works with the Afghan people to build an irrigation system which flows water from the Kunar River to farm lands. Combining Japanese engineering with the Afghans stonemasonry skills, the project's goal is to sustain the Afghan people's livelihood - and achieve peace.

........................................... תיקון עולם ...........................................
tikkun olam . repairing the world

When you pass a place & repaired it towards beauty الحمد لله
And you do it sincerely for Allah SWT, without expecting their rewards


זה דודי וזה רעי
كلكم راع وكلكم مسئول عن رعيته
THE GIFT OF BEING A PROTECTOR



May 16, 2015

Iron Smelting

Posted By Snow at 5/16/2015 0 comments

MEDIEVAL IRON PRODUCTION IN MONTFERLAND
JAN DEN OUDEN

So this is how the ancient smelted iron. (◠o◠) ما شاء الله

And so now I know what they were talking about [PDF | REF] ha ha. And see the clay oven, it is called bloomery [WIKI | REF] - isn't it like the tanoor ... And can you get the iron ore from digging laterite? Does this mean, if there's tons of laterite on some hill, there's tons of iron? Is the redness of the ore, the rust?

بسم الله الرحمن الرحيم

ولقد آتينا داود منا فضلا ياجبال أوبي معه والطير وألنا له الحديد
أن اعمل سابغات وقدر في السرد واعملوا صالحا إني بما تعملون بصير
... ولسليمان الريح غدوها شهر ورواحها شهر وأسلنا له عين القطر

And We certainly gave David from Us bounty. "O mountains, repeat (Our) praises with him and the birds." And We made pliable for him iron. "Make full coats of mail and calculate (precisely) the links, and work righteousness. Indeed I, of what you do, am Seeing. And to Solomon the wind - its morning a month - and its afternoon a month, and We made flow for him a spring of (liquid) copper..." [Partial Holy Quran 34:10-12]


آتوني زبر الحديد حتى إذا ساوى بين الصدفين قال انفخوا
حتى إذا جعله نارا قال آتوني أفرغ عليه قطرا

"Bring me sheets of iron." Until when he had leveled (them) between the two mountain walls he said, "Blow (with bellows)". Until when he had made it (like) fire he said, "Bring me, that I may pour over it molten copper." [Holy Quran 18:96]




May 11, 2015

Curve Control

Posted By Snow at 5/11/2015 1 comments

Once upon a time, I wished one day I'll figure how to make a curve go straight through the control points. What a nerdy wish. But well, all this while, the curve only nears it. So today... somehow... ما شاء الله tada! (◠oo◠) Oh Allah SWT, thank you so much - I feel like Cinderella back from the palace. .:(◠v◠):. الحمد لله


Of course, even Bezier isn't perfect - the curve has its moments ha ha... The left one curves inward. But simply rearrange the controls, from clockwise to counter clockwise, & walla the right one curves outward. OK I honestly don't know the maths. All I care - it goes straight through the controls. (◠v◠) الحمد لله



And for a smooth curve, there's a variable smooth. But I can't figure how to calculate it... (◠v◠)'
Update: actually, this variable arcs the curve | photo

<style> div { position: fixed; } </style>

smooth = 0.7;        // this controls the curves smoothness - but I dunno how to figure it

point = function (x,y)
{    this.x = x;
      this.y = y;
};

c = new Array(       // the control points
      new point(100,400), new point(200,100), new point(100,250),
      new point(500,100), new point(300,200), new point(500,400)
);    nctrls = c.length;

p = new Array(        // the curve points
      new point(0,0), new point(0,0), new point(0,0), new point(0,0), new point(0,0),
      new point(0,0), new point(0,0), new point(0,0), new point(0,0), new point(0,0)
);    npoints = p.length;

function drawcurve()
{
      for (i=0; i<(nctrls-1); i++)
      {    for (j=0; j<npoints; j++)
            {
                 spanx = (c[i].x - c[i+1].x)/npoints*j;
                 spany = (c[i].y - c[i+1].y)/npoints*j;

                 p[j].x = c[i].x - spanx;
                 p[j].y = c[i].y - spany;

                 for (np=0; np<npoints; np++)
                 {    p[np].y -= spanx/npoints*(npoints-np)/smooth;
                       p[np].x += spany/npoints*(npoints-np)/smooth;
                 }

                document.write ("<div style='left:" + p[j].x + "; top:" + p[j].y + ";'>★</div>");
          }
     }
}

So here's the code in HTML JavaScript. .:\(◠v◠)/:. الحمد لله



May 8, 2015

Bezier Curve

Posted By Snow at 5/08/2015 0 comments

When you wanna draw a curve, you want something like this right... And the computer draws it for you - using math. Like this curve, it is drawn using the Bezier function. Bezier is one of the many math functions that can be used, each with its own way to draw a curve.


So when the computer draws a curve, it basically plots points ★ on your screen's display grid. First, you set the controls ❤ to control how the curve looks like. Then the math figures out where to plot points which make up the curve. | what is display grid



And... steady ya'all... here's the math equation to figure that out. OK Pierre Bezier worked out that math equation - that's why we call it the Bezier. So others simply turn that into code, to program the computer to do the math stuffs. An walla, here's the math turned into code (HTML JavaScript):


function facto (number)
{   fac = 1;
     for (f=1; f<=number; f++) fac*=f;
     return fac;
}

function blend (u, i)
{   return facto(nctrls) / (facto(i) * facto(nctrls-i)) * Math.pow(u,i) * Math.pow((1-u),(nctrls-i));
}

function drawbeziercurve ()
{   for (np = 0; np < npoints; np++)      // from first point (P1) to last point (Pn)
     {     x = 0; y = 0;
            u = np / (npoints - 1);
            for (i=0; i < nctrls; i++)            // get point's coordinate (x,y)
            {    x += blend(u,i) * c[i].x;
                  y += blend(u,i) * c[i].y;
            }
            document.write ("<div style='left:" + x + "; top:" + y + ";'>★</div>");     // plot point at (x,y)
     }
}


An example of Bezier surface modelling (using OpenGL)


And when we can draw a curve on a computer, we can draw so many things! Like these things below. This can help people design homes, planes; or terrains, cities; or model the human body for medical purposes. There's so many things you can do when you can visualize things on the computer.


So this goes to show, some people did go to university with a purpose. So cheer up Malaysia, some people exists. And cheer up Snow, destiny for you - is beautiful. (◠v◠)' ما شاء الله



May 5, 2015

Crystal Pattern

Posted By Snow at 5/05/2015 0 comments



ما شاء الله it's beautiful ... This is a girih pattern said to be from Iran.

In my eyes, it seems to look similar to quasicrystal. Quasicrystal is thought to be a new discovery in maths and chemistry; but this beautiful pattern has graced the architectures in the muslim world as early as the 13th century. Like the Darb-i Imam in Isfahan, Iran dan Alhambra Palace in Spain. [Nobel | NYT] الحمد لله

Pattern in Darb-i Imam
SCIENCE MAG


The patterns on the medieval architectures are not simply patterns. When chemists see it, they see how atoms can bond into quasicrystals.

So, how does both mosaic tiles and atoms bond into quasicrystals? See the shapes below, all of them can be tiled repeatedly without leaving gaps — except for the pentagon. OK I'm not an expert ... ha ha. But if you want to tile the pentagon nicely, you break the pentagon into smaller pieces, rotate and tile, until you get a pattern which does not repeat. Right?

A pattern which does not repeat, is quasicrystal.




And the size of the rotated pieces are related to the Golden Ratio, as to not leave gaps. | reference
بسم الله الرحمن الرحيم
أفلم ينظروا إلى السماء فوقهم كيف بنيناها وزيناها وما لها من فروج
Have they not looked at the heaven above them - how We structured it and adorned it and (how) it has no rifts? [Holy Quran 50:6] ☆ No Rifts
..............................................................................................................................................................................................



OK, this is my attempt to tile pentagons, hexagons & octagons. Is the Iranian soul in my blood... but more importantly, is this right? Hope I'm not mistaken. Well, it has its measurements. Perhaps one day, Allah SWT will bless with the knowledge to build medieval 14th century dome, like Turabeg Khanym. Besides it's craftsmanship, it is also a calendar. ما شاء الله



Nobel Prize in Chemistry 2011
Quasicrystal by Dan Shechtman


Atoms were believed to be packed inside crystals in symmetrical patterns that were repeated periodically. But Shechtman saw atoms in crystals packed in a pattern that could not be repeated. Initially, his findings was dismissed as impossible, and he was asked to leave his research group. But eventually it forced scientists to reconsider their conception of the very nature of matter.

A Swedish company has also found quasicrystal in certain steels, which reinforces it like armor. | Nobel


I seek refuge in Allah SWT from errors
Only Allah SWT Knows Best والله أعلم



Welcome
Peace be upon you


Bat Zion

REMEMBER


קרן  .:💡:.  قرن
now in the cave
please forgive me if ever

Blog Archive




قربان

明 NIRVANA


يا غلام إني أعلمك كلمات
احفظ الله يحفظك
احفظ الله تجده تجاهك

إذا سألت فاسأل الله
وإذا استعنت فاستعن بالله

واعلم‏‏ أن الأمة لو اجتمعت
على أن ينفعوك بشيء
لم ينفعوك إلا بشيء
قد كتبه الله لك

وإن اجتمعوا
على أن يضروك بشيء
لم يضروك بشيء
إلا بشيء قد كتبه الله عليك

رفعت الأقلام وجفت الصحف



2009-2024 Lovely Memoirالحمد لله على نعمة الإسلام
Q Quran . SB Sahih Bukhari . SM Sahih Muslim . AD Abu Dawood . AN An Nasai . IM Ibn Majah . MM Muwatta Malik