Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,521 members, 7,826,959 topics. Date: Tuesday, 14 May 2024 at 12:55 AM

Craigston's Posts

Nairaland Forum / Craigston's Profile / Craigston's Posts

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

Webmasters / Re: 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.
Phones / Re: 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.
Politics / Re: 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.
Phones / Re: 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.
Programming / Re: 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.
Programming / Re: 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"

1 Like

Programming / Re: 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)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.