« first day (3103 days earlier)      last day (1835 days later) » 

1:18 AM
@Puppy from the wiki, and other sources it seems like crafts can be built to withstand the g forces. Actually seems like a compelling idea, that would also be a cheap way to launch satellites.
 
We need a QSingleSpinBox
fuck, I need to convert everything to doubles so that my set_setting(setting){widget_value()==setting} test passes
 
 
1 hour later…
2:37 AM
So, Qt rounds the numbers in their spinbox, but still fucking insists on using double precision. So, setValue(X), getValue(X) will return a different number. At present there is no easy way to store all the decimal places, meaning they never achieve double precision.
 
 
3 hours later…
5:30 AM
@Rick Looks like a rocket launcher for a real rocket ...
A rocket launcher is a device that launches an unguided, rocket-propelled projectile, although the term is often used in reference to mechanisms that are portable and capable of being operated by an individual. == History == The earliest rocket launchers documented in imperial China consisted of arrows modified by the attachment of a rocket motor to the shaft a few inches behind the arrowhead. The rocket is propelled by the burning of the black powder in the motor. (These rockets should not be confused with "rocket arrows" which are conventional arrows carrying small tubes of black powder as an...
I was thinking more like a catapult.
Similar principles, really.
@Puppy A rocket would face the same problem. Surely there is a way to get around it.
 
5:46 AM
Jan 22 '17 at 1:11, by Telkitty
@Mikhail don't get emu, get cassowary
I always give such good advices.
 
6:43 AM
Going to lurk on a Tuesday around midnight, looking for opportunities. This might sound a little unlawful like, but according to the internet, that's the best time to book flights ...
I saw some decent deals but did not book, then on the weekend, poof, total fare (multi-tix x multi-legs) went up by $1500 in total.
 
7:40 AM
@TelKitty Rockets don't face the same problem because they accelerate at a lower rate for a long period, whereas space guns accelerate very heavily for short periods, so during those short periods they experience massive forces.
 
If you need to seed a random number generator (for non-security related purposes) should it be done using the ctime, time.h or chrono library? It is unlikely any method from any of the libraries will be used elsewhere in the file.
 
I use chrono because it looks like C++, and I don't want to directly pull in any C-style libraries.
 
nwp
@northerner Consider using another library.
 
8:00 AM
@Mikhail is it really worth it to replace time(NULL) with see chrono::high_resolution_clock::now().time_since_epoch().count() ? It just looks so much more complicated.
 
nwp
auto get_counts() { return chrono::high_resolution_clock::now().time_since_epoch().count(); }
 
std::chrono::system_clock::now().time_since_epoch();
SYSTEM CLOCK NOW!!!!! :-P
 
8:15 AM
@TelKitty also a VPN can help get lower prices if you book them as if you are near the destination instead of the departure.
 
is a list considered partially sorted if one half is sorted and the other is not?
 
sure
 
would it make a good benchmark test?
 
I don't see what that benchmark would answer
 
it's a possible scenario when doing bulk add to a sorted list
 
nwp
8:54 AM
I wonder if adblockers should be seen as a customization point for websites.
Don't like the hot network questions? Block it.
Currently that is not intended. Maybe it should be.
 
In a funnier world, you have a choice between seeing advertisements and reading "sponsored content"
 
aren't there userscripts that can do the same (though a lot less userfriendly)
 
nwp
And maybe websites should annotate groups of elements to make for easier blocking. Like instead of ignoring a user you block elements with that user's ID.
@ratchetfreak User scripts can do more, like adding and changing. Probably worth it, but removing is already pretty nice.
 
We need a reverse adblock, where we block users who don't result in revenue
 
nwp
We have that. It's those "To view this site disable adblock" popups. Poorly implemented because you can adblock those, but I've seen sites that refuse to deliver content until ads were loaded.
 
9:01 AM
and the GDPR "we need to track you to show you our content" popups
 
nwp
In a better world there would also be the option to just pay whatever advertisers would have paid and then not see the ad. Twitch.tv does that, kinda sorta.
 
@nwp except that payment can then be used to track you
 
nwp
Well, the website already knows who I am and doesn't have to give that information to advertisers.
Arguably people not looking and clicking on ads are just a waste of bandwidth.
 
Ya'll need to think bigger, crazier. In a better world we'd use taxes to pay content producers, and have no ads.
 
nwp
It's probably difficult to find a fair payment model. Also you take away the option to put a price tag on content.
 
9:15 AM
Look at the positive. Adware has become obsolete with the natural integration of ads into virtually all websites :)
Spyware too since people willing handover their information to social media sites or allow apps to track their activities on their phone
 
