« first day (2046 days earlier)      last day (2905 days later) » 

1:00 PM
@Neil well... i am glad that is settled!
 
@JimmPratt *headnod*
 
@BartekBanachewicz halp!
 
I have a node server which responds irrespective of the hostname requested but the processing part depends on the hostname. Just need confirmation here: a malicious attacker can't just point a bad domain to this server (via DNS, not http redirects) and mess with the sessions/cookies of another domain pointing to the same server, right? Assuming all regular stuff like csrf etc. is taken care off and no access-control headers are sent so every domain has the default cross-origin sandboxing.
 
@Abhishrek what
 
Great. Now I just need to design a page that tells you your browser version is ancient.
 
1:04 PM
OTOH do you recommend a sample mixing / dsp lib in C++?
 
@AwalGarg there was a major security problem recently which allowed another page to run javascript on another page still
 
@Neil wat where how link?
 
I need to find it
 
@SterlingArcher hangouts a sec :D
 
@rlemon LOLOMG
@Abhishrek just a sec! Still logging in and stuff
 
1:07 PM
@AwalGarg I don't know the details unfortunately. I only know it because it was mentioned here
 
Jesus y'all pinged me a lot this weekend lol
 
About 3 ? months ago
 
hello guys
 
@SterlingArcher we missed you 2.9
 
