₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,302 members, 8,444,864 topics. Date: Tuesday, 14 July 2026 at 07:38 AM

Toggle theme

DualCore1's Posts

Nairaland ForumDualCore1's ProfileDualCore1's Posts

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 371 pages)

Technology MarketRe: Samsung Galaxy Tab 7.0 3G/WIFI (32 GB, Includes car mount and more). **50k** by DualCore1(op): 1:34pm On Sep 12, 2012
Make reasonable offers
WebmastersRe: GoDaddy: Sorry About The Outage. And No, It Wasn't A Hack by DualCore1: 9:24am On Sep 12, 2012
Na who we go ask?

Talk is cheap, action is expensive.

Corporate lie tongue
Phone/Internet MarketSamsung Galaxy Tab P1000 7.0 For Sale (32 GB) - by DualCore1(op): 3:52pm On Sep 11, 2012
I have listed this for sale here, with pictures.
https://www.nairaland.com/1044599/samsung-galaxy-tab-p1000-7.0
Technology MarketRe: Samsung Galaxy Tab 7.0 3G/WIFI (32 GB, Includes car mount and more). **50k** by DualCore1(op): 3:46pm On Sep 11, 2012
Photos

WebmastersRe: Godaddy Goes Down, Anonymous Claims Responsibility... Am In Trouble, by DualCore1: 3:37pm On Sep 11, 2012
Imagine shocked
WebmastersRe: Godaddy Goes Down, Anonymous Claims Responsibility... Am In Trouble, by DualCore1: 1:38pm On Sep 11, 2012
Don't worry, from January you'll have other phone numbers you can call... female techies also tongue
WebmastersRe: Pirate Bay Founder Arrested For Tax Hack by DualCore1: 12:40pm On Sep 11, 2012
Arrests arrests arrests, these things shouldn't come into Nigeria else no more rest tongue
WebmastersRe: Godaddy Goes Down, Anonymous Claims Responsibility... Am In Trouble, by DualCore1: 12:39pm On Sep 11, 2012
No you're not in trouble, you are in Godaddy.
From what I read, services are coming back up gradually. Sadly you can't call them except you want to listen to the answering machine that lets you know it doesnt know you but it knows you want to call to rant about the problem and it already knows about the problem and it would be solved asap. tongue

Don't you just love a host you can call and actually speak to a non-robotish human? wink

Meanwhile this thing is crippling a shipping company's business, they can't process deliveries until their site is back up (and in one sane piece hopefully)
WebmastersRe: Is Smartweb.com.ng Company Still Functioning? by DualCore1: 12:32pm On Sep 11, 2012
These guys should just file up for acquisition or get their game together. Why do we keep getting all kinds of issues from this very provider? 3 months can't pass without smartwebng "releasing an album" as it were.


OP, you can check your emails including the spam folder to be sure you were not sent a mail requiring your attention and response before your order could be processed.
Technology MarketSamsung Galaxy Tab 7.0 3G/WIFI (32 GB, Includes car mount and more). **50k** by DualCore1(op):
Name: Samsung Galaxy Tab P1000 7.0 (3G, WIFI)

Physical Cosmetic Condition: Device was bought brand new about a year ago. No scratches on screen, never used the device without a screen protector. A little dent on the bottom right corner of the device that is completely invisible with the device inside its silicon skin.

Color: Front is black and the back is white.

Spec: Android 2.3 Gingerbread, 32GB internal diskspace (you can also add a 32 GB micro SD card to make it 64GB).

Battery Life: Still very good. I never really used the device much... just used it as a WIFI hotspot, music player and ebook reader.

Comes with: original charger, original USB cable, original ear piece, car mount, black silicon skin, black pouch with zip, black leather swivel pouch, stylus, manual and CD. Device comes with its box.

Reason for selling: I have a 10.1 so I wont be needing the 7.0 anymore.

Location: Port Harcourt (Can send to most major locations in the Country....Lagos, Abuja etc. Buyer bears shipping cost which is roughly about 3k via ABC).

Price: 50k.

Actual photos will be uploaded later today.


