« first day (732 days earlier)      last day (4210 days later) » 

user1125394
7:03 PM
Quick question, is it a good bootstrapping method stackoverflow.com/a/501574/1125394 ?
 
@SomeKittens short of implementing PDO, In think using insertObject() style methods would be your best bet because you're not doing the escaping yourself, yes it's still escaping behind the scenes but Joomla may switch to params for those methods, with a bit of luck, even if not I think it would be easier to convert that style of code in future, as opposed to manual escaping
 
> You have no more close votes today; come back in 4 hours.
woo!
@MrCode Looking into it, thanks
 
Anyone know if you can access the Google Drive API without oAuth?
 
@poolnoodl Perhaps public resources (if thyere are any)
 
7:12 PM
i just want to access my own spreadsheets
and I'd prefer not to build a web interface just to log in.
 
@poolnoodl are they public?
 
i'd like to just use some php and put my username / password in the code
they are not.
 
then you will probably need oauth to authenticate
 
the gosphero.com logo looks like a mixture of @salathe's avatar and the drupal logo
 
@Gordon Plus: having JS disabled you are not even confronted with it!
 
7:14 PM
so the service account idea doesn't jive with the google drive api?
 
@hakre yes, but you can see it on the Buy Now button ;)
 
What would this "service account idea" mean?
 
Guten abend
 
@DaveRandom hi
 
@DaveRandom Abend
 
7:17 PM
@PeeHaa Is that dutch as well? Doesn't look like it has enough vowels
 
a ball to control with your smartphone. well. hmm. sounds like a good opportunity for the recycling business.
 
@DaveRandom Ja guten Abend mein Herr.
 
essentially, for YouTube, I have a script that goes and gets a bunch of data about my youtube account
it's handy
 
@poolnoodl Something totally different: Is you nick about Pasta and Swimming?
I hope I don't step to near to you with asking that.
 
7:18 PM
i was hoping to do something with my data, but it's not going to be an "app" other people would want to try.
 
@DaveRandom In Dutch it would be goedenavond
 
Yay, I have exhausted the sum total of what I German I remember but it was kind of useful
 
This question can now be deleted, it is of no further use:
 
@hakre no, it's an old joke. a girlfriend long ago told me about how she could visit a pool noodle in her mouth.
 
Actually that's not true, I also remember tageslichtprojector, but that's not especially useful in day to day conversation.
 
7:19 PM
OP was already so nice to say thank you it helped in a comment.
 
@PeeHaa One word?
 
@poolnoodl what is a pool noodle?
 
@DaveRandom Yep. It's ancient :)
 
@DaveRandom My dear friend, it's with K and uppercase first letter: Tageslichtprojektor
 
@hakre ...and how does one visit one?
 
7:20 PM
long, phallic flotation device / toy for use in swimming pool.
and i meant fit
not visit
 
@poolnoodl dildo?
 
Ah a Pool Noodle, yes now I understand.
For doing gymnastic moves in the water.
 
Ah right. These things you always see old people use in the pool on vacation
 
@PeeHaa lolol a floatation device?
 
hakre, if this was a Turing test, I'd think you were a bot.
 
@poolnoodl In that case better watch out if you think terminator was a bad thing. You are now talking to a German bot! Run for your lives!!! ;)
 
user986408
question: what exactly is a (php) sapi ? and how is it connected or different from a web server ?
 
At least it will never break though
 
@PeeHaa Arnie is Austrian :-P
 
user1125394
@all what should an application bootstrap do: classes autoloading, then giving the hand to a router class?
 
7:25 PM
broke?!?!?!? wtf was I typing
In computer science, the Server Application Programming Interface (SAPI) is the generic term used to designate direct module interfaces to web server applications such as the Apache HTTP Server, Microsoft IIS, or iPlanet. Microsoft also uses the term in ISAPI and the defunct Netscape used the term NSAPI. As an example, PHP has a direct module interface called an SAPI for different web servers. For PHP 5 and Apache 2.0 on Windows, it is in the form of a DLL file called php5apache2.dll. The DLL is a module that provides an interface between PHP and the web server, written in a form that ...
@cyril in most of my projects it loads libraries, sets up a database, sets up autoloading etc
 
So, if I wanted to pull the data out of service google spreadsheets, what would be a good way to do that?
 
@poolnoodl use oAuth
 
user1125394
@PeeHaa k thx, and the routing stuff, is it better to do it in a class in a nearby file?
 
@cyril Define nearby file?
How many meters away?
 