nwp
I wonder if people with adblockers are more or less interesting for data collectors than people without.
 
Perhaps they are too savvy to be manipulated by advertisers, and therefore worth less?
 
nwp
I'm pretty sure there is no such thing as too savvy to be manipulated by advertisers.
If you see ads the product seems more familiar and you are more likely to buy it. Can't escape that mechanic, unless you block the ads.
There may be some products where you can tell a difference in quality, but for most products you can't or just don't care.
 
Yeah, but some people are more sensitive than others.
 
10:10 AM
I'm slowly solving my CMake/Conan issues /o/
Maybe I'll finally manage to get something to build with Conan in a professional seeting
 
 
1 hour later…
11:33 AM
there any way I could force the program to use only one core?
 
nwp
Process Explorer -> Rightclick on process -> Set Affinity ... -> select cores.
 
I'm talking about the code I've written. I don't want it to share the tasks with the other cores
 
nwp
Why not? Usually OS schedulers are pretty decent.
But the answer is the same. Use OS functions to set affinity for the threads.
 
as long as you're running on an operating system, there is no way
 
@ScarletAmaranth unless that OS lets you do that, which many will
 
11:43 AM
Apparently you can do it with sched_setaffinity on linux
 
nwp
And there is SetThreadAffinityMask for Windows.
 
nope, still up to linux to assign which core / lthread runs the program
 
I guess It's impossible to turn off branch prediction on cpu, right?
 
nwp
But still, even attempting this means you have a design bug. It's impossible to make good affinity decisions because you only see your process, not all the other processes that are running. The operating system does not have that limitation.
This sounds like an xy problem. What do you actually want to achieve?
 
I'm just trying to benchmark some functions
 
nwp
11:47 AM
Then disabling branch prediction would make the benchmark meaningless.
 
why is that? wouldn't you get a more accurate result
 
nwp
You might get an accurate result for a hardware that nobody will run the code on.
May as well flip a coin.
 
@VioAriton both linux and windows have set affinity functions
that way your threads will start developing feelings for a core
 
12:02 PM
You know that accurate/precise diagram? You'd probably get more precise measurements but also very likely less accurate ones if actual performance on real hardawre is a concern
 
 
4 hours later…
3:52 PM
 
nwp
Why does that chair have bunny ears?
 
4:30 PM
Good question. I thought it was a pony tail with a pony tail.
 
@StackedCrooked its a person with a pony tail sitting on the other side of the person with the remote
hence the 4 legs
:P
 
I see.
Still kinda hard to parse the image though.
 
likely because the chin of ponytail isn't drawn
 
Maybe it's a chair that also acts as a golf club container.
 
 
1 hour later…
That keyboard thing is the reason why I use voice input.
 
6:10 PM
@Borgleader The building will be restored. Let's just hope nobody died in the fire.
 
Can it actually be restaured? Apparently the spire just collapsed
 
I think so.
But maybe not.
Depends on whether a people will accept a restored version.
They probably will, since it's such a big symbol of their town.
Yeah, Paris is a town according to American standards :D
 
@Borgleader My concern is the priceless artifacts that will be lost, there is a LOT of history that is going up in smoke right now
that can't be restored, the tombs and other stones may be damaged by the heat too
 
How is 2 million citizens a town
 
The good news is the roof was open so that should potentially reduce some damage
 
6:21 PM
Spire is falling apart
 
@Shumatsu Denver Metro area is 2.8 million
 
@StackedCrooked I think most here would consider it a city. If it were in the US, it would be the fifth largest city by population.
@Mgetz Population of the Paris metro area is around 12.5 million.
 
@JerryCoffin that's a proper city
 
You're counting metro area vs actual city's population?
Odds are kinda skewed in that case man
 
@Shumatsu You're clearly a few posts behind...
 
6:25 PM
@Shumatsu well if I didn't then London would be a village because the square mile is tiny and has almost no actual residents
 
