Stories
Slash Boxes
Comments

SoylentNews is people

Log In

Log In

Create Account  |  Retrieve Password


Who Wants to See My Wang?

Posted by Sir Finkus on Tuesday May 12 2015, @08:01PM (#1217)
6 Comments
Answers

I've recently come into possession of a Wang 720A/B Reference manual. My late uncle owned the Wang and hadn't been able to find a manual anywhere. Turns out, it was at my Grandmother's house. I was a bit suspicious because Grandpa had been dead for more than a decade, but I didn't ask any questions.

I don't understand why a Wang would need a reference manual in the first place, (even your mother can use one with little to no training or instruction) but here I am looking at one.

Does anyone have any suggestions on discussion groups / websites that might be interested in seeing pictures of my Wang (Reference Manual). Although demand for my Wang (Reference Manual) is at record low levels, I suspect a niche group somewhere has been itching for this.

Maybe the sad reality is that nobody cares about my Wang (reference manual). Sometimes it can feel that way.

Soylent Upgrade user extension for Chrome

Posted by takyon on Tuesday May 12 2015, @01:34AM (#1215)
7 Comments
Code

// ==UserScript==
// @name Soylent Upgrade
// @match http://soylentnews.org/submit.pl
// @match https://soylentnews.org/submit.pl
// @match http://soylentnews.org/submit.pl?op=viewsub&subid=*
// @match https://soylentnews.org/submit.pl?op=viewsub&subid=*
// @match http://soylentnews.org/admin.pl
// @match https://soylentnews.org/admin.pl
// @match http://soylentnews.org/admin.pl?op=edit&sid=*
// @match https://soylentnews.org/admin.pl?op=edit&sid=*
// @match http://soylentnews.org/comments.pl*
// ==/UserScript==

var simplifyChars = true;

var boxes = document.getElementsByTagName("textarea");
for (var x=0; x<boxes.length; x++)
{
    if (boxes[x].name == "introtext" || boxes[x].name == "bodytext")
    {
        var temp = boxes[x].value;
        temp = temp.replace(/<\/p><p>/g,"<\/p>\n\n<p>");
        temp = temp.replace(/<br>\s?<br>/g,"<\/p>\n\n<p>");
        temp = temp.replace(/<\/blockquote><p>/g,"<\/blockquote>\n\n<p>");
        temp = temp.replace(/<\/p><blockquote>/g,"<\/p>\n\n<blockquote>");
        temp = temp.replace(/<blockquote><div><p>/g,"<blockquote><div>\n\n<p>");
        temp = temp.replace(/<\/p><\/div><\/blockquote>/g,"<\/p>\n\n<\/div><\/blockquote>");
        temp = temp.replace(/<\/blockquote><blockquote>/g,"<\/blockquote>\n\n<blockquote>");
        temp = temp.replace(/<p class="byline">\s/i,"<p class=\"byline\">");
        temp = temp.replace(/<p>\s/g,"<p>");
        temp = temp.replace(/\s<\/p>/g,"<\/p>");
        temp = temp.replace(/<\/li><li>/g,"<\/li>\n<li>");
        temp = temp.replace(/<\/li><\/ul>/g,"<\/li>\n<\/ul>");
        temp = temp.replace(/<\/p><ul>/g,"<\/p>\n\n<ul>");
        temp = temp.replace(/  /g," ");
        if (simplifyChars)
        {
            temp = temp.replace(/\u2018/g,"'");
            temp = temp.replace(/\u2019/g,"'");
            temp = temp.replace(/\u201C/g,"\"");
            temp = temp.replace(/\u201D/g,"\"");
            temp = temp.replace(/\u2026/g,"..."); // ellipsis
        }
        boxes[x].value = temp;
        boxes[x].rows = 32;
    }
    var toolbar = document.createElement("div");
    var tempbutton = document.createElement("input");
    tempbutton.setAttribute("type","button");
    tempbutton.setAttribute("value","Blockquote");
    tempbutton.setAttribute("onmousedown","addBlockquote(document.getElementsByTagName('textarea')["+x+"]);");
    toolbar.appendChild(tempbutton);
    boxes[x].parentNode.insertBefore(toolbar, boxes[x].nextSibling);
}

var temp = document.createElement("script");
temp.appendChild(document.createTextNode("function addBlockquote(area) { var sel = getSelection(); if (sel.length != 0) { area.value = area.value.replace(sel,'<blockquote>'+sel+'<\/blockquote>'); } }"));
document.getElementsByTagName('head')[0].appendChild(temp);

function getSelection() {
    return (!!document.getSelection) ? document.getSelection() :
           (!!window.getSelection)   ? window.getSelection() :
           document.selection.createRange().text;
}

So we might be homeless in a couple days.

Posted by Subsentient on Thursday May 07 2015, @07:25PM (#1205)
5 Comments
/dev/random

I've been staying in a motel the last week, because we had an arrangement where an apartment would become available on the 15th. That has fallen through and I don't have anywhere to go. I can't afford another week at this extended stay motel. I have $300 in my checking account. The motel takes $350 a week for me, my 67 year old mother, and two cats.

The fault is partly ours, and partly the wishy-washy landlord.
She guaranteed us the previous tenants would move out since they had given notice, and they did not. My mother is the one who decided to take this arrangement despite my concerns, god bless her, but now it seems my fears were accurate. The next place needs to be in my name I think.

I'm in Mesa Arizona.
Can anyone hear my quiet gurgling for help?

My email is thinkingrodent@gmail.com if anyone wants to help me financially. That's what my paypal is linked to.

Squeak.

Edit: Thank you to NORCOM and Krishna. You've given me a huge help. I am the author of the Epoch Init System, something I didn't mention before, so perhaps your kindness will allow me the stability to improve Epoch.

script for automated test comment submissions to dev

Posted by crutchy on Wednesday May 06 2015, @01:21PM (#1200)
1 Comment
Code

to bytram:

i've bashed together a scripty that will hopefully work as a starting point for automating some stuff on dev

exec command "~slash-test" (restricted to use by your nickserv account, and bot admins) may be run from either #dev or #test channels. at the moment it won't work cos i've already submitted the test comment (dev will return a duplication error), but its ready for preparation of test comment files similar to this one: https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/slash_tests/test01

note: the parent element should contain the filename of the parent test file if applicable (leave blank or omit for root level). ie: for child of test01, put <parent>test01<parent>

source code files here:
https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/slash_test.php
https://github.com/crutchy-/exec-irc-bot/blob/master/scripts/sn_lib.php

VT100 CSS Fix

Posted by takyon on Monday May 04 2015, @11:50PM (#1196)
0 Comments
Code

blockquote {border-left:3px solid #0F0 !important; padding-left:1em !important;}

/* Submissions */

.data .status0 {background:#FFF !important; color:#080 !important;}
.data .status0 a {color:#080 !important;}
.data .status0 a:visited {color:#0A0 !important;}
.data .status0 a:hover {color:#0C0 !important;}
.data .status1 {background:#800 !important;}
.data .status2 {background:#256625 !important;}

Relationship Hacking: Part 7 - An Amazing Night

Posted by Snow on Tuesday April 28 2015, @05:05PM (#1187)
1 Comment
/dev/random

Last night was amazing.

You know those moments where you really connect with someone else? When you see them in a new light and everything is great? My wife and I had one of those moments last night.

It was a beautiful evening that felt like summer. My wife had the day off, and had picked up some burgers, beer, and wine for dinner. We started talking about our life, the future, poly, and kids. It was a truly happy moment for me. We imagine a future where my wife can go traveling with someone who likes traveling more than me while I stay home looking after the kids. We talk about opening our own business (a recurring dream we have had for years and years). I told her that I feel like my life is just starting.

Our one year wedding anniversary is coming up pretty soon. We talked about how our relationship was before we got married versus after, and it seems like we were different people then. Much more immature. Much worse communication. Less connection. It's amazing what can change in a year.

My other relationship is progressing very well too. We saw each other again last weekend, and had a great time again. I'm seeing her again on Thursday (for our 4th date). There is a definitely a spark there, and I feel that there is a very good chance that we will have sex that night - my first new sexual partner in over 12 years.

I am happy and loving life. It's been a long time since I've felt this happy.

-- Snow

"Just pick out the meat"

Posted by Subsentient on Saturday April 25 2015, @09:04AM (#1179)
7 Comments
/dev/random

I can't tell you how many times, being a vegetarian, that I was told I can just "pick out the meat" of whatever meal. Most recently I was complaining that I could find no vegetarian top ramen, which I loved when I was a kid. I was told "well you can just not add the meat sauce".

Let me clear this and some other stuff about us veggies up for you.

I don't eat meat because I consider it unethical, not because I don't like the taste. To buy the ramen and then not use the meat packet is even worse than just eating it all, because not only have I then contributed to the demise of something, I've wasted that food and therefore any suffering.

While I started writing this journal entry only for the above paragraph, I decided to take the time to answer some other comments I get frequently.
Next on my list is "you need protein to be healthy".

That's probably true. That's why I eat a lot of beans, peanut butter, etc. I even buy the special vegetarian refried beans that don't have lard in them. Betcha didn't know that they had lard in em eh? Rosarita makes the ones clearly labeled "vegetarian" with a purple ribbon label. I've been vegetarian since shortly after I turned 17 years old. I'm 20 going on 21. I'm not dead, or hallucinating, or particularly pale. My health has not gotten noticably worse. I feel fine. And no, I don't make exceptions or occasionally "treat myself". I don't eat fish or chicken or any of that. For me, "nothing with a brain". I don't bend that rule.

Next, "I like the taste of meat too much".
Whatever. I used to be one of those people. Then I saw how horrible it really gets for these critters and finally grasped what was really going on there in my heart as well as my mind. Go look up animal cruelty in slaughter houses. It's extremely common. Think of thousands of chickens with untreated broken legs because they're too fat to walk.

Next is "humans evolved with big brains because of meat".
I don't feel any dumber.

and finally, "but animals eat each other"
Yeah, they also do lots of other horrific things because they are ANIMALS and while they are capable of emotion and feeling, they are not very good at rational thought. Humans are supposed to be better than animals, and I can no longer justify such suffering that is not necessary for my survival.

Relationship Hacking: Part 6 - It's happening!

Posted by Snow on Friday April 24 2015, @04:01PM (#1178)
3 Comments
/dev/random

So...

Shortly after my last entry, I met a girl on Tinder. We met for drinks and and ended up chatting for a few hours. She is also poly and has a couple other partners. She's very smart and opinionated. We had a great time and arranged to meet again.

Last night, we met again for dinner at a fancy restaurant. She showed up in a super sexy dress and I couldn't take my eyes off her. We had another great time and are planning on seeing each other again this weekend. I can't wait!

Admittedly, it was pretty weird to be all fired up from a great date and then coming home to my wife. We cuddled in bed like we always do, but my mind was racing thinking about my date. It kinda felt wrong. My wife there with her head rested on my chest while I think about my date with the other girl.

I don't know what else to say, as things are still really new. New Relationship Energy (NRE) is intoxifying. Its something I haven't felt for over a decade, and I'm really excited by it! More updates to come. Hopefully good ones!

-- Snow

Finally jumped into the MMO snake pit

Posted by Hairyfeet on Sunday April 19 2015, @06:09AM (#1165)
2 Comments
Software

Sigh, with it becoming harder and harder to find decent single player games, as i am not part of the "dudebro" demographic and therefor do not care for your "Medal Of Dooky: Halo Of Killzone Gears Edition" style of games I decided to jump in and try one that looked the least "dude bro"ish and that game is....War Thunder.

I have to give the designers of the game credit, as nearly ever other "FTP" game I've ever played is either so grindtastic its insane or so badly pay to win its not funny but at least in these early tier 1 games? Its really not, hell you can take the default tank (that you get free repairs on forever so you can be as nutty as you like with it, nice) and actually start getting kills in the first few minutes of the first game, its really all about keeping your head on a swivel and remembering to watch your reload times. Nothing will give you a smile quicker than somebody coming to strafe the tank formation you are in and you blow its wing off with the 20mm of your Panzer II lol.

So if any of you are getting sick of the usual fare and want something a little different? Do NOT be put off by the fact its planes and tanks (and soon to be ships) as its beyond easy to drive with a standard keyboard and mouse. If you can play an FPS? You can play War Thunder. Maybe if a few guys here give it a spin and like it we can get a team together, having :"Team Soybeans" roll the tanks while "Run To The Hills" by Iron Maiden plays? That would be a blast.

Simple brute force Mandelbrot from 1401 to Basic to Python

Posted by Yog-Yogguth on Friday April 17 2015, @02:07PM (#1163)
3 Comments
Code
Simple brute force Mandelbrot from 1401 to Basic to Python

Read about http://dpeckett.com/turning-the-arduino-uno-into-an-apple who in
turn had been inspired by
http://www.righto.com/2015/03/12-minute-mandelbrot-fractals-on-50.html which
was discussed on Soylent
https://soylentnews.org/article.pl?sid=15/03/26/1555201 and out of pure
curiosity wanted to see what the simple Basic program would look like as
Python.

The Apple II result of the program is very limited by the screen/terminal as is
the direct translation into Python but it is then slightly improved to give a
result fairly close to the original 1978 first ever plot of a Mandelbrot. The
recent 1401 version has about twice as much detail than that.

N.b.:    The Python is written and tested in Python 3.2.3 it does not and will
        not work in Python 2.7.3 (having both in Linux is usually easy as
        they're treated entirely separately as python and python3).

        The Basic isn't tested or anything by me as I didn't write it, it is
        some version that runs on an Apple II emulation.

Integer Basic program to calculate the Mandelbrot fractal:

1 DIM LINE$(31)
2 FOR PY=1 TO 15
3 FOR PX=1 TO 31
4 X=0
5 XT=0
6 Y=0
7 FOR I=0 to 11
8 XT = (X*X)/10 - (Y*Y)/10 + (PX-23)
9 Y = (X*Y)/5 + (10*PY - 75)/8
10 X = XT
11 IF (X/10)*X + (Y/10)*Y >= 400 THEN GOTO 15
12 NEXT I
13 LINE$(PX)="*"
14 GOTO 16
15 LINE$(PX)=" "
16 NEXT PX
17 PRINT LINE$
18 NEXT PY
19 END

Python translation and result:

N.b.:    Unlike in Basic the Python ranges do not include the end points.
        Basic goto structure is rearranged using a break and else statement.
        "px" becomes "px-1" where applicable due to the difference between
        Basic arrays and Python lists (or maybe I'm wrong about that).
        Python printing is a bit more complex for the use case.

        The Python still manages to be fewer lines and is much easier to read
        in my opinion (I don't really know Basic but I don't know all that much
        Python either). I can see why goto is vilified :3

>>> line = [None] * 31
>>> for py in range(1, 16):
...     for px in range(1, 32):
...             x = 0
...             xt = 0
...             y = 0
...             for i in range(0, 12):
...                     xt = (x * x) / 10 - (y * y) / 10 + (px - 23)
...                     y = (x * y) / 5 + (10 * py - 75) / 8
...                     x = xt
...                     if (x / 10) * x + (y / 10) * y >= 400:
...                             line[px-1] = " "
...                             break
...             else:
...                     line[px-1] = "*"
...     for j in range(len(line)):
...             print(line[j], end = "")
...     print("")
...
                    ***
                *   ***
                 **********
               ***********
          * *  ************
          *****************
        ******************
        ******************
          *****************
          * *  ************
               ***********
                 **********
                *   ***
                    ***
                     *
>>>

N.b.:    The output isn't identical most likely because Python automatically
        creates floating point numbers out of divided integers.

Expanded Python example and result:

Increasing the fidelity of the plot isn't as straightforward as one could
assume in Python: ranges can be stepped but don't take floating point values so
one has to do it "manually" with a few more variables. We change things to
start from zero as well, no reason not to.

The smallest preset Linux terminals are 80x24 so we can at least try to make
use of up to 79x24 for display, or more if we imagine printing it as was done
in 1978 and resulted in a picture consisting of at least 31 rows and 68
columns (and if less than half the height scrolls off the screen that's not
much of a problem).

Our plot is distorted because our typeface is taller than it's wide but we can
use that to cram higher detail into the horizontal axis (and this will help
make it look less distorted as well).

Out of laziness I left the px-1 stuff in to save/discard an empty column and
shifting the plot 1 character to the left. One could increase that to something
like px-7 or 8 and lower stepx appropriately for a little bit more detail. If
one wanted to do it properly and avoid the wasted work one could instead shift
the 'for px...' range to (7, 86) or similar.

I think I've goldplated this enough as is, I blame procrastination :3

(I'm posting this in my journal to force myself to stop).

line = [None] * 79
stepx = 0.35
stepy = 0.5
for py in range(0, 30):
    for px in range(0, 79):
        sx = px * stepx
        sy = py * stepy
        x = 0
        xt = 0
        y = 0
        for i in range(0, 25):
            xt = (x * x) / 10 - (y * y) / 10 + (sx - 23)
            y = (x * y) / 5 + (10 * sy - 75) / 8
            x = xt
            if (x / 10) * x + (y / 10) * y >= 400:
                line[px-1] = " "
                break
        else:
            line[px-1] = "*"
    for j in range(len(line)):
        print(line[j], end = "")
    print("")

                                                             **
                                                          ******
                                                          *******
                                                  *        *****
                                                 ***  ***************      *
                                                 ********************** ***
                                                 *************************
                                              ****************************
                                             ****************************** *
                                    * *       *******************************
                               **********   ********************************
                               ***********  ********************************
                              ************* ********************************
                          *************************************************
        *****************************************************************
                          *************************************************
                              ************* ********************************
                               ***********  ********************************
                               **********   ********************************
                                    * *       *******************************
                                             ****************************** *
                                              ****************************
                                                 *************************
                                                 ********************** ***
                                                 ***  ***************      *
                                                  *        *****
                                                          *******
                                                          ******
                                                             **

Not bad for 22 lines of code, easily recognizable :)