« first day (2172 days earlier)      last day (2769 days later) » 

12:00 AM
@AlexanderGoncharov that answer has many issues. Two elements can't use the same id, and you could just use #id.
 
12:13 AM
@Loktar ohai mai luv :D
 
@littlepootis two elements can't use same id by standart. But you can use it in DOM, dont this?
@littlepootis there will no errors. But #test - selector for querySelectorAll will return first element with id test. I'll complete the answer with this note
 
12:38 AM
hey @GottZ
setup complete
took for dang ever
acer x34 ultrawide
fooking love it
 
@Loktar looks alright
 
thanks
 
lol jk
 
fucker.
lol 34" and 27" monitor
 
it looks great
 
12:43 AM
I have to turn my head a lot
 
@Loktar boo hoo
 
:P
 
 
3 hours later…
3:57 AM
that feel when you break javascript that far that even its error messages read weird :D
 
new to web dev can somebody please advise where should I start from? mark pilgrim's dive into HTML5 or head first HTML and CSS?
 
@vishurathore 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.
 
or any other good resource?
 
4:18 AM
@GottZ you mean the wrong article? (a undefined vs. an undefined)
@vishurathore Depends on which kind of web dev are you. Some like to stick with dreamweaver. Some prefer vim. Some swear by jQuery some stay clear from it.
@vishurathore Either way, there is no shortage of tutorials, so Google is as good a start as any.
 
4:49 AM
I AM STILL ALIVE!
 
me too :D
7 AM here in germoney
btw i'm streaming on twitch for.. a bit more than 18 hours right now xD
(gamedev)
its quite boring though twitch.tv/noepel
 
5:08 AM
Hi
 
@HarishKumar 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.
 
 
1 hour later…
6:35 AM
wtf
jsx support in 300chars
how does it even...
 
7:09 AM
@SterlingArcher No
And according to the duplicates I can see the one you listed isn't there
 
7:25 AM
When using translate(-50%,-50%) on a div, the whole div gets blurry , I never figured out how to solve that problem. Anyone?
 
@GottZ Seems pretty clear to me
 
7:50 AM
0
Q: In Adobe Acrobat XI Pro, how do I keep leading zeros

codieboieHow do I retain a 0 in the numeric formatted fields when the zero is at the beginning of a number? right now the field drops the 0 and proceeds to display the second number. For example, in the number field, if i enter "00100", then it displays as "100". I have written a keystroke script to acce...

Please help
 
Okay, what do I do when my tests pass locally, but on the CI I get a weird Uncaught error outside test suite without any more information :P
 
Whenever I see a picture of the moon where the points go more than halfway around, I assume it's being eclipsed by one of those Independence Day ships and interpret the rest of the image in light of that.
2
 
@Feeds I felt only the last line as funny
 
 
1 hour later…
9:04 AM
GM OL
 
9:48 AM
Hey
anybody worked with converse js?
 
Do you guys know any shortcut to the following?
promise.then(res => {
    doSomething();
    return res;
}, err => {
    doSomething();
    throw err;
});
basically, put something in between promise handlers?
 
doSomething().then(promise);
?
 
@poke i don't know if doSomething returns a promise, but couldn't you do promise.then(doSomething).then(res => res, err => { throw err });
 
err, no
 
@ssube Yeah, TypeScript 2.0 is absolutely brilliant. :3
 
9:54 AM
@bitten That won’t work if promise is rejected; then the doSomething wouldn’t be called.
@FlorianMargaine I want doSomething to run after the promise but before then next then/catch though
 
yeah, my bad
 
@poke ahh i see
 
@poke so finally is not what you want either... sorry, verbose way is the only way I can see too
 
user5020521
can anyone waste a little bit of his time on this?
 
user5020521
0
Q: cordova inappbrowser cannot open an external url on iOS

RiccardoI'm developing an hybrid app in phonegap and basically I have a button in the index page which whenever is clicked opens up an external url. I succeed on Android and fail on iOS. I've looked up this question iOS / Cordova: InAppBrowser not working and this one cordova/phonegap onclick doesn't w...

 
9:59 AM
I’m writing some really odd utility function now… :/
 
10:13 AM
@BenjaminGruenbaum Did you see @poke 's question ?
 
