« first day (1826 days earlier)      last day (3114 days later) » 

12:00 AM
My box version must still be somewhere in my old room
 
then you should be able to redeem it on battle.net
 
yeah i just didn't think people would still be playing it, with d3 out
 
it's an awesome game .. if you can trick your monitor in working with it
(the resolution options are becoming an issue)
 
@copy Yep, good to know
 
oh shiiiit I'm getting my steam controller tomorrow!
@dievardump people still play D2
D3 is pretty different
 
12:09 AM
d3.js
 
crl
What do you think of for (i=0;i<list.length&&(row=list[i]);i++){.. when you can't use for of or forEach?
 
Atrocious
Ghastly
 
crl
:) ouch
 
The English language has many words for that
 
why can't you use forEach?
 
crl
@Loktar NodeList
How would you do it then?
 
Array.prototype.forEach.apply(nodelist, ...)?
or call if you're a little bitch
 
[..nodeList].forEach
Array.from(nodeList).forEach
 
crl
ok thanks guys
 
NodeList.prototype[Symbol.iterator] = Array.prototype[System.iterator]
 
12:24 AM
Can anyone please tell me what is wrong with my RegEx here? The second testCase is failing unexpectedly. jsfiddle.net/a8m74k8a
 
@Loktar I will want to know your impressions, because I have been thinking about buying one myself
 
yeah Ill let you know for sure
I'll try not to fanboy over it too much
 
@RahulDesai wth
 
https://github.com/xxx-desai3
Hmm idk too edgy for me to go there.
 
@CSᵠ I am just looking for simpler way to modify the regex. I know escaping the special characters would fix it.
@Loktar lol, its just random ;)
 
12:30 AM
haha I figured, just messing around
 
bugging me
wth?
 
@RahulDesai Testing a global regexp mutates its lastIndex
 
I do not want to do it the ugly way -> jsfiddle.net/a8m74k8a/2
 
@Zirak WHY god, why?
 
ikr
 
12:35 AM
Either don't make it global, or don't use a regexp and just indexOf
 
Anyone know why I can't to seem to find the WebServer folder on mac /Library/WebServer/Documents
 
Y'know what two things people love? Regexes and state machines! Let's stuff 'em together!
 
trying to get php, and phpmyadmin working
 
because of the g flag...
 
indexOf sounds good actually
 
12:36 AM
@SomeKittens itching to say that regexps are already state machine, gives up and goes get special cream
@CSᵠ So that you can exec/test in a loop
 
I like state machines.
 
I'm not justifying it, that's the rationale
 
@SomeKittens ppl really don't like state machines?
 
I try to avoid state when possible.
More of a providence guy.
 
State machines are fantastic!
 
12:38 AM
semi-related. I love graphviz.
 
@Zirak Have you played with Redux?
 
@SomeKittens A little, it's a state machine
 
> State machines evolved into Gov Machines
 
Get one state, return another
 
yurp
 
12:38 AM
not-related. I love the Smith Street Band
 
Somehow, Chrome is not letting sound happen.
 
Mutative states and global state are what's preached against. You can't not have state.
 
brb
 
Unrelated, I recently discovered Tame Impala
 
@Zirak good band
 
12:39 AM
callback hell can be solved with state machines vs. forwarding
 
my database has state
i hope
 
Alaska
 
that's too much state.
 
@Luggage nah, you need a functional database
They go one step beyond Mongo and don't even pretend to hold your data
 
I have a purely theoretical database
Implementation is left as an exercise for the user
 
12:44 AM
in practice you have nada
 
Use a state monad
 
this wont work localhost/~username/phpinfo.php trying to get php to work on my local mac machine
 
This begs the question of why are you in the javascript room
it also begs the question of "It doesn't work" isn't an error
 
1:01 AM
!!> throw new Error('It does not works');
 
@SomeKittens "Error: It does not works"
 
^ there you go.
 
well trying to set up server on my local mac machine its not much of a programming question. by not working' i'm referring to its not showing me any server code. All its showing is url is not found on the server
 
