« first day (1407 days earlier)      last day (3544 days later) » 

10:02 AM
hi all
can some1 plz tell me how to override default sublime build sistem
?
 
Not with that English
 
some1? plz? sistem?
 
Guys,
 
I have C++ default and my custom build
 
How do I submit a form and catch the click event using jQuery and use that event to submit that data using AJAX to PHP, and return a PHP error and display it on a DIV in jQuery?
 
10:04 AM
Read an AJAX tutorial
 
I did
But, my main problem currently is
load() is not working
:l
 
Any error?
 
yah, i fixed it
oh now it works
Let me get a pastebin
That's my code.
So, basically, what I want done is,
pastebin.com/RJiRRwiN (form.php where content is loaded dynamically)
So, when document is loaded, form.php data is loaded onto a div in index.php
That works fine
Now, when user clicks submit, it should send data to PHP
And then, PHP would send an array back with a list of messages to show.
How would I do that?
I have done the user clicks submit, and sending data to PHP
But how would I get data back from PHP?
Nvm, found it on stackoverflow
 
Good job
 
10:13 AM
Not a lot of people come here with these kind of questions and then find a solution themselves
 
lol
I know
I try my best to avoid asking solutions from people
I tried a lot, you might see my code is very messy
IMO, that's the best way to learn shit.
Especially if you work it out without any help.
 
It's not the best, yeah. But you'll get better.
 
I learnt PHP by going through sources
and acting as a compiler or w/e
processing code
and trying to understand
 
heh, that's how I learned as well. You just need to be careful not to learn too much from horrible code.
 
yup
Thats one mistake I made
I learnt outdated code
aka mysql_* code
 
 
1 hour later…
11:28 AM
Guys, moi need's a bit help. :[
 
Can you guys help me understanding how to use Grunt?
 
What is Grunt? :/
 
this question is homework for house or vampire?
-2
Q: JavaScript logical reasoning

Qualified8hi all i m newbie to javascript and i would like to know how can i do this logic in JavaScript -jquery I have a page a.jsp on which i have elements --a1-- --a2-- --a3-- i need a logic how can i block user action on a2 and a3 till a1 is not selected , and if a1 is selected then open a2 ,if a2 ...

 
!!tell Hassan google grunt
 
11:36 AM
0
Q: Array not acting as expected in jQuery

Hassan AlthafI'm doing jQuery Ajax with PHP, and after jQuery passes some $_POST data to PHP, PHP validates those data, and prepares an array with all the errors, and once all validation is done, the count of error is found, and if it is greater than 0, the array is encoded in json and it is printed on the sc...

 
Now there is a other framework???
 
Any help really appreciated webmasters.stackexchange.com/questions/68415/… I have no idea how we ended up in that situation to begin with :S
6
 
@BenjaminGruenbaum upvoted
 
11:53 AM
Thanks a lot, that helps
 
@phenomnomnominal, @RyanKinal grooveshark.com/#!/album/Away+We+Go/3659596
 
Anyone?
I'm having a hard time understand exactly what a "Task" is and what a "Target" is
 
"Task Configuration and Targets". Never touched grunt, but that seems to explain it
> Specifying both a task and target like grunt concat:foo or grunt concat:bar will process just the specified target's configuration, while running grunt concat will iterate over all targets, processing each in turn.
 
That doesn't explain what a target is
I'm reading this very article right now
 
A configuration
 
11:59 AM
What does it mean for a task to have multiple targets?
 
> Multi-tasks can have multiple configurations, defined using arbitrarily named "targets."
 
It'll be run more than once?
 
Seems like it
 
12:19 PM
Can we guess height of a div in .resize method before it's actually rendered again on the page
please note rendered again
yes that's because div is already on the page
if I use .height I get it's current height
not the height it going to have after re-redering of page
 
Ell
12:34 PM
Hi all
 
They are all having a party in Ecma room
Is JS like C# ?
compiles row by row ?
 
Ell
No languages compile row by row o.O
 