@Neil :(
 
1:09 PM
Hi i need help , can it be found here ?
 
@AwalGarg it is considered an exploit that needs to be fixed, and certainly not the fault of page design
 
@Joseph Probably not, but you're welcome to try
 
That said, given that there may be exploits in the future, you shouldn't count on the contrary
 
the header of the chat
where they show the number of connected guests
 
I am mostly worried about cookies here because browsers are extremely bitchy about cookie setting/unsetting/changing. the spec is ridiculously ambiguous on that as well. and generally every exploit for cookies happens because of an edge case of crossorigin interaction.
 
1:12 PM
@Abhishrek I don't recommend anything related to C++
 
:O </3, C then :3 ?
 
in rust we trust
 
C is even worse
 
@AwalGarg node-modules in rust?
 
sure. the node abi works with rust
 
1:14 PM
Seems interesting
will give it a try for a personal project later
 
if (!$) { ...
 
I am actually looking for a rust like scripting/interpreted language which doesn't take as much time to compile and has a repl and stuff.
@BartekBanachewicz ^ have something to say here?
 
Windows Media Player : CPU Usage 48%
 
@AwalGarg OCaml?
 
1:18 PM
not sure how fast it compiles
in general System-F languages take a while
I suppose C# could be an option
 
@BartekBanachewicz ahh good pick. been meaning to try that too
 
C# takes a decent while to compile a simple fibonacci project
 
but it's really fast in general to build
@Abhishrek this benchmark is retarded af
 
The method of interfacing, I don't trust software benchmarks
 
if you write fib this way you deserve your code to run for years
@Abhishrek that's fine, the benchmark sucks
> the point is not to show if one is faster than the other, just to showcase that Rust can be as fast as C
> in an arbitrary terrible scenario I've handpicked
 
1:21 PM
@Abhishrek it's impossible that Rust is faster than C
 
@KarelG who said that?
 
It builds in some memory safety while C doesn't give a fuck about it
 
@KarelG And who said it has to be slower because of that?
oh god you've triggered my "saying bullshit about languages" sense again
 
have you considered the case that the bottleneck might be wearing a turtleneck?
 
like that other guy who was saying that C is more powerful than Java the other day
 
1:23 PM
@Abhishrek @BartekBanachewicz I can't really pick C# because its linux ecosystem seems meager and I am not willing to switch OSes just for a new language :P
 
@AwalGarg I think Mono nowadays is pretty okay
 
you should try C# just for flavor once though
 
@BartekBanachewicz Core-CLR is coming a long way too
 
especially given that CoreCLR is now OpenSource
 
yeah no, still just can't. it isn't as easy as other options. on the other hand trying out haskell recently was a good choice
haskell felt like another very decently built and thought out language (except for maybe the standard lib). quite enjoyable
 
1:25 PM
haskell is cool until you want to use records
@AwalGarg the Prelude is meh, but there are others available you can import instead
like the ones that fix head
 
I am never gonna use haskell in real life. Just started learning it so I can mock other people :P jk
 
it's pretty usable in general vOv
it's fast and makes it easy to write correct code
 
@BartekBanachewicz yeah, didn't look at the other options. Prelude worked for me. didn't care much
 
It's great for mathy stuff
such as Project Euler
 
i.imgur.com/bolisTT.webm well that was unexpected
 
1:27 PM
@JanDvorak parsing things as well
 
@SterlingArcher allahu quakbar
 
I suck at parsing in Haskell
 
heh
 
@JanDvorak really? I found it so super ez
compared to any other lang/technology I did parsing in
 
I did a series of pattern matches. I've heard there's a better way but never tried it out.
 
1:28 PM
i found this fantastic: i.imgur.com/QhAGerm.jpg
 
@JanDvorak I am mostly gonna use it for writing scripts to do stuff people generally use python for. python is great but why not have an alternative for different days.
 
@JanDvorak o.O Parsec
 
also a lot of people seem to use Happy nowadays
 
This look suspicious for anyone else?
 
1:31 PM
@BenFortune easy proof: stackoverflow.com/questions/37304065/… (check the names)
 
@KarelG Good point, already flagged it anyway
It looks like your node_module have older version of passport . node-data requires latest of passport , please clean up the node_modules plus npm installation folder. then follow my answer it will solve the problem. — ratneshsinghparihar 23 mins ago
lol
 
@KendallFrey @Loktar imgur.com/gallery/LE06yZn lol
 
@SterlingArcher What the fuck lmao
 
I was watching a bunch of unexpected jihad the other day
still glorious
 
@SterlingArcher the next image after that is this
 
i know
 
> I'm tired of accidentally getting aroused by all these sexy cartoons these days.
 
yeah, imgur becomes a softcore porn site
too many of these pictures going to FP lately
i admit that i do like some of these images, but trop is trop ( = too much is too much )
 
@KarelG I turned back on the mature filter, they're just boring
 
I like RHM
 
1:40 PM
@SterlingArcher Meh, it's the same shit every week
 
i have let it on because as said, i do like some of these images. But also NSFW jokes
 
Literally the same images
 
i have seen a dirty joke yesterday which i could LOL
 
@KarelG heck yea
 
hey guys, any ideas why `would not work in IE11?
 
using this as per earlier to put the content of a div into a variable. Works on everything but IE11 with this `, says its invalid
 
@Loktar Do you play EVE Valkyrie?
 
@Loktar memories heh ? I still recall some QQ fights if one failed to "work hard"
 
@KendallFrey yea
 
nice
 
1:43 PM
or that someone used the stick so intensively that I was worrying that it would break
 
I played it a bit last night
 
new patch is coming out really soon so I've taken a break
 
pretty excited to play again
 
I think it's out tomorrow
@KarelG haha
 
@KirstyMarks the backtick character ? Are you using eval() function or somewhat?
 
1:43 PM
yeah I have my own cocktail arcade and I worry about that
 
`` is ES6
 
yes for template strings
 
no im not @karelG, im just declaring some content of a div as a variable, and putting this into a div with innerHTML.
it works on Edge, and everything else, but seems to not like it in IE11
 
ah, as ben said, it's ES6, which isn't supported in IE11. You have to use polyfill for that (babel)
 
1:45 PM
ah ok,... hmmm need to google that one :S
thanks both :)
 
@Loktar custom build ?
 
@KarelG from a kit actually
I need to buy vinyl to go over it, I hate the wood look
 
Alright I gots a react problem... should render functions re-compute after an event fires in redux that updates the state?
 
@corvid if state updates the component should rerender
 
Strange, I don't think I am getting a recomputation, or my render function isn't working correctly
 
1:47 PM
@Loktar your mom loves the wood, look:
 
lol @KendallFrey
me and you will need to party up for Valkyrie
/me drives into work
 
can you do that?
oh right there was a squad thing
 
is there any good examples that anyone knows of to explain poyfills please :)
 
