Better HN
topnewbestaskshowjobs
Log inSign up

phyllostachys

61 karma · joined Apr 1, 2014 (12y ago) · 82 submissions

Software engineer
Submissions

comment 7y ago · link · parent

I think my wife and I have a toaster from when we first got married. It'll be 13 years this month. It's probably a 2009 or 2010 model, so really only about a decade or a little less old.

comment 7y ago · link · parent

https://www.youtube.com/watch?v=1LywkIfAA1M

comment 7y ago · link · parent

I store them in the comments area in KeePass, both the crap question and my silly answers.

comment 7y ago · link · parent

Every time I start a little thing in C or C++ and I write a corresponding Makefile I get annoyed by it and write the thing in Rust. Cargo is really nice. I've considered using a Cargo.toml and build.rs file just to build C and C++ files before.

comment 7y ago · link · parent

This mostly works. After military service, I never changed back my cell number and I never answer if it is from the old area code. Though, I did once and it was a volunteer fire station asking for donations.

comment 8y ago · link · parent

I asked Zach about it once (in email), he said:

> We do all of our development in C# using a custom low-level “game engine”. At some point we need to do a writeup about it, it’s kind of interesting tech.

But I think they have at least one Unity game... or so I thought.

comment 8y ago · link · parent

And, unfortunately, it is a destructive process going from elf to hex, as I've discovered a few times. Intel HEX is just the data at what addresses so one looses the section info and metadata from an elf.

I'm always happen to see when a uC vendor IDE keeps the elfs and the programmer takes elfs.

8.

Webamp – Winamp 2 in your browser(webamp.org ↗)

2 points · by phyllostachys · 8y ago · discuss

comment 8y ago · link · parent

Indeed. "Firefox is back." - Well, from where I stand, it never left, nor I it.

comment 8y ago · link · parent

That sounds like reasonable phone use to me whereas the article seems to hint at using a phone instead of engaging.

comment 8y ago · link · parent

I learned by working at a contract manufacturer who also does engineering design of small device electronics (as an embedded engineer). I also have a copy of The Art of Electronics but I can't say that I've looked at it much.

comment 8y ago · link · parent

This was the go to method of keeping information when I was in the military (05-09), which was _strongly_ encouraged starting in boot camp. If one was found without a pen or two and a notebook, there was some words said. I've kept the habit going into my civilian life though I don't take notes as often.

comment 8y ago · link · parent

Others have mentioned that include_str! is a macro, which I suppose it is. But if you look at the source it says that it is a compiler built-in[0]. If you dig into that, you'll see that it happens inside the compiler[1] (well duh). I feel that that makes it slightly different than a normal macro in that it doesn't expand to a bunch of Rust code. I found that pretty neat.

[0] - https://github.com/rust-lang/rust/blob/master/src/libcore/ma... [1] - https://github.com/rust-lang/rust/blob/e8af0f4c1f121263e55da...

comment 8y ago · link · parent

Football toy chest! I had one of those. I remember climbing inside it -- being able to fit inside it even. I remember, when I was older, trying to climb inside but backing out because I was afraid of getting stuck in there (and trying to imagine how they would cut me out of the thing, that kind of gives me the heebie jeebies even now).

comment 8y ago · link · parent

I second Duluth trousers. I had difficulty finding pants that fit since I'm a little shorter but have bigger legs. Getting pants with larger legs means a larger waist and a belt only helps cinch that up so much. Gusseted crotch trousers fixed all that. I've worn both the ballroom jeans and their khaki pants and they're both worth it.

A bonus is, if you're into martial arts, being able to kick above the waist or 'roll' (Judo/BJJ), you can still do so in those pants.

comment 8y ago · link · parent

Similarly, when I'm really still and reading a book, I can hear some sort of grinding sound when I turn my neck ever so slightly. The sound reminds me of a little stepper motor. I have no idea if that is unique or not but I always thought it was interesting.

comment 8y ago · link · parent

I'd recommend having a look at emulators for other chips in general and just tailoring them to ARM Cortex-M. The architecture reference manuals (ARM ARMs, har har) are freely available on ARM's website[0]. I'd recommend the ARMv6-M for Cortex-M0/+ or ARMv7-M for Cortex-M3/4/7. I think the latter manual covers both ARMv7-M (M3) as well as ARMv7E-M (M4 and M7).

