« first day (2732 days earlier)      last day (2214 days later) » 

9:00 PM
produce is processed
 
can you compare against a timestamp, ignoring the lowest digits?
 
user1596138
I guess if you eat your banana whole it is unprocessed until it hits the digestive fluids
 
and then groupby that same truncated timestamp?
 
not sure. reading postgres docs now.
 
this is taking the fucking piss now. I have to enter my mobile number for someone to call me, my name, buisness name, buisness email etc etc etc just to use a trail version of visio online it says
 
9:00 PM
I'm a simple sql guy. I just compare directly against the timestamps :P
 
NH.
@TerryADavis well then don't.
 
user1596138
@TerryADavis It's microsoft.
 
user1596138
Duh
 
stop being stupid
 
?
 
9:01 PM
there is no alternitive software that does what I need
 
user1596138
You're the one complaining about a form none of us control
 
user1596138
etc etc etc
 
@TerryADavis Yeah, a lot of professional/enterprise softwares do this. I made a throw away alias/contact years ago for this purpose that I don't care gets spammed and only give them the minimum that I need to.
 
yeah I can't help that
 
Definitely not specific to microsoft
 
9:02 PM
just use that shitty lucidchart thing
 
Adobe and Autodesk immediately come to mind as others who do it.
 
NH.
@TerryADavis you haven't looked hard enough, or you have way too strict of requirements
 
it cannot collapse connectors
 
@TerryADavis Get your employer to pay for a license then
 
NH.
QED
 
9:02 PM
If you "need" it
 
I dont have an employer
 
> I want photoshop, with all of photoshop's features, and all of the same keyboard commands and tools, but it can't be photoshop
 
you mean Yed
 
I'm doing my best to avoid enterprise microsoft products
 
9:03 PM
I just tried that. it is autistic as fuck
 
So far, that strategy had worked out relatively well for me.
 
and cant collapse connector lines
sighs
 
user1596138
@TerryADavis who is your avatar
 
user1596138
!!stat TerryADavis
 
the Developer of TempleOS
 