08038138483
WebmastersRe: FTP Permission Issue by DualCore1: 8:58pm On Sep 10, 2012
In Linux a non-root user cannot change a file's permission if the owner/group is not under the user's control, for instance if the owner of the file is root.
Contact your host to fix this if you do not have root access to the server.

For the benefit of others who may meet this roadblock in future and have root access (and for the benefit of your host too) use the following commands when logged in as root:

$chgrp username path/to/file
$chmod 777 path/to/file
WebmastersRe: My Fellow Webmasters, Help Please !! by DualCore1: 12:40pm On Sep 08, 2012
geniusng: When I was using PHP Mail() Function, I was able to have the result like this:

Name: Stanislaus Okwor
Address: 20 Nnobi Street, Surulere, Lagos
Phone: 08033398769
Email: info@codedwebmaster.com
Comments: Enquiry about web design and hosting.....

Please How can I achieve it here.

Thanks
the dot (.) before the "=" site in PHP means concatenation (joining together) of a variable.

if I have a variable like this
$name = "Samuel";

and I add this

$name .= " Peters";

Now the variable $name is holding "Samuel Peters".

About having the mail displayed the way you want.
For the $message .= $_POST['telephone']. "\n"; for intance, make the following change:
$message .= "Comments: ".$_POST['telephone']. "\n";


Apply that to the rest.
WebmastersRe: My Fellow Webmasters, Help Please !! by DualCore1: 8:02am On Sep 08, 2012
Learn PHP, the basics at least.
TravelRe: After Suspension: Would You Fly Dana Air ? by DualCore1: 6:15pm On Sep 06, 2012
Dana should be the safest airliner now. I havn't heard of consecutive crashes from same airliner in Nigeria. They have paid their dues tongue
ProgrammingRe: A Compiler that enables Nigerians to Code In our local languages by DualCore1: 4:51pm On Sep 06, 2012
I am on mobile and couldn't have the patience to scroll and scroll and scroll to read responses so I am making my own response based on the first post.

There is nothing good about this idea. Its very useless and it will be a sin against humanity and time management to spend more than 5 minutes thinking about this idea and brushing it off quickly.

Go out there and solve a real tech problem and make this world a better place. You can do it!
ProgrammingRe: Help Your Girl O Programmers In The House! by DualCore1: 11:47am On Sep 06, 2012
have a database table holding all your items
table: items
fields: item_name, item_id

have another db table holding all your categories
table: categories
fields: cat_id, cat_name, price, item_id


Create a shopping cart page.

