« first day (2299 days earlier)      last day (2663 days later) » 

12:00 AM
it's 2017
I can
the better question is why are you using var?
 
Hi, how to convert time type 04:30:00 (elapsed time) to seconds or miliseconds
 
@user6827096 is it a string?
or in a Date object
 
time type
 
use the api
 
there's a time type?
 
12:01 AM
<input type="time" step="1" />
 
wait, what's the main discouragement for using var? It's mostly not allowing for some micro optimizations to happen, right?
 
angular specific thing?
 
@towc immutability
 
I was just wondering, I was going to use clone so I could do...
var arr = Object.assign({},ref);
arr = Object.keys(arr).map((key, index) => {
 
@towc function scope isn't useful. and const should eventually come with optimizations
 
12:02 AM
instead of
const clone = Object.assign({},ref);
const arr = Object.keys(clone).map((key, index) => {
Well, clone and arr end up being a reference to the same object
 
clone is the object
arr contains references to its properties
but clone isn't ref
ref is the original object being passing in
 
Ohhh that makes sense
Ha now I feel stupid
 
good
 
@Alesana but look up compatibility for what you need
 
anyone here serious about versioning with GIT?
 
12:04 AM
const/let + arrow functions are new js
you might need to use older js, or compile it
 
how to convert time type 04:30:00 (elapsed time) received from <input type="time" step="1" /> to seconds or miliseconds?
 
what is input type=time?
quick google says angular specific
 
@rlemon Thanks
 
@user6827096 search mdn for Date
 
nvm
 
12:05 AM
var x = 4*3600+ 30*60+ 00*1;
if(milliseconds)
x*=1000;
 
time input
neat
 
@towc For me, it's a piece of syntax that provides no benefit whatsoever, does essentially the same thing as another piece of syntax, and can actually be detrimental.
@towc I think perhaps okcupid might be a better place
 
Tinder
 
If only people agreed to usa dates that are only in atomic clock format.. no such problems would arise!
 
I will use older JS to maintain consistency in my app
 
12:06 AM
@KendallFrey const makes comma-first harder than it needs to be :/
 
comma-first needs to be very hard >:(
 
@towc it doesn't if you indent 4 spaces
 
@littlepootis but I indent 2 because rainbows
 
Does anyone use sublime with FTPSync or do most people just design on localhost?
 
Still working :(
 
12:09 AM
of course I have convenient "shut down " button in amministration panel that makes the site unavailable with a short message as long as I'm updating all the other files.
 
@Alesana localhost
 
Learning cloud to just instantiate instances without bothering updating the code on each one
 
there's mostly no point in implementing a client on a separate server. You can always fetch additional data
 
Localhost + GIT/SVN
 
12:11 AM
all you need is love vim
 
Ah
 
@Alesana SFTP plugin
it's paid, but excellent
 
@rlemon is it pure javascript or some framework?
 
javascript
 
The FTPSync one is shit, maybe I will spend the extra buck for that one
 
12:13 AM
thanks
 
@Alesana if you're paying money, you're probably doing it wrong
which is an awful thing to say, but there's that
 
@towc If I am making money using something I think it's only fair I pay what's requested
 
@towc not even a little bit
if it improves my workflow for like $8
why the hell wouldn't I
 
well, do you need not use localhost? @Alesana
and fair enough rlemon
it's just that many times you may not see alternatives
 
not all tooling needs to be free
 
12:16 AM
I might have actually paid for a webstorm license because it looked fancy, but then I discovered vim
 
and in fact, a lot of the time, the non free tooling is superior
 
No, I could use it but I've had problems before when migrating due to differences in how the server was set up
 
that's not to say that webstorm might be useful to many, but many who use webstorm probably don't realize they could be using something else and be equally productive, if not mroe
 
@towc that is subjective
 
@Alesana that doesn't sound very convincing, but if it fits what you need to do, sure
 
12:16 AM
editors are personal
 
yeah, sure
 
not everyone is productive in every editor
and a lot of the paid editors are really well done
3 mins ago, by towc
@Alesana if you're paying money, you're probably doing it wrong
is just BS
 
I was so unproductive on VS, for example. Only partially because of my limits in knowledge of code
 
Like I said I don't need to but I just decided to for this project
 
and VS sounds like something most people pay for, as you're supposed to use it in windows anyway
@Alesana knock yourself out :)
 
12:18 AM
I understood it as towc condoning pirating at first, haha
 
just remember that regrets are painful, and may haunt you for the rest of your life
 
vs and vscode are different beasts (tmk)
I haven't used VS since 2012
its like comparing PhotoShop to GIMP. I'm a GIMP guy, but PS is WAY superior to GIMP. you can do most things in GIMP... if you're willing to spend many many hours in it vs just paying money and getting the job done fast and well.
 
@rlemon bar.onclick = _ => { what this part = _ => mean? My IDE emphasizes this "expression expected" at >
 
sure, I have no points against that. Given that you still use gimp
 
12:22 AM
and I own PS
I know gimp tho
you know vim (to an extent) and you didn't need to pay
 
wait, you own PS and mainly use gimp, or own PS and mainly use PS?
 
so you have biases
@towc own PS and only use GIMP
 
well, I've used webstorm for quite some time. Certainly better than VS, but I still think I'm so much more productive on vim
 
great! and keep at it, or try other editors when they look interesting
you'll probably switch a few times
at least.
 
12:24 AM
not doubting that at all
[10 years later] uses hexedit
I'll use bvi for the transition
 
is that real 0.o that's not real
 
real
obviously cut out of the ice and set up
but animals freeze in the ice all the time
 
I don't know if the sun should partially shine through or not
OH NOOOO you've opened a new world of terror and pain for me :/
 
if it was cut with a chainsaw and polished with a cloth.. sure
 
12:27 AM
no I mean, for there to be a quite solid shadow
 
@towc think of how many animals go to drink at the waters edge in the winter (to them it is a few feet in on the ice) and the ice breaks.
bye bye animal.
hello fish food.
 
NOOOO
 
> foxicle
 
I was happy
you ruined it
 
and now the fish are happy
spring meal.
 
12:28 AM
awwwh <3
I don't know how to feel now. thanks. fuck you, and thanks again
 
12:38 AM
@towc VS 2015 is practically free
and tbh, so is windows 10
(no piracy)
 
well, true
oh no, I never pirated an editor :P
 
I meant windows
piracy is fun
I need my money more than microsoft
@ndugger that is the most populist thing I've seen in a while
comparing immigration to an online community
 
I wouldn't NOT condone pirating from microsoft... but, I would not condone pirating from a Sublime plugin maker
Well, if you are making money via their plugin that is
 
1:03 AM
With the amount of people who use stackoverflow, I woud imagne that the chatrooms would be much more active
 
the link is hard to find
and often the people who find it are after a quick answer with very little work, so the chat can be quite a hostile place
 
Yeah I can see that
 
1:22 AM
the amount of programmers who chat vs the ones who would use this platform over IRC is.. ugh
 
1:50 AM
many programmers is busy bugtracking
 
I is busy bugtracking.
The IRC is quite active?
If debugging is the process of removing bugs from code, then programming must be the process of adding them in there
 
hey, whats wrong with that hour = if(isNaN(hour)){return 0;}; ?
IDE says "expression expected " near "="
 
what ide
 
phpstorm
and chrome debugger
Uncaught SyntaxError: Unexpected token if
<script>
    function aktualizacjaKoszyka(){
        var time = document.getElementById('time');
        var [hour,min,sec] = time.value.split(':');

        hour = if(isNaN(hour)){return 0;};
        min = if(isNaN(min)){return 0;};
        sec = if(isNaN(sec)){return 0;};
        hour = parseInt(hour);
        min = parseInt(min);
        sec = parseInt(sec);
        var seconds = ( hour * 60 * 60 ) + ( min * 60 ) + sec;
        var dist = document.getElementById('distance');
        dist = parseFloat(dist.value);
 
Hi guys. I'm needing a very complex css to use it on a parse that I would like to write.
It's not needed to be a real style for a page, but instead of this, an example with all kind of possible attributes, media-queries, properties, comments, etc. Someone knows where I can find?
 
2:08 AM
FUCKING FINALLY
 
@user6827096 that syntax is wrong. Try something like hour = isNaN(hour) ? 0 : hour
 
God I hate Meteor
 
Meteor...
 
Meteor...
 
that's like socket.js but really old right?
socket.io rather
 
2:09 AM
That's pretty accurate
 
or is it just long polling?
i seem to remember it USED to be just long polling
 
It's got sockets now
 
but i don't know if it does more now
ah
 
But it blurs server/client so passing data is hell to scale
Basically assume you need to paginate everything
EVERYTHING.
 
:(
 
2:11 AM
Like, ffs what's the point of blurring client and server if you make it impossible to pass around a cursor without crazy session manipulation
 
@david thanks (but what wrong with my syntax?)
 
you can't assign the result of an if statement to a variable, and returning in a block like that will return from the entire function
 
ah, ok
 
My first sprint is done as the UI Coordinator and we only have 6 tickets incomplete. 39/54 story points complete. That ratio of 72.22% is up from 45.94% before I took over :)
Avg production gain: 24.69%
Fucking right
 
What the fuck are you doing that 4 significant digits are justified?
 
2:25 AM
People like decimals at my company lol
According to my old PM, it shows precision, which we're all about. Show the customer a whole number and they can be skeptical. Show them the precise calculation, and they believe it easier (also assuming you're not just flat out lying)
 
@SterlingArcher If they like misleading precision, they're stupid.
 
Welcome to government contracting
Oh god dammit
"Remove permissions must be activated on the server to use [remove]." IM ON THE DAMN SERVER
 
are you inside the computer?
 
Get off the server, finish your meal, pay, and leave.
 
If I was anymore inside the computer I'd be paying child support by now
 
2:34 AM
lmfao
 
guys how can I keep an element open ? This element is only displayed when a textbox is clicked. How can I keep is clicked from the console?
 
@snnlankrdsm Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
How can I keep it clicked from the console?
 
What do you mean keep it clicked?
 
@snnlankrdsm Firefox: In the Inspector, right click on the textbox and select ":hover", ":active", and/or ":focus" which will put the textbox in hover state and stay that way (until you hover/click something else on screen or in the inspector)
 
2:50 AM
Hover is different than clicked. Maybe try :active
 
tried both
none of them are working.
 
Do you know why the element does not open unless the textbox is clicked? How/When does it disappear?
 
Is there any apps that let you watch what JS is currently doing? I want to see what's taking it so long... I can write console.log(); bits all over my code but it would be nice if there were an easier method
 
watch the network tab
 
i'm going to delete that because it actually breaks all the things
 
2:54 AM
@Alesana google chrome profiling, timeline
 
@Alesana Edge, Firefox, Chrome all have built-in network request monitor and js profiler.
 
Thanks. I didn't realize it you could track it like that. I knew you could see how long it takes certain scripts to load with network, but I didn't realize that you could track how long specific functions take
When the timeline tab says 283.0 ms Loading, that would mean PHP took no longer than 283 ms right?
 
 
2 hours later…
5:07 AM
6
Q: check if emails match on blur

Euridice01I'm trying to check if email field and confirm email field match each other. That is, the user types in their email and then they have to confirm it again. I want the match/validation to happen on blur (when the user presses enter or the textfield loses focus). Here's my ts file: import {Compo...

 
5:31 AM
question on chrome dev tools, I want to measure time taken before I postMessage from web worker and an onmessage event in the main thread...any ideas?
 
what do I have to do in order to sort an object?
 
5:49 AM
@neoDev compare the objects!
 
I don't know how, I will have a look... however, can you summarily describe what it does please?
 
6:22 AM
@neoDev In many programming languages; it allowed the programmers to sort the list of objects by using the defined methods. Something like order(), map(), equals(), compare(), compareTo(). Do a little research on the framework you are using and find out what they have given for you.
 
sort an object?
I'm not even sure I know what that means
 
Folks, I was comparing how to transfer large objects faster from web worker to the main thread and I stumbled on this: stackoverflow.com/a/34061491/145682 ...would you agree on that answer? Has anyone witnessed it?
 
Objects are unordered by default, I believe.
 
6:50 AM
@Alesana is correct
 
supposing my object is:
{
    c: 1,
    a: 1,
    b: 1
}
 
Hey, any idea wwhy my angular-xeditable dont work, it gives no error and I have followed the starting tutorial. Page does show link but when I click it nothing happends.
 
then I need to DESC sort it
@CrazyNinja do the methods you showed above apply to it?
p.s. @ivarni by "sort an object" I mean order a JavaScript Object keys
 
7:06 AM
I miss you guys <3
 
@neoDev Object.keys(object).sort() -> gives you an array of keys in asc order...
 
oh simply cool
and for DESC?
ideal could be not retrieve an array, but modify the object itself
 
@neoDev keys in JS objects does not have a guaranteed order so you can't "sort" an object. Keys in a Map can be iterated in insertion order though, so unless you just wanted to print the keys in order you might want a Map.
 
in chrome dev tools console they are sorted if I'm not mistaken... curious about they did it...
 
Probably while displaying it
you can display something as sorted even if it's not sorted to begin with
just means you have to sort it each time you need to display it
 
7:16 AM
@neoDev .sort() has an optional argument that must be a function that returns true ... please think
example: .sort( (key1, key2) => key1 - key2 ) gives asc
 
@KarelG of course you mean:
Object.keys(object).sort( (key1, key2) => key1 - key2 )
right?
 
Not sure if you have known about implementing a "Comparable" feature in C# or Java ?
 
nope, I don't :)
 
the sorting function, which accepts two arguments should have three results:
1) < 0 which means that the first object must be **before** other object
2) = 0 which means that the first object is at **same position** of other object
3) > 0 which means that the first object must be **after** other object
 
only thing I know (today I was reading a magazine) is that they use also
this
:)
 
7:52 AM
what a cool logo :D
 
ampersand.js?
I'm not sure it's something I would start using right now but it used to be a good alternative to backbone
 
I am browsing stackshare.io and I found it
atm I am watching some atomic.io videos on vimeo... I never used such a tool
I am discovering a lot of things! :D
 
8:16 AM
that's a cute ampersand. almost as cute as melania trump
 
do you know any VPS that offer a completely free tier? (no quotas etc)
 
@neoDev Well that'd be counter-intuitive
 
aws, google, azure have quotas, and all others I've found so far
 
Because they want to actually make money..
Who'd have thought
 
I need this because I need a remote-always-online linux to whom I can connect through ssh with full root access
I will need it for a short period, like a week
 
8:32 AM
And cloud providers need to feed their families
 
it makes perfectly sense, but I'll buy it if I like it
 
user6845426
Morning guys :D
 
unfortunately I do not have much money
 
I use namecheap for hosting. it's cheap. :-)
 
@neoDev So then pay for it..
@jacobian It's actually rather expensive
 
8:35 AM
paying a sexy girl for one night is also expensive
depends on your priorities
 
user6845426
I know where my priorities are.
 
Hey, any idea why my angular-xeditable dont work, it gives no error and I have followed the starting tutorial. Page does show link but when I click it nothing happends.
 
@neoDev if it's just for experimenting, use virtual machines
 
yeah I did it
now I wnat to restart from scratch or import them
I realised for example that only by importing it into aws I will exceed free tier quotas
I readed also that with so many counters is very easy reach IO limits in very short time without eve notice it
 
user6845426
How would I load an xml file without AJAX?
 
8:44 AM
I am still doing jquery here. so I don't know
 
1 message moved to Trash can
@PureRhymerOrganization Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@F.Bar quite a strange approach, but you can put that in the response of your html or ask the user to provide a file. Both are "non ajax" approach
 
var x = jQuery(".tbl-left-eq tr").length;
alert(x);
if(x == 0){
alert("No data found");
}else{
alert("It has data");
}

why the first condition doesnt alert even thought it equals to 0
 
user6845426
@KarelG Would it be possible to use AJAX and then assign the xml into a global variable in the success: function? I basically do not want to do any operations on the xml when the page is loaded. I'm waiting for some user interaction
 
@PureRhymerOrganization instead of alert, use console.log(x) and check if length is undefined
 
8:49 AM
^
 
@F.Bar you can do that. Or use an object with get / set. Put the data there, and get when needed
 
user6845426
@KarelG Thanks :)!
 
user6845426
I think I'm just going to load it into DOM as a global var and access that way
 
@FlyingGambit yes its undefined
 
mmm... maybe you have something wrong somewhere else
 
8:53 AM
but if I alert the x it give me the total length
 
can you paste a pastebin link, jsfiddle or something?
sometimes I have to properly learn how conditions handle null, undefined, 0 etc... there are so many combinations.. also with == nstead of === etc... I always think to read more about them..
what I am sure about, is that you have to always have perfectly clear in mind all the possible combinations
what you ignore, will happen, will be no good
 

« first day (2299 days earlier)      last day (2663 days later) »