« first day (656 days earlier)      last day (4305 days later) » 

5:00 PM
Only people who have no clue how to do it :}
 
@Event_Horizon none. I hate myself
 
I couldn't even find that tag
@PeeHaa lol, I've had wordpress since I started coming to SO chat as a regular
 
it might be slightly different
like or something
 
wouldn't those be easy as hell to answer though?
what ends up being torturous about
 
1 hour ago, by orourkek
http://stackoverflow.com/questions/11781365/how-to-make-an-image-responsive-in-html
@Event_Horizon ^
I added that tag this morning :P
@Event_Horizon Its not totally about the tag being filled with bad content (although sometimes it has been), but more about me not wanting to answer questions about it
 
5:04 PM
Ah ok
 
I only have on the Fav and on the ignore list. I tend not to use content filtering :)
0
A: Should non-scalable answers be getting downvoted?

Nicol BolasDownvoting is the right of every Stack Overflow user of 125 rep or more. You are allowed to downvote a question/answer for any reason whatsoever, or even none at all. If someone doesn't like the fact that your answer uses Hungarian notation for variable names, you may get a downvote. If someone ...

Also. I tend to point out my flaws in the answers but I always also tend to answer in a manner it fits OP's, the community's and common sense's needs.
 
@Event_Horizon [facebook*]
 
@Neal adding now
awww
doesn't work :(
 
@Event_Horizon what doesnt work?
 
actually using [facebook*]
 
5:12 PM
@Whisperity That seems so silly to me
 
@Event_Horizon yes it does ^
 
@Event_Horizon Is your name some sort of special IT or engineering term? It sounds rather familiar to me but I can't figure it out why it is.
 
@Neal hmm
 
Votes (down or up) can happen at any time for any reason and are completely anonymous .. which makes the whole thing meaningless (imho)
 
@Whisperity Its the spot where you cease to see light in a black hole.
 
5:12 PM
no accountability
 
@MikeB Pretty much
 
@Whisperity It is said alot on Stargate :-D
 
StackOverflow is just an exercise in Sociology
 
@MikeB Agreed. There should be a thing that, even if not a rule, a common unwritten habit that we justificate downvotes. Upvotes are usually not needing an explanation, but if I downvote, I do say what's the problem with the post.
 
5:14 PM
Excluding when the reason for a downvote is already said or just blantantly obvious (the question is horribly formatted).
 
@Truth booo why u ingore jquery?
 
@Whisperity I normally don't downvote
 
@Truth Only on questions. Usually the cv-pls ones.
 
Answer has to be very wrong or way too shallow in order for me to downvote.
 
hey fellas
 
5:15 PM
@Neal Yeah, thats where all the easy pickings are!
 
@Event_Horizon It clutters my hot questions too much
 
@Whisperity I downvote if code is A) Dangerous or B) Wrong
 
Let's say that if someone posts an answer with mysql_* but takes the time to properly escape and explain the dangers, I won't downvote
I'll throw in the normal comment
Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial.
If he doesn't even bother escaping, I'll downvote and comment about SQL injection, plus the normal comment above.
 
2
A: Change password code

Whisperity Warning: Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun the deprecation process. See the red box? Instead, you should learn about prepared statements and use either PDO or MySQLi. This article should give some details ...

 
@Truth , yes , tnx
 
5:18 PM
@Truth Hm?
 
Why not vote strategically?
 
@Truth this, yeah
 
@tereško =) I usually award bounties on answer that gave me great "Aha!" moments.
 
@Event_Horizon lol
@Truth naaaah
 
@rdlowrey Tests: 486, Assertions: 712, Failures: 1, Errors: 8, Incomplete: 1, Skipped: 12.
Looking into them now.
 
user895378
@LeviMorrison Doesn't surprise me ... I was naughty and made several untested deviations late last night to get the socket Client working and pushed. I've got a lot to go back and test.
 
