« first day (878 days earlier)      last day (4063 days later) » 

12:01 AM
Simplicity is prerequisite for reliability. [Edsger W. Dijkstra]
 
If you deal with a lot of asynchronous stuff, it might be a good idea of have this method on your objects:
        destroy: function() {
            for(var i in this) {
                if (this.hasOwnProperty(i)) {

                    if (Object.defineProperty) {

                        Object.defineProperty(this, i, {
                            get: (function(i) {
                                return function() {
                                    throw new TypeError('Access to property "' + i + '" of destroyed class instance.');
                                };
                            })(i)
this will make life a lot easier and catch any stray timeouts / intervals and a lot of other shenanigans :)
 
I'm still all like, is it no longer hip to cache elements? reaching into the DOM each time and searching for them is the new cool?
 
12:21 AM
@rlemon /die and scold or /ban
 
0
Q: Javascript not working on site

NikiI've recently created my first wordpress site, and have installed it all manually. It's all working fine, except that none of the Javascript on the site works. I think this may have been corrupted when installing the site, as there were a few issues. What needs to be in the site and where in orde...

 
Javascript works fine I belive
 
12:40 AM
!!/scold rlemon
 
@phenomnomnominal Command scold does not exist.
 
Wow, I guess I suck at asking expert questions: meta.programmers.stackexchange.com/q/5654/54164
Apologies, @RobertHarvey, for not asking the right kind of question for your cabal.
 
@rlemon: what do you think of that costco.ca/… ?
 
@dievardump Not bad, but I'd worry about battery life. SSD is a big plus
(Then again, I always worry about battery life)
 
The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle. — Joe Armstrong
 
1:00 AM
hi guys
 
Hello, I am SomeKittens, current guardian of the JavaScript room. To continue, you must answer three questions!
First: What is your name?
 
Balthazar, impresario.
 
1:37 AM
@loktar can you give me back the grenade video link please?
well it was Ivo, nevermind
 
1:55 AM
@dievardump can we couchsurf at your house, or do you want to couchsurf at our house?
 
@copy Sorry?
 
Just a question
 
@dievardump the alternative is to mutate state
a shallow copy extend on a state as small as that is cheap
it's called FUNCTIONAL reactive programming for a reason. Mutating state is a side effect
 
ok
@copy I couchsurf at people's places, and host.
 
I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad programmers worry about the code. Good programmers worry about data structures and their relationships. — Linus Torvalds
 
2:07 AM
hey can someone check this out im 14 i made it myself 67.184.73.19
 
@MoussaHarajli haha ummm....
 
Hello all! I've been running into a problem with submitted a form while simultaneously uploading a file. Any ideas?
0
Q: HTML Form with file upload Status: File progress not being refreshed

panoramicTo give you a little background, I am constructing a website that allows users to submit pictures to a public gallery. Once the user fills in some basic information, they press submit and a new post page is created with the uploaded image. I am attempting to incorporate a progress bar / informa...

 
2:33 AM
anyone have an idea how I can use the normal wp admin instead of the wpmu user admin not the network admin but the user. How can I make it so each one makes its own wp-content file?
 
@BrandonGelfand This probably isn't the place to ask WP questions
 
Where else would I? PHP is unresponsive...
no wordpress rooms here
@MoussaHarajli pretty sure you didnt make Wamp.... just saying....
@twiz ?
@everyone
please...
 
@BrandonGelfand sorry... I despise wordpress
 
PLEASE don't ping random people just because you have a question
 
Don't ping everyone. Hint: Not many people are awake and nobody cares about wordpress
 
2:41 AM
Your time would be spent learning generic language things instead of an implementation specific to WP.
 
@SomeKittens The gift your kind have given us is greatly appreciated: youtube.com/watch?v=zi8VTeDHjcM
 
You're very welcome, human.
 
See those "Hooray"s?
Those were the steps of discovery.
 
Dart is a good language and idea
 
anyone knows a browser trick or a program that lets you scan a whole web directory to find a specific word and its location?
(Windows)
 
search bar. youre wellcome !
 
3:50 AM
0
Q: Which is simpler for REST client call to return JSON and return from JQuery/JavaScript or Spring RestTemplate?

CrowieI've been trying to hack up an annotated Spring MVC web app (have some experience with Spring but also rusty and not a super programmer) but it's proving pretty hard to call a URL of my web app which fires a request to a remote API (UK Police data) and recieves a reply which I can then return as ...

 
4:01 AM
Hi guys
I have a question
@OliverSchöning ye thx
The question is an extension to stackoverflow.com/questions/5136407/…
 
chrome loves you guys, it won't unpin >.<
 
IDE features are language smells. — Reg Braithwaite
 
4:34 AM
Hi
Can anyone help me to rectify the issue in jquery
While i'm using JSONP i'm getting following error : "SyntaxError: invalid label"
 
5:13 AM
@BadgerGirl can you help?
 
15 messages moved to Trash can
 
Dude?
what the heck?
 
Please don't post tons of unformatted code
 
it is formatted
 
And don't ping people who aren't responding
 
5:14 AM
wow......
can u help me?
please?
 
Make a question on SO. And I suggest you make the problem smaller before you do that
 
its a simple thing....
does it do the same the html as the java
scrpit
its not rewriting the stuff..
 
I have one hand in my trousers, I can't help right now
 
Thats gross bro.... just really gross......
 
Just kidding. Now don't annoy me
 
5:17 AM
Please
3 seconds of your time
 
I have 3 seconds. :)
 
'<SCRIPT LANGUAGE=JavaScript SRC=algebra.com/cgi-bin/…;
it didnt format...
'<SCRIPT LANGUAGE=JavaScript SRC=algebra.com/cgi-bin/…;
' ' is to format right?
"'<SCRIPT LANGUAGE=JavaScript SRC=algebra.com/cgi-bin/…;
 
Format your code - hit Ctrl+K before sending
 
<SCRIPT LANGUAGE=JavaScript SRC=http://www.algebra.com/cgi-bin/embed-solver.mpl?name=solve_quadratic_equation></SCRIPT>
THERE WE GO
it doesnt like me...
`<html><body><table border="1">
<tbody><tr>
<td>


(In <i>Quadratic_Equations</i>)<br>
<div style="font-family: Comic Sans MS;">
<h3>SOLVE quadratic equation (work shown, graph etc)</h3>
<form method="GET" action="enctype=&quot;multipart/form-data&quot;"><br>
Solve <input type="text" name="a" value="1" size="6">x<sup>2</sup>+<input type="text" name="b" value="-1" size="6">x+<input type="text" name="c" value="-2" size="6"> = 0. You can put negative numbers if you need to use a negative coefficient.
 
@BrandonGelfand Wait. Are you trying to steal the source code?
 
5:23 AM
its open source
but i wanna use it offline
technically yes....
but is that right?
 
Why don't you program it yourself?
It's just a quadratic equation solver.
 
cause I am trying to learn to...
I know that..
but there are more complex ones
I am just trying to get an understanding
so would the above code produce the same as that link?
@BadgerGirl ?
 
Ask @copy
 
No
dont do that
-_-
 
@copy doesn't like it when people ping him
 
5:27 AM
Can any one help on that JSONP
 
STOP IT
 
Right @copy?
 
DONT PING HIM
 
RAGE
 
Crud...
 
5:28 AM
This guy wants your help, @copy
 
Badger STOP!
 
HAMMERTIME!
 
I BEG OF U
Uh ohh......
@BadgerGirl can u help? please dont ping c*py.......
 
^ @copy
 
she is doing it not me.....
 
5:30 AM
Is anybody there to help ?
 
no we r all dead
sorry
 
I WILL BANN YOU ALL IF YOU DON'T STOP
 
@JohnPeter @copy is here to help
 
HAMMERTIME!
 
I TOLD HER TO STOP
BADGER DONT BADGER COPY
wow what a pun....
 
5:31 AM
Thank you @bager
 
ok john, even though I am completely incompetent i will give ur question a shot
 
While i'm using JSONP i'm getting following error : "SyntaxError: invalid label" @copy
 
@copy WE DARE YOU TO BAN US
 
what is it?
BADGER B QUIET
 
All of us. We stand together.
 
5:32 AM
I DONT!
 
Hey guys good morning/afternoon/night to all :)
 
<SCRIPT LANGUAGE=JavaScript SRC=algebra.com/cgi-bin/…;
is the same as
<html><body><table border="1">
<tbody><tr>
<td>


(In <i>Quadratic_Equations</i>)<br>
<div style="font-family: Comic Sans MS;">
<h3>SOLVE quadratic equation (work shown, graph etc)</h3>
<form method="GET" action="enctype=&quot;multipart/form-data&quot;"><br>
Solve <input type="text" name="a" value="1" size="6">x<sup>2</sup>+<input type="text" name="b" value="-1" size="6">x+<input type="text" name="c" value="-2" size="6"> = 0. You can put negative numbers if you need to use a negative coefficient.
correct?
I am still trying to learn this so please bear with me....
anyone?
 
Hey gais
function fetchMarker(id) {
var data;
$.ajax({
type: "GET",
url: '/routes/',
data: id,
dataType: "JSON",
success: function(data) {
console.log(data)
}
});
}


But it goes as http://10.0.0.24:3000/routes/?15 I need no ? I think for it to work with RoR
Ideas/
?*
 
si no one can help me?
so*
 
@copy can you help him?
 
5:41 AM
@BadgerGirl instead of asking him, can u try please?
this is going to get no where pestering him
 
But I don't know and maybe @copy can help. :(
 
I call bull.. I think you know. Please help me, and stop pinging him
 
Has anyone really been far even as decided to use even go want to do look more like?
 
@brandon can you help me ?
Is anyone familiar with JSONP ?
 
5:52 AM
I can set bounties now, watch the fuck out
 
JSONP experts or JSON Experts here ?
 
I think you're looking for @twiz. He's an expert.
 
bros.. what do i do if i want to use MD5 in js?
 
6:12 AM
Is he available in this chat room ?
@badger
 
No, bye.
 
Hi twiz, this is john,
 
:-)
any one what do i do if i want to use MD5 in js?
 
@basav You can use jQuery plugin for this : archive.plugins.jquery.com/project/md5
for MD5
 
@J
@JohnPeter they have discontinued it isn't it?
 
6:17 AM
means ?
@basav
@basav can you try this one : code.google.com/p/crypto-js
 
@JohnPeter hi. What am I an expert on? haha
 
there is no $.MD5 in the latest JQuery
i tried crypto-js
it is producing incorrect MD5 hashes
 
Why exactly do you want MD5 in javascript?
 
i compared it with MD5 generated in Java
they are not one and the same
 
6:21 AM
@Basav Is there a reason you don't want to do it on the server side?
 
I'll assume that means yes...
 
@twiz can you help me to get resolve the JSONP error ?
 
@tw
@twiz my JS is for a mobile app, i am trying if it can be done on client side too
Assume we will do MD5 on server side, but still want to do some kind of encryption on client side so that when data is flowing in HTTP, it is not naked
 
in javascript, how do I insert after the first element? ('<li>2nd</li>').('#list ul li').first().after() ???
erm jquery
 
6:29 AM
problem with $.ajax
whenever i use
beforeSend
to set customer header fields using xhr.setRequestHeader
the HTTP Method changes to OPTIONS
any cure?
checked google, no cure found there
 
@JohnPeter Do you mean it isn't properly formatted?
If so, run it through a formatter to check jsonformatter.curiousconcept.com
 
@twiz yeah, it's showing valid
 
Well I guess at least you know its the "P" part of JSONP....
 
I need help..
@twiz
I tried perl
 
6:39 AM
but its like 2:30 and I'm too lazy for this shit
 
JS
HTML
@twz i am only 14
 
@BrandonGelfand jesus christ calm down... I don't even know perl
 
@twiz *
 
shut the fuck up
 
@twiz i know
 
6:39 AM
@twiz My script Part is :
<script type="text/javascript">
(function($) {
var url = 'some url';
$.ajax({
type: 'GET',
url: url,
async: false,
contentType: "application/json",
dataType: 'jsonp',
success: function(json) {
console.dir(json.d);
},
error: function(e) {
console.log(e.message);
}
});

})(jQuery);

</script>
 
but it says JS
 
I don't care if you're 14 stop fucking pinging me
 
but in it is HTML
How does it work, like parse it?
I cant figure it out.....
 
@twiz can you check my script and let me know if anything i did wrong ?
 
This solver is provided by <A HREF=http://www.algebra.com/>Algebra.Com</A>:<BR>
<SCRIPT LANGUAGE=JavaScript SRC=http://www.algebra.com/cgi-bin/embed-solver.mpl?name=substitution></SCRIPT>
 
6:42 AM
@twiz My url part is : var url='https://ssl.bing.com/webmaster/api.svc/json/GetCrawlIssues?siteUrl=My_Web_U‌​rl&apikey=My_API_Key&callback=?';
 
@JohnPeter don't see anything wrong, but whats the error you get in the console?
or is the error in the response?
 
@twiz please help me........
 
@twiz My error is :

SyntaxError: invalid label

{"d":[{"__type":"UrlWithCrawlIssues:#Microsoft.Bing.Webmaster
 
@BrandonGelfand Its javascript....
 
Where is the source though?
I cant find it
 
6:44 AM
@twiz while running that script in browser
 
4
Q: Invalid Label Error with JSON request

Oscar GodsonI've read about this a lot and I just can't figure it out. It has nothing to do with MY code, it has to do with the feed or something because if I swap it with a Twitter feed it returns an Object object which is perfect. $.getJSON('http://rockbottom.nozzlmedia.com:8000/api/portland/?count=1&...

 
So @twiz where is the source?
 
@BrandonGelfand oh actually its not javascript ha
its doing it on the server side
 
so i cant get the script?
 
nope
 
6:47 AM
:/
what is this then
how do I make that run?
it says its the source.....
 
@BrandonGelfand Oh, well I guess that guy posted the source code. That might be it then. I don't know PERL though
 
Is that perl?
 
actually, I don't think thats the source
 
Well, maybe it is, I really have no clue
 
6:50 AM
Know how to convert perl to javascript?
 
From 50 to 100+ points in under 5 minutes, I broke stack
 
Yea, by understanding both perl and javascript ha
@XCritics say waht?
 
well I am screwed major time
 
@twiz I said I'm crazzzzehhh
What's wrong here
 
@BrandonGelfand why do you even need that?
 
6:52 AM
			var dataString = $('#markerform').serialize();
			var id = $('#route_id').val()
			$.ajax({
				type: 'POST',
				url:  '/routes/'+id,
				data: { "_method":"put", dataString},
				dataType: "JSON",
				success: function(data) {
					console.log(data);
				}
			});
 
I am trying to make an iOS app
Gonna take all the code
give a nice GUI
 
hahaha ok you are totally trollin in here
 
huh?
how am i trolling?
 
@XCritics too much jQuery?
 
@twiz that might just be the case batman
 
6:54 AM
@XCritics is the one trolling @twiz
?
 
No trolling here
 
@BrandonGelfand Well unless you're using phonegap or something
 
@twiz is PUT acceptable across all browsers yet?
 
@XCritics ummm....
now you be trollin
 
@twiz I was thinking phone gap if i could do JS but it wont work with Java or perl
I am looking at camel bones probably (The perl version of phone gap)
 
6:55 AM
@twiz haha no I'm dead serious, I'm trying to do a 'PUT' with RoR, everybody says just use PUT instead of POST but I want to try to remain compatible with most browsers
 
@BrandonGelfand You realize you can probably just find a different script, no?
 
@twiz I did it via curl, Thank you so much for your help
 
I am thinking about it, I just like how this one shows the graphs step by step
different then the just spit out the answer normal thing
 
@XCritics Well I'm pretty sure PUT has been around since pretty much ever... Its a fundamental part of HTTP
 
@twiz everbody says RoR uses _method: "PUT" cause of it's imcompatibilites
 
6:58 AM
@XCritics I don't have a clue what that could mean, but I don't know RoR....
 
Alright
 
@BrandonGelfand Well the code you found definitely wasn't all that anyway...
Ok no more thinking for me
 
@twiz good good
 
Exception is a great feature when you want to keep bugs for another day
 
xD @twiz sorry for the late reply
yeah the code is shit and I know it
I am sure I can work up some sort of computational system in Obj-C
Hey @phenomnomnominal
Glad to c u :D
 
7:14 AM
Yo
 
heard of sumopaint?
 
I am chatting with the devs
we might work something out where we use there thing in my startup
still in the air atm
I think they might say yes though
i hope they do...
 
Thats great!
 
Cloudflare same thing accept they said yes to a special discount
2.50 a site
instead of 5 like normal
Bluehost is gonna get me a dedicated server with some awesome specs
The Premium Plan will be on a 3.7 GHz quad core 8 thread 8MB Cache. It will run on 16 Gig RAM and have 2 1 Terabyte RAID 1 HD's for storage, completely mirrored. It will also include one free domain and allow for up to 5 dedicated IP's.
240 a month ^^^
one of only 4 ppl who are gonna have a dedicated server with them
 
7:18 AM
@phenomnomnominal Are you educated in rails at all?
 
@phenomnomnominal It's ok.. I still respect you.
 
Hi @all
Any sencha extjs pros here?
 
@phenomnomnominal I am so good with business, ok with coding
now i just gotta find the right person to help with the coding
 
@XCritics @twiz PUT doesn't work through forms.in browsers. It works with XHR though.
 
7:22 AM
@XCritics u still trolling?
@phenomnomnominal
YESTERDAY
i got banned for 16 mins
for saying duck
yes duck...
 
I don't troll
If it wasn't for @phenomnomnominal I'd need a new monitor 2 days ago, so I'm just saying I respect him I don't see the troll :/
 
Any extjs dev's here?
 
Languages that try to disallow idiocy become themselves idiotic. — Rob Pike
 
Hello
I'm geeting gery color box issue on android webview
1
Q: Grey Colored box issue on web-view on text selection

sachin003I'm rendering a html page(html page is constructed using JQuery, text with html tags, used a canvas in it) to Activity with web-view & to default browser comes with device. When I long press on text in html page I'm getting dark grey colored boxes on it.This is unexpected & weird behavior...

anybody know whats the problem is ?
 
7:48 AM
@phenomnomnominal Think you could answer a quick question for me that I've googled the crap out of?
 
Ok so I have
if ($('#markeroption').val() === "deletemarker") {
			var id = $('#route_id').val();
			$.ajax({
				type: 'DELETE',
				url: '/routes/'+id,
				dataType: "JSON",
				success: function(data) {
					console.log(data);
				}
			})
			return false;
		}
and it works great
and deletes the thingy from the database
but the success is not executing
I can't get console.log to show, or any functions to cast from there
but it is deleting it from the database and I get a 200 response
 
throw a debugger; statement in there and see if it goes there
 
Just 'debugger;'? I'll try that
Ok so nothing
All I Get back is the response
with the success message I have set
I have 2 other ajax requests, one for creating in the database, and one for updating, both work fine for success
Just this third one for deleting is being a dick head
@phenomnomnominal it's blowing my mind
@phenomnomnominal hmmm actually I just assumed they worked, actually none of my ajax success methods are working what in the
 
8:06 AM
If you need your IDE's code generation tool, then your language is too verbose
 
How can I reference an input field named like an array in Javascript? The input field is named email[x] :o
 
Guys, are there any performance difference between slice() and splice() when I am trying to cut an large array?
 
why do you care?
slice is non destructive btw, they have different uses
 
@phenomnomnominal I fixed it btw
@phenomnomnominal Why does complete: work and success: not?
 
@FlorianMargaine well, I can use it like
var buffer = buffer.slice(0, 4);
on the otherhand I can use splice like
buffer.splice(0,4);
 
8:20 AM
@XCritics, I have no idea, that seems weird. Did the jQuery API change?
 
@phenomnomnominal Hell if I know, I'm just glad I'm alive still
 
my mistake
i mean
var buffer = buffer.slice(4, desiredLength);
 
Hi everyone, I just have change "faveicon" for my blog at www/mostafa.info , this icon is hosted on Blogger witch is filtered in my country, so I can't check weather it is changed or not. Will anybody check that for me? thanks
 
Hmm, nvm I think I don't need to worry about it
sorry
 
NetTuts+ is a GREAT SITE!
 
8:34 AM
0
Q: Ajax request not working for dynamic control append

TechAddictI have referred Steven Sanderson's blog and tried to implement dynamically insertion of controls on link's click event. Now in my case, It is not working. I don't know what's wrong with it. Deletion of Div (Including controls) is working fine. But Appending controls not working. When I click on '...

 
8:49 AM
What should I google if I wanted to build an interface for the people using a website I build for them? Something like Wordpress, but smaller and more restricted. Not been lucky with keywords.
 
@OliverSchöning You mean CMS theming?
 
is there a way to do a $(.className).each(function() { alert("working") } )
in javascript?
 
@Strips, yes, use getElementsByClassName
 
@MostafaShahverdy Building a website for them. Selling costumes. So I want to make it easy for them to add / remove items from the site..
 
!!/tell Stripps mdn getElementsByClassName
 
8:54 AM
@dystroy Invalid /tell arguments. Use /help for usage info
 
@OliverSchöning Joomla might be a good choice ;)
 
@MostafaShahverdy cry I wanna build something.. not use a we build it for you :-p
 
Oh :D Then you have to search for some frameworks, like Zend Yii, Cakephp ... @OliverSchöning
 
any one help me of this issue
http://stackoverflow.com/questions/15355941/javascript-code-does-not-run-with-x-tmpl-or-x-jquery-tmpl-template
 

« first day (878 days earlier)      last day (4063 days later) »