Neither JS nor C# compile row by row.
Compilation is a multi-step process. Also, a language does not define how it is compiled, the compiler decides that.
 
That is just soo unrealistic
 
12:38 PM
C# waits for the response before moving to the next code line
 
@CustomizedName JS can do that
 
JS is crap, it moves to execute the next line anyway
seriously, where is the sequence then
 
Lol. I love it when people talk about things they know nothing about.
 
when I am just going through it
 
Please, tell me more about the execution model of programming languages.
Please teach me how JS is crap :D
 
12:40 PM
 if (elm.checked) { $target.show("down"); }
    else { $('#fruittable tr[data-fid="' + elm.id + '"]').hide("up"); }

  if ($("#fruittable tr:visible").length < 1)
 
OH GOD MY EYES
WHY WOULD YOU DO THAT?
 
code goes through else statement and then in if statement length is still 44
 
Ell
@BenjaminGruenbaum it's hilarious :')
 
checks room, sees above conversation, decides that ice-cream is better
 
@CustomizedName That code is horrible. If you're the one who has written it you should feel ashamed, but that's a good thing - go and learn how to structure your code.
@Ell It was funny up until to the '#fruittable tr[data-fid="' + elm.id + '"]' bit, now it's just depressing.
 
12:41 PM
Why, what's wrong with it :S
down vote this guy then - http://codereview.stackexchange.com/questions/60701/filter-on-html-table-using-jquery

I am already making an effort, maybe in wrong direction ?
 
He is on CodeReview.SE , he knows his code is bad and is actively working to improve it. I can't hate on him.
OH GOD THAT'S ASP.NET WEBFORMS WHY DID I CLICK IT
Oh god, I'm going to have ice cream or something.
 
Ell
I'm crying because I can't get my CORS to work
 
chatting bubbles now... if you say something is bad, then prove it ini @BenjaminGruenbaum @Zirak
 
@BenjaminGruenbaum who?
 
Them drama queens wanted Ice-Cream but had no excuse, so they came up with the worst possible
 
12:51 PM
@Ell in what browser?
 
Ell
@BenjaminGruenbaum Firefox 30
I forgot what actual version that is
The problem could be server side too though
 
@CustomizedName which bit? The part where you don't understand how flow control works in JavaScript nor C# or the part that queries your presentation layer for selecting an element through constructing a bare string in runtime by abusing data attributes and string concatenation, disregarding the fact you're already in a programming language and have references?
@Ell have you seen enablecors? What backend are you using?
 
Ell
> POST http://lvh.me:5280/http-bind

200 OK
1ms
bosh.js (line 672)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://lvh.me:5280/http-bind. This can be fixed by moving the resource to the same domain or enabling CORS.
@BenjaminGruenbaum backend as in webserver? lighttpd
and I've done setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" ) in the conf
I thought that'd be enough
 
@Ell you need to return special headers, it's not just allow origin, it's allow methods too IIRC
 
Ell
They don't have a lighttpd bit
but I'll try adding the other headers
 
12:55 PM
Are you sure the headers are sending?
I think POST requests need the other headers because of preflight and all that (check what requests the client is making, it might be making an OPTIONS request)
 
Ell
According to the firebug console it's just doing POST requests
and IIRC POST and GET don't need preflight
 
Yeah, in some cases they don't
 
anyone got direct links to super heavy images (maybe 15mbs) for testing purposes? (sfw pls)
 
Most ISPs have them
 
Ell
Yeah, GET, POST and HEAD don't require preflight
 
@AwalGarg dd count=15M bs=1 if=/dev/random of=largeFile
 
Ell
gahhhhh why doesn't think workkk
 
@BenjaminGruenbaum hell that seems to be a virus or something...
 
Ell
@Zirak urandom is preferable
 
@Zirak s/random/urandom/
 
1:01 PM
It's dog
 
It really matters for this case, too
 
@Ell does it work in other browsers?
 
Ell
@BenjaminGruenbaum I'm not sure. gimme a sec
 