Looks like some API changes.
AppConfig was given an array.
> Argument 5 passed to ArtaxPlugins\ResponseEncoder::__construct() must be an instance of Artax\Framework\Configuration\AppConfig, array given
 
user895378
@LeviMorrison Oh, any problems with ResponseEncoder are expected. That's the one place where I would actually expect errors. It's only half-baked and was left that way temporarily to finish the Client :)
 
ResponseEncoder::* failed, basically.
 
I'm being told that replacing long polling techniques with websockets is premature optimization...
 
user895378
5:24 PM
@LeviMorrison I'll clear up those errors in a bit
 
PHPUnit_Framework_Error_Notice : Undefined index: REQUEST_URI
#0 /var/www/Artax/src/Artax/Http/SuperglobalUriDetector.php(32): PHPUnit_Util_ErrorHandler::handleError(8, 'Undefined index...', '/var/www/Artax/...', 32, Array)
#1 /var/www/Artax/test/unit/Http/SuperglobalUriDetectorTest.php(53): Artax\Http\SuperglobalUriDetector->make(Array)
#2 [internal function]: SuperglobalUriDetectorTest->testMakeParsesUrlPropertiesFromSuperglobalArray(Array)
 
user895378
@LeviMorrison I get that too -- it's from my naughty late-night pushing.
 
Okay. No worries then.
As long as our errors are the same.
 
@rdlowrey Thats what she said.
 
user895378
@Event_Horizon glad you appreciated what I was doing there :)
 
5:26 PM
@rdlowrey ;)
 
anyone know how i can get a list of locale codes installed in php?
 
i wonder if you can ignore everything except your favorite tags
 
nvm... locale -a
 
Isn't lithium made by the same guys as CakePHP
@webarto PHP isn't really built for websockets
fennb.com/nodejs-a-giant-step-backwards holy shit there's a lot of hate on node.js out there
 
@Lusitanian yes, but it works good on small scale (for me)...
 
5:36 PM
@Lusitanian Yes, The cake is a li3
2
Nate Abele and some other guys started li3 after leaving the CakePHP team
 
is it coded more nicely?
"Amusingly, the “idea guy” had a CS PhD from MIT. I guess that proves one point. Even if you have a degree from a top school, that doesn’t mean you can actually write working code. However, this psychopath would never risk taking a job where he’d actually have to write code. He’ll always take a job as “idea guy” or “architect”, without having to actually code or do real work."
 
I haven't looked too closely at the code but I would say most-definitely. CakePHP (at the time) still supported PHP 4.. Lithium was one of the first big frameworks to declare that they would ONLY support 5.3+
 
anyone know how soap client uses the wsdl??
 
@Hardik Yes
 
for example: SoapClient('http://localhost/test/server.php?wsdl')
 
5:38 PM
What about it?
 
when i type localhost/test/server.php?wsdl in url then it generates the wsdl. now how sopclient uses that wsdl??
 
Interesting, but there's already a shitload of static functions and I've only looked at one file
and this is yet another framework requiring you to extend a base class
and they actually call exit() -- there's a method $this->_stop in every controller and "object" (because every class extends an "Object" class) that's a wrapper for exit. what the hell.
 
hmmm, is code not working in answers for anyone else?
 
and i also want to know how nusoap generates the wsdl dynamically??
 
