Ektbear's Posts
Nairaland Forum › Ektbear's Profile › Ektbear's Posts
1 2 3 4 5 6 7 8 ... 77 78 79 80 81 82 83 84 85 (of 485 pages)
no |
too boring, I take it? |
At a high level, this is the idea: 1. Sweep through file line by line to compute N 2. Select some subset of K integers from the numbers 1 through N 3. Sweep through the file again, adding the corresponding line numbers to the file. |
^-- I agree with both of your points. |
//read each line from the file s = in.readLine(); while(s!=null) { list.add(s); s = in.readLine(); } in.close(); This above loads the entire file into memory ( the ArrayList list()). If the file is bigger than your memory size, then this won't work. Assume the file is several terabytes or something. |
sbeezy8: CALL A SPADE A SPADE- SAUDI government are HYPOCRITES and so are Nigerian Muslim who do not protest this! Fact is Quran state that women should not travel without Mahram - but Saudi women do, ALWAYS TRAVEL IN GROUPS and BY THEMSELVES so do the indonesian women, Malaysian women and co who go for Hajj why would Nigerian Muslim women be any different.I guess this is the problem with deciding to follow a religion controlled by Arabs. They get to choose the rules at will. |
AjanleKoko: The average Nigerian bank has something like five hundred branches, and maybe 2,000 plus ATMs.1. How many gigs of data do you want to store in the DB? 2. Can Access be run in server mode, so that remote applications can access the data on one central server? 3. Can it be made secure? 4. How many transactions per second does your system need to handle? From googling around, the answer to (2) is yes. Answer to (3) I would imagine is "probably." Then (1) and (4) are application specific. |
wonlasewonimi: MS Access shouldn't be used as the back end if you deal with sensitive information be it small annd large organisation. I heard a bank was using it. Don't know how far it's true.Why? `If this is indeed what the acronym stands for, I've no clue what relevance his comment has to the thread |
[quote author=Sky-walker]MSSQL is more common than oracle in most companies which are small to medium business.Oracle is too expensive and its mostly used by very large organizations.[/quote]As others have said, if you are a small business, may as well use Access (or MySql, PostgreSQL, or even Sqlite) |
[quote author=Mr. Globe]you should have done CCNA[/quote]What is CCNA? |
wonlasewonimi: Most companies use Ms Access as their database in Nigeria. Cheapskates!What is wrong with this? If you don't have huge amounts of data and/or don't have significant performance needs, why is this a bad idea? |
ogugua88: Where's ekt_bear? I have something for him lol.Heh, not sure how I missed my name being called ![]() Anyway yeah, the guy is inconsistent and gaffe-prone, I agree. And will probably lose. Nevertheless, I like him |
I am a bit surprised that MSSQL seems to be more relevant than Oracle in Nigeria. The opposite is true in most other places, no? Oracle is the top dog in most markets. |
The latter. |
I dunno. Using science in this way doesn't seem blasphemous to me. Did you read the article? |
You are given a very large text file, too big to load all of it in memory. It has N lines in it, where N is unknown to you. You are also given some number K. Write a program that prints K randomly chosen lines from the text file to the screen. Try to make your program as efficient as possible. (there is a slight bit of vagueness in what I mean by "K randomly chosen lines", but don't worry too much about it). |
Ask and ye shall receive: https://www.nairaland.com/1059733/another-programming-challenge |
How To Buy A Daughter Choosing the sex of your baby has become a multimillion-dollar industry. Megan Simpson always expected that she would be a mother to a daughter. She had grown up in a family of four sisters. She liked sewing, baking, and doing hair and makeup. She hoped one day to share these interests with a little girl whom she could dress in pink. Simpson, a labor and delivery nurse at a hospital north of Toronto, was surprised when her first child, born in 2002, was a boy. That’s okay, she thought. The next one will be a girl. Except it wasn’t. Two years later, she gave birth to another boy. Desperate for a baby girl, Simpson and her husband drove four hours to a fertility clinic in Michigan. Gender selection is illegal in Canada, which is why the couple turned to the United States. They paid $800 for a procedure that sorts sperm based on the assumption that sperm carrying a Y chromosome swim faster in a protein solution than sperm with an X chromosome do. Advertisement Simpson was inseminated with the slower sperm that same day. Fifteen weeks later, she asked a colleague at the hospital to sneak in an after-hours ultrasound. The results felt like a brick landing on her stomach: another boy. “I lay in bed and cried for weeks,” said Simpson, now 36, whose name has been changed to protect her privacy. She took a job in the operating room so she would no longer have to work with women who were giving birth to girls. Simpson and her husband talked about getting an abortion, but she decided to continue with the pregnancy. In the meantime, she looked for a way to absolutely guarantee that her next child would be the daughter she had always dreamed about. She discovered an online community of women just like her, confiding deep-seated feelings of depression over giving birth to boys. The Web forums mentioned a technique offered in the United States that would guarantee her next baby would be a girl. It would cost tens of thousands of dollars, money Simpson and her husband did not have. Simpson waited until her third son was born. Then she began to make some phone calls. The conventional wisdom has always been this: Given a choice, couples would prefer sons. That has certainly been the case in places like China and India, where couples have used pregnancy screening to abort female fetuses. But in the United States, a different kind of sex selection is taking place: Mothers like Simpson are using expensive reproductive procedures so they can select girls. Just over a decade ago, some doctors saw the potential profits that could be made from women like Simpson—an untapped market of young, fertile mothers. These doctors trolled online forums, offering counseling and services. They coined the phrase “family balancing” to make sex selection more palatable. They marketed their clinics by giving away free promotional DVDs and setting up slick websites. These fertility doctors have turned a procedure originally designed to prevent genetic diseases into a luxury purchase akin to plastic surgery. Gender selection now rakes in revenues of at least $100 million every year. The average cost of a gender selection procedure at high-profile clinics is about $18,000, and an estimated 4,000 to 6,000 procedures are performed every year. Fertility doctors foresee an explosion in sex-selection procedures on the horizon, as couples become accustomed to the idea that they can pay to beget children of the gender they prefer. Inside a fourth-floor office suite off a palm-tree-lined street in Encino, Calif., in an embryology lab, two men wearing maroon scrubs peer into high-tech microscopes. The men are fertilizing human eggs with sperm samples collected earlier that day. After fertilization and three days of incubation, an embryologist uses a laser to cut a hole through an embryo’s protective membrane and then picks out one of the eight cells. Fluorescent dyes allow the embryologist to see the chromosomes and determine whether the embryo is carrying the larger XX pair of chromosomes or the tinier XY. The remaining seven cells will go on to develop normally if the embryo is chosen and implanted in a client’s uterus. Continue here: http://www.slate.com/articles/health_and_science/medical_examiner/2012/09/sex_selection_in_babies_through_pgd_americans_are_paying_to_have_daughters_rather_than_sons_.html Really cool article....didn't realize gender selection of children had been boiled down to a science. |
Noooooooo The Vampire posts got hidden ![]() Jarus and OAM4J don fall my hand ![]() That stuff was entertaining ![]() |
Aigbofa: It would have made a lot of sense 2000 years ago when the only way to get to Arabia was through a perilous journey through the desert, but in year 2012 when the pilot flying the women to Saudi Arabia could in fact be a woman, the male bodyguard requirement is a big joke. Islam needs to reform.abi o, my sensible ekiti brother |
haha yeah i saw that on fb |
dayokanu: A way for govt to reach the grassrootA way for more fruitless spending and waste in government |
gat damn ya'll go hard |
No offense, but what type of man refers to himself as the "cutest and sexiest." That is pretty weird dude |
Btw, certainly I can see how someone who grew up in America doesn't think much of Lagos. But relative to many other locations in Nigeria and Africa, it is pretty good. If it weren't, people wouldn't be relocating there en masse. |
Foolish and useless man |
You guys are really entertaining. Sometimes I think about buying a TV. But between Nairaland and Netflix, I don't need one ![]() |
lawd this is hilarious |
1 2 3 4 5 6 7 8 ... 77 78 79 80 81 82 83 84 85 (of 485 pages)