1:50 PM
Can a CSS preprocessor like sass or less be used to import only a selected google font?
does SASS support if logic?
probably not...
 
@KirstyMarks almost every ES6 function has a polyfill example on the MDN
 
thankyou :)
 
no problem
@Loktar don't drive into work, that's an insurance nightmare
 
hmmm searched backtick and nothing on there :S
 
what?
You mean string templating?
 
1:54 PM
^--
!!tell KirstyMarks mdn "string template"
 
0
Q: HTML5, ES6 template string polyfill

lokeshjain2008For our application we need to use new feature template string. var verLongKey= `834r845784576485 y84ery5845y485yu843 483y53485684576845 jhu87843647356756745==457485,mh ererthe8t0998785==ery8`; But old browsers(like android default browsers) don't support template string. How can I get polyf...

 
ty
hmmm, surely i can write this var with div content without backticks, will have a look back at this chat, as polyfill is something i need to read
 
You won't be able to polyfill template strings though, it's a language construct
(I think)
 
So, I have this function called "waterfall" that runs every 5 minutes. It's a fairly complex algorithm.. takes maybe 45seconds to 1 minute, depending on how many radio frequency signals are recorded. Right now it's run on a 5 minute interval. I dropped it to 1 minute, but sometimes it takes slightly over 1 minute..
I could turn it into a recursive function, so that once the waterfall sequence completes, it just runs immediately again, but then I lose the ability to gauge a "Time to Next Frequency Authorization"
Is there a way to make a timer that estimates how long a recursive function runs and uses that?
 
Well hello everyone!
 
