Better HN
topnewbestaskshowjobs
Log inSign up

Ao7bei3s

1,549 karma · joined Dec 5, 2012 (13y ago) · 595 submissions

Submissions

comment 6y ago · link · parent

That exists, e.g. Freifunk ("free radio", https://en.wikipedia.org/wiki/Freifunk) is a collection of open wifi mesh networks in major German cities. The larger ones of these meshes have several thousands of nodes. It is community operated (ie, anyone can participate, though in practice technical issues are driven by technical people and important backbone infrastructure is done with professional hardware).

It has an ideological focus on local services, but really what most users use it for is just internet access.

And the question is - as a service operator, why would you want to limit something to local people and spotty mesh networking tech, when you could put it on the internet where it can be available to everyone?

You're looking at it constructively (add a service for the local community), but from my perspective, availability on the internet is the default, and if there's a local mesh network that encourages people to offer services on the local mesh in particular, that is taking something away that could have been offered on the internet.

In a way this is similar to net neutrality - the content should not be tied to the network or vice versa.

Obviously over the years that's been a constant point of discussion/contention within the Freifunk community as well, and in general there has been some contention between ideology and technical reality (for example, ideologically, open mesh networks are obviously superior due to fault tolerance and democratized control. But in practice, and in particular the way the real Freifunk meshes are built, things are less decentralized than one would naively expect, the mesh links are unreliable, lossy, bandwidth-constrained, and high latency/jitter, the mesh protocols like batman-adv don't scale well, broadcast spam and management traffic overhead are real problems, etc. - Ideologically there should be no central control, but practically practically you have to have a blessed firmware for interoperability reasons, or if you offer internet access someone needs to control the AS and IP ranges etc.)

comment 6y ago · link · parent

Is there a plan to get more advanced courses?

I'm asking because there seems to be an extreme bias towards beginners courses, or content that is rather limited in breadth and depth compared to what a university might teach during a full masters degree.

ie, there's about 50 security intro courses (with lots of overlap of course), one "advanced" course that's been delayed for long and isn't all that advanced (Crypto II from Stanford), but nothing that even comes close to the various full-semester courses covering particular niches that I took in university (for example, we did one full semester course on each of: symmetric crypto, asymmetric crypto, side channels, "special topics" (random stuff), a cryptoanalysis lab, and 3 more niche things - and those are just the pure crypto courses, and even/especially within that area I feel I've barely scratched the surface).