!!s/rks/rk/
 
Sorry I assumed everyone here has a local server setup.
 
1:03 AM
@CSᵠ @SomeKittens "Error: It does not work" (source)
 
I'm new to MAC machines is all.
 
How'd you install PHP?
 
PHP is pre-installed in Mac OS X
 
lol
php is hard wired to mac internal hardware
without it the mac would just die()
 
oh man, didn't realize it was default
/me looks at MBP in disgust
 
1:14 AM
Is it really?
opens mac
 
opens cheese
2
 
oh god it is
 
it is
i just can't get it to work
 
At least it's broken
 
1:30 AM
@Phreak you can't! it's already at work for Mac's internal HW, you need to wait for it to finish before working for you
 
lol...
 
Steam link and controller just shipped! Hyppeee
 
Lol, first comment that grabbed me was 'opens cheese'. starred
I had to post this answer: stackoverflow.com/questions/33160950/…
 
 
4 hours later…
5:16 AM
help please. How can I sum all of the input boxes that when I type a value it totals to the total input box
 
5:27 AM
You can use a combo of $.map and Math.sum I guess...
Give us a jsfiddle to work with...
 
@Micaela 1. Loop over all the inputs using $.each or querySelectorAll in VanillaJS 2. Convert the value to Number 3. Create a variable to store sum outside of loop, initialized with zero 4. Add value of input inside the loop to sum 5. You'll get the total outside of loop
Follow the steps, if any problem then ask again
 
I will add step 0: "add a handler to all input's input event to do the following steps".
 
@Sheepy Aah, how did I forgot that
 
step 0?
I want to add from loan up to eye glass input then it totals to the total deduction
 
5:36 AM
@Micaela Do you know how to write handlers to handle input events?
 
Not yet
@Sheepy can you give me the link?
 
github.com/darkyen/vis - something I have started at my liesure
 
Then this chatroom is perhaps too advanced for your need. You can wait and see if someone if kind enough to fill in the script for you. Ask google how - there must be question like this on stackoverflow.
 
function findTotal(){
                var total_shares_amount = $('#total_shares_amount').val();
                var benefits = $('#benefits').val();
                var dividend = $('#dividend').val();
                var coop_shares = $('#coop_shares').val();
                var loan = $('#loan').val();
                var grocery = $('#grocery').val();
                var benefit = $('#benefit').val();
                var life_insurance = $('#life_insurance').val();
                var funeral_plan = $('#funeral_plan').val();
 
(Which would have better answers than what we can explain here)
 
5:39 AM
okay
thanks for your help
 
!!tell micaela mdn addeventlistener
 
@CapricaSix thank you
 
6:25 AM
Hi Guys, I need help in using different versions of JQuery
Some things work only when you define Jquery 1.8 and some thing work when you define 1.11.3
How can make the functions which work on 1.8 works fine with 1.11.3 as well?
 
1 message moved to Trash can
@ShirishSC Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
This works only when I define Jquery 1.8 a
 
moining
 
1 message moved to Trash can
@ShirishSC Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
I am sorry I am trying to learn how to paste code
 
6:31 AM
:D
 
I use Mac control + k or cmd + k is not working
 
use pastie or gist
 
Ok
Please check this code
It works fine in JQuery 1.8 and does not work with 1.11.3 can someone help me solve this issue?
 
6:44 AM
@Micaela you want to sum up the deductions (assume). add some css class for those input elements...attach keyup event handler and perform computation logic... #jquery jsfiddle.net/deostroll/ywx6zux4/2
 
@deostroll It's good thing to help people, but you're making people LAZY, by spoon-feeding them
The same people asks question without attempts thinking there's nothing wrong to ask question without even trying
 
Yeah i agree...shud have asked what he had tried...
 
Guys can you help me with the JQuery conflict?
 
jQuery.noConflict()
 
Ok
pastie.org/10485195
Please check this code
It works fine in JQuery 1.8 and does not work with 1.11.3 can someone help me solve this issue?
 
6:48 AM
@Mr_Green jQuery.noConflict()
 
Can it be solved using JQuery.conflict()?
 
@ShirishSC Yeah, we already saw that
If noone answers then probably noone is free to do so, no reason to keep posting the same thing
 
@Tushar yeah see I said the same
 
thanks let me see
 
0
Q: Older version conflicting with newer version of jquery

Deepika ThakurI am stuck in a major issue with jquery plugins. I have some code written with jquery 1.7.1, now I started using bootstrap and that need 1.9.1 jquery plugin or higher. After including this version "https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js ", my previous functionality sto...

@Mr_Green Quick Edit. :P
 
6:51 AM
Thanks guys, I will study the links
 
crl
@ShirishSC most wars could
 
7:04 AM
@crl and what if I had a library called jQuery with a method named noConflict? what then, huh?
(jQuery took the name from me)
 
user3119231
Good morning, ladies and gentlemen.
 
@Maurize Good morning, gentleman
 
user3119231
If someone thinks it is written wrong... :D dictionary.reference.com/browse/gentlemen
 
@Maurize Hmm? gentlemen is plural, gentleman is singular.
We are gentlemen, you are a gentleman. (Or are you?)
 
user3119231
nevermind. now we all know the truth.
 
7:10 AM
@deostroll Thanks :) (whispering)
 