2:05 PM
	$(function() {
    var i=0;
    var googleApi = "https://www.googleapis.com/books/v1/volumes?q=edgar+allan+poe&callback=handleResponses";
    var googleData;
    $.getJSON(googleApi, function(json) {
        googleData = json.books;

        setData()
    });

    function setData(){
        var j = googleData.length > (i + 9)  ? (i + 9) : googleData.length;
        for (; i < j; i++) {
            var googleThumb = googleData[i].thumbnail;
            var img = $('<img style="width: 250px; height: 250px;" src="' + googleThumb + '"/>')
 
@Leonidas * kicks you* THIS IS SPARTAAAAAAAAAA
 
Can someone tell me what's wrong? It should grab the thumbnails and post them inside the #book-shelf
Along with that I've got an empty <div id="book-shelf"></div>
 
Hey, I´m doing my first steps with React. After I changed some code I run webpack server to show up my results. Even with a small amount of code this process take around 3 min. This is a way too much for dev. What am I missing here? How can I speed this up?
 
@KarelG You know it
 
There's no reason why you can't use an async function in redux, right?
 
2:07 PM
2029
Q: How do I return the response from an asynchronous call?

Felix KlingI have a function foo which makes an Ajax request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. fu...

 
export function request() {
  return async dispatch => {
    // some async here
  }
}
 
Oohhh I think I have an idea.
How accurate is JS when it comes to "timing" a function?
let now = now();
waterfall();
let done = now();
let time = done-now;
 
@SterlingArcher let's say, 1ms precision?
 
That's good, that's good. I could have a running "average signature time" and send that to the front end...
Beautful
Dis gone be gud
 
I said precision, not accuracy
 
2:12 PM
@SterlingArcher use performance.now()
nano micro seconds I guess
 
How do you even realize nanosecond accuracy?
 
@SterlingArcher now uses the basic system timer, which on Windows has ms precision and 50ms accuracy.
 
or micro second
 
the performance timers are significantly better
 
test
 
2:14 PM
performance timers? I'm using moment.js
 
^ nvm that. just testing
 
!!> performance.now();
 
/me takes to sandbox
 
@SterlingArcher are you benchmarking or is this for prod code?
 
It's for production. We want to provide an "estimated time to next authorization" on the security API interface
The client side won't ever see it, they just login like normal
Unauthorized location = denied access
 
2:16 PM
> "estimated time to next authorization"
what is
 
The security GUI runs off API methods -- it pings the server every 5 seconds for a change, and resets it's timer (1 minute right now) when it gets a new encrypted signature (RF)
Both the algorithm and the front end have a syncrhonized timer, so they reflect each other within 2 seconds (which is great, according to the customer) but if I go recrusive and no interval loops, I won't have that synchronization
 
@SterlingArcher split your timer methods into a class you share between other things (a context, of sorts) and call them from everywhere else
 
Hi guys
 
So make a timer class with it's own methods?
That's a good idea, that way I don't have to muddle the signature API with timer returns
 
Can anybody please give me some performance optimizing tips
Please
 
2:22 PM
@Learning The first step is to find out what is slowing you down
 
@JanDvorak sir not me
My code
 
@SterlingArcher maybe a utility class, if the timer is truly global, otherwise a TimerContext { start(); stop(); sync(); }
 
I'm not a sir, and the advice still stands
 
@Learning run your code through the profiler and don't vamp
 
@ssube that's a good plan, thanks bro!
 
2:24 PM
I have run it but I guess its my animation that sucks
It is consuming lots of memory and hang my browser
 
@SterlingArcher and the thing that recurses just needs to do recursiveThing(thingA, thingB, timer = TimerContext) sort of deal, so you can pass the timer down
@Learning what does the profiler say?
 
+1
Imma go give you an updoot because that's smart af
 
@ssube actually to be honest I have check the browser but didnt quite understand where performance problem id
Any basic tips like performing catching or something like that
 
@Learning We pointed you to the browser's profiling tools and their documentation last week. You need to start using that and stop asking the same vague question, cause that's the definition of vamping.
 
I wish I could record gifs on my phone so I could just upload mini videos for y'all
 
2:28 PM
@ssube yeah I understood but still animation is 1 performance problem for sure
@ssube yeah I understood but still animation is 1 performance problem for sure
Because I am continuously moving my div on web page and drawing line between this 2 div
 
@Learning Without any mention of what you've actually tried and how you're attempting to fix it yourself, it just seems like you're asking for help without actually doing anything, which will eventually get you kicked.
 
And so when this connectimg div moves randomly on page so I have to maintain line between this 2 divs
I have rven tried using velocity js for animation but still that didnt worked out
 
This is a curious question: stackoverflow.com/q/37393714/6220751
 
@rlemon they made it better
 
@ssube I have search alot about this that any js which does animation smoothly and take care of memory management
 
2:32 PM
 
@ssube I was just about to post that lol good find
 
@Tuvia no, you made the question worse.
 
@ssube I updated the grammar, no?
 
!!afk walk
 
2:36 PM
@Tuvia changed but did not improve
 
k
 
@Tuvia you change too much. Also, the tittle contradicts now
 
@KarelG k. mistake on my part.
 
it's not the first time if i look to the stats. 50% of your edits got approved
 
@Tuvia no worries, I've had dozens of rejected edits
 
2:42 PM
Hey, guys! I need advice. The keyword `debugger` does not work in event handler of `onload` event?

<script>
window.onload=function(){
var drawingSurface=document.getElementById("drawingSurface");
var ctxt=drawingSurface.getContext("2d");
debugger;
ctxt.lineWidth=3;
}
</script>

is it normal behavior in `onload` event?
 
Yeah, don't sweat it. I had two edits rejected today. One fixed a misspelled forEach and the other a clear syntax error. No biggie, but weird.
 
@KarelG How do I see that data?
 
How do I make a div invisible?
Or make a div dissapear?
 
@thepiercingarrow using css?
 
@StepUp what is debugger..? It's not defined, it's not a function call.. it's just there
 
2:43 PM
@thepiercingarrow set the visibility
 
@thepiercingarrow display: none;
 
@SterlingArcher it's a keyword
 
@ssube But like, hide the entire div
 
@thepiercingarrow you can either hide the display, but keep the space, or remove the space entirely -- which one?
 
@thepiercingarrow yeah, set the whole thing to not be visibile
 
2:43 PM
@SterlingArcher it is a keyword
 
So the user can interact with stuff underneath it
 
@ssube oh, I didn't know that
 
@SterlingArcher it triggers a breakpoint if the debugger is open when execution hits it
 
Like for example, in agar, to make the menu to dissapear
 
the equivalent of INT 3 in assembly
 
2:44 PM
@thepiercingarrow I bet you I can easily google this, but I'm gonna give you the chance
 
@ssube I've tried in browsers such as Opera, Chrome and IE, but it does not work
 
INT is an assembly language instruction for x86 processors that generates a software interrupt. It takes the interrupt number formatted as a byte value. When written in assembly language, the instruction is written like this: INT X where X is the software interrupt that should be generated (0-255). Depending on the context, compiler, or assembler, a software interrupt number is often given as a hexadecimal value, sometimes with a prefix 0x or the suffix h. For example, INT 21H will generate the software interrupt 0x21 (33 in decimal), causing the function pointed to by the 34th vector in th...
 
@StepUp If all else fails. Use Opera.
2
 
@StepUp that's pretty weird. Are you sure the code is getting that far?
 
@Tuvia
@Tuvia yeah, I've tried ti test it in Opera
 
2:46 PM
@Tuvia s/all/nothing/
 
@Tuvia and it does not work
 
@SterlingArcher I tried
 
@ssube tomato tomahto.
 
oh really?
 
@ssube I am sorry, what do you mean?
 
2:46 PM
@StepUp add some console log statements to your handler. Before and within.
 
@thepiercingarrow ^
 
console.log('binding')
window.onload=function(){
  console.log('invoking');
  ...
}
 
@ssube this code perfectly works and console.log statement workd
 
It said to change display from block to none
But when I did that, I still couldn't interact with the stuff underneath
oh. I also have to change visibility?
 
@StepUp it's just ignoring the debugger? Do you have a debugger open and bound to the browser? Check the flags for a "ignore debug statements" option?
 
2:48 PM
lol you do -w3schools XD thats funny
 
Quick help guys. I've got this JSON googleapis.com/books/v1/volumes?q=edgar+allan+poe and uhm.. How can I edit the link to show only saleability: FOR_SALE?
 
Cmon man, read past the first link
 
liek its stated inside it
 
The second link explains the different between display and visibility
 
@JohnDotHR you don't just edit the link, you need to take the data and run it through some map/reduce type stuff.
 
2:50 PM
@ssube yeap, it is just ignoring debugger keyword. I am just checking in a browser(Now it is a Opera)
 
@StepUp I have no idea why that would happen. I'd suggest adding some console.log statements, run it and grab the output, then post both on SO main.
 
@SterlingArcher awesome link thanks!!
 
If you say "I tried" and it's the second link again, I'm going to yell at you :)
 
@ssube it is really intesting, but it starts to work!:) Thanks! It works because of you:))).
 
@SterlingArcher But its jquery :(
@SterlingArcher I'll just go down the links and see if I find something :)
 
2:54 PM
triggered
 
Thanks!
 
@ssube I just reloaded page when I've been in Developer mode in Browser. But it did not work when page is loaded(the first time).
 
yeah, the dev tools have to be open when the debugger statement is executed.
 
!!afk project planning meeting
 
if you open after, it's in the past
 

« first day (2046 days earlier)      last day (2905 days later) »