« first day (1794 days earlier)      last day (3376 days later) » 

00:08
auto complete in the website or the omni bar?
Because you programmed it that way
 
1 hour later…
01:33
hello
what's the best approach to use auto refresh using ajax..
is it okay to use setInterval?
WebSockets
because when I open my developers tools, under the NETWORK TAB. the function always calls, unlike to the others
thanks @SomeKittens
now i know why i didn't see any request under the network tab..
02:05
@towc Yeah, that was intentional
 
1 hour later…
03:22
I have a stupid JS question.
var topics_en = ['nhl' , 'nfl', 'nba', 'mlb', 'football', 'soccer', 'baseball', 'basketball'];
var topics_de = ['football','ice hockey', 'handball', 'sledding', 'motorsport', 'cycling', 'handball'];
var topics_ru = ['basketball', 'volleyball', 'ice hockey', 'bandy', 'figure skating', 'tennis', 'wrestling', 'fencing'];
I'm selecting the language randomly as follows -
var lang = langs[Math.floor(Math.random()*langs.length)];
where
var langs = ['en','de','ru'];
Now, I want something like this to happen, depending on the value of lang.
var topic = ('topics_'+lang)[Math.floor(Math.random()*('topics_'+lang).length)];
I can use conditional statements to get the one I want. But is there any way I can dynamically name the array based on the value of lang?
So, if lang = 'en' then
var topic = topics_en[Math.floor(Math.random()*topics_en.length)];
I would've searched google, but I don't even know what to search for.
hint: var topics = { en: [], de: [], ru: [] };
ah.

var topic = topics[lang][Math.floor(Math.random()*topics[lang].length)]
Thanks.
but, is there any way to do what I wanted above?
although I do think your way is nice.
03:41
My uni has an R course, nice
04:04
The few dozen doors that have little Christmas trees on them are a nice touch.
3
04:28
why everyone looking dull here?
 
1 hour later…
05:53
Mornin'
0
Q: What would you choose to close an offtopic question which also a duplicate?

Your Common SenseImagine there is a question which is essentially offtopic, asking for debugging help but even failed to provide an error message. By one of it's issues it's also a duplicate. Given you've got a Mollnir dupe hammer and an offtopic vote will never get to all five, what would you choose? Close a...

'd as not seeking input
He's giving 4 possible actions, 2 of which are just in there to criticize SO...
Oh it's that guy again
Yea
It's not like I have his profile open or anything. His "contributions" are just of continuously low quality. Or even actively harmful to SO.
06:18
I cv-ed as dupe instead, since it's a non-whiney version of that question from last year already on the site
That works too
06:43
Closed :-)
It's ironic that the fact that it was closed as off-topic now contradicts the answer saying it should be closed as a dupe :)
But then the dupe isn't closed as off-topic so this all gets very confusing now
It seems it got more off-topic than dupe votes
07:05
-6
Q: Simple for loop addition sequentially

konigsblueI have searching but no luck, for loop that logs addition sequentially,,, var num = 4; var val = 25; for ( var i = 0; i < num; i++ ) { // help code here } // then logs 4-times - 25 - 50 - 75 - 100 Thanks.

It already has 4 votes. It's literally asking how to log 25, 50, 75, 100 from a loop.
And closed <3
var num = 0;

var val=0;
while(num<4){
  val +=25;
  console.log(val);
  num++;
}
this code is just horrible
And it's the accepted answer
The more reason the question could use a delete vote
why'd you move from using a for loop to a while loop and dump the magic number 25 inside the loop like that is beyond me
the OP doesn't care as long as the code works
at least the original code kept the magic numbers outside
07:09
Then increment the variable that seems like a constant
well it's supposed to be negative though isn't it?
Ehm
Heh
Looks like it
console.log('-' + val); ;)
Subconsciously, I always felt: An old dog doesn't like learning new tricks, but software industry expects relearning same stuff(a new programming language) but today I heard to a senior technician saying this
07:51
sorry to break it to you, but your senior technician is bad
Hi guys! Is there any way of seeing the request and response headers on $http.post with angular js?
Using the console on the browser or otherwise?
@shyam, have you tried opening the NETWORK TAB?
@DyrandzFamador No. I'll give it a try. I'm a Java developer basically. So, I'm a little unfamiliar with JS and it's debugging.
Wow! Thanks. Silly me! :)
what is the purpose of the dist attribute in package.json?
1
Q: Redirect but keep an element