beer-n-chips
 
user1125394
7:28 PM
:5823428 lol in the same directory
 
@PeeHaa How do you propose to feed the data to the client?
 
or are you in a strange country which thinks the metric system ir too useful to use?
@DaveRandom xhr?
@cyril I have it in a separate directory
Or didn't you mean that? @DaveRandom
 
user986408
@PeeHaa i still don't understand what a sapi is .. can you somehow give me a practical example how it works ?
 
@PeeHaa Sorry that was a little unclear, it's more about format
 
@skripted basically it is what is in between the PHP engine and the user
make that client
 
user986408
7:34 PM
@PeeHaa so the sapi is an interface of php which connects php to the web server or CLI .. ?
 
cli == sapi
sort of
But yes
If you are on windows and use the php mod it is in something like php_apache2.dll (or something like taht)
 
What kind of a Mickey Mouse banking outfit doesn't allow non-alphanumerics in their passwords? Bank of America, that's who.
 
user986408
thanks
 
45 mins ago, by SomeKittens
@PeeHaa "Major security issue" translates to "Not a problem if we haven't been hacked yet" in my boss' mind.
 
@PeeHaa Essentially what I'm saying is do you propose a Gist with, IDK, some JSON in it that's under the cv-pls repo?
Or something human readable that can just be iframed or something
 
user1125394
7:39 PM
I have an AuthenticatedController, other controllers inherit from it, and its handleRequest function checks if $_SESSION['accessToken'] exists (if no redirects to loginController)
trying to see if this solution http://stackoverflow.com/a/501574/1125394 to redirect all requests to a router is cleaner?
 
@DaveRandom Or implemented in the backlog, but basically just any place with of moderated list. What format doesn't really matter I think. Don't has to be be iframed I think
 
@peehaa you said thank you. For what?
 
Ah right. For trying to get Lester to STFU :)
 
Ahhh. Context, it helps. :-D
 
Anyone have a link to a good example of an app that connects to google drive so you can get at your data in a spreadsheet?
 
7:45 PM
@ircmaxell I thought I added a link to the internals post to it :P Is your crystal ball broken or something? ;)
 
Lol. Yeah, I don't have magic() installed on my phone...
 
@cyril Letting all controllers extend AuthController is not the way
 
I'm beginning to hate this DrEdit example application.
 
Perhaps I should do that tonight...
 
user1125394
7:48 PM
@PeeHaa yes probably since all the homemade framework I'm working on is dump
 
@ircmaxell Install magic() on your phone while you still can (i.e. while apples patent is still pending)
 
@PeeHaa I guess what I'm getting at is how do we display it at the front end? Do we just keep the current mechanism and feed data into local storage from a remote source, in which case the data needs to be in an agreed computer-readable format. We can't just have a gist with a random collection of text in. Which obviously I don't need to tell you, I'm just wondering about how the list will be managed.
 
Nice try blue
 
user986408
@PeeHaa so when requesting a php page .. what exactly does the webserver (apart from responding) .. how does it start up php to interpret the code? with this php-sapi ? and if sapi == cli .. does it trigger some bash stuff to run php from the cli .. i'm totally confused here :/
 
I don't care about parents. It's not like I am selling it.
 
7:52 PM
@DaveRandom not sure yet. Thinking JSON and local storage. There problably won't be 1000s of them anyway. Still need to think it more through though. Should give you enough time to port it to ff ;)
 
@PeeHaa how do I cancel avatar notifications on the new cv-pls version?
 
@MadaraUchiha Define "cancel"?
 
Without clicking each time (as each time opens a new tab with the transcript, and the questions are probably all closed anyway)
 
@MadaraUchiha in the settings?
 
@PeeHaa No
 
7:53 PM
@MadaraUchiha If you have the latest version and enabled delete when closed it will only show unclosed ones
 
When you have a normal notification, (i.e. someone pinged you), you can click ESC, and the notification goes away
 
@MadaraUchiha You can? lol
ping me plz
 
@PeeHaa Try it.
 
I see...
 
@PeeHaa I'd like to request that feature here as well
 
7:54 PM
 
Also, no, I currently have 4 review requests (used to be 15), and all of them are already closed
 
tnx
 
@PeeHaa sure thing
 
@MadaraUchiha Right click on notification maybe?
 
