HN user

mrspuratic

309 karma
Posts1
Comments195
View on HN
10 REM"_(C2SLFF4 6 hours ago

My technophile uncle gave me one in the late 80s when he upgraded, even came with a monster of a daisy wheel printer. Can't remember what the WP was, but I remember being amused with V1.0 Microsoft Basic which came on a cartridge.

This feature has been part of bash since 5.1 (ca 2020), though it may not be enabled in all distros.

  cd src/bash-5.3/examples/loadables
  make accept
  enable -f ./accept accept
  (accept -r RHOST -v SOCKETFD -b 127.0.0.1 8000; 
    read -u $SOCKETFD SOCKETDATA; 
    printf "%s: %s\n" "$RHOST" "$SOCKETDATA";
    printf "goodbye, world\n" 1>&${SOCKETFD} ) &
  nc 127.0.0.1 8000 <<< "hello, world"
For real use you may need to add "exec {SOCKETFD}<&-" to close the FD.

Edit: https://news.ycombinator.com/item?id=39369749 (2024)

"updoc" is still my favourite joke name. A long time ago (predating E lang's updoc afaict) I wrote a toy markup for semi-technical docs, named so with the specific intention of dropping it casually into conversation. Still funny :D

This. I have that type (regenerative MHVR) installed in the attic for upstairs, and a synced pair of in-wall ceramic (recuperative) types on opposite sides of main living area downstairs (eliminating ducting, albeit with reduced efficiency). I haven't attempted any energy/ROI calculations but fresh filtered air, lower humidity and good nights sleep are well worth the claimed single-digit watt power usage to me.

Aliasing 7 months ago

In old school FORTRAN (I only recall WATFOR/F77, my uni's computers were quite ancient) subroutine (aka "subprogram") parameters are call-by-reference. If you passed a literal constant it would be treated as a variable in order to be aliased/passed by reference. Due to "constant pooling", modifications to a variable that aliased a constant could then propagate throughout the rest of the program where that constant[sic] was used.

"Passing constants to a subprogram" https://www.ibiblio.org/pub/languages/fortran/ch1-8.html

Ireland is lucky enough to have several suitable sites, but just one operational: Turlough Hill, which has been running for over 50 years and is in use daily. It's at least as useful in terms of grid stability and (relatively) rapid dispatch as capacity. Output ~0.7% of total daily (~120GWh), ~5% of daily peak (~6GW), wintertime figures. For comparison electricity usage has increased about 8-fold since it was deployed in 1974.

Not problematic, minor pedantry. With much time spent reading (and occasionally writing) technical documentation it's octets, binary prefixes, and other wanton pedantry where likely to be understood/appreciated or precision is required.

FTR, ECMA-130 (the CD "yellow book" equivalent standard) is littered with the term "8-bit bytes", so it was certainly a thing then. Precision when simultaneously discussing eight-to-fourteen modulation, and the 17 encoding "bits" that hit the media for each octet as noted in a sibling comment.

Now, woktets on the other hand...

CD storage has an interesting take, the available sector size varies by use, i.e. audio or MPEG1 video (VideoCD) at 2352 data octets per sector (with two media level ECCs), actual data at 2048 octets per sector where the extra EDC/ECC can be exposed by reading "raw". I learned this the hard way with VideoPack's malformed VCD images, I wrote a tool to post-process the images to recreate the correct EDC/ECC per sector. Fun fact, ISO9660 stores file metadata simultaneously in big-endian and little form (AFAIR VP used to fluff that up too).

It seems like it, but it can't be only that. A float64 representation of an int in the range 2^58 to 2^59 should be rounded to multiples of 2^6, i.e. 348555896224571968 as you found (3.48555896224571968E17) (the final digit 9 in the math.log2() expression was lost, it's 2^58 not 2^54) The unexpected output (according to the bugreport) arises from javascript, it does NOT round like everything else for reasons I don't understand. It seems to prefer rounding to arbitrary multiples of 10 in my limited testing.

XSLT RIP 8 months ago

A marquee, animated work-in-progress GIF and a visit counter CGI would have nailed it.

One of the first Spectrum emulators (JPP?) used a VGA text mode with 2 pixel high font where each character was its own ordinal, i.e. 65 was two rows of 01000001 pixels. That meant you could draw individual rows bytewise exactly as the Spectrum did, and just take care of the Y offset bit shuffle, and fake the colour clash.

Irish Water/Uisce Éireann have delivered on two new reservoirs in the last few years: Saggart and Stillorgan (technically a rebuild of an 1860s open reservoir). A third, Peamount, is in the planning stage. All of these are around Dublin, the driest and most populated area. Perhaps there are more, their website doesn't make it easy to find them. We still get hosepipe bans, occasional pressure reductions, and frequent "boil notices".

At the other end of the pipe they have opened/upgraded many waste water treatment plants recently too, large EU fines being a motivator, including one in Arklow which took nearly 4 decades to get over the line (its planning predating the existence of IW).