Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drothlis
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
drothlis
10y ago
Intel GPUs + VAAPI ( https://01.org/linuxgraphics/community/vaapi ) can easily do H.264 encoding in real time. P.S. See also https://trac.ffmpeg.org/wiki/HWAccelIntro
92.
▲
by
drothlis
10y ago
Blackmagic's Linux drivers are gratis, but not libre. And of course they aren't upstream. This means that they are only guaranteed to work if you use exactly the same kernel that Blackmagic supports -- we've had all sorts of
93.
▲
by
drothlis
11y ago
Presumably by "this site" mikek meant the site hosting the article.
94.
▲
by
drothlis
11y ago
See also the article linked earlier in the comments: https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zomb...
95.
▲
by
drothlis
11y ago
Interesting (I'm not a kernel developer). What's the workflow at the subsystem level -- does the maintainer do a `git fetch` followed by `git rebase`? Or is the rebasing done via email patches and `git am`?
96.
▲
by
drothlis
11y ago
> I think it is quite telling that the Linux kernel developers themselves prefer a simple, linear history in the end What do you mean? This is what the current git history of the linux kernel looks like: * 12b9fa6 Merge branch &#
97.
▲
by
drothlis
11y ago
Second paragraph of the bbc article.
98.
▲
by
drothlis
11y ago
There's a really gorgeous technique for implementing good error messages with LR parsers: http://lambda-the-ultimate.org/node/4781#comment-76724 (I haven't used the above personally, but the Golang parser doe
99.
▲
by
drothlis
11y ago
I like this quote attributed to John Carmack: "Focused, hard work is the real key to success. Keep your eyes on the goal, and just keep taking the next step towards completing it. If you aren't sure which way to do something, do i
100.
▲
by
drothlis
11y ago
> This led to chronic misuse around the code (I found 4-5 tests that simply forgot to wrap it in an assert effectively rendering the test completely worthless). Yes, I've been bitten by that too -- it's too easy to forget the &
101.
▲
by
drothlis
11y ago
> getWithRetry takes a function with a return value > > def numberOfChildren(implicit user: LucidUser): Int = { > getWithRetry() { > user.driver.getCssElement(visibleCss).children.size > } &g
102.
▲
by
drothlis
11y ago
According to that documentation you linked, it just polls until `default_max_wait_time` (which defaults to 2 seconds).
103.
▲
by
drothlis
11y ago
I'm not sure this satisfies your parent poster's requirement of: "if it fails, you know about it pretty soon, without the need for long timeouts."
104.
▲
by
drothlis
11y ago
If using Selenium's Python bindings, you can take a screenshot from Selenium and convert it to OpenCV format like this: cv2.imdecode( numpy.asarray( bytearray(base64.decodestring(driver.get_screenshot_as_base6
105.
▲
by
drothlis
11y ago
A major motivation for the new syntax is to support refactoring (currently moving "yield" into a sub-function makes the calling function no longer a generator). See the PEP's "rationale and goals"[1] and this articl
106.
▲
by
drothlis
12y ago
This is a funding campaign to mass-produce a fully assembled version of the ErgoDox open-source hardware design.
107.
▲
ErgoDox EZ: An incredible mechanical keyboard
(indiegogo.com)
3 points
by
drothlis
12y ago
|
1 comments
108.
▲
by
drothlis
12y ago
The "bash-completion" tab completion scripts for "make" do just that (run "make -npq") so presumably it's an acceptable thing to do for interactive use, that works reasonably well for some (most?) makefile
109.
▲
by
drothlis
12y ago
Buildsome [1] has make-like syntax and some interesting ideas, though I haven't personally tried it. [1] https://github.com/ElastiLotem/buildsome
110.
▲
by
drothlis
12y ago
I gather that it runs builds inside a chroot where the only available files are the dependencies you specified explicitly (including the compiler[1]), at least in "strict" mode[2]. Or else it must monitor what files are opened dur
111.
▲
by
drothlis
12y ago
"Docker does not support user namespaces"[1] so root inside a container == root on the host. Getting security right with user namespaces is hard though[2]. And as another commenter pointed out, you can't give a user permissio
112.
▲
by
drothlis
12y ago
> Source "annotations" are lost after a force-push (why not keep around a read-only view of old comments? We have lost some valuable discussions on GH pull requests) Yes, that is incredibly annoying. I discovered that if you ad
113.
▲
by
drothlis
12y ago
David A. Wheeler recommends setting IFS=$'\n\t' to handle spaces in filenames & variables. http://www.dwheeler.com/essays/filenames-in-shell.html
114.
▲
[Mathematica] How do I draw a pair of buttocks?
(mathematica.stackexchange.com)
2 points
by
drothlis
12y ago
|
1 comments
115.
▲
by
drothlis
12y ago
> If I want to keep my containers separated, I can’t have them communicate with a UNIX socket, unless I create a shared volume. Once again it’s a no go for me. What do you mean by "shared volume" -- docker's "-v"
116.
▲
by
drothlis
12y ago
Possibly not much. I've never used XCode for C++ development but I imagine it has pretty nifty Clang integration, given Apple's investment in Clang. Anyone who suggests using ctags, GNU Global, gtags, CEDET's own parser (impl
117.
▲
by
drothlis
12y ago
Copyright != Trademark.
118.
▲
by
drothlis
12y ago
What you do when waiting for some computer operation to execute can determine if you are a zen coder, or distraction junkie coder. The main idea here is to: Not lose focus, and Take a micro break. [...] -- http://www.componentowl
119.
▲
by
drothlis
12y ago
I do a similar style of UI test automation for set-top boxes / smart TVs, with stb-tester[1]. We've found that the "Got kicked off for every build" continuous integration process you mention is the crucial part to achiev
120.
▲
by
drothlis
12y ago
OCR is never perfect. I do a lot of automated UI testing in a way similar to Sikuli, and while we do rely on OCR a lot, you have to use certain workarounds (like fuzzy matching instead of looking for a perfect match of your expected text).
More ›