« first day (1551 days earlier)      last day (3399 days later) » 

12:29 AM
jo hazt
 
@BubuDaba 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.
 
ok
ot epzupi tnesv jisi?
 
English, please.
 
it's english encoded
I want to know if someone is so smart to decode it
Tu?
are there three in the room?
 
12:47 AM
Hey I have a quick question - what is it called on websites when you click the picture and it pops up in front of everything and dims out the background? Is there a term for that?
 
Modal window
@BubuDaba Or we could just spend our time doing something else
 
@monners ahh ok - I think you are mostly right but you pointed me in the right direction. I think the specific name for it called Lightbox (en.wikipedia.org/wiki/Lightbox_%28JavaScript%29)
 
1:00 AM
Yeah that's a lightbox.
 
> There are two types of realistic objectives: those that can be broken down into smaller chunks, and those that can be achieved.
 
1:32 AM
@BubuDaba ietz
you can do better than that :)
 
1:46 AM
 
@rlemon Dropbooooooox!
 
Its easier to just not take notes though...
@SomeKittens I saw that on twitter, is that a quote or did you come up with it?
 
@twiz You saw that on Twitter because I tweeted it
so yes, it's a quote I came up with.
 
I know.
 
1:59 AM
Details would make for a good blog post
ARG.
need to quit my job so I can go do all the cool things I want to.
 
Such as?
 
Need to finish blog engine so I can write articles
 
Haha I thought you meant like skydiving in India or something.
 
@rlemon WASTED
 
Active project: Card Minion
Sidelined: SPACESHIPS, blog, CMS, twitter proj
 
2:02 AM
@SomeKittens Do it, that's the main beef I have with "pls giv teh codez" questions
@SomeKittens For me, sidelined means abandoned
@rlemon lol, the reaction of the people watching is priceless
 
i love that he leaves the stick
or at least looks like it
 
I would too
that evil bastard
 
@KendallFrey It means I need to focus more
 
Looks like KSP's aerodynamics model is getting fixed
 
oh no
 
2:08 AM
Wish I could load the dev notes to see more
Does this load for you?
 
http to tumblr is blocked :/
 
1 sec
der
 
I got it to work, thx anyway :)
Also, fascinating (to me anyway)
 
@KendallFrey How long would it take to install the demo and fly a simple mission?
 
2:19 AM
you mean the 0.18 demo?
 
I guess?
 
I can't say for installation time, depends on download speed, but a somewhat experienced pilot should be able to get to the Mun in half an hour to an hour
 
I've never played
 
Watch a Scott Manley tutorial, and you should be able to get to orbit in under half an hour
keep in mind you're working with legacy parts, so the good stuff is missing and the ones you do have don't exist anymore
> all lifting surfaces will produce a lot more lift as speed increases.
I've wanted reusable spaceplanes to be a viable option for more than just LKO for a long time, hopefully this is it.
 
I grew up in the 00's, I can't handle that
 
3:02 AM
The 00's????
 
@Arcrammer 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.
 
As in 1900 or 2000?
Thanks, @CapricaSix!
 
3:16 AM
@Arcrammer given the context I'd say it's the latter
 
3:32 AM
the 0's ?
 
4:04 AM
learning EXTJS from a book termed as "Learning Extjs"
 
@sparshkhandelwal 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 wanna ask if you guys can help me with some good and easy stuff for extjs (Beginner level)
@CapricaSix thanks for the warm welcome
 
Anyone here have experience with Angular?
 
@Nexion I do
 
@grasshopper I'm using bower to try and deal with my local dependencies (just getting started with all this) and I'm getting a 404 trying to reference bower_components
 
4:13 AM
@Nexion are they on the same folder level?
 
Fuck I'm tired
 
I have my js in app/js/, bower_components is in root
I've tried escaping out to root, no effect
 
@Nexion to be clear, you are trying to reference your bower components from your index.html or index.jade file correct?
 
correct
 
@Nexion where is the index located?
 
