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)
[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. |
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. . . |
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). |
Fayimora: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. ![]() |
Fayimora: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). |
[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. |
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. |
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. ![]() |
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. |
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. |
Oh; staunch Bode George disciple eh? I am sorry, but I have no condolences to offer. |
kulutempa: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. |
[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. |
superior1: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: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). |
texazzpete: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? |
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. |
gidson12: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. |
[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? |
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"). |
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. |
[quote author=tpia@ link=topic=710353.msg8709865#msg8709865 date=1310569829]did my post reference religion in any way? [/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. |
[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. |
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. |
coogar:Another wonderful rebuttal. |
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. |
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. |
dayokanu:Thanks for providing a great rebuttal. I need not say more. |
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. |
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. |
born2fuck:Or you could get a 100,000 pound bomb thrown your way. You can take your chances though. |
[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. |
0Edward0: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)



[/quote]No. But it is the very same thing on which religion is based. I will be very surprised if you are not religious.