₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,794 members, 8,423,768 topics. Date: Wednesday, 10 June 2026 at 09:17 AM

Toggle theme

Craigston's Posts

Nairaland ForumCraigston's ProfileCraigston's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (of 27 pages)

WebmastersRe: Amazing Ebooks!!! On Website Design, Php/mysql And Graphics For N3,500 Only!!! by Craigston: 10:43pm On Sep 29, 2015
Whoever wants it free can get it free. I believe knowledge should be freely given. We stand on the shoulders of giants, and those giants carry us without demanding a price. These things are freely available online.
PhonesRe: Unlocking Trial Version Of Repligo Reader 2.1.0.1 On Bb by Craigston: 10:32pm On Sep 29, 2015
femi4:
ZU67JA
0977686654
Thank you very much. It worked.
PoliticsRe: Full Speech: Buhari Addresses UN General Assembly On Climate Change by Craigston: 7:04pm On Sep 29, 2015
The sooner we attend to climate change, the better for our frail necks. If we neglect this call, over a third of us will die in a short time span, while the remnants will struggle to, at least, survive and breathe. The end is closer than it ever has been.
PhonesRe: Unlocking Trial Version Of Repligo Reader 2.1.0.1 On Bb by Craigston: 3:44pm On Sep 27, 2015
femi4:
You can't use it on any other device
I changed my device so I need a new activation code. Please send me one for my BB curve 4.
My pin is 28EE2B6D.
ProgrammingRe: How Do I Create Desktop Apps With Php by Craigston: 8:45pm On Sep 26, 2015
Are you thinking of PHP-GTK? Look up the documentations. http://gtk.php.net/ has documentation.
ProgrammingRe: simple ad Code by Craigston: 8:37pm On Sep 26, 2015
Check your JavaScript console for error logs.
This line
 index = Math.floor (Math.random() * images.length); 
does something interesting. Read up a reference on it. It generates a random number from 0.1 to 1. You multiply that number by another number and you get a number greater than zero and less than or equal to the second number. You pass the result to the
floor()
method of the
Math
object and you get a value rounded to the lower nearest integer.
So your program likely does not return '1' which is the length of your array. It is written to return a random number. Let us say it goes this way.
Math.floor(Math.random() * index.length)
//assuming index.length = 1
//assuming Math.random() returns 0.25
//the operation Math.random() * index.length returns 0.25, which is passed to the floor() method of the Math object.
//Math.floor(0.25) rounds the returned value (0.25) to the lower nearest integer. That means it returns 0.
//now, images[0] in your program is "undefined"
ProgrammingRe: Pattern Chaser In Javascript: Coding Challenge by Craigston: 9:11pm On Jul 25, 2015
dhtml18:
I downloaded it, well I did not know it uses onblur, and yes it works fine. Good job, but it brings out undefined error sometimes.
It returns undefined when no pattern was found. I didn't bother fixing that since it's for this thread and you guys would understand what's the cause.
Lemme play with something else. Maybe a technique that will output the patterns found continuously as the user enters a string.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 (of 27 pages)