4:15 AM
index.html is in root/app
(haven't found a concise answer on where to put that file)
 
@Nexion so index is root/app/index.html and bower in root/ap/js/bower_components
 
bower in root/bower_components
 
@Nexion ok so then for your bower references you need to put a "." have you done that?
 
Yes - still 404
 
@Nexion how far have you gotten into writing the app?
 
4:19 AM
Not very
No routes or anything even set up yet (what im trying to do now)
 
@Nexion I know this isn't exactly the answer to your question but you're going down a very tedious/stressfull pass of setting up a MEAN app on your own
@Nexion So I'm going to suggest you scrap what you have and use yo
@Nexion it will ultimately be MUCH faster and save you a lot more time in the future
 
@Nexion also everything will be properly set up right off the bat and so instead of having to research and go through trial and error (like you are now) you can just look at what works and experiment with that.
@Nexion yeoman.io
I can help you set it up if you want, what type of app do you want?
@Nexion here is a great video that I used youtube.com/watch?v=gKiaLSJW5xI
@Nexion This is the generator you should use github.com/DaftMonk/generator-angular-fullstack
 
Mother of god, this is so much easier
 
@Nexion glad I could steer you in the right direction : )
 
4:28 AM
And this answers the question of what DB i was gonna use =P
Thank you for simultaneously solving like 5 different problems =P
 
@Nexion use MongoDB with mongooseJS (you already are), understand that angular is a FRONT-END tool that is just really powerful, NodeJS is the backend they are very seperate but that can be hard to see sometimes when their in the same language.
 
"Would you scaffold out an authentication boilerplate" - could you elaborate on what this means?
Is that a login template?
 
@Nexion yes, for like login with facebook, or google/twitter.
@Nexion Uses passportJS but I don't know much about it.
 
@grasshopper Yeah, I know that Node is the back-end and all that, just wasn't sure about the specifics
 
user1596138
> me: *posts issue including 3 screenshots, relative session variables and debug log as bug report* (did all but show char by char modifications to fix the issue)
Employee: as soon as you can post a screenshot for us we'll get right on this
 
4:34 AM
Even installs font-awesome for me, I'm a fan already.
 
Yeah its pretty awesome, auto refresh, opens app for you ect...
just go to command-line and do grunt serve
 
Does SASS need to be installed? Hmm.
 
4:58 AM
@Nexion You need a compiler
 
Oh, right.
 
Hello friends
 
@vishuminhas 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.
 
ok @CapricaSix
I have some bootstrap issue anyone help me please?
 
@vishuminhas What's the problem?
 
5:06 AM
Thanks to reply @monners. Actually my events is not working when I am using Bootstrap model popup
even close button also stop works
on my page i have 3 popups
events start works when I open the last popup
means 3rd popup
 
Don't know
 
ok @monners no problem
 
 
5:44 AM
@grasshopper Do you know how to configure the facebook/google/twitter app ids?
 
@Nexion no idea : ( haven't used it look online? or set up your own login.
 
Bah, almost 1 am. Time for sleeps. Thanks again for the suggestion, @grasshopper - you saved me a lot of headache
 
0
Q: Is there an elegant way to list all handlers an event has passed through?

HamsterMy current solution will either be: Wrap each event handler binding to log the bubbling visits of each given event object. Capture events in a handler assigned to a top DOM node (e.g. the body element) to find the originating node an event came from. Then, climb the DOM from that node and gathe...

 
I suppose this classifies as event events :P
I should probably just accept a simple hackish solution and move on while I'm ahead.
 
user4330208
6:01 AM
is there more to life than rep?
 
@carb0nshel1 there's shrek
i think that's about it, though
 
user4330208
wow. deep.
 
user4330208
rep it is then
 
6:32 AM
I have the following code :

<ul>
<li onclick = "alert()"> <div>Something Here</div><span>Something Else</span> </li>
<li onclick = "alert()"> <div>Something Here</div><span>Something Else</span> </li>
</ul>
What do I put inside that alert so that I can selectively get the data inside the div, and the span tags?
 
6:51 AM
I got it. :)
 
user4202350
7:20 AM
@doodla Argggggh
 
hello guys,does big data json 178,057 return by server can cause abort in ajax call ?
 
Tentative Storyline for the game - gist.github.com/darkyen/0c41bda7471765187468
@monners o/ hai
 
7:35 AM
Hello guys.
How to remove background of an image using javascript
or Jquery
@ShaU
 
Are you removing the background property of an image element?
Or are you trying to like remove the whitespace in an image or something?
 
why is it if I returned big data of json like 170,000 my browser will aborted..but if I only return 7 thousand it works fine.
 
@Meredith
i want to remove the background of an image
using JS or JQ
 
Yeah, but what do you mean by that?
There are at least 2 things it could mean and they're vastly different from each other
 