item_query = mysql(select item_id from items)
while(item_row = mysql fetch(item_query)){
category_query = mysql (select all from categories table where item_id = item_row['item_id'])

while(category_row = mysql fetch (category_query){
//go on to list cat details and your other table voodoo.
}
}

Forgive me if its not very clear but really its the simplest way of getting your work done and in the future if you add more items for sale you only need to update the database with the item and its categories. You don't need to update your code. Code is for presentation, database is for storage. Increase in items shouldn't cause an increase in codes...it should naturally cause an increase in the storage (database).

In summary:
The first while loop in my code:
Loop through all your items and dynamically put them in a seperate <div>.

The second while loop in my code:
Then inside each <div>, loop through the categories for the given item and add the buy now link and other things to each category.

Use the item_id as a primary key in items table and a foreign key in categories table.
WebmastersRe: My Nairaland Frontpage "Mod" For SMF by DualCore1(op): 6:03am On Sep 06, 2012
^^
Lol at okada mechanics. Thanks.

miracle4: How do I get it
emmykk: greetings at last i need ur help.i want d nairaland front page feature mod installation u talk about at www.gethotinfo.com. 08067704237 i live in port harcourt sha
I will need FTP and database access to your account in other to install this. You can mail me the details sawyerrken@gmail.com
WebmastersRe: Nigeria Version Of Paypal And Liberty Reserve by DualCore1: 8:39am On Sep 05, 2012
plutonian: *Update*
There's a delay with the arrangements and its not looking too good; the new date is now later this year (Nov 2012). I'll still keep you all posted.
Thanks.
It's safe to say we have already forgotten about the following statements you made.

plutonian: Hi All,
A solution to the issue, Paypal, is coming. June/July this year (2012). Specific arrangements are still being done (and "Nigerian environment/factor" is slowing things down). ... I'll post an update much later.
plutonian: No offense meant to cashenvoy or anyone, but ... cashenvoy? really? Cashenvoy is okay (it meets a "small" need at this point in time), but its a "baby" (compared to the "giant" that's coming, so to speak). At this time, they just dont have the "complete line of services" which people need (maybe in future, they may; maybe!). Again, no offense and no hard feelings; I'm just speaking the truth, and I know you agree with me smiley. Thanks.
Its no use reminding us about what hasn't come into reality. No need to keep announcing release dates of something whose arrangements are "not looking so good" at present.

Just do what you have to do and make an announcement whenever this big idea of yours is out and ready for use.

Its best to stay quiet and work on ideas rather than allowing the euphoria of our imaginations excite us too much and we start dropping hints based on our imaginations only to meet roadblocks and bottlenecks when we try to convert our wow imaginations into reality. ...then we have to take back our words (hints) as it were.
WebmastersRe: Good Reason To Start Snaking Around! by DualCore1: 8:28pm On Sep 04, 2012
I like snakes!
WebmastersRe: I Need Help On Email Script by DualCore1: 3:01pm On Sep 04, 2012
I have striped out a lot of unnecessary stuff from your code and have given the header a different content type declaration. Tested and works, here's it:

<?php
$mymessage = "<html><table><tr><td width=\"700\" height=\"400\" bgcolor=\"#00FF00\">Just to try this link!<a href=\"http://www.mytestdomain.com\" >Click here to view<a><br>
<img src=\"http://www.mytestdomain.com/training/postcards/slider2.png\">
</td></tr></table></html>";

$to = "you@gmail.com";
$from = "me@yahoo.com";
$subject = "Testing";



$headers = "From: $from\n"."Reply-To: $from\n";
$headers .= 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

if(mail($to, $subject, $mymessage, $headers)){
echo "Mail sent";
}
else{
die('Mail died');
}
?>
WebmastersRe: Please Who Has Dual Core's Contact (number) by DualCore1: 3:29am On Sep 04, 2012
My email: sawyerrken[at]gmail.com
Web MarketRe: I An Experienced Need Freelance Web Designer Asap by DualCore1: 2:47pm On Sep 03, 2012
antel19: its for people with free time and nothing to do, so thanks
Unfortunately no experienced designer has "free time and nothing to do".

You'll end up with a job as poor as your budget.

Enjoy.
WebmastersRe: My Nairaland Frontpage "Mod" For SMF by DualCore1(op): 12:26pm On Sep 01, 2012
Its not for sale, its opensource.

Let me know when you have your forum and I will install it.
WebmastersRe: Is NIIT Worthwile by DualCore1: 11:26am On Aug 31, 2012
chigo4u: so what would you recommend for a new person that wants to venture into IT
magnumx: google books online, get a good programmer to guide you and also visit forums for learning.
WebmastersRe: Is NIIT Worthwile by DualCore1: 8:53am On Aug 31, 2012
No
WebmastersRe: Website Review by DualCore1: 8:01pm On Aug 30, 2012
The design style is ancient. It doesn't have a modern feel. It doesn't have to be busy for it to be modern... it can still be simple and modern. I think the color scheme is dull.

My honest opinion.
WebmastersRe: . by DualCore1: 4:15pm On Aug 30, 2012
webdezzi: the result? a user with actual ID 1177 can end up having 1177 on user_auth table and 1179 on user_detail table
using 1179 to select usernames sitewide will produce what just happened.
I don't think this will happen in a scenario where the DB is normalized and queries are in transactions.
ProgrammingRe: An Insomniac's Puzzle For Programmers. by DualCore1: 11:06am On Aug 30, 2012
lordZOUGA: don't you think its wrong to assume that other students don't cheat?? Afterall they are all students
My brother its a puzzle and it clearly states what we are trying to solve (4 students). Your assumption that other students can cheat will kill the puzzle because if you can assume other students can cheat then you can also assume ALL students can cheat... and now we have to solve a puzzle placing 42 students in a sitting arrangement with the assumption of the possibility of ALL students cheating...this is a totally different puzzle for another thread and day and the solution will be to sit each student in a different hall... 42 halls wink
ProgrammingRe: An Insomniac's Puzzle For Programmers. by DualCore1: 5:47am On Aug 30, 2012
[quote author=helpn hand@kay]Noω I wish I had better programin lecturers at sch...cos I wonder y I cnt find a solution after learnin c and c++ in a nigerian university...ah!God help Nigeria[/quote]Your situation has nothing to do with the Nigerian University.
Stop wishing and start building yourself today.
ProgrammingRe: An Insomniac's Puzzle For Programmers. by DualCore1: 7:11pm On Aug 29, 2012
yamakuza: ^ students 1-4 can still cheat with your seating arrangement


[s]i would expect them to be spread with at least 1 black student between the red ones.[/s]
Code modified to fit that.

Below is the modified part of the code.


$j = 0; $k=0; $m=0;
for($i=1; $i<12; $i++){

if($j == 0 ){
echo "<p>Row ".$i.": -<span style='color:red'>".$cheaters[$j]."</span>".$clean_students[$m]."-".$clean_students[$m+1]."-".$clean_students[$m+2]."</p>";
}

if($j % 2 == 0 && $j != 0){
echo "<p>Row ".$i.": ".$clean_students[$m]."-".$clean_students[$m+1]."-".$clean_students[$m+2]."-<span style='color:red'>".$cheaters[$j]."</span></p>";
}


if($j % 2 != 0){
echo "<p>Row ".$i.": ".$clean_students[$m]."-<span style='color:red'>".$cheaters[$j]."</span>-".$clean_students[$m+1]."-".$clean_students[$m+2]."</p>";
}



$m+=3;
$j+=1;
}


Demo: http://sawyerrken.net/kodewrita/

lordZOUGA: i guess so... But I don't really get how your code solves the cheating problem which is core to the problem... Since you decided that the class of students are not needed..
Basically, the quiz says you should ensure 4 students are not sitting together. It didnt say you had to ensure the 4 students were not sitting beside their classmates so the classes of the students are useless.
ProgrammingRe: An Insomniac's Puzzle For Programmers. by DualCore1: 6:21pm On Aug 29, 2012
lordZOUGA: ^ not remotely scalable...
Its a puzzle.

When it becomes a paid job whoever is getting paid to burn hours on it will make it scalable.
ProgrammingRe: An Insomniac's Puzzle For Programmers. by DualCore1: 5:41pm On Aug 29, 2012
The following information are ambigous and you should remove them from your calculations.

1. The number of courses
2. The classes JS1-JS3
3. The nature of the papers written.

Just write a code to sit 42 people putting 4 particular people among them in different seat rows.

Here's my solution below, it isn't pure but you can't blame me... time and headache.

==============

<?php
$students = array("student_1", "student_2", "student_3", "student_4", "student_5", "student_6", "student_7", "student_8", "student_9", "student_10", "student_11", "student_12", "student_13", "student_14", "student_15", "student_16", "student_17", "student_18", "student_19", "student_20", "student_21", "student_22", "student_23", "student_24", "student_25", "student_26", "student_27", "student_28", "student_29", "student_30", "student_31", "student_32", "student_33", "student_34", "student_35", "student_36", "student_37", "student_38", "student_39", "student_40", "student_41", "student_42"wink;

//print_r($students);
$clean_students = array_slice($students, 4, 42);
$cheaters = array_slice($students, 0, 4);


$j = 0; $k=0; $m=0;
for($i=1; $i<12; $i++){
echo "<p>Row ".$i.": ".$clean_students[$m]."-".$clean_students[$m+1]."-".$clean_students[$m+2]."-<span style='color:red'>".$cheaters[$j]."</span></p>";
$m+=3;
$j+=1;
}
?>

=========
Live demo: http://sawyerrken.net/kodewrita/

P.S: This solution isn't scalable.

1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 371 pages)