Better HN
topnewbestaskshowjobs
Log inSign up

protopete

112 karma · joined Aug 29, 2011 (15y ago) · 48 submissions

Submissions

comment 1y ago · link · parent

There's a time and place for anime catgirls and it's

EVERY TIME I OPEN A DAMN WEBPAGE BECAUSE OF AI CRAWLERS

comment 2y ago · link · parent

Hey I noticed that the division code example is using the "ul" tag instead of the "div" tag. Thanks!

Edit: nevermind, but the comment still says "This ul tag"

comment 4y ago · link · parent

Check the "font-feature-settings" in the body style CSS. The "case" 1 when changed to 0 makes the text normal on Firefox.

comment 6y ago · link · parent

Likely a bug. I carried the skull item and got this error when trying to dance:

  Uncaught Error: Frame tag not found: dance-carry
    getTaggedFrameIndex Aseprite.ts:140
    update Player.ts:859
    update GameScene.ts:424
    update Scenes.ts:130
    update Scenes.ts:128
    update Game.ts:107
    gameLoop Game.ts:86
  Aseprite.ts:140:18
    getTaggedFrameIndex Aseprite.ts:140
    update Player.ts:859
    update GameScene.ts:424
    update Scenes.ts:130
    forEach self-hosted:216
    update Scenes.ts:128
    update Game.ts:107
    gameLoop Game.ts:86
    gameLoop self-hosted:1171

comment 8y ago · link · parent

Me too, this feels like another case of better off not knowing. Being a childhood fan of Ren and Stimpy cartoons, and having read the article realizing that Katie Rice worked for Spumco, now I get why I like the art style for Katie's webcomics Skadi and Camp Weedonwantcha. I really hope the content of the article isn't the reason for the current hiatus of the camp comic. I was really struck by her quote at the end about wishing she hadn't gone through it even if would have made her a less skilled artist.

comment 8y ago · link · parent

The new one is better:

https://krikienoid.github.io/flagwaver/#?src=https%3A%2F%2Fb...

comment 8y ago · link · parent

Why would I want Amazon charging their drones from my car?

comment 9y ago · link · parent

> Perhaps we need a Model W the Westfalia edition :-).

http://cafeelectric.com/stretchla/

comment 9y ago · link · parent

And that the floods lasted exactly 420 seconds and 666 seconds, those script kiddies are pretty creative when choosing numbers.

comment 10y ago · link · parent

I got this Arduino bot for $70. Has its own battery for sufficient power. The motor gearing is a bit fast, so it's better to use PWM to slow down the motors, except the default pinout disables PWM on the drive gpios when the servo is enabled. The build quality is ok, except there are no spacers for the bolts between the PCBs and acrylic base, so I worry about damaging the PCB during assembly.

https://www.amazon.com/Elegoo-Four-wheel-Ultrasonic-Intellig...

11.

Rogue Wave Software(roguewave.com ↗)

1 points · by protopete · 10y ago · discuss

comment 10y ago · link · parent

This subthread here? https://news.ycombinator.com/item?id=11810177

comment 10y ago · link · parent

I logged in to say the same thing. More info here: http://perldoc.perl.org/functions/dump.html

comment 11y ago · link · parent

I was able to compile it on Ubuntu after moving the X11 includes to the bottom of the list:

  #include <stdio.h>
  #include <strings.h>
  #include <string.h>
  #include <stdlib.h>
  #include <stdint.h>
  #include <inttypes.h>
  #include <stdarg.h>
  #include <math.h>
  #include <X11/Xlib.h>
  #include <X11/Xlibint.h>
  #include <X11/Xproto.h>
  #include <X11/Xatom.h>
  #include <X11/extensions/Xrandr.h>
  #include <X11/extensions/Xrender.h>

comment 11y ago · link · parent

http://seed7.sourceforge.net/faq.htm#lisp_comparison

comment 11y ago · link · parent

Passing a null pointer to free() is perfectly safe, and in this case simplifies the cleanup code.

Although the concern of a memory leak is valid. I would have expected the resources to be free'd regardless of the result.

comment 11y ago · link · parent

HTML5 video doesn't work with live video unfortunately, while flash RTMP streaming does. Alternatives include MPEG DASH and Apple HTTP Live Streaming, but not all browsers support them.

comment 11y ago · link · parent

Yet another technology lifted straight out of an anime: Eden of the East [http://en.wikipedia.org/wiki/Eden_of_the_East] where contestants compete to win a reality game with access to a concierge by phone backed by a staggering sum of money.

comment 11y ago · link · parent

Still, s/Go/Golang/ would help clear up any confusion.

comment 12y ago · link · parent

AOT: ahead of time

JIT: just in time

Compiler applies to both of them.

comment 12y ago · link · parent

2310

comment 12y ago · link · parent

I was confused too, until I clicked all the links in the article and it was referring to this one: http://blogs.msdn.com/b/oldnewthing/archive/2009/10/21/99102...

comment 12y ago · link · parent

HFCS is metabolized primarily by the liver, unlike sugar.

http://ajcn.nutrition.org/content/86/4/895.full

comment 12y ago · link · parent

I think it unlikely that pre-existing footage can be used, because HD video is almost always compressed, thus masking the minute vibrations in the pixels. The algorithm described in the article work best for uncompressed video directly from the image sensor, and they can run it in real-time without needing to store the video.

comment 12y ago · link · parent

Thanks, updated.

comment 12y ago · link · parent

Unfortunately the MP4 looks worse than the GIF, due to chroma compression in the YUV 420 colorspace. While each pixels luminance value is kept, the color information for a 4-pixel square is stored as a single CrCb pair, which is really obvious when you look at how the orange hat has artifacts against the blue background. Increasing the bitrate won't solve this either, since it's a limitation of the colorspace.

comment 12y ago · link · parent

You can also use "rlwrap" with any program to enable readline features.

comment 12y ago · link · parent

The language is currently without raw pointers, suitable for an object system like Python/Ruby/JS.

comment 12y ago · link · parent

Pointers don't have to be the exception. I'm working on a programming language runtime where objects are stored as a 32-bit value, with 3/4 of the range representing an integer, and 1/4 of the range (30 bits) representing a pointer. Given the constraint that pointer objects are aligned to 8 bytes, the 30-bits multiplied by 8 results in an 8GB addressable memory space. Pages within that space can be allocated using mmap with MAP_FIXED flag. Smaller memory usage results in more things in cache, resulting in higher performance.

comment 12y ago · link · parent

To count the number of page faults during execution, use:

  perf stat <executable>
Page faults occur after anonymous pages are mmap'ed for the heap, either mapping a common zero page, then faulted again for a memory write. Prefaulting the page with MAP_POPULATE flag to mmap can help reduce the number of page faults.

Shared libraries are also mmap'ed and faulted in, and doing it this way saves memory for things that aren't used. But if paying the penalty for faulting the pages when used outweighs the memory savings, it might be better to use MAP_POPULATE here too. It might worth trying to add an LD_LIBRARY_XXX option to tell the loader to use MAP_POPULATE. Statically linking the executable will also reduce the number of faults (sections are combined, etc.)

12