« first day (1666 days earlier)      last day (3293 days later) » 

1:18 PM
-2
Q: PHP or HTML file downloads instead of executing

ASDCollage server provide feature to upload file then i have uploaded both php and html test file but instead of execution file downloads. How to get that file execution on collage server?

 
@Zirak ^ :D
 
@AwalGarg Awesome!
 
@Zirak I was unable to add it to the context menu, though :P
 
It'd probably be better as a right-click item, but other than that, great
oh. Didn't find where they defined the context menu?
 
I did, but the compile failed with that with a ~54 step error stack.
Wait a sec
 
1:33 PM
GAHHHH PASSPORT! WHY MUST YOU TORMENT ME SO?!?!?
 
@Zirak code.google.com/p/chromium/codesearch#chromium/src/third_party/… here the this value is documented, but in this one:
well I lost it. the other one doesn't show the this value
and I wasn't able to break in it for some reason so...
I think the problem is with the this val only
but the greater thing is that I learned that code prettification happens in it's own service worker, so we can easily add the prettify button and sourcemapping in resources panel too
which is what my original wish was @Zirak
though I think a bit more meddling will let me add it to the context menu too
yeah this code.google.com/p/chromium/codesearch#chromium/src/third_party/… do you know what is the this value here? It should be the sourcespanel object but it isn't
atleast not when it is called
 
@AwalGarg What makes more sense: Duplication access to functionality, or giving proper access?
@AwalGarg You also know what this is - look what object the function's in.
 
@Zirak Ooooh! Ooooh! That second one has a "proper" in it, so it must be true!
 
thisis only documented on inline functions and such
 
@Zirak I know what you mean, but reading code in the sources tab is a PAIN
@Zirak yeah, it isn't the sourcespanel object
 
1:41 PM
@MadaraUchiha Ten points to that weirdo
 
if only it was...
 
Are you sure?
 
why yes?
 
@AwalGarg How is it any better than in the Resources tab?
 
@Zirak classification of resources by tab. lemme post two screenshots of each of the tabs:
 
1:43 PM
That's finding resources, not reading an individual one
 
@Zirak how are they not linked?
 
@AwalGarg Well, I just checked, and it is
 
