Ektbear's Posts
Nairaland Forum › Ektbear's Profile › Ektbear's Posts
1 2 3 4 5 6 7 8 ... 76 77 78 79 80 81 82 83 84 (of 485 pages)
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. |
No riots? No suicide bombings? No fatwah issued paying money for someone's death? Only a petition? Jeez....Christians are too mild-mannered. |
Feminism, basically. |
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.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. |
[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). |
africa id nih |
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 |
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 ![]() |
Eh...that makes it less random, not more random. Well, it depends on how you define random I guess. |
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? |
Did you do more sight-seeing in South Korea? You should post more pictures. |
Javanian: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. |
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. |
goto end; // The more they hate you, the more I love you! lmao! ![]() |
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.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 |
lmao this is absolutely hilarious ![]() |
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. |
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 ![]() 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 |
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. |
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? |
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. |
That turtle is a goner. RIP lil homie. Going to pour a little liquor for you. |
It depends on how it is used, and who is saying it. Doesn't bother me at all when black people say it. |
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. |
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? |
lagcity: this guy is a goner i swear. it is just a matter of time b4 muslims lay their hands on this guy.nah, he is relatively safe in yankee |
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...dey no get liver |
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. ![]() |
1 2 3 4 5 6 7 8 ... 76 77 78 79 80 81 82 83 84 (of 485 pages)