@MadaraUchiha it only requests the status from SO every 5 mins (by default) due to the throttle limit :(
 
7:55 PM
@PeeHaa I'll wait 5 mins then
 
@skripted Basically yes
 
so in order to access my own spreadsheets through an api, I have to build an app and list it here? chrome.google.com/webstore/category/collection/drive_apps
what if the app i made was crap? as it will be when i start anyway
 
@poolnoodl No you can just access it using oauth AFAIK
 
user1125394
@PeeHaa I do the authenticated test in the router?
 
how do I do that @peehaa ?
 
7:57 PM
@cyril doing auth anything in the router violates SRP
 
"I think X is possible" =/= "I'm an expert in X"
 
@PeeHaa I was thinking about that element, it would make sense to integrate the API poll more tightly with VoteRequestListener, so you can do a complete poll when you fetch the data for the new request, and reset the timer. Would make some stuff happen quicker and reduce the load on the throttling, double win.
 
@MadaraUchiha btw I have a need for that too. Not sure why it wasn't on the list earlier
 
@MadaraUchiha You say "since it's possible that chat was left on for long" - if you enable Remove notifications for vote requests that scroll off screen then you will never have more notifications than requests on screen at a given moment.
 
7:59 PM
@poolnoodl If you want to get an idea how it works or want to build further on to it (in case it is needed): github.com/Lusitanian/PHPoAuthLib
 
@DaveRandom True, but that may lead to more issues
 
@MadaraUchiha ...such as?
 
Say the chat is very active, and we have 3 users continuously ing
 
foo
 
You would lose information
Or, if you only left for 5 minutes, you may miss messages
I think dismissing is the way to go
 
8:01 PM
I understand how oauth works, well, at least I have used it for twitter, for example.
 
It's an expected behavior. I want to be able to dismiss notifications without taking further actions.
 
@DaveRandom Sounds like a proper solution / improvement
 
but they offered an ability to put the token in the code
 
so it didn't have to be a web service i was building.
 
8:02 PM
@NikiC bar
 
@MadaraUchiha Well it's simple enough to implement - how does CTRL + click sound as a mechanism to do it?
 
@poolnoodl oauth isn't about being a webservice, It's about requesting an accesstoken and accessing resources OF webservices
 
@DaveRandom Sounds rather hidden
 
@MadaraUchiha title attribute on notification?
 
See, in this chat, when a notification occurs, you have 3 options
You can either chat, and after one message, the notification goes off by itself
 
user1125394
8:04 PM
@PeeHaa how do you redirect someone that request /mysite/offers without being authenticated (auth needed)
 
Because it assumes you've read the message.
 
how do I request an access token in a non interactive, non browser, way?
 
You can click the notification, which jumps you to the message
Or you can click ESC, which simply dismisses all notifications at once
I'd opt for a similar solution
If you click on the question which was ed
The notification for that question should die
ESC kills all notifications
 
@MadaraUchiha It does
 
@DaveRandom It doesn't, I just checked.
 
8:06 PM
@MadaraUchiha :-P
 
cv-pls anything
 
@PeeHaa thanks
 
@DaveRandom hint
 
8:07 PM
-_-
 
@MadaraUchiha Or wait a minute, when you say "click on the question" what do you mean specifically?
 
very interesting podcast : youtube.com/watch?v=0sehy8lp200
 
p.s. i doesn't work on right click, because that pretty hard to implement (is almost impossible to do right)
 
See if I follow either one of those links to the Q my notification disappears
 
8:08 PM
without proxying it
 
@PeeHaa that was 3 hours too early
 
@tereško yep
 
Neither work for me
 
@MadaraUchiha huh? what version are you on?
 
8:09 PM
Oh, wait. Middle click didn't work, normal click did
Middle click should work (I use it almost as default)
 
@MadaraUchiha WTF is middle click when it's at home? What event is that supposed to trigger on the page?
 
@cyril I'm still trying to find the right place to handle that myself tbh. I know @tereško was thinking hard about that / had come with a decent solution IIRC
 
@DaveRandom Middle click = open in a new tab.
 
@MadaraUchiha middle click would probably easy to implement
 
@PeeHaa what are you struggling with ?
 
8:11 PM
6 mins ago, by cyril
@PeeHaa how do you redirect someone that request /mysite/offers without being authenticated (auth needed)
 
@tereško Correct place to do ACL
 
well .. for me the problem has been solved
 
Anyway, it's great that taking action will remove the notification, it is expected
But I as a user expects a way to clear those out without taking action
 
@MadaraUchiha Right well it's not triggering the click event for the link then, it's the browser just using the href of the link as the address for a new tab. Should be doable to implement though, assuming the plugins are allowed to communicated cross-tab, which I'm still not certain of at the moment.
 
@DaveRandom No need for cross-tab. I bet a middle click has an event
6
Q: Triggering onclick event using middle click

Sadesh Kumar NI am using the onclick event of a hashed link to open a div as a pop up. But the middle click does not trigger the onclick event but only takes the href attribute value of the link and loads the url in a new page. How can I use middle click to open the div as a pop up.

There we go, even though it's a jQuery solution, should be easy enough to implement.
This also makes right click listening rather easy.
 
8:13 PM
the middle click is why you write unobtrusive javascript
the item you are clicking on should act as expected in the new page too
 
@tereško The point is to trigger an event on the original page (while retaining the new-tab functionality)
@PeeHaa lol @ that
 
user1125394
@tereško how do you manage access levels?
 
@PeeHaa , i really recommend that podcast .. it was funny and interesting
 
@MadaraUchiha That should be an easy "fix". It would be much harder to trap right mouse click and open (in new tab) without a proxy.
@tereško Starting it now
 
8:16 PM
@MadaraUchiha actually , when you do a scroll click , you expect the original page to stay unchanged
 
@tereško I personally never used it, but it seems as though when you scroll-click a link, nothing happens
 
@MadaraUchiha There's already way too much jQ in there, a little more can't hurt. Famous last words. In all seriousness though I will probably reverse engineer the jQ version and do it vanilla, I am trying to remove jQ as a dependency, I don't really want to write new code that depends on it.
 
@DaveRandom The point is not jQuery
It's event.which which is vanilla JS
 
@PeeHaa Awesome
 
8:19 PM
@MadaraUchiha it opens a new tab , with the result of that click in said tab
 
@tereško Doesn't seem to do that on Chrome
 
@MadaraUchiha btw why does your GitHub page 500? github.com/RikudoSennin
 
@MadaraUchiha lolwut ?
 
Very good question, I have no idea :o
 
user1125394
8:20 PM
@PeeHaa looking at stackoverflow.com/a/4415733/1125394 for a good solution
 
@tereško By "scroll click" You mean dragging the middle mouse button, correct?
 
no, i mans clicking with mouse scroll
modern mice do not have 3rd button
 
@MadaraUchiha But the thing is, if a middle click triggers click it should work already: github.com/cv-pls/cv-pls/blob/master/cv-pls/script.js#L1056 - putting in a conditional on event.which would make it do less, not more.
 
That' right...
Let me do some testin'
Seems to register
Even if the link is an external link
<a href="http://google.com" id="test">Test</a>

<script>
    link = document.getElementById("test");
    link.onclick = function(e) {
        console.log(e);
    }
</script>
 
Hang on let me go get a mouse, using a touch pad atm, not sure how to do a middle click with it.
 
8:24 PM
Indeed seems to just work? jsfiddle.net/bprKn
 
Doesn't work on right click though
 
@MadaraUchiha nopez
Even if it would capture right clicks it would be impossible to tell what was clicked on in hte context menu
 
Which is odd, since event.button should be 2 in the case of a right click
 
Right OK that is very odd. Let me do some investigating.
 
word
 
8:30 PM
@DaveRandom @PeeHaa seems to work when you use onmouseup instead of onclick.
right click that is.
 
Only +2 more :-D
98
A: Fundamental difference between Hashing and Encryption algorithms

ircmaxellWell, you could look it up in Wikipedia... But since you want an explanation, I'll do my best here: Hash Functions They provide a mapping between an arbitrary length input, and a (usually) fixed length (or smaller length) output. It can be anything from a simple crc32, to a full blown cryptog...

 
+1 more :)
 