actually ,i want to create a editor ,which can remove the Background of any uploaded image
 
7:45 AM
@Loktar ^ LOL
 
@AkhileshSk If the background is (roughly) a solid color, you can just remove pixels of that color
If it's not, you're going to have to do some edge-detection
 
so there is any way so i can create a tool like that.
 
You can do anything you want
 
actually i am doing lot's of goggling..
 
user4202350
you remove background of image? do you want it to blur or what?
 
7:48 AM
You don't solve problems like that by googling
 
i want remove the background of image
 
You need to actually learn what you're doing
 
so please Guide me..
what i have to for that..
 
Get image data -> filter out pixels of a certain color
 
ok
can u send me any tutorial of that..so i can ..
 
Ello
 
b/c i am begin er ..so ..
 
Bunch of resources for learning javascript are listed there
Have fun
 
@ShaU are u asking some thing from me
 
I'm confused, what should be used for AngularJS ng-required or HTML5 required?
 
7:59 AM
ng-required="true" is the same as required
So if you're not evaluating anything, it doesn't matter
ng-required will evaluate the expression, so it's useful when you want something to be required conditionally
 
user4202350
@AkhileshSk No Sir, I was talking to Stars
 
@Meredith so I must pass the value for this attribute? I thought it is like a flag. Like HTML5 required just for angular.
 
ng-require="someVariable" is the same as required when someVariable is true
When someVariable is false, then it's as if there isn't a required attribute
 
8:20 AM
Okey. So how could it be in form? I've tried a simple one like that jsbin.com/torod/1, but doesn't seem to work. Or am I missing something?
 
8:33 AM
hi all!
 
Hi everybody. I've put a survey on node vs io.js on Miaou. Can you please vote ? And if possible give your insight ?
3
 
9:01 AM
Hi!
@dystroy well, on osx safari i can't see texture for replying there.
 
@animaacija I don't understand. What texture ?
 
ui, texarea :D
 
9:17 AM
How the hell do people find these stuff? :o
 
@SecondRikudo well if all 8 billion people was playing this game, this video would be posted two days after game releases
 
var rtv=hashArray.join('').chunk(Math.ceil(hashArray.length/6)); in this line, will hashArray.length return the array length or the string length?
 
I endured a whole 5 minutes in the PHP room and haven't insulted anyone
:smug:
sup
I feel good today and feel like sharing positive energy
 
okay...
 
@BartekBanachewicz lol
interesting
io.js introduces something similar to malloc/free iojs.org/api/smalloc.html
 
9:33 AM
@FlorianMargaine uh oh
 
the GC still frees the objects if it hasn't been disposed
> This is useful to reduce strain on the garbage collector
 
@FlorianMargaine and introduce the NullPointerException you Know and Love!
 
well, if you want to play with fire...
 
yeah, why would you want that?
 
better control over the used memory
 
9:37 AM
@FlorianMargaine if you need direct memory access, write a native module in a language actually designed for it and use FFI to expose it to JS
 
but if you only need just what smalloc provides...
 
@BartekBanachewicz that's not cross-platform
 
@JanDvorak excuse me?
 
You have to actually compile the native module to a platform your server will run on...
 
Native modules are more portable than JS by definition, because to even think about running JS you need a native module
@JanDvorak well, yes. Your point?
 
9:40 AM
Not sure what my point is, actually.
One reason might be that you don't know any language that compiles to a native module
 
I love lisp approach to ffi...
 
@FlorianMargaine elaborate
 
you create ffi objects from within lisp
map the types etc
 
@JanDvorak that's certainly a valid reason; that being said, one could use that reasoning to write everything in X ever, if X was the only thing he/she learned. Which certainly isn't the best solution.
 
@BartekBanachewicz many do
 
@JanDvorak Doesn't make it right, does it?
Don't get me wrong, I think that adding low-level primitives to high level languages serves as a useful escape hatch in some scenarios.
 
  (define-foreign-library libcurl
    (:darwin (:or "libcurl.3.dylib" "libcurl.dylib"))
    (:unix (:or "libcurl.so.3" "libcurl.so"))
    (t (:default "libcurl")))

  (use-foreign-library libcurl)

  ;;; A CURLcode is the universal error code.  curl/curl.h says
  ;;; no return code will ever be removed, and new ones will be
  ;;; added to the end.
  (defctype curl-code :int)

  ;;; Initialize libcurl with FLAGS.
  (defcfun "curl_global_init" curl-code
    (flags :long))

  (defcfun "curl_easy_init" :pointer)
 
