« first day (2564 days earlier)      last day (2369 days later) » 

5:00 PM
Most of them are already here
 
@KendallFrey theorize as much as you can. The combinations on the periodic table for creating new element would be exponential, possibly introducing new metals, syntetics, etc
 
> Depending on the definition, humans are actually reptiles
 
lol no they wouldn't
 
@KendallFrey just saw that that's hilarious
 
Well then
 
5:00 PM
@Vap0r I don't know about you, but I sir, am an amphibian
 
You don't combine elements to make new elements
You combine elements to make compounds
 
@KendallFrey I mean that's not necessarily true
 
Well not literally, but can't you stabilize elements by shifting the electrons?
 
depends on the amount of stuff, our system is in balance with the elements that are present. Enough of an imbalanced element could crash our atmosphere
 
@Vap0r There is the bombardment thing, but at that point it's not a combination anymore
 
5:01 PM
Keep in mind you're talking to a man that barely got a D in chemistry
 
@SterlingArcher That is quite evident
"shifting the electrons" my ass
 
chemistry was the only course I ever failed in highschool
 
I'm about to shift the electrons of my foot right into your ass
 
@KendallFrey is (2)O technically an element? Or is it considered a compound?
 
Oxygen gas is a compound (I think)
 
5:03 PM
@KendallFrey yeah google seems to agree
 
atoms combine to make molecules
the atoms are the elemental elements
 
> A compound is a molecule that contains at least two different elements.
So no
 
So I guess it would be rarer, but might someone combine elements and other compounds to separate elements from the input compound?
Also, I think in a hydrogen bomb a bunch of elemental (and compound-based) byproducts are created
I don't believe that follows the same idea of bombardment
 
They're both nuclear fusion
 
Hmmm. I'm basing this off the assumption that I had in my head that the elemental byproducts of a supercollider are from a different process from a hydrogen bomb
Is this inaccurate?
 
5:07 PM
@Trasiva how do I edit the id of that option? say if i wanted the first option to have id 01 and be called Item 1, I would set i4checkoutput1 equal to "item 1", how would I set the id of this option?
 
The synthesized heavy elements are created by fusing nuclei from lighter elements
hydrogen fusion creates deuterium and helium (and probably more)
 
@finlx Hm? You mean you want the text to be different?
 
Same general idea, completely different effects
 
Ok that makes sense. Is the main difference in the amount of fissile material?
 
I don't know if there is a "main" difference
 
5:09 PM
@finlx Wait, why are you setting ids for a dropdownlist option?
 
Elements heavier than iron absorb energy by fusion. Lighter ones release energy.
 
Only thing you should care about is the text and the value.
 
@Trasiva you know how when you manually type in an option you have :
<option id="01">(01) value</option>
i want to be able to set the id of that option, so I can get the id in another function
 
@KendallFrey how are you not a scientist
 
@KendallFrey is that "always" or "in general" or what?
 
5:10 PM
or a doctorate in somehting
im actually being serious
 
@SterlingArcher Quite well actually
@Vap0r Always, I think
 
@finlx Why do you need it though, when you can get the option from selectedIndex?
 
@KendallFrey what do you see yourself doing in 5-10 years man
realtalk
 
@SterlingArcher My formal education sucked :(
 
@Trasiva Because its a ID generator, so at the bottom of my main page i have an input box that cant be edited, that uses i1.options[i1.selectedIndex].id; etc to show what the ID will be at the end
 
5:11 PM
@KendallFrey weird, I would imagine there would be some type of "gradient"
 
@SterlingArcher Pretty much the same thing as now, TBH.
 
You're meant for bigger things dude
 
@finlx Oh my god, I just realized that you're using ids.
 
@Vap0r there is, the crossover is at iron
 
@Trasiva is that bad haha?
 
5:12 PM
@SterlingArcher Last time someone said that to me I had to sit on a cushion for a week.
3
 
@finlx Please...don't use IDs to store the value. Look at the created option I give you when you select a value for each dropdown.
 
Maybe that's why you're not a doctor
LOL
 
Instead of using id like you do, it uses value.
 
What's a sidepane called that shows all your variables/functions
In a list, and you can click on it to navigate around
 
!!magic
 
5:13 PM
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
 
@KendallFrey what is the determining factor? What causes everything at iron or above to absorb energy? Is it not dependent on the amount of energy?
 
@Trasiva so say if I wanted to get what would be the id, could i use selectedIndex.match(/(([^)]+))/)[1] to find just the ID?
would that be a better way of doing it
 
