NewStats: 3,262,954 , 8,178,625 topics. Date: Wednesday, 04 June 2025 at 08:15 AM 703t2o

6z3e3g

Omni1's Posts j5r5z

Omni1's Posts

(1) (6) (of 6 pages)

omni1: 4:22am On Oct 08, 2013
Torch is a free and unique software that offers you powerful browsing together with built-in media ing and sharing features.

Torch Browser is based on the Chromium technology platform, giving it fast browsing capabilities.

http://www.torchbrowser.com/about


Have you guys experienced some issues with this browser and tried uninstalling it? Were you able to differentiate the browser from Google Chrome at the point of uninstalling? The browser is everything Google plus theme.
omni1: 11:08pm On Oct 06, 2013
Nice one. This is programming and some good trend to follow. Keep it rolling as usual cool
omni1: 12:41pm On Aug 19, 2013
Here are my guys doing theirs. Let's see yours if you've got one
Skelewu Dance 1:
https://www.youtube.com/watch?v=aIBh3jVbgx4
Skelewu Dance 2:
https://www.youtube.com/watch?v=GcdMQ7620jU
omni1: 11:14am On Aug 04, 2013
Once there was a Mouse.

In a mill a rat once lived and prospered. It took after the miller, and from day to day its paunch grew bigger. It became as round as a cucumber and as fat as a candle.

One day, looking at its round, sleek figure, the rat said to itself, "Behold I am so beautiful and strong. Why should I not go and pay a visit to God? He is sure to receive me."

No sooner said than done. Leaving the mill, he started on his journey to God. After traveling a few days and not coming nearer to God, he stopped and said, "Methinks that either God lives much farther away than I believed, or I have lost my way. I will go to the sun and ask where God is."

Coming to the sun, the rat asked, "Where is God?"

"Off with you," shouted the sun. "I have no time for idle talkers."

The rat went to the clouds and asked them, "Where is God?"

"We cannot stop to bandy words with the like of you."

Away the rat went and came to the wind. "Where is God?" asked the rat.

"There," replied the wind, whistling, and getting hold of the rat hurled him down onto an ant-heap, and there he found his level.

(The END, or Perhaps a new Beginning)

Moral Lesson:: (Please contribute this as an advice if you understand the Mouse Story tongue)

1 Like

omni1: 3:25am On Jul 23, 2013
databoy247: I love your spirit bro....longest time.
Hope you're doing good?
omni1: 3:25am On Jul 23, 2013
shocked No VAS Providers in here anymore?
omni1: 5:58pm On Jul 19, 2013
I've got a jingle I want able as ringtone. Can someone help me with information and of where I can get a good company with a good deal on providing the mobile services?
omni1: 3:58pm On Jul 17, 2013
I think we might continue with this to see how many people will along and play with codes but basically beginners except if the question level specifies otherwise.
omni1: 8:55pm On Jun 12, 2013
Fhemmmy: Talk to Igahdavid of NL . . . Good luck
Okay. Thanks
omni1: 8:22pm On Jun 12, 2013
Please I need dealers on Car Trackers or Car Tracking devices. Drop me your company's details or email me details of what you have in stock at iconsysteplus [@] yahoo.com (Please correct the email address before sending in your emails.)

Cheers!
omni1: 8:14pm On Jun 12, 2013
Thank you for completing this quiz.

You scored 90%!

This means you ed the quiz.

I failed this one:

Q.10 HTML5 is meant to be extendable by design. What part of the standard is supposed to achieve this?
omni1: 9:28pm On May 13, 2013
***Just ing by***
Someone is ing another here but if you venture to bring him to his own fault he'll term you an enemy...
omni1: 1:14am On Apr 17, 2013
Hmmm..... doesn't seem they are interested in our quiz. So what do we do? Our help isn't going down well with them from what I see here. What do you guys think?
omni1: 4:33am On Apr 15, 2013
<?php
$array[0] = "mall";
$array[1] = "Kate";
$array[2] = 9;
$array[3] = "brother";
$array[4] = "cup cakes";
$array[5] = "store";
$array[6] = "Linda";

echo "$array[1] went to the $array[0] to buy $array[2] $array[4] for her $array[3].";
?>

From the above PHP scripting block, what will be displayed in the browser?

Level: Intermediate.
omni1: 3:46am On Apr 15, 2013
@Gerardcole, @Judinho59 Please ooooo... You should stop answering so the beginners will at least try out their hands on the questions before they are corrected with some methods of solving the puzzles. Let's give them a chance to try their hands on the puzzles
omni1: 9:20pm On Apr 14, 2013
Create a program that will print out all factors of 7 between 1 and 1000. Each number should be on a separate line.
Hint: use modulus!

Level: Beginner
omni1: 8:40pm On Apr 14, 2013
Mehnnnnnnnnnn............... I'm tired of seeing all these talks. Let's get this once and for all.
Some people here think they are the best so if you see them say website review, don't respond. Just by. If you say an 'A', they'll start attacking you like 'mad dogs'. So avert all these kinda talks, just see their reviews and get blind once you scroll through the thread. You don't learn anything from them rather you only have to make enemies.

