Stories
Slash Boxes
Comments

SoylentNews is people

Log In

Log In

Create Account  |  Retrieve Password


Simple Bodybuilding Calorie and Protein Calculator

Posted by cocaine overdose on Thursday March 22 2018, @02:45PM (#3092)
4 Comments
Code

I've been using this for a couple of years now and it's worked well for me. Based off of the Katch-McArdle Formula for RDEE, Lyle McDonald's "Modified Protein Sparing Fast" and information about muscle/fat/calorie partitioning, and then some of my own research that's proven to be practical.

Don't mind the errors, they'll go away once the inputs are all filled correctly.

https://docs.google.com/spreadsheets/d/1VHsmkvRTai_cdcFlb8mfPF0RUci44c-snYx_JRMGa7A/edit?usp=sharing

https://mega.nz/#!NpRGVCZK!_yVwFIXIARexA6EgnOtNzs8fwTxVOZCuVIFLfAVGjhI

https://a.pomf.cat/egqrfx.xlsx

NASA Briefing on TESS Exoplanet Mission, Mar. 28, 1 PM EDT

Posted by takyon on Thursday March 22 2018, @01:05AM (#3091)
0 Comments
Science

NASA to Discuss Upcoming Launch of Next Planet Hunter

Join NASA at 1 p.m. EDT Wednesday, March 28, as astrophysics experts discuss the upcoming launch of NASA’s next planet hunter, the Transiting Exoplanet Survey Satellite (TESS). Reporters can attend the event in person at the James Webb Auditorium at NASA Headquarters in Washington or participate by phone.

The briefing will be broadcast live on NASA Television and the agency’s website.

Scheduled to launch April 16, TESS is expected to find thousands of planets outside our solar system, known as exoplanets, orbiting the nearest and brightest stars in our cosmic neighborhood. Powerful telescopes like NASA’s upcoming James Webb Space Telescope can then further study these exoplanets to search for important characteristics, like their atmospheric composition and whether they could support life.

Transiting Exoplanet Survey Satellite.

John Oliver's Gay Bunny Book Outsells VP Pence's Daughter's

Posted by takyon on Tuesday March 20 2018, @06:38PM (#3089)
8 Comments
/dev/random

John Oliver’s Gay-Bunny Book Is Outselling the Mike Pence Book It’s Trolling

John Oliver’s Marlon Bundo Book Sells Out In A Day; Another Printing In Works

A Day in the Life of Marlon Bundo

Worst Pence bashing since Trump:

“Trump thinks Pence is great,” Bannon told me. But, according to a longtime associate, Trump also likes to “let Pence know who’s boss.” A staff member from Trump’s campaign recalls him mocking Pence’s religiosity. He said that, when people met with Trump after stopping by Pence’s office, Trump would ask them, “Did Mike make you pray?” Two sources also recalled Trump needling Pence about his views on abortion and homosexuality. During a meeting with a legal scholar, Trump belittled Pence’s determination to overturn Roe v. Wade. The legal scholar had said that, if the Supreme Court did so, many states would likely legalize abortion on their own. “You see?” Trump asked Pence. “You’ve wasted all this time and energy on it, and it’s not going to end abortion anyway.” When the conversation turned to gay rights, Trump motioned toward Pence and joked, “Don’t ask that guy—he wants to hang them all!”

Mankind Peaked

Posted by takyon on Monday March 19 2018, @07:59PM (#3087)
7 Comments

Soylent News: Modified Chillax Theme

Posted by cocaine overdose on Sunday March 18 2018, @08:30PM (#3085)
5 Comments
Code
I was working on a prank that never came around, and it involved a new theme I whipped up. Though I found out it looks a lot like the "Chillax" theme, after I was finished, I'm still satisfied with the result.

It's a less dead-inside Chillax (and it's easier to see read-comments). You can set it up using Firefox's userContent.css:

@-moz-document domain("soylentnews.org") {
    body
    {
    background: #d1d9ff !important;
    }
    .generaltitle div.title, .article div.title, .search-results h4
    {
    background-color: #101872 !important;
    background: linear-gradient(#101872, #212fcb) !important;
    border-radius: 10px 10px 0 0 !important;
    }
    #logo h1 a {
    background: url("soylent.png") no-repeat !important;
    background-size: 115px 80px !important;
    }
    a, .menu li a {
    color: #006 !important;
    }
    .generaltitle h3 a, .generaltitle h3 a:visited, .search-results h4 a, .search-results h4 a:visited {
    color: #fff !important;
    }
    .logout a {
    background: #342fe6 !important;
    color: #fff !important;
    }
    .more a {
    background-color: #342fe6 !important;
    color: #fff !important;
    }
    .title, .user {
    background: #8792ba !important;
    }
    #you, #journal .article h3 a, #journal .article h3 a:visited  {
    color: #fff !important;
    }
    input[type="submit"], button[type="submit"], .logout a, div.storylinks ul li.more a, .nbutton b a
    {
    background: #342fe6 !important;
    color: #fff !important;
    }
    .commentBox, .data_head {
    background: #2d28d5 !important;
    }
    #links a, #links a:visited, .details a, .details a span, .details, .details a span a {
    color: #020c83 !important;
    text-decoration: none !important;
    }
    #slogan * {
    color: #001e9f !important;
    }
    .commentTop .title {
    background: #342fe6 !important;
    }
    .dimmed .commentTop .title {
    background: #8792ba !important;
    }
    #usermenu ul.menu li a {
    background: #342fe6 !important;
    color: #fff !important;
    }
    #usermenu ul.menu li.selected a {
    background: #444287 !important;
    }
}

