« first day (446 days earlier)      last day (4487 days later) » 

5:00 PM
0
Q: Merge Accounts and Ban

amanaP lanaC A nalP A naM AThis user and this user are one and the same. See chat here: http://chat.stackoverflow.com/transcript/message/2288401#2288401

happy?
 
@Neal The point is how can i post questions from thiss account
 
65
Q: What can I do when getting "Sorry, we are no longer accepting questions from this account"?

ArjanWhile trying to ask a question, one could get: Oops! Your question couldn't be submitted because: Sorry, we are no longer accepting questions from this account. See http://goo.gl/C1Kwu to learn more. Why am I getting this message? Are deleted questions taken into account too? ...

 
Question bans never expire or "time out."
So what?
 
@user726730 oy.... back to being ignored....
 
@user726730 Read the entire answer. It gives you details on how to get your account back to where you can ask questions.
 
5:09 PM
Ok, i wiill try to fix myy posts with too lot negative graduate..
And then i will try to tell us this is a good question/post VOTE it
Is this what i must do?
 
@user726730 Going back and fixing your low-voted questions would certainly be the first step.
 
@user726730 and dont delete questions. they still factor into the ban.
 
5:23 PM
@user726730 You have been merged
 
ok!!
Thx
but i can't post new question...
Well it's time for fixing!!
 
That was the point of merging -_-
 
@Robik lol
 
5:45 PM
hi guys, having trouble with PDO. i cant get a query to work as a prepared statement
i have a query which works as a query() but not as a prepare() then execute()
 
what's your query look's like?
 
@Neal huh?
 
@ircmaxell see context
 
I tried
@NikiC: #1 all time post
 
hm, i can't reproduce single quote performance difference at all :( At all.
@ircmaxell I did tell you, didn't I :P (:P) How many?
 
5:59 PM
:-D
1500 above my #1
and some nice traffic on twitter
 
@ChrisP i will post it right now, sorry work called for a second
take that back, got it to work
 
@ircmaxell wow lots goin on here too news.ycombinator.com/item?id=3428824
 
yeah, mostly positive. Not all, but most
 
really I can't get behind that single quotes performance thing
 
6:16 PM
PHP4...
and IIRC PHP 5 < 5.2
 
@ircmaxell I mean the plain one without interpolation / concat, just string
i don't get any difference when measuring the lexing times
I thought that there is at least some tiny bit of truth behind that "optimization"
 
It's not the lexing time
it's the opcodes that are generated
 
we're talking about different things, I fear ;)
 
you're talking about $foo = 'bar'; being faster than $foo = "bar";
 
yes :)
 
6:36 PM
hiy all
 
@JMRboosties cannot ppost qustion
 
Hey there @CharlesSprayberry
 
@ircmaxell How's it going?
 
Pretty good, and yourself?
 
6:42 PM
Can't complain, wouldn't do any good anyway ;)
 
@ChrisP i said i figured it out, sorry must not have been clear, thanks though!
 
Finally getting our first snowfall here. Can't believe it lasted this long without snow
 
@ircmaxell: Non-JS version please.
 
sorry
 
6:49 PM
@ircmaxell What's it about?
btw, are you people all on g+?
 
All? No there still is resistance ;)
 
Just wondering whether it makes sense to sign up ^^
ah, I'll just sign up and look at it myself ^^
 
@NikiC yes
ircmaxell gmail com
 
welp
phpmyadmin's insert function isnt working lmao
 
@NikiC I am. Not that it matters. I don't use it. I'm waiting primarily for a sweet moment to get active.
 
7:01 PM
@LeviMorrison how you called there?
 
@NikiC I don't understand your question.
 
@LeviMorrison What name should I search for on g+ to find you? levi morrison didn't give me anything plausible
 
@ircmaxell You I already found ;) looking for levi :)
 
7:05 PM
@LeviMorrison thx
 
