« first day (2218 days earlier)      last day (2724 days later) » 

4:00 AM
@Sheepy frt, I don't have kids. I'm just a 30 year old dude with baby fever 😃 SO and I are discussing it. she's less there than I am 😛
I love those little chunky poop machines
 
Have you seen Better Call Saul?
 
try{ baby.smile(); facebook.post( baby.photo(), "So adorable!" ); } catch( err ) { try { while ( baby.crying() ) baby.sooth(); } catch ( err ) { throw "Timeout exception"; } }
 
while( baby.isBaby() ) love();
$.post('/college', baby);
2
 
Clearly you need to upgrade your baby to use an event model
 
user6820627
4:15 AM
@rlemon it looks bad :(
 
which part
 
user6820627
the whole theme. it's bad. you need to change the UI completely.
 
thanks love
I'll get right on that
 
user6820627
@rlemon in fact the original so chat ui is bad already. make it black is worse.
 
so don't use it
 
user6820627
4:19 AM
@rlemon and i think you need to change the so chat ui completely not just the color
 
@LearnHowToBeTransparent or you could do it
 
try {
  delivery();
} catch (e) {
  e.baby;
}
 
I disagree. the ui layout is fine, the colours are better and the enhancements are wonderful.
 
@rlemon Haters gonna hate
 
but if you'd like to make you own style, there is this great new extension called RoboGist that allows userscript/style injection
 
user6820627
4:21 AM
@Shmiddty i am trying to change css and it breaks. i will try more.
 
I recommend it
 
user6820627
i have
Tampermonkey
 
sub par
@monners hey, it's not for everyone
wanna timbit?
 
bleep bloop
 
4:30 AM
I've considered re-writing SO chat, but I've never found a good reason to actually do it
 
miaou exists
no reason
 
I mean a UI re-write for SO
not a whole chat app
 
dark theme is now "modular"
in the sense that you can disable shit
if you'd like I can basically show you how to use robogist to do the same stuff
 
who, me?
 
yea
 
4:33 AM
that's not necessary, but thanks :)
 
but
robogist
😃
(lets see how many times I can plug it)
 
@rlemon In other news, been back at the gym for a couple of months now. Got my handstand back, and about 70% back to sidesplits
 
did you write it? :P
 
yes
😃
anyways, gn
 
 
2 hours later…
6:33 AM
In an angular app, do I also have to have to load css files related to components in index.html file ?
 
6:45 AM
Hi ,
 
@Learner 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.
 
Iam a newbie in javascript i want to know where does the json file gets saved in the local system by default id i use localstorage keyword
 
Depends on browser and OS. Chrome on windows7 is $HOME\AppData\Local\Google\Chrome\User Data\Default\databases but to be honest you should not have to care about where it gets saved
 
7:03 AM
@ivarni its not there
 
7:26 AM
I am trying to use this piece of code
 
@TiagoMendonça 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 message moved to Trash can
@TiagoMendonça Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
8:08 AM
Wow. Trump is starting his assault on STEM already. EPA is his first target.
 
8:33 AM
In an angular app, do I also have to have to load css files related to components in index.html file ?
 
How to share one object between two modules in typescript. I am getting location details in one module called home and trying to use the location object lat lng in another module called weather how can I do that in typescript (Ionic2)
` export interface CurrentLocation {
latitude?:string,longitude?:string
} `
I tried exporting the interface try to import in the other module like this, but not working
` import { HomePage,CurrentLocation } from '../home/home'; `
 
user3119231
@Sheepy dat dude
 
@Sheepy what is STEM?
 
user3119231
Science AFAIK
 
Science, Technology, Engineering and Mathematics (STEM, previously SMET) is an acronym that refers to the academic disciplines of science, technology, engineering and mathematics. The term is typically used when addressing education policy and curriculum choices in schools to improve competitiveness in science and technology development. It has implications for workforce development, national security concerns and immigration policy. The acronym arose in common use shortly after an interagency meeting on science education held at the US National Science Foundation chaired by the then NSF director...
Ironically, STEM is exactly what brought us google in the first place
 
8:48 AM
I recieved `1line\n2line\n3line\n`
I need to create a text file using `Blob`
I need to display like
`
1line
2line
3line`
but I still get `1line\n2line\n3line\n`
my content type is "text/html"
 
@Jess I guess the \n is encoded as html so it just renders as \
 
@MikaA. 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.
 
yeah
 
anyone have experience with Webpack's module parser?
 
`data.replace(/\n/g, "\r\n");`
I did this process, still saOKme result
why I can not paste code~~
 
8:50 AM
@Jesse Try data.replace(/\n/g, "<br>");. Code format only works with single line message.
 
OK
still fail
succeed with \r\n
I inserted with \\r\\n, so it failed, my fault
 
9:08 AM
@Jesse encoding, my friend, encoding!
 
@Abhishrek yeah, correct
 
user3119231
o/
 
@OliverSalzburg Found something cool, this is the angular 1.5 equivalent of styleUrls in Angular 2 .... github.com/castillo-io/angular-css
 
user3119231
just greet back Flying Carpet
 
9:24 AM
@FlyingGambit I still don't see that as beneficial. I don't want to lazy-load anything. We even pre-compile all our templates into a module so we can inject them into the template cache early on. So we still would be doing the same with CSS. I would only see it as a nice-to-have in regards to structuring, because it would be clearer that specific CSS belongs to a specific component
But I wouldn't introduce another dependency just to achieve that. As naming conventions already make it pretty clear that certain CSS is tied to a specific component
But it's nice that someone's doing it :)
 