(removed)
I wanna fit in too!
 
(removed)
 
(!removed)
 
(removed)
(removed)
 
user3119231
our model is back.
 
7:16 AM
model + programmer?
 
user3119231
@judy_morada
63 tweets, 51 followers, following 286 users
 
user3119231
@realsamtiago29, Manila, Philippines
Over All Quotes
3.2k tweets, 378 followers, following 267 users
 
user3119231
tweettunnel.com/realsamtiago29
 
crl
 
user3119231
7:17 AM
the last is my favourite -> GhettoKing0092
 
maurize you are great
 
user3119231
ironic on ?
 
fetching things?
 
crl
iron icon?
 
user3119231
I Ron Icon
 
crl
7:18 AM
I r onicon
 
I am ron and I con
 
iron man
 
^ epic
 
user3119231
 
user3119231
ironic on -> iron man
 
7:19 AM
!!friday
 
crl
!!youtube friday
 
crl
oh shit even youtube does it
!!undo
 
user3119231
Man this lady is annoying.
 
7:20 AM
@crl I'm afraid I can't let you do that, crl
 
crl
@Maurize this is an understatement
 
@Maurize Looks beautiful
 
user3119231
For most guys is every lady with two boobs beautiful.
 
!!youtube call me maybe
 
crl
7:23 AM
!!youtube let it go
 
crl
love it, sorry, oh it's lame actually, better in French
she has a more beautiful voice youtu.be/wQP9XZc2Y_c?t=56
 
!!letitgo
 
user3119231
 
user3119231
7:28 AM
Everything sitting in office on work will be happy!
 
hey, in Git
why use -f in checkout?
 
@emporio Forceful checkout
When Git doesn't allow you to checkout
because of unsaved changes, I guess
 
yep just found the man
ty
 
crl
love to use the -fuck option too
 
@crl ROFL, true
Can be used as synonym to -f
 
7:37 AM
Hi maurice - a boy's name
 
crl
an island's name too
 
hehehe
now i will never forget
mind = scarred for life
 
@Maurize you just made me included in NSA's hit list
 
hahaha
 
7:50 AM
no emo things now pls
 
!! youtube this is the end
 
something different came
!!undo
 
@Mr_Green I'm afraid I can't let you do that, Mr_Green
 
you have no power here, @Mr_Green the grey
 
7:52 AM
the grey?
ohh yeah pic is grey
 
pls
 
pls what?
 
I never watched the puny lord of rings
 
but that scene is almost a meme
 
7:55 AM
never seen that
 
great
 
If you're not gonna watch the movie at least read the books :p
 
lel
 
noted
 
8:19 AM
@rlemon @Loktar woohoooo!
 
Lo all, has anyone ever had any situation in Angular where they felt something like medium.com/@kentcdodds/… would be appropriate, and if so, what did you end up doing?
 
