Readit News logoReadit News
user2426679 commented on Video of Glitter Bomb for Package Thieves Exposed as Partial Fake   gizmodo.com/viral-video-o... · Posted by u/mbrubeck
stcredzero · 7 years ago
Yes I assumed some or all of it was fake, its really no big deal, who cares?

This is the level of cynicism our society has sunk to? I grew up in a time and place where everybody tried their hardest to tell the truth, always. Years later, I mentioned this idea to my girlfriend at the time's mom, and she laughed out loud. She grew up in a community where everyone lied all the time.

This is the difference between a society that works, and a society that's pathological.

I'm more shocked by such cynical reactions than by the circumstance reported.

user2426679 · 7 years ago
I like how your parent comment has positive karma for saying that "it's fake; who cares," but I'm downvoted into negative for saying "it's fake; I care" : https://news.ycombinator.com/item?id=18735972
user2426679 commented on U.S. oil production to be equal to Russia plus Saudi Arabia by 2025   reuters.com/article/us-us... · Posted by u/chb
mogadsheu · 7 years ago
>ISTANBUL (Reuters) - Total oil production in the United States will be nearly equal to that of Russia and Saudi Arabia combined by 2025, the head of the International Energy Agency (IEA) said on Friday.

Fatih Birol made the comment in an interview with Turkey’s state-owned Anadolu news agency.

Shortest article ever?

In all seriousness I don’t think this is the worst thing for any of the three countries. Most new US production is higher cost (fracking), so the drop in market share is at least met with a stronger price floor for all.

user2426679 · 7 years ago
> Most new US production is higher cost (fracking), so the drop in market share is at least met with a stronger price floor for all.

Not to be rude, but this is really off the mark. The only reason that we're not still in a cartel market regime of $100 barrels is fracking being invented/discovered and efficiently improved. It cut the price floor well in half.

Fracking is not the cheapest, but it's also not the most expensive (see Canada's oil sands). When you compare fracked WTI (basically the USA-sourced index) to offshore Brent (North Sea, off the coast of UK), the costs are apples to oranges because fracking can be readily tapped at a relative drop of the hat (if prices spike in a short term period), but offshore is a huge multi-million/billion endeavor where you have to depreciate costs over a really long time horizon (same with oil sands, but different tech).

user2426679 commented on Video of Glitter Bomb for Package Thieves Exposed as Partial Fake   gizmodo.com/viral-video-o... · Posted by u/mbrubeck
user2426679 · 7 years ago
This was pretty obvious imo, based on a cursory viewing of the original video when it came out. I immediately blocked the dude's Twitter account as I only use it for following fintwits. People wanted to believe it was true for whatever reason; just take a step back, and you'll see how obviously staged the whole thing was. Don't feed the troll.
user2426679 commented on What We Learned About the Hemisphere Program After Suing the DEA   eff.org/deeplinks/2018/12... · Posted by u/DiabloD3
user2426679 · 7 years ago
This is completely off subject, but as a personal rule of thumb, 99% of articles that include the first person, such as "Why I [did xyz]..." or "How we can...", are clickbait.

Ime, the best case scenario is Acme Tech Co. "blogging" about "why we used abc codebase," but the reality is that it's simply rehashing well known information in narrative form for the purposes of PR, and worst case scenario is that it's just unoriginal op-ed garbage.

See: "We should replace Facebook with personal websites," which is currently trending at #10 for HN, above this OP at #16.

EFF is a great organization and can't say that it's surprising to see that this is the first time in a long time to come across an exception to the rule.

user2426679 commented on Progress Bars in Python   samwilkinson.io/article/2... · Posted by u/sammycdubs
cat199 · 7 years ago
it shows a progress indicator, which is functionally the same from a user perspective.

the visual display of this progress indicator is different yes -

This method doesn't need any notion of terminal width because it just prints 'N / N' at the beginning of the current line where the cursor is when called.

user2426679 · 7 years ago
I tend to side with your opinion (obviously, based on the above code), but detaro does have a point, which is that the progress message will "overflow" onto a new/next line in the console if the message has more characters than will fit on a single of the terminal.

fwiw, line_len=79 is the default on both windows and linux ime. You would only encounter overflow if you (1) shrunk the terminal from its default width and (2) printed a message that was longer than that shrunken width.

If you really needed to have a progress bar that accounted for a shrunken display, it could be accomplished trivially with Python 3.? and less-trivially with Py2.

I could see depending on this library if the application was client facing and needed to be automagically pretty.

Also, one thing to note is that tqdm only fetches the console width when init'ing a progress bar... if you shrink the terminal while a progress bar is still "in progress," you will encounter the same overflow issue.

user2426679 commented on Google’s Secret China Project “Effectively Ended” After Internal Confrontation   theintercept.com/2018/12/... · Posted by u/uptown
fipple · 7 years ago
It would completely set up my family and children for life. I’d get to quit my job and spend all day with my kids. If some people I don’t know get fucked over for that, whatever. And that kind of thinking is why the world is such a wretched place. But I can’t say I wouldn’t jump at the opportunity.
user2426679 · 7 years ago
Please be honest and admit that this is solely about yourself; your kids having nothing to do with this except with respect to your own benefit. Even Walter White "did everything for his family."
user2426679 commented on Progress Bars in Python   samwilkinson.io/article/2... · Posted by u/sammycdubs
cirgue · 7 years ago
Can you provide an example snippet?
user2426679 · 7 years ago
edit: how the hell does markdown/code-snippet work on hackernews?! Nicely formatted pic of the below text soup:

https://i.imgur.com/fvEeaJA.png

My library function is:

import sys def writeToTerminal(txt, line_len=79): # line_len is the max num of characters that can fit onto a terminal line without overflowing to a newline

		# overwrite the line with blank spaces
		# this takes care of the case where len(txt) is fewer than the [ len(txt) when this function was last called ]
		sys.stdout.write( "\r" + " "*line_len )
		sys.stdout.flush()
        
		# write the txt, trimming to line_len
		sys.stdout.write( "\r" + txt.replace("\t", "    ")[:line_len] )
		sys.stdout.flush()
Example usage:

from time import sleep L = list(range(10)) for c, i in enumerate(L, start=1): writeToTerminal("%i / %i" %(c, len(L))) sleep(1)

user2426679 commented on Progress Bars in Python   samwilkinson.io/article/2... · Posted by u/sammycdubs
user2426679 · 7 years ago
I've always just used `sys.stdout.write("\r%i/%i" %(c, n)); sys.stdout.flush()`

That is exactly what this library does: "tqdm does not require any dependencies (not even curses!), just Python and an environment supporting carriage return \r and line feed \n control characters." -- https://github.com/tqdm/tqdm

Seems unnecessary imo to depend on an external library just to wrap and auto-prettify those 2 stdout commands.

user2426679 commented on Google’s Secret China Project “Effectively Ended” After Internal Confrontation   theintercept.com/2018/12/... · Posted by u/uptown
Despegar · 7 years ago
Great reporting by Gallagher. He should win a Pulitzer for his reporting on Dragonfly.

The fact that Pichai refused to say they wouldn't re-enter China shows this is probably just a pause until things die down.

user2426679 · 7 years ago
Agreed that this is a great example by Gallagher of all-too-rare "real" journalism.

The unfortunate thing is that the headline of this article should probably be "Google's Secret China Project Now Even More Secret."

u/user2426679

KarmaCake day44December 7, 2018View Original