and it seems it is working :D
@BenjaminGruenbaum what was the original size? (sorry couldn't check myself)
 
Ell
1:02 PM
@BenjaminGruenbaum Nope. They are all "cancelled" in chromium
 
@Ell Do you have them on an internet URL? (That is, something I can see the headers for)
 
@Zirak what would that do?
 
@AwalGarg man dd
 
When you make the request from code (or CURL for that matter) does it work?
 
Ell
@BenjaminGruenbaum They are on lvh.me. So no :P
 
1:03 PM
@BenjaminGruenbaum Where should I start learning from then >
 
Ell
@BenjaminGruenbaum I'll try using curl
 
@Zirak if you could post the output too please :P (I don't have linux up right now)
 
@CustomizedName probably eloquent JavaScript, then some UI archs book
 
Ell
I get it fine with curl.
 
1:04 PM
@BenjaminGruenbaum you mean arches or architect
 
What do you think?
 
architect
as I don't know what arches means
 
right, architecture
 
oh wait, it is just 8.59 MBs @Ben ... do you have a larger one? atleast greater than 10mb?
i guess i can join that image two times and try again :P
 
Ell
grr
 
1:22 PM
Anyone knows autoNUmeric js ?
 
@AwalGarg Anyone knows automatic js ? (source)
 
Ell
I just had an idea..
 
@JanDvorak y u clrstr();?
 
@AwalGarg no self-starring pls
 
1:28 PM
@JanDvorak xD
 
Here i use autoNumeric JS.In my code it doesn't allow me to put decimal points
$('.input-qty').autoNumeric('init', { vMin: 0, mDec: 0 });
 
Anyone here learned JS by watching videos ?
 
Ell
1:44 PM
yaaay I got it to work
I totally forgot that the http-bind is hosted by the xmpp server not the webserver
 
whats wrong with this picture?
 
Ell
thanks guys!
 
bootstrap popover not working
js and css loaded in external
ideas?
im new to this m,aybe im doing something wrong entirely
 
2:00 PM
@Ell lol
@CustomizedName I watched a lot of videos and still do
 
any ideas on the popover
 
2:15 PM
@BenjaminGruenbaum ok gonna study all day tomorrow and on monday
 
I have a div like this <div id="dttm"></div> i wanted to get Jquery DateTime function to it.i did it like below but unsuccessful...
 var d = new Date();

            $('#dttm').add(d.toLocaleString());
 
2 messages moved from PHP
Morning js room
 
@PeeHaa could you please answer my question ?
 
no
 
@PeeHaa dont you have any idea ?
 
2:19 PM
anyone here use bootstrap js
 
2:47 PM
!!are you alive?
 
@rlemon Doubtfully
 
!!summon 3
 
3:08 PM
posted on August 23, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} KERPOW!

 
3:21 PM
0
Q: angularjs $q.defer() not working

trajceim relatively new to angular.js I had some problems with $q.defer() When i used callbacks instead, my code was working(the view was updated), but with $q.defer() its not. This is my code: The service: eventsApp.factory('eventData', function($http, $q) { return { getEvent: function...

 
3:37 PM
Oh my god @Zirak what happened to your face :O?
 
DUUUUUUUUUDE
There was this like mushroom
And it talked to me and said "brooooo you gotta eat me"
So I did because mushrooms are badass
And then it like made all my imaginary friends appear and I was soooo happy
And we went on a magical adventure to the Chocolate Fountain Spring Factory
And I like totally hit my head on a pipe, smashed mah nose
Worth it
 
And there's this car, it runs on water, man
 
@Zirak it doesn't run on land then?
what good is it?
 
@SomeGuy knows all about it
 
4:07 PM
is the maxlength of img's title attribute still 512 in html5?
i mean, did it change in html5? cus AFAIK, it was that in html4
 
4:24 PM
oh wait... it was 128 in html4. right?
 
@Zirak :( u make such a lazy guy like me scramble through that utterly boring thing! can't you just link straight to the main article which describes the limit?
 
Ctrl+f img
 
@Zirak w3.org/TR/html401/struct/global.html#h-7.4.3 no maxlength description in there :(
 
Great
What made you think it had one?
 
Furthermore, what prevented you from testing it?
 
@Zirak some common sense.
@Zirak i test, and it just adds ... after some lines.
 
What's "it"? Every single browser? Just one?
 
@Zirak chrome, FF, IE. (all latest)
 
Neat, then you did test. It seems like an off-the-spec agreement if they all exhibit the same behaviour
 
4:34 PM
My girl wrote it originally, I slightly modified it. Teaching her javascript these days ^_^.
 
@Zirak actually, I want to take an image from the user, and allow him to add a description, which I will show as title. And I also have to save the data in DB, and the data type is varchar. so if user inserts like 1000000 chars, my db will explode.
 
Ell
Okay I have a tough problem
 
that's why I am concerned.
so @Zirak what according to you should I set the limit for the title length?
 
Frankly my dear, I don't give a dean
Pick an arbitrarily large number
Pick the status-quo
Whatever
 
@Zirak :: The easy solution provider to big problems! All hail Zirak!
 
4:38 PM
@AwalGarg 1 million chars is 1 mb
how will your db explode ?
if we assume ascii there.
 
Ell
I need to redirect with javascript and then return to that place in the script after being redirected back. I think this is impossible
 
@AbhishekHingnikar and how much time does it take to generate and push like 500 thousand billion ascii chars for an attacker?
 
@Ell Thinking is good, you should stick with it
2
 
@AwalGarg you are being paranoid
if you are getting duplicate or garbage requests from same person limit them -_-
the "attacker" can still attack your server even if you limit the amount of letters.
 
@AbhishekHingnikar in the same request. But I think 512 chars is a fair limit for an image description.
 
4:40 PM
maybe.
 
@Zirak Hahahaha
 
in snapick we just let the user have whatever size he is using
we create a signature for the image and check for image dups
the problem so far is scaled and cropped images, gotta figure out a decent way of fingerprinting images with scaling and cropping :-/ right now we just scale every image to 400x300 and hash it.
anybody got a better suggestion ?
 
@AbhishekHingnikar why you no use imgur? they do that job for you. (if you add the proper corresponding headers ofcourse)
 
@AwalGarg dude, we are talking about a users photo directory
that includes all their photos.
 
@AbhishekHingnikar yes that is absolutely possible. look at the imgur api.
 
4:46 PM
@AwalGarg I don't want to send all of users images to network apis
do you realize thats uploading about a few GB of image data ?
 
@AbhishekHingnikar any specific reason?
@AbhishekHingnikar they have cheap plans for that purpose :D
 
@AwalGarg PRIVACY, LATENCY, Do you really want all of your images ? including the embarrassing ones going to a 3rd party api ? will you trust the app if so ?
 
@AbhishekHingnikar ah that makes sense. (because of privacy, not latency)
 
@AwalGarg it does make sense because of latency too
 
ok ok calm down
 
4:47 PM
we process nothing on our servers now, unless the user explicitely authorizes us.
so imagine your home computer uploading 3.6 gb of your whole image library to imgur and waiting for every call to finish... just to start processing it ?
 
ok
good night
cya tomorrow
 
5:05 PM
@AwalGarg we send to server only if user wants cloud services. otherwise they can use the app for free :-)
 
5:17 PM
What are some other ways to achieve concurrency besides thread based and event based concurrency ?
 
5:30 PM
@rlemon, @Loktar codepen.io/darkyen/pen/wIylp ... why does it stop rendering after i resize the canvas ?
/cc @SomeGuy
 
cool this guy made it smaller than the jquery version
-1
Q: Shortest Timeago script that handles both plural and singular

AbdossamThis is quite simple but it doesn't seem so. What you need to do to win this challenge is to write the shortest Timeago script that handles both plural and singular. Optionally it has to update itself every 30 seconds. In the case of Javascript JQuery is forbidden :P Everything else is ok. If...

 
@AbhishekHingnikar Don't know, but your loop is still rendering
 
5:46 PM
@SomeGuy yeah thats why i am wondering wtf is going on :-/
 
I don't like editing in CodePen, so I'm not looking into it further :p
 
@SomeGuy should i make a jsfiddle ?
 
Sure
 
bam :D
jsfiddle.net/hwtfc2nx/1 < a slightly better formatted version
 
5:54 PM
Learning how to use the HTML5 canvas. I regret not doing this in the past it's amazing
 
user2620028
i havent done it yet either dead beef
 
Guys, do you know that you could find stack overflow user accounts through public email providers? it's great, I've found a pair
if you don't believe try registering with tester@yopmail.com ;)
 
@AbhishekHingnikar The only conclusion I came to was that changing the canvas's width / height causes this
Why, I don't know
 
nid.
 
6:00 PM
@SomeGuy same xD
loktar and rlemon has lots of demos where resizing doesn't matters [even i do]
 
Oh, I do too
I have a feeling the Angular parts of it might have something to do with it
 
Hey guys, I have a browser-based multiplayer game with server-side logic written in Node.js. I'm interested in making an offline single-player mode by running the Node code locally on the user's browser. Are there any libraries that help handle this? Surely I'm not the first person with this idea
 
@SomeGuy angular is just wrapping it.
 
In particular, I was thinking I could run the code in a web worker and use Worker messaging in place of network messaging
 
Yeah, I can see :p
 
6:04 PM
hey gents
 
@Loktar save the day oh game jesus :P
hey gent
 
that's zigi's term :p
 
^ That is what its being used for.
 
nice team
 
It commences extreme lag in firefox, I have to view it in Chrome.
Could be because I have firebug, dunno.
 
6:06 PM
@deadbeef what the demo i made ?
 
Yea on the jsfiddle page
 
firefox still hasn't fixed the garbage collection shyet i see
 
Nope, its to do with paths i guess
 
could be but I'm not really that much of an expert
i should put my laptop in a gravitational spinner at the speed of 300.000km/s and see if firefox goes faster .... or also cough windows for that regard
 
Decided I want to make a 1 v 1 2d tank combat game with HTML5 canvas
Going to be my first project, commence headache
 
6:09 PM
Good luck
 
why do people upvote bullshit comments .. nobody upvotes mine that are sea's perl of truth ... wish there was a way to downvote comments
 
Is there a way to group elements together in canvas?
 
!!google group elements together in canvas
 
There's no such things as elements as far as canvas is concerned
It's really just a canvas for you to draw on
 
m59
6:13 PM
Is it more likely true that a lot of developers aren't good communicators or that I'm not a good understander?
 
well many are said to suffer of asperger's syndrome
 
@AbhishekHingnikar jsfiddle.net/hwtfc2nx/2
 
m59
connect middleware for adding the livereload script to the response

`connect-livereload` itself does not serve the `livereload.js` script.
 
canvas.width = x resets the context's fillStyle and so on
Reassign it, and you're okay
 
m59
6:16 PM
If that isn't poor communication, I don't know what is.
 
@SomeGuy thank you so much =)
 
@deadbeef The canvas doesn't have a notion of "elements" after you're drawn them; it's just a grid of pixels
 
user2620028
Oooo html canvas is like drawing with java hahaha
 
@AbhishekHingnikar Sure, no problem
 
6:23 PM
@deadbeef The context offers functions for drawing shapes as a convenience, but the canvas itself doesn't understand "shapes"
@deadbeef What you might want is a library (like EaselJS or KineticJS) that provides a "scene graph" that does understand shapes
 
6:37 PM
lol
 
@apsillers Going to give kineticjs a try. Thanks
 
6:58 PM
A smarter and better search that knows what you are searching for ! < can anybody suggest better line compared to that ?
 

« first day (1407 days earlier)      last day (3544 days later) »