@Mgetz Well, sort of. Yes, there's "The City of London", which is small and has few residents. But there's also just "London", comprising The City of London, and 32 boroughs, with a population a little over 8 million. Although The City of London is sort of separate from the rest, for most purposes that's all a single city. Then there's the London metropolitan area, which is larger still, and has a population over 14 million.
 
@JerryCoffin I tend to think of london as the area patrolled by the Metropolitan police AKA Scotland Yard
 
7:03 PM
So horrible to watch the massive fire at Notre Dame Cathedral in Paris. Perhaps flying water tankers could be used to put it out. Must act quickly!
wouldnt that collapse (part of) the structure?
 
@Borgleader The spire already collapsed
 
@Borgleader a little late for that, also it probably wouldn't work
 
A) I dont think it had when that was written
B) There more to the structure than the spire
 
fire triangle, buildings like that are pretty much built to burn
it's why sprinklers are so important
 
seriously though, a piece of history has been lost. Now I and countless others will never see it :<
I don't think the president really thought it through before tweeting
 
nwp
7:06 PM
Does he ever?
 
Unless there are like VTOL fire fighting aircraft that are basically a flying fire truck
 
@A.H. Helicopter with a bucket basically, used for forest fires
 
yeah but how much water can a helicopter carry
or maybe it could carry some of that foam like fire extinguishers
 
A helicopter bucket is a specialised bucket suspended on a cable carried by a helicopter to deliver water for aerial firefighting. Each bucket has a release valve on the bottom which is controlled by the helicopter crew. When the helicopter is in position, the crew releases the water to extinguish or suppress the fire below. Each release of the water is referred to as a drop. The design of the buckets allows the helicopter to hover over a water source – such as a lake, river, pond, or tank – and lower the bucket into the water to refill it. This allows the helicopter crew to operate the bucket...
 
@Mgetz looks like KISS really works
 
7:11 PM
@A.H. pretty much they are used in support of fire crews to damp down hot spots or create temporary reprieves. They won't put it out but they can slow the burn
 
Do they use anything other than water in aerial firefighting ?
 
Retardant foam usually, but it's up for debate due to chemical content
most firefighting is on the ground with hand tools
 
@A.H. They definitely do in forest fires, but may need to be extra-careful about chemicals in this case.
 
I thought fire retardant foam was like safe and stuff
 
@A.H. linked to cancer
there is no such thing as 'safe'
 
7:19 PM
@A.H. It may be, but in this case we're dealing with lord only knows what sort of stuff in the church. Truthfully, probably nobody really knows what some of it was made from.
@A.H. A quick look indicates that some are actually quite toxic.
Some crazy people, however, seem to think the possibility of long-term toxicity is justified by the immediate likelihood of being burned alive.
 
@JerryCoffin speaking of what's in the church, doesn't notre dame contain some historical artifacts?
Well then call me crazy ,Jerry.
 
@A.H. Yes. Among other things, it has (or at least had) what many believed to be the crown of thorns used to torture Jesus before crucifying him.
 
@JerryCoffin that sounds both extremely important and flammable
 
7:36 PM
@A.H. Undoubtedly highly flammable. Views of its importance undoubtedly vary. To some it's incredibly important and valuable; to others, it's just a bunch of old branches.
 
remember when talking about firefighting you need to recall the fire triangle: Air, heat, fuel. You have to attack two of three to put it out, 1 of three to control
 
@Mgetz Well, it's certainly a lot easier to put it out if you control two out of three. But if (for example) you have only heat and oxygen, but no fuel at all, you're not going to have a fire. But, partial control of two is often easier to establish than absolute control of any one.
 
This is a golden opportunity to spread fake news
 
@JerryCoffin if you have no fuel you have no fire, usually with the triangle you assume one is uncontrolled
 
7:52 PM
@Mgetz Sure. But in some cases (e.g., oil well fires) two are pretty much uncontrolled, and they successfully put out fires by attacking only one leg. In that specific case they typically deprive the fire of oxygen, putting out the fire even though fuel and heat remain.
 
@JerryCoffin technically the explosive method removes all three... very very temporarily
 
@Mgetz An explosion reduces/removes heat? Really?
 
