₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,330,457 members, 8,445,549 topics. Date: Wednesday, 15 July 2026 at 08:57 AM

Toggle theme

Ektbear's Posts

Nairaland ForumEktbear's ProfileEktbear's Posts

1 2 3 4 5 6 7 8 ... 76 77 78 79 80 81 82 83 84 (of 485 pages)

CultureRe: Why Is 'Nigger' Offensive? by ektbear: 8:03pm On Sep 29, 2012
Arguing with cap28 is generally a waste of time. He views everything through an anti-western, anti-white lens. Nothing is ever our own fault or that of our ancestors, everything is due to whitey's evil.

I reject that ideology not just because it is wrong but because his perspective reduces black people to basically helpless infants whose fate is controlled by their father, whitey.
SportsRe: Bishops Outraged By Neymar's Representation Of Jesus Christ by ektbear: 7:58pm On Sep 29, 2012
No riots? No suicide bombings? No fatwah issued paying money for someone's death?

Only a petition?

Jeez....Christians are too mild-mannered.
FamilyRe: Why This Rise In Marriage Failure? by ektbear: 7:32pm On Sep 29, 2012
Feminism, basically.
ProgrammingRe: Another Programming Challenge by ektbear(op): 7:31pm On Sep 29, 2012
lordZOUGA: it will take O(N)... This would be nice but your algorithm suggested doing it twice when in my opinion, once would be enough.
Yea most languages has internal buffer... C++ has the internal buffer object stream_buf that is created for every I/O operation
If you don't know N, I think that it is impossible to do it in one pass.

You have to know N to generate the K random row #s correctly. And the only way to know N is to pass through the file once.
ProgrammingRe: Another Programming Challenge by ektbear(op): 7:30pm On Sep 29, 2012
[quote author=₱®ÌИСΞ]Hahaha lol...thnx for dat...I imagined the possibility of dat occuring in a HUGE file was near impossible so I guess my mind didn't go there...lemme fix it[/quote]Indeed, if N is big, and K relatively small, then this is pretty unlikely to happen. This was the subtle issue I alluded to in my first post. But it is pretty easy to fix (just reject a random number it is already in your list).
PoliticsRe: The Size Of Africa by ektbear(op): 11:57am On Sep 29, 2012
africa id nih
Foreign AffairsRe: President Barack Obama Leads Over Republican Challenger ''mitt Romney'' by ektbear: 11:15pm On Sep 28, 2012
PoliticsThe Size Of Africa by ektbear(op): 10:45pm On Sep 28, 2012
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:56pm On Sep 28, 2012
That typically isn't how people define a random subset of size 3 from N objects.

Basically, there are N choose 3 such subsets. And when people say "random", then mean that each of these subsets are equally likely.

Otoh, you seem to be throwing away subsets such as R={1,2,3}.

Anyway, not a big deal...easy to fix
PoliticsRe: Nigerians It Is Time We Look Towards The East!!!!!!!!! (picture) by ektbear: 9:51pm On Sep 28, 2012
Indeed. But can you ask your "close friend" to post more pictures? You can even have your "close friend" log into your Nairaland account to do so cheesy
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:49pm On Sep 28, 2012
Eh...that makes it less random, not more random.

Well, it depends on how you define random I guess.
PoliticsRe: The Land Of Israel Rejects Africans by ektbear: 9:48pm On Sep 28, 2012
In your diseased mind, Does Christianity require one to visit Israel as part of your faith?

Wetin concern Christians with what a land controlled by a different religion (Judaism) does?
PoliticsRe: Nigerians It Is Time We Look Towards The East!!!!!!!!! (picture) by ektbear: 9:46pm On Sep 28, 2012
Did you do more sight-seeing in South Korea? You should post more pictures.
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:44pm On Sep 28, 2012
Javanian:
while (!sr.EndOfStream) {
sr.ReadLine();
totalLines++;
}


You are doing the samething i did grin
Right, but he just counts the number of lines to compute N. He doesn't store the line in memory like you do with your list.
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:43pm On Sep 28, 2012
I think your algorithm works, mkwayisi. However, the splitting the lines into groups stuff is not something I mentioned...but can of course be corrected pretty easily.
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:41pm On Sep 28, 2012
goto end; // The more they hate you, the more I love you!

lmao! grin
PoliticsRe: Saudis Block Nigerian Envoy From Detained Pilgrims by ektbear: 9:36pm On Sep 28, 2012
Torch1: Arab Muslims see Hausa-Fulani muslims as inferior muslims while Hausa-Fulani muslims in Nigeria see Yoruba Muslims as inferior muslims.. Lol, no equality in Islam.

Hausa-Fulani muslims are slaves to Arab muslims while Yorubas are slaves to Hausa-Fulani muslims!
No wonder Tinubu bowed to Buhari.
Why would Yoruba Muslims care what H-F muslims think about them, is the question. The latter are seen as dogs by Arab Muslims, the founders of the religion and the keepers of the faith, no?

