« first day (1729 days earlier)      last day (3444 days later) » 

12:39
> PHP - Check it, this is some serious server side stuff. Ok, they mix this in the back alleys and try to sell it to your junior higher, but I'm all over it. Don't sweat it, N-Dizzle's got it under control
user2620028
damnit i clicked on @Zirak link and got lost in the internet for a half hour
13:05
He told you not to look through all his projects!
@HatterisMad Well? Was it lupus?
I forgot Zirak's real name.. noooooooooooooo
@uselesschien thank goodness. the weight over me is now released.
Silly, Zirak is my name. Something something is my game.
zirakertan
13:15
noooooooooooooo
can I ask C questions here? I don't want to enter the lounge or whatever room that is.
that room is... creepy.
No you can't
Strictly not allowed
I don't believe you.
!!welcome AwalGarg
@AwalGarg 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.
#rekt
13:18
lol
how to break in function prologue with gdb?
@AwalGarg Isn't that just a regular breakpoint?
So break funcname (or break addr if you don't have symbols/sources)?
@AwalGarg How so?
@Zirak but gdb skips the prologue automatically :(
What do you mean by prologue?
13:21
A prologue or prolog (Greek πρόλογος prólogos, from pro, "before" and lógos, "word") is an opening to a story that establishes the setting and gives background details, often some earlier story that ties into the main one, and other miscellaneous information. The Ancient Greek prólogos included the modern meaning of prologue, but was of wider significance, more like the meaning of preface. The importance, therefore, of the prologue in Greek drama was very great; it sometimes almost took the place of a romance, to which, or to an episode in which, the play itself succeeded. It is believed that the...
Oh, the stack preparation stuff?
Then you'll have to do some address arithmetic
Anyone around to test something on an Android device please?
@Jefffrey oh hi. sorry I just meant there are a couple of people in there who like to shout of js/php people :/
@Zirak yeah. ok :/
@AwalGarg C people too
@AwalGarg I x-posted xD
13:24
go to krazeecigs.co.uk/#!twinkit/cvc7 and try do a checkout, and let me know if it shows this error: i.imgur.com/7XFvaZl.jpg
@Jefffrey uh yeah. Last time I went to apologize for calling C/C++ bad and someone immediately told me that I and my languages are terrible or something.
lol "C/C++"
@uselesschien Hilarious
@AwalGarg What's C/C++?
A set containing references to the two languages.
13:26
I'm pretty sure that if you went in there and told that C and C++ are terrible, they would all agree with you.
@uselesschien I hate you.
@Zirak do you call it something else? the book I am reading it calls it prologue and I don't know any other terminology for it
user2620028
@zirak indeed it was
@AwalGarg I never called it anything beforehand, just "the code which stores ebp and assorted things"
That seems to be the correct terminology for it though: en.wikipedia.org/wiki/Function_prologue
13:32
ok cool
user2620028
@zirak indeed it was
It's never lupus
@KendallFrey : GRRR
man, that Huawei Emotion UI is annoying. A bud of me asked me to root it to android, because he doesn't like it. I said that it's not that easy. He replied with "are you a CS engineer or not" ... thats not how it works
user2620028
@zirak sorry for the double ping. my network is periodically timing out my messages and then later showing me that they sent multiple times
Never forgive
Found out why my work laptop runs like shit. HDD is currently 51 degrees celcius
@Cereal Mine is like 400 degrees kelvin.
harhar
lol rip
cpu at 62
@Cereal oh, average temperature in here.
Not sure how to fix this
13:43
@MadaraUchiha that's 127 °C ya know
@KarelG gg cheers m8
your starred link points to the friday song... on saturday
I didn't change the link, the date changed
@KendallFrey You can't keep up with the time!
@KarelG Huh, missed by a 100 degrees or so
brb fetching fire extinguisher
13:53
@MadaraUchiha :p
@AwalGarg time is merely an artifact of quantum entanglement, it's not actually real
@KendallFrey That what the patriarchy told you? fuken sheeple.
@KendallFrey hi :)
Firefox taking a gig of ram ._.

For what possible reason
Wtb lightweight browser with userscripts
"wtb"?
14:07
!!urban wtb
@uselesschien WTB Stands for "Want to Buy". Used in internet or game channels where trading is involved. Very commonly heard in the video game Diablo 2.
crl
crl
!!urban wts 3
@crl wts What the shit.
@crl WTS Want To Sell - used in many [MMORPG] to denote a willingness to sell an item to another player.
@crl [wts](http://wts.urbanup.com/22667) What the Shit

Similar in usage and context to [\[wtf\]](http://urbandictionary.com/define.php?term=wtf)
14:32
@Cereal your rep :D
So how these lounge works?
@PremBikramLimbu 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 reading the room rules
thanks @CapricaSix
@AwalGarg I know. I can't go on SO anymore
@Cereal I can. and I can help you go there again :P
14:46
@PremBikramLimbu CapricaSix is a bot, just so you know
and welcome
thanks afonsomatos for info
Can anyone explain me on the statement "function do not have signature"? A link to good source is also welcome. I came across these statement when reading about Interface and Implementation inheritance in JS
@crl No
JavaScript functions don't throw when the number of arguments passed is not the same as the arity of the function.
In computer science, a type signature or type annotation defines the inputs and outputs for a function, subroutine or method. A type signature includes the function's return type, the number of arguments, the types of arguments, or errors it may pass back. == Examples == === C/C++ === In C and C++, the type signature is declared by what is commonly known as a function prototype. In C/C++, a function declaration reflects its use; for example, a function pointer that would be invoked as: has the signature: === Erlang === In Erlang, type signatures may be optionally declared, as: For e...
!!> function foo () { /* I take no args, but pass whatever you want */ } foo (1);
14:53
@AwalGarg "undefined"
@Zirak but that is only the type signature right?
Correct
Though from the type annotations you derive the argument count
crl
crl
!!> function f(){ console.log(arguments) }; f(1,2)
@crl "undefined" Logged: {"0":1,"1":2}
@Zirak so for example in PHP, type annotations for function arguments are optional, but it throws if the number of arguments passed is less than the expected. Doesn't that constitute to the function signature as well?
15:02
guys i have fetched images with ajax and i have a click function for those images but when i click those images it doesn't work, wats the problem experts
@HermanGideon 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 thanks @CapricaSix i felt at home already
@AwalGarg Sure, but if you want, you can view the lack of type annotations as a type annotation. So function foo($a, $b) is actually function foo(any $a, any $b) (or however php wants to annotate it)
@HermanGideon create a small fiddle reproducing the issue with as less code as possible.
ok let me do that
15:04
466
Q: Event binding on dynamically created elements?

EliI have a bit of code where I am looping though all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouseon/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the ...

Look into event delegation in general.
ow @zirak is that for me?
Yes
15:06
thanks budy
!!afk
@zirak i have tried the $(selector).live( eventName, function(){} ); nothing change maybe let be just go slow with it again and again.i wished i could summaries my codes but
there too many
@uselesschien AwalGarg is afk.
@HermanGideon Re-read the answer, live has been deprecated for some time now
15:16
@Zirak ok let me do that
@uselesschien nice try, but I know about the HTML comments trick ;)
!!afk for real
"afk" wats that guys
crl
crl
I bet google knows
hahaha ok
woow i have just google it, away from keyboard, i didnt know that before
afk
15:53
Hello everybody nice to meet you
@catgocat hey cat
@uselesschien hi cow
I realized I'll never be able ( / I'm too lazy ) to update my site every time I post a new demo somewhere, so, I was thinking about doing this: towc.eu
@rlemon style
@towc hello :))
hi
15:55
how's life?
@HermanGideon You are one of today's lucky 10,000.
@catgocat chien is a dog.. not a cow..
@catgocat green, I'd say
@towc that's a cool canvas effect you have there
certainly not my best. I was actually going to ask around what should I actually put there
15:56
So, I'm a useless dog. Not a useless cow.
@towc 100x better than your previous site.
thanks :D
@towc don't worry, I haven't decided what to put on my website either
j/k, really nice animation.
@Luggage i just went through the like to see how lucky i was
@AwalGarg that's actually awesome XD
15:58
sorry l meant link not like
How big does my desk need to be for a 21inch monitor and 13inch macbook pro?
it needs to be just the right size
@JoeConsterdine ReferenceError: monitor is not defined
I'm serious haha
my desk is only 35 inches wide
!!> (21 + 13) < 35
16:03
@Zirak true
yeah but I'm not sure I'd be able to position it so I have enough room
If it's too big, you'll complain it's taking too much space in your room.. if it's too small, it doesn't quite fit your needs. So I'd say (21 + 13) + 12 wide
Some space to put other stuff too.
that's why the 12 inches there
16:18
9 messages moved to JS trash
@catgocat thanks
@AwalGarg nvm. It was epic.
I have a React component wrapping a form. It handles some custom submit behavior and interpreting a result (subscribing to a mailing list). What's an idiomatic way to expose the result of that submission. An event on my component?
user406009
16:30
I would pass in a callback in the props
@Luggage do you like my username now?
pretty kick-ass
back to catgocat
yeah I've turned the first letter toLowerCase because cat is a common noun so it makes sense
-2
A: webkit-overflow-scrolling issue with x-axis?