@OliverSalzburg I am using it because it makes me feel closer to Angular 2 and would probably help me while upgrading in future if needed and also it helps me keep index.html file short
I should probably change my display pic
 
@FlyingGambit If you want to keep your index short, have files automatically added to it. In your production build, you're only linking a single or a few files hopefully anyway
And you'll never upgrade to 2, you'll rewrite anyway. And you probably won't even do that because you'll hate Angular after you're through with the project and you'll want to try something different ;D
 
^
 
9:41 AM
@OliverSalzburg In the past I tried to learn Angular like 4 times, after reaching a point I would ask myself why the hell would people use Angular JS when other full fledged frameworks like Ember, ExtJs help achieve more in a short time. This time I am sort of forcing myself to learn angular as my job requires it. Structuring an angular app is tough and there is no one way of doing it, so yeah, I kind of hated it to begin with :D
 
Hi, a little technical question; I have a site with 6 Modules, that should load after each other. Currently, I'm hard coding this with setTimeout(100,200...700) to have short periods in between. Can I do this otherwise?
 
@TechTreeDev using setTimeout is a bad idea
 
@FlyingGambit I know, that's why I'm looking for an alternative
 
9:58 AM
If your modules have such a strong dependency on one another, then maybe they should load each other in succession
Or not start what they're trying to do unless a certain precondition is met
 
user3119231
write a function named loadModule and use callback to load the next
 
@OliverSalzburg why can´t I use .then() .spread() after using .all() in bluebird? It results in is not a function
 return Promise.all([departmentDatabase.getVacation(departmentID), departmentDatabase.countUser(departmentID), departmentDatabase.blockedDaysOfResponsible(departmentID)])
            .then(result => [ result, result[0].map(entry => this.getDateRange(new Date(entry.dateFrom), new Date(entry.dateTo))) ])
            .spread(function(result, dateRange){
                var mergedDateRange = [].concat.apply([], dateRange);
                var counts = {};
                mergedDateRange.forEach(function(x) { counts[x] = (counts[x] || 0)+1; });       //Zähle doppelt vorkommende Daten
 
Angular 2 rc 5
WARNING in ./src/app/shared/abstractmodel.ts There are multiple modules with names that only differ in casing. This can lead to unexpected behavior when compiling on a filesystem with other ase-semantic.

well I use an abstractClass which I extend in almost all module services... Is it because of that?
 
@OliverSalzburg Why do they always ping you? :D
 
because he always helped me with bluebird and promises
 
10:11 AM
@BenFortune I'm the local Angular 1.5 wise guy
 
but you can also answer ;)
 
@BayLife Which one is not a function?
 
` Promise.all(...).then(...).spread is not a function`
that´s what i get
 
@BayLife And Promise is bluebird?
 
yes
but defined & returned in another class
like
return Promise.using(dbConnection.getConnection(), function (conn) {
            return conn.queryAsync(sql, [departmentID])
                .then(function (result) {
                    return result;
                })
                .catch(function (err) {
                    return err;
                });
        });
 
10:14 AM
Yeah, but is Promise also bluebird in this module?
 
no^^
 
@BayLife Your then is completely redundant here.
 
Then there's your problem
 
ok
@BenFortune why?
@OliverSalzburg that did it! As always thanks ! :)
 
