Better HN
topnewbestaskshowjobs
Log inSign up

kamocyc

35 karma · joined Jun 27, 2020 (6y ago) · 10 submissions

Submissions

1.

Japanese lawmaker says being LGBT goes against preservation of species(japantimes.co.jp ↗)

5 points · by kamocyc · 5y ago · 2 comments

comment 5y ago · link · parent

Related:

Innovation by (and beyond) the numbers: A history of research collaborations in Excel

https://www.microsoft.com/en-us/research/blog/innovation-by-...

3.

XPath Generator v1.1 – Google Chrome Plugin (2018)(youtube.com ↗)

2 points · by kamocyc · 5y ago · discuss

comment 6y ago · link · parent

I’m receiving many spams. GitHub should warn the leak of email addresses...

comment 6y ago · link · parent

A curated list of awesome decompilation resources and projects.

https://github.com/nforest/awesome-decompilation

comment 6y ago · link · parent

I think the author claims the XPath is more "robust" because it doesn't depend on indexes of the elements so you can add elements without breaking the XPath. (But it is arguable which one is better ...)

comment 6y ago · link · parent

It depends on the content of the HTML document but I agree with you.

I tried running the algorithm in Chrome. It output much shorter XPath than one copied from Chrome Developer tool.

  e.g. "//*[@id="rso"]/div[4]/div/div[1]/a/h3" => "//*[contains(text(),'(text of the element)')]"

comment 6y ago · link · parent

The algorithm described in the paper is outlined as follows (just for my curiosity):

"The algorithm starts with a generic XPath locator that returns all nodes (‘//*’) and then it iteratively refines the locator until only the element of interest is selected. In such iterative refinement, ROBULA+ applies seven refinement transformations, according to a set of heuristic XPath specialization steps."

The algorithm seems to be a specialized heuristics for XPath generation.

9.

Robula+: an algorithm to generate robust XPath-based locators(github.com ↗)

77 points · by kamocyc · 6y ago · 15 comments

comment 6y ago · link · parent

The Hypnotherapy is interesting. But the Wikipedia page [1] says "there was insufficient evidence to support its efficacy."

And in the research paper, there are also statements like "the current evidence is limited" [2], "it is unlikely hypnosis will be helpful to all clients" [3] or "the number of patients enrolled in the studies has tended to be low and lacking long-term follow-up" [4].

So, I think for some people Hypnotherapy may work. But it may be risky to pay a lot of money upfront for the therapy.

[1] https://en.wikipedia.org/wiki/Hypnotherapy [2] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5786848/ [3] https://www.ncbi.nlm.nih.gov/books/NBK66430/ [4] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2752362/