Scott LiebermanA really easy fix for this is just to make sure none of your elements are wider than the viewport. This can be accomplish by placing a "catchall" at the top of your CSS: div, span, h1, h2, h3, h4, h5, p, img, ul, li, ... ETC ... { max-width: 100%; }

^ WAT !
export default class ZipCodeConverter {
  changeZip = (event) => {
     // this is bound to parent class.
  }
}
@BenjaminGruenbaum ^ What do you think this pattern for locally bound ?
16:49
what pattern?
that's just fat arrows?
(I'm probably missing something)
@SomeKittens they are using fat arrows with es7 properties
to basically do this
class ZipCodeConverter{
     changeZip(event){
     }
}
oh, missed the export
and then calling it without the .bind
17:08
any one using node.js?
plenty of folks
i am getting issue
i am getting mutiple object in each page refresh like +1
every time
This is rather opinionated (hence asking here, rather than a Q on SO), A while back I made a modal pop-up module in JS. I'm wondering if making a 'create your own' page would be of any use to people. By this I mean, you go onto said page/site and you can click on certain areas of an image (representing the dialog box), and change styles and stuff for the selected part of the element. When done, you can simply download the CSS file for the styles you made. Would this add any value to my module?
@Dendromaniac yes
17:16
@AwalGarg Just a little expansion on my question (Ran out of space in the OP), Would this added value be worth the (probably fairly trivial) effort that I would put into it?
@Dendromaniac sure
0
Q: Create pages with pre-compiling the templates

Mr_GreenIn my current project, my work is only with html and css (HTML skinning). There are many pages which have repeated sections like Header, footer, sharing links etc. I don't want to repeat this common sections again and again in each page. I want these repeated sections to call somehow using gulp ...

^ I don't know how much it makes sense, but I need this
^ any help?
@Mr_Green if it is only html and css, either you use server side pre compiling (like jekyll), or just add JS and make an SPA.
why does this statement not work when the browser window is 380 or less
	if (window.width < 380) {
			$('.kwicks').kwicks({
					maxSize: '80%',
					behavior: 'menu'
				});
			};
because it's being executed once, when the window is wider
17:30
oh
it's for an iphone mobile type screen
window has no width property
but am testing on a normal monitor screen
!!> window.width
@Neoares "ReferenceError: window is not defined"
so if i changed it to .screen ya thing ?
17:31
trollden
nope , .screen didn't work either
google
@havingagoatit window.screen returns device things, not related to the actual page IRC
i was going to put soemthing into it like at the top $(window).on('resize', function()
then do it
I have a string that looks like "console.clear();↵↵var source = ['1', '1', 'foo', '2', '3', '5', 'bar', '8', '13'];↵↵// TODO: Create a var result` that contains the sum↵//` how to substitute the line breaks? regex ?
17:32
but i don't want it to be a resize i just want it to know the size of the screen like with media querries
@argentum47 format it properly, that hurts my eyes
@argentum47 substitute with what?
@AwalGarg can't we do that using gulp or other task runners?
with <br>
@argentum47 .replace(/↵/g, "<br>") ?
17:33
npm has many plugins, I was hoping I would find one there
or if that's a \n do /\\n/
just /\n/
@AwalGarg doesn't that escape the n?
@Mr_Green if there is a plugin, you can. if there isn't, you can create one. I don't know of any.
17:34
ok
@catgocat `\` doesn't escape in control contexts.
yeah right
hello guys !
need your help
!!> String.raw`\n`.replace(/\\n/g, "<br>")
"<br>"
this works but only if i change the size of the browser window first , i just want it to be obligatory if it is 380 or under how do i achieve this ?
	$(window).resize(function(){
   	    if ($(window).width() <= 380){
		$('.kwicks').kwicks({
					maxSize: '80%',
					behavior: 'menu'
				});
	}
});
17:35
@catgocat "<br>"
anybody of your here actively code in android ? (java ofcourse , but specifically android .)
@AlexanderSolonik why are you in javascript room?
@AlexanderSolonik not in Java. But some people use cordova etc.
sorry to be asking this question here
@catgocat you have to be invited or submit an application to gain access tot he android room
17:37
Is there a scrollable terminal emulator for GUI less environments which can do less like scrolling?
@AwalGarg i know but this is like the only forum i ever come to
specifically, ubuntu LTS server.
@AlexanderSolonik No, we hate Java here.
i just neeed to run a few unit test in android and so need a java forum
Awal hates every imperative language
or somebody who can help me out with this
@AwalGarg , most JS proggrammers hate js
and i don't know why
17:39
find real programmers then
PSA: After following this and this I am officially in love with webpack and react-hot-loader and if my country allowed polygamy I would attempt to marry both of them
@AwalGarg wahts a real programmer
somebody who codes in fortrain ?
webdevs mostly
@towc need mobile support.
17:40
@rlemon working on it, almost done
Awww. Did I not renew that?
for ES6, should I still use bluebird for promises?
YEP
Bluebird has a lot of other neat utilities that native doesn't provide.
@ivarni it depends, you might not need bluebird if you are not using promises intensively, plus it's good to check native promises if you are not comfortable with them
what is a good template language that doesn't look weird like jade?
@ivarni If all you ever need is Promise.resolve(), Promise.reject(), Promise.all() and new Promise(...), you don't need bluebird.
17:51
is Promise.all a part of A+?
Bluebird does provide awesome features on top, like promisifying callback based APIs.
I'm always surprised at how often I use Promise.map
^
@SomeKittens Don't think it is, no.
I'm just adding a little contact form to one of my sites, and hit a bit of a problem, it is CSS however. I got a few inputs, then a button underneath, all of which are 100% width, padding 12px. Only thing is the inputs are wider than the button... JSFiddle: jsfiddle.net/mteu4yLg
@rlemon mobile support added: towc.eu
not sure if I should animate it as I did in the non-mobile version or not
maybe a scroll-from-top thing?
17:54
10
Q: Predict the date of the 10th million question on SO

ericosgYou know, if someone were to post "Predict the date of the 10th million question on SO" and ping me with a link, I'd endorse it with an offer of a swag box to the person that came the closest :) So, when will it happen? Rules: The question must last (not be deleted) during the entire day that ...

@MadaraUchiha Yeah, I dont need promisifying but I will be running it all through Babel, on second thought bluebird might provide better performance than whatever Babel transpiles it to?
@ivarni It will almost surely will.
@towc I don't know why, but I feel like a little bounce on hover would be appropriate. I actually expected that when I hovered xD
@Dendromaniac padding: 12px 0 12px 0px; to the button
next thing on the list: super-uber-optimize stuff... minimization, spritesheets, js-enhancing...
17:56
@SomeKittens no, but it is native in JS
@Cereal I'll give that a go, Thanks!
@Dendromaniac hovering what?
@Dendromaniac It's the padding
@towc The icons
@AwalGarg any progress ?
17:57
@MadaraUchiha I know it's something to do with the padding, but I'm being a bit think and can't work out what it is
well, yeah, it's a bit unresponsive
@towc I quite like the BG, is it a gif, or JS, or what? I quite like it :p
@Abhishrek I tried, but it didn't go well. I can't understand anything touch related :/
@Dendromaniac canvas animation codepen.io/MateiGCopot/pen/mJwYBO
@AwalGarg it wasnt touch but scroll instead
i currently have it solved using 3 elements
and moving them with swipe
at the end css transitions to move them inplace
18:00
@towc Mate, I bloody love that, I'm still fairly new, so it's a bit ahead for me xD Looks damn amazing!
@Dendromaniac thanks! You'll get it eventually
@towc Did you write that, or did you find it? If you wrote it, would you mind me reading through, so I can try to get the hang of it a bit?
@Dendromaniac I wrote it, and feel free to do read anything you want on that site, that's kind of it's whole point XD
@AwalGarg intresting idea ... css flex transitions :3
@towc Cheers mate, Appreciate it. I'm actually quite intrigued now
18:04
1
A: Predict the date of the 10th million question on SO

Bjørn-Roger Kringsjåc# - OMG! null reference exception why? i get error, why? Here's code: static void Main(){ bool stupid = false; object girlfriend; while(!stupid){ girlfirend.Ignore(); } } Plz help me!!!!! xoxo c# c c++ java unicorn share edit close flag                      asked Au...

@Abhishrek maybe, i don't no
@Dendromaniac your avatar is quite vibrant
reminds me of my old one
@nick Lol, Really haven't got round to changing it. That's the default one it gave me xD
pink gravatar master race
It may give some weird opinions, since I'm actually a guy. The pic would say otherwisexD
yeah i'll be honest i used the default one for 3+ years, only just change it recently
naw man, wearing pink shows that you're comfortable enough in your own sexuality that you don't need to worry about opinions
:)
18:11
@Dendromaniac doubtful, it's just a gravatar
doesn't give indications about gender, morso laziness
@SomeKittens Yup, I am a lazy ****, not that I should be proud of it. But as for it being just a gravatar, this is the internet we're talking about here...
@AwalGarg hmm
Sorry guys, but I'm still struggling with the padding on the inputs and buttons... jsfiddle.net/mteu4yLg
Does anyone have a good article comparing asynchronous event-driven programming vs asynchronous thread programming. I cannot wrap my head around how a single-threaded nodejs using events (which are stacked in a queue and blocked until one event finishes) can be faster than a multi-threaded java server, which utilizes the physical and virtual cores in a cpu.
It is not.
18:25
Then what is the big deal of nodejs? Why everyone says it is so fast and paypal switched to it?
and why do people favor nginx over apache, where nignx is event driven and apache thread-based
depends what your server is doing
"fast" is so relative as to be irrelevant as a measure
@nick real-time data, websockets, comet (long polling) - 60,000 open tcp connections with http persistance.
you want fast? Write ASM
for operations that take a decent computational time async doesn't make much sense
@Donato yeah that would be an excellent use of async
18:32
@nick and that is exactly why I am asking why is nodejs event architecture better than a thread-based architecture for this use case.
the way i see it, event driven programming just takes better advantage of 'idle' cpu time
@Donato well, say the server sends a websocket message to the client, then the client sends data back
thats gonna take time but most of the time is just waiting
You can multi-thread node
where'd you get the 60.000 number from?
I got 60,000 because I read article that nginx's event driven model (similar to node) is better when you have many open tcp connections for long period, compared to apache's process (prefork) or thread (preworker) model.
@Donato So whatever you're building doesn't actually need 60k connections
I just rememberd how to fix that padding problem, a good ol' box-sizing done the job!
18:38
[{"HTTPLoader":[{"HTTPSplitter":[{"HTTPSource":null}]}]}]
it woooooorks!
when you are usng websockets (and comet for browsers that do not support websockets) using something like socket.io, or cometd (bayeux), it will use http persistance and there is a possiblility for 60,000 open tcp connections. It's not unreasonable to assume that.
you can run several instances of your server and use redis for session persistence
60k connections does not have to be on the same box
thought it would be an interesting experiment
@nick That gets tricky with how Unix handles connections
my largest scale app was probably less than 100 connections at a time so I have little experience in this realm
there's a minimal overhead per connection at the OS realm
18:42
oh hm
hello after i encoded the object i am getting like this {"object":[{"id":1,"user_id":16,"answer_id":null,"comment_id":null,"question_id"‌​:25,"post_id":25,"activity_name":"question","status":"0","email":"typhoidmig@gmai‌​l.com","updated_at":"2015-07-11 16:44:39","created_at":"2015-07-11 16:44:39"}]}
i should get object in console.log but i am getting like this
websockets are built over TCP so would that still be an issue?
@nick yeah, each TCP connection spawns a new thread, which has its own memory requirements
fun
@ujwaldhakal Do you know what JSON.encode returns?
18:45
yes object
in json format
@ujwaldhakal Incorrect
@ujwaldhakal MDN is your friend, look it up there
ten second Google search
whats new?
encoding in json form
i told ya na/
?
hm?
18:48
@ujwaldhakal type "MDN json encode" into Google and you'll get your answer
We don't do your work for you here
well I could but I charge $110/hr plus rush fees
;)
same code runs perfectly in one project
but in next project same code is not running
if i parse jsonn then i am getting very deep nested object
but encode should get me a object'
its just var dumping object on my console
haha nick
why is scroll broken on touch browsers so destructively bad ?
Any backbone or MVC around?
@theamateurdataanalyst 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.
18:54
touch browsers don't have scroll. it is just an illusion
Any backbone or MVC experts around?*
yes I charge $110/hr plus rush fees
I charge more so I am better.
I charge in beer i am the best !
though since the alcohol addiction i have no clue regarding what backbone is.
18:55
@AwalGarg lies
i charge for free
themateurda go on
user406009
@theamateurdataanalyst Just ask your question. People will answer if they can.
people are too supportive and encouraging these days, smh
I am trying to create a form with inputs with Backbone. Should I just create this in my index.html? Or should this be done using _.template in my view?
I am speaking in terms of best practices.
18:58
@nick Awal Garg aka Rash - The Dark Lord never lies.
i am mistaken
@AwalGarg i wanted scroll to work in both directions for this jsfiddle.net/a7eryjqb/1/show
i would prefer using template

« first day (1729 days earlier)      last day (3444 days later) »