Don't bore your Sunday night with fights here. If you feel you are the best, carry on but I once someone put his portfolio and the Oga feeling 'Mr. Ultimate Warrior' simple went into thin air. Let's spare ourselves of these many arguments. Get busying learning one thing or the other. We are yet to where we dream to be so let's keep on working until we are where we dream to be and even beyond.

Cheers!

NB: You can attack me o. From day 1, those that know me will tell you that IDC!
omni1: 7:16pm On Apr 14, 2013
Web Contractor: NEW PUZZLE

Create an infinite loop of all even numbers.



You may post more than one answer.
N.B.I will not be responsible for any system malfunction during testing!

<?php
#set $a start count from 1
#set $a to be greater than 0 ($a > 0) so as to be infinite since original value = 1
#increment $a at every point in time $a is greater than 0 (infinite)
#to get even numbers, divide the output of $a and ensure no remainder ie ($a % 2 == 0)
#print your output (echo $a) append a comma and space after it for clearer reading (echo $a, ', ')

/*
For faster concatenation, I'll suggest you implore the use of comma to a dot.
*/

for($a = 1; $a > 0; $a++){
if($a % 2 == 0) echo $a, ', ';
}
?>

Set stop watch to like 2 minutes and stop code execution to see the numbers it has looped through. Don't let your browser hang anyways.
omni1: 6:41pm On Apr 14, 2013
Can we do something here....

Let's benchmark our codes for faster running. If you run the codes by @Gerardcole on the Infinite loop puzzle, you'll see it takes some time to output results. You can compare this other variation to understand what I mean. Speed of result output is of essence in our codes as well.


<?php
for($a = 1; $a <= 500;$a++){
if($a % 2 == 0) echo $a,',';
}
?>

Run this other one still not exceeding 500

<?php
$cond = 1;
/*Sets a variable that will aid in looping.*/

$even = 2; //Even no's are divisible by 2 without remainder.

$number = 0; //First number

while($cond == 1)
/*Since is already 1, this condition will never end*/
{
if(($number % $even == 0) AND ($number != 0) AND ($number <= 500))
/* Since it will return same for 0 but we don't want 0 */
{
echo $number.', ';
}
$number++;
}
?>

After running for 500, change to 100000 and see what happens still.

Do you notice any variation in their processing speed? That's something I'll also like us to look into while providing solutions for the puzzles.
omni1: 6:19pm On Apr 14, 2013
@ActiveMan
Please let's not get into the DB aspect now. I still think we just keep playing around with strings and integers. I wonder how many of them are even taking note. No questions yet. I guess we should allow for like up to 5 answers if possible to be sure that people are following up before we declare answers then put up a new puzzle. Some might just come along, see and copy solutions without even knowing how they were solved.
omni1: 6:02pm On Apr 14, 2013
To test the codes to a certain number limit, you can add an extra condition to be at least sure only even numbers are displayed. Taking a lead from @Gerardcole's codes

Gerardcole:
<?php
$cond = 1;
/*Sets a variable that will aid in looping.*/

$even = 2; //Even no's are divisible by 2 without remainder.

$number = 0; //First number

while($cond == 1)
/*Since is already 1, this condition will never end*/
{
if(($number % $even == 0) AND ($number != 0))
/* Since it will return same for 0 but we don't want 0 */
{
echo $number.', ';
}
$number++;
}
?>

