« first day (963 days earlier)      last day (3978 days later) » 

4:00 PM
I always the troll
 
@BenjaminGruenbaum Gigabyte, AMD3+ newegg.com/Product/Product.aspx?Item=N82E16813128440
 
@MirkoCianfarani push them in an array
 
I know, it sucks.
In fact, instead of wasting money on a GPU, I'll replace the motherboard
 
details @BenjaminGruenbaum
 
Being bad at js doesn't make you a troll. being bad at Google does.
 
user1596138
4:01 PM
^^
 
user1125394
I wish google support placeholders for a word
 
@BenjaminGruenbaum AMD FX-8150
 
user1596138
But really, about this woman at work. She just called and said she can't come in today because she has a meeting at this bar that I knew the old owner of which is now closed.
 
user1596138
Boss said when I get tired of her shit to fire her. I asked if he was serious because I'd literally do it right now. He said no...
 
4:04 PM
@Jhawinsss lol
 
user1592813
It's not working?
 
@IderAghbal FORMAT YOUR CODE (Control+K)
1 message moved to Trash can
 
user1592813
That's what I did.. :/
 
user1592813
$(document).ready(function() {
		var refreshIntervalId = setInterval(function() {
			jQuery.get('<?= $url ?>', function(data) {
				content = data;
			});
			if(content != '') {
				$('body').append('<a href="../51cae77097388705c0730167291b3d04_0da0f83686284a0db4a84727737b5d88_2200_1280x720Seg1-Frag.flv" style="display:block;width:711px;height:400px;" id="player">	<img src="<?= $json->thumbnail_url ?>" alt="<?= $json->title ?>" /></a><br><br>');
				clearInterval(refreshIntervalId);
			}
		}, 10*1000);
 
user1592813
oups
 
4:04 PM
Great
Now what is the question?
 
user1592813
I get "Uncaught ReferenceError: content is not defined "
 
@Zirak Honestly I'd save up and wait a year before upgrading, if you have only one monitor get another, if you have two get a third
 
@IderAghbal Because you have low intelligence
 
@IderAghbal right
 
@Zirak Looks like a decent CPU though
 
4:05 PM
@IderAghbal read this:
74
Q: How to return the response from an AJAX call?

Felix KlingI have a function foo with makes an AJAX request. How can I return the response from foo? I tried to return the value from the success callback as well as assigning the response to a local variable inside the function and return that one, but none of those ways actually return the response. fu...

 
@BenjaminGruenbaum The motherboard haunts me. And I'd get a 3rd monitor but...well...realestate difficulties.
@OctavianDamiean It's kick-ass
 
@Shmiddty no need to hate on newbies
 
user1592813
thanks a lot @BenjaminGruenbaum :D
 
@BenjaminGruenbaum he responded to an automated message
 
user1596138
@Shmiddty Haha. Bananas
 
4:07 PM
@IderAghbal there is an answer by Felix you'll like (talks about jQuery) and I recommend you also read the one I wrote without jQuery
@Shmiddty touche
 
come on, it isn't that obvious if it's your first 10 minutes in this chatroom
 
!!s/in this chatroom/on the internet/
 
@Shmiddty come on, it isn't that obvious if it's your first 10 minutes on the internet (source)
 
@GNi33 This sounds like a confession
 
nah, not really
 
user1596138
4:09 PM
@Shmiddty I don't ever see the point in doing that... Sort of a waste of time and space.
 
@Jhawinsss doing what?
 
Seriously, if you can't recognize a boilerplate message instantly, you deserve to be ridiculed.
 
I don't think so
 
user1596138
@BenjaminGruenbaum Replacing a word like in the message I replied to. It's just like, changing someones wording around to make them look even more pathetic.
 
God dayum, Asus Sabertooth looks great. Except that it's UEFI.
 
4:11 PM
@BenjaminGruenbaum I have no empathy for stupidity. I know not all people feel the same.
 
thx for genial idea @BenjaminGruenbaum
 
@Jhawinsss It's to make it sound like what you wanted to say. Also, sed is slick
@MirkoCianfarani yw
 
user1596138
@BenjaminGruenbaum I guess so. I mean, I get it, but I don't see the point haha.
 
@MirkoCianfarani ignoring in 3...
 
4:12 PM
@Zirak You don't need a new motherboard yet, it's a waste of money...
 
user1596138
Not trying to be a bitch here. Just saying.
 
@BenjaminGruenbaum But my current motherboard...it haunts me...it's mini atx and stuff
 
now I search on google how to calling the function generate via Javacript
 
@vzhen 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.
 
4:12 PM
But you're inevitably right
 
why? ignoring in 3 @JanDvorak
 
2...
 
@Zirak You gain nothing from upgrading the motherboard, unless it's limiting you and you're overclocking
 
Does anyone using angularjs here??
 
user1596138
@BenjaminGruenbaum Although I've never used it I do like sed from what I've read.
 
4:13 PM
@vzhen I do
 
1 @JanDvorak now how do you respond?
 
@vzhen casually
 
@MirkoCianfarani Don't bother other users.
 
@MirkoCianfarani he probably just ignored you
 
@BenjaminGruenbaum is he still here?
 
4:14 PM
@BenjaminGruenbaum instead...find me a non-crappy laptop that'll allow me to remove any trace of Windows
 
user1596138
@BenjaminGruenbaum You didn't write this page did you?
 
i am not stupid
quiets
 
i m here wait for my question
 
@Zirak Windows isn't that bad
 
@Zirak Do you need a laptop? I mean, do you code when you travel?
@Shmiddty Zirak knows I like windows :P
 
user1596138
4:16 PM
@Shmiddty Sure it isn't.
 
user1596138
@Zirak On what laptop can you not remove every trace of Windows???
 
@Zirak which laptop wouldn't allow you to remove any trace of windows? ;)
 
@BenjaminGruenbaum I have a global footer which display logged-in user info. and also I want this logged-in user info able to use in and validate in other routes/controllers. Where should I place my login authentication ctrl ?
 
ninja'd -.-
 
@Shmiddty (and friends) I've had laptops give me the shoulder when trying to install some form of linux.
@BenjaminGruenbaum I'd prefer to have a laptop.
They do weird me out, though...
 
4:17 PM
full form laptop?
 
@Zirak depending on where you live, I could help you better.
 
@Shmiddty IEEE !== Institute of Electrical and Electronics Engineers, one would presume?
 
user1596138
@Zirak I had a buddy last week who's BIOS just commits suicide whenever we try to install any form of unix. I don't understand it, but Samsung said that's the way it is and that they don't care.
 
@Zirak which screen size?
 
@vzhen Umm... I don't get what you're saying, login information would probably be in a service though. I need to understand your use case.
 
4:19 PM
@Zirak true
 
@vzhen would you mind creating a fiddle illustrating your issue?
 
@FlorianMargaine 13''-15'' ish. I'd want to code and stuff on it, so it needs a bit of real-estate
 
@ben
@BenjaminGruenbaum ok
 
@Zirak Do you want to use it instead of your desktop, or in addition to it?
 
The latter. I'll never leave desky.
 
4:20 PM
@Zirak I got a Zenbook Prime UX31A some time in the summer and I'm very happy
 
@Zirak I assume you don't need blazing fast performance?
 
They go for a bit less of 1000$ where I live because Intel employees got them. They're probably getting new ones now that Haswell is out.
If I waited, I could have probably gotten a really cheap and awesome Haswell laptop.
I got my UX31A second hand but unopened with 3 year warranty at home
 
can someone help me with my question? stackoverflow.com/questions/16866183/…
 
Man, I feel infinitely cheap...and no @Shmiddty. It'd need to compile node within the day while I'm playing 3d pong.
 
the answer sorted the ID# but not the 2nd array [name] in alphabetical order..
 
4:22 PM
@rubberchicken you're trying to sort an object's properties?
 
yah i have a hashtable[id][name] and i'd like to sort it in alphabetical order [name]
so the pulldown form is in order
 
@rubberchicken Object.keys(hashtable).sort();
 
thanks ill try that
 
@rubberchicken if you want I can formulate that into an answer
Or do you want to sort on the values and not the keys?
 
sure id appreciate that
values
 
4:24 PM
inform you @BenjaminGruenbaum and people what I was looking stackoverflow.com/questions/5475979/…
suggest?
 
so many messages
@Zirak honestly im out of the loop on video cards
 
@Loktar Nevermind my earlier ping
 
I always go ATI
 
I've decided I'm stupid. Something I should have remembered.
 
@MirkoCianfarani that's a horrible idea in so many ways
 
4:25 PM
@Porizm No. It's not faster. CSS selectors are executed right-to-left
 
for using banner... I need the refreshing one div that contain the banner (every 60 second) @BenjaminGruenbaum one suggest?
 
@rubberchicken something like jsfiddle.net/tVHcY ?
 
now I try
 
@MirkoCianfarani what's 'refreshing' ? Read a JS tutorial man...
 
update div every period with setInterval @BenjaminGruenbaum (understand?)
 
4:27 PM
i think that should work, thanks ill try it out and let you know!
 
boo setinterval
 
eheheh let's go
 
I forget, is doing a for(item in array) considered bad?
oh wait, why bother!
 
user1596138
@Zirak I'm going for the 17" System76...
 
user1596138
bonobo
 
4:30 PM
@Loktar you saw it ?
 
0
A: sort javascript populated select list by alphabetical order

Benjamin GruenbaumHere we go. You want to sort an object's enumerable keys by their values. You can use Object.keys to get the enumerable properties of an object. Then, you can use Array.map to convert each key, to its value in the object. (That link has a shim for older browsers in both of those) Then yo...

@rubberchicken there you go
 
Object.keys(clientProjectsHash).sort().forEach(function(key){
    var value = clientProjectsHash[key];
});
@BenjaminGruenbaum while map works, I think forEach is probably the better choice.
oh wait
nvm
 
@Shmiddty I think he wants to sort by value
 
your answer is totally better
I think the problem is trickier
 
4:32 PM
@Darkyen no what was the link?
 
his structure is more like:

var hash = {
    "key":{name:"abc",prop2:"def"}
    ....
}
 
@Darkyen I got it nm
 
var sortedValues = Object.keys(clientProjectsHash).map(function(elem){ // Get the keys, and map them
        return clientProjectsHash[elem];     // to their value
}).sort(function(x,y){
    return x.name - y.name;
});
@Shmiddty then something like this
 
i put that after var clientSelect = document.getElementById('clientSelect');
 
user1596138
Anyone ever used wput?
 
4:34 PM
hold on
one second sorry
 
@BenjaminGruenbaum would have to be x.name < y.name because strings.
 
i pasted my function @ jsfiddle.net/nRczd
 
@Shmiddty Yeah, if name is a string it'd be <, otherwise it'd evaluate to NaN all the time
 
its still not sorting the pulldown list
 
@rubberchicken SERIOUSLY?
You don't even have a variable named clientProjectsHash
 
4:36 PM
lol
 
@rubberchicken ALSO, YOU HAVE A FUNCTION AND YOU DON'T CALL IT
 
user1596138
I think this is a good idea for Caprica, but it would be really annoying IMHO.
 
Why would you write a function then not ever call it?
 
also, var sortedValues =... then still using for (clientKey in clientProjectsHash) {
 
4:37 PM
Yeah -_-
 
@BenjaminGruenbaum check app.js file thanks
http://plnkr.co/edit/LEuM2rGUvGyJ6fi2Jj7w?p=preview
 
You don't use for... in loops on arrays, ever
 
no its there
 
@BenjaminGruenbaum *unless golfing
then you use them all the time
 
4:38 PM
@Shmiddty using implementation detail in code, awesome :P
@rubberchicken What the heck is that?
 
@rubberchicken show us generated code only
 
@rubberchicken Have I upset you in some way that caused you to show me this code?
 
we aren't a web server
 
lol ok sorry
 
brb smoke
 
4:39 PM
Oh my
 
user1596138
 
@vzhen Yeah you need a service.
@Jhawinsss The first robot to pass the Turing test will most likely be a troll. Come to the room, post random shit, use bad English, ask a retarded question, say U MAD and leave. No way in hell anyone would think it's a bot
 
user1596138
@BenjaminGruenbaum True...
 
@rubberchicken Why are you not using an array of objects to begin with?
@rubberchicken also, you're not calling your function
 
4:43 PM
@BenjaminGruenbaum a service that get the data return from FirebaseAuthClient. Let say return $rootScope.user then in each controller. If $scope.user to check if user logged in ?
 
my function is called im just not pasting the whole file
if you want me to pastebin the whole file i will
 
@vzhen Yes. I find it hard to say that, because I hate singletons, but it's probably the "Angular" thing to do. Services are what you usually do to share information between controllers like that
 
i apologize if i am bothering you benjamin
 
@vzhen Probably a provider is a better solution.
 
i'm not experienced in any of this, and this code im using has worked with the form checking and pulldown menu onchange...etc but all i need to do is get the pull down list in alphabetical order
 
4:47 PM
@BenjaminGruenbaum can you give me some example of "how provider" ?
 
@BenjaminGruenbaum k, will check it out ..thanks
 
hmm, I was wondering about the vendor prefix in blink... whether or not they'd keep -webkit in lieu of -blink or -chrome or something.
 
var name = "foo";
var func = new Function(
     "return function " + name + "(){ alert('sweet!')}"
)();

//call it, to test it
func();
This is better @BenjaminGruenbaum
 
i updated it with onLoad function which calls the functions
 
4:51 PM
@canon or they could just not use vendor prefixes
 
@Shmiddty they're not going to.
 
oh, good
 
@Shmiddty unfortunately, that also means you have to opt-in to experimental features as the client
 
vendor prefixes were a horrible idea
@canon That's how it always should have been
doesn't php have a json serialization method built in?
!!/stat rubberchicken
 
@Shmiddty rubberchicken has 79 reputation, earned 0 rep today, asked 16 questions, gave 1 answers.
 
4:55 PM
figured
 
json_encode();
&&
json_decode();
 
@canon chrome://flags you mean?
 
@Zirak Yeah.
 
@Shmiddty such a hater
 

« first day (963 days earlier)      last day (3978 days later) »