Anyway, this is why follow-follow religion like Islam is useless. How can your religion require to visit Saudi Arabia where some dude can turn you away anyhow or treat you like dirt.

Shine your eyes wellu-wellu Yoruba Muslims.

Btw, next time I see these Hausa rioting because Israel beats up some Palestinians, or because of Afghanistan/Iraq/etc, I will give them a dirty slap
PoliticsRe: Saudis Block Nigerian Envoy From Detained Pilgrims by ektbear: 9:33pm On Sep 28, 2012
lmao

this is absolutely hilarious grin
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:25pm On Sep 28, 2012
If the file is 4 terabyes, you've just created a list of size 4 TB. Which will not fit in your computer's memory.
PoliticsRe: Nigerians It Is Time We Look Towards The East!!!!!!!!! (picture) by ektbear: 9:15pm On Sep 28, 2012
Meh

East would have done the same if it had had the opportunity.

In fact, China will probably spend the next few hundred years fvcking Africa hard up the azz grin

Heck, black people would have made europeans suffer if we'd colonized Europe instead of vice versa.

Human beings are human beings....all the same
ProgrammingRe: Another Programming Challenge by ektbear(op): 9:02pm On Sep 28, 2012
Hmm...I think you need to have a function countLines() that first computes N.

Once you have this, then you generate a list of the K row numbers you'll need to grab.

Then you grab them.
ProgrammingRe: Another Programming Challenge by ektbear(op): 8:48pm On Sep 28, 2012
lordZOUGA: sweeping through a file of unknown length line by line?? Even if the file is say up to 1terabyte??
If there are N lines, this will take O(N) time, won't it?

Plus most languages will do some sort of buffered I/O which reads big blocks of the file at a time, no?
PoliticsRe: Osun To Create 27 Local Governments - Aregbesola by ektbear: 8:44pm On Sep 28, 2012
Of course. Privately owned land is taxed too.

How can it not be taxed? Doesn't the government provide services? Road to connect that land to civilization?

Schools for the owner of that land and his family? Security?

The money from that has to come from somewhere. Democracy and well-functioning society are not just about rights, but about responsibilities.

Part of your responsibility is to pay your tax.
Nairaland GeneralRe: Giant Sea Turtle Seen At Oniru Beach This Morning by ektbear: 8:21pm On Sep 28, 2012
That turtle is a goner.

RIP lil homie.

Going to pour a little liquor for you.
CultureRe: Why Is 'Nigger' Offensive? by ektbear: 8:20pm On Sep 28, 2012
It depends on how it is used, and who is saying it.

Doesn't bother me at all when black people say it.
PoliticsRe: Osun To Create 27 Local Governments - Aregbesola by ektbear: 8:14pm On Sep 28, 2012
Indeed. Property taxes....homes, office buildings, privately owned land, etc taxed. This money is then used to pay for schools, county police, etc.

It was through the property taxes that my parents paid that I went to school.
ProgrammingRe: Another Programming Challenge by ektbear(op): 8:01am On Sep 28, 2012
Another small one:

1. Write a function that determines if a number is prime or not (try to use an algorithm at least slightly better than the obvious one that just tests all factors).

2. If you plan on calling this function many times with many repeated values, how would you suggest speeding up the performance?
Foreign AffairsRe: The Man Behind Anti-Islam Movie Arrested (pics) by ektbear: 7:47am On Sep 28, 2012
lagcity: this guy is a goner i swear. it is just a matter of time b4 muslims lay their hands on this guy. grin i don't know why palava sleep jeje, this man pikin go wake am up angry
nah, he is relatively safe in yankee
PoliticsRe: BOTCHED DIPLOMACY AS Saudi-Arabia Deports 510 More Nigerian Women Pilgrims!! by ektbear: 7:45am On Sep 28, 2012
Truckpusher: It's time to burn some green flags and trample on the crescent...my moslem brodas what are u waiting for?....c'mon ,u've been religiously insulted by one of your own...show some muscle....una goof... shocked shocked shocked shocked shocked
dey no get liver
PoliticsRe: BOTCHED DIPLOMACY AS Saudi-Arabia Deports 510 More Nigerian Women Pilgrims!! by ektbear: 7:45am On Sep 28, 2012
bros856: This is a big shame to Muslism in Nigeria and Nigeria as a nation. Where is Ibrahim Babangida, Abdulsalami Abubahkar, Atiku, Sultan sokoto, Shek Mohammed, Yaradua's family, Dantata, PDP Chairman, T.Y. Danjuma, Aliko Dangote, Northern Governor's Forum, General Buhari and all the Northern Big guns that are always making so much noise in Nigeria. So they are all local champions.
grin

1 2 3 4 5 6 7 8 ... 76 77 78 79 80 81 82 83 84 (of 485 pages)