@Zirak how did you check? I was unable to break inside the function :(
 
I added a breakpoint in my favourite function: WebInspector.ConsoleModel.evaluateCommandInConsole
 
my code relied on that object too but it didn't compile.
 
1:46 PM
And meh, do whatever you want
Then fix it
 
How about we add classification of resources to the sources tab too?
 
1 min ago, by Zirak
And meh, do whatever you want
 
y u no opinion :(
downloaded pycharm! :D
 
I have come to clean zeh pool
 
> ReferenceCard
> ReferenceCardForMac
 
1:50 PM
I already expressed my opinion. I nearly never use the resources tab to find things anyway.
 
i like tis discrimation
@Zirak then how about you give it a try maybe? If you don't find it a better place, you would have proved me wrong and I do the better thing! :D
= profit
 
Hey guys, i recently got my question answered by @SpiderPig user. I know that this is a lot to ask but this dude seriously went out of his way to help me with my issue and i've got it to work my question will probably fade away in the future but if it's not much trouble for you guys, just upvote his answer as i think that my upvote + mark as answer is not enough credit for this dude.

http://stackoverflow.com/questions/30139313/getting-all-valid-combinations-in-javascript/30139791?noredirect=1#comment48390086_30139791
 
@AwalGarg I don't use it because the Source's Ctrl+P and Search All cover 100% of my use cases so far
 
@Zirak that's what I do too, for now.
 
whats the best shim for object.observe?
 
1:54 PM
@shawwy If you think it deserves more attention/reward, put a bounty on it
 
@monners not possible with only 64 rep
 
Well shit.
 
@shawwy The best way to payback will be to payback to the community as a whole - answer more questions yourself (and thus join the said user in his effort in doing so).
 
anyone know how to import an app into a qunit fixture?
 
2:12 PM
Hi everyone, A simple question. What is exactly the difference between: `$(currentId.attr("href"));` and `currentId.attr("href");`.
Declaration of currentId:
`var currentId = $(this);`
 
The former then tries to create a jQuery object out of the URL (which won't work)
 
Run both, compare the results
 
^
 
Which one won't work? @JanDvorak The first one I think?
 
2:15 PM
Correct
 
Thanks!
Haha yes, you just get the words out of my mouth
 
Let's start simple: what is $?
 
Declaration of jQuery to call a object
 
What do you mean by calling an object?
 
like $(selector).click(function() { // do something }
 
2:19 PM
What if I do jq = $; jq(selector). ..., will that work? Why?
 
I thought it doesn't work, because jQuery should only work with jQuery or $
 
Why should it?
 
It's the declaration to call the DOM object?
or to get access to jQuery library
 
It's not a declaration. And you call functions, not DOM objects
 
hmm
 
2:23 PM
What happens if you type just $ into the javascript console?
 
nothing
Or do you mean in the console like chrome developer?
 
it depends
$ usually is a funciton
 
It search for a function I see
 
@Caspert I do. Which one did you mean?
 
yes
 
2:25 PM
The dollar sign
 
if you have jQuery you can try jQuery===$
 
what is a js evaluation error?
 
in fact if you open the console here, it will return true
 
Okay
 
You can even do var jq17=jQuery; jq17(...).click(...). Do you know why?
 
2:28 PM
Because you store jquery inside the var jq17;
 
yep
Similarly jQuery stores itself into the global variable $ when it loads
Now, what will $("http://example.com") do?
 
Okay, so the dollar sign just stores the jQuery library?
Get the url example.com
 
Nope. That's what $.get is for.
 
Humm okay, but then I doesn't understand where the dollar sign is reference too
 
It does refer to the library. It's just that this isn't how you make GET requests
What will $("a>img.btn") do?
 
2:35 PM
Get the anchor with image and btw class
 
Close. What does the > mean?
 
Nik
Does anyone disapprove of me using this shorthand? var $ = function(id) {return document.getElementById(id);};
 
@Nik use querySelectorAll
 
Oh Get the image button class directly under the anchor
 
Yep
It doesn't return the DOM node itself, though, but ...
a jQuery object wrapping the DOM node(s).
How about $("<a id='mine'>"), what will that do?
 
2:39 PM
Get the anchor id with mine
 
Nope. That would be $("a#mine")
This one creates a new anchor element, wraps it in a jQuery object and returns it.
 
Okay
 
Nik
@JanDvorak Um, will document.querySelectorAll('div p') get me all the paragraphs who are 1st children of a div?
 
Unfortunately, these are the only two types of string you can pass to jQuery itself. It won't like a URL.
@Nik it doesn't mind which child it is. Or how deep below tthe div.
 
Nik
@JanDvorak uuuhh, I really need to read the manual again for this dang washing machi... i mean javascript.
 
2:44 PM
@JanDvorak interesting how something has the power to store itself in something. No doubt that something is jQuery itself.
 
@AwalGarg Well, the jQuery script file declares a jQuery function and stores it in the global scope. The jQuery constructor does no such writes.
 
I think it is time we extend the quote series and add the triple quote character ''' to our character list, so that "foo 'bar '''bam''''" is valid.
 
!!nudge 45
 
@towc Nudge #2 registered.
 
who dared nudging before me? XD
also, how's everyone?
 
2:48 PM
@JanDvorak Okay. In short the dollar sign ($) is just an alias to the jQuery function (the overloaded code that comes along with jQuery)?
 
Yes
Now, in case of $(currentId.attr("href")); that means...
 
I get it :) It just wraps the overloaded jQuery code in the dollar sign
 
Nik
@towc Feverous and gassy. Kinda dehydrated.
 
just what I wanted to hear :D
maybe have a gas party some time?
I'm free tomorrow
 
Depends. Is it bring your own beans?
 
Nik
2:51 PM
@towc No, the meteorologist..I mean doctor predicts his medication will most likely get me sharting so, you can count me out.
 
@JanDvorak that's cheating, but I didn't say I won't bring mine ;)
 
Question fellas: When I do foo() (let's just say this is running in V8), V8 find the variable foo accessible to the current scope, then what? What does it internally do with the function object? I know somewhere in between Function.prototype.call is messed with, but it is also a function right? Then why can't I define a call property on any normal object called bar and do bar()? What is happening internally with the ()?
How does V8 differentiate between any object and a function, when the function is also an object?
 
DOM nodes are also objects
so are dates and regexes
 
Functions have two special built-in properties: [[Call]] and [[Construct]]
 
@JanDvorak I know... but they don't have any such special syntax like the function.
@Zirak So V8 stores these properties internally for each function?
 
Nik
2:55 PM
@Zirak You're the god who made SO-Chatbots. I kneel before your greatness, sir.
 
@AwalGarg they sure do
 
@JanDvorak example?
 
!!> /text/i
 
@JanDvorak "/text/i"
 
...
 
2:56 PM
IsCallable just checks if some object has the [[Call]] property, and digging through the grammar will probably reveal what exactly is called
@Nik Don't spoil the rug
 
Can you explain the part of this one (A) $(currentId.attr("href")) ? @JanDvorak
 
Which part?
 
@Zirak Does that document describe how are arguments passed to function objects and how is scope stored? I am trying to find that somewhere but can't :(
 
Nik
@Zirak kay. Also, how does it feel to be last in a phonebook?
 
Whatever is inside $(...) gets passed as an argument to said $
 
2:59 PM
@Nik Since I have no last name, I appear first.
 
@JanDvorak Well how is that a special syntax like functions? It is just an expression with a regex, right? To use it we just use the object dot-notation which is standard among all other objects, unless I am missing something.
 

« first day (1666 days earlier)      last day (3293 days later) »