and there's a library registry of sorts @MikeB this is terrible
my eyes :(
 
user895378
5:42 PM
@LeviMorrison Should StdUri assume http:// on new StdUri('www.google.com') or throw an exception? Consider that the assumption also means new StdUri('test') results in a valid StdUri instance with a string representation of http://test
 
@rdlowrey IMHO you should require a protocol
 
@rdlowrey I don't think it should assume a protocol.
 
user895378
Okay, it currently requires the protocol, but I thought I'd ask -- thanks for the input gentlemen.
 
Hello! I've got this code:
while ($row_get_countries = mysqli_fetch_array($data_get_countries)) {
$country_tabs = array_unique($row_get_countries);
foreach ($country_tabs as $country_tab) {
if ($country_tab == $country) {
echo '<div>' . $country_tab . '</div>';
}
else {
echo '<a href="' . $country_tab . '">' . $country_tab . '</a>';
}
}
}
 
"

PHP is a language for amateurs.

The fact you can’t understand Ruby or Rails isn’t a flaw of the language or the framework. It is simply your stupidity.
"
Yes, because clearly Rails is just so hard to understand...and so is Ruby. What does "STRING".downcase() do?!?!?!??!!? :(
 
5:47 PM
I have my output like this: DE SE US US US US (this are countries)
these*
I would like somehow to make the US appear only once
 
$country_tabs = array_unique($country_tabs)
 
it doesn't work
each country is in his own array
 
didn't I show you how to do this yesterday?
 
like array 0 => DE array 0 => SE array 0 => US and so on
yes but it didn't worked man, it just made my output D S U U U U
 
Loop over them and collect them as keys in an array.. then loop over the array's keys to output them
foreach($countries as $country) { $uniqueCountries[$country['name']] = 1; }
var_dump(array_keys($uniqueCountries));
 
5:50 PM
I'm really enjoying reading these people blast the shit out of node.js and rails
 
using keys will keep things unique
 
Hrm, tried to read the question at physics.stackexchange.com/questions/33195/… but went all wtf somewhere around point 3...
 
$country['name'] what is the name here? @MikeB
 
@NikiC stop physics makes my head hurt ):
 
@Hypn0tizeR It's however you access the country's name in your data-structure
 
5:53 PM
ok, got it
 
@NikiC lol
 
@MikeB array_unique() aren't you expecting every country's name to be different ?
 
@NikiC dat answer, jebus with the science equations
 
i guess it doesn't hurt.. any purpose to why someone would use that?
 
@Nick Say what?
 
5:58 PM
10 mins ago, by Mike B
$country_tabs = array_unique($country_tabs)
 
Still doesn;t work in my code, var_dump shows me a lot of arrays
 
@Nick Takes an input array and returns a new array without duplicate values. from the man page
 
the shit is that I have more arrays and array_unique doesn't work
 
@Hypn0tizeR Provide a short example with inputs (sscce.org)
@Nick I don't understand what you're pointing out
 
@MikeB I've never used array_unique I was asking,, why?, but @Event_Horizon kinda answered my question
 
6:01 PM
@Nick Ah, yeah. Unfortunatly it won't work for @Hypn0tizeR because he has nested array(s)
 
@MikeB ok I'm going to create a new topic on the website here
i'll post the link later
 
@Hypn0tizeR imho it's too localized for SO
 
Does anyone here (other than @webarto :P ) have serious experience with websockets?
 
nope, are you doing websockets with php?
 
no, i'm not going to because i can't imagine the performance would be acceptable
there is more hate out there for node.js than any dev environment besides rails
 
downvoted
 
nooo
don't give him a peer-pressure badge
 
i linked the song "everything you know is wrong"
 
@Lusitanian So do you know what you're doing ?
 
@Nick not as of yet
 
6:07 PM
If you really want to 'dislike' the answer you want to keep it at -2 with no upvotes
 
I may just do the small part of my app that needs websockets in PHP for now and migrate it to (trendy environment goes here) later
 
@MikeB alright
 
@MikeB Being passive-aggressive, ey? ;)
 
I was more like aggressive-aggressive
 
Using the system
 
6:08 PM
> Unfortunately, this SME-music-content is not available in Germany because GEMA has not granted the respective music publishing rights.
Sorry about that.

Man, I hate Germany. :-/
 
@deceze the chorus is "Everything you know is wrong
Black is white, up is down and short is long
And everything you thought was just so
Important doesn't matter

Everything you know is wrong
Just forget the words and sing along
All you need to understand is
Everything you know is wrong"
 
what's shocking is that someone with over 20000 rep answered that
 
@Lusitanian Yup. You'd think he'd have bothered to understand encodings by now.
 
indeed...
 
