hs's comments

hs | 12 years ago | on: How a Math Genius Hacked OkCupid to Find True Love

i did something like it 6-7 years ago with friendster when it got 'who looked at me' new feature then. i scrapped million ids of teenagers to below-age-30 women. my friend list went from below hundred to full 3000 (the max at the time) in a week or two. facebook was not popular in my country (not usa)

the scrapper was written in newlisp (save search result pages with curl, use regex to match and collect the ids). it's probably easier to write in other languages, but that's what i knew.

i used wget and curl to loop over the ids but it's too slow because they download the whole page. later i found out about 'curl -i' (header only) and a million ids was done in about hour or two (i moved my operation from my home's 64kbps to my colo datacenter mbps internet).

my account is no longer exist (probably banned); however, i do still have a screenshot of me having 3000 female-only-friends and 70000 non-hidden-females 'look back at my profile'

initially, i talked to any interesting woman; however, later i made a strict rule to only respond to women who wrote at me. there were just too many fake female-accounts.

i got a couple of dates from this feat; however, i met my wife in a traditional catholic youth retreat. when i let her know about this friendster thingy, she just laughed. now i'm happily married with a 15-months-old boy.

hs | 14 years ago | on: Over 40% of cancers due to lifestyle, says review

there is trend in the 'key cause of cancer' down in the article, throat and colon cancer follow power distribution, while breat cancer kinda follows uniform dist

for breast cancer: the highest offender = obesity is 8.7%, only a multiple of two to the mean <4%

to me it only means that the cause of throat and colon cancer is relatively known (smoke and meat) while it's gray area for breast cancer

smoke -> throat kinda makes sense meat -> bowel? (turns out meat contains no fiber, and lack of fiber accounts for 12.2% so lumping meat and lack of fiber equal a whopping 33.3%) ... makes sense?

hs | 14 years ago | on: Over 40% of cancers due to lifestyle, says review

i find it interesting that 'meat' is not written (thus not searchable) in the main article (it's down there in 'key causes of cancer' as icon)

FTA (scroll down): Colorectal / Bowel : meat 21.1%, obesity 13%, lack-of-fibre 12.2%

it's not surprising meat and lack-of-fibre are correlated (meat contains no fibre)

hs | 14 years ago | on: NFC will tell you when a Rolex is fake

or what if there exist many goods with same unique barcode, scattered around the world.

this requires a mean to identify where the unique good is (if it exists at all). would rfid fix this? hmmm shrug

hs | 15 years ago | on: TEDTalks as of 06.16.11

for you who don't have flash and don't feel like clicking to download, you can download an xml format file from http://metated.petarmaric.com/metalinks/TED-talks-grouped-by...

then we can script to extract the xml file get the ted videos, like:

wget -c -O "1984/Nicholas Negroponte in 1984 makes 5 predictions.mp4" http://www.ted.com/talks/download/video/4837/talk/230 wget -c -O "1990/Frank Gehry as a young rebel.mp4" http://www.ted.com/talks/download/video/4047/talk/231 wget -c -O "1998/Aimee Mullins on running.mp4" http://www.ted.com/talks/download/video/5996/talk/443

...

wget -c -O "2011/Wadah Khanfar - A historic moment in the Arab world.mp4" http://www.ted.com/talks/download/video/11071/talk/1084 wget -c -O "2011/Wael Ghonim - Inside the Egyptian revolution.mp4" http://www.ted.com/talks/download/video/11086/talk/1086

hs | 16 years ago | on: Cost of Health Care By Country, as Compared to Life Expectancy

of the three countries that have highest (and surprisingly parallel) slope: japan, south kore, mexico ... it suggests that #visit correlates with LE ... and health coverage is unimportant

but there are countries that have less #visit but more expensive (it suggests patients go to doctor not only for consultation) ... so #visit is an unreliable predictor so is cost

to me it seems the most predictive is location (yes, the country names are data points too) ... if i want to live long, i'll settle in japan and do what the average japanese for their healthy lifestyle

hs | 16 years ago | on: Reading Incomprehension

i wrote about masturbation back in high school. i got 4/10 mark with a big red X across the page corners :D

hs | 16 years ago | on: Reading Incomprehension

your china emperor story only suggests that the parent post's averaging scoring scheme consist of reviewers who dream about a 'test-taker' and then give a score (repeat as many as test takers there is) ... if they have access to takers' answers and keys, then averaging could be done much more objectively

the china emperor: that's maybe because there's no photograph of the emperor circulating. if there is, one can make comparison to eyes, age, coin, ground-legal-measure etc and clean out the outlier data. averaging the rest can give good enough estimate but not super accurate.

hs | 16 years ago | on: Ask HN: Seeing points again?

using chickenfoot in firefox:

//begin include('~/jquery/jquery.js'); b=new Button('hide comment heads', function() { $('.comhead').hide(); }); insert(after('add comment button'), b)); //end

click the new button injected to hide comments. can be automatically triggered whenever ff opens http://news.ycombinator.com/item?id=*

you can make it fancy like toggling instead of hiding, or showing only points or authors, but it's sufficient for me (actually i use auto-hide-trigger-with-no-button which is simpler)

hs | 16 years ago | on: The Duct Tape Programmer (Response from Uncle Bob Martin)

car insurance doesn't automagically make you accident-proof.

driving defensively is a better approach -- you probably will never need insurance. that's why insurance companies give discounts to those who took defensive-driving course.

hs | 16 years ago | on: MIT OCW: How and Why Machines Work (Spring 2002)

i'm delighted to see that solidworks (cheap) was used while other unis were still using pro-e/i-deas/catias (expensive)

maybe it's a stretch to say that schools which use cheaper, alternative resource tend to be of better quality compared to those which use more expensive, 'proven/best practice' resource

page 1