« first day (1384 days earlier)      last day (3557 days later) » 

12:26 AM
I'm using a Monokai-ish theme for the console
iirc Florian was talking about it earlier this week?
 
1:03 AM
fuck man
9pm and i'm finally sitting down
and i'm not even half done
I have the stand up, and the tank on it, now i'm slowly filling it
 
1:22 AM
@rlemon Applied. Wow, I'll never look at devtools the same way again
 
few issues - like resources side panel is still off for me
but otherwise i'm happy with it
all that is left for me is to skin SO with a dark theme and i'm all dark themes everywhere I go
 
1:44 AM
ooh yeah, dark devtools, much jizz
 
that is actually a good advert for the smartcar
 
2:02 AM
omg this guy
-1
Q: Using Math.atan2 to find the radian angle between 2 different points

BernardI'm working on a fish animation. When I click on my canvas, a piece of food will appear and my fish sprite will move forward to it. But the current code I have is something like this: Fish.prototype.chaseFood = function(index) { if (this.xPos > foodArray[index].x + foodWidth) { this....

5 questions dealing with the same thing..
so annoying
can't wait until 20k rep for instances like this yeesh.
 
need dat gold badge
insta close
you're over half way there for canvas
like 240 more for js
haha
someone serial voted me
my top three answers too
:P
I wish serial voters had to wear like a badge of shame or something :P
would be fun ;)
 
2:27 AM
lol nice
er downvoted nm not nice
oh wait its gold to instaclose?
for some reason I thought it was 20k
 
i'm pretty sure it is gold
you are close in the js badge
and i've been told in 45 minutes it should action (or not)
is when the system triggers
er, 32 minutes now
 
Anything not instant is crap
 
:P
 
Except when it comes to food.
and, well, crap
 
instant crap would be horrible.
o.O
 
2:29 AM
s/would be/is/
 
I knew a guy in elementary school who had some strange muscle thing and couldn't control his bowel. he was a cool dude. we still called him Shit Stain Shane
 
lol I heard about that
 
he really was a cool dude. looking back I feel back for teasing him (everyone did)
 
yawn ima turn in, see you on the other side
 
3:08 AM
Hello JS geniuses.. got a question for ya.
 
@That1guyoverthr 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.
 
I've got my genius cap on
shoot
p.s. it is a beer cap. don't get your hopes up
 
Using express.js / passport.js to handle auth.. Angular is on the front end. I want to display different views based on the users logged in status. What is the best method to do this. Also in the passport auth repsonse will be their user settings.
I need angular to be aware of the users chosen settings..
 
I don't know Angular, sorry.
 
all good.. maybe can simplify the question.. remove angular from the equation.. what is best way to get the users logged in status and user settings to the client.
Should I render different views from the server side? Cause I'd really rather have a user object in the browser and work with that...
 
3:14 AM
my experience with express and passport (local only), I've just smashed everything into the user object.
mind you it isn't much data
but i'm also novice with node.
 
@rlemon DUDE
 
(6-7 mo in)
 
Last of us is out for PS4
fyi
 
:D
 
just remembered it came out yesterday
 
3:15 AM
boots up PS4 for first time in AGES
 
I still need to pick it up, probably will Friday
its such a great game man
 
I've spent $1100 today
what is another few bucks.
 
but you did save $150 right?!
 
$250 in all
 
nice
 
3:16 AM
because I got tank + stand I already saved $100
it is an over priced, but sweet tank
 
definitely want to see pics when its setup
 
is the tank
and I got the stand as well. it is normally $200
AND I talked them into giving me a few other things (a power head, and a LED strip)
probably like another $100 right there
 
hah nice
for them its worth it to give you a discount for sure
you spent a lot of $$ with them, and I'm sure you will go back
 
yea, I was a little annoyed with the dude because he knew they didn't have it, and he knew I was coming in today to pick it up
no call
but he isn't normally the guy I deal with.. just the backup :)
so yea, idk. still annoyed. but saved money
 
yea
yeah would have sucked if they didn't have one at all
 
3:21 AM
and on wed there is double points. I know i'm being a cheap bastard, but if i'm getting points (points === store credit) i'm making an $1100 purchase on double point day
fuck that
I made that a strong point.
> I'm only buying this thing on a wed.
so in points i'm also getting like $80 in store credit on that purchase.
I'm saving all over!
 
damn nice
thats like 1 fish right? :P
 
:P yea
shut up :P
it's actually around the price of a replacement bulb
~1 year of lighting
 