6:15 PM
@deceze thanks for the link -> :P joelonsoftware.com/articles/Unicode.html
I've never read this, it's like reading an adventure book right now
 
"They have email in Japanese?"
 
@Nick He gets it wrong vis-a-vis PHP as well, though.
At least he doesn't go into enough detail to humiliate himself too badly... ;3
 
hiya people
 
@deceze note date on article :)
 
hiya peehaa
 
6:17 PM
@PeeHaa hola peehaa
 
@Lusitanian Sure, but I can't say if the situation was really any different back then.
PHP may have gained some more encoding-related functionality, but the basics seem to have not changed since.
 
php 4.3 was the first version with the mbstring extension
which came out in late 2003
 
0
Q: Selecting unique values from more arrays

Hypn0tizeRI've got the following code: $get_countries = "SELECT country FROM blahs WHERE country IS NOT NULL ORDER BY country"; $data_get_countries = mysqli_query($dbc, $get_countries); while ($row_get_countries = mysqli_fetch_array($data_get_countries)) { $country_tabs = array_unique($row_get_countr...

This is my question
 
But even before then PHP should have been able to handle any encoding just fine. You just couldn't manipulate strings very well.
 
correct, but without proper manipulation it was kinda useless
granted there were workarounds but in 2002 i was seven years old so i don't reall yknow
 
6:20 PM
@Lusitanian "also please add the codeigniter decorator pattern" nice one :P
 
@Lusitanian your 17 ?
 
@Nick yes
@PeeHaa it's important!!
 
Depends on the app I guess. I rarely actually "do" anything with strings in my average CRUD apps...
 
@Lusitanian props xD
 
@Nick heh thanks I'm far from the best 17 year old dev in this room though @NikiC grabs that title....
@PeeHaa I got frustrated as shit with Google yesterday, let me push my somewhat broken changes so you can see
 
6:23 PM
@Lusitanian sure
 
thar ya go
 
Woot, we moved ahead of Naughty Korea, but we've still got to land a couple more golds to catch Nice Korea.
 
ohhhh british athletics
 
Who wants to put a funny text up today? phpcodepad.com
 
@deceze omg is it up again :P
 
6:25 PM
oh god
 
It's like a Roly-poly toy X-D
 
that's just mean
 
Better than that server turning into a malware zombie...
Who knows what else is running on there...
 
fair enough...it's easy to make one of those pads securely as long as you jail the interpreter
running eval() on the provided input doesnt count
 
Well, try telling that Mr. Web Rocker
 
@PeeHaa try running the example and you'll get an error when it tries to get the token because it's missing a require param
except that that required param is not used in their docs and isn't required
 
Can you pass arguments through interfaces?
 
what do you mean?
an interface is a description of how an implementation should look
 
@Lusitanian hmmmm strange
lemme setup a local repo so I can start doing stuff :)
 
6:33 PM
:) i would really like this to work...all the libs out there are just so shoddy
 
Oh man, there is SO a meme in this somewhere. bbc.co.uk/news/uk-19081335
 
come on... I was having fun on phpcodepad.org
 
@GordonM I'm leaving, on a zip line. Don't know when I'll be back... Aparently I haven't left yet...
 
6:36 PM
@Lusitanian Well I'm confused, I'm writting an API lib and I have em all seperated into three seperate classes Api_Psn, Api_Steam, Api_Xbox.. I wanna tie them all together, do I do an implementation or abstraction layer
 
you um, probably don't want to tie them together
 
@ircmaxell They told me node.js was faster than a zipline!
 
that would be coupling which is bad
they should all implement the same interface though
if they have the same functions
that way you can use them interchangably
 
didn't know github supports smilies github.com/jcasimir/draper
 
zipline:// wrapper - may be blocking
3
 
6:37 PM
@Lusitanian They do, you just have to specify gamertag
 
@Nick class XboxApi implements GameSystemApi class PsnApi implements GameSystemApi
etc
then GameSystemApi is an interface defining the functions that should always be accessible from any of those three apis
 
