aexaey | 7 years ago | on: Bash 5.0 released
aexaey's comments
aexaey | 7 years ago | on: Zulip – Open-source, threading-based Slack alternative
There are also native language-specific wrappers for that API, for example in python[1], which lets you write a bot in 5 lines:
import zulip
client = zulip.Client()
def onmsg(m):
print ("at %d, %s said: %s" %
(m['timestamp'],
m['sender_email'],
m['content']))
client.call_on_each_message(callback=onmsg)
[1] https://pypi.org/project/zulip/aexaey | 7 years ago | on: Scaleway – NVMe SSD Servers and Hot Snapshot
> apt-get update/upgrade every week
Have a look at: https://wiki.debian.org/UnattendedUpgradesaexaey | 8 years ago | on: 1.1.1.1: Fast, privacy-first consumer DNS service
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.
aexaey | 8 years ago | on: 1.1.1.1: Fast, privacy-first consumer DNS service
$ ping 0
PING 0 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.032 ms
Of course, don't expect this to work universally. A lot of software will try to be clever with input validation, and fail.Tangentially related: https://fosdem.org/2018/schedule/event/email_address_quiz/
aexaey | 8 years ago | on: 1.1.1.1: Fast, privacy-first consumer DNS service
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.aexaey | 8 years ago | on: Building my own 64GB memory card with a $6 eMMC chip (2016)
UFS/eUFS cards keep (sort of) same form-factor [1] but bring significant speed boost. [2]
[0] Technically, it is incorrect to say "eMMC chip", as there are typically two (or more) silicon chips inside the same plastic BGA package. One of them is controller.
[1] https://www.dpreview.com/news/6387181333/samsung-launches-fi...
[2] https://en.wikipedia.org/wiki/Universal_Flash_Storage#Versio...
aexaey | 8 years ago | on: Building my own 64GB memory card with a $6 eMMC chip (2016)
153 is number of balls on the eMMC chip OP is using. You might need a different adapter for different eMMC chip.
aexaey | 8 years ago | on: Level 3 technician's misstep causes largest telephone outage ever reported
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.aexaey | 8 years ago | on: Level 3 technician's misstep causes largest telephone outage ever reported
aexaey | 8 years ago | on: Shrinking the kernel with a hammer
Since no external RAM is required this makes for some very compact WiFi repeaters [2,3]. But all of them ship with VxWorks. I've tried to tinker with OpenWrt on this chip, but with 2-3MB free RAM after kernel boots (and that's before wifi modules are loaded), it doesn't look too good. With XIP, on the other hand, MT7688KN can potentially become a useful OpenWRT platform.
[1] https://www.mediatek.com/products/smartHome/mt7688k
[2] https://fccid.io/2AK8V-WF8300
[3] Xaiomi Mi Wifi+
aexaey | 8 years ago | on: Shrinking the kernel with a hammer
http://downloads.lede-project.org/releases/17.01.4/targets/i...
aexaey | 8 years ago | on: Linus Torvalds: “Somebody is pushing complete garbage for unclear reasons.”
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 kernel [2] is far from complete.
Among other things this means that there is no workaround for Meltdown on this hardware, which it is likely vulnerable to. [3]
[1] https://download.lineageos.org/hammerhead
[2] https://wiki.postmarketos.org/wiki/Google_Nexus_5_(lg-hammer...
[3] "11 stage integer pipeline with 3-way decode and 4-way out-of-order speculative issue superscalar execution" - from https://en.wikipedia.org/wiki/Krait_(CPU)
aexaey | 8 years ago | on: CloudFlair: Bypassing CloudFlare using Internet-wide scan data
aexaey | 8 years ago | on: How the Å came to be
There is no dedicated key on computer keyboard for it, but you are supposed to remember it's a unit when capitalizing, for example IJmuiden.
aexaey | 8 years ago | on: /bin/false is not security (2005)
aexaey | 8 years ago | on: Interstellar object ‘Oumuamua covered in 'thick crust of carbon-rich gunk'
aexaey | 8 years ago | on: SSH vs. OpenVPN for Tunneling
aexaey | 8 years ago | on: SSH vs. OpenVPN for Tunneling
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 (see also andmarios's impromtu test results above).
aexaey | 8 years ago | on: Exploring different microcontrollers less than $1
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 much all CMOS chips (ESP8266 inclided) have body diodes from each IO pin to power/ground. This means - you can't have voltage higher than VCC+0.6v or lower than GND-0.6v on any pin. So what happens when you have ESP8266 powered from 3.3v and connected to 5V I/O is - ESP will get (partially) powered via I/O pin. Depending on what 5V part is connected to that I/O, that might be bad for that part (excess of I/O sink current). And in extreme cases (5V I/O pin that can deliver high current, or ESP is in deep sleep), this will supply current into 3.3V VCC rail, bringing it up as high as 5 - 0.6 = 4.4v potentially. Which could be bad for anything else on that rail.
As a practical example - let's say we have ESP8266 powered by a switching supply with MP2307DN [1] chip delivering 3.3v, and connected to a 5v AVR. In normal operation, ESP takes ~70mA, which exceeds 40mA driving capability of AVR, so it's all good [2]. However once ESP8266 goes to deep sleep, all 40mA from AVR's I/O go via ESP's body diode back to MP2307DN switch, which usually would fail catastrophically and end up shorting input to output, supplying 12 (or whatever the input is) volts to ESP's VCC. Which is likely to fail as well, sending 12v further and frying the whole thing.
[1] MP2307DN is widely and cheaply available on "Mini360 DC-DC buck convertor" boards and it really doesn't like current being back-fed into its output
[2] Except I/O drive transistor in AVR is overloaded, which might or might not lead to its failure eventually.