LeviathanIs it possible using php,JS/Jquery to redirect an entire page but keep a single element on the page after the redirection? Example: <?php header( "refresh:10;url=location2.php" ); ?> <div class="stay"> I want to stay!!</div> Is there a way to have the div element stay once the redirection ha...

would anyone mind having a quick look at this unanswered for me?
08:11
how can I get browserify to install from node_modules?

I tried changing foo = require('./jquery'); into foo = require('jquery');
08:30
sorry to bother you guys, but can you pass this in a $.when().done() {} ?
@SuperUberDuper I thought it did by default?
@AwalGarg Alright thanks for taking a look! :-D
I figured it out guys, for those intrested: $.when().done({}.bind(this));
@Naruto Wat, done's argument should be a function
That's a syntax error in fact.
08:39
@BenFortune $.when().done( function(){}.bind(this)); I just wrote it in short, tought it would be clear :)
i used peerjs peerjs.com in my appication, but when i hosted in https its not working where in http it is working, can anyone tell how do i convert that peer.js http to https
Did you see that ?
Cool. Now the Chrome debugger displays variable values next to assignments. http://t.co/Nda0E3Mc31
@DenysSéguret it's done that for a few months
does peerjs supports https?
@phenomnomnominal Hu ? Not for me. Why don't my browsers love me ? :(
08:49
@BenFortune same here
@DenysSéguret which repo are you using for chromium?
@FlorianMargaine I'm using Chrome right now
same question applies :)
Seeing the new debugger feature, I am getting more and more depressed staying on Firefox...
08:54
@Sheepy Imagine how depressed you would've been if you were using IE
chrome's really a developer friendly :)
@RoelvanUden \("▔□▔)/ I'll surrender (depends on the pay)
@Loktar omg your js13k is so fun
Poor frogs :(
@Loktar the visual effect when you kill a frog is really nice
09:19
@FlorianMargaine link ?
@DenysSéguret pins
ok, thnaks
09:34
Yeah, I've had a play. It's a great submission.
@Cerbrus And reopened it seems :p
09:52
Anyone else seeing that?
Isn't there supposed to be some sort of website there? O__o
Website loads fine for me
@OliverSalzburg Same here.
@OliverSalzburg looks like they just updated it
@OliverSalzburg Try https://nodejs.org
@Sheepy Nice. Thanks
09:56
@ivarni Goddamnit
Reopened by a bunch of users I've never seen before
2
Q: What would you choose to close an offtopic question which also a duplicate?

Your Common SenseImagine there is a question which is essentially offtopic, asking for debugging help but even failed to provide an error message. By one of it's issues it's also a duplicate. Given you've got a Mollnir dupe hammer and an offtopic vote will never get to all five, what would you choose? Close a...

Not to mention the excessively negative attitude of the post.
I think I've seen this question / discussion this morning... I do think the answer is better than the one in ivarni's proposed dup, though.
I linked it this morning
10:12
hello everyone, i need a bullet navigator to use has a scrolldown on my page, any suggestions? should i use a plug-in?
Yipee I finally earned 100 reputation :P
@Japa Just use some javascript :)
you mean create all the bullets and add class active a non-active etc?
@Sheepy: What annoys me about that post is that the guy is just disguising his criticism of how SO works as a simple questions
@Japa yes but in order to have some smooth scroll effect, you have to use js
With 2 non-answers
Shit like that coming from a 92k user is actively harmful to the site.
10:15
@Cerbrus ?
@Cerbrus i didn´t understand..
I wasn't talking to / about you.
oh...sorry
@Japa if you are using jQuery then you can use scrollTop() method
10:17
@ZahidSaeed i´m actually using that to scroll down, but with a simple button and it scrolls smoothly...but i never used it with bullets
@Japa Then try it. It will surely work like a charm :)
thanks
10:46
Charms don't work.
gist.github.com/argentum47/4bd6a4cb960b33728b40 why does the describe 'a tree' spec fail saying AssertionError: expected { Object (size, _root, ...) } to equal { Object (size, _root, ...) } at Suite.<anonymous> (/home/kreetiuser/dev/javascript/voting-app/test/immuatble_spec.js:42:22)
Object equality isn't so easy in javascript
:( what would be the correct spec ?
expect(thing).to.deep.equal(otherThing)
If that's chai, then equal means ===
10:53
deep equal works charmfully :P
:-D
Hmm, for a second I was concerned that I had double vision. But then I realised that I was holding up two fingers.
no wait .. actually its odd, the describe block doesn't run at all, coz it shows only 2 tests passing
ah, I forgot the it block
11:32
@rlemon "What is this cultural Marxism doing in ramen?"
lmao
did not expect that ending though :,)
12:07
@rlemon is star trek online worth an hour of time ?
Moral of the story: lower your expectations, and you can achieve anything!
@rlemon lmfao
@Neil o/
@Abhishrek \o
How you doing ?
badly
got a client with a problem that I can't reproduce here
12:20
window.open("www.google.com", "_blank", "width=900, height=600");