10:34 AM
@DenysSéguret no
 
And now, do you have a cool answer ?
 
promise.finally(doSomething).then(...)
Eh, but that probably won't pass through res :P
Not chaining would help then though ;D
 
wrap<T>(promise: Promise<T>, callback: () => void): Promise<T> {
    return promise.then(res => {
        callback();
        return res;
    }, err => {
        callback();
        throw err;
    });
}
This is what I wrote now :P
 
11:26 AM
Ahhhhhhhhh, week off
Might get my gameboy finished this week @rlemon
 
11:43 AM
Hi, anyone here knows how to get the HTML element for a Knockout observable
 
11:56 AM
@OliverSalzburg promise.finally doesn't exist natively
 
@Mosho I don't care about native :P require("bluebird") is in my "new file" template for JS
But, yeah, valid point
 
you shouldn't use it in frontend in most cases
I mean, you can and it's nice
 
but overkill for the kind of async stuff you probably do in a website/app
 
@poke in bluebird it's .tap and .tapError mostly.
 
@Mosho We use bluebird in all our projects, no matter what end. So all our developers are used to that API
That is benefit enough to include it :P
 
@BenjaminGruenbaum This .tapError which does not exist yet? :D
 
@BenFortune nice
will want updates
 
@OliverSalzburg I suppose
 
I setup my bandsaw yesterday
finally made room
 
12:15 PM
@poke I've been lazy, should land my PR
 
^^
 
@OliverSalzburg thank you for suggesting me to remove the misleading quote markup I hope to encoure other people like you to help me to fix the problem in the question and the overall readability
 
@Riccardo 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.
 
@Riccardo Funny thing is, our Cordova dev had a similar issue today ;P
 
@OliverSalzburg i can't believe you man you gotta be kidding me it's more then a coincidence oh my
it's awesome to have some who's sharing your frustration
 
12:30 PM
Apparently he already commented on your question ;P
 
I'm sorry for you don't misunderstand me man
was the guy who suggested me to whitelist the url?
 
Is there a direct rendering mechanism in the chrome engine ? In other words. If I create an element and add it to the dom and then I try to get its dimensions , should I wait a bit to get its real rendered dimensions or can I just get the dimensions right after I add it ( next line of code).
Sorry seems a bit of a simple question But sill i'm not sure.
 
@Riccardo Yeah
 
I did what he said to me but I haven't fixed it yet
In my question I have to hypothesis the former is en error which is occurred today when I was launching the app on my test device
and I'm pretty sure that is the bug behind the app malfunctioning
if it was a javascript problem I'd have failed to run it on adroid and the online emulator too
@OliverSalzburg do you have any suggestion man?
 
@rlemon My battery died, they're sending me a new one so I have to wait for that
 
12:39 PM
@BenFortune booooo
you gonna send me the code / plans or what? :P
 
I'm pretty much winging it other than a couple drawings
There's not much code other than the power management
Which I'm stealing anyway :D
 
@Riccardo Nothing beyond what Beat suggested
 
did you solve the bug? plus did you read my first hypothesis? this error
[ERROR] Error initializing
Cordova: Missing Command Error
@OliverSalzburg
 
Hello
 
12:51 PM
is it me you're looking for?
flash fans: timeline animation tool for css youtube.com/watch?v=cdaMUBu-D4E
 
if I do sth like this.props.propDialogChangeTotalDays ? selectValues = ["Geburt"] : selectValues = ["Super typ"];in phpStorm, always the first selectValues is declared as unassigned in the editor, but it works... seems to be a bug or there sth wrong? Does someone else have this behavior?
 
@elsololobo selectValues = this.props.propDialogChangeTotalDays ? ["Geburt"] : ["Super typ"];
 
ahh^^ didn´t thought about this -.-
thanks :P
one week drinking in ibiza seems to be the best thing for my brain :D
 
@rlemon niice
i was waiting for the native one to come out (youtube.com/watch?v=U9xfYbKxosI) although this one has tons more features it looks like
 
1:11 PM
I need help with webpack. I use css-loader and style-loader
and I want HMR
which I understand should just work
but it doesn't
anyone knows if I need anything else?
ah, got it
webpack config so random
 