You're starting with return Promise.all, then will convert whatever comes after and in it to the Promise that is used in that module, which is probably the native Node one, which doesn't have .spread()
 
10:16 AM
okay, now after requiring it it worked
 
I'm too familiar with exactly this issue ;P
 
hi
Someone can explain me this? kopy.io/EdIh3
Where is the second setInterval attached to? Automatically to window/canavas?
 
@Duikboot It's not attached to anything
 
window.setInterval(myCallback, 500); VS setInterval(myCallback, 500);
 
setInterval is a global function, and the global object is window
 
10:20 AM
Which means I don't really have to write window. ?
 
Exactly
Unless you want to make 100% sure that you're using that specific setInterval
 
Ok :) thx
( learing some basic stuff ) > jsfiddle.net/k20tcgpo
 
user3119231
the interval is unnecessary
 
Not really, but that's the point where I am working on right now: (developer.mozilla.org/en-US/docs/Games/Tutorials/… ) ;-)
 
10:29 AM
is there a way to run a git blame on a file in a different branch?
like show, with git show branch:file
 
Like git blame master -- README.txt ?
 
^ knows how to google
 
Tbh : I never used git blame.
 
@Duikboot thanks
@BenFortune i use duckduckgo
;)
but this isn't in the help page at all
 
Bloody hipsters
 
10:33 AM
!g duckduckgo
 
ddg returns google results
 
no it doesn't
google skews, or which word your prefer to use, your search results whilst duckduckgo will serve everybody the same result
 
:-)
 
Which is probably why it's shit and you can't find it :)
Google knows I'm a programmer, so it will return biased results related to me and my query.
 
@BenFortune i'm blaming the man page instead ^^
 
10:53 AM
@copy You're a good rein. But sorry towards the end, my friends and I were exhausted, fucked up good.
We had a great streak, though. Let's do it again somewhen
 
user3119231
11:08 AM
carneval started 11/11 at 11:11. omg.
 
@littlepootis yeah same here. But I can bear it till 10 degrees. after that I need winter clothing.
 
11:25 AM
@Loktar howdy Jason, I was worried a little bit about you last facebook post. Are you "going in" or something?
 
hi everybody i have a jquery datatable
i have a question
there is jquery datatable
and radio button group in it
in bootstrap modal on change event of radio buttons does not work
do you know a way to trigger on change event ?
 
So how is this related to jQuery, data tables or Bootstrap?
 
dispatchEvent
 
on change event works out of modal
but in modal its not
 
11:41 AM
how do events not work?
 