// how should i make this window freeze at top when ever user click this window should not go hide, this should stay always top
@Neil may i be of any help ?
I excel at breaking completely functional things
@Neil Optimist! :-)
@Abhishrek It's complicated because our software is needlessly complicated :P
@Neil okay then.
I might freelance for a while now :-)
it's legacy project written in c++ that was dropped into my lap some years ago and I hardly have to do anything
12:23
I have decided to go ahead and pursue higher education and pay fees. Any suggestions ?
one day out of the blue, they decide to install it on windows 8 and now it doesn't work
@Neil ow native code !!! May the source be with you !
thx
Erm there I can help :-x
@Abhishrek good for you!
I recommend to pursue higher education before you pay fees ;)
In that order
12:26
Good morning
Monday ^^
@Neil I will have to move out of the country for that.
PYTHON 3.5 RELEASED OMG OMG
it was released yesterday
@AwalGarg that news is so yesterday..
yeah, like JavaScript frameworks...
12:30
so true
If only JS frameworks were so yesterday.
o/
@AwalGarg BAH DUM TSSH
@GNi33 \o \o \o
@AwalGarg Does anyone use Python 3+?
I use
12:38
I thought most of Python devs were still doing 2.7 (or whatever it is now)
@RoelvanUden debian is being ported entirely to 3+
Ah, that's a work-in-progress then? Cool.
window.open("www.google.com", "_blank", "width=900, height=600");

// I want to stay this window should not go hide
Spotify seems to have uninstalled itself from my pc
Wonderful
Debian's step would also likely play a big role in encouraging other Python devs to move to 3 as well.
12:40
Why does it install in AppData anyway
That's not where programs go
@RoelvanUden Python <3 is not longer being supported starting in 2020
no pun intended
will *
fuck grammar
@RoelvanUden UK schools, by the looks of things: google.co.uk/…
I'm not the only person that sees something wrong here, right?
@Cereal Because no admin rights. Locked down computers with restricted permission sets don't allow you to install it otherwise. That's useful in corporate envronments.
@catgocat Tell that to a parser.
12:45
^^ atom does that too
@BenFortune lol
@BenFortune wait, what?
Chrome installs in AppData too.
@Zirak HOW is your browser action not lagging?! o.O (also why does it have to fade in wasting my 2 seconds?)
12:53
Oh for the love of god. If I type "test" instead of "text" one more time, I'm going to stab something
@Cereal yourself?
*keyboard
3
Q: socket.io authentication with sharing session data, how io.use() works

SrleInspired by How to share sessions with Socket.IO 1.x and Express 4.x? i implemented socket authentication in some "clean" way where is no need to use cookie-parser and to read cookies from headers, but few items remain unclear to me. Example use last stable socket.io version 1.3.6. var express ...