What is prefered for function names (if you don't have a preference what do you use)?
function get_table_columns()
or
function getTableColumns()
 
camel case -> the latter
 
@PeeHaa I agree with @NikiC
 
k tnx
@NikiC @LeviMorrison Any reason why CamelCase is prefered?
 
@PeeHaa By convention (you could probably think up a reason, but really, this is just by convention)
 
7:17 PM
@NikiC k tnx again
 
@PeeHaa Many php functions* don't have underscores and are case insensitive. This means you can use camelCase on existing functions. If we were in Ruby, I'd say use underscores. Like NikiC said, it's really convention.
* PHP is notoriously bad for naming conventions, though.
 
@LeviMorrison you think so?
 
@NikiC Yes. Absolutely yes.
 
lol tell me about it :P
 
@LeviMorrison Speaking of which, have we already decided on the spl datastructures namespace?
 
7:19 PM
@LeviMorrison not to mention parameter order :P
 
@NikiC I'm not exactly sure what you mean. I believe we've agreed that we will namespace it, but not necessarily how.
 
@LeviMorrison I'm asking how :)
My current approach is SPL\Datastructures\ but it seemed like you didn't like that :)
 
@NikiC I don't believe we've nailed that down yet.
 
@LeviMorrison Now could be a good time to do that ^^
Or, no, going to watch a movie now, laters
 
@NikiC I basically looked at C++ and Java and said to myself, "Self, which namespacing method do you like, stl::vector or Java.Util. . . . I forget. I don't even know the basic namespace for Java namespaces. Conclusion: too complex. I go for {plugin-name}\{Class}."
 
7:24 PM
Which would be?
SplDatastructures\ ?
 
I think Spl\*.
 
hm...
 
Ok, someone at work just approached me about my blog post (a friend told another friend who told him). Ok, this is getting interesting
 
will talk later ;)
 
@NikiC \Spl\DataStructures\*
IMHO
 
7:26 PM
or you two discuss this, I'll just do whatever you say (maybe ^^)
 
@ircmaxell What's the benefit of Spl\DataStructures\Collection over Spl\Collection? I'm completely honest.
 
0
Q: mod proxy not working on apache

JohnMerlinoI am trying to install Mod_Proxy Apache module on WHM/CPanel CeEntOS Linux Server. Here is system info: CentOS release 5.6 (Final) Server version: Apache/2.2.21 (Unix) Cpanel::Easy::Apache v3.7.2 rev9999 The purpose of me installing is so that when on site abc.com, when I click a link to site ...

 
@LeviMorrison Now? Nothing. In the future? POerhaps a lot
 
So, I have a form. Based on the type of your account, you get a slightly different form from the base. Ripe for using inheritance or containers. Done. Each form also has a processor that models the scheme of the form so that it is easy to couple a form with its processor. Done. I received a mandate from my boss that the form should be able to update an existing entry for users who already have submitted the form, or to be able to insert a new one.
I'm not sure how I want to construct the change.
 
I hate forms...
 
7:31 PM
I already have WebOnlyProcessor, NormalProcessor, SponsorProcessor, etc. Now according to Misko Hevery, whenever I have behavior based on state I should probably use another class. So now I have two copies of every form, but at the end it writes the change differently.
 
@NikiC: I'm already 2700 over my former #1 post. So good call on the hacker news...
 
Another option is to refactor the code to leave that part of it out of the processor and somehow abstract that portion into another class that is generic enough to hadle all the request types. I'm not sure that's possible.
Thoughts?
 
@LeviMorrison Sounds like either a bridge or a decorator is needed...
 
@ircmaxell That's how things are currently modeled. I'm not sure if my implementation wasn't quite right or if I'll have to apply another layer of abstraction inside it.
@ircmaxell I'm not sure that Spl\DataStructures\Collection will ever be more useful than Spl\Collection, but I'm sure plenty of people have been hurt by that thought.
If I ever use the term Collection inside the Spl and it is does not mean the same thing as Spl\Collection, then I sense I should use a different word to avoid confusion. Two Collections in the Spl? What? It just doesn't make sense. While Spl\asf\Collection and Spl\Datastructures\Collection would remove ambiguity, it doesn't make it more comprehensible when I'm writing or talking about it.
At work. . .

Bob: I'm having issue using Collection.
John: Oh, which collection?
 
@LeviMorrison It's not so much about colliding identifiers, as much as it's about organization
 
7:43 PM
That's my key point: over-organization is often worse than a lack thereof*

* As long as everything is unique.
 
@LeviMorrison Well, perhaps...
 
@ircmaxell Here's a class in the Java API I've never actually used: java.util.concurrent.PriorityBlockingQueue. My guess is that inside the package java, there is no other existing PriorityBlockingQueue. But I would never remember java.util.concurrent.PriorityBlockingQueue. I would remember java.PriorityBlockingQueue, and since it's Java I would also remember java.util.PriorityBlockingQueue.
 
Well, I would add it next to the normal PriorityQueue
 
But do you get my point though?
 
yes
 
7:49 PM
In Java, I can actually see a use for the extra packaging because of the way protected works in Java. However, in PHP, that use is non-existent because of the way protected works in PHP.
@ircmaxell By the way, this is a recent idea I've adpoted. Historically I've organized things more than I do now. I was looking at my website urls and realized that almost all of them could be shortened and no semantics or functionality would be lost.
 