But typically, going the FFI route is easier because the tasks required from high-level and low-level code are very different anyway
 
for example
 
@BartekBanachewicz I guess no, it doesn't
 
9:43 AM
then, you can call curl_easy_init as a lisp function
 
Is that similar to what Purescript does?
 
no idea what Purescript does
 
    curl_global_init :: CInt -> IO CurlCode
    curl_global_init v = liftM toCode $ curl_global_init_prim v

    foreign import ccall
      "curl/easy.h curl_global_init" curl_global_init_prim :: CInt -> IO CInt
 
yep, seems similar
 
needs to go trough IO wrapping because obvious reasons
 
9:46 AM
quite different from nodejs/python/php/etc where you have to write the ffi in C/C++
 
@FlorianMargaine .so specification looks funny
 
Purescript lets you define own datatypes whose implementation is opaque to Purescript, and functions to operate on them, implemented in inline Javascript
 
@BartekBanachewicz you mean the .so format spec is funny, or the one used in the code?
 
@FlorianMargaine Lua can call into C in a p straightforward way (being a nice exception). Python IIRC is quite easy too.
@FlorianMargaine the very fact it's specified at all and versions for different systems
 
how would you want to do?
 
9:49 AM
That typically belongs to a linker setup, not code, no?
 
but where is the linker?
 
remember that I type each one of these lines one after one in an REPL
 
REPLs typically include a dynamic linker
 
dunno then
 
9:50 AM
but IIRC in Haskell you use GHCi-specific functions to load foreign modules
because in regular build they belong elsewhere
funny
$ ghc --make -main-is FfiEx FfiEx.hs termops.c
you can just pass C code to GHC :D
 
pretty cool
 
Nice
 
Haskell platform for windows includes GCC
I knew that it's used to build hackage native packages, but never realized you could do that ^
 
@BartekBanachewicz do you have an example? some resource?
 
@FlorianMargaine was just linking that
as for GHCi, it does some magic
7
A: Testing FFI Code with GHCi

John Lghci will load any library so long as it's valid for your architecture and can be located on some path. On windows, pathnames with spaces used to cause problems, I don't know if they still do. To load your own code in ghci, you need to first compile it, then tell ghci to load the output of that...

 
9:57 AM
@BartekBanachewicz so... in ghci... you give the path to the .so
 
@FlorianMargaine or to the .o, as in this example. Anyway, this isn't in the source code, was all that I meant.
 
yeah the .o is the same
@BartekBanachewicz I just meant that lisp REPL doesn't do more or less than ghci
 
oh okay
ironically both Lisp and Haskell cope with C code better than C++ :P
 
uh?
C++ just needs extern "C"
 
yeah, but in practice it's more annoying
typically the amount of "wrapping" required is way bigger
 
10:01 AM
10 mins ago, by Bartek Banachewicz
REPLs typically include a dynamic linker
 
what about it?
 