@catgocat With any luck
12:57
Just 1 more ! We can close this piece of crap again. meta.stackoverflow.com/questions/305997/…
Jesus christ that flag
Fuuuuck
LTNS NSFW flag
So that was on my work desktop for a couple of secs
inb4 meta post: chat flags ruined my career?
12:59
I feel like I've missed out on something important
@Cereal Like?
Nah, just some naked anatomy
Fake naked anatomy
Like, really fake.
No way that was natural
13:01
I'd assume it came from two different persons
@JanDvorak Looking at the orientation of the stick, yes.
@Cerbrus not even that, one person couldn't possibly have this much anatomy unless something really weird happened involving hormonal distribution in their early childhood.
@BenFortune, thank you good resource to start with
Even then, anatomy that competes in size with equines is unheard of.
@BenFortune :( what did I miss?
13:03
@rlemon Just some fake titties and a mediocre schlong.
!!s/mediocre/plastic/
@Cerbrus @rlemon Just some fake titties and a plastic schlong. (source)
@JanDvorak You thought those were real?
define "real". "untampered with", or "actually stuck to the body"?
@rlemon: thanks for the cv ;-) It's already got another reopen vote -.-
13:06
@JanDvorak Implants
Guess so...
@JanDvorak Probably real, definitely tampered with, absolutely stuck to the body, but dubious whether it's with glue or grown there.
It's not healthy, is it?
@Cerbrus or photoshop
That's an possibility too.
Linked college friend to vanillajs website, he asked if it can run with JS disabled :-P
13:09
@AwalGarg It just...doesn't
I hit the shortcut, and it's there. I type, and things happen.
It fades in for me :( (ok not 2 seconds at all but yeah)
The fade in is some weird Chrome thing, unfortunately I can't do anything about it. But it takes about as much time as the modal version to show up.
And it doesn't interfere with the page
The more I think about it, the more I want to PR chromium and add this one friggin feature
But they'll just shut me down
what feature?
Switch-to-tab
It's oddly been suggested before, but was removed without explanation: chromiumcodereview.appspot.com/10631009
chromium is only technically open-source
13:13
You don't have to tell me...
nice. got into work and boss tells me there is a heisenbug I have to solve.
but I wonder why is your browser action not lagging :/ it should lag
Should lag?
browser actions lag... they just do. all of them. but not yours. you friggin wizard
Which browser actions lag for you?
(and yay, mine doesn't lag, I win)
13:15
What're we testing for lag?
awesome screenshot, tampermonkey, great suspender etc
@Zirak just installed it
Uncaught SyntaxError: missing ) after argument list
:D
@FlorianMargaine Let me guess, you're not using Chrome 45
(or above)
oh, fat arrow :)
13:20
@Zirak I think they all lag because they all load jquery and google analytics (and some others?), and you don't
florian@debian:~/Applications$ sudo apt-get dist-upgrade -s | grep chromium
  cdebootstrap chromium cpp-5 cups cups-browsed cups-client cups-common