...
 
@Vap0r It's something to do with the strong force, I think. I don't know enough to say exactly what, other than that big nuclei are less stable.
It's hypothesized that after all the stars will burn out, everything will decay into iron because it's the most stable.
In astronomy, an iron star is a hypothetical type of compact star that could occur in the universe in the extremely far future, after perhaps 101500 years. The premise behind iron stars states that cold fusion occurring via quantum tunnelling would cause the light nuclei in ordinary matter to fuse into iron-56 nuclei. Fission and alpha-particle emission would then make heavy nuclei decay into iron, converting stellar-mass objects to cold spheres of iron. The formation of these stars is only a possibility if the proton does not decay. Though the surface of a neutron star may be iron, according to...
 
Huh. We'd still have a bunch of stuff below iron though?
 
5:16 PM
No, I think that would also decay up to iron
via a very slow fusion process
and then an even slower process would convert iron stars into neutron stars and black holes
 
a.k.a. a grey hole
or 'rusty hole'
 
That's insane. I didn't think decaying up worked like that
Wait, that wouldn't make sense based on my perception of what decay means in physics. Is there a different word for decaying up?
 
transmutation
 
This is on extremely long timescales, enough for quantum tunnelling to become significant
 
Also, would elements below iron that have isotopes making it heavier than iron, (manganese for instance) also absorb energy, or would they shed it?
@KendallFrey ahh that makes sense but is wild imagining the probabilities of that happening and just how long it would take
 
5:20 PM
It's really really fucking long, dude
 
twss
 
oops, that's gonna attract a star
go ahead star it you know you want to
3
 
@finlx Look at this code. Tell me why it works without using IDs, and how I made the fourth dropdown dynamically update.
 
Observations suggest that the expansion of the universe will continue forever. If so, then a popular theory is that the universe will cool as it expands, eventually becoming too cold to sustain life. For this reason, this future scenario is popularly called heat death or the Big Freeze. If dark energy—represented by the cosmological constant, a constant energy density filling space homogeneously, or scalar fields, such as quintessence or moduli, dynamic quantities whose energy density can vary in time and space—accelerates the expansion of the universe, then the space between clusters of galaxies...
fyi
 
And it would make sense that higher isotope elements that are absorbing energy from fusion but are lower in atomic mass (generally) than iron would try to form a more stable structure right?
 
5:22 PM
!!should I make another coffee or be weird and make a tea or drink water
 
@rlemon You should make another coffee
 
❤️
 
@Vap0r Have you read the Hitchhiker's Guide to the Galaxy?
 
@KendallFrey yeah but that was back when I was still in school and I don't really remember those years too well
 
Remember the Improbability Drive?
It's based on the fact that there is an extremely small but finite probability of... pretty much anything
 
5:24 PM
Yeah it basically achieved everything that was probabilistically (i made that up) possible but in essence not
I should go back and read that book. Was he commenting on the ridiculousness of quantum physics?
 
So there's a tiny probability that two light nuclei could fuse even without smashing into each other, and releasing some energy
Yeah this is based on quantum mechanics
 
It happens all the time around us
 
However, you can't have an iron nucleus split into two lighter nuclei because that would require extra energy that doesn't exist.
At least, they can't remain split for very long
 
I was assuming that extra energy would be found from the fusion reaction
 
But the energy would since have radiated away
so the energy to split again is no longer there
 
5:28 PM
So the split is only maintained as long as energy is applied, or am I misunderstanding?
 
start with two light nuclei
 
mhm
 
combine them, and you get iron nuclei + radiation (photon or something)
 
I follow (so far)
 
radiation flies away, taking the energy with it
the iron nuclei no longer has enough energy to split apart unless you add more energy back in
Because you started with the right amount, then some left
 
5:30 PM
Ok so I guess the question I should have asked is what happens when the iron (or heavier particles) get too much energy from fusion?
They become radioactive?
 
Well there wouldn't be that much energy available
but if there was, they could potentially split again
 
