« first day (1281 days earlier)      last day (3660 days later) » 

12:03 AM
I feel like a dick telling somebody who answered my question that it's a shitty answer xD
 
@RUJordan I mostly just ignore those, depending on the case
If it really can't be savaged/off-topic, downvote and delete vote
 
Oh I don't have enough rep to delete vote it
0
A: NodeJS Check Request/Response

adrichmanIt looks like the problem is that you're not passing your authenticate function its callback when you invoke it

I saw that and all I could think was "No shit?"
 
You can flag as Not an Answer, it will get deleted eventually
 
@FabrícioMatté Not sure if it'll work, it looks like an answer on the surface
 
Just did that
 
12:05 AM
Downvoted
3 downvotes usually push an author to delete themselves.
 
Thanks @BenjaminGruenbaum <3
 
There, now one more delete vote and we're done.
 
woah, three downvotes fast
 
0
Q: Promises for Android?

enrmarcHow do you face nested callbacks in Android? For example, in my app I use Locations API and then, when I have the current lat-lng, I do an HTTP request to my server. In this situation I have two nested callbacks. It's no so bad, but what If I had three or more? I've read about it in this question...

 
@RUJordan flagging as NAA will get declined. NAA is for it's not an attempt to answer a question.
 
12:06 AM
Owner deleted it after it had 2/3 delete votes already lol
 
@RUJordan Why aren't you using a more permanent session store?
 
@SomeKittensUx2666 well, as far as I can tell right now if the server restarts, I simply can't detect it and access the sessions at all
 
Oh right, WebSockets.
Is there a disconnect event fired on the client when you restart the server?
 
@SomeKittensUx2666 the error handler I guess
 
Oh shit, haha I got it
 
12:11 AM
or end handler if you close the connections gracefully before restarting
 
@SomeKittensUx2666 not that I could find
 
I found a way on the client side
req.io.emit("location",{loc:"("+player.getX()+","+player.getY()+")",check:player.getX()});
I added that check parameter, which will be null if the session is lost
and
if (data.check == null) {
	$window.location.href = "/logout";
}
 
a bit jarring UX?
 
This whole time I was looking for a server answer when a client response was so much simpler
jarring UX?
 
12:15 AM
Trying to do something, and suddenly being logged out
 
It only happens if they lose their session. I want to apply your solution for a persistant session to see if that removes this issue
Just haven't had the time yet
 
@Feeds should I implement promises in Java?
 
@copy hi
 
0
Q: Initiating directive from controller

BatmanI'm having trouble figuring out a way to initiate a directive once the data has been returned. I'm trying to build a report using html tables and ng-repeat. The report object is generated using a Factory. The factory method returns the report object and ng-repeat builds the table. I found a DataT...

 
@Batman use another event?
 
12:28 AM
@SomeKittensUx2666 nodemon sends a SIGKILL event which is apparently uncatchable, just in case you run across it
 
I wonder what event npm forever sends
:research:
 
12:46 AM
@Mosho what do you mean?
 
have an event fire when data is ready
 
hmm, what if I used a $watch in the dataTables directive to call the dataTables function instead of a timer?
 
Somebody's upset (see comments):
0
Q: Javascript issues *New to programming*

Christopher ClarkeWhen I run this code I get the following: at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at no...

 
@Batman sure, same thing
 
alright, ill look into that, thanks for the suggestion
 
12:55 AM
Does anyone know how to successfully use coffeescript's extend without using class?
like func1 extends func2
I done it ;)
 
Meh, everybody has humor: github.com/…
 
@BenjaminGruenbaum They have to, otherwise they cry
 
@BadgerGirl <3
 
got to love coffeescript
exports.extend = (destination, sources...) ->
	destination[name] = value for own name, value of source for source in sources
	return destination
 
1:28 AM
Oh those overly verbose comprehensions
I'd rather use ES6's, personally
 
