Stories
Slash Boxes
Comments

SoylentNews is people

Log In

Log In

Create Account  |  Retrieve Password


script to stop windows ten updates

Posted by Runaway1956 on Friday October 28 2016, @02:41PM (#2120)
2 Comments
Code

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

/*
https://technet.microsoft.com/en-us/windows/release-info
This site contains latest version info etc.,
To be compared to CurrentBuild and UBR registry entries contained in:
        HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion
LastAutoAppUpdateSearchSuccessTime in:
        HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate
LastScheduledRetryTime in above.
*/

;Parameters
;MS Win10 release info page https://technet.microsoft.com/en-us/windows/release-info
LatestUpdateURL := "https://winrelinfo.blob.core.windows.net/winrelinfo/en-US.html"

whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", LatestUpdateURL, true)
whr.Send()
whr.WaitForResponse()
releaseinfo := whr.ResponseText

RegRead, ReleaseId, HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion, ReleaseId
RegRead, CurrentBuild, HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion, CurrentBuild
RegRead, UBR, HKLM, SOFTWARE\Microsoft\Windows NT\CurrentVersion, UBR

needle := "\s*" . ReleaseId . "\s*\s*\s*(" . CurrentBuild . "\." . UBR . ")\s*"

found := RegExMatch(releaseinfo, needle)
if (found) {
        MsgBox % "Your version of Windows 10: " . ReleaseId . "`nOS Build: " . CurrentBuild . "." . UBR . "`nThis is the latest version."
}
Else {
        MsgBox % "There may be updates available! Please turn on Windows Update Service!"
}

;UrlDownloadToFile, %LatestUpdateURL%, %A_ScriptDir%\release-info.html
;FileDelete, %A_ScriptDir%\release-info.html

;First, find CurrentBuild.UBR preceded by ReleaseId, if can't be found alert user!
;Second, check that UBR and CurrentBuild.xxx are the same!
; If same, alert user that they are up to date.
; If different, get KB# (or numbers, this could read the entried until it finds the UBR number) and give user a link so that they may read about the future update. Ask if user would like to update now, remind me later, or not right now
; If user decides to update, turn on windows update service.
; How do we know when to disable that pesky service? After the reboot? Perhaps add a script to the startup folder / registry that will disable windows update on the reboot.

===========================

No, I'm not the script writer. The guy who wrote it gave it to me. Here it is. And, I don't have a Win10 machine to test it on. No attribution - I guess he's AC.

Sasha Disses Barack on Snapchat

Posted by takyon on Thursday October 27 2016, @05:02PM (#2119)
4 Comments
/dev/random

I'm taking away your Air Force One privileges.

President Obama ridiculed on Snapchat by daughter Sasha

The president also mentioned that his own iPhone was limited to receiving emails and browsing the internet, and would not take photos, play music or make calls. "My rule has been throughout my presidency, that I assume that someday, some time, somebody will read this email," he said. "So, I don't send any email that at some point won't be on the front page of the newspapers."

US election 2016: Indians' verdict on Donald Trump's Hindi

An uncanny mixture: God, alcohol and even cannabis

A Stray: Finding and filming the real Somali immigrant experience

The Skype sex scam - a fortune built on shame

In pictures: Living off-grid

Posted by takyon on Tuesday October 25 2016, @11:27PM (#2117)
11 Comments

Depressive Hypersomnia

Posted by MichaelDavidCrawford on Tuesday October 25 2016, @10:42AM (#2116)
11 Comments
Career & Education

I've been taking imipramine - an antidepressant - since December. I don't feel depressed anymore, but I sleep excessively. I had some plans for yesterday but instead I slept all day then late into the night.

The only way for me to be up in the morning is to stay up all night.

Once I've been up for a while I don't feel sleepy, I feel just fine. But when I do sleep it's often for twenty hours or more.

My witch doctor prescribed Welbutrin with the aim that it would make me sleep less. It has had a very modest effect, but not enough. He seemed surprised at this, and clearly didn't know what to do about it.

I do know that this won't last. I don't know how long I'll be sleeping like this, but eventually the other phase of my manic-depressive cycle will kick in, and you'll have to peel me off the ceiling with a spatula.

John Oliver Pinpoints Fake Opioid Crisis Statistic

Posted by takyon on Tuesday October 25 2016, @07:52AM (#2115)
0 Comments
News

John Oliver Pinpoints A Fake Statistic That Fueled The Opioid Crisis

In John Oliver’s latest segment on opioids during Last Week Tonight, he pulled up one of the key statistics pharmaceutical salespeople used to market prescription opioids to doctors in the 1990s: Less than 1 percent of patients taking opioids become addicted to painkillers. That figure is completely inaccurate, of course, and as Oliver points out, it has a disturbing origin story.

386BSD 2.0 Sources Uploaded

Posted by butthurt on Monday October 24 2016, @12:11PM (#2114)
1 Comment
Code

A poster on lobste.rs notes that source code comprising 386BSD version 2.0 was uploaded to Github in August by someone using the name Ben Jolitz.

The operating system, based on the University of California's reimplementation of AT&T UNIX, was created by Lynne and William Jolitz. Previously, version 2.0 had not been released; 386BSD 1.0 was released in 1994. Tags indicate that the 2.0 sources had been checked into a revision control system in January 1995.

NetBSD and FreeBSD
were based upon 386BSD (ASCII version).

Facebook Employees Argued for Censorship of Mr. Trump

Posted by takyon on Saturday October 22 2016, @09:58PM (#2112)
6 Comments
Digital Liberty

Somebody got triggered.

Facebook Employees Pushed to Remove Trump’s Posts as Hate Speech

Some of Republican presidential candidate Donald Trump’s posts on Facebook have set off an intense debate inside the social media company over the past year, with some employees arguing certain posts about banning Muslims from entering the U.S. should be removed for violating the site’s rules on hate speech, according to people familiar with the matter.

The decision to allow Mr. Trump’s posts went all the way to Facebook Inc. Chief Executive Mark Zuckerberg, who ruled in December that it would be inappropriate to censor the candidate, according to the people familiar with the matter. That decision has prompted employees across the company to complain on Facebook’s internal messaging service and in person to Mr. Zuckerberg and other managers that it was bending the site’s rules for Mr. Trump, and some employees who work in a group charged with reviewing content on Facebook threatened to quit, the people said.

Facebook employees argued Trump's posts should be banned as hate speech

Soylent's Fiction: Agoraphobia

Posted by mcgrew on Wednesday October 19 2016, @03:09PM (#2111)
2 Comments
Science

“Say, Ed! How was your trip? Lager?”

        “Hi, John. Yeah, I’ll have a lager. The whole trip was lousy, a journey through hell all the way.”

        “Didn't you fly Green-Osbourne?”

        “Well, yeah.”

        The bartender swore; he was a wealthy man who owned the bar he was tending and quite a bit of Green-Osbourne Transportation Company stock as well. “What went wrong on the trip?”

        “Those stupid talking robots. God but I hate those things.”

        The bartender laughed. “Everybody does.”

        “Why do you have them talking, then?”

        “Advertising and engineering want to point out our superior technology, including AI.”

        “Well, it's too much A and not much I at all. Those things are really stupid.”

        John snickered. He hated talking robots, too, but had been voted down at board meetings. The tendbot he used when it got too busy for a single bartender to easily handle he’d special ordered, with no voice, only screen printouts and beeps. Most people thought talking robots were creepy.

        “Well, look, Ed, they can’t really think. Programmers just use humans’ built-in anthropomorphism and animism. It's a parlor trick, one of our engineers explained it to me once. So what did the stupid thing do?”

        “It was dinner time, the first night of the trip. I'd bought a business class ticket and somehow wound up on a first class flight... Say, did you have something to do with that?”

        John just smiled. “Go on, Ed, what did the stupid robot do?”

        Ed gave John a funny look and continued. “Well, I'd never had pork before. I thought it must be extra tasty, considering how ridiculously expensive it is.”

        “Well, it's environmental regulations.”

        “Huh?”

        “Sure, it's why Earth buys all its ores from space miners. Mining is pretty much illegal on Earth, because poisonous pollution from mining, farming, industry, and transportation nearly ruined the Earth's ability to sustain life a couple of centuries ago. It... Oh wow. Want to get rich, Ed?”

        “Not particularly, why?”

        “Someone will. We should build hog domes and farm pigs in them, and sell the pork to Earthians. I’d do it but I’m way too busy, what with Green-Osbourne, the bar, the brewery, and the farm I grow beer ingredients in.”

        “Well, I'll talk to a few folks. It would help Mars’ economy. Fill me up, John,” he said, sliding his glass across the bar. “Uh, what were we talking about?”

        “Pork and robots.”

        “Huh?”

        “Your trip.”

        “Oh, yeah, pork. Why is it so expensive?”

        “Like I said, environmental regulations. They almost made Earth unlivable a couple hundred years ago. Pigs are just too nasty to ranch more than a dozen or so in any one place there.”

        “Well, Earth was damned filthy, that’s for sure. Almost as dirty as it was heavy. Anyway, pork’s way too expensive for me. I wouldn’t even be able to afford pork on Earth, let alone on Mars, so since I had a first class ticket and meals were covered, I wanted to try pork. So I told the servebot I wanted ham and beans.

        “The stupid thing said there was no ‘Hammond bean’ listed in its database. So I said ‘No, you stupid junk pile, ham, and, beans.’ It said ‘The word hamand is not in my database.’ stupid thing.”

        John grinned. “So what did you do?”

        “What could I do? I ordered a barbecued pork steak. It was really good! But the damned robots annoyed me like that the whole trip. The very next morning I felt like a turkey cheese omelette so I ordered one. The stupid robot said ‘There are no Turkish cheeses listed in the database.’ So I said ‘A turkey omelette with cheese.’ So it says ‘there are no Turkish omelette dishes listed in the database.’ Stupid computer.

        “So I said ‘I want a cheese omelette with turkey meat. A turkey omelette has nothing to do with the country called Turkey...’ What’s so damned funny, John?”

        John was laughing uproariously. “Exactly the same thing happened to Destiny when we first came here, only the computer was printing it out instead of talking. Let me guess, it said ‘Parse error, please rephrase’.”

        “Yep, exactly. So I said I wanted an omelette with turkey meat, and it goes ‘There is no meat that has come from that country listed in the database.’ dumb machine! So I says ‘Turkey the bird, damn it!’ it said...”

        “It said ‘Parse error, please rephrase,’ didn’t it?” John interrupted.
        “Sure did. So I asked what meats were available for omelettes. It said pork, chicken, duck, turkey, and beef. So I said ‘A cheese omelette with turkey meat.’ the idiotic thing repeated ‘There is no meat from that country.’ I’ll tell you, John, that damned thing was really making me mad by then. I finally said ‘Damn it, computer, I want a cheese omelette with bird meat.’ it said ‘Please name the bird.’ I told it turkey and finally got my breakfast.”

        “There’s a trick to it,” John said. “Tell it you want a cheese and turkey omelette and it won’t give you any trouble. If you would have asked for navy beans and ham you would have gotten your ham and beans. Like I said, they don’t really think.”

        “No kidding. That must the dumbest computer I ever saw. Well, the tendbot in the commons may have been even more stupid. It didn’t know what a Cardinal was.”

        John groaned. “Ed, that’s strictly the Martian name for that drink. Everybody else calls them Bloody Marys.”

        “Oh. Why do they call them that?”

        “Because that’s what they were called for hundreds of years before anybody ever came here, before they had space travel, even. Before your ancestors ever left earth.”

        “So why do we call then Cardinals then?”

        “Frank Harris was responsible for the name. He was a farmer who came here from Earth and started growing tomatoes, under the ‘Cardinal’ brand.”

        “But why cardinal?”

        “There’s a bright red Earthian bird called a cardinal, so he named the bright red tomatoes after the bird. Bartenders here had never had a Bloody Mary before, because nobody here had tomatoes before Hardy brought them. So when they thought they had invented a tomato drink, they named it after the brand of tomatoes.”

        “How do you know all this stuff?”

        “My wife’s a history buff. She’s been getting me interested in it, too. So what happened after you got to Earth?”

        “Oh, man, it was pure hell, painful torture and terror. You know I've only been off Mars a few times in my life, mostly to Ceres or an asteroid dome out in the belt. But Earth... oh man. It was nothing like I'd ever experienced before. Or even imagined, it was horrible!”

        “First was the weight! That was part of what was wrong with the trip, when the robot was arguing about the turkey cheese omelette it was already getting really heavy. By the time we reached Earth I couldn’t walk at all and had to use an electric chair to get around. How do those people live like that?”

        “Ed, you should have been working out for months before going to Earth, especially since you’ve never had more than Mars gravity.”

        “Well, I did walk.”

        “Walking’s not nearly enough.”

        “No kidding, I couldn’t even stand up there. Had to have a robot help me in and out of bed. It was torture!

        “Why didn't you use a walker?”

        “You have to have gravity close to Earth's to learn how to use one.”

        “Bill Holiday uses one, and he's from Ceres. All the asterites grew up in less gravity than you did and he goes to Earth all the time, it's part of his job.”

        “He would have had to train to use it, those things weigh over a hundred kilos counting the power, and training takes longer than I was going to be on Earth.

        “The horrible weight was bad enough, but it was horribly scary there as well.”

        John grinned. He was an immigrant, who was born in St. Louis and had settled on Mars in late middle age. He hadn't thought of how it must be for a native-born Martian or Asterite on Earth. “Pretty scary, huh? I mean, not having a protective dome.”

        “Well, I've been outside the dome plenty of times, but being outside without an environment suit...” He shivered visibly. “Give me a shot of Scotch.

        “It was night when we got there, and they used what seemed like they use here on Mars to connect the ship to the terminal. On Mars it's so passengers don't have to wear environment suits, but I don't know why they do it on Earth. Probably so us spacers would feel at home.”

        “Well, not really,” John said. “It gets hot and cold there, and it rains. It's so passengers don't have to have coats and umbrellas. They were doing it like that before the first spacer dome was built.”

        “Yeah, I found out about rain and cold the night I got there, and heat the next day. In the entrance way to the terminal there was a flash in a window and a loud boom a second or two later. I thought there had been an explosion.”

        “Thunder.”

        “Yeah, and it was really loud! I almost jumped out of my skin. Anyway, we rented a car and I told it to take us to our hotel for check-in, and the first lightning flash scared the hell out of me. It looked like a crack in the sky and made me feel like all the air would escape, and then the thunder. I've never heard anything so loud!”

        “You should hear a chemical rocket with a heavy load taking off!”

        “I have, down here on Mars, and it's nowhere near as loud as thunder.”

        John laughed. “Ed, there's hardly any air outside the dome. Haven't you noticed how much quieter it is outside the dome?”

        “There's nothing out there to make noise.”

        “Well, if there was it wouldn't be loud.”

        “I guess. Anyway, parking at the hotel was outside, but the car dropped us off under an awning before it parked itself. Lightning flashed again, and it really gave me the willies. Then it thundered, even louder than it had before. It was so loud you could feel the sound. It was really scary!” He finished his beer and slid his glass to the other side of the bar. “Fill 'er up, John!”

        John poured another beer for Ed as Ed continued his traveling horror story. “Man, all that water pouring out of the sky. It was really strange, and even the water was scary and I don’t know why. And it was cold. Must have been under twenty.”

        “It gets well below zero some places.”

        “How do they live like that?” he repeated. “I was all right as long as I was inside, except that first night when it stormed. I hated that storm! I sure am glad we don’t have anything like that on Mars!

        “There was a bar in the hotel, thankfully, so I didn’t have to go out until the next morning. But the storm scared the hell out of me.”

        “So how did your meeting go?”

        “Well, I had to take the car there, meaning I had to be outside. It was fine in the dark, like a room with no lights turned on, but walking outside without an environment suit when you could see the sky really freaked me out. I finally told myself it was just a big blue dome.”

        “Did it work?”

        “Not really. It was really hard rolling around out there in my electric chair, and it was really hot outside! I never sweated before, and I hate it.

        “But worse than that was bugs. Some of them bite. Some of the bugs they called ‘butterflies’ the Earthians thought were pretty. I thought they were creepy and scary.

        “And barking dogs. I never saw a dog before, and John, those things are scary as hell, just downright terrifying. And there are a whole lot of them there.”

        “Okay, how did the meeting go?”

        “Lousy. Between the weight and the storm I didn’t sleep well. And the weight, the bugs, the dogs, the outside, the heat, the storm, all of it had me so rattled I couldn’t think straight, and we didn’t get the contract, DA2 did. At least it was a friend’s dome.

        “Give me another shot, John. Man, but I’m glad to be back home here on Mars. Earth sucks. Now I know what people mean by ‘hell on Earth’. Earth is hell!”

        John grinned again. “So... I take it you’re not going back?”

Unhelpful experts

Posted by jdavidb on Wednesday October 19 2016, @02:28PM (#2110)
12 Comments
Code
Twice in as many days I've asked programming-related questions online about automating processes from the command-line and the answers I get point me to GUI tools and which buttons to click. I wish I could nicely tell people that when I ask about automating something or mention the command-line, if the answer doesn't involve the command-line, then the answerer isn't qualified to answer my question. I realize that programmers very frequently ask questions of the "how do I use X to do Y?" variety where the real answer is "you want to do Z," but my X in this case is pretty inflexible: I need to create command-lines that will be executed as part of an automation process.

It's Not Russia This Time. Blame Canada!

Posted by NotSanguine on Wednesday October 19 2016, @01:09PM (#2109)
3 Comments
News

It's not Russia that's trying to impact our elections, it's our evil neighbor to the north!

Those hosers have launched a propaganda campaign designed to confuse and demoralize Americans in advance of the election.

Couched in condescending terms as a "love note" to Americans, Canadians tell lies, make unsubstantiated claims and generally try to blow smoke up our asses.

But we know the truth.

We suck donkey balls and anyone who says differently is either a Clinton shill or one of her many secret hit squads have abducted family members and threatened them if they don't toe the line.

Okay, maybe that's just a *little* hyperbolic. Actually, I think the ad campaign is kind of sweet.