Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
alxlu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
alxlu
6y ago
In chrome if you create a custom search engine and and set the url to javascript: it will focus to the page. I set it to the letter j, so if I ever hit ctrl+l and change my mind, I just hit j then Enter to refocus the page.
32.
▲
by
alxlu
6y ago
It doesn't work when people have email based iMessage accounts. It also doesn't work well for sending larger images/videos, not to mention the other random niceties that come with other modern messaging apps (e.g. read messag
33.
▲
by
alxlu
6y ago
It’s managed to lock me in. I’ve been trying to completely move off of the Apple ecosystem for the last year or so. I think for a lot of people (including myself) there’s going to be a few holdouts that only use iMessage and don’t want to s
34.
▲
by
alxlu
6y ago
If you're using gnome, it looks like there's a preset for it in gnome-tweak-tool in the keyboard settings. I use dwm without a DE, so I remap mine manually using xmodmap. I use caps lock as an additional modifier key so I can put
35.
▲
by
alxlu
6y ago
I feel like most IDEs and Text editors I’ve used allow you to rebind keys to move the cursor across text. As someone who also doesn’t moving from the home row, I tend to use Vim for everything and it’s a lot more powerful and flexible than
36.
▲
by
alxlu
6y ago
I ended up going with the Logitech ergonomic keyboard. It’s honestly not that different than a regular keyboard but it does the job. Thanks for letting me know about dactyl though! For some reason that one flew under my radar. I guess I kin
37.
▲
by
alxlu
6y ago
I tried to use one for months before giving up because I felt it was too big. I mostly enjoyed typing in the key wells, but I ended up getting thumb pain because of how much I had to stretch my hand in order to reach the enter/backspac
38.
▲
by
alxlu
6y ago
I don't think it's an either/or scenario. It's easy to put a cover on where you can still see the indicator light on MacBooks.
39.
▲
by
alxlu
6y ago
Out of curiosity, what driver problems did you run into? I switched my primary laptop to an XPS 13 a few months ago after almost exclusively using MacBook Pros for over a decade and I haven’t run into a single driver issue. Even the usual s
40.
▲
by
alxlu
6y ago
I think the issue with this is that there’s still the delay due to the animation. Even with the reduce motion setting (which turns it from a slide animation to a fade), there is still a noticeable delay. AFAIK there is no way to disable the
41.
▲
by
alxlu
8y ago
Having .bind inside a JSX prop also creates a new anonymous function on each render. To avoid it, you can do (sorry for bad formatting): class Thing extends React.Component { handleClick = (thingId) => { this.setState(/
42.
▲
by
alxlu
8y ago
Following up on this. It looks I spoke too soon about the separate domain iframe, since that would be blocked by the iframe's cross domain policy. So if the domain you are currently on listed in frame-src it looks like you would be saf
43.
▲
by
alxlu
8y ago
Yeah if you set frame-src to something that doesn’t include the current domain then it should prevent loading an iframe from the same origin That being said, this technique might still work in theory on whatever domains you have specified i
44.
▲
by
alxlu
8y ago
In the example they have default-src set to ‘self’ ‘unsafe-inline’ That essentially means frame-src is set to that same thing since it’s not specified. So the bypass in the example would still work since it’s iframing the same (trusted) dom
45.
▲
by
alxlu
8y ago
In this example it would still work since frame-src will fallback to default-src if not specified.
46.
▲
by
alxlu
8y ago
You would need to bypass connect-src in order to exfiltrate data. Even if you are able to call fetch() on your endpoint through XSS, CSP would block the network request. So the iframe and webrtc methods in the article are geared towards byp
47.
▲
by
alxlu
9y ago
Running Edge with webdriver still includes the GUI.
48.
▲
by
alxlu
9y ago
While I do see the value having free https, Localtunnel requires you to trust that whatever code they're running on their server is what they say it is (you could deploy their code on your own server, but then you'd probably need
49.
▲
Show HN: Tool that uses ASTs to modify Redux boilerplate
(github.com)
2 points
by
alxlu
9y ago
|
0 comments
50.
▲
by
alxlu
10y ago
The article claims: 'Over the summer at least one Mac App Store app installed malware onto users’ Macs.' But then links to http://fortune.com/2016/07/06/mac-malware-backdoor-app/ which seems to
51.
▲
by
alxlu
10y ago
This makes sense to me. I hear this on HN all the time and don't doubt that exercise does provide mental benefits to most people. However, anecdotally, exercise (and getting a good night's sleep) has had no noticeable impact on my
52.
▲
by
alxlu
10y ago
Semi-related: I also found it useful to name the config file webpack.config.babel.js instead of webpack.config.js so I can use ES6 in my Webpack config.
53.
▲
by
alxlu
10y ago
For me, the Adobe suite is one thing Windows has over Linux. That and easier hardware support. I'm currently running Ubuntu on my desktop and about 1 in every 3 times I suspend the machine, it needs to do a full reboot. Also every time
54.
▲
by
alxlu
10y ago
I've found https://www.npmjs.com/package/documentation to handle JSDoc + Flow annotations reasonably well.
55.
▲
by
alxlu
10y ago
Is anyone else seeing the code samples getting cut off? Seems to happen to me in Chrome on both OS X and Ubuntu. The page shows: export const sum = (a, b) => { re And when I copy and paste the line the rest of it is copied to th
56.
▲
by
alxlu
10y ago
They render multiple frames at the same time.
57.
▲
by
alxlu
11y ago
Can't speak for huuu, but querySelector() and querySelectorAll() seem to be able to handle most cases. And if you're only developing for Chrome, the built in Fetch API should work for http requests.
58.
▲
by
alxlu
11y ago
Why is arrow-declare is so much slower on Firefox (16x to 325x slower) compared to everything else (identical to 2.4x slower)?