Readit News logoReadit News
strong_silent_t commented on How SSH port became 22   ssh.com/ssh/port... · Posted by u/ronsor
nailer · 8 years ago
> The number should preferably be in the range 1-255 so that it can be used in the WKS field in name servers.

Can't find any reference to WKS as a 'field' or record type. Any greybeards want to elaborate?

strong_silent_t · 8 years ago
By name servers they mean DNS. I don't believe it is used and I hadn't heard of it, more info here if you search WKS: https://en.wikipedia.org/wiki/List_of_DNS_record_types
strong_silent_t commented on Backblaze Durability Is Eleven 9s – And Why It Doesn’t Matter   backblaze.com/blog/cloud-... · Posted by u/ingve
gm-conspiracy · 8 years ago
I thought AZs were in the same physical location, just separate networks, no?
strong_silent_t · 8 years ago
Others have answered, but I think the general principle for a Region is that between the AZs you have less than 1ms latency, physical separation between the data centers, but they may still be in the same floodplain, be able to be hit by the same hurricane, etc.

More info here if you want to see how regions are structured at a high level of detail: https://youtu.be/AyOAjFNPAbA?t=15m21s

strong_silent_t commented on Making a low level Linux debugger, part 3: our first program   blog.asrpo.com/making_a_l... · Posted by u/asrp
brokenmachine · 8 years ago
Thanks for the info. I did buy a knockoff J-Link but haven't got around to trying it yet.

I've only used the Arduino Mini/Micro so far (with Atmega328 or Atmega32u4). Is it possible to debug on those?

strong_silent_t · 8 years ago
Not sure, I haven't used that platform personally, there is probably a debugging interface to the chip but it will probably require different hardware/software.
strong_silent_t commented on Making a low level Linux debugger, part 3: our first program   blog.asrpo.com/making_a_l... · Posted by u/asrp
brokenmachine · 8 years ago
How did you use a debugger on Arduino? I've been using Serial.print("WTF") more than I'd admit.
strong_silent_t · 8 years ago
This is similar to what I did: https://learn.adafruit.com/proper-step-debugging-atsamd21-ar... . That is for that specific platform, not sure if there is something similar for the other versions.

I used the J-Link but I wanted to do it on Linux, so I used the JLink GDB Server along with the GDB build that comes with the Arduino IDE. It probably takes me a good 5 minutes to get everything set up, but the basic stuff works: breakpoints, stack trace, reading and writing memory locations.

The setup is a little convoluted, I'm not sure if there is a better way, but here are my notes:

    Procedure for running w/ debugger attached.
    
    1. disconnect debugger's usb
    2. connect device via usb
    3. arduino IDE program device
    4. identify elf, set up gdb with elf.
    5. plug in debugger
    6. run jlink gdb server
    7. attach gdb to jlink server "target remote:2331"
    8. "monitor reset", "continue" to re-run target from beginning.
    9. observe device is recognized by Arduino IDE
    10. open Arduino IDE serial monitor to interact with device.
    
    Now, Ctrl+C in GDB halts device, and stack etc. can be inspected, and
    then it can continue running with "cont".
    
    To rerun the device with the same program without redoing everything,
    go to step 8 and reset the device. and continue from there.
    
    To find .elf on linux:
    ==================================================
    find /tmp -name sketch_name.ino.elf 2>/dev/null
    

    gdb location:
    ==================================================
    /home/user/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-gdb
    
    
    JLink setup command:
    ==================================================
    JLinkGDBServer -device ATSAMD21G18A -if SWD -speed 4000
    

    gdb attachment:
    ==================================================
    (gdb) target remote:2331

strong_silent_t commented on Making a low level Linux debugger, part 3: our first program   blog.asrpo.com/making_a_l... · Posted by u/asrp
pmarreck · 8 years ago
I now feel like debuggers are a design smell. I've used them less and less (to the point of not having to use them at all) as I've coded more test-first and designed things to be smaller (lower logic depth, etc.) I mean, all a debugger is, really, is a window into dynamic state, so if you control the, let's just call it what it is, the "rampant dispersion of state" at all times, you end up not needing a debugger (and producing fewer bugs) IMHO.

Now I'm sure that kernel-level stuff wasn't designed like this, and probably won't be for some time (I'm hoping Rust changes that story, but not a low-level coder), so debuggers may still be necessary- just making a point that it seems possible to design in such a way that the need for one is drastically reduced, if not eliminated. Or at least, that's how it seems to me in high-level-language-land (things may differ at the assembly and C levels).