oh ok
 
@Trasiva I'm basically trying to figure out how to take the options from another .js file. For example i4TTXT1.js could contain the array i4optionsTTXT1 = ["option1","option2"]; and I would want it to look inside i4TTXT1.js (only when i1checkval = i1.options[i1.selectedIndex].id; = T, i2check val is T, i3 check val is XT1) Thats why I need to use ID, since the naming of the files is based on them
 
@finlx sounds like a crapshoot
 
@KendallFrey I'm about to buy a house and will need books to fill the bookcase I'm gonna buy. When that time comes around could I ask you for some recommendations for the physics section?
 
5:32 PM
@finlx So back up, why are you using js files for referencing?
 
@Vap0r I could tell you right now :P
 
@KendallFrey lol I'm at work and would have a chance of losing whatever you suggested
 
@rlemon I'm glad I'm not the only one going wtf
 
Right now I'm part way through Krauss's The Greatest Story Ever Told - So Far
 
@Trasiva because users can create their own options, and I am using php to generate those files if they don't exist
 
5:32 PM
But yeah, ask me later
 
@finlx But what's the point of the files.
 
@KendallFrey I want to grab them when I can just put my address in amazon and wait for them to showup to my door
But thanks man nice discussion
 
pfft, paper?
 
@Trasiva to store option data
 
I use Audible + Kindle
 
5:33 PM
A database dude
 
@KendallFrey I was thinking of getting the oasis but I don't even know if ebooks work for me
 
@Vap0r You can't use like I dunno....a google memo? Just make a wishlist on Amazon? Use Evernote? Or I dunno, email?
 
I just mean on my PC
 
I really like paper, but I also really like convenience
 
I enjoy reading physical books.
 
5:34 PM
Sometimes Audible for car trips too
 
@finlx But why? Are they making these options on a separate page? Are they something that need to stick around for just one session, or multiple sessions?
 
I bought my mom a kindle, and tried it out for a bit
didn't feel right
 
@Trasiva no I can but I have this weird mental tick where I can't keep anything for too long. Like I purge everything. When I move I throw almost everything out. It's caused my parents to desperately horde stuff from my childhood because I'll throw it out. Ceramics, heirlooms, I don't know it's really therapeutic
 
I love my kindle, but once I own my own place I'll build a proper library collection.
 
@Vap0r I'm exactly the opposite
 
5:35 PM
I keep buying books and not reading them
 
@Trasiva Its a ID generator, so the ID has to be saved forever so that same ID wont be created again. and yeah there is a page that adds options
 
I need to set aside some time to read them
 
"I might want it in the future"
 
I can't just leave it alone and let it die, or keep it for the future because that implies I have to remember it, which is responsibility or something, I don't know
 
@finlx Then you need to look into using a database to store those values per-user.
 
5:35 PM
I have a small library of books in my apartment, and a huge amount in storage at my parents basement
 
Don't use files to store those settings, holy crap.
 
It's actually come to the point that it hurts my memory real bad because I do the same thing (consciously or unconsciously, I don't know) with memories
 
@finlx Is this a school project, or just a personal one?
 
@KendallFrey but yeah I guess your way of doing something at least comes from a position of prudence, mine is probably some weird thing that speaks volumes about some mental/emotional issues
 
5:37 PM
@Vap0r Mine isn't so great either.
 
@Trasiva its for work, i used to do a bit of html and my boss wanted something like this done so i thought id take a crack at js haha
 
@finlx Storing it like that is terrible. If it's for work, do you already have a database solution that's got users?
 
@KendallFrey I'll catch myself not even caring to remember someone's name. Like we just got introduced 2 minutes ago and I don't remember it.
 
@Vap0r what's the matter bront?
 
@rlemon that rolling shutter
 
5:39 PM
@Trasiva no its a startup company, not many of us about so we take on extra jobs like this to save money
 
@finlx this will lose you money
it's a time sink. you're putting time and effort into a solution that will ultimately be too broken to use long term
 
@finlx Then you guys need to start planning for user-based solutions like this now. What you're building based on what you described isn't viable for anything remotely mid to large scale.
 
or small scale.
it's maybe viable for some internal app or some bs
but nothing that is going to be sent out to the web
 