function ProductivityUpdateTable() {
oTable2 = $('#tableProductivityUpdate').DataTable({
"bPaginate": true,
"bFilter": false,
"ordering": true,
"bJQueryUI": true,
"bAutoWidth": false,
"aoColumns": [
{ "sTitle": "Seç", "sWidth": "10%", "sClass": "center" },
{ "sTitle": "Dönem", "sWidth": "45%", "sClass": "center" },
{ "sTitle": "Oran %", "sWidth": "45%", "sClass": "center" }
],
"aoColumnDefs": [
{
aTargets: [0], // Column number which needs to be modified
fnRender: function (o, v) { // o, v contains the object and value for the column
return rbPeriodSelectChanged(' + v + ') this one is not working in modal
but i have same datatable at out of modal and when i changed radio button onchange works
could i explained?
 
Use a class, with event delegation.
 
Something like $(document).on('change', '.rbPeriodSelectType', e => rbPeriodSelectChanged(e.target.value) );
 
$(".rbPeriodSelectType").on('change', function () {
rbPeriodSelectChanged(e.target.value);
});
i tried this in $(document).ready but it didn't work
 
11:56 AM
hey everyone...
 
Did I not just say use event delegation?
 
coudl someone help me understand something, at certain point(after a http.getJson) i have this result: [object Promise]
what does this mean?
 
@Japa It means you have a Promise, use a .then handler to get your result.
 
@BenFortune thank you for your help :)
 
@FlorianMargaine @Loktar GOTTA GET DOWN!
 
user3119231
12:05 PM
nope
 
@BenFortune it seems that my problem didn´t finish...what about if i want what´s inside that promisse? i did this to see if i could get some result and i can, but only inside the function: myVar.then(function (result) {});
i though about global variable...
i´m using nativescript .. and to declare a global var, you have to declare it inside app.js
but the global doesn´t work if you assign a http.getJSON result to it...
 
@Japa That's when you need to use the then handler, be aware that you can also chain promises.
There's no point assigning it to a global since it's asynchronous, and likely won't be populated when you're accessing it.
Read this
 
12:21 PM
Ohh hey, it's Nov.11
Thank a vet
 
@BenFortune thanks!
 
 
12:51 PM
A cookie in webapp, can I read that cookie in desktop app somehow.
Or, is there any other way of doing it.
uniqueid shared in both browser and desktop app
 
@littlepootist buzzfeed.com/jaketapleshay/… look at #13
 
user6820627
1:15 PM
@AwalGarg is that your situation? I hate slither.io it's boring as hell
 
@AwalGarg lol
@LearnHowToBeTransparent hey
ever heard of opinions
 
@LearnHowToBeTransparent I was pretty addicted when I first played it months back. Next day morning I forgot about it, I think. Or maybe the morning after that one.
 
@AwalGarg Why did you even go as far as decided so down a buzzfeed article?
 
user6820627
@AwalGarg I was pretty addicted when I first played it on 31/13/2015. This morning I hate it, I think. Or maybe the morning after that one.
 
user6820627
^^^^ imho
 
1:29 PM
you can mutate a set while iterating over it, right?
this.setState(state => {
  for (const selected of state.selected) {
    state.selected.delete(selected);
    delete this.nodes[selected];
  }
  return state;
})
 
so ... there is this thing in codebase I have to work on:
var forms = new function() {
 
@tereško oh my
That's something the js community needs to abandon
Just like we abandoned with
 
what is with?
 
Precisely
 
1:32 PM
@Zirak Dunno. It looked funny.
 
It's as bad as using namespace std;
 
@Zirak Not that I disagree, but explain
 
Anyone that has experience with integrating OverlappingMarkerSpiderfier JS with Google Maps that can help me out with actually integrating it?
 
@FrankHelligberger 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:39 PM
I exaggerated, it's not as bad as `with`, it's in the neighbourhood of "bad practices you should never do because why would you". To understand how that form works, you either have to get how `new` works (which is a rare occurrence) or accept that something behaves the way it does because it just does.
The alternative is simpler, it's not confusing, it's ubiquitous throughout the js ecosystem, and it's not any longer.
A new teammate of mine recently used new function, and when I asked him to explain why, it was a "I dunno, that's what some tutorial showed". Even though that's a sample size of 1, it approved some of my suspicions.
But it did pave the way to a "how new works" conversation which is always great fun
 
user6820627
Why should we use constructors instead of object factory? Except . prototype
 
That last part, and familiarity
 
user6820627
@Zirak i see jQuery hides a constructor when we call $("*")
 
yeah
 
omg @Luggage @SterlingArcher @ssube i.imgur.com/sEstiDi.gifv
 
1:48 PM
hahaha
Proper bollock tap
 
Hi '
 
@Duvall912 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.
 
I have a situation
 
hi
my toe hurts
 
user3119231
1:55 PM
oh really? That's good news!
 
I have to find the letter that the most words in a sentence ends with and all the words that ends with that letter
if anybody can help
 

« first day (2218 days earlier)      last day (2724 days later) »