linuxgnuru

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 892 total)
  • Author
    Posts
  • in reply to: A good joke #77307
    linuxgnuru
    Participant
    strider wrote:
    I don’t get it.

    We all know how much you love snap so what better way to upgrade your AMD chipset than by using snap?

    in reply to: A good joke #77304
    linuxgnuru
    Participant

    Even better joke:

    Ryzen snap

    in reply to: Oinkadoob’s thread. #77294
    linuxgnuru
    Participant

    where do you get the pittsburgh.sc horizon.sc files?

    in reply to: Oinkadoob’s thread. #77290
    linuxgnuru
    Participant
    in reply to: strider #77281
    linuxgnuru
    Participant

    mushroom, MUSHROOM

    in reply to: Penguicon – linux and sci-fi convention in April #77276
    linuxgnuru
    Participant

    i would but i don’t have $8,000 to spare to fly there from space africa

    in reply to: Motörhead Expansion for Victor Vran??? #77273
    linuxgnuru
    Participant
    in reply to: Some SERIOUS SAM news! #77270
    linuxgnuru
    Participant
    strider wrote:
    I’m pretty sure this won’t include Serious Sam 2…

    Sorry, you’ll have to continue using Lutris to get that game.

    R.I.P. Lutris

    in reply to: Some SERIOUS SAM news! #77268
    linuxgnuru
    Participant

    Hooked on Phoronix worked for me

    in reply to: Some SERIOUS SAM news! #77266
    linuxgnuru
    Participant

    er… what is fusion 2017?

    in reply to: retro pie on a 7" display…now i need a case … #77264
    linuxgnuru
    Participant

    as for the TFT screen; just use the hat; for the audio amp; you could get something like this https://www.adafruit.com/products/1552
    (stero amp) and just solder the power (3.3v or 5v) and ground; then solder the audio out +L/-L, +R/-R on the Pi to this board and just solder in some speakers.

    in reply to: Guess the year this website was made (199?) #77256
    linuxgnuru
    Participant

    damn you guys; I went ahead and wrote this quick C program that turns a raspberry pi into a 6 sided die…

    Code:
    #include <stdio.h>
    #include <stdlib.h>
    #include <strings.h>
    #include <unistd.h>
    #include <errno.h>
    #include <signal.h>

    #include <time.h> // for srand

    #include <wiringPi.h>

    #define MAX_NUM 7
    #define MAX_DIG 6

    /*
    0 4
    1 3 5
    2 6
    */
    const int pins[7] = { 0, 1, 2, 3, 4, 5, 6 };

    const int pips[6][7] = {
    { 0, 0, 0, 1, 0, 0, 0 }, // 1
    { 1, 0, 0, 0, 0, 0, 1 }, // 2
    { 1, 0, 0, 1, 0, 0, 1 }, // 3
    { 1, 0, 1, 0, 1, 0, 1 }, // 4
    { 1, 0, 1, 1, 1, 0, 1 }, // 5
    { 1, 1, 1, 0, 1, 1, 1 } // 6
    };

    const int inputPin = 7;
    const int haltPin = 29;

    static void die(int sig);
    void roll_die();

    int main(int argc, char **argv)
    {
    int i;
    int dl = 0;

    srand((unsigned)time(NULL));
    // note: we’re assuming BSD-style reliable signals here
    (void)signal(SIGINT, die);
    (void)signal(SIGHUP, die);
    if (wiringPiSetup () == -1)
    {
    (void)fprintf(stderr, “oops %dn”, errno);
    return 1;
    }
    for (i = 0; i < MAX_NUM; i++)
    {
    pinMode(pins[i], OUTPUT);
    digitalWrite(pins[i], LOW);
    }
    pinMode(inputPin, INPUT);
    pullUpDnControl(inputPin, PUD_UP);
    pinMode(haltPin, INPUT);
    pullUpDnControl(haltPin, PUD_UP);
    /*
    for (i = 0; i < 6; i++)
    {
    printDie(i);
    delay(500);
    }
    */
    while (1)
    {
    if (digitalRead(haltPin) == LOW)
    {
    system(“shutdown -h now”);
    }
    if (digitalRead(inputPin) == LOW)
    {
    dl = 1;
    for (i = 0; i < 30; i++)
    {
    roll_die();
    delay(dl);
    dl += 5;
    }
    }
    }
    return 0;
    }

    static void die(int sig)
    {
    int i;
    for (i = 0; i < MAX_NUM; i++)
    digitalWrite(pins[i], LOW);
    if (sig != 0 && sig != 2)
    (void)fprintf(stderr, “caught signal %dn”, sig);
    if (sig == 2)
    (void)fprintf(stderr, “Exiting due to Ctrl + Cn”);
    exit(0);
    }

    void roll_die()
    {
    int i, r;

    r = rand() % MAX_DIG;
    for (i = 0; i < 7; i++)
    digitalWrite(pins[i], pips[r][i]);
    }

    in reply to: Guess the year this website was made (199?) #77251
    linuxgnuru
    Participant
    in reply to: Guess the year this website was made (199?) #77250
    linuxgnuru
    Participant

    in fact; I made this 6 sided die rolling gadget using this schematic

    View post on imgur.com

    linuxgnuru
    Participant
    Code:
    cat ~/.vimrc
    set autoindent autowrite showmatch wrapmargin=0 showmode report=0 redraw showcmd ruler nowrap nohlsearch shiftwidth=2 tabstop=4 t_te= cindent expandtab number
    “set autoindent showmatch wrapmargin=0 showmode report=0 redraw showcmd ruler nowrap nohlsearch shiftwidth=2 tabstop=4 t_te= cindent expandtab
    syntax on
    set pastetoggle=<F9>

    if isdirectory(‘/usr/local/include’)
    set path+=/usr/local/include
    endif

    set viminfo=’10,”100,:20,%,n~/.viminfo

    function! ResCur()
    if line(“‘””) <= line(“$”)
    normal! g'”
    return 1
    endif
    endfunction

    augroup resCur
    autocmd!
    autocmd BufWinEnter * call ResCur()
    augroup END
    color desert
    “inoremap { {<CR>}<Esc>ko
    inoremap {<CR> {<CR>}<C-o>O

Viewing 15 posts - 16 through 30 (of 892 total)