Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aexaey
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
25 ms
·
1.
▲
by
aexaey
8y ago
How does function sound for a syntactic sugar? $ today() { date +%F; } $ echo Today, $(today) is a great day! Today, 2019-01-08 is a great day!
2.
▲
by
aexaey
8y ago
Since nobody mentioned Zulip's REST API yet, I'll do. There is one, and and it is really good. There are also native language-specific wrappers for that API, for example in python[1], which lets you write a bot in 5 lines: imp
3.
▲
by
aexaey
8y ago
> apt-get update/upgrade every week Have a look at: https://wiki.debian.org/UnattendedUpgrades
4.
▲
by
aexaey
8y ago
Yes, you're right. What I was trying to say is - On Linux, INADDR_ANY (0.0.0.0) supplied to connect() or sendto() calls is treated as a synonym for INADDR_LOOPBACK (127.0.0.1) address. Not so for bind() or course.
5.
▲
by
aexaey
8y ago
0 , which is a shorthand for 0.0.0.0 is likely the most code-golf-y way to write localhost , as many [EDIT: Linux] systems alias 0.0.0.0 to 127.0.0.1: $ ping 0 PING 0 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: ic
6.
▲
by
aexaey
8y ago
1.2 -> 1.0.0.2 1.2.3 -> 1.2.0.3 But then, much of software would fail here - Firefox/Chrome for example would both threat that as bareword and redirect to search page.
7.
▲
by
aexaey
8y ago
SD cards and eMMC chips[0] do have controller inside. Usually not a great one (tens to hundred-ish MB/s), but that's good enough - overwhelming majority of smartphones/tablets use eMMC for internal storage. UFS/eUFS card
8.
▲
by
aexaey
8y ago
There are ready-made boards for this being sold for less than $2. Just search "eMMC Adapter 153 without flash" on ebay. 153 is number of balls on the eMMC chip OP is using. You might need a different adapter for different eMMC chi
9.
▲
by
aexaey
9y ago
Percent, rather than asterisk. UPDATE t SET foo='bar' WHERE baz LIKE '$INPUT'; This will do no changes when $INPUT is empty, and only with $INPUT set to '%' will it update every record.
10.
▲
by
aexaey
9y ago
...and, if especially unlucky, that would be the trunk you're using to connect to that switch.
11.
▲
by
aexaey
9y ago
One example where XIP would be really useful is MT7688KN [1], which is a variant of MT7688 WiFi router SoC, already well supported by Linux/OpenWRT, plus 8MB of RAM on the same package. Since no external RAM is required this makes for
12.
▲
by
aexaey
9y ago
Heavily compressed and carefully pruned, it is still possible to squeeze modern (4.9) kernel into under 1.44MiB, and kernel+rootfs into 3-ish MiB: http://downloads.lede-project.org/releases/17.01.4/targets/i..
13.
▲
Privacy expectations and the connected home
(mjg59.dreamwidth.org)
2 points
by
aexaey
9y ago
|
0 comments
14.
▲
by
aexaey
9y ago
LineageOS (ex-CyanogenMod)'s flavour of Android 7 works just fine [1] on Nexus 5. On the other hand - yes, hammerhead is stuck on Linux kernel 3.4, which is no longer maintained, and current best effort to forward-port to mainline ke
15.
▲
by
aexaey
9y ago
Warp is pretty good, but it doesn't support websockets.
16.
▲
by
aexaey
9y ago
For what it worth, Dutch has "ij", which could be a letter, or diphthong, or two unrelated letters (in words borrowed from French, for example), and could also be written as "ij", or as "ÿ", or even "y&quo
17.
▲
by
aexaey
9y ago
fail2ban [1] would take care of this by automatically firewalling off IPs that fail to authenticate too frequently. [1] https://www.fail2ban.org/
18.
▲
by
aexaey
9y ago
I think GP meant "metallicity" as a property of stellar objects: https://en.wikipedia.org/wiki/Metallicity
19.
▲
by
aexaey
9y ago
You can skip sshuttle's magic and do exactly the same thing manually with "ssh -D" + "iptables -j REDIRECT" + redsocks, but that's a lot moving parts.
20.
▲
by
aexaey
9y ago
Well-known unpredictable TCP-over-TCP performance would only explain OpenVPN/TCP results. But OP has posed also OpenVPN/UDP performance that is 2x...3x slower than SSH port forwarding, so I'd guess there is more to this story
21.
▲
by
aexaey
9y ago
> ESP8266 is fine with 5V Yes and no. ESP8266 would typically survive 5V applied on any pin, and sometimes even sort-of work with 5V power applied (although with much higher power consumption and no WiFI). But there is a catch. Pretty m
22.
▲
by
aexaey
9y ago
Yes. "100 Continue". [1] If client intends to send a POST request with request body large enough to try to avoid wasting bandwidth (in case server might reply with 3xx,4xx or 5xx), the client will send only headers including &
23.
▲
by
aexaey
9y ago
iw is not quite a complete replacement for iwconfig and iwlist . Former don't support some network card drivers, such as [1]. So if you happen to have one of those, you have to use latter two, deprecated or not. [1] https:/&
24.
▲
by
aexaey
9y ago
Channel 14 is only used in Japan ...and even there, only in legacy 802.11b mode: https://en.wikipedia.org/wiki/List_of_WLAN_channels#ref_C
25.
▲
by
aexaey
9y ago
You are right, except: - "Peer-to-peer" (Ring, Bleep/BittorentChat) and - "Federated" (Email, Matrix, XMPP/Jabber) ...would be a better way to convey that distinction.
26.
▲
by
aexaey
9y ago
I used term "options" here the way it was defined in RFC 791. [1] It's a standard way to extend IPv4 packet header. [1] https://tools.ietf.org/html/rfc791
27.
▲
by
aexaey
9y ago
Let me drill down it for you: Imagine two endpoints talking a backward compatible pair of standards: A only speaks ASCII, B only speaks UTF-8. Would you think they will be able to communicate at least something? Now imagine two endpoint
28.
▲
by
aexaey
9y ago
>> Largely backwards compatible > how exactly in the case of IP? For example, introduce two special IP options that would act as "page selector" for source and destination addresses respectively. i.e. SRC: 1.1.1.1, DS
29.
▲
by
aexaey
9y ago
UTF8 is backward compatible with ASCII just fine - latter is a strict subset of former. It doesn't get more backward-compatible than that! IPv6, on the other hand, is not at all backward compatible with IPv4 (was never a design goal -
30.
▲
by
aexaey
9y ago
Technically, WiFi beam-forming, which is part of the standard since 802.11n and is really taking off with high-end 802.11ac routers, is a phased array to all intents and purposes. The future is here.
More ›