+0 more
 
congrats. @ircmaxell
 
Right I think it's .on() that's the problem. @PeeHaa @MadaraUchiha can you try jsfiddle.net/bprKn/2
 
8:32 PM
@MadaraUchiha nice find
 
Woot! Thanks for the gold!
 
@DaveRandom Fails on middle click and on right click
jQuery is supposed to be helpful, not destructive.
I would suggest a higher parent onclick event, and use event delegation.
Without the use of jquery.
 
@DaveRandom yep
 
I think I've pissed someone off on twitter ;-)
 
@PeeHaa @MadaraUchiha Well that will (presumably) be sorted if we convert all the the nasty innerHTML stuff to proper .createElement() mechanisms and assign a vanilla handler with addEventListener(), which is on the cards in the short term anyway.
(because that vanilla needs handling)
brb
 
8:37 PM
@DaveRandom Might be pre ff port I think?
k
 
@BarackObama @AmyStephen nice "think of the children" argument. Go away and come back when you have something meaningful to say, not slander
 
@PeeHaa Same time (well, same release) I think, it's quite a small job. Might try and do it this evening to ease myself back in, I've been a bit distracted this last week and a lot of it has fallen out of my head.
Or maybe we could do a 0.19.1, since I suppose this is effectively a minor bugfix
 