These university courses cover not only more topics than Coursera covers (overall; there are many things even in this niche that Coursera has that we weren't taught, which is neat), but within each we went into considerable depth. In particular we tended to approach them from a rigorous mathematical perspective (number theory, linear algebra, statistics, proofs, etc). My worry here is that Coursera might be more geared towards people that don't need to learn the topics well enough to be actually able to use them professionally, let alone academically. ie, more like edutainment than education (no offense intended. I wasn't sure if I should include that sentence cause it might sound harsh, but I think it illustrates what I'm getting at).

We also didn't have courses that are blatant advertisements (#18568).

I don't want to put Coursera down (quite the opposite), I am genuinely interested in your answer - Is it just me not seeing everything available? Is the field I'm (slightly) knowledgeable about an outlier? Or am I missing the point of Coursera (maybe it's more focused on training industry professionals than academics than universities?) Or is it correct, and if so, is it intentional or unintentional? Is there a single field of study where Coursera could replace a university partly/largely/mostly/entirely? Will there be?

comment 6y ago · link · parent

That doesn't seem right. Cars have catalysts where the air flows through. Also 2 H2 + O2 -> 2 H2O (+ a characteristic bang :-)) at room temperature and pressure (initially) using a platinum catalyst is shown in school chemistry classes.

Just learned on Wikipedia (en/Platinum) that the 2007 Nobel price in Chemistry was awarded for explaining how that works. doi:10.1002/anie.200800480

comment 7y ago · link · parent

I agree MM is more widespread, but I thought we were talking about new cabling (and I took that to include the transceivers). (Serial over fiber? Nice, didn't know that existed.)

Pricing-wise, what I meant is:

$18: 10G-SR (MM): https://www.fs.com/products/11552.html

$24: 10G-LR (SM): https://www.fs.com/products/11555.html

Compared to the cost of actually running the fiber through the building, that's not too bad for trunks. As I said, I don't mind multi-mode for the last hop, which is where price is a larger concern due to quantity. And in organizations where OEM pricing is used as baseline, relative to that a resourceful admin can go to single mode and still come out ahead (it's not a fair comparison, but reality in some places). Sure, things are probably different in an actual DC.

Direct attach is certainly cheaper (at first), but it can be a hassle compat wise, and I've never had quite the right length available. I can't speak to cooling, that's never been my department.

comment 7y ago · link · parent

Yes, for "just above 1G, and must reuse existing copper wiring, and both sides take PCIE", the card from the article will do. But it's a pretty narrow use case.

I agree with the notion of using fiber. I would certainly stay away from hardwired copper NIC's for anything except 1G, especially rarity ones like the one in the article. Rather, get 10G NIC's with SFP+ cages. Doesn't have to be a pricey Intel card, the cheap Melanox ones are acceptable for most users.

I disagree about OM4. If you're doing new fiber runs, singlemode (OS2 fiber) is the way to go. It's not really expensive anymore. But yeah, OM4 rather than OM3 for all fiber runs (for back to back patches, it doesn't matter ofc).

(Also, since we're talking about fiber networks... my personal lessons learned are: buy reflashable transceivers, especially when that's the difference between having DDM (Digital Diagnostic Monitoring) on all long runs and running it blindly. Standardize on a connector, hopefully LC. Be consistent which side TX and which is RX. Keep a 100-pack of dust caps around. And clean your fibers before inserting, especially patch fibers that get thrown around (they can look pretty bad on the fiberscope). Don't bother with Direct Attach Cables. Stay away from NICs with fixed 10G-Cu ports. Visual fault locators are cheap. BiDi SFP's are wonderful in one-fiber-run-broke or need-another-link-now type emergencies, so keep a few in reserve. And lastly, since all of this costs money, it's easier to beg for reimbursement than to ask for a purchase order.)

comment 7y ago · link · parent

Thank you, that was very interesting!

In particular how reflections caused you trouble, whereas in the ham world (also mostly HF) the same are desirable because anything that increases range is generally seen as good (we do use directional antennas to narrow it down). Different world.

And so in the end, you did learn to recognize entire words (callsigns) at once :-)

comment 7y ago · link · parent

The difficult part isn't knowing which symbol is which. The problem with learning the tree, or rote memorization, is that you'll learn it as a translation table. This will slow you down to well below conversational speed. You'll "know" morse, but in practice you won't be able to use it. I think that's what you were implying with "sort of worked"?

(To be clear, I'm not saying that you can't learn morse code at all that way, and definitely not suggesting that you are or aren't fluent in it.)

For a really great modern approach, see https://experiments.withgoogle.com/collection/morse (no hardware needed, just a smartphone).

In general the recommendation is not to learn that dit, dah, dah, dit means letter "P" (and you already know what sound P has), but directly learn that the sound "ditdahdahdit" corresponds to the sound of "P". And thus cut out the middle step.

There are a few more things to actually using morse:

* Clean timing

* Keying (straight keys aren't used anymore. sideswipes / dual lever are somewhat intuitive. iambic keying is not, but it's so much less exhausting.)

* Head copy (the challenge is understanding entire words/phrases, without paper, and/or buffering it in your head because writing down char by char is too slow)

* Dealing with noise (incl other morse conversations)

(This is coming from a ham radio perspective, so maybe a bit different than flying school. I'm really curious now - did you actually expect to use it back then, or was this a case of mostly learning for the test? If yes, in what situation and how? ie, would you actually use a morse key? In the airplane? Or was it more about something like recorded emergency messages or similar?)

comment 7y ago · link · parent

You can also see that as an opportunity, at least for those who stay in academia: all fundamentals are up for reevaluation, and replication studies haven't been popular until recently, so there's bound to be some high-impact, low-hanging fruit.

comment 7y ago · link · parent

There's nothing wonderful about them when you live half a km/mi from them and they go off at 9AM, don't stop for 10-15 minutes and you really wanted to sleep.

comment 7y ago · link · parent

It's not at all irreparable.

There are very affordable (relative to the cost of a new laptop) online businesses specializing in this exact problem. But a skilled hobbyist (possibly with some advise from Youtube) or decent phone repair shop can do it too.

It's actually not that hard (put kapton tape around, remove old using hotair and tweezers, clean with flux and wick, solder new with iron or hotair, a compatible solder or paste, and lots of flux. Clean with spray/brush). Assuming you can source a replacement part, but between Digi-Key/Mouser, eBay and AliExpress that's rarely impossible.

comment 7y ago · link · parent

Your proposal:

* Encourages bad (easy to type, and potentially memorable) passwords and password reuse (probably the single best way to get compromised). (I have several hundreds of unique passwords.)

* Makes phishing easier. (People are bad at consistently checking the URL bar correctly char for char and every time.)

* Is inconvenient.

* Can be done with any existing password manager.

* About shoulder looking... I don't know about you, but I frequently need my passwords at work when colleagues are watching, or when I'm sharing my screen in a (often recorded) conference call.

comment 7y ago · link · parent

How quickly does it wash out?

comment 7y ago · link · parent

As a student, I found the bottom-up approach quite interesting in a lab format. (Though it was an FPGA lab - learning about CPU architecture was a side benefit. And it was at M.Sc. level, so we were somewhat familiar with the basics.)

We built some fundamental blocks in VHDL (e.g. buffers, mux, adder, memory, decoder, ALU), combined them into a basic CPU with fetch/decode/execute stages, added a load/store unit and control flow instructions to make it turing complete, then added optimizations like pipelining. We wrote some code to run on it. Then we switched to a LEON3 off the shelve softcore and implemented our own AMBA peripherals to interface with some real sensors/actors.

The ability to view the NAND gates your code synthesizes was great. Tracking signal propagation delays motivated certain basic design decisions very well. Writing code that runs on a CPU that you also wrote is so incredibly rewarding. (And it's interesting when a bug can be either in your program or your CPU.) And finally integrating a real-world softcore really showed how practical this can actually be even outside of Intel / AMD.

comment 7y ago · link · parent

You don't. Stop thinking in machines.

Your code doesn't directly call a service, you'd use a service discovery framework (eg AWS Cloud Map) to lookup a location that can handle a particular type of request. It doesn't even matter to the caller whether the request is handled by an instance (eg EC2), a container (eg Fargate), or a function (eg Lambda).

End user requests are handled by an application loadbalancer (eg ELB) that accepts the requests and routes them to an available location, which again doesn't need to be any particular machine (and it can also spawn/destroy instances as needed) or type.

With serverless computing (eg AWS Lambda), there's not even machine for you to SSH into, the cloud takes care of executing functions "somewhere" to handle your work. Work could mean serving an HTTP request - however there doesn't even need to be a client making a call; the lambda could e.g. run in response to an event on an S3 bucket.

Of course AWS can also handle your pets; ie you can name your EC2 instances (and either manage DNS outside, or use Route 53 to let AWS handle it). But that's not what AWS is about; there are way cheaper options for vServers. And of course there are real computers below this, and DNS is being used in the middle of this (with auto-generated names that you don't care about). But you don't deal with that.

comment 7y ago · link · parent

How is this any better than Google Forms, or Glassdoor?

Are employees answers anonymous?

If yes: How do you deal with employees not trusting your word on this? Especially given that, since it's an app, people would presumably need to install it on their own devices?

If no: How do you incentivize employees to give honest (both truthful and complete) answers?

Do you have any answer to the scenario where management ignores any feedback?

Do you give provide any analytics to employees that anyone is actually reading and acting on the feedback, or is this another one-way street?

I'm skeptical - I don't think this is a problem that can be solved by an app -, but I wish you luck. In the unlikely case that you succeed it'll be great.

comment 7y ago · link · parent

That's the formal definition, and an interesting corollary with interesting consequences (from a typing perspective, a function of any return type can always opt to halt instead of returning. note that in a lazily evaluated language like Haskell the caller can still continue, as long as it does not evaluate the result).

But I didn't go with that because it doesn't answer the question (is null the bottom type? no.), and in the context of return types (the main use case, though not the only) it's equivalent to what I said (no possible return value -> cannot return).

comment 7y ago · link · parent

No.

First, null is generally a value, not a type.

Second, think of bottom types as "does not return".

Taking C as an example: C doesn't have a bottom type, only void which is a unit type (it has a single value, which is anonymous in C). However you can tell the compiler that you _actually_ meant the bottom type:

    void panic() __attribute__((noreturn)) {
        while(1) {
        }
        __builtin_unreachable();
    }
Scala is also interesting, in that it supports all three (Null, Unit, Nothing).

comment 7y ago · link · parent

He said "The RAM needed for each container was very small" - the RAM is _not_ the limit here. The point is that running many containers is a very different (hard to compare directly) type of load than the main, well optimized use case of running a single large desktop environment.

Networking in particular: with thousands of containers, now there are lots more interfaces, routes, conntrack entries, "background" traffic, iptables rules etc.

Some problems are algorithmic: for example historically a lot of code has been written with the assumption that the number of network interfaces is small. With >1k interfaces, suddenly O(n) lookups take time. Similarly, iptables rules are run sequentially. etc.

Some resources have limits. Exceeding these may impact performance. In his case the load blew up the ARP cache. Nice!

comment 7y ago · link · parent

Nice! But how do you tell that from strace? Wouldn't it just show the guests stuck in connect()? With perf, sure, but strace?

comment 7y ago · link · parent

I don't think that's the most important part. Rather:

Full disclosure can also protect previously unaffected / potential future customers, by warning them of companies that have been so lax with their security that they've been breached.

So to achieve a comparable upside to full disclosure, HIBP needs to also make aggregate data publicly available. Which they do:

https://haveibeenpwned.com/PwnedWebsites

comment 7y ago · link · parent

Spot-on!

For the specific purpose of controlling APA102 via wifi, ESP8266 (NodeMCU or similar) seems optimal, as 1x SPI and WiFi are the only peripherals needed and so ESP8266 is a perfect fit hardware-wise, and it's well-supported, extremely beginner friendly (<25 easy lines of code to get these LEDs blinking via WiFi, mouse-click based library download) and cheap.

In general, for intermediate users and up (anyone not lost right away without peripheral libraries from SparkFun/AdaFruit), and unless Wifi is needed, I fully agree on ARM. I'd recommend the STM32 portfolio. These scale really well from learning platform to full on commercial use (with the F0/F1/F4/F7 MCU's, stm32duino/libopencm3/mbed frameworks, Arduino/PlatformIO dev environments, all in order of complexity and/or professionalism). The STM32F* eval boards are nice but pricy; there are fewer universally useful cheap small-formfactor (ie Arduino-like) boards.

1
91011
20