right okay I think i got it
 
I think @deceze wins!
 
@webarto Yup I've come across bomb before when somebody screwed up :)
 
6:39 PM
@Lusitanian why would you even implement an interface for this example? -> codepad.viper-7.com/YLTxUO
 
@PeeHaa better that we redirected to porn or rick rolld :P @Event_Horizon wow, never knew, thanks
 
@Nick it's very simple: you can have an infinite number of implementors of that interface
and in your script, you never need to know which one you are using
and you can get the same functionality
 
I have an issue adding product into cart
in Magento
 
@Nick loosely speaking, the liskov substitution principle applies
@AlirezaSeifi contact the store you are trying to purchase the item from
 
6:41 PM
we get system error
Thats our website :)
base in magento
 
@Nick codepad.viper-7.com/Tad3As i updated it with an example of typehinting an interface
 
@Lusitanian you never need to know which one you are using eh, thanks i'll look at your updated codepad
 
but when customer logs out and sign back
 
i mean, that statement is a little broad and not necessarily correct but i'm trying to make a point
 
6:44 PM
they can add those product to their shopping bag
 
@AlirezaSeifi ask it on stackoverflow, we don't know about magento in here
 
ok, Thanks man
 
@Lusitanian ohhh i get the usage now,
 
@Lusitanian okay so since all gamertags are specific to one class so do I really need to implement an interface
 
6:47 PM
well honestly i don't know exactly what it is you are trying to do
@PeeHaa " Fatal error: Uncaught exception 'OAuth2\Exception\InvalidTokenResponseException' with message '400: Bad Request' in /var/www/temp/oauth/OAuth2/Service/Google.php on line 33" RAWR
oh btw i intentionally broke 5.3 support (;
 
@Lusitanian No no, I think you've explained it really well, thanks alot.
 
@Lusitanian :)
 
@Nick you're welcome (:
@PeeHaa wow I am dumb
I just figured it out
 
What did you screw up? :D
 
put the wrong url for the token endpoint
now lemme try
all right, worked
i can't believe i struggled with that so long
 
6:55 PM
@rdlowrey Help. I have a class property that stores a function. Inside of the class, how do I call the function contained in the property?
 
user895378
@LeviMorrison It's a PITA.
 
user895378
The only way you can do it is with call_user_func
 
user895378
(or call_user_func_array)
 
@LeviMorrison i ran into that last week
call_user_func is evidently the only way to do it, $this->propertyName() is invalid
i suppose you could do this $temp = $this->function; $temp();
 
user895378
Yeah ... that probably works too
 
7:00 PM
@PeeHaa this has already deviated from the original library nearly entirely...i think i should clone the repo into a blank one and drop the fork
 
@Lusitanian Yup was just about to suggest that :) especially if we are going to support oauth1 too
 
for sure. what should we name it?
 
PHPoAuthLib?
 
I was thinking AuthIgniter ;)
 
hehe
 
7:08 PM
deciding on a name still this is taking too much time
PHPoAuthLib it is
 
It's just a name :)
 
is there a way to keep the commit history
in moving this to a clean repo?
 
No idea
 
meh oh well
@rdlowrey are you going to put artax into a composer? i'm not particularly comfortable with submodules :P
are you supposed to commit the submodules into your repo or .gitignore them
 
user895378
@Lusitanian eventually. but not until things are very stable.
 
7:13 PM
ah oky
 
user895378
You add them with git submodule add, but the internet at-large will be a better resource than I will if you want to get into submodules :)
 
The inevitable automated trading software bug we all knew was coming: Knight Capital loses $440M in 45 minutes. http://2.dashes.com/MTmUWc
 
@rdlowrey Just putting some finishing touches on my Request class, there's some stuff on getting and normalizing the headers that might be of interest to you.
 
user895378
@GordonM cool. I'm still going to update that answer with info on custom stream wrappers but I just haven't had the opportunity yet :)
 