@FlorianMargaine this time I didn't click that.
 
Morning guys, hows things?
 
{{ {foo: "bar", baz: 23, pop: "345", 2334: "harry"} | json }}
when i put this Angular filter in index.html
it sorts it for me
i get this: { "2334": "harry", "foo": "bar", "baz": 23, "pop": "345" }
whyyyyyyy?
 
@emporio it can't be sorted - it's not in any order to begin with
 
8:32 AM
@IanClark
 
But when it's parsed as JSON I think to be determinate they do order the keys
 
@IanClark but I'm submitting it in a certain order
 
@emporio no you're not
It doesn't have an order, it's an object
 
order the keys??
where is the order??
the keys = "2334", "foo", "baz", "pop"
 
@emporio An object is a series of "key" "value" pairs - they have no order, and are hashed for a quick lookup
 
8:35 AM
right
 
You want to represent the object in JSON, which is just a string. Again, because the ordering of the keys is irrelevant it could represent your object in any way it wants, they'll all produce the same result
 
but when converting to JSON, they KV pairs are rearranged for some reason right?
 
But, it seems as though Angular orders key alphabetically so that you can determine the ordering
 
Alphabetically??
the keys = "2334", "foo", "baz", "pop"
 
so bored today
 
8:37 AM
Yes, an example I've come across is when constructing query parameters in a URL. When testing it allows me to use expectGET and pass in the values in alphabetical order
 
does that look alphabetical?
 
Oh, valid - but what do you want? What is the reason you're asking?
 
why does it illogically rearrange the order of the object in JSON ?
Werid right?
weird
 
It's not - it does not have an order
There is no order
 
oh so it just does some chigriboogri ?
and rearranges the object how it desires
that's interesting
 
8:40 AM
No - it's not rearranging anything
 
how so??
Input: {{ {foo: "bar", baz: 23, pop: "345", 2334: "harry"} | json }}
Output: { "2334": "harry", "foo": "bar", "baz": 23, "pop": "345" }
 
There's no inherent order, so your claim that there's "rearranging" is based on a false assumption - that there is an arrangement.
For instance, if you copied down a bunch of Smurf names, you can copy them in whatever "order" you wish - it has no meaning.
Having said that, it's not unlikely that angular takes something which is inherently unordered and when turning it into a string forces some order.
 
so you're saying that during converting to JSON, the computer decides fo ritself in what order it wants to store the KV pairs??
 
isn't the order specified in ES6?
 
There is no order
Remove the word order from your lexicon when discussing this topic
@FlorianMargaine Not to my knowledge, and conceptually it makes less sense.
 
8:46 AM
so it applies some random, and then makes a JSON object?
 
You're confusing two actions into one
 
wonder what kind of object I would get when I convert back to object
 
(1) Object creation
(2) JSON stringifying
When you create an object, the language doesn't guarantee any sort of order, because objects (unlike arrays) are not ordered. When you iterate over an object's keys, the order in which they arrive has no significance. They're in whatever form or fashion the engine decides to store or retrieve them.
 
right, so the machine decides how it wants to create the JSON
 
The native JSON stringification simply iterates the object and as such, doesn't care about order:
!!> JSON.stringify({ b: 4, a: 5 })
 
8:49 AM
@Zirak "{\"b\":4,\"a\":5}"
 
that's right !
 
However, it's not unlikely that angular for some reason or another implemented their own JSONification.
 
never saw this kind of restructuring in native JS
 
As an exercise to the reader, try and find where, how and why they do it.
 
Thanks!
 
8:51 AM
Enjoy
 
hey guys
 
@AndroidDev 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.
 
well, tnx to robot :)
 
@Zirak picked up the baton for me :P
 
user3119231
 
8:59 AM
@emporio yeah, it's definitely there :p
 
@AaronHarding
@AaronHarding What is?
 
javascript restructing an object
 
user3119231
does a onerror event exists for div background image?
 
@Maurize $('<div/>').attr('background-image', 'some-image-url.png').load(function() { .. }); maybe?
 
