Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,158,091 members, 7,835,671 topics. Date: Tuesday, 21 May 2024 at 01:17 PM

PrinceNN's Posts

Nairaland Forum / PrinceNN's Profile / PrinceNN's Posts

(1) (2) (3) (4) (5) (6) (7) (8) ... (10) (11) (12) (13) (14) (15) (16) (17) (18) (of 22 pages)

Forum Games / Re: NL Ruzzle Tournament! by PrinceNN(m): 10:12pm On Jan 09, 2013
BABE!:


oh pls!

Coogar deal with this guy! angry

em wan die?
Forum Games / Re: NL Ruzzle Tournament! by PrinceNN(m): 10:10pm On Jan 09, 2013
mascot87:
I am waiting for you
ur turn mortal cool
Forum Games / Re: NL Ruzzle Tournament! by PrinceNN(m): 9:47pm On Jan 09, 2013
[size=15pt]sori folks...none of you mortals can best me in this game...ask BABE!!
my username is princennamdi for those who wanna try[/size]
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 7:07pm On Jan 09, 2013
@whiZTiM where u @ na
Computers / How To Fix Any Computer by PrinceNN(m): 7:27pm On Jan 08, 2013



2 Likes

Politics / Re: What Is The Present State Of Electricity In Your City/state by PrinceNN(m): 4:16pm On Jan 08, 2013
gREAT iMPROVEMENT...RIVERS...>PH
Phones / Re: Sony Unveils Waterproof Xperia Z Phone by PrinceNN(m): 10:39am On Jan 08, 2013
Cool...i can now swim with my phone cheesy
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by PrinceNN(m): 10:37am On Jan 08, 2013
Zet72: Thanks Javenia I have read the whole tread,so my question is this, can somebody who hav no prior knowledge or study computer related subject learn programming if yes like how long & can the person be expert & how do I start .
Thanks ....waiting for ur answer.....
very possible... codecademy.com is a good way to start, how long and skill level all depends on you, but you must know some very basic aspects of the computer

4 Likes 2 Shares

Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by PrinceNN(m): 10:31am On Jan 08, 2013
Paulipopor: Thanks guys for this thread. I'd like to build a simple accounting software. Which of the programme should i learn and how do i start.

Thanks a lot.
VB.net
Programming / Re: I Want To Learn Programming. Which Language Should I Start With? by PrinceNN(m): 10:30am On Jan 08, 2013
adewasco2k: @Javanian or other java gurus, i am yet to learn java but know bit on jQuery at least i can do alot, just ran into a problem today while trying to conclide my project work via codecademy.com.

it is a jquery stuff though...please can i ask the question here?
ask away
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 11:51pm On Jan 07, 2013
true that..
Romance / Re: Funniest Question A Girl Or Guy Ever Asked You! by PrinceNN(m): 6:11pm On Jan 06, 2013
how much do you make per hour
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 11:16am On Jan 06, 2013
What isp do u use?
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 2:03am On Jan 06, 2013
well i think the sentences should be broken down to arrays of words, and the similarity of each index checked against the other, then number of words and number of letters in each sentence would be added to the mix grin
Crime / Re: Cat 'Arrested' For Break-in At Brazilian Prison by PrinceNN(m): 1:08am On Jan 06, 2013
hmm...notin persin no go hear angry
Politics / Re: Nigeria Is The New Center For Pirate Attacks In The World by PrinceNN(m): 10:14am On Jan 05, 2013
redcliff:

Omo this your username u always have to copy and paste it otherwise you no go fit login.lol.

lool true but i hav a shortened url i can input on any device that automatically sends the POST data and logs me in
Politics / Re: Nigeria Is The New Center For Pirate Attacks In The World by PrinceNN(m): 9:59am On Jan 05, 2013
HQ: Ah Phew, First thing that came to my mind was "The Pirate Bay".

Oh well, carry on. . .

lool true...tot they were bout to pass some censorship bill or shi.t
Politics / Re: Nigeria Is The New Center For Pirate Attacks In The World by PrinceNN(m): 9:55am On Jan 05, 2013
nth
thank God this has nothing to do with the internet....*continues illegal downloads* cheesy

1 Like

Programming / Re: Sorting List Of Numbers And Strings: Simple Puzzle by PrinceNN(m): 3:04am On Jan 05, 2013
pak: I went on an overdrive and came up with a solution that will definitely take something special to beat.

6 lines !!!.

The only thing I can say is, PYTHON IS SWEET


You can check it out !