Add in:
if(($number % $even == 0) AND ($number != 0) && ($number <= 200)

To get even numbers from 0 - 200.

You'll experience Maximum execution time limits depending on your php.ini maximum execution time set if you run the infinite loop and your time limit is reached.
omni1: 5:18pm On Apr 14, 2013
Web Contractor:
N.B.I will not be responsible for any system malfunction during testing!

Hahahahaaa...... You sure know browsers will hang abi?
omni1: 4:28pm On Apr 14, 2013
Gerardcole: I usually type on my android device so sorry for the errors. I didn't close a line with ;. Also I didn't close the if containing the in_array(), then I interchanged the position of the values in in_array. So editing the former post, here is the solution.


Okay. Since according to our puzzle provider, Judinho59 didn't get the required output, I ll provide my own solution. The puzzle is kinda tricky.

Given array('2', '4', '6', '8', '10', '12')
To return 2,4,8,10 (Removing 6 and 12 and the last comma that's supposed to appear after 10)

I'm also gonna attack in two methods.

1. Using PHP in_array()

<?php
/* First we set the values we do not want in an array */
$unwanted = array('6', '12');

/*Then we set a variable which will help in placing comma's */

$counter = 0;

/*Then to the code */
$ev = array('2', '4', '6', '8', '10', '12');

foreach($ev as $a)
{
if(!in_array($a, $unwanted))
/*Checks if $a is not in our unwanted list before proceeding*/
{
if($counter > 0)
/* Since we don't want it after our last value but after every other, we run this before the value. > 0 here explains that we don't want it before the first as our counter is still 0 before this line */
{
echo ', ';
}
echo $a;
$counter++;
/*In PHP ++ is same as +1 so whenever it gets to the line above, the counter is increased buly 1*/
}

}
?>

2. Using the modulus operator '%'

The modulus %, in PHP returns the remainder in a division operation. E.g 7 % 5 returns 2 (i.e 1 remaining 2), 10 % 5 returns 0 (i.e 2 remaining 0).

I wouldn't be explaining the lines I already explained in example 1 above.

<?php
$div = 6;
/* Since all the unwanted numbers are divisible by 6. */

$counter = 0; //As explained in e.g 1 above

$ev = array('2', '4', '6', '8', '10', '12');

foreach($ev as $a)
{
if($a % $div != 0)
/*Since it will return 0 for our unwanted 6 and 12*/
{
if($counter > 0)
{
echo ', '; //As explained in e.g 1 above
}
echo $a;
$counter++; //As explained in e.g 1 above.
}
}
?>


The above returns:
/*From E.g 1 */

2, 4, 8, 10

/*From e.g 2 */

2, 4, 8, 10

Code runs fine as expected. Nice dual solution!

I'm also thinking TRIM should be brought into light here so that the awareness of the different types of TRIMS could be seen and used too.
http://php.net/manual/en/function.trim.php
omni1: 4:21pm On Apr 14, 2013
Please how can we get more beginners here to learn? Now they are seeing trials and how codes are being ran and thanks to all for the inline commenting which is helping so much. It's a good practice coding with inline commenting so that anyone at your absence can maintain your codes. Please let's get more beginners to come along and test their abilities.

Thanks to other friends who have ed in the puzzle posting and resolutions. I'm very very grateful. Some little engagements holding offline but I'll post other simple puzzles as well as assist in testing and picking correct answers as soon as I'm done.

Cheers Friends!
omni1: 3:02pm On Apr 13, 2013
Web Contractor: Geraldcole.perfect solution.use comments so beginner can follow.

I have received many requests from people who want to learn PHP Programming.

This is a good avenue to learn.So lets keep this thread alive.Ask any questions if you re confused at any point.will be posting more puzzles.Cheers.
Thanks so much for loving to help the beginners. Let's write more codes for them so they can learn from. Issue is many are scared of writing the wrong codes and getting corrected but the truth is, when you write them poorly or wrongly, others put you in the right direction. Your coding structure and actual codes improve. Let's keep it alive here.

More confusions, puzzles or questions coming. I'll post mine here as well for help.

Cheers!
omni1: 1:04am On Apr 12, 2013
php.NET:
Does this mean that nigerian government has no IT career department? Or is it that they are not just competent?
Whats keeping NIIT from taking over this department?
NIIT ain't even the best to take control of the IT department. There are far better people than the entire NIIT candidates
omni1: 7:32pm On Apr 10, 2013
I feel so bad ing how many volunteers put in efforts to do a prototype on this website and yet...
omni1: 4:20pm On Apr 08, 2013
@ActiveMan
echo (15000 > '15,000') ? true : false;

^^^ Is an IF/ELSE statement. Just call it Tenary operator.

http://php.net/manual/en/language.operators.comparison.php
omni1: 3:33pm On Apr 08, 2013
ediko5: Please How can i get information posted by my site s on my site(for instance the form) either through email or any any other available method.
This is off topic please. Create a new thread for it please.

ActiveMan:
<?php
$string = "15,000";
$int = 15000;

echo $string *2; /// 30
echo "<br />";
echo $int *2;
/// 30000
?>

no
Instead of multiplying, you can simple just compare the two variables. You already understood the difference that 15000 is an INTEGER while 15,000 is a mixture of NUMBERS & a CHARACTER. A simple code could be

echo (15000 > '15,000') ? true : false;


If the output is 1 then it's true while if 0 it's false.

You can play around with this to see more examples.

$a = "15,000";
$b = "1,500,000";

babihouse: NO
<?php
$v = 15,000;
$p = 15000;

echo $v; $p;
?>
output
15,000 ; 1500

i am a learner, i just felt like trying
Nice try. Keep attempting and you'll get used to it along the line.
omni1: 8:25pm On Apr 07, 2013
^^^ Depending on who knows what to write and edit, not so? Copy and paste the way out for many
omni1: 6:08pm On Apr 07, 2013
ogzille: Bros, I can answer shebi? grin
If I catch you say pim . . . . Waddup?
omni1: 1:55pm On Apr 06, 2013
Is 15,000 same as 15000?

Prove using code samples.

(NB: Not for advanced coders. Allow the ones get better.)
PS: Don't claim advanced when you don't even know anything.

1 Like

(1) (6) (of 6 pages)

(Go Up)

Sections: How To . 52
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or s on Nairaland.