@JerryCoffin it creates a gap between the fuel, the air, and the heat yes
they use high velocity explosives
which actually don't create a ton of heat
 
@Mgetz They may not create heat, but I doubt they reduce/remove it to any significant degree. Yes, they create a gap, but almost exclusively by removing the oxygen (for, yes, a very short period of time).
 
@JerryCoffin basically it causes the combustion to move away from the fuel for long enough (via the pressure wave) to remove the heat
 
8:01 PM
@Mgetz So what, exactly, has become less hot immediately following the explosion?
 
@JerryCoffin The primary combustion zone which is usually right above the well, not saying it's not still hot AF it's just not onfire
 
@Mgetz I think immediately following the explosion it's just as hot as it was before (and even if high velocity explosives shed only small amounts of heat, probably at least a little hotter). The only heat removal I see is the area cooling down after the first is out.
 
@JerryCoffin so the way the documentary explained it: the actual well head itself is not on fire, the fire generally is several feet above due to velocity of the fuel and mixing
 
@Mgetz Yeah, I can believe that. Not sure how that's relevant though.
 
8:32 PM
@JerryCoffin A) it means there is generally a gap you can disrupt B) it means the fire won't immediately reignite after snuffing
 
9:26 PM
@Mgetz Okay, but still seems unrelated to heat removal. It's mostly just saying heat removal isn't actually necessary.
 
@Mikhail if you spread fake news you will perpetuate a stereotype. Don't doooo it!
do miracle trees reduce the search space of a binary tree when verifying data
my understanding is that it compresses the hash.
 
@Rick What's a "miracle tree"? Do you mean a Merkle tree, perhaps? (that's not obviously correct, but I can see where if you heard the name, it would be an easy mistake).
 
9:42 PM
O my bad *Merkle tree
 
@Rick That does sound like you're thinking of a Merkel tree.
 
I can't seem to find anything detailing the compression in asymptotic terms
 
@Rick It doesn't really compress a hash. At least as far as I know, the primary intent is to limit the amount of data sent over a network by allowing verification of just the hash, rather than directly comparing all the data.
For example, I have a file that's supposed to replicated on two other machines, and I want to verify that it really is. Instead of copying the entire files around and comparing them directly, I can hash the file on each machine, and compare only the hashes. More importantly, if I have a tree of files (e.g., an entire file system), I can do hashes at each level of the tree. If the top-level hashes differ, I know there's a difference somewhere.
Then I can check each child to see if it's different (recursively, until I get to the leaves that represent individual files). Each difference in a leaf node represents a file that needs replication.
 
so you are not calculating every hash from every file/leaf but the maximum path from any pair of nodes. and seeing if the hash matches
 
@Rick I'm not quite sure what you're trying to say, but I think it's incorrect. Yes, you're calculating a hash for every file. Those are what go in the left nodes of the tree. Then you take pairs of those, and hash those hashes together. That gives the second lowest layer of nodes in the tree. Repeat that until you have one node at the top level of the tree. Then, somebody else who's supposed to have identical files can look at this root node. If it matches, he has identical files.
If it doesn't match, he checks the two below that. If one of them matches, he knows all the files on that side of the tree match, so he concentrates on the other half of the tree. Each place he finds a match, he assumes the remainder of that tree branch is identical, so he doesn't look at it.
Everywhere he sees a difference, however, he chases down the tree recursively to find the specific files that mismatch (then figure out which is newer, and replicate that to get rid of the older version).
 
10:01 PM
"he knows all the files on that side of the tree match" That comes across to me as path compression because one hash as you go higher up in the tree can represent a whole set of leaves/files. You're not touching every file/leaf or even every node to verify.
 
hashes are not compression because they're not reversible
@JerryCoffin I didn't know that Angela was a computer scientist.
 
@Rick Okay--I guess you can sort of look at it that way if you want. It strikes me as really just an AND function: (assuming a strong enough hash) a node will match only if its descendants both match.
@Puppy Ralph wonders how a politician's name got involved.
 
well, the tree is Merkle and the politician is Merkel ;p
 
@Puppy ok makes sense, reversibility is a requirement for compression. It just seems like the locations of the hashes in the tree itself is the hash encoding.
 
@Puppy Ah, my fault for going from memory, I guess.
 

« first day (3103 days earlier)      last day (1835 days later) »