li = raw_input("enter "wink.split(' ')
intarr,wordarr,finalarr = [],[],[]
[intarr.append(elem) if elem.isdigit() else wordarr.append(elem) for elem in li ]
wordarr.sort()
intarr.sort()
print [intarr.pop(0) if elem.isdigit() else wordarr.pop(0) for elem in li ]




lool i have similar code (6lines) too...was just waitn for someone to up the limit grin....but id give it to you as urs contained less characters
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 2:06am On Jan 05, 2013
it worked yea... cool...
Family / Re: Being The Only Male Or Female Child: How Does It Feel Like? by PrinceNN(m): 12:26am On Jan 05, 2013
Its sad and boring ...have to always rely on friends to play video games with me tongue
Tho I cnt seem to remember what a "chore" is undecided have 4 sisters for dat cool
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 11:40pm On Jan 04, 2013
yea its giving 140% ... i think its because of the repeated "ch"
but isnt that a good thing? u know ... in matching stuffs ... the higher match is the likely chosen
say for example i matched "church" and "churce" nd it gave me 100% but with "church" it gave me 140% so d latter is chosen
maybe im wrong sha...would like to see ur code tho
Programming / Re: Sorting List Of Numbers And Strings: Simple Puzzle by PrinceNN(m): 11:20pm On Jan 04, 2013
omo_to_dun: @PRINCE

I am not denying it. I was only making a point. I wanted to show that if we all removed the empty lines and made some clever adjustments, our code would be small.
owky...true that
Romance / Re: Can You Fight For Your Spouse's Right In Public? by PrinceNN(m): 11:15pm On Jan 04, 2013
Elobaba:

na ice cream?

lmao
Romance / Re: Can You Fight For Your Spouse's Right In Public? by PrinceNN(m): 3:41pm On Jan 04, 2013
Redmosquito:
That takes too much time! undecided

revenge is best served cold...

1 Like

Romance / Re: Can You Fight For Your Spouse's Right In Public? by PrinceNN(m): 3:33pm On Jan 04, 2013
i would simply resolve the ish with words, track the car and prepare a proper beating for the driver undecided

1 Like

Programming / Re: Sorting List Of Numbers And Strings: Simple Puzzle by PrinceNN(m): 3:07pm On Jan 04, 2013
omo_to_dun:

Haba! You removed all the empty lines and cheated your way to 19 lines. Well this is mine and it is 15 lines.



Haba! You removed all other lines leaving only the your method and cheated your way to 15 lines. grin

l =  "car truck 8 4 bus 6 1"
lint, lalph, lnew = [],[],[]
for i in l.split():
if i.isdigit():
lint.append(i)
else:
lalph.append(i)
lalph.sort(reverse=True)
lint.sort(reverse=True)
for i in l.split():
if i.isdigit():
lnew.append(lint.pop())
else:
lnew.append(lalph.pop())
print " ".join(map(str, (lnew)))
Programming / Re: A Simple And Very Useful -WORD And SENTENCE- Similarity Algorithm ...part_1 by PrinceNN(m): 1:23pm On Jan 04, 2013
lol @ shoutout ...
interesting AI logic...am following this grin
btw i made an attempt



def returnBigrams(STR):
return [STR[n:n+2] for n in range(len(STR) - 1)]


str1 =returnBigrams( "naira" )
str2 =returnBigrams( "niara" )
sb = 0
t = len(str1) + len(str2)

for n in str1:
for m in str2:
if n == m:
sb+=2.0

s=(sb/t)*100
print s
Programming / Re: Sorting List Of Numbers And Strings: Simple Puzzle by PrinceNN(m): 10:14am On Jan 04, 2013
pak: ekt_bear, I feel like punching you for depriving me of my sleep really. Saw this as I was about to hit the sack and couldn't blink until I cracked it.

My fav pastime is Python but since I dont us python in my day job, I've been terribly rusty.
Infact the stuff took me well over an hour considering I was even just installing the python executable on my new sis.

However, having lost out in the competition to be the fastest, I strove for the next glorious crown - to be the most elegant grin grin grin

Guess I achieved it. 19 lines of code

Prince actually did the stuff in 18 lines (with the white spaces stripped of) but the script didn't run when I tried it out. I guess he has to check out one or two stuffs in the code.

. . .and the Java solutions ? puleeeeeeeeaaaaaaaaaase. is that the code to calculate the GDP of Nigeria ?
Really, I appreciate you guys (the programmers) but its the lang that I detest.

To The C++ guy, I believe C++ can do better than that, That was actually my first love. but kudos though.



Check out my solution

http://pastebin.com/W3swZVfd

My logic is undeniable! tongue I can evn make it shorter....
Lmao @ GDP of Nigeria....
Programming / Re: [C++ Open Source] Relax! ( File Management Tool) by PrinceNN(m): 2:59am On Jan 03, 2013
crazygod: Blah blah blah blah. Abeg make una speak english.
lool

(1) (2) (3) (4) (5) (6) (7) (8) ... (10) (11) (12) (13) (14) (15) (16) (17) (18) (of 22 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. 33
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.