fair enough
 
Also, let's be honest. PHP users are lazy. They don't want to type the extra namespace organization.
 
PHP users are lazy
 
@ircmaxell I agree. We can't fix everything all at once, though. :)
 
Well, it beggs the question: is that a problem that should be fixed? Or the end that should be catered to?
 
7:56 PM
There are three basic goals for me in the Spl datastructures update:
1. Fix existing problems with the Spl datastructures.
2. Add other helpful structures.
3. Actually get it incorporated.
Unfortunately #3 keeps a lot of things from happening :)
 
#3 cancels #1...
 
@ircmaxell Catered to, in my opinion, especially if we don't have naming collisions.
@ircmaxell I sincerely hope you are wrong.
 
:-P
so do I... so do I...
 
@ircmaxell So do we agree on Spl\Collection?
 
not really, but yeah...
 
8:07 PM
Hello, I'm looking for some help with something that I ran into today. I am not sure if I can explain it entirely clear. I am trying to fix and issue (wordpress site) that is passing a value like this (<a href="#" id="norra"/>) so "norra" should become a get variable. when you follow the href firebug shows there is a parameter called cat = norra BUT the $_GET[] is empty. it's a wordpress site
and I can't get ahold of "norra" anyway possible.
 
@wooWoowoo What's the rest of the URL?
 
@ircmaxell Well, how badly do you want Spl\DataStructures\Collection?
 
not car* cat
 
@LeviMorrison Not that bad...
 
8:13 PM
As a side note, Google does well when translating Swedish to English. I'm surprised. Usually the translation is so bad I'm not sure what it is supposed to be.
 
oh I hate to get the bounty at the end of the day. It's much more nice early in the morning.
 
@ircmaxell You keep using an ellipsis. Is there something you want to say about it?
 
@LeviMorrison yes, but I'm not going to say it now, not really thinking now
 
@wooWoowoo I think that URL is already using hidden get parameters.
 
those are page names. so it's more or less www. application programmer . se /swedish app businesses / listings / ?cat = norra (i added the spaces so we could see the whole thing
 
8:14 PM
Any mysql know-how-ers stackoverflow.com/q/8749104/763468
 
are hidden $_GET params outside of the $_GET array? I used var_dump to try and see the whole $_GET table and it came up with nothing....
 
@wooWoowoo I'm not a Wordpress expert, I'm sorry. I've only dabbled.
@wooWoowoo Probably not, but you can try dumping $_REQUEST instead.
 
oh, that's no problem. I appreciate you looking anyways.
alright, I'll do that. Thanks again.
$_REQUEST dumped null. hmm. ok, I might need to go another direction.
 
8:41 PM
@wooWoowoo: Wordpress might strip the PHP superglobals like $_GET, $_REQUEST, however normally there is no such thing as hidden get parameters. Try var_dump($_SERVER); as well, you might find the URL in there somehwere.
 
@LeviMorrison barf
 
@salathe Why so?
 
you want this to go in PHP? you're not doing yourself any favours by introducing namespaced classes.
 
@salathe no?
 
@ircmaxell unless I've missed some vote on that topic, no.
 
8:45 PM
@salathe You are telling me that PHP core and 'core' extensions WILL NOT use namespaces, not ever?
 
@salathe Well, then we can stir the tide :-P
 
@LeviMorrison I can't tell the future.
@ircmaxell You can try. If you think it's something that's needed, go for it.
 
@salathe If PHP does not introduce namespaced classes if its own at some point, then I think it will never become the best language it can become.
 
@LeviMorrison I think PHP will do just fine either way
 
@LeviMorrison: Until then we can look at your nice new avatar.
 
8:47 PM
@hakre Courtesy of my wife, thank you!
@salathe You misconstrued what I said.
 
 
@LeviMorrison have you written down your proposed improvements and additions anywhere?
 
meouw.
I like the hashcat analogy of kitties.
 
@LeviMorrison I often do.
 
@salathe Yes, but it is incomplete: wiki.php.net/rfc/spl-improvements
At the moment it mainly explains problems. How well it does so is debatable, as well as the proposed fixes.
 
8:49 PM
@LeviMorrison thanks, I'll have a read later.
 
@NikiC yep, havent been here for a while :-)
 
@salathe I think it's the only way it will get in
 
@ircmaxell sure, it won't if no-one tries. ;)
 
:-D
 
@salathe If there was part of the PHP core that was namespaced, then the datastructures are honestly the portion that would benefit most.
 