@PeeHaa github.com/Lusitanian/PHPoAuthLib you are once again a collab
 
7:19 PM
@rdlowrey No worries, am still keeping an eye out for that.
 
user895378
@Whisperity brutal
 
the developer who wrote that...
 
Writing an AVLTree implementation in PHP.
The question is: how to test?
 
@Lusitanian tnx
 
7:23 PM
@Lusitanian The people who released it without testing and backups.
 
i broke my fresh PHP install when i tried to put Zend in a /excludes/ folder and change the include_path setting in the .ini file. my path is c:\php5.3\includes\ will the . in 5.3 break the ini file? does it need to be escaped?
include_path = ".;c:\php5.3\includes;c:\php5.3\includes\library"
 
<?php

    $html = <<<HTML
<div id = "test1">text</div>
<div id = "test2">other text</div>
<div id = "test3">new text</div>
HTML;

    $id_list = array(
        "test1",
        "test2",
        "test3",
    );

    foreach ($id_list as $id) {
        $pattern = <<<REGEX
/
<div\s*                     #Opening Tag
(?:                         #Attributes before ID
    [a-z]+                  #Attribute name
    \s*=\s*                 #Equals
    (?:"[^"]*"|'[^']*')     #Attribute content
    \s*                     #Spaces?
My eyes burn :(
 
@ircmaxell @NikiC @rdlowrey and any others who might know about balancing trees (specifically AVL trees): when I have a tree setup as follow, what should it look like after rotating?
          5
        /   \
      2      10
    /   \
   0     3
    \
     1
My mind is a bit fried and can't seem to work it out.
 
Okay, done for now
 
// this correct?
    2
  /   \
 0      5
  \    / \
   1  3   10
 
7:38 PM
@rdlowrey github.com/gordiansolutions/reefknot/blob/master/http/… incorporates all my header parsing stuff. Did discover that you do have to normalize the header keys regardless of where the headers come from (getallheaders() or $_SERVER) because a DNT header doesn't seem to follow the capitalization rules the other headers follow.
 
user895378
@GordonM Just FYI, all headers are to be considered case-insensitive in HTTP, so you should always normalize before doing anything with them.
 
The code you're probably going to be interested in is in normalizeHeaderKey, getHeadersNatively, getHeadersFromServer and getHeaders
Might have gottan a bit overkil with my normalization :)
 
@Truth
 
@Neal Aטק?
Aye?
 
ryan lochte is such a manwhore
@PeeHaa let me know if you have time to work on this because i wanna figure out how everything should be structured etc
 
7:42 PM
@Truth haha come to the js room :-) (if you daaaare....)
 
@Lusitanian I'm busy now getting my tpb proxy working correctly again, so it will be tomorrow
 
@Truth NO!
It's horrible!
 
@Chris repo for oauth has changed, in case you are interested
 
Aye, but not as interested as I was
 
7:45 PM
ah, did your coworker clean up his code
 
user895378
@LeviMorrison Sorry, I have no formal training with algorithms like binary search :)
 
@rdlowrey lol, it's okay
 
I'm fairly well convinced now the only reasonable thing to do is say "Forget OAuthful2" and just rely on the well-documented flavors already offered by providers like Google+Facebook.
 
user895378
@LeviMorrison That's one of those things I'd like to get to and self-learn, but I just never have time :)
 
@Chris well this is for google+FB heh
initially nayway
 
7:47 PM
OAuthful2 is supposed to encompass Google and/or Facebook, but each have proprietary-esq solutions that are far more stable and easy to adopt
 
I'll watch the repo, I might help out, but I can't imagine favoring a so-so implementation of OAuth2 over my existing rock-solid implementation of Facebook login via Open Graph
Know what I'm sayin', Lion?
(I'm going to start saying "lion" instead of "dog" now, in honor of Snoop)
 
haha
rofl i accidentally commited my google api secret
/me revokes
 

« first day (656 days earlier)      last day (4305 days later) »