|
|
|
|
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 9:32am On Jul 21, 2014 |
**Applauds the competitors loudly** |
Programming › Re: Sorting Out A Simple Text Dictionary With PHP by dhtml(op): 8:10am On Jul 21, 2014 |
Djangocode: In The quiet words of a beginner: "Nice one Bro".. Thanks bro. |
|
Webmasters › Re: I'm Getting "Warning: Session_start() [function.session-start]" Error. Pls Help by dhtml(m): 6:21am On Jul 21, 2014 |
coolsix: session_start() can be used after HTML as long as there is <?php ob_start(); ?> or <?php ob_flush(); ?> at the top of the script True, i am suspecting that the op has an extra space before that ob_start. |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 6:20am On Jul 21, 2014 |
GodMode: Let them swear na them get their mouth... I don't care about winning or losing cos I do it for fun. smh, troll, just like me. . .i wonder when the application is closing sef, all this drama here. |
|
|
|
Programming › Re: Sorting Out A Simple Text Dictionary With PHP by dhtml(op): 2:38am On Jul 21, 2014 |
Olyboy16: Hmm...so these are dhtml's php codes..i c..nice work You got me laughing, are you trying to say their is something strange about my method of coding? I know i need to improve, thanks for the compliment though. |
Programming › Re: Are Programmers Born Or Made? by dhtml(m): 2:36am On Jul 21, 2014 |
lordZOUGA: you can look at it this way: Some people might have never been programmers if they hadn't decided that programming is something they want to do everyday. I mean, they could also be good at mechanical engineering or music or electrical engineering. Keep in my mind that by programming, I mean the ability to solve a problem using a computer by supplying to it a set of instructions.
Like I said, programmers are made. a lot of people have the ability but whether they want to do it or not is the issue. I took that into calculation as well. I know people that have great passion for programming, went through hell to learn programming, but their brain is not just for it. And remember also that programming is a lot like mathematics, and we do know that mathematics is easier for some people and very tough and impossible for others. Mastering programming is tough - filled with frustration and lots of things, some people simple cant cope with the stress and run away when they start facing such challenges. |
Webmasters › Re: I'm Getting "Warning: Session_start() [function.session-start]" Error. Pls Help by dhtml(m): 1:41am On Jul 21, 2014 |
@op, please make sure there is no hidden space before you op start e.g. you can start like this just to be sure. <?php session_start();?> If all these dont work, then tire ti ba o ni yen (your village people don catch up with you) - just kidding. You can come back for advice, i will give you another approach which has never failed me so far. |
Programming › Re: Are Programmers Born Or Made? by dhtml(m): 1:21am On Jul 21, 2014 |
lordZOUGA: So, are they born or made?
I think they are made. I believe every human has the capacity to think logically. whether they want to do that for a prolonged period of time is the question. Abinibi is different from Ability. Some people may do all they can, but cannever progress to being a programmer. . . . .despite the fact that they may be geniuses in other things. |
Programming › Re: I Need A Php Tutor/mentor by dhtml(m): 11:55pm On Jul 20, 2014 |
CODEEATER: U r wasting your time bro...I have tried d same tin twice...
D programmers on Nairaland r either 2 proud, 2 "busy" or just don't care...
Forge your own path...work hard read books, watch GOOD vids n keep practicing n u will make it. I am just seeing this post, Interestingly, when i first came to nairaland i was under the same impression - now i know differently. |
Programming › Re: How Do I Read Through Huge PHP Code Samples? by dhtml(m): 11:34pm On Jul 20, 2014 |
Thank you o, that is the only way i know too. Meanwhile, i am assuming the OP has already gone through HTML,CSS and possible a little javascript (not compulsorily), because building a real-life application is going to involve all these and not just PHP. @op, i am sorry if my initial post was a bit harsh. I was just rather upset that you called yourself a beginner and you just wanted to JUMP like THAT? You needed some flogging to get your head straight - what were you thinking? You wanna blow your head? Ooops, i did it again! sorry. . . . |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 11:30pm On Jul 20, 2014 |
engrjidex: Me don delete ma FB account since last year, for some resons best known to me. Well, i have no means of authentication, so you still remain disqualified for certain reasons except the CHIEF JUSTICE proves me wrong. |
Programming › Re: Sorting Out A Simple Text Dictionary With PHP by dhtml(op): 11:26pm On Jul 20, 2014 |
Thanks bro! |
Programming › Re: Sorting Out A Simple Text Dictionary With PHP by dhtml(op): 11:16pm On Jul 20, 2014*. Modified: 2:39am On Jul 21, 2014 |
The code in question: <?php header('Content-type:text/plain'); $y=trim(file_get_contents('yoruba.txt')); //retrieve entire raw text file containing the words in the unsorted pattern $lines=explode("\n",$y); //split it into lines foreach($lines as $line) {//loop through each line $l=explode('-',$line); //break each line into an array based on the - $l=array_map('trim',$l); //trim spaces on both word and meaning $l[0]=ucwords($l[0]); //start word with uppercase for uniformity if(count($l)==2) {$arr[$l[0]]=$l[1];} //the line trims out any line that does not conform to word - meaning such as empty lines } ksort($arr); //sort the word and meaning alphabetically using the key i.e. word $boundary=""; //let us now display the clean result in alphabetical order and with no spaces foreach($arr as $word=>$meaning) { $b=substr($word,0,1); if($b!=$boundary) {echo "\n".'['.$b.strtolower($b).']'."\n";$boundary=$b;} echo "$word = $meaning\n"; } ?> |
Programming › Re: Sorting Out A Simple Text Dictionary With PHP by dhtml(op): 11:15pm On Jul 20, 2014 |
Ah well, after about 17 lines of PHP code approximately 2 - 3 minutes later, here is what i got: Not only was it sorted neatly, it also put the starting alphabet for each of the groups. [Aa] Abami = Weirdo, Strange being. Abanikedun = Mourner Adaniway = Creator Adaniwaye = God Adunmaradan = Ebony Agabagebe = Hypocrite Agbejoro = Lawyer Agbere = Adultery Agunbaniro = youth corper Agunbaniro: Yoruba Translation Of NYSC(a Helper = Literarily means someone that helps you take of your load)) Agunmaniye = Tall and Skinning/Obey the wind. a.k.a?:teu26: Ahere = Hut. Aisiki = Someone's destiny/luck Ajere = Announcer/PR Akalamagbo = Vulture Akidanidani = Retard Akiesi = Notice/being suspicious Akinkanju = Fearless fellow Akitiyan = Effort Alabahun = Tortoise Alalubarika = Blessing Alantakun = Spider Alashakasha = Bad style Alumogaji = can't remember this Alupupu = Motorcycle Amohunmaworan = Television Amoniseni = who needs an enemy when that person is friend Amuludun = Socialite Amulumala = Endeavor Aniyan = goal, what u wanna do or what u hope to do Apanimayoda = traitor Aramanda = Wonders/Magic Atanpako = Thumb Atapatadide = someone who has a poor begining
[Bb] Borokini = Honorable person
[Dd] Dadandidin = Stupid idiot Didinrin = Dummy
[Ee] Ebora = strange/evil spirit Elenini = A pester Erujeje = Fearful
[] Gbewiri = Theif Gidigbo = Village square fight
[Ii] Igberiko = Area Igunuko = that masquerade that rises and shrinks all the way to the earth mysteriously. Ijakadi = fighting gidigbo Ikuuku = Fist Irukerudo = perils Isekuse = Promiscious
[Jj] Jagidijagan = Troublesome Janduku = Rogue Janpata = Struggle
[Ll] Laakaiye = Senses Laakaye = WISDOM Labare = Expression
[Oo] Ogulutu = dumb *** Ojuoro = either Waterlilly or Mistletoe Ojurere = Favor Ologini = Cat Olojukokoro = Greedy Omidan = Lady Osibata = a bird with long neck that floats on water (seriously)
[Pp] Panshaga = Fornication Peperempe = babe
[Rr] Rogbodiyan = Strife
[Ss] S'abere Dowo = Tailor Sababi = Destiny Sakani = Surroundings Salubata = Sanda Shaje = Wise (Local)
[Ww] Wombia = greedy,(someone who eats a lot) |
Programming › Sorting Out A Simple Text Dictionary With PHP by dhtml(op): 11:13pm On Jul 20, 2014 |
I was trying to make a facebook post some minutes back, and here was the content of the post. Now, i was faced with a real dilema, this stuff needs to be sorted out. I was about doing copy and paste, and then i remember I was a programmer, so i decided to give PHP the dirty work gbewiri - olee, thief
Ahere - Hut. Akinkanju - Fearless fellow Adunmaradan - Ebony Akiesi - Notice Alalubarika - Someone who is Blessed Akalamagbo - Vulture Apanimayoda - Literarily means someone that kills without sword (witches, slander..etc) Abami- wierd Aramanda- wonders Amulumala - Endeavor Akidanidani - Retard Alantakun - Spider Aramanda - Wonders/Magic Amuludun - Socialite Agunmaniye - Tall and Skinning/Obey the wind. a.k.a?:teu26: Amohunmaworan - Television Atapatadide - someone who has a poor begining Atanpako - Thumb
Laakaye - WISDOM Igunuko - that masquerade that rises and shrinks all the way to the earth mysteriously.
Janpata - Struggle Ikuuku - Fist Erujeje - Fearful
Janduku - Thugs/Gangster Gidigbo - Rough Fight
Akiesi - attentive Alalubarika- blessing/favor Janduku- thug Akalamagbo- some animal, dunno Gidigbo- wrestling Apanimayoda- traitor Ebora - a spirit of the wild
peperempe - babe Shaje - Wise (Local) Alashakasha - Bad style
Alabahun - Tortoise Alumogaji - can't remember this S'abere dowo - Tailor Agbejoro - Lawyer
Akiesi - Notice/being suspicious Alalubarika - Blessing Janduku - Rogue Akalamagbo - Vulture Gidigbo - Village square fight
Rogbodiyan - Strife Jagidijagan - Troublesome
Borokini - Honorable person Ajere - Announcer/PR Ologini - Cat
Alabahun - Tortoise Alumogaji - can't remember this S'abere dowo - Tailor Agbejoro- Lawyer
Gbeborun - Busy body- Gossiper
Agunbaniro: Yoruba translation of NYSC(a helper- Literarily means someone that helps you take of your load))
Amoniseni - who needs an enemy when that person is friend Olojukokoro - Greedy Isembaiye - Ancient/Historical - existed before our forefathers Isekuse - Promiscious Abanikedun - Mourner Ogulutu - dumb *** Ojurere - Favor
Ojuoro - either Waterlilly or Mistletoe Osibata - a bird with long neck that floats on water (seriously)
Panshaga - Fornication Agbere - Adultery Agunbaniro- (i'm clueless) Elenini - A pester, i think Akitiyan - Effort Aisiki - Someone's destiny/luck
Agabagebe - Hypocrite
Alupupu - Motorcycle
Igberiko - Area
aniyan - promise (has the same meaning like mo se ileri fun olorun)
Panshaga - Fornication Agbere - Adultery Agunbaniro- youth corper Elenini - A pester Akitiyan - Effort Sababi -Destiny Aisiki - Someone's destiny/luck Aniyan - goal, what u wanna do or what u hope to do Wombia - greedy,(someone who eats a lot)
Adaniway - Creator Laakaiye - knowledge
Adaniwaye - God Labare - Expression Laakaiye - Senses Sakani - Surroundings
Ijakadi - Wrestling Abami - Weirdo, Strange being. Ebora - Demonic beings Gbewiri - Theif Omidan - Lady Didinrin - Dummy Dadandidin - Stupid idiot Salubata - Sanda
Ijakadi - fighting gidigbo Ebora - strange/evil spirit Irukerudo - perils |
Programming › Re: How Do I Read Through Huge PHP Code Samples? by dhtml(m): 11:11pm On Jul 20, 2014 |
You do not presume to know me, speak for yourself. @op, he is not my brother. |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 11:10pm On Jul 20, 2014*. Modified: 11:29pm On Jul 20, 2014 |
GodMode: You're still drinking panadol over that ish.... If u like make 1 trillion tutorials. My motto is always
I came I saw I troll.....
Divide and Conquer. However, you should know that there are still people swearing for you till now for your trollin action that caused catastrophe (which was to my credit BTW, so i wonder who really lost - definitely not me). Anyway, believe what ye will, I shall leave you to your allusions. |
Programming › Re: How Do I Read Through Huge PHP Code Samples? by dhtml(m): 9:31pm On Jul 20, 2014 |
You want to become an advanced copy-paster at this rate and not a programmer. I am sorry but i cannot help you - that your approach cannot help you learn programming. Did you read the documentation of the social networking script BTW? If you did, you will understand that a beginner programmer cannot manipulate the codes as easily as you think. Even a professional will have to work with documentation otherwise the entire code may become a liability rather than an asset. |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 9:02pm On Jul 20, 2014*. Modified: 9:21pm On Jul 20, 2014 |
GodMode: Issorai..... You are not even qualified in the first place, so there is no need to disqualify/requalify you, but still, i shall still [tscript]choose-one ? dequalify, disqualify, dequantify, disquantify, unquantify, misqualify, misquantify : disqualification[/tscript] you all the same (just for 'trollin sake). And i should thank you for assisting me to cancel my javascript tutorial, i was initially annoyed, but i have redirected that anger into something really positive - in fact, you may not know it, but you have been a godsent - my tutorials shall resurface - and this time i shall get more credits for my good work (and more too). |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 8:56pm On Jul 20, 2014 |
engrjidex: Abeg, am i fit to register?
Name: ------TOmmy Jidex Sex: ----------Male language: --Asp.NET Category: ? ? ? Disqualified see leaflets below. [size=1pt]I might be wrong, but i dont believe you are using your real name because a search comes up with blank, provide your facebook link to cross-authenticate[/size] |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 3:56pm On Jul 20, 2014 |
O boy, this disqualification na wa o. @people, if you are disqualified, just take it in good faith. |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 3:28pm On Jul 20, 2014 |
^^^the above registrant was requesting to be a judge BTW |
Programming › Re: Programming Challenge For Beginners Competition Two N20000 -SEASON 2- by dhtml(m): 2:35pm On Jul 20, 2014 |
[size=1pt]Laffing like scoobie-doo! this thread is fast turning into a freaking circus[/size]. |
Programming › Re: Are Programmers Born Or Made? by dhtml(m): 12:13pm On Jul 20, 2014 |
MissMeiya: Hooray for you and... Urine? (My friend, what kind of name...)
Female STEMers for the win  Coughs |