8:59 PM
@LeviMorrison how so?
 
Well, we're talking about implementing a new SplQueue... So if it's not namespaced, it would have to use a different class name, or break BC, either of which I don't think would be preferred..
 
@ircmaxell You want two SplQueue's in PHP?
 
@salathe Not at all. The existing one is not very good in many ways.
 
@salathe The original would be eventually deprecated in favor of the new one. So to implement it well, we'd either have to break BC or introduce 2...
 
@ircmaxell Again you said it better than me.
 
9:02 PM
:-D
 
I'm pretty good at articulating when I sit down and think about it. My chat messages are not nearly as good :)
 
@ircmaxell there's nothing wrong with either of those options, my question was about the name.
 
Well, which name is chosen is in the air, and fine
 
Call it SplQueuei. :)
 
even if you wanted \php\Spl\DataStructures\Queue
 
9:06 PM
@ircmaxell . . . we could use php\DataStructures for our namespace . . .
It organizes it nicely and introduces the idea of a default PHP namespace.
That could be a could way to namespace anything that's part of the PHP core.
 
True...
 
Or even php\Collection instead of Spl\Collection.
 
Sure, anything's possible
 
I'm not sure that the php prefix is really necessary, but it likely would prevent namespace collisions with existing code.
 
@LeviMorrison we've already "reserved" "php" for future use, for what it's worth.
 
9:14 PM
@salathe Define reserved.
 
@salathe reserved by documentation: codepad.viper-7.com/Udfe9e
 
We say in the manual that "php" is reserved.
@ircmaxell yes
 
I want a fatal error :-(
 
@ircmaxell I don't!
 
Are namespaces case sensitive? I assume they are but I don't know.
 
9:17 PM
@LeviMorrison your wiki page needs a lot of work :-/
@LeviMorrison no
 
@salathe That's why I said 'incomplete' :) I'll gladly take your feedback.
 
@LeviMorrison a lot :)
@LeviMorrison you could start by referring to the SPL by "SPL" :P
 
@salathe Then I'll start with a little feedback.
 
hoi
@LeviMorrison @ircmaxell did you decide on the NS?
 
@salathe I don't like acronyms using all caps in code. It makes it really ugly when used in the middle of something. Consider useXMLDefinitions. That is not nearly as easy to read as useXmlDefinitions.
@NikiC Not exactly.
 
9:20 PM
Ah, I see that you didn't ^^
 
@LeviMorrison I'm not referring to identifier names, just the bad English.
 
@NikiC no
 
SplFooBar capitalisation is fine
 
@salathe It was a trade-off: proper English or consistent usage throughout the page. I chose the latter.
 
@salathe SPLFOOBAR
 
9:21 PM
@LeviMorrison Sorry, what?
 
@salathe If I use SPL in certain places (my sentences), and then Spl in my code, it's not quite as clear as if they were the same.
@salathe That doesn't mean I won't change it. That's just the reasoning.
 
@LeviMorrison I don't mean to be short with you but that's just wrong.
 
I dislike SplFooBar. I think it should be \SPL\FooBar as \PHP\Foo as well...
 
@ircmaxell agree
 
posted on January 05, 2012 by PHP-GTK Community

This is about simple random walk (as defined in theory). Uses the cairo library. A ball walks randomly on the screen and leaves a trace behind. read more

 
9:23 PM
@ircmaxell So you would prefer SPL\Datastructures\ too?
 
@salathe Then I'll be short with you: you are wrong. That's only a matter of opinion when it comes to clarity. There is no correct term when it comes to certain clarity issues.
 
@NikiC or \php\DataStructures\*
 
@ircmaxell I'd prefer php\Structures over php\DataStructures, to be honest.
 
eih, we're arguing semantics at this point. We can switch namespaces in a minute, but implementations are so much harder
 
@LeviMorrison SPL is an initialism of Standard PHP Library. When writing it in prose as a shortened form of Standard PHP Library, it needs to be all capitals.
 
9:25 PM
Technically speaking, datastructures is not a word, only a term that was conjoined.
@salathe That is correct. The matter of clarity is not the same.
 
@LeviMorrison Really, do we really need to save characters?
 
@NikiC Yes. This is PHP :) But I agree with @ircmaxell: implementations are far more important.
 
@LeviMorrison No, this is us, this is not PHP.
We are definitely not doing this so that we get a PHP solution from this (read: completely fucked up). We want something good, so please don't use "it's PHP" as an argument.
@LeviMorrison Implementations aren't that hard. The hard part is designing the APIs (including naming things)
 
@NikiC The namespace is easier to change than the class API.
 