user1125394
will create a question on simple ACL in php, {not authed (or visitor), authed, admin} respecting a mvc schema
 
@PeeHaa @DaveRandom jsfiddle.net/jMHmp
I suggest you fork it and work on that seperately
Then merge it when it's ready.
I'm no expert regarding Chrome's Extension API, but I can help you with DOM based JavaScript
 
@MadaraUchiha It's all about (DOM based) JavaScript. Nothing magic about it
 
8:42 PM
Only 444 bronzes to go.
 
It'll update to 6 golds in a little while
 
@PeeHaa I'll have a look.
 
And no need to screen shot:
 
@ircmaxell 11 Silvers and 555 bronzes it is than!
 
Do someone say tan? Where is @rdlowrey? :P
Ow misread
 
user895378
8:44 PM
Did someone ring the Tan Emergency Hotline?
 
lol
 
hehe
 
Where'd you read "tan"?
 
54 secs ago, by PeeHaa
Ow misread
 
@PeeHaa Where did you think you read "tan"?
 
8:46 PM
3 mins ago, by Madara Uchiha
@ircmaxell 11 Silvers and 555 bronzes it is than!
 
> If you feed every possible 1mb file into MD5, you'll get a ton of collisions
@ircmaxell NASA RedBull called, they want their computer back.
 
LOL
 
Wait, why factorial? huh?
I'm confused, what's that supposed to prove @MadaraUchiha
 
8:49 PM
> Limited:(64181 of 65536 left)
right, "limited"
 
@SomeKittens I would be more impressed if it would be 65537.
 
-1
 
No, my bad, you're right.
Since each byte could be one of 256 options, given 1024^2 permutations...
 
What's the difference between (int) and (INT_CAST)?
 
8:52 PM
@SomeKittens WTF is (INT_CAST)? Looks like a constant in parenthesis to me...
 
@DaveRandom define("INT_CAST", "int");
:D
 
@DaveRandom Aptana just suggested it to me
 
@MadaraUchiha That won't work will it? I'm sure you can't do that...
 
@DaveRandom Not in PHP
 
@SomeKittens aptana thinks you are working in c++?
 
8:54 PM
@MadaraUchiha where do you get 1024 from?
 
@ircmaxell 1MB = 1024*1024bytes
 
I understand that part
but you're trying to come up with the number of unique 1mb files?
 
8 mins ago, by Madara Uchiha
> If you feed every possible 1mb file into MD5, you'll get a ton of collisions
 
2^(1024*1024)
 
@SomeKittens , afaik , aptana does not support C++
 
8:55 PM
that's the number of permutations where order matters (because it does)
 
@ircmaxell Huh? Why?
 
Ok, let's look at 2 bits
you have 4 possible states
 
It's not 1Mb, it's 1MB
 
00
01
10
11
 
I'm very much using PHP.
 
8:56 PM
Are we talking about bits or Bytes here now? I'm confused.
 
OK, then 2^(1024*1024*8)
 
Capitalization is the difference between I helped my uncle Jack off a horse and i helped my uncle jack off a horse.
10
@ircmaxell Again, why?
 
why what?
 
Each byte has 256 possible options
 
forget bytes
that will confuse you
 
8:58 PM
@MadaraUchiha LOL
 
so 2 bits has 4 possible states
what happens with three?
 
@ircmaxell 8, obviously
 
Well, it has the same number of states off, and on. So therefore it has 2 times the number of states
 
I thought we were talking in bytes, hence the confusion.
 
each bit doubles the possibilities. Therefore, the number of possibilities for a certain number of bits is 2^bits
Now, since a byte is 8 bits, we can short-circuit the calculation and just multiply bytes times 8 in the exponent
therefore, 2^(1024*1024*8) is the correct answer
 
8:59 PM
The result is exactly the same by the way
 
Holy crap I think I just understood something @ircmaxell said
 

« first day (732 days earlier)      last day (4210 days later) »