gotta love webpack config...
 
> coming soon
published 2015
 
1:26 PM
0
Q: JavaScript ES6 - Inherit multiple classes

OrlandoI want to inherit two classes with a parent class in JavaScript ES6, so that I am able to use the properties and methods of both child classes inside the parent class. Like in this question: es6-class-multiple-inheritance I tried the approach with mixins, but I don't really get it to work. The...

This guy links a duplicate in his question lol
 
@OliverSalzburg yeah, ikr
although i think it could be out in canary, i didn't really follow it that much
oh it's here already
TIL
 
Trying to think how best to write a class that would manage this:
const bot = new Bot({
    responder(message, callback) {
        teamspeak.send('sendtextmessage', {
            targetmode: 2,
            target: 12,
            msg: message
        }).then(callback);
    }
});
bot.match(/^H(?:ello|i|ey)/i, () => {
    bot.reply('Hello!');
});
bot.match(/weather\s(.+)/i, (country) => {
    lookupWeather(country)
        .then(weather => bot.reply(weather));
});
bot.listen(callback => {
    teamspeak.on('message', (message) => callback(message));
});
Take the week off work and my brain turns to mush
Though I'm thinking I might have to just tie it all in, since there will be use-case responders (to a channel or to a user).
 
-1
Q: Why 'this' in JavaScript functions and arrow functions is not the same?

Stefan PriftiI was creating a Mongoose model and inside that there is this method: userSchema.methods.validPassword = (password) => { return bcrypt.compareSync(password, this.local.password); }; Which actually doesn't work as expected. this.local is undefined. I changed the syntax back to normal functi...

On mobile. Find the dupe plox
 
1:43 PM
Mmm gambling with biotech finance.yahoo.com/chart/ARRY?p=ARRY
 
@BenFortune your match function would look just like a router
 
going to post this one more time since I woke up walked to my office and was like wtf
 
@bitten Yeah, thinking of using a map to store the routes
 
Ascended to ultrawide
I kind of feel like I dont need the 2nd monitor now.. ultrawide is spacious af
 
now that I have my massive 65" 4k TV, my 1080p monitors for my computer just seem shitty...
 
1:48 PM
yeah I have no 1080's anymore
 
@Loktar Ever since I started using Windows 10 I haven't missed a second screen.
 
I'd take refresh rate over resolution any day
 
@Loktar 1440p ?
 
I remember a GitHub repo that had lists of all languages in all languages. Anyone know what it's called?
 
@tereško yea
@BenFortune 144hz on the left, 100hz in the center I agree
I cant go back to 60hz
I mean for watching TV 60 is fine though
 
1:49 PM
I don't like the keyboard shortcut for virtual desktops on windows
 
I havent used that yet at all actually
I just use windows key + arrow key, to snap windows
 
@ndugger Why not? It's second nature to me now
 
this is not working for me :(
 
1 message moved to Trash can
@selva Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@Loktar well, mine is still 60Hz .. then again I bought it like 1.5 years ago
 
1:50 PM
   $(document).ready(function() {

          var bread = $(".post_tag").attr("href");

	      var check = bread.replace('tag','dffdf');
          $(".post_tag").attr("href",check);

    });
 
@BenFortune yeah it just looks really like a router i once wrote which looked like this
 
What windows 10 needs is an official trackpad for desktops so I can just use gestures. I use my mac trackpad at work like it's going out of style
 
@tereško have you seen 144 in person yet?
 
nope
hell, I have not seen anyone else using a 21:9 yet (IRL, I mean)
 
ah, yeah its pretty nutty, prices have came down ALOT too
 
1:51 PM
inb4 no semi colons, hueh
 
you can get 144hz 1080 displays for like $200 pretty consistently
 
hi all the above code is not working can anyone pls notify error???
 
Seems like this could be what I remember: github.com/umpirsky/country-list
 
@tereško yeah I wonder if 21:9 will catch on
@KendallFrey I even capsed it!
 
1:53 PM
@Loktar oh man this takes me back to middle school youtube.com/watch?v=O1FkbvGl-IU
 
1 message moved to Trash can
@selva Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
I wonder if we are actually living in the last glory days of the PC, lol even though it's been said for years. I just think it's going to become a super enthusiast niche thing in the next 5-10 years
 
hell ... before getting that monitor, I was convinced that "split window" feature in editors is completely useless
 
haha
 
but on 21:9 it's even practical
 
1:53 PM
yea actually
 
How are PCs in the last glory days? The hardware capabilities, upgradability, etc are far superior to anything else outthere
 
@Loktar replaced by what?
 
and I have an xbox one lol
 
the only reason I still have a 2nd monitor is because when I game I can have chats/ect open
otherwise the ultrawide has enough real estate
@SterlingArcher yeah for sure, but I know tons of people now who dont even have PCs or care to
 
@SterlingArcher You didn't even mention the biggest thing: customizability.
 
1:54 PM
for the most part it's gamers/enthusiasts
 
@KendallFrey "upgradability"
 
I hope I am 100% wrong
 
@SterlingArcher No, as in software
 
@Loktar I guess that's true. I mean, I do my dev'ing from SSH on a chromebook lol
 
You have full control
 
1:55 PM
@SterlingArcher I have seen "pc gaming is dying" since about 1995. And the consoles are still shit.
 
@KendallFrey WHATEVS
 
@KendallFrey in fairness he can just drop $400 on the new xbone for 4k right ;)
 