And the logo: https://i.imgur.com/pOLn9tb.png

HTTP Headers: For Lulz and for Lulz

Posted by cocaine overdose on Saturday March 17 2018, @02:43AM (#3082)
7 Comments
Security

What's popping my fellow internet professionals. Today I'm going to learn you well about the fun shit you can do with HTTP headers.

You'll need:

  • A lUnix distro
  • Curl + Wget
  • 47 IQ points
  • Run

    export WEBSITE=www.google.com

    where "www.google.com" can be any website you want. For these dementartions, I'll be using my own bare Nginx server over 1Gb ethernet

If you have none of the above, please consider a different news source. Now, let's begin.

You know about user agents, right? Big bad advertisers want em for "sample sizing" to prop up their numbers. Webmasters want em to "enhance user experience," by selling your data to advertisers. The NSA/Webmasters/Advertisers want em to track you for all various reasons. I'm sure you know you can change these bad boys how ever you wish, right? Maybe you've even fiddled around with changing it to "GoogleBot" or something else completely retarded. Pretty lame, right?

Naw, my negroes, let me introduce you to some cooler shit you can do. Like telling the server monkey/ analytics scrapper to

wget -U "Go fuck yourself." $WEBSITE

Begets:

10.0.0.10 - - [16/Mar/2018:21:08:38 -0400] "GET / HTTP/1.1" 200 2682 "-" "Go fuck yourself."

Maybe you want something a bit more subtle?

wget -U "I know what you've done." $WEBSITE

Is:

10.0.0.10 - - [16/Mar/2018:21:09:42 -0400] "GET / HTTP/1.1" 200 2682 "-" "I know what you've done."

Still pretty lame. But did you know these can be arbitrarily long? Bet ya didn't you lil bugger. Let's trying someting a bit interesting, like sending love letters.

wget -U "Dear Underpaid Overweight Mediocre Server Monkey, you probably don't know who I am, but I know very well who you are. Don't be alarmed, I've been admiring you from afar for all too long now. Your stunning good looks: the acne that hasn't left you since childhood, makes me blush everytime I see those snow-capped volcanoes. And your greasy over-grown beard, I just can't help myself from thinking about how it'd feel scratching against my lady no-nos. Ohh..."'!~~~'" I just can't watch you anymore, I want you to know I exist. But, I don't know how, so I'm writing you here. Hopefully you'll notice me. Pleaes notice me, senpai"'!'"~ Your truly, Emelia." $WEBSITE

Really gets those penile juices flowing, right?:

10.0.0.10 - - [16/Mar/2018:21:18:27 -0400] "GET / HTTP/1.1" 200 2682 "-" "Dear Underpaid Overweight Mediocre Server Monkey, you probably don't know who I am, but I know very well who you are. Don't be alarmed, I've been admiring you from afar for all too long now. Your stunning good looks: the acne that hasn't left you since childhood, makes me blush everytime I see those snow-capped volcanoes. And your greasy over-grown beard, I just can't help myself from thinking about how it'd feel scratching against my lady no-nos. Ohh...!~~~ I just can't watch you anymore, I want you to know I exist. But, I don't know how, so I'm writing you here. Hopefully you'll notice me. Pleaes notice me, senpai!~ Your truly, Emelia."

Maybe you've also noticed that there's a big fat "GET / HTTP/1.1" sitting there, ripe for the raping. You'd be an astute little nip if you did. We can change that shit right around with:

wget -U "Go fuck yourself." --method="Go fuck yourself" $WEBSITE

Unforunatly, if the method's borked there won't be no UA:

10.0.0.10 - - [16/Mar/2018:21:22:25 -0400] "GO FUCK YOURSELF / HTTP/1.1" 400 173 "-" "-"

One thing I forgot to mention, these logs are formatted like:

$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"

By default. So that means we can spoof remote_user by doing:

curl mom@$WEBSITE --user-agent "Hi honey, just wanted to let you know my new boyfriend's coming over for dinner tonight. Please be nice to, Jayquan"'!'

To get:

10.0.0.10 - mom [16/Mar/2018:21:31:46 -0400] "GET / HTTP/1.1" 200 2682 "-" "Hi honey, just wanted to let you know my new boyfriend's coming over for dinner tonight. Please be nice to, Jayquan!"

Or our humble referrer, for those social engineering points:

curl paulgraham@$WEBSITE --user-agent "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; Windows 98)" -e "https://news.ycombinator.com/"

For:

10.0.0.10 - paulgraham [16/Mar/2018:21:35:25 -0400] "GET / HTTP/1.1" 200 2682 "https://news.ycombinator.com/" "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; Windows 98)"

"Buh wha bout muh bites?" you may quander. Well, we can do that too.

curl paulgraham@$WEBSITE --user-agent "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; Windows 98)" -e "https://news.ycombinator.com/" -H "Diaper-Status: SOILED"

Ah well shit, seems like we can't:

10.0.0.10 - paulgraham [16/Mar/2018:21:38:01 -0400] "GET / HTTP/1.1" 200 2682 "https://news.ycombinator.com/" "Mozilla/4.0 (compatible; MSIE 6.0; America Online Browser 1.1; Windows 98)"

Or can we?

curl paulgraham@$WEBSITE --user-agent "MY ADULT DIAPER NEEDS TO BE CHANGED URGENTLY. I REQUIRE A BOY OF 7 YEARS FROM COLUMBIA TO WIPE THE FECES FROM WITHIN MY ASS ROLLS TO WITHOUT INTO THE FRESH AIR. AGAIN, THIS REQUEST IS URGENT AND MUST BE ACCEPTED." -e "https://news.ycombinator.com/"

No we can't, because my dyslexia forgot the "body" in "body_bytes_sent." Well, anyway this is just child's shit, or should I say Graham's shit? There's no limit to any of the strings. So you can do something like:

wget -U "$(printf "%0.sA" {1..100})" $WEBSITE

To get:

10.0.0.10 - - [16/Mar/2018:22:05:59 -0400] "GET / HTTP/1.1" 200 2682 "-" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

Or:

solid_shit=$(printf "%0.sA" {1..10}); wget -U "$(printf "%0.sA" {1..1000})" $WEBSITE

For:

10.0.0.10 - - [16/Mar/2018:22:06:29 -0400] "GET / HTTP/1.1" 200 2682 "-" "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

How about:

curl --user-agent "$(printf "%0.sA" {1..10000})" $WEBSITE

Too bad, it returns a 400 too long error and the log doesn't show our UA. The larget I could get was 8178 As. Which, after a bit of trial and error, gets me a 1MB large nginx_access.log. We can get past that with:

for i in {1..12}; do curl --user-agent "$(printf "%0.sA" {1..8178})" $WEBSITE; done

Gives us 97KBs of As in the logfile. Changing that to 200 gives us 1.6MB. If we do 10,000 we get 79MBs. If we were to extrapolate these results, we'd need around 120 million requests to fill up an entire 1TB harddrive. If we wanted to avoid sounding the DDoS alarms, we could request only the 217 byte headers:

for i in {1..10000}; do curl -I --user-agent "$(printf "%0.sA" {1..8178})" $WEBSITE; done

That would still get the same result, but the load on the server would be much less noticeable. Props if you can find a small file to (preferabbly 1B) to download instead. Generally speaking, you could set up a small timer to curl on through the weekend and fill up some harddrives. Usually they're monitored by tools or automatically backed up, and that can cause some havoc on its own. But, the real meat is with the tools that referrence those logs, or referrence the headers in raw form. You can probably cause some buffer overflows in old C programs that are still running, or cause whatever tools are interfacing with the headers to snap like an over-extended spine during an OHP. Do with this info whatever you want, I'm only here to try out this journal system.

Hawking Meme 2far and Rihanna Blasts Snapchat's Stock

Posted by takyon on Friday March 16 2018, @08:56PM (#3079)
3 Comments

Some Random Stories

Posted by takyon on Wednesday March 14 2018, @03:31PM (#3073)
4 Comments

Fitbit Versa: You Are Now Fertile

Posted by takyon on Wednesday March 14 2018, @01:25AM (#3070)
1 Comment

A Panther Too Black for China (Or Not?)

Posted by takyon on Tuesday March 13 2018, @03:34AM (#3067)
9 Comments
/dev/random

Black Panther has a 6.8 on Douban, described as the Chinese IMDB, compared to 97% on RottenTomatoes and a 7.8 on IMDB.

“A torture for the eyes”: Chinese moviegoers think Black Panther is just too black

Some moviegoers disliked Black Panther because they felt Marvel was trying too hard to be politically correct (link in Chinese). While many reviewers on Douban stopped short of leaving overtly racist comments about the film, many discussed their discomfort of being surrounded by so much blackness.

“Maybe the Chinese are still not used to a film full of black people,” wrote one reviewer on Douban (link in Chinese). The commenter said he had to pinch himself more than 10 times to stay awake during the movie because “Black Panther is black, all the major characters are black, a lot of scenes are black, the car-chasing scene is black—the blackness has really made me drowsy.”

Another reviewer who came into the theater late made a similar observation: “When I entered the theater, a bunch of black people was fighting in the night… I’ve never been in a theater so dark that I couldn’t find my seat.”

Someone else said the experience was worse in 3D (link in Chinese): “The film is filled with black actors and actresses. Also, because the film’s colors are a bit dark, it’s nearly a torture for the eyes to watch the film’s 3D version in the theater.”

The movie made $63 million on its opening weekend in China, which should put it around #30, a couple spots behind Iron Man 3, which had awkward content shoehorned into its Chinese version.