damn
 
that doesn't include power costs... ;)
but I live in a triplex.. so that is included
 
3:47 AM
0
Q: Returning value from Javascript function when value comes from within a promise

bullcitydaveI am trying to return a value from an asynchronous function call, and I understand, from posts such as this that you can't use a return. However, it is implied that I should be able to accomplish this with proper use of callbacks and promises. Unfortunately, I am having a difficult time to figuri...

 
Female Friend: I've landscaped the hair above my nether-regions into a Hitler-esk 'stache. Gotta keep WWII awareness front and center...

Me: ...if only to avoid future dick-taker-ship.
 
Zing!
 
I was quite proud of that one :P
 
4:02 AM
also, tell her it is called a racing stripe
 
I thought the common name was landing strip
 
!!urban 2 racing stripe
 
@rlemon No definition found for 2 racing stripe
 
!!urban landing strip
 
@monners landing strip nicely trimmed pubic hair above the woman's pussy, that is just one strait line, nothing else.
 
I totally didn't know that was actually a thing
Yay! We're both right! :initiates cage match to the death!:
 
4:35 AM
It's a dupe of "how to return from an AJAX call"
 
 
2 hours later…
6:12 AM
so now google chrome will use even more memory
 
allo allo
 
6:49 AM
@BenjaminGruenbaum Don't you have Mjolnir?
 
7:05 AM
I do, I cv-d it and jfriend reopened so I want someone neutral to close.
 
@BenjaminGruenbaum it's not exactly the same. He mentions that he'd like to return promises
 
@FlorianMargaine do we need a new canonical, then?
 
room topic changed to JavaScript: DO read this link: rules.javascriptroom.com. Before asking inform yourself on the XY problem goo.gl/taIqf :: YES! Angularjs is on topic here. stop asking. [ecmascript] [javascript] [mine] [mine] [mine]
 
@Prashant 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:12 AM
@FlorianMargaine that question also has a promises solution in the answer. He says promises and callbacks
 
Going....
 
@SecondRikudo : ok
 
in PHP, 1 min ago, by Leri
Write me back asap. Oh, lord, sorry for late reply. Forgive me, please. — Leri 12 secs ago
heh
 
