₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,720 members, 8,513,376 topics. Date: Wednesday, 04 November 2026 at 09:58 PM

Toggle theme

Logica's Posts

Nairaland Forum › Logica's Profile › Logica's Posts

1 2 3 4 5 6 7 8 ... 200 201 202 203 204 205 206 207 208 (of 228 pages)

Politics › Re: Don’t Emulate Me, Soyinka Tells Younger Generation by logica(m): 3:55am On Jul 21, 2011
[quote author=ekt_bear link=topic=713967.msg8739783#msg8739783 date=1310997408]Hehe. My pops is a tall (6'4) very good looking dude.[/quote]LOL. If you may say so yourself eh? Anyway good thing you took it in good humor. But I suspect your dad was just going off on rumors and not actual experience.
Programming › Re: Help With This Regular Expression: by logica(m): 12:21am On Jul 21, 2011
You always close it? You think it's a virus? Nah. It tries to open in Excel because CSV is a spreadsheet format, and of course on Windows your standard spreadsheet app is Excel.

CSV = Comma Separated Values. It is merely a standard (formatted) text file containing data records separated by commas and funny enough, that is exactly the kind of data you are dealing with here; so any CSV file reader will do the work you are trying to do. (There are literally millions of them online for download and I even reinvented the wheel too and I implemented 2 using 2 different strategies for experiment and control  - Reg Exp and Tokenizer - and guess which was faster. . .).

XML is not generally human readable even if it is much more flexible than CSV. But CSV is human readable meaning that any body who knows how to use Excel can edit the file. XML will require much more expertise. In general terms, XML is useful in a module-to-module interface, but CSV is more useful in a human-to-computer interface. Also XML files will generally be larger than the corresponding CSV files.

Pros and cons. . .
Programming › Re: Help With This Regular Expression: by logica(m): 12:14am On Jul 21, 2011
Not quite, but barely. But that is a problem of the file format itself. You should stick to standards and use a real CSV format because what you have appears not to be. Otherwise you will have problems with data having commas e.g a name like "Abiodun, Dare Alade" (which are escaped in the CSV format).
Programming › Re: Help With This Regular Expression: by logica(m): 12:04am On Jul 21, 2011
Fayimora:
Hahahahha it matches them all, Try again! tongue
True. It should match them since they are not in the Reg Exp itself. But it still matches the nonsensical names. I am putting you through all the things you will have to consider when you use regular expressions - the various possibilities you may need to check might not be worth it, but in this case, it works for you. smiley
Programming › Re: Help With This Regular Expression: by logica(m): 11:50pm On Jul 20, 2011
Fayimora:
My regex matches your names grin
Oh yeah, you are matching everything that is not a comma, which is not very accurate (which is probably the only reason you should use Reg Exp - for validation enforcement and data integrity). Your current Reg Exp will even match such names as "235258235235" and "&@$!@*&WWR".

If they matched the previous names, I'm sure they won't match these:

B. A. Abaniwonda - (has the dot special character).

Adeola (Mrs) - (has brackets).

. . . and several other names that have special characters (meta-characters).
Programming › Re: Help With This Regular Expression: by logica(m): 11:35pm On Jul 20, 2011
[quote author=naija_swag link=topic=717403.msg8757317#msg8757317 date=1311200796]I think am buying the regular expression thing if it makes the program run faster.I have a problem i am tryng to solve where i have to search 200,000 words for some patterns but i will try and do it in java.my initial solution with loops takes eternity to run.[/quote]RegExp will not necessarily make you program run faster as they internally loop just as you would; and in some cases can actually be less efficient (and of course depending on your expertise) - e.g knowing which expression does a greedy match et cetera. I am not saying you shouldn't master Reg Exp though. It can ease tasks sometimes, when you know exactly what you are doing, but in most cases you may want to use Reg Exp, is no more than killing a mosquito with a bazooka.
Programming › Re: Help With This Regular Expression: by logica(m): 11:12pm On Jul 20, 2011
Let me tell you a bit about reg exp: if you are not an expert in them, don't rely too much on them. They get complex very quickly and you will have a hard time knowing what the problem is. I'll use your reg exp to prove my point:
Your regular expression will likely not match a name like: "William S Gates 3" or "Jackson & Sons" or maybe even "Mary-Louise Parker"  which are valid names. If it does match (I didn't confirm), congratulations. It's just for you to know - there are standard regular expressions for various data classifications from names to email addresses. You might want to borrow from them.
Programming › Re: Help With This Regular Expression: by logica(m): 10:54pm On Jul 20, 2011
I am quite surprised you didn't realize this also applies to your regular expression - it (the hypothetical line of instruction) will also be matched. smiley
Programming › Re: Help With This Regular Expression: by logica(m): 10:47pm On Jul 20, 2011
LOL. So you think regular expressions don't themselves result in loops? It's just that it's transparent to you. Headers and footers can easily be skipped by ensuring the tokenizer produces an expected number of tokens (in your case 4). Well, you know the format of the records you are dealing with.
Programming › Re: Help With This Regular Expression: by logica(m): 9:07pm On Jul 20, 2011
It's easy enough to simply use a StringTokenizer (comma separated) and then split the last token using a space separator to get the state and zip-code. But I already see what seems to be an error in the data which will make this fail; a missing comma:

Cuthbert Eggleston, 9084 Constable Drive, Tuba City AZ[size=36pt],[/size] 86045-9542

You could also use any standard CSV file processor.
Politics › Re: Ministerial Nominee Jumps In Lagoon. Frustration Or African Juju At Work? by logica(m): 3:40pm On Jul 20, 2011
Oh; staunch Bode George disciple eh? I am sorry, but I have no condolences to offer.
Business › Re: Lagos-Ibadan Expressway To Be Financed By South African Bank by logica(m): 3:40pm On Jul 20, 2011
kulutempa:
That, sir, is the Nigerian problem in a nutshell: Individual ability, collective stupidity.
Really? It is better to buy a 100KVA generator and then end up sharing other people's problems? LOL, you don't know the problems you are bringing on your head sharing with Nigerians. Eventually the 100KVA generator will get damaged and people will rather watch it rot than contribute to bring it back to life. Even you will tire and would rather watch it rot, by the time the generator turns into a huge sink where all your hard-earned cash disappears.
Politics › Re: Ministerial Nominee Jumps In Lagoon. Frustration Or African Juju At Work? by logica(m): 7:44pm On Jul 19, 2011
[quote author=~Bluetooth link=topic=716210.msg8748376#msg8748376 date=1311100262]You can only hear that from peeps from osun and oyo not sure about ogun state.Btw,where is aribisala from cuz this hn name sef get as e be ? Sounds like hausa name to me.[/quote]Saying "Aribisala" sounds like Hausa invalidates any claims you previously made about Yoruba. "Aribisala" translates to "He who finds refuge to escape from danger", and it is very much Yoruba.
Politics › Re: Ministerial Nominee Jumps In Lagoon. Frustration Or African Juju At Work? by logica(m): 7:05pm On Jul 19, 2011
superior1:
@logica, i really wish i can agree with you but imagine

1. The driver from the interview appeared to have repeated the exact words of the man, the statement is a direct repetition.
How do you know this? You are merely speculating. Further as pointed out in a previous post, such euphemisms are quite commonly used by the older generation. I quite often here people say "mo fe gb'on'se" which means the exact same thing.

superior1:
2. 4 years older than Nigeria, born and most likely lived all through the years, was pressed enough to drop on the bridge, removed all his clothes, wallet, wristwash all the time saying 'mo fe lose gaa' all this drama to commit suicide or wetin?. I am still looking for a better theory but for now i still want to repeat 'No be Ordinary Eyes' awon iya lowo si
I think he was killing 2 birds with one stone. I won't be surprised if his financial status caused the onset of diarrhea (people who have been in serious trouble should know how you feel that sudden urge to Poo) and he decided to end it all anyways by committing suicide. Any theories about "iyas and babas" is out of place in the 21st century (in case you haven't checked the calendar lately).
Politics › Re: Ministerial Nominee Jumps In Lagoon. Frustration Or African Juju At Work? by logica(m): 5:55pm On Jul 19, 2011
texazzpete:
If you had told me i'd be defecating in the bush and i'd use my friend's prized handout as tissue papers, i'd never have believed it.
Ha ha! Finally someone who uses hand-outs for the purpose they were made.

In any case I have no doubt he committed suicide. Those saying the Yoruba he spoke was archaic Yoruba spoken in the village, and might be confirmation he was under the influence of "Jazz" there are 2 things you have to consider:

1. We have the driver's narration. For all you know, the driver did not quote him verbatim and you are merely reading the driver's "Village Yoruba".
2. The man is 55 years old, meaning he's 4 years older than Nigeria! And you don't think he has access to archaic Yoruba?
Business › Re: Islamic Banking Necessitated By Effect Of Global Meltdown – Sanusi by logica(m): 11:53am On Jul 19, 2011
I was actually ambivalent on this Islamic Banking controversy but then somebody raised a very valid point I had missed - once it starts, all other banks north of the Niger will go into extinction as they will be sabotaged and bombed till they scamper and close shop. The banking system as we know it will likely collapse. You can expect the fanatics up north to throw their support behind the Islamic Banks to the detriment of regular banks.
Crime › Re: Breaking News: Touts And Nurtw Are Fighting In Lagos by logica(m): 11:39am On Jul 19, 2011
gidson12:
i still dont understand why the government allow touts to run parks
LOL. You don't understand? Who does the dirty job when the time for elections come? Have you not noticed the relationship between NURTW and politics? And where do you think a sizable portion of the tolls collected from drivers go as kick-backs? Why bribe the Government? OK, who allows all these rickety non-roadworthy vehicles that wouldn't pass crash tests on our roads, not to talk of vans meant for lifting goods converted to passenger vehicles. You and I are no better than tubers of yam in their eyes.
Politics › Re: Don’t Emulate Me, Soyinka Tells Younger Generation by logica(m): 1:56pm On Jul 18, 2011
[quote author=ekt_bear link=topic=713967.msg8736562#msg8736562 date=1310944485]The way my pops tells it to me, it was way worse than that. Sounded more like some sort of secret society/masonic order than a simple innocuous frat.[/quote]Could it be your pops is still sour he wasn't inducted, or did he feel oppressed by a group of super-smart dudes taking all the chicks?
Family › Re: by logica(m): 10:53pm On Jul 13, 2011
As long as women continue to be drawn to power, money, popularity and other things which define "success", men will continue to have multiple partners ("cheat").
Family › Re: by logica(m): 4:44pm On Jul 13, 2011
LMAO. Getting feisty over nothing.

I just pointed out that you are employing the same silly technique used by religion. Just a side-swipe, that's all. You don't care, right. I hear you.
Family › Re: by logica(m): 4:25pm On Jul 13, 2011
[quote author=tpia@ link=topic=710353.msg8709865#msg8709865 date=1310569829]did my post reference religion in any way? huh[/quote]No. But it is the very same thing on which religion is based. I will be very surprised if you are not religious.

[quote author=tpia@ link=topic=710353.msg8709865#msg8709865 date=1310569829]i spoke of what i know.[/quote]That is very much debatable (what you know, that is).

[quote author=tpia@ link=topic=710353.msg8709865#msg8709865 date=1310569829]if you have never heard of men being found dead in strange places and nobody knows how or why they got there, then good for you.[/quote]Men are discovered dead from a million and one circumstances (including kidnapping for political reasons, to silence them because they know too much, money et cetera) but for your purposes you highlight just "cheating", which I am sure is the least likely circumstance.

[quote author=tpia@ link=topic=710353.msg8709865#msg8709865 date=1310569829]if you consider that fear mongering then feel free to continue whatever you're doing.

how is it my problem?[/quote]You definitely don't know what I do, so it's definitely not your problem. Continue with what you do, but realize you are not speaking to kids.
Family › Re: by logica(m): 4:08pm On Jul 13, 2011
[quote author=tpia@ link=topic=710353.msg8708929#msg8708929 date=1310561451]This is how some men end up dead in strange places and nobody knows how or why they got there.[/quote]This is an example that backs up my hypothesis that religion was either created by women, or was created for them and kids: fear-mongering. Where is religion without fear-mongers doing their thing? And of course fear-mongering is one of those tools women deploy to put their kids in check so it's inborn. Only problem is, most of the time they forget they are not addressing kids.
Business › Re: A Narrow Escape (ATM Story): Please Read And Be Informed! by logica(m): 10:49pm On Jul 12, 2011
Sorry. I intended quoting this:

Most sites provide virtual keypads to allow users type in your pin for that purpose.
But even the access code thing is useless against a computer that has more or less become a "server"; the pwners will simply hijack your session and continue from where you left off.

And yes, "security" is only guaranteed by sticking to "counter banking or physical cash" but that brings a lot more issues that I would rather avoid. At least I can't get shot doing my online transactions.
Family › Re: by logica(m): 10:23pm On Jul 12, 2011
coogar:
martin luther king also had a boyish look when he cheated. martin did not create any huge impact, his name has been forgettable since he died cos it's not written in gold to influence young black men in america. martin is also mentally irresponsible to his family and his world.
Another wonderful rebuttal.
Family › Re: by logica(m): 10:02pm On Jul 12, 2011
Men don't cheat. It's boys that do cheat! A man is one that is so focused on creating a huge impact in HIS world to make it better,thus writing HIS name in gold by influencing the life of the younger generations.He is mentally alert to His responsibilities to HIS family and his world.
No wonder Bill Clinton cheated, being he has a boyish look.
Business › Re: A Narrow Escape (ATM Story): Please Read And Be Informed! by logica(m): 9:56pm On Jul 12, 2011
You should just be tech-savvy that's all. For instance, you can't say you want to be trendy and do internet-banking, and then you go access your account at a cybercafe. And you can't be using an ATM without being sure it hasn't been tampered with. BTW, it is the responsibility of banks to secure their ATMs and they really should be taken up.

Banks these days provide you with calculator-like access code generator that generates authentication codes everytime you use or access your online account and it changes each time.
That is still insecure (if your computer has been hacked - trojan horse etc) as capturing the mouse clicks and knowing the screen resolution means you can identify which buttons were clicked. Please stay away from Windows if you want to be doing online transactions frequently.
Family › Re: by logica(m): 9:18pm On Jul 12, 2011
dayokanu:
Abraham, Cain, Jacob, David, Solomon all the biblical men were Polygamous was that due to war and Slave trade also?
Thanks for providing a great rebuttal. I need not say more.
Sports › Re: 'Some Players Were Madly Jealous Of Yekini At USA 94' - Oliseh by logica(m): 8:53pm On Jul 12, 2011
Yes. It was clear Amokachi and Amunike (especially) were not happy with Yekini. Typical of glory seekers, forgetting that Yekini had been banging in goals for the Super Eagles when they were still running around in the dirty streets in their dirty and torn underpants.
Family › Re: by logica(m): 8:41pm On Jul 12, 2011
Blah blah blah blah. Go and ask your grandfather or great grandfather why he "cheated" by marrying 8 wives. I no blame una, na the oyinbo wey bring "monogamy" come una doormot I blame.
Politics › Re: Boko Haram Robs Two Northern Banks And Gives Money To The Poor by logica(m): 10:40pm On Jul 09, 2011
born2fuck:
I'm going to the North to pick up money,ooh, Money good ooo, if I could get 100,000 every thrown by boko haram,I will be having nothing less 3M a month huh
Or you could get a 100,000 pound bomb thrown your way. You can take your chances though.
Business › Re: Nigerian Tries To Cash Bank Check, Ends Up In Jail by logica(m): 10:33pm On Jul 09, 2011
[quote author=aloy/emeka link=topic=709518.msg8681797#msg8681797 date=1310180029]Stop blaming it on Americans. It is the bad name Nigerians created for themselves that is haunting them. Y'all are doing Boko Haram now, when they start searching Nigerians specially at the airports, another person will blame it on "inept" Americans.[/quote]And stop talking like you have your head up America's azz. Americans are generally more fraudulent than Nigerians. America is 1st in the list of countries when it comes to fraud. Nigeria is 3rd I believe. So do you see Americans acting with suspicion towards themselves? Tell me where Bernard Madoff is from? Oh I forgot, he's Nigerian.
Programming › Re: Is Anything Better Than The Netbeans Ide? by logica(m): 10:21pm On Jul 09, 2011
0Edward0:
Please which is the best portable (run fromm usb) java ide?
You can just copy your Eclipse installation zip/package and inflate into the USB drive and run from the drive. Eclipse doesn't require an actual install either on Windows or Fedora. Same should apply for other O/Ses.

1 2 3 4 5 6 7 8 ... 200 201 202 203 204 205 206 207 208 (of 228 pages)