can anyone can able to identify error in the above code
 
PCs are better than consoles for the same reason Haskell is better than JS
lel
generic > specific
 
not really
 
1:56 PM
I mean it's gotten so bad consoles are releasing midlife upgrades...
@selva stop posting that
 
1 message moved to Trash can
@selva Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
you have posted it 3 times unformatted.
 
The human eye can only see in 30FPS anyways so all this 4k crap is redundant ;)
 
give me the tools to make anything happen, rather than trying to guess what I want to happen and doing it for me.
 
@SterlingArcher on the xbone and new ps4 all they do is upscale anyway
 
1:56 PM
@SterlingArcher Funny how I can notice the difference between 60fps and 120fps.
 
new ps4 is pretty much for psvr
 
@Loktar ever since I first touched a PC, people have been saying this
 
	jQuery.noConflict()(function ($) { // this was missing for me
    $(document).ready(function() {

          var bread = $(".post_tag").attr("href");

	      var check = bread.replace('/tag','');
          $(".post_tag").attr("href",check);

    });
});
 
@SterlingArcher stop trolling
 
i have done ctrl+k
 
1:57 PM
@GNi33 well PC Gaming has ALWAYS been dying lol
 
@tereško I can't, I will literally die
 
@bitten That helps actually, thanks
 
I guess I don't mean PC's dying, I mean just becoming totally for enthusiasts
 
maybe it was never really alive then? I don't see it going anywhere at all
 
where is @CapricaSix now okey right
 
1:58 PM
@Loktar well, we live in an upscale society bro beans.
 
oh no I mean since the 90's people have said pc gaming was dying, it was always silly
 
try play hugely popular games like LOL on a console
 
@Loktar The only way console gaming can replace PC gaming is if consoles become general-purpose computers aka PCs.
 
I think PC gaming has never been this relevant and popular than it is now
 
@selva did you post the same code 4 times just to tell us you were missing noConflict?
 
1:58 PM
yeah for gaming I dont think they will die, just saying pc's as a whole aren't doing as well in the consumer market
because of cell phones, ect.
 
I'm guessing searching a map is still O(n)
 
oh don't get me started on mobile gaming
 
back in the day most families had a PC
 
Mobile games are cancer. I found this fun zombie game for my phone, and it was fun until it got so tough I had to either fail the same mission over and over 1000x or spend money
 
haha anyway it's just something I fear because I obviously fucking love PCs
 
1:59 PM
@KendallFrey I think the "console" and "mobile" markets will soon merge
 
^
 
I'd rather pay $60 for a full content game
 
@Loktar oh, yeah. I think desktop pcs for general purpose won't have a huge market anymore
 
@tereško Nintendo is playing with that
 
heard so
 
1:59 PM
Do you guys think that with WASM and WebGL, someone could create an alternative to the DOM that's actually fast? I mean, I guess the answer is yes, but I'm curious if you think it's worth it, or what the pitfalls might be
 

« first day (2172 days earlier)      last day (2769 days later) »