7:27 AM
@Prashant inline styles
@Prashant inline event handlers that refer to functions that are not in the global scope (configuring jsfiddle to not wrap the javascript helps, but there's still this inline event handler thing)
@Prashant way too much whitespace (why is every other line empty?)
 
@JanDvorak : for understanding
 
@Prashant inconsistent indentation. Sometimes you use 1TBS, sometimes you use the kernel style. Stick to 1TBS.
 
if i have a github account , then will it be valid for git account?
 
@Prashant why don't you use ID to access your inputs? Conversely, why do they have an ID that you never use?
@blackbee I... guess so?
@Prashant you seem to accept example@.gmail.com as a valid address
 
7:34 AM
@JanDvorak : no
 
@Prashant dotpos<atpos+2 is true in that case
@Prashant you use alert for communication. Consider using something UX-wise nicer
 
@blackbee There's.... no such thing as a "git account"
 
Ok @JanDvorak : dotpos>atpos+2
it is correct ? if i want example@gmail.com
 
@Prashant your valid*** functions return false (sometimes), but you ignore the return value. Also, they can only return false or undefined.
 
o heha
my home directory and files suddenly became write protected :O
 
7:41 AM
@JanDvorak : my problem is dat - after return false script is not stop
 
@Prashant validatename checks if an input value equals null. That can never happen. If it's not an input element, it's not visible as a property of its form.
 
HAMMERTIME!
 
@Prashant well, don't ignore the return value then
The browser reacts to false being returned from the event handler, it doesn't care about what its internal functions return.
 
@JanDvorak : can u modified my script ?
 
@Prashant popup (L19) seems to be undefined
@Prashant You wouldn't learn anything that way
 
7:44 AM
i know dat.
but i am beginner... i cant understood whatever you told
 
then research or ask for explanation
 
ok
 
HALT
 
HAMMERZEIT!
 
that's still my favorite feature of the bot
 
7:46 AM
!!tell gni sandbox
 
@gni You know, there was this funny idea once upon a time that people were supposed to test out commands and "play" in the sandbox
 
:(
 
7:58 AM
in PHP, 40 secs ago, by Jack
So, JavaScript is something that looks nice from the front, but not from the back ;-)
 
Guys, where'd github's network graph go? I can't find it anymore :(
 
PHP looks awful from any angle, so whats the point
 
@jAndy The Game
 
@CapricaSix I love you too
 
@Kippie You have a "graphs" link on the right
 
8:05 AM
@dystroy Oh, they moved it there? Didn't it use to be a separate item in the right menu?
 
@Kippie Yes, the GUI changed. Not much less confusing.
 
nodejs makes look it good at back too, people are just afraid
 
8:27 AM
nodejs could perhaps provide some basic http request support
 
@Neil does it not?
 
@JanDvorak Too basic as of now
 
what do you mean?
 
to make a web application, you're basically required to use http or express or something of the like
 
8:30 AM
@Neil Yeah, so?
 
@SecondRikudo So, the fact that you need to depend on a third-party library for something almost every nodejs application will require is bit like requiring a library support for writing anonymous functions in javascript
It's an itch I want to scratch
 
@Neil Isn't http a built-in library?
Even though you need to require it?
 
@SecondRikudo I didn't think so, but I could be wrong
 
I thought it was
 
8:33 AM
bastards :( all i wanted was a price inndia
 
@Neil I'm pretty sure I've never ran npm install http
 
I always assumed that since it is almost always used, it is always included
 
It is included
 
Abishek
what kind of game is that
 
BTW I made web applications without express, the standard http package is good enough
 
8:35 AM
for node?
 
yes
 
@dystroy you know insane more
 
And I also made node applications which weren't web apps, node isn't just for the web
I know insane ? I'm confused here.
 
@dystroy sacrilege!
 
@dystroy I really like Node for CLI applications
 
8:37 AM
@SecondRikudo tried node-webkit ?
 
I use node
 
Looking at it right now
 
to make my mom chat with me cause she can't use hangouts like normal people
apparently it's too complicated
 
8:38 AM
And running a CLI node app isn't?
 
@zigi She can't use hangouts, but she can use telnet or whatever you use to chat in CLI?? :o
 
yes, because she uses linux
so I have made a small UI
that she can use
 
I call bullshit
 
well, it's your opinion
 
Screenshot
 
8:39 AM
I can make some screenshots of her PC later
cause I am at work right now
and she turns it off during the day
when she is at work too
so I can't do remote stuff
 
Not much of a chat app if it only works on her computer
 
@AbhishekHingnikar That actually looks pretty damn good, how is it?
 
she lives 2500 km away from me
so you can imagine it is a bit hard for me to handle her stuff there
 
@zigi Wouldn't it have been easier for her to setup hangouts or skype or Miaou or whatever?
 
haha that didn't sound well
well we use skype
yes
 
8:41 AM
You don't have it in a public repo somewhere?
 
but I wanted to make a chat with node to test it
and showed her
and she liked it
 
not really but I can give it to you later
when I go home
but @monners it's nothing serious
it's the demo chat
 
@Neil Is it good ?
 
with some additional UI
 
8:43 AM
@dystroy Seems very basic now, but I haven't gotten far
The idea is decent
 
@Neil it is
 
haha the idea is nice
much better than the one google developed
with that campaign that they were trying to make everyone a coder
 
I need to show this to my nephew
His father is a programmer, and I'm pretty sure he'd enjoy it too
Would be a good way to teach it :)
 
do you actually learn something useful besides calling methods in JS?
 
I don't know, I just started playing to be honest
I assume it teaches you how to program in general, programming concepts
 
8:51 AM
yep
that's a loop
that's a nested loop
which reminds me
I used to go to programming competitions when I was like 14-15
and there were tasks like, make permutations of an input string up to 10 characters
and people used to do a switch with nested loops
for each length :D
and inside the nested loops they checked if all the variables from the loops are different from eachother
which basically used to solve the problem in the given limits but not a good way to program
 
@Neil Reminds me of Hack 'n' Slash a bit
 
permutations x = [fst:rest | fst <- x, rest <- permutations (x\\fst)]
 
I forgot to mention that people were only allowed to use either Pascal or C without any external libraries
because the idea is they want to see how you think in algorithms
 
then I'd loop "get next lexicographical permutation", where "get next lexicographical permutation" moves the last element to the left until it swaps it with something smaller.
 
yep
that's one solution
 
8:58 AM
it should be possible to implement the Haskell solution in C as well, but it would be ugly
 
I am not really good with functional languages
so I really don't know how the haskell one you showed us work
 
you don't do Javascript ?
 

« first day (1384 days earlier)      last day (3557 days later) »