user3119231
@AaronHarding maybe no jquery.
 
9:10 AM
@Maurize hehe, well then.. which browsers do you need to support?
 
@AaronHarding you notice the random restructuring too?
 
user3119231
				qs(".navigation_menu_wrapper_image").style.background = "url(" + ip + "groupster/archive/" + localStorage.getItem("id") + "/profile_picture.jpg?" + (new Date/1e3|0) + ") no-repeat center";
				qs(".navigation_menu_wrapper_image").addEventListener("error", function(){
					this.style.background = "url(xyz.png)";
				});
 
@AaronHarding I'm trying to convert it back to object now to see what I get
 
@emporio yeah. had a project where we dumped an ordered php object to a javascript object and the order was completely different
 
@AaronHarding well I'm glad we see the same things
 
9:13 AM
it's so frustrating
like they were alphabetically ordered, and we used that js obejct to populate a list from a-z, or so we hoped
:p
 
yeh
Like I said, I'm going to try onvert back to an object now from json and see what order I get
 
@Maurize there's no native way to listen for an error event on background images
 
user3119231
but an error will print out
 
user3119231
hm any solution for this?
 
user3119231
fuck this -> I will copy a template image to the users directory on registration to make sure he hes an image
 
user5020521
9:29 AM
what's the better solution to catch parameters from php to javascript? jSON.parse or stringify?
 
user3119231
I use JSON.parse
 
user5020521
well @Maurize what if you had a function in your php to count the rows deleted and you wish to tell the ajax in your js hey you deleted 1 damn row man how would you do that?
 
user3119231
I will tell you exactly how to.
 
user5020521
i've been stuck with this for days matter of fact I can't tell my ajax what damn row was deleted
 
user5020521
I'm able to count them in my php but unable to pass that info to my js
 
user5020521
9:38 AM
and that's quite frustrating
 
@Riccardo990 They're inverse operations
 
user5020521
@IanClark excuse my ignorance but what you mean for inverse operations?
 
>>> var a = "foo"
>>> JSON.parse(JSON.stringify(a)) == a
true
 
9:53 AM
52 messages moved to Trash can
be happy that I didn't move everything to the PHP room
 
help me to create that series ... 1,9,25,57 i get what the difference table of 8 is running with each itteration.. it is necessary to done with multiple loop
 
user3119231
The way to a good programmer is to learn, learn and before I forget: LEARN
 
@SajjadKhan You make no sense.
 
user5020521
ok I'm going to read it later
 
@SajjadKhan you'll have to run your original text through google translate one more time
 
9:55 AM
:(
 
generate that series 1,9,25,57
 
user3119231
@dievardump what the fuck is this? A question or brainfuck? :D
 
user5020521
@Maurize after editing that file I need to parse that function in my ajax
 
@Riccardo990 now stop.
 
HAMMERTIME!
 
user3119231
9:56 AM
@Riccardo990 I won't give you a complete AJAX function -> GOOGLE -> READ -> LEARN -> AS I DID!
 
user5020521
@FlorianMargaine I got back to talk about js @Maurize I already have an ajax function
 
user3119231
Then why you ask. Simply json parse your responseText and here you go. Where is the problem?
 
the table of 8 is add with each itteration
 
1 + (0*8) = 1
1 + (1*8) = 9
9 + (2*8) = 25
25 + (4*8) = 57
 
user5020521
and I'm already deleting rows what I'm missing is to count them
 
9:57 AM
where is the 3*8 in your list @SajjadKhan ?
 
yeah i already figure it out
 
user5020521
so I parse the responseText from that file
 
user3119231
 
@dievardump yeah thanks
@Riccardo990 you are right my mistake
 
user5020521
@SajjadKhan I'm right about what?
 
9:59 AM
@FlorianMargaine will you be near Lyon in January?
 
user5020521
@Maurize but if your cock is larger the condom just broke and you might get an awful s****
 
We could have a coffee or a beer with @DenysSéguret
 

« first day (1826 days earlier)      last day (3114 days later) »