this is what I was trying to counter, btw.
(i.e., ghci doesn't have a dynamic linker)
 
In an interview today, I told them about my StackOverflow reps. Not sure what they think about it. :-|
 
you don't mention SO rep when you have 3k rep...
 
:-/
then how much?
 
10:02 AM
at least 20k
 
Nobody cares about rep.. o_o
 
oh, ok
 
@RoelvanUden you'd be surprised...
 
Being among the first ones in the whole world in a tag might be more impressive for an employer
 
I wouldn't want to work anywhere where they value SO rep
It's a completely meaningless value
 
10:04 AM
I agree. Some of the lower rep guys are smarter than the higher ones.
 
@FlorianMargaine well you can import native packages on the fly
 
@RoelvanUden It's not a ranking. But if you have some SO rep, and it's not just stupid questions, it means you have at least some ability in problem solving. I would have a deeper look in a candidate with a good SO profile.
 
@BartekBanachewicz if you specify the path to the so, yes
 
@FlorianMargaine or if they are registered, yeah
 
@BartekBanachewicz so the lisp code I showed you uses a dynamic linker...
 
10:06 AM
Well, yeah. I probably had a brain freeze earlier.
 
thank you. I was having trouble ._.
 
If you can just type it into Lisp REPL, it obviously is also able to load it dynamically
sorry for the confusion :S
 
no problem, everything is solved now! let's have beers!
 
@dystroy Sure, but then you're already filtering on the questions and answers. There are great people that answer complex questions and get one upvote, and idiotic answers on some random basic question that get 100+ upvotes. Since you need to filter anyway, the reputation value itself is meaningless, and the context of answers/questions (and open source code) is meaningful. The reputation value itself is therefore moot, IMHO.
 
10:07 AM
where are you in germany?
 
assuming I'm in Germany in the first place? :P
 
weren't you?
I thought you went there for work
 
must've mistaken me with someone else
 
I know you're polish...
damn.
my bad then
so still in Poland?
didn't you want to move somewhere or something?
 
I might have hinted at the possibility, but that's about it
quite happy with my current job
 
10:09 AM
ok
 
10:25 AM
 
need another cv
 
phenomenal handled it.
 
Angular doubt...say there is a callback that is called async and executes outside an angular cycle...the callback has some call to $location.path() ... will it succeed or fail? or do we have to wrap that code in $scope.$apply()?
 
10:46 AM
It will fail
you have to do $scope.$apply
 
@RoelvanUden I've just received the proof SO rep has some value
100 k rep is worth a shirt and a (gigantic) mug
 
Ahaha yeah, that's definitely worth it :-D
 
@dystroy \o/
 
Anyone know a npm module that turns a directory structure and files into JSON?
 
@phenomnomnominal You could probably roll your own in like 10 LoC
 
11:13 AM
@phenomnomnominal do you really need npm module for that ?
(meaning I have the same estimate than SR)
 
Obviously I could, I'm just trying out the whole micro package thing
 
perfect, thank you
 
@dystroy that looks great. how did you got it?
 
@SiddharthP got what ? The mug ?
 
11:15 AM
yeah mug and stickers
 
@SiddharthP They were sent to all users having 100 k rep (and filling a form when asked to do so)
 
I had received a kind (mass) message at that time :
> It's not just the tens of thousands of community members who took the time to up-vote your posts; it's the uncounted millions of people — yes millions — who have also learned (and will continue to learn) from what you've given so selflessly
Obviously it's not selfless anymore for you now you know you can get a mug
 
@dystroy XD
 
11:44 AM
@dystroy for real ?
SO sent you that stuff :p ?
 
@jAndy yes
 
nice one, where did they know your address from ?
 
@jAndy they just asked
 
haha cool, I have to hurry up then too
 
I verified with moderators it wasn't a scam and it really came from SO
 
11:45 AM
What's up, room? I've got what's probably a medium difficulty question that one of you geniuses could prob answer quickly. I'm unsure of the math involved with perspective and am confused by every relevant google search... cool?
 
...just ask
(in the 3D math room)
 
lol. is there one?
javascripters are smarter than mathematicians anyway.
 
Is that enough flattery ?
 
so, I'm trying to have two side-by-side scenes display animated DOM. My goal is to transform each scene's elements such that they appear to be viewed from each eye, respectively...
@dystroy I'm a JS nuthugger, too, so it also served as positive self-talk.
 
@Todd [citation-needed]
 
11:51 AM
citation?
 
@Todd so stereographic perspective projection?
 
yes, exactly
 
@Todd that's a joke around wikipedia's "citation needed" marks, related to your bold statement
 
love it.
 
@Todd what exactly confused you in every relevant google search result?
 
11:55 AM
Something's obvious with this mug. Americans and Europeans doesn't have the same idea about what a coffee is. Mine is ristretto
 
@dystroy I prefer more water. Much more flavour appears that way.
Similar to whisky in that regard, incidentally.
 
I was a chemist in college, not comp sci or anything math intensive, and haven't studied math recently. so despite my several-day-long stab at understanding the needed calculations, I just end up cross eyed, no closer to the solution.
 
@Todd have you perhaps thought about building your fundamentals first then?
stereographic projection isn't exactly basic
 
@BartekBanachewicz depends of the whisky. A cask is better with (room temperature) water, not the other ones in my opinion
 
I have, and I'll submit I'm not horrible... But most sources I've found are exceedingly verbose. case in point, codinglabs.net/article_world_view_projection_matrix.aspx.
 
11:59 AM
@Todd that looks like a fairly complete basic perspective projection tutorial
I don't think it's overly verbose; it's just complete.
 

« first day (1551 days earlier)      last day (3399 days later) »