Readit News logoReadit News
aepiepaey commented on Unix Toolbox (2008)   cb.vu/unixtoolbox.xhtml... · Posted by u/rodrigo975
MichaelMoser123 · 6 years ago
Is there a tool that returns linux system information in json format, that works for most kernel versions and / is actively supported? i think it would be easier to pipe through jq in order to get a desired value, rather then pipe through grep/awk/sed.
aepiepaey · 6 years ago
There's facter (used by and developed for Puppet): https://github.com/puppetlabs/facter

Pass --json for JSON output.

aepiepaey commented on Dreamcast Emulator Redream 1.5.0 Progress Report   redream.io/posts/progress... · Posted by u/tosh
kingosticks · 6 years ago
Good spot. It used to be GPL licensed. How odd. If you goto the gitlab project at https://gitlab.com/inolen/redream it's basically just a support forum. Anyone got any more details on this? Is this an attempt to monitise the work?

Edit: I see you can upgrade to "premium" but it's a one-time fee of only $5 so money can't be the motivation here. Same at https://gitlab.com/inolen/redream/issues/957 An acknowledgment of the situation is at https://gitlab.com/inolen/redream/issues/543#note_91625154 but sadly no explanation.

aepiepaey · 6 years ago
There's some reasoning in this thread: https://old.reddit.com/r/emulation/comments/7p2rik/redream_h...

Notably, this comment by the developer (with followups): https://old.reddit.com/r/emulation/comments/7p2rik/redream_h...

aepiepaey commented on Ask HN: What automation tools have you used to replace mundane activities?    · Posted by u/beatthatflight
fbcpck · 6 years ago
Not OP, but I decided to switch to Tampermonkey after GM version 4 which broke almost all my scripts due to the GM_## api changes. I no longer remember the exact details but it was poorly executed/communicated, and it’s easier to switch to TM instead of updating all the scripts.

The dashboard interface in TM is a lot nicer than GM too

aepiepaey · 6 years ago
When Firefox stopped supporting legacy extensions, the Greasmonkey developers saw that as a chance to redesign their API (to use promises).

Tampermonkey used to be open source, but unfortunately isn't any more. I still use it though, as it has better UX (e.g. nicer dashboard, prefills @match when creating new scripts, better editor, etc).

An alternative to Tampermonkey that is open source and still uses the old style of user scripts is Violentmonkey (which also lacks in the UX department, if i recall correctly).

aepiepaey commented on OpenSSH 8.2   lists.mindrot.org/piperma... · Posted by u/beefhash
nextweek2 · 6 years ago
Oh deer, perhaps someone at Microsoft DevOps should be told.

https://developercommunity.visualstudio.com/idea/365980/supp...

aepiepaey · 6 years ago
aepiepaey commented on Usenet – Let's Return to Public Spaces   october.substack.com/p/pa... · Posted by u/jsmoov
krilly · 6 years ago
4chan partially solved this problem by using inside knowledge to identify 'newf*gs' and push them out. Triforce, fingerboxes, etc. The weirdly complex boardculture was self sustaining because new people couldn't even keep up with the conversation without lurking for a year or so.

And then of course, the newcomers started taking the abrasive and politically incorrect culture at face value.

aepiepaey · 6 years ago
"Any community that gets its laughs by pretending to be idiots will eventually be flooded by actual idiots who mistakenly believe that they're in good company."
aepiepaey commented on Why we've never fallen in love with virtual reality   bbc.co.uk/news/business-5... · Posted by u/pmoriarty
kstenerud · 6 years ago
Another issue is motion sickness. For a significant portion of us this is a huge problem.
aepiepaey · 6 years ago
Most people can reportedly get used to the discrepancy between the vision and balance senses and be rid of the motion sickness (with some training: keep playing until you start feeling uncomfortable, wait until the next day, go again).

Ginger can also help delay onset.

It can also be noted that motion sickness really only is a problem where the game character moves while you stand still physically (e.g. using a joystick to move around). Other forms of locomotion (like teleportation) are usually fine.

aepiepaey commented on Judge orders Google to turn over a full year of actor’s data   chicagotribune.com/news/c... · Posted by u/nkurz
self_awareness · 6 years ago
Article is unavailable in EU due to GDPR.
aepiepaey commented on Broot – A new way to see and navigate directory trees   dystroy.org/broot/... · Posted by u/gilad
halayli · 6 years ago
i am still waiting for someone to replicate xtgold... but then I realize the generations gap and how it might never resurface again.
aepiepaey · 6 years ago
In addition to the one mentioned by a sibling comment, there are several others:

Windows:

- http://textmode.netne.net/Extreme.html

- http://www.ztree.com/

Unix:

- http://www.unixtree.org/

aepiepaey commented on Corundum: Open-source, high performance, FPGA-based NIC   github.com/ucsdsysnet/cor... · Posted by u/lelf
shaklee3 · 6 years ago
I believe they are doing 100Gbps now: https://t.co/cbb7NA9vJf?amp=1

It's hard for me to see the use case of an FPGA nic. The reasons outlined above don't seem compelling when a commodity nic like mellanox do so much more already.

aepiepaey commented on Show HN: Space Invaders in C   blog.loadzero.com/blog/si... · Posted by u/loadzero
jacquesm · 6 years ago
Interesting metrics, you'd expect C to do a lot better in the line-count department than assembly.

I tried building it on Ubuntu, if you follow the instructions the SDL library include files will end up in a directory called SDL so you have to include SDL/SDL.h and even then the build fails with lots of SDL related definitions missing (SDL_Window for instance).

That's because you really should be doing

  sudo apt-get install libsdl2-dev
Then change the include file line to

  #include <SDL2/SDL.h>
and type:

  make
The roms can be found here:

http://www.freevintagegames.com/MAME/invaders.php

After downloading you'll have to rename the files because the names will all be uppercase:

  cd inv1
  mv INVADERS.E invaders.e
  mv INVADERS.F invaders.f
  mv INVADERS.G invaders.g
  mv INVADERS.H invaders.h
  cd ..
Now the game should work:

  ./bin/si78c
Some minor nitpicks about the code:

- bracket your ifs and place the starting { on the same line as if/while, or one day you'll sit there staring at the screen for 8 hours trying to figure out why your code no longer works due to an accidentally deleted line.

So:

  while (num < 64)
    {
        int has = SDL_PollEvent(&event_buffer[num]);
        if (!has) break;
        num++;
    }
becomes:

  while (num < 64) {
    if (SDL_PollEvent(&event_buffer[num])) {
      break;
    }
    num++;
  }

Neat project!

aepiepaey · 6 years ago
Instead of patching the source, the Makefile should be patched to use sdl2-config to set LDFLAGS and CFLAGS (instead of hard-coding them), i.e:

    CFLAGS := [other flags...] $(shell sdl2-config --cflags)
    LDFLAGS := [other flags...] $(shell sdl2-config --libs)
That will set the correct compiler and linker flags for you installation, and you can leave the include as just "SDL.h".

u/aepiepaey

KarmaCake day334May 10, 2017View Original