EDIT: I apologize for OT, probably not the ideal place to start a "are debuggers really necessary if you design code correctly?" discussion, after all this is part 3 of a series, my bad

strong_silent_t · 8 years ago
I find it depends a lot on my level of understanding of the project I'm working on. If I wrote 20% or more of the code, or if I was involved in the design, etc., when there is a problem I know just where to look and can get there quickly.

For example, if I'm working on a Python script under 1000 lines I would never use a debugger. I might use wireshark or linux system tools if something was really wrong, but usually the trackback or program output is sufficient.

I've also tried to debug an Arduino project where I had a lot less knowledge of how the system works, and if I wasn't able to attach a debugger I don't want to know how long it would have taken me to find the problem (calling a null function pointer causes an interrupt that didn't have any handler).

I've also tried to debug other people's projects in high level languages, without a debugger where after taking about an hour to figure it out based on pure reason, realizing it would have been very quick and easy to find with a debugger.

I think if you look at what a program is doing, and at that point you can't form a testable hypothesis as to what is happening, at that point a debugger will certainly be faster if you know how to use it.

strong_silent_t commented on A decade after debut, first A380 jumbos to be broken up   reuters.com/article/us-ai... · Posted by u/Element_
InTheArena · 8 years ago
Yep, I think the A380 helped both Airbus's and Europe's brand.

And that's why the government assistance in the form of launch aide might have been worth it.

strong_silent_t · 8 years ago
I think if the government is going to subsidize something, politically aerospace makes a lot of sense. It has jobs for engineering, technicians, and high-skill trades. It has a long planning horizon and lots of regulation (meaning less short term competitive forces at play). It has defense applications. The downside is that everyone else is also subsidizing it, so it is still hard to compete.
strong_silent_t commented on Bitcoin estimated to use 0.5% of the world's electric energy by end of 2018   cell.com/joule/fulltext/S... · Posted by u/e0m
nabla9 · 8 years ago
What a utter waste of energy.

Instead of energy consuming work, you could have a cryptographic lottery.

strong_silent_t · 8 years ago
Every zero-sum adversarial system would be a lot more efficient if they accepted the judgement of a third party instead. How much energy could we save if we dismantled the court system, elections, and pro sports?

I think DAG coins could be a lot more efficient, but I'm not totally solid intellectually on how they achieve consensus on conflicting spends so I'm not sure it will work as a general solution. The only one I've used, nano, has I believe no mining reward, and I think consensus is achieved based on a voting process weighted by proof-of-stake among online nodes -- the incentive for participating in the system is that the system has value for you in other ways. I'm not closely following ETH PoS research, but it will be interesting to see what they can accomplish, it could create a huge reduction in energy consumption.

strong_silent_t commented on Ask HN: Any recommended resources to learn market analysis?    · Posted by u/febin
strong_silent_t · 8 years ago
I'd be really interested if anyone has a book or similar on supply and demand curves estimation by experiment. Ideally I'm looking for a cookbook type book less so than a theory book.

If you're referring to financial markets, I personally learned a lot from Trading and Exchanges: Market Microstructure for Practitioners, although I didn't finish it. But it explains the basic characteristics of financial markets, and why they are set up the way they are. It isn't necessarily going to be obvious and financial markets are based on hundreds of years of accumulated knowledge.

strong_silent_t commented on Ryan Holiday on Conspiracy, Gawker, and the Hulk Hogan Trial   econtalk.org/archives/201... · Posted by u/mCOLlSVIxp6c
strong_silent_t · 8 years ago
Ok, I doubt I'll ever take an hour to listen to this, but I really enjoyed the book. It was very interesting to see the little particularities of the legal system and the participants that had a big impact. I basically read it straight through in one shot as the host said he did as well. I found the writing to be florid at times (there was a seamless segue between an anecdote of Julius Caesar crossing the Rubicon and Hulk Hogan's decision to sue against the distribution of the hidden camera sextape that made me actually laugh out loud) but I found the asides were unobtrusive enough that it didn't affect the reading.
strong_silent_t commented on Laws of Tech Economics: Commoditize Your Complement   gwern.net/Complement#2... · Posted by u/gwern
strong_silent_t · 8 years ago
I like the book Information Rules by Shapiro and Varian as a review of these kinds of concepts in general. I don't think it is necessary to even view these topics as strategy, to a certain extent it is just the nature of the incentives and there will be a tendency for things to work out along these lines. Here is a snapshot of the table of contents, from this it should be pretty clear if it is interesting to you: https://imgur.com/a/2yU6OpA

u/strong_silent_t

KarmaCake day243October 28, 2017View Original