:2290515 I was, the lock should be free now.
 
9:30 PM
@salathe The lock was lifted right as I posted :)
 
@LeviMorrison We'll have to discuss this at some point anyways and now is very convenient from implementation, so I don't see much point postponing (sure, we still can change it later if there are severe problems with it)
 
@salathe What other issues do you have with the RFC?
 
I decided to fix it rather than waste time going back and forth. :)
 
@NikiC Then in that spirit, I vote that we use the namespace php\DataStructures. Any opposed?
 
@ircmaxell Hm, could be okay too, though I'm not really sure what they intended PHP\ for.
 
9:32 PM
@LeviMorrison I think it's just primarily lacking thought and structure, which I'm sure is something you'll be working on
 
@LeviMorrison why php\, why not PHP\, why not SPL\ ?
A lowercased ns name seems just so inconsistent with everything else
 
@NikiC I hate all-caps for acronyms/abbreviations when I'm coding. useXMLDefinitions vs useXmlDefinitions. Latter is better, methinks.
 
@LeviMorrison In that case it would still need to be Php\Datastructures\ to be at least somewhat compliant with common naming conventions and that looks just ugly in my eyes ^^
 
@NikiC But only php and PHP are technically reserved. I want to use a reserved namespace.
 
@LeviMorrison So PHP is the only choice (apart from SPL or Spl) :)
(And I would prefer SPL btw)
 
9:35 PM
@NikiC Or we assume that people were not stupid and didn't make a Php namespace.
 
@LeviMorrison DOMCDATASection *shudder*
 
@salathe Exactly :)
 
@ircmaxell What's your take on this?
@salathe DOM\CDATASection to be more realistic (Still not entirely nice)
 
@NikiC I was just citing an existing example
 
@salathe óÒ
Okay, that is ugly
 
9:37 PM
@NikiC We call it DOMCdataSection in the docs, now that is ugly.
 
@salathe I think DomCdataSection is the best strictly speaking, but DomCDataSection depending on how you consider CDATA to be broken apart.
 
Argh how can I remove that fuckin What's hot on Google+ thingy on top of the start page ?!?! It's so freakin annoying to see that animated picture of that wierd robot thing there all the time
 
hey all
 
@NikiC The start page? In g+?
 
im blanking
how do i get part of an array?
like the last 4 elements?
into an array
 
9:39 PM
array_slice?
 
@NikiC thanks
stupid brain freeze
 
@LeviMorrison oh, finally found it. There is a "Collapse" written in very thin grey under it
Thank god, that animation made me crazy
 
@NikiC I don't have that robot. Maybe its because I've had my account longer, or something.
@salathe What about:
Request for Comments: SPL Improvements
- Introduction
-What is wrong with the SPL?
-- Exceptions
-- Structures
-Proposal
That sort of organization? Or can you think of a better one?
 
Add a "-- Documentation" :)
I'd like to see multiple separate RFCs under the umbrella of "SPL Improvements"
 
Yeah we'll probably need several RFCs
 
9:45 PM
We can fix the different parts at different times, e.g. things that you have said we can do now, we should do now
 
At least one for the new datastructures as that is a bit different from the exceptions thing
 
Probably the first one to actually go anywhere would be Documentation issues. The next would be Exceptions where they can be fixed.
 
@LeviMorrison Yep
Did you do any further work on docs?
 
@NikiC Only minor things.
 
I'm not sure the namespace discussion should be there, at least not until we have decided whether and how the project as a whole should deal with namespaces.
 
9:46 PM
Some more exceptions being thrown stuff.
 
kleinvieh macht auch mist /translate
 
@salathe From a practical standpoint, how would you have multiple RFCs under SPL Improvements?
Use the wiki namespaces? spl:improvements would simply link to RFC's such as spl:documentation, spl:datastructures, etc?
 
@LeviMorrison Just have the "SPL Improvements" page list the RFCs at the simplest. Yes, just continue with the wiki namespace hierarchy.
 
@salathe Ah. Thanks.
 
There's also an old TODO for the SPL docs, it was just 5 minutes of my thoughts but might have a few ideas.
I wish I had time to sit down and do this myself.
 
9:58 PM
Evening, any of you know a good, online project management tool? Nothing too fancy, but I'd like to store a couple of code snippets I could browse and (pre)view without going through the hassle of downloading files all the time. Added support for screenshots and some comments would also be nice, but not purely necessary.
 
@Chris I'm assuming you need more than Pastebin?
 
@Chris github.com ?
 
@Chris github?
 

« first day (446 days earlier)      last day (4487 days later) »