If anyone replied I didn't see it, so posting again:
hey everyone, i need to do research for a speech I will be giving... http://strawpoll.me/1517151
Mostly I need reasons either way that I can attribute as research. (they don't come from my brain.)
Clarification on the poll: I mean simple programming, nothing complicated or advanced, or theoretical.
Hope it isn't annoying anyone to much.
 
@theHeretic sure
 
Has anyone ever heard of Object.create setting values to undefined?
 
@Connor what values? the prototype properties?
 
no, the properties
 
1:38 AM
well, it will create an object without any own property. Accessing an undefined property returns undefined, not sure if that's what you mean
 
I really like ecmascript 6 spread calling.
@Connor can we see exsample code
 
It's solved, properties objects should be formatted { name: { value: value } }
 
Oh, you meant the second parameter to Object.create
 
yp
 
2:10 AM
@Connor: ... you might not want to do that.
That will set writable, enumerable and configurable to false.
 
I'm not
 
@BrianTracy Welcome to the JavaScript chat! Please review the room pseudo-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.
 
anyone here know the reason that I can't do alt codes for all the askii codes that chrome will display?
example: ༽ or ༼ is 3900
 
Did you mean ascii? lol
So I'm watching the movie "The Family" with Robert De Niro and Tommy Lee Jones and so far it's pretty tight lol
 
yes. silly brain.
how does google/mozzila/whoever decide which ascii codes correspond to which symbols though?
 
2:25 AM
@Felix-Robinchik Welcome to the JavaScript chat! Please review the room pseudo-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.
 
@RUJordan Cool, wanted to watch that
 
oops
this is too funny guys
 
Sockpuppet voting:
0
Q: How To Properly Space A Contact Form In A Table?

user3517583I'm trying to properly add spacing between the s in my table contact form here: http://jsfiddle.net/k6XSp/1/. I would like to have the fields on the right to line up with the width of the message box on the right side, thus meaning I need space added in between the s in each of the two s. It is...

 
Sockpuppet voting..?
 
2 upvotes in the first 30 seconds of a crap question. New user.
 
2:36 AM
I saw a question earlier about breaking websites with javascript and was like "I really want to reply, but this question doesn't belong on this site..."
(I mean making them fail to load, and possibly crash the browser. I know that firefox doesn't handle infinite loops or infinite alert loops very well at all.)
 
    Hi, I'm trying to use $watch inside a directive. Is there a reason this might not work?

                scope.$watch($rootScope.ReportReady, function (newValue, oldValue){
                    if(newValue){
                        console.log('calling dataTables');
                        var dTable = element.dataTable(scope.options);
                        new $.fn.dataTable.FixedColumns( dTable );
                        $rootScope.ReportVisible = true;
                    }
                })
 
Where are you calling the exp property?
 
I'm not, I'm not really sure why that's showing up
 
What library is that? Looks alien.
 
@bjb568 that's angularJS
@Batman what line does the error point to?
Follow the stack trace
 
2:49 AM
i got rid of the error by wrapping the watch value around quotes :/ '$rootScope.ReportReady'
 
any suggestions on best way to pass values to a new page? (preferbly not in the url)
 
@rodling a post request then
 
$.post(url,{vars})?
 
localStorage?
 
@RUJordan my first attempt at that gave me 500 error
 
2:52 AM
That's a server error
 
when i throw window.location.replace no problem
and yea i know, but I monitoring server side and its not even breaking at first line
nvmm PEBKAC :(
 
3:15 AM
@Batman read what and how things are done before you complain they don't work
what you are looking for is $rootscope.$watch('ReportReady', func)
 
3:45 AM
@SomeKittensUx2666 follow up: The Family -- great movie
 
4:38 AM
will do
 
4:57 AM
hey
 
Microsoft has a font face called Himalaya
 
5:52 AM
@hoot Welcome to the JavaScript chat! Please review the room pseudo-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.
 
lol wat
I was invited to meet with Israel's ambassador to canada
 
@Mosho Was he sponsored by a nigerian prince?
 
no, it was some Heineken lottery
seriously though, it's from the university
I don't see why though, except I'm from Israel I guess
 
6:26 AM
The title of this video looks interesting
 
7:12 AM
@JackToole Welcome to the JavaScript chat! Please review the room pseudo-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.
 
7:28 AM
@RahmathullahMPulikkal Welcome to the JavaScript chat! Please review the room pseudo-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.
 
why my jstestdriver loads my js files as text/plain with require js ?
 
8:05 AM
anyone know a good replacement word for angular's directive?
 
8:33 AM
@Connor instruction?
 
doesn't sound right
 
decree
mandate
good "directive synonyms" and pick one :P
 
@arghtype Welcome to the JavaScript chat! Please review the room pseudo-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.
 
8:49 AM
hmm, any iPad2 users here ?
 
@KarelG nope, but I do like actual apples (fruit)
 
it annoys me that apple is still in his ivory tower
barely any information about smartcard (well electronic ID) readers
 
idk, but lazy to read that slow long slowpoke script
 
yeah me too
but curious
after I finish this game I'm making I'll try to do something cool with canvas animation
 
8:56 AM
quick sneak and peak : you can play it as a camera movement with mouse click/move
 
I can see that, but that's simple
relatively
wanna know how they turn the letters to spheres and back
 
are we seeing it differently ?
which letters ? :p
 
Does anyone know sites with more than 20 jQuery plugins loaded on one page?
 
@Icecreamsandwich Welcome to the JavaScript chat! Please review the room pseudo-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.
 
9:11 AM
hallo
 
good morning/afternoon/evening/night
 
alert("Gooood after noon")
 
9:25 AM
@NirmalRam Welcome to the JavaScript chat! Please review the room pseudo-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.
 
Hi
Just a small question
I have a site which loads a div from an api
The css of the div is overwritten by the style of the template
 
@Mosho Dont'ya think i done that already?
@NirmalRam use !important
 
yes but there are so many css
and its quite not possible to write for everyone
isn't there a better way to not to apply template css on some elements ?
 
@NirmalRam : use js to rename the div id and class name if the css file is the only which is using the id/classname
 
@KarelG thanks but i don't think that is also going to help
as the js uses the div id to load the stuffs from a remote site
 
9:33 AM
after it ...
eh, is the div from the api with inline CSS ?
 
no
it loads some css file on the page
 
don't load the css file then.
 
but that file is necessary for the styling of the plugin
the problem is the css of the template
is there a way we can prevent the template css to be applied to certain div
 
@NirmalRam remove the CSS? Override with extra styles?
 
remove theme css ?
 
9:37 AM
How large part of the stylesheet do you want to remove?
 
suppose there is 2 css files one is style.css another is plugin.css
 
you could do some search/replace in the stylesheet if you know what you're looking for.
removing an entire stylesheet is easy
 
hi!
 
yes but how can i prevent a div to load extra css from some other file
so one div will take css from only one file
is there a way?
 
divs don't load CSS
 
9:40 AM
means ?
 
edit the other css to not apply to that div
 
@JanDvorak : he gets the css file (from API i think). The template CSS styling is a part of it. He needs the other styling. only the template thingie not
 
would iFrames be a sensible solution here?
 
Yes that's what i was thinking
 
@JanDvorak if Apple won't sue you, then yes
 
9:43 AM
yes..
another thing is that
 
@KarelG Wait, did their rename their low-end tablets to iFrames?
 
the content of the div changes in ajax and i don't need a scroll bar
 
was joking on your capitalized F in " iFrame "
but +1
 
iGot it :-)
 
i hate writing reports during weekends
!!riot
 
9:46 AM
(╯°□°)╯︵ ┻━┻
 
Guys any solution ?
here is the exact problem i am having
----------------------------------------------------------------

The site is WP using a theme called Enfold. We have a 3rd party application (trading interface) that needs to be embedded in the page. We have this working but, the theme CSS is overiding the App CSS. Iframe is not an option because need to auto size to the content and there are parameters that need to be passed from the website to the app

-------------------------------------------------------------------------------------------
 
if requiring modern browsers is an option, could you use scoped CSS?
 
poor IE users :p
 
Here's a riddle for you: find a string that matches this regex: /^f... IE$/
 
@mindrones Welcome to the JavaScript chat! Please review the room pseudo-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.
 
9:54 AM
@JanDvorak thanks but can you tell how can we write scoped css using stylesheets ?
but anyway that's not going to help
any js solution ?
 
@NirmalRam scoped attribute restricts any CSS referenced by a style element to its parent element.
 
yes i understand
but it doesn't support all browsers
isn't there any jquery plugin ?
 
Idea: remove the template CSS temporarily; scan all elements' computed CSS; assign it to them so that it sticks; put the CSS element back.
 
What is happening in this code? I don't understand the typeof line.
/** Used to determine if values are of the language type `Object` */
    var objectTypes = {
        'function': true,
        'object': true
    };
    /** Used as a reference to the global object */
    var root = (objectTypes[typeof window] && window) || this;
 
if typeof window is function or object, it sets root to window, otherwise it it sets the root to this.
 
10:00 AM
But did I miss window being defined somewhere, or is window just the window global?
 
window is undefined in server context
the code could be optimised quite a bit
 
Ok I guess I get it. if window is defined somewhere then root will use that. Else it will use the context the closure runs in
Right?
 
looks correct
 
Please tell me how. I might just have slaughtered it. I am reading through lodash.js
 
some user likes their crap grammar
@Schoening: is this in relation to that, or something else?
 
10:11 AM
"How should I go about debug this problem?" is actually incorrect
 
@OneKitten still a noob. Not sure what you mean exactly. "this" is the context of the closure I think.
(function() { ... }.call(this));
 
@JanDvorak: crap, yes, that's disgusting and I should be banned from editing (and docked 100 rep)
 
@OneKitten just post some spam :-)
 
so what, something like healthcare is dah best freeherebalalternativeds.com???
0
Q: Unique IT thesis proposal

user3547534Can someone give me a thesis idea under the multimedia category? I am finding it hard to come up with a unique thesis topic. It can be about game development, e-learning, interactive systems or an information kiosk

 
the most reliable is to post "I want free rep. Please upvote this"
 
10:24 AM
it apaerz dat ii elso lik crap grammer :p
 
10:38 AM
Who flagged this? It's great! =oD
We're all adults here. If profanity offends you, then get off the damn internet. My 2 cents.
 
@crypticツ Flagged what?
 
Schoening's message
 
I was certainly debating flagging it, it shouldn't be offensive to anyone, that's not what offensive means, It's certainly disrespectful portraying what the Nazi's done as a joke, but that's my opinion
But it's not just you lot, Nazi is a very common word in this room
Anyway, I need a replacement word for directive
anyone?
to describe what angular's directive does
 
morning
 
10:53 AM
hi
I think have have found the word I seek
How about "composition"?
The most disgraceful domain names in the world javaquery.com
 
@Connor sureusly I don't understood what you said, may be because I m poor in english :(
 
well, what part don't you understand, what word?
 
you have a problem with the relationship composition ?
 
@fahdijbeli no, the website name
 
ah ok
 
11:06 AM
it's a combination of Java and jQuery, eveything i hate in a pan
 
remember how I hated the patterns when I was trying out seed-based level generation?
thought midpoint displacement terrain generation would help
but nope
nailed it
 
11:22 AM
@Dhambha Welcome to the JavaScript chat! Please review the room pseudo-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.
 
hi all
i want to develop family tree but i don't understand from where i start
please help
thanks
i have find on google link as below
google-developers.appspot.com/…
if any have better solution please let me know
please
 
first, you have to know the algorithme how we can parcour a tree ;
and next you xan implement it with any language
can*
 
11:55 AM
Once upon a time, I used to put in 780 words into answering homework questions
0
A: Add Array Objects to HTML Table

OneKittenYour current code ID elements Let's start off by seeing where you've gone wrong: var x = document.getElementById('President'); var y = document.getElementById('Took Office'); var z = document.getElementById('Left Office'); You're thinking of each of the headers as IDs - the only one that has...

My typical answer nowadays
0
A: SCRIPT445: Object doesn't support this action in IE8

OneKittenIE8 doesn't support Object.defineProperty on non-DOM elements. I'm not sure where that code is from (looks like some minified code to me), but to add a length getter in IE8 is simply not possible.

 
You need to level up once more: don't answer; downvote, closevote and post here for more votes.
 
12:17 PM
Guys, I need help with some midpoint displacement generation mechanism of mine
that's my script for midpoint displacement level generation
Block.type.gen() simply creates a block of that type in the blocks array (world.cells[x][y])
and that's not the problem
what looks like is the problem is the generator itself
nvm... works
 
 
1 hour later…
1:33 PM
the randomizer based on value I'm using is:
Math.sin(seed++)/2+0.5
that always returns a number between 0 and 1
as Math.random()
but is that really random?
I mean, has 0.9 got the same chance of being chosen as 0.5?
hardly ever worked with those :P
 
@OneKitten :(
Why?
 
@BenjaminGruenbaum ... how should I know? :P
@t1wc: that doesn't have an even distribution
 
@OneKitten fix?
 
look at a sine curve and you'd see the problem
 
@OneKitten that's what I thought..
brb, you can ping me
 
1:42 PM
but that's not all your code, is it?
it would only be a problem if that was
 
@OneKitten I just replaced every Math.random() with that
!!afk my people need me!
 
Hi, everyone. I have this select element, and I'm dynamically adding new options to it. Is there any event that third party code can listen to and detect addition of new options?
 
does anyone know a simple method by which to slide down to a div, and flash it as a certain color? I know $('body').animate({}) could probably slide down to it
 
About time you found another job ;)
whenever('Click Me!')
  .is   ('clicked')
  .given('the text of this is "Something"')
    .and('Some other condition')
    .and('Another condition')
  .then ('Change the text to "Clicked!"')
    .and('Do something else')
    .and('Do another thing')
 

« first day (1281 days earlier)      last day (3660 days later) »