9:04 PM
@Jhawins Terry A Davis (https://stackoverflow.com/users/8387001/terry-a-davis) has 20 reputation, earned 0 rep today, asked 4 questions, gave 0 answers, for a q:a ratio of TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡.
avg. rep/post: 5. Badges: 0g 0s 6b
 
terryAdavis
 
user1596138
I find your exact minimum for chat rep suspicious, along with the trolling
 
> calling things autistic in a room full of autists
nice, terry
 
He's a dude who thinks god told him to develop an OS and use it to talk to him. The OS can only have a resoltuion of 640x480 and other crazy things.
To be honest, considering the dude made it from fucking scratch, it's impressive in its own right, but the dude is legitimately nuts.
 
4kb should be enough pixels for anybody
 
9:05 PM
@Jhawins He's CoderCat
 
user1596138
Oh same account and everything
 
im changing my nick and pic now
 
Make it a good one. I want to be surprised.
 
user1596138
So do you just go to Main when you lose too much rep to chat?
 
9:06 PM
He'll come back as vap0r
 
user1596138
This one guy did that
 
you can't lose privileges from losing rep can you?
 
@hilli_micha oddly enough, your wife said the same thing
 
Yeah, I made sure she was disappointed. I don't opt for change.
 
user1596138
@KevinB Can't you?
 
9:07 PM
@KevinB You can
Go on, do it, you know you want to.
 
i can't lose enough rep to lose privileges
 
do what?
 
u
 
no one wants that
 
user1596138
Wasn't me but yea he's under chat rep now
 
user1596138
9:08 PM
RIP in T-10
 
@ssube sqlfiddle.com/#!17/6c8ee/4 if you're still interested. :/
idk
seems like it should at least return 1 value. :/
 
got 40 rep today from doing nothing
 
NH.
no
 
user1596138
Haha looks like it already updated..
 
NH.
you did something, before
 
9:09 PM
congratulations, kevin bacon
would you like a parade?
or a coupon to white castle?
 
random question since I imagine it can be either way
 
he has enough rep for a small parade
 
He got like 3 downvotes in an instant, not cool guys.
 
say you have a requirement not to show data for users under the age of 25
would you expect the backend to not send the data?
or would you expect it's your job to filter/not show
 
@Loktar Depends
 
user1596138
9:10 PM
Is there a legal reason
 
If it's for legal purposes, the back end should NOT send it
 
user1596138
Or it's just a filtering requirement
 
er, sorry it's just the AGE
 
if it's just a usability thing, then it doesn't matter
 
like just the age < 25
so if it's < 25 don't show at all (the piece of data, age)
the rest of the data is fine to show
 
9:10 PM
the front end is a web app?
 
@MadaraUchiha When the caption clearly doesn't match the gif :S
 
user1596138
I can't imagine any reason other than legality that we'd have for that. Sounds like a security issue
 
we also have the req for > 65
 
@rlemon are those records all in the same 10-min block or am I misreading? You have it at T + 10 minutes, changing it to seconds does what I'd expect
 
the front end is aggressive
 
9:11 PM
if its > 65, only show > 65, don't show like 70-75
 
@KendallFrey :X
 
@Luggage yea
 
if it's a web app or other untrusted client, i'd have the backend do it
 
@ssube ohh those are seconds :P
haha.. my data generation is bad
fuck
 
but i get that might be a hassle
 
9:11 PM
:(
 
@Luggage that's what I was thinking tbh
 
ha, cool, glad I'm not insane today
 
but they will say "That's front end formatting"
i imagine heh.
 
@ssube well it still doens't give me what I want.
 
if it's not a strict legal requirement you can get away with that
 
9:12 PM
basically I want a record that would be closest to the 10 second interval between
so instead of
2018-01-25T09:13:28.24Z
2018-01-25T09:11:31.091Z
2018-01-25T09:11:32.441Z
2018-01-25T09:11:33.791Z
2018-01-25T09:11:35.141Z
2018-01-25T09:11:36.49Z
2018-01-25T09:11:37.84Z
2018-01-25T09:11:39.19Z
...
I just want
2018-01-25T09:13:28.24Z
2018-01-25T09:11:37.84Z
...
 
yeah, so my working theory is
 
er.. imagine that minute stamp is the same
damn, I'm failing hard at this :P
 
use the select you have and add a field that ends up with SELECT MINUTE FROM date
 
@Luggage yeah I just don't want to do it
 
then modulo and GROUP BY that second field
shit, but that doesn't handle hours
 
9:14 PM
they come back like this "20-24", "60-65", "70-75"
as strings.. in that format
I'd have to parse them, figure out if its > 65 then show " > 65" instead... just seems dumb
 
having the backend remove fields or put in placeholder based on your access isn't too uncommin
 
essentially you need a second SELECTed field with the rounded timestamp
 
since they have buckets.. now we have buckets lol
 
@ssube you get what I'm trying to do right? reduce the data being returned but in a sensible way.
am I over complicating this?
 
user1596138
The backend is making ranges, then telling you to kludge their ranges together lmao
 
user1596138
9:15 PM
Duplicated effort
 
^
 
@rlemon yeah, I think I get it, and I don't think you're complicating it
 
@Jhawins no it's used uncluged elsewhere.
 
I do think you can solve it with timestamps and math
 
yeah that's sort of how I feel.. if they came back as a number, like 68 then ok
 
9:16 PM
it won't be perfect (timezones 😬 ) but should work
 
that's fine I'd be like if > 65, " > 65" lol
 
shrug
 
but now I'm like... split -, parseInt, blah blah blah
 
user1596138
@Loktar tbf you can remove the hyphen and parse as numbers
 
@rlemon I don't get what you are trying to do yet. you want all the data grouped into 10 second groups?
 
user1596138
9:17 PM
6065 is less than 6570
 
user1596138
ANd so on
 
er, minute
 
yeah true I was just checking the first number set anyway
 
user1596138
But yea sounds stupid lmao
 
ah they actually say, "70 to 74"
idk annoying af.
 
9:18 PM
hi
 
@Luggage I want to be able to specify a resolution I'm returning data in. we try to store data every minute, but that doesn't work out all the time. However, I'd like to be able to say 'give me every nth minute' instead of 'give me every maybe 1 minute'
 
what happens in here?
 
SELECT date, EXTRACT(EPOCH FROM date) % EXTRACT(MILLISECONDS FROM INTERVAL '1 minute') AS sortDate
FROM data
WHERE
  date > (TIMESTAMP '2018-01-25 09:11:20' + INTERVAL '10 seconds')
  GROUP BY sortDate;
something like that?
 
ahh, and aggregate based on that?
 
ok
 
user1596138
9:19 PM
Terry keeps gaining rep, losing it
 
@Hum4n01d excitement, drama, and intrigue
 
user1596138
Why would people be upvoting those random old Qs
 
@Jhawins He's accepting answers to his old questions
And people, likely from here, are downvoting his questions
 
user1596138
I mean I know I'm one to talk since I was just playing but I found it curious
 
generate_series(start, stop, step interval)
 
9:20 PM
He ran out of answers to accept though
And he's still at 18
 
@Luggage reading now.
 
I'm betting he'd start suggesting edits in the hopes one of them gets accepted.
 
user1596138
@MadaraUchiha thats true every question got accepted
 
user1596138
I had his page up, reloaded it and they all went green hahaha
 
hm.. not sure how I'd join that that, yet
something like ssube's truncating of a date is what I did in SQL server
 
user1596138
9:21 PM
COuld just.... Ya know.... Answer some questions legitimately
 
SELECT * FROM generate_series('2008-03-01 00:00'::timestamp,
                              '2008-03-04 12:00', '10 hours');
   generate_series
---------------------
 2008-03-01 00:00:00
 2008-03-01 10:00:00
 2008-03-01 20:00:00
 2008-03-02 06:00:00
 2008-03-02 16:00:00
 2008-03-03 02:00:00
 2008-03-03 12:00:00
 2008-03-03 22:00:00
 2008-03-04 08:00:00
(9 rows)
 
@MadaraUchiha our terry?
 
looks promising
 
@KamilSolecki Yup
 
generate_series gives you the minutes
you could truncate and then use a WHERE truncated IN series
 
9:22 PM
@Jhawins I'm doubting that'd happen, but we'll see.
 
not sure if that's more expensive than a GROUP BY, though
 
I guess my real problem is always going to be that it isn't an exact 10 minutes
maybe it'll be enough to say 'since ten have passed'
 
user1596138
Did he really make TempleOS
 
user1596138
The Wikipedia is something
 
@Jhawins The real Terry A Davis did
 
user1596138
9:23 PM
> HolyC is a variation of C, developed by Davis as the programming language of TempleOS
 
@Jhawins no he is codercat
 
the truncate-and-sample method, if I understand it right, should get you 0-1 events every 10 minutes
 
He's not the real Terry A Davis though
 
@Jhawins ours is a fake
 
user1596138
How is that okay lol
 
9:23 PM
its not
hes been told its against TOC
 
user1596138
At least I pretended to be an online persona haha not a real person
 
Well, Terry A Davis is a bit of a meme in certain circles.
 
I pretend to be a cartoon vOv
 
He has schizophrenia and is legitimately crazy.
 
@MadaraUchiha impostor!11!!1!
 
9:24 PM
 
user1596138
Meh. Moving on
 
Last I heard of him a few months ago he was living out of a van somewhere in Las Vegas fleeing police on assault charges.
 
user1596138
@towc no one can read that
 
rough translation of caption: this is what happens when a piece of plastic "a bit larger than 2cm" hits a block of aluminum with a little more than 24k km/h
 
space station
 
9:24 PM
that's bs, right?
 
hit the earth at 27k
 
would it really make that shape?
 
24k km/h is fairly fast
 
user1596138
How did they accelerate a 2cm piece of plastic to such speeds. We need sources
 
user1596138
That's large. I'm surprised by the lack of damage
 
9:25 PM
@ssube I mean, it would make some serious damage, but not actually create a spherical hole in the block, right?
 
thats the aftershock
 
grouping by date_trunc(text, timestamp) is the easiest, but I only see a way to go to 1 minute, 1 hour, etc. not 10 minutes.
 
you mean a crater?
like meteors leave?
 
like, what does 2cm even mean? radius? Diameter
 
user1596138
Maybe we'd know if someone posted sources
 
9:26 PM
of course it would leave a crater
 
a crater is generally a shape that dissipating energy causes
on impact
 
so that's realistic?
 
yea.
 
I guess
 
@towc Most likely
 
9:27 PM
no way to tell without sources/numbers
 
At that heat, the piece of plastic and a portion of the block would vaporize on impact
 
it's certainly plausible
 
also, what metal is that?
 
[citation needed]
 
it's the right shape
 
9:27 PM
lmao the opinions went from most certain to 50/50
 
Creating a crater like that
 
@Luggage aluminium
 
@Luggage alu-mini-um
 
And aluminum is fairly soft
 
in jquery, i have the following:
$('.myclass').click(function(){  console.log($(this))  })
i want the equivalent to this in legacy javascript.. if any element with class myclass was clicked console it..
 
9:28 PM
alu-mi-num
 
I'm quite curious about the shape now
 
AH-LOO-MIN-UM the way jesus said it
 
2cm at 24k km/h is definitely something to worry about
 
if i wanted to whip up an online multiplayer card game, simple stuff, just an html+js interface
 
I've been the science museum and seen the panel with a hole in it
 
9:28 PM
That is 20 times the speed of sound (a bullet is about as fast as sound. a little faster)
 
are there frameworks for all the server side?
 
@zounds too many, even
 
like game sessions, keeping track of the turns, etc
 
there is loads
 
any recommendations?
 
user1596138
9:29 PM
@Luggage lol not mine..
 
from jquery to javascript convertor
 
slower?
 
user1596138
I have some slow ones for home defense in my .44
 
user1596138
But yea, usually they're supersonic
 
9:30 PM
@JoeSaad document.querySelector('.class').click( ....stuff ....)
 
> "The 'bullet' that created the hole in the solar array was probably due to a 1 mm to 2 mm diameter MMOD [micrometeoroids and orbital debris] impact, assuming the hole was on the order of 0.25 inches in diameter," William Jeffs, a NASA spokesperson told SPACE.com in an email. "A 2 mm size MMOD particle is expected to hit somewhere on [the International Space Station] every 6 months or so."
 
inside click(function(){ console.log(this) }) ?
 
@Luggage Faster, but depends on the caliber of bullet. 5.56 rounds hover right around the 2.5k ft/s mark. Speed of sound is less than half of that.
 
@KamilSolecki i thought i should use querySelectorAll or querySelector will do?
 
can't things just stay still plz
 
9:31 PM
Reason you have sub-sonic rounds for specific purposes.
 
no recommendations?
 
indeed. I just wanted to say this chunk of plastic was going way faster than even a bullet, since people think they are fast
 
mass matters more than speed and radius here, plastic is much lighter than lead, but if a < 2mm impact caused a bullet hole, it seems plausible
 
I don't want to be 360 noscoped by a fucking star explosion millions of light-years away
 
@ssube The question is whether the wing even slowed the bullet significantly, or just gave way without absorbing too much of the energy.
@towc A body like that won't make it past the atmosphere
 
9:32 PM
@JoeSaad depends on your usercase
 
@Luggage No doubt, and given the forces necessary to make a bullet travel as fast as it does. I"m skeptical that a piece of plastic is going to obtain that without being destroyed.
 
querySelector returns first occurence, queryselectorall get them all
 
it better not
 
@KamilSolecki there are many elements with the same class that i want to get the trigger of click on them
 
or I'd be really mad at the atmosphere
 
9:33 PM
@hilli_micha you're pushing that bullet against air pressure, though, not vacuum
 
they do all the time in space. we can do it here just by shooting them out of an air cannon or something
 
if you're talking hypervelocity impacts there's an approximation that penetration depth depends only on relative density, not relative speed
 
!!giphy old man yells at cloud
 
@ssube hrm... close now (@Luggage if you're still in this) sqlfiddle.com/#!17/6c8ee/39
 
9:33 PM
a tiny particle like that could be shot out into a vacuum without very much force at all, I imagine
 
there are all sorta of contraptions with long tubes for accelerating things. science can be fun
 
would be nice to include the 'close but not quite' matches
 
Density of earth rock is 2g/cm^3, for ease of calculation let's assume a cube of .2cm x .2cm x 2.cm
 
the "close but not quite" case is why I was using modulo
floor/truncate/any form of round down ought to do
 
@KamilSolecki i don't want the first, i want if any of that class is being clicked
 
9:34 PM
So mass of bullet is .016g
 
@ssube @Luggage Fair point.
 
or since it is always listening to click, so that first one is always the right one clicked
 
35,406km/h is...
 
user1596138
3
 
!!> 35406 * 3.6
 
9:35 PM
@MadaraUchiha 127461.6
 
user1596138
That's a lot.
 
So kinetic energy is
 
user1596138
That's like 400X the speed of sound lmao
 
@JoeSaad I've given you two functions and explained what they do. I don't know your usercase. Its super simple, just check both on MDN and use accordingly.
 
9:36 PM
!!> var massInKg = 0.16 / 1000; var velocity = 127461.6; massInKg * (velocity ** 2)
 
heh, I went to look that up but couldn't make Alpha work
 
@MadaraUchiha 2599433.5159296
 
user1596138
We call that ludicrousonic
 
joules
So 2.6 Mj
That's really not a lot
 
10 second groups
 
user1596138
9:38 PM
What does ** do
 
power
 
user1596138
Thought so
 
I did forget to divide by 2
So 1.3 Mj
 
> Energy required to run an electric stove for 1 hour: ~4x10^7 Joules
 
That's a thousand times more energy than an M16 bullet, for example
 
9:39 PM
about 1/3 a KWH
@MadaraUchiha so it would do some damage
 
To a human body? Sure
To an armored tank? Probably not as much
 
a 10g impactor at 24km/h is about 500kJ
 
great, the next school shooting will be with 2cm bits of plastic at orbital velocities
 
which is about 500g of tnt
 
don't build school in space, then
checkmate spaceists
 
9:40 PM
don't give people plastic
also, orbital-velocity cannons
 
but that's the most efficient way to quickly get new kerbals
 
give teachers plastic
 
when you're already in orbit, everything is an orbital-velocity cannon
 
!!> .01 * ((24000*3.6) ** 2) / 2
 
@MadaraUchiha 432
 
9:41 PM
a straw and spitball counts at that point
 
user1596138
Did we not get source
 
@MadaraUchiha 37324800
 
user1596138
I still want to know how they accelerated that
 
Attaboy
 
@Jhawins source is a fucking facebook post that I thought was fake
 
user1596138
 
you can accelerate things with air cannons
 
@zounds That's actually 37 MJ, not 500 kJ
 
now what is a light-gas gun. That sounds interesting
 
no i got it wrong it's only 200 kJ, which is like 50 g tnt
 
> One particular light-gas gun used by NASA uses a modified 40–mm cannon for power. The cannon uses gunpowder to propel a plastic (usually HDPE) piston down the cannon barrel, which is filled with high-pressure hydrogen gas.
 
9:43 PM
but still explode 50 g of tnt and i bet you could see a crater like that in an aluminum block
 
lol awesome
 
you keep multiplying by 3.6 instead of dividing
 
@zounds No you're right
@zounds Yup
 
> during the height of the Cold War in 1965-1967, the U.S. fired hundreds of thousands of tiny needle into space to try for what could best be described as high-powered radio signals. This, however, didn't work nearly as well as planned and the needles just clumped together into groups — turning these needles into high-velocity projectiles. 50 years later, there are about 38 of these clumps still in orbit, although sometimes they enter the Earth's atmosphere and burn up.
nice
 
I revise my earlier calculation to ~756 kJ
Which still packs a mean punch
 
user1596138
9:45 PM
 
Although a well armored target is likely to escape relatively unscathed
 
user1596138
Do u not internet boi
 
but generally think pneumatic: wide piston and thin nozzle will get you gas moving very quickly
 
@Jhawins internetting has gotten mainstream
 
madara at hypersonic velocities the only thing that matters is the length and density
the strength of the armor is meaningless because past the speed of sound there is no cohesion to hold the armor togethor
 
9:46 PM
@zounds Madara doesn't need hypersonic velocities to whoop yo' ass
 
yeah, with narrow projectiles and enough speed, you get tunneling
not the quantum kind
 
The physicist Sir Isaac Newton first developed this idea to get rough approximations for the impact depth for projectiles traveling at high velocities. == Newton's approximation for the impact depth == Newton's approximation for the impact depth for projectiles at high velocities is based only on momentum considerations. Nothing is said about where the impactor's kinetic energy goes, nor what happens to the momentum after the projectile is stopped. The basic idea is simple: The impactor carries a given momentum. To stop the impactor, this momentum must be transferred onto another mass. Since the...
 
@zounds There's actually a similar method for ballistics tests
 
user1596138
@zounds You think supersonic means no cohesion
 
user1596138
Watch me fire a bullet straight thorugh a tank
 
9:49 PM
By shooting at a suspended object with known mass and measuring how much it moves, you can learn things about the bullet.
 
> This is usually true if the impactor's speed is much higher than the speed of sound within the target material.
so on earth, when the target is still, that's easy enough
 
jhawins supersonic relative to the speed of sound in metal
 
What's the speed of sound in iron?
 
hella fast
 
user1596138
9:50 PM
5,000m/s
 
5,130 m/s
 
user1596138
Look at us googlers
 
aluminum, as tested, is even higher
 
!!> 24000 / 3.6
 
@MadaraUchiha 6666.666666666666
 
9:51 PM
still well below the 24k they shot it at
 
Still a wee bit faster though
 
so, still plausible
 
user1596138
So you're saying things turn liquid when I go a certain amount faster than them
 
user1596138
STOP IT THATS MY TAKE AWAY AND IM STICKING TO IT
 
faster than them while inside them, specifically
 
9:52 PM
@ssube eh
 
@Jhawins You know damn well he didn't say liquid
 
user1596138
Giggity?
 
It only holds true if the bullet stays in bullet shape
 
if you're moving fast enough, everything is wet inside
 
user1596138
@KendallFrey Of course I do.
 
9:53 PM
Which I highly doubt that it would, given that it's plastic, and that a collision like that is likely to vaporise it.
 
@MadaraUchiha not necessarily in bullet shape, just in a vague rod
 
@ssube I'll rephrase
I doubt it would stay in any shape at all
 
that's why AP rounds have a dense core, used to be the depleted uranium
just hard enough to stay in shape until it gets through some tank armor
@MadaraUchiha I'm actually curious to what extent the projectile liquifies and if it matters
 
TIL node --print-code file.js
 
a ball/tube of molten anything is still going to make a dent
 
9:54 PM
A decent size comet striking the earth at 70k km/s would still evaporate on impact and create an explosion large enough to wipe all life from the planet
Not go straight through to the other side
 
right because it's not dense enough or long enough to do so
 
user1596138
@ssube I think they still are
 
user1596138
I'd have to weigh some ammo tho to say
 
I thought they moved away because the uranium sticks around?
 
@MadaraUchiha jokes on you, I've been injecting comets since I was 13. almost built up enough of an immunity to survive the big ones.
 
9:56 PM
ends up in trees and melts birds and such
 
Where are the mythbusters when you need 'em?
 
user1596138
I think they just wish we would lol
 
regardless, the idea is that you put in a very dense core that continues on (potentially in liquid form)
 
They should just use gold rounds :D
Denser than uranium, melts in relatively low temperatures
 
I think the radioactivity contributes to the heating, but that's based on a vague memory
 
9:58 PM
hollowpoint gold rounds is likely something to behold
 
depleted uranium is pyrophoric
so thin shavings will ignite
the radioactivity is negligable
 
@zounds Depends on the isotope I'd imagine
 
well it's "depleted", so u238 generally
 
But yeah, most isotopes of Uranium have a long (in the thousands of years) half life
 
Depleted uranium (DU; also referred to in the past as Q-metal, depletalloy or D-38) is uranium with a lower content of the fissile isotope U-235 than natural uranium. Natural uranium contains about 0.72% U-235, while the DU used by the U.S. Department of Defense contains 0.3% U-235 or less. Uses of DU take advantage of its very high density of 19.1 g/cm3 (68.4% denser than lead). The less radioactive and non-fissile uranium-238 constitutes the main component of depleted uranium. Civilian uses include counterweights in aircraft, radiation shielding in medical radiation therapy and industrial...
 
user1596138
9:59 PM
Read that
 
user1596138
It ends in
 
because I'm reading it and it's quite interesting
 
4.468 billion years half life, yeah
 
user1596138
> Iraq called for a global ban on the use in 2014
 
user1596138
No resolution lmao
 
9:59 PM
Not likely radioactive
Still toxic though
 

« first day (2732 days earlier)      last day (2214 days later) »