This is just an internal app though
 
I was looking for edge cases, it still sounds like a bad solution to a common problem
 
5:41 PM
If you have an infrastructure guy, ask him what his thoughts about potentially having hundreds of .js files floating on the server will be like.
 
so there is no way to reference a file and a variable within that file by using selectedIndex? Dont really care if it is inefficient, we just need something quick and temporary while I learn how to do proper databases
 
apparently that's what we're watching, but from the perspective of the guy now on the wire
 
@finlx you will not want to do that
@finlx you say you do, but you really don't want that at all
 
@Vap0r why not?
 
@finlx You'd be better storing it as JSON if you're going to do something like that frankly. Then you can just have it deserialize into an object.
 
5:44 PM
right i'll look up jsons cheers for your help everyone
 
@finlx well a whole bunch of reasons. But the biggest one is what is mentioned by Trasiva above me
 
@finlx for perspective, if you had started this convo asking how to setup a db, we'd be done by now.
 
^ so true
 
1 message moved to Trash can
 
Oh dear...
 
5:45 PM
@Milly25 please format it proper, or use a paste service like jsfiddle or gist.github.com
 
I have this code above. I am able to type in 34.34 but when I tab over to the next text box it cuts off the decimal number.
 
@Milly25 what are you trying to do?
If I put in 34.34, what should I get out?
 
34.34 I just need a currency number.
 
@Milly25 so if I put in 34.34, I should get 34.34 out?
 
That will accept commas, numbers only, with 2 fixed decimal places.
Yes.
1,000
1,025.25
 
5:48 PM
When setting the TTL for a TXT record, shall I chose the max value or min value for a static website?
 
if I put in 1,000 what should I get out?
 
I type that in and when I tab over I get 1025
 
is the comma a hard requirement?
because two decimals is easy
 
Commas and decimals.
 
<input type="number" step="0.01" value="34.34" />
 
5:49 PM
@Milly25 if I put in 1,000 should I get 1000 or 1000.00?
 
1000.00
 
commas are a part of a display, not a number.
 
can anyone help with that?
 
In the UI they want it to display 1,254.98.
 
in the input? or later on
 
5:50 PM
Later on.
 
then don't worry about it
 
The final product.
 
format that later
1 min ago, by rlemon
<input type="number" step="0.01" value="34.34" />
 
lol
1
A: HTML Input type number Thousand separator

yovanny olartetry function addCommas(nStr) { nStr += ''; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? ',' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2'); } return x1 + x2; }

 
That is the code that the developer used.@Vapor
 
5:53 PM
@Milly25 are you not a developer?
 
I don't accept 'I am not a developer' in this channel.
 
beginner :/
 
you're asking about code, you're a developer
 
@rlemon I'm not a developer
 
yes you are, just not a very good one
;)
 
5:55 PM
bs I come here for code vamps and to laugh and I'm done laughing
 
what about bubblegum tho?
 
is this a joke? Because I just told you I'm done laughing
:|
 
I'm not here for your entertainment
I'm here for my own
 
No but in all seriousness when a manager comes in here and tries to get spaghetti code fixed because they hired it out to "third-party" freelancers but they have wrote code before I normally get so bold as to say they "aren't a developer"
 
!!> 1000..toFixed(2)
 
5:58 PM
Not saying that's what's happening here but I've seen it before so I know you've seen it handfuls of time
 
@SterlingArcher "1000.00"
 
!!doge
 
@SterlingArcher but that's not a number input
 
          wow
                very fail
                       so user
such pro
 
oh wow it works!
 
5:58 PM
doge mocks you if you leave it empty
 
@rlemon true but toFixed should apply to strings as well?
 
@rlemon I thought doge died a bit back
 
!!> "1001".toFixed(2)
 
@SterlingArcher "TypeError: \"1001\".toFixed is not a function"
 
wait lol no
 
5:59 PM
@SterlingArcher why would it?
 
user1596138
!!> +"1001".toFixed(2)
 
So it's gotta be string converted to number
 
@Jhoverit "TypeError: \"1001\".toFixed is not a function"
 
user1596138
orite
 
user1596138
noshit
 
5:59 PM
!!> +"1001"..toFixed(2)
 

« first day (2564 days earlier)      last day (2369 days later) »