Inst chromium [44.0.2403.157-1] (45.0.2454.85-1 Debian:unstable [amd64])
Conf chromium (45.0.2454.85-1 Debian:unstable [amd64])
florian@debian:~/Applications$
yay, problem about to be solved :)
so it takes time for them to display the stuff
so they don't really lag just take time to load
@FlorianMargaine I'm going to some family dinner thing blah blah, and after that, by Jove, I'll rewrite the entire friggin pacman-fs
@AwalGarg Yet!
@Zirak lol
@Zirak I'm working on hermes these days. Right now, HEAD is not working.
Switcheroo v2: More jquery and bootstrap and angular
@FlorianMargaine Your project's cooler, that is true.
@Zirak and 1 less user >:( (or however you draw that angry emoticon)
I still believe in pkgfs. It's a good idea, and it's my fault it's been held back. I want to get public opinion on it.
@Zirak I believe it's pretty cool too. Since the project is pretty nicely working on dpkg (although some improvements are expected), I'm just waiting for you :)
!!urban >:(
13:23
@AwalGarg >:) Evil grin smiley. Typically used when planning evil deeds.
ummm... fuck emoticons anyway
@FlorianMargaine thanks :)
I focused on that the most I think, I wanted killing them to feel satisfying
@FlorianMargaine Have you been eating-your-own-dogfood with it? Has it been enjoyable so far?
@Loktar What have they ever done to you? :(
@Loktar /r/nocontext
13:26
@GNi33 talking about my JS13k entry, I replied to Florians comment about it
yeah, just saw it ;)
@Zirak kinda, I just don't use apt/dpkg that much
well, on my laptop, that is
@Zirak After I navigate to some tab with switcheroo, somehow ctrl+tab doesn't work (page isn't focused), clicking on the page makes it work again. can you repro?
@AwalGarg uhm, nope. Chrome version/OS?
Google Chrome	45.0.2454.85 (Official Build) (64-bit)
Revision	4321fbd965a0cfb327829005e6054c07669f81d5-refs/branch-heads/2454@{#439}
OS	Linux
Blink	537.36 (@201276)
JavaScript	V8 4.5.103.29
13:28
and right now, I couldn't use it because there's no equivalent for dist-upgrade
I also can't get the packages to update
hmm... actually, maybe I could
@AwalGarg I'm going in a minute, can you open an issue to remind me? I'll check it out
using something like find /pkg/installed/ -name version -maxdepth 2 -type f -exec diff {} /pkg/index/... hm, nope, that's not gonna work.
@Zirak uninstalled and reintalled, solved now :/ it also didn't autoregister the shortcut before but now it did. weird
@AwalGarg Non-webstore extensions are weird creatures
Maybe for v1 I'll lose my soul and publish it
I can publish it for you if you want to keep your anonymous side.
13:31
fun fact: zirak has exactly 1 soul
Nah, I've made a "fake" google account (Zirak Ertan). It's just...yuck
@Zirak google + suggested "Zirak Ertan" as known people to me. Is it really you? I thought you are too paranoid to be on G+?
wait
ok
@AwalGarg If it's the awesome moustache, then it's me
dunno, that message went to haydes. what I didn't know is that I am on G+ too.
google should break down. they have too much control over things
yeah, they should break down into multiple companies
under a single company named something like "alphabet"
13:35
and the multiple companies don't talk to each other or share data
btw, I am reading 9780070667587 now. I didn't know kernel vs user level code was a thing. sigh
9780070667587?
!!google 9780070667587
you really give the ISBN to define books?
@FlorianMargaine lol
13:43
2 days ago, by Awal Garg
you destroyed my attempt at reducing the number of keystrokes I had to make
you just suck
@AwalGarg Ha ha!
class Watcher {
    constructor(container) {
        this.parsers = [];
        this.container = container;
        this.observer = new MutationObserver(this.defaultParser).observe(container, {
            childList: true,
            subtree: true
        });
    }
    defaultParser(records) {
        records.forEach(record => this.force(record.addedNodes));
    }
    addParser(parser) {
    	this.parsers.push(parser);
    }
    force(nodes) {
		[...nodes].forEach(node => this.parsers.forEach(parser => parser(node)));
_this.force is undefined.
after passing through babel.
does => without {} create a new 'this' context?
generated code?
@FlorianMargaine :D
13:47
@rlemon does MutationObserver call with the correct context?
    _createClass(Watcher, [{
        key: 'defaultParser',
        value: function defaultParser(records) {
            var _this = this;

            records.forEach(function (record) {
                return _this.forceParse(record.addedNodes);
            });
        }
    },
dammit, it does.
okay, problem solved.
wait, no.
that should work.
52 secs ago, by Florian Margaine
@rlemon does MutationObserver call with the correct context?
appears to
er, no
there you go :)
13:49
this.observer = new MutationObserve(n => this.defaultParser(n))..
will probably work
@rlemon please report ^
yup
chrome just fucking SUCKS
Array.from is not a function
eat a dick chrome.
chrome 45 has that. upgrade.
I use main stream only
chrome 45 is stable
chrome 45 has the profile button
13:53
seems I am on chrome 45
just not my laptop
well that is balls. I don't get an update option on linux
windows updated already
Is it as fast as they claim?
hey guys
I can be either a Python Cloud Engineer or a Product Engineer. The work is the same, just deciding on the title. What should it be?
!!> Math.random() > 0.5 ? 'Python Cloud Engineer' : 'Product Engineer'
@SomeGuy "Product Engineer"
13:56
fate has decided
Product engineer; don't mention the necessary evil
@FlorianMargaine Python Butt Engineer*
I think your choice is clear.

« first day (1794 days earlier)      last day (3376 days later) »