[0] - http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc....

comment 9y ago · link · parent

You can also consider the case where you have a super fast CPU but are using poor algorithms. That's why I think the terms 'smart' and 'stupid' are fairly useless in practice.

comment 9y ago · link · parent

As their menu has grown it has been getting a little harder to figure out where things are but moving around the menu is really easy. I suspect the latter helps with the former.

Also, what's wrong with a ham and cheese sandwich with mayo and Cesar dressing (in the article)? That's one thing that is great about the Sheetz UI is that I can add buffalo sauce, ranch/mayo, and bacon to nearly every sandwich, which is delicious. My all-time favorite is a bacon, lettuce, mayo, and buffalo sauce cheeseburger or chicken sandwich on a pretzel bun.

comment 9y ago · link · parent

I'm always amazed at how many doctors I've encountered behave as if their knowledge is the extent of medical practice. I get it though, research is hard to stay on top of and isn't linear to results.

Granted, also, that there are lots of doctors who do follow research.

comment 9y ago · link · parent

After a little investigation[1][2], it seems things get weird with an OS, as would be expected with virtual memory, et al.

[1] - https://stackoverflow.com/questions/16360620/find-out-whethe...

[2] - http://duartes.org/gustavo/blog/post/anatomy-of-a-program-in...

comment 9y ago · link · parent

After looking at that default linker script dump, I noticed it didn't have the stuff I saw in the ARM linker script that I'm used to. So I attached one for a Silicon Labs EFM32 part. It's below the x86-64 linker script and is a little easier to read.

comment 9y ago · link · parent

I was bothered by saying that static memory is assigned on the stack (implied that it is only on the stack). As an embedded guy, at least in bare metal situations, local function statics, any const variables, and any globals are either in the read-only data section[1] or in the general data section[2], both before the heap and definitely not in the stack section.

[1] - .rodata section in gcc

[2] - I think this is in the .data and .bss sections, where .data is copied from the file and .bss is zero initialized before calling main by the crt. If you peak into a linker script, or dump one by passing --verbose to ld, you can even see where it puts all the C++ bits and pieces. A dump I did on Debian with g++ is here: https://gist.github.com/Phyllostachys/0682a3bda13ef9c6b49d04...

comment 9y ago · link · parent

Ah, I learned a new word. These serpentine roadways are used to slow the advance of cars on a guarded gate or outpost in military situations. They're pretty annoying to drive through but that probably means they working correctly.

comment 9y ago · link · parent

This is also true for the rest of the areas around Lake Erie, western PA, and probably western NY (I don't have much experience with that area).

I live about an hour south of Erie, PA and the road I travel to and from work has needed resurfaced after every winter over the last 3 or 4 years.

comment 9y ago · link · parent

> If they reboot Batman a dozen more times, it doesn't keep you from thinking that Adam West was the best Batman.

Recently, I've been watching Sherlock. After doing some reading, I learned that Sherlock Holmes is the most portrayed character ever, "with more than 70 actors playing the part in over 200 films" [1]. Talking with a work mate, he said his favorite portrayal was Jeremy Brett. I also learned that the original works are in the public domain, which is probably why it is so often used as source material.

[1] - https://en.wikipedia.org/wiki/Sherlock_Holmes#Adaptations_in...

comment 9y ago · link · parent

Does this also explain why people in Scandinavia+Finland seem to be so clever?

comment 9y ago · link · parent

Yup. At my work we are doing embedded development and we use the Sparkfun FTDI breakout boards for UART communication. People have come to call the FTDI breakouts "putty boards" but in engineering, some of us use Kitty and call them "kitty boards". :D

comment 10y ago · link · parent

When I was in my teens and had lots of time to think about these things, I came to this conclusion. That I, what I think of as being me, is just a facade that moves things into and out of my subconscious. When I want to think about something, I 'query' the subconscious and wait for a response.

comment 10y ago · link · parent

As a fellow embedded guy, my problems are usually something stupid simple that I assumed was true, but wasn't.

An example, 'why won't this chip work!?', 5 hours later and a full driver written, 'oh, I just didn't turn on this one pin. now it works great!'.

Also, in relation to your last sentence, assuming that the hardware you have (resistor and capacitor values) are the same as what is in the schematic.

123