HNHacker News
TopNewBestAskShowJobs

Congeec

197 karma · joined February 17, 2016

submissionscomments
Congeec··on Switching from Vim to Intellij
I used a tool called lamonade that let you access the clipboard of Windows via a socket server.

https://github.com/lemonade-command/lemonade

Congeec··on Windows Package Manager Preview
I'm pretty satisfied with the package manager scoop. Scoop for now works best when you just install binary software. It is not a replacement for package managers like vcpkg yet with which you can pull dev dependencies for a project.

How does winget compare to scoop? Does it replace vcpkg/nuget/conan/...?

Congeec··on Cluegen – Python Data Classes From Type Clues
I use https://github.com/samuelcolvin/pydantic instead
Congeec··on Git Branch Naming Conventions
gitlab is already doing this. The default branch name when you click `Create Merge Request` is issue_id-issue_title, like "477-update-readme-md"
Congeec··on Show HN: An eBook with hundreds of GNU Awk one-liners
Is there any equivalents of perl one-liners?
Congeec··on How the CDC’s restrictive testing guidelines hid the coronavirus epidemic
It's called SARS-Cov-2, not -19
Congeec··on WHO Director: "Covid-19 does not transmit as efficiently as influenza"
The title is just one of those many points made.
Congeec··on Httpx: A next-generation HTTP client for Python
I have been using httpx 0.95 in production. So far so good.
Congeec··on Typestates in Rust (2018)
also Monad in Haskell
Congeec··on Raising severity to serious for some Python 2 leaf packages with no Python 3
> No special pleading. No whining. No excuses. > No buts and no exceptions. No "middle ground".

This sounds strong to me. Not to be provocative since I am not familiar with the mailing list, I would like to ask is it common to communicate this way in this Debian community? Is it effective to push things moving forward?

Congeec··on Ask HN: Best Laptop for Developer?
I've been looking at this laptop recently. How do you feel when you use it? Is it heavy or light? How is the temperature when it is fully loaded?
Congeec··on Timsort, the Python sorting algorithm
There are cases where pattern defeating sort beats timsort

https://github.com/EmuraDaisuke/SortingAlgorithm.HayateShiki

Congeec··on Mental Models Box – A collection of models useful in everyday life
here[1] is a comprehensive list for those who want to know more about fallacies.

[1]: https://en.wikipedia.org/wiki/List_of_cognitive_biases

Congeec··on Ask HN: What are the “best” codebases that you've encountered?
Tornado, a python web framework. I doubt it is still popular today. But reading the source code is a pleasure. Its naming conveys clearly; its encapsulation allows extensibility; its documentation teaches me how to write an industry-level library.

https://github.com/tornadoweb/tornado/blob/master/tornado/io...

Congeec··on Prototype: Puppeteer for Firefox
Thank you. The Language Injections feature amazes a vim user, though similar limited plugin exists.
Congeec··on Prototype: Puppeteer for Firefox
Sorry I didn't defined the problems clearly and thank your for your help. I am using selenium using python for web automation, not testing. The latter problem was by and large solved by subclassing WebDriverWait by adding common Exceptions related to nodes staleness. The former problem was tackled by writing a for loop detecting changes of the context to know if WebElement.click() fails silently.

The thing is I have to write these workarounds everywhere. What's more, I inject javascript code a lot to avoid nodes staleness caused by network latency. I believe selenium is not designed for writing lots of javascript. And javascript code in a string of python can not be linted, which increases debugging workload.

To this point, the cost of these hacks is too much in my project. I find puppeteer play nicely with javascript after trying. But the difference and reliability between waitFor() in puppeteer and WebDriverWait() in selenium still remain questionable.

I am wondering if using puppeteer can ease pains mentioned above.

Congeec··on Prototype: Puppeteer for Firefox
How? With selenium I have a case that WebElement.click() fails but it doesn’t throw. Also Select(...).select_by_visible_text() throws WebDriverException, StaleElementException, etc even if you WebDriverWait()’d for it to be available. To me these show selenium is unreliable. How puppeteer is reliable pertaining to these cases?
Congeec··on Sloth – Mac app that shows all open files and sockets in use
Any reason you choose to build on the command line interface of lsof rather than reusing its api by diving into its source code?
Congeec··on The state of type hints in Python
You need YouCompleteMe. It uses Jedi internally, but the completion is async i.e. the ui is not blocked. Also it caches completions, you shall get completion candidates reasonably fast the second time you input tf.
← PreviousPage 2 of 2