« first day (881 days earlier)      last day (4058 days later) » 

9:00 AM
Hello Guys, This answer is sounds like comment, can it be flagged for moderator stackoverflow.com/a/15428135/430112
 
I mean you couldn't mix e.g. EBCDIC and Unicode without first converting to one or the other
 
@DaveRandom Mixed character sets are already way non-trivial in this particular case :)
 
Well, exactly. The only reason charset agnostic would matter is if you were storing ready-escaped data in persistent storage, which of course we never do, do we boys and girls?
 
@Jack eeeeeeeeh :(
 
@PeeHaa sup?
 
9:04 AM
'morning!
 
@Raubi No you would rather not do unless have a reason to do so. For almost all situations htmlspecialchars() is sufficient and the correct way ™. — PeeHaa 52 secs ago
 
@PeeHaa thnx :)
 
yw :)
 
@PeeHaa: I need your attention
6 mins ago, by gowri
Hello Guys, This answer is sounds like comment, can it be flagged for moderator http://stackoverflow.com/a/15428135/430112
 
But is that really necessary? encoding defaults to utf8.
The only difference is ENT_QUOTES
 
9:07 AM
... yeah, watch out with that.
Encoding defaults to UTF-8 in PHP > 5.3
 
@Jack Portability man :)
 
I see, fair enough :)
 
@gowri ...you can flag it for a moderator yourself ;-)
 
@gowri but it will likely get declined
 
@Gordon He linked the wrong answer I think, that user has posted two answers to that question
yay multiping
 
9:10 AM
@Gordon: Thank you, I think it's like comment not an answer that's y I asked
 
I have deleted the first answer and edited the second
 
What? What day is it? Got to get down on what?
 
@Jimbo scroll up a bit ;)
 
Transfering to CamelCase preg_replace( '#\s+#', '', ucwords( strtolower( $string ) ) )
:)
 
oh anno 2070 is on sale
 
9:15 AM
@Gordon Ah, there we go ;)
Hey Anno 2070 is awesome
Anno 1602: Creation of a New World (in the United States, Canada and Australia released as 1602 A.D.) is a game with both real time strategy and city building elements, developed by Austria-based Max Design company. The game is set in the Early Modern period of history and is based around colony building and resource management on a series of small islands. It includes aspects of exploration, combat, diplomacy and trade. It is set in the same period as Sid Meier's Colonization, but involves more detailed colony management, with no "Old World" politics. Parts, like expansion and movement...
was a brilliant game
 
Sims?
 
@Jimbo hmm. they offer the game, the game complete pack and the dlc complete pack. buying the game and dlc complete pack is cheaper than buying game complete pack. did I ever mention I hate nonsense like that?
gonna make my mind up. which pack should I take?
 
It's a tough one...
 
the complete game pack seems to have one more dlc. which is stupid because the complete dlc pack ought to have all dlcs, right?
 
Well tbh I haven't bothered with the DLC, and it's still a good game with a lot of depth. Take the cheapest one imo, you can always get the extra dlc later if you want it (you probably won't)
 
9:22 AM
hello,want to add content encode in RSS Parser Library code. how can i do.
plz
 
@Jimbo Deep Ocean is missing
 
Oh, that's a big one
Get the one with Deep Ocean, lol
But you'll be more than satisfied with the stock game for a long time anyway
 
@Jimbo bought
 
@PeeHaa I'm thinking we should reverse the order of the Avatar Notification stack (i.e. turn in into a queue) in the plugin. Particularly in the closing room where most posts are vote requests, it would be better to start at the top and work downwards IMO. Or maybe make it configurable?
 
Hey guys, some opinions please; observe this small class; the problem with this class is that after running the default constructor, running any method except loadFromXML() will result in a failure.
 
9:30 AM
@Jack The default constructor as in "no constructor"?
 
So I would say, create empty private constructor and add static method createFromXML()
@DaveRandom Well, yeah :) no constructor
 
@Jack You can't declare a constructor private, can you? Just declare a regular constructor which throws an exception
 
@DaveRandom I'm pretty sure you can declare it private.
 
You can declare it private
People did it for their evil singletons
 
In fact, just make a factory and don't instantiate it directly
 
9:33 AM
@DaveRandom As in, write another class to create an instance of this one?
 
I would hope at the very least declaring any visibility on a constructor other than public triggers an E_STRICT, but then again it is PHP so who knows
@Jack yes
 
hi everyone
can anyone tell me how to shoot sms via php??? just like mail
 
@Jack so the XML is apparently a required dependency. move it to the ctor. lazy load when getting the status
 
@Gordon Yeah I thought of that too.
 
@ManishGoyal You need an SMS API, there are many providers for this, usually you'll want to use one based in the country where most of your recipients live.
 
9:35 AM
Ah f0rk it, I'll just add it in the ctor!
:)
 
@Jack I dont see you using the constants anywhere.
 
@Gordon Ah, it's for external use :)
The class itself doesn't use them.
Unless I add methods like isCompleted().
 
any best tutorial for that??
 
@ManishGoyal clickatell baby!
 
and sandbox testing just like paypal sanbox testing for developers
 
9:37 AM
@Jack eih. the constants dont belong there then
 
@Gordon How so?
 
@Jack an object should have high cohesion to its data
that is, your methods should somehow use the data encapsuled
 
@Jack i have searched a lot of sites but nothing found sufficient
 
if they dont, its a sign that the data or the methods are misplaced
 
9:39 AM
@ManishGoyal Your chosen provider will supply API docs. I've found these guys to be quite good, they are based in the UK though so depending on where your recipients live they may not be the cheapest option for you
 
@Gordon So ehm, if ($jobStatus->getStatus() == $jobStatus::STATUS_COMPLETED) is a no-no? :)
 
also when you allow constants to be used publicly, they are public api, meaning you cannot easily change them between version
 
I started writing an OO PHP library for their gateway but I never really got very far with it, only wrote the stuff I needed and didn't have time for the rest
 
and when you use the constants via the class name you are creating hard coupling
 
i can purchage sms gateway. but i want php code for my page
 
9:40 AM
@Jack the question is: do you need to query the object for it's status or can you just tell the object what to do instead and let it figure if it can by itself
 
after that i'll purchase sms gateway
 
@Gordon Well, I would add isCompleted() method on it actually :) so then it would be used. I was just wondering...
 
@Gordon Yeh but the whole point of constants is that you use a name, and don't rely on it having a specific value, so that's not really relevant.
 
@DaveRandom of course its relevant: more coupling => harder to maintain, less reuse
my guideline is dont use constants in public API
 
@Gordon Not disagreeing with that, but the cannot easily change them between version argument is invalid
 
9:42 AM
bbiab
 
Also I don't have a problem with interface constants, because the consumer is already typehinting for (and therefore coupled to) the interface
@Gordon I'm still not seeing it tbh
 
@DaveRandom its still public api. youll have to treat is as such. even when in an interface, changing the value of the constant would break the contract.
 
@DaveRandom u there?? please help me
 
I shall pick this up in a bit if you don't mind, I may be missing something about this
@ManishGoyal You need to pick a service and look at their documentation. I can't give you code for your page, I don't know what you are doing and I don't know the API you are using. You need to read some documentation. Most suppliers will give code samples in their docs.
 
@DaveRandom thanks
 
9:49 AM
posted on March 15, 2013 by Liip

In January, Lukas wrote a collection of things left to do. Later I wrote a tentative release schedule that turned out to be too optimistic. I just updated that document with new dates. Sorry about this. There are two actually quite cool reasons for the delays. One is that we had two projects at Liip where we had to integrate the CMF into existing projects. It was fun, but we found quite a lo

 
@DaveRandom @Gordon In the meantime, to give a little background to this particular class; it's populated with a server response gathered from inside my service client code. To me, the client code is equally happy with getting the status and comparing it against the class constants as using a "managed" function such as isStatusCompleted() ...
 
I don't like that particular use of constants tbh, I try to only use them for bitmasks, in general status tickers I don't like using constants for, although I do still end up doing it sometimes
in JavaScript, 2 hours ago, by SO ChatBot
Ruby is for smelly hipsters
 
In my case, there's exactly five of those constants, based on the service I'm talking to.
 
That's exactly it actually, when consuming a service that uses a status ticker they usually do make sense
 
I could make them private of course ;-)
Which would definitely improve the encapsulation
Otherwise you would have to find all the places where your constant may have been used in a switch statement :)
I can see Gordon's point there I guess ... once your constant is out and other code is using it, it would be harder to change behaviour later.
Ah hmm ... how to make constants private .. didn't think about that did I ... doh!
 
10:00 AM
Well you can't, but you can just not document them. Or make the public API a factory and have inject an undocumented enum class
 
@Jack What about a class with static vars? :)
 
hey every one.....
 
That somehow feels suboptimal ... yeah, private static would work of course.
Blegh ... I wonder if there's any technical issue with allowing private const
 
i facing one mysql query problem...
 
hi everyone
 
10:02 AM
Just don't like the $ in front of something that's obviously a constant.
 
i want help in my magento
0
Q: How to add TEXT in checkout page Magento

Atif Azadi want to add TEXT into Magento checkout page through admin panel ...... i have already done it in cart.phtml file but i want to add itfrom admin panel so my customer can change it easily in future.

hope someone can help me
 
$count1 = mysql_query("SELECT COUNT( * )FROM `issue_details` WHERE `lib_card_num`='$card_num' && `stu_name`='$name'");
if($count1>=3)
			{
echo "<img src='images/delete.jpg' border='0' alt='edit'><font color=red> Account Holder Contains ".$count1." Books. Please Verify</font>";
			}
Account Holder Contains Resource id #7 Books. Please Verify
 
@AnkurSaxena count1() will be a resource, not a number, and it will always evaluate to >= 3 when cast to an integer. You need to use mysql_fetch_array($count1) to retrieve the row first
Also Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
what i want is:-Account Holder Contains 7 Books. Please Verify
 
10:04 AM
@Jack you cant make them private unfortunately. you could either use private static vars or private constant methods, e.g. methods returning that value
 
@daverandom:-how can i use that query....
 
2 mins ago, by DaveRandom
@AnkurSaxena count1() will be a resource, not a number, and it will always evaluate to >= 3 when cast to an integer. You need to use mysql_fetch_array($count1) to retrieve the row first
 
$rows=mysql_fetch_array($count1);
echo "<img src='images/delete.jpg' border='0' alt='edit'><font color=red> Account Holder Contains ".$count1." Books. Please Verify</font>";
}
 
@Gordon You think it's technically possible to have that feature though?
 
if i use $rows=mysql_fetch_array($count1); then it will give array....
 
10:07 AM
@Jack totally
 
@Gordon Hello there, I have a problem with someone there can you have a look please? stackoverflow.com/questions/15428792/…
 
@AnkurSaxena Yes. And you need to use the value from the array in your if statement.
 
@Ihsan I agree that this is not an answer. It's more like a comment. Try to give an example and link to the appropriate pages in the mysql manual. It certainly feels very lazy and we are generally looking for more quality stuff.
 
but i think values comes from database in form of tables...
 
Ok then
 
10:09 AM
i need totol count :
 
@Gordon Ok then
 
@Ihsan I can turn that into a comment if you dont want to improve it.
 
like when i use query using gui in wamp server it will give 7
 
@AnkurSaxena use if($rows[0]==7)
 
i am trying this....
 
10:13 AM
@Gordon I am downvoted and downmotivated. This is stupid. Anyway I will not help anyone at SO for today anymore because I have negative feelings now. (my terahertz clock is out of sync)
 
@seevali:-thank you sir i got it...
 
@Gordon I feel like a 45 yrs old kid bitchin... :D
 
how it work ......
 
@Ihsan I had to turn one of your other answers into a comment, too. Just try to put more effort into them and no one will complain
 
10:14 AM
Thank you which one?
latitude?
 
hi frnds nice to meet you all
 
@Gordon Thanks a lot you are a lifesaver.
 
@Ihsan stackoverflow.com/a/15428743/208809 because it didnt address the question as such
 
I am having a problem with facebook comments
 
@Gordon Thank you.
 
10:17 AM
2
Q: facebook comments plugin- unable to work on web server

Debendra SamalWhen I am using facebook comments plugin it is working on localhost but not working when I uploaded my files to web server. <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createEl...

 
@Ihsan no problem
@MarkBaker will you change your avatar once you are naked?
 
I have to go see you later, I wish you all have a nice day
 
Blogged: The Open-Closed Principle, in review - http://bit.ly/WjaUkM /cc @unclebobmartin @coridrew @tedneward
 
@Ihsan you, too. bye
@markus thanks
 
A pitty for ircmaxells SOLID talk, which will now be SPLID :P
don't be stupid, grasp SPLID :s
 
10:19 AM
@markus well, he's not even addressing grasp in it, so it should be dont be stupid, be slid ;)
 
:)
 
Ohaio, mina-san
 
so, ok guys... whenever anyone tells you open-close principle... say: protected variation and if they don't buy it, say: skeet
 
@markus protected variation is one of the GRASP principles actually
but since no one wants me to talk about GRASP at conferences, only I know :)
 
Is there any good read for Model2 MVC in context of PHP?
 
10:23 AM
:D I didn't know that... so GRASP SOLID would have had some redundancy anyways
 
@markus absolutely. there is much overlap in these two
 
so ircmaxell might wanna shift towards grasp, even though it's less sexy than solid
 
@an1zhegorodov implementation details on MVC are overrated imo. understand MVC as the separation of UI interaction into three distinct roles and then implement as it makes sense instead of following an implementation. its a pattern after all.
@markus no. both have their values. and grasp is more like heuristics anyway
 
ok
 
Larman's "Applying UML and Patterns" is the definite book on GRASP if you want to dig into it
 
10:26 AM
thanks, yes, why not!
 
is there anybody solve my probm. stackoverflow.com/questions/15429537
 
@Gordon Yeh so sorry to keep picking at this but I just want to make sure I'm not missing something: do you feel the same way about interface constants? I can see (and agree with) the argument regarding class constants, but it seems to me that interface constants are fine because they don't imply more coupling that would already come from typehinting the interface.
 
@Gordon plz help me i m in troble
 
@DebendraSamal what kind of trouble?
 
@DebendraSamal please help me, I'm in trouble
 
10:30 AM
facebook comment is not working
 
@DebendraSamal ah ok. I cant help with that. sorry
 
ok
is there any body ready to help my issue??
 
@DaveRandom No, I agree with you on that. Interface constants are the lesser evil. Actually, that's why I asked stackoverflow.com/questions/5350672/… back then. But it doesnt change that it is public API (different problem than coupling or related)
 
pls help when i install new own created extension in magento getting CONNECT ERROR: Permission denied to write to var/package/tmp/ and this is our path where magento store\D:\wamp\www\pos\magento\var
 
pastebin.com/mAirRFsB can some1 pls help me.. why the file is not getting passed ..line no 26 & 34.. i've commented whole code n tried to submit only file but still not working
 
10:32 AM
can someone translate this for me ?!
@tereško Why should certain Service know about the DataMapperFactory and DomainObjectFactory? Why not to build dependencies in ServiceFactory via DataMapper/DomainObject Factoryand pass them to the constructor of Service? Why should Controller and View know about your ServiceFactory instead of their direct dependencies? — an1zhegorodov 3 hours ago
i am not sure if he is on drugs or just bad at reading
 
@pls help
 
@yashvirsinghprince did you try to google the error message? if not, do so and try to understand what "permission denied" could mean
 
@Gordon Different problem how?
 
I have Tried lot but not getting solution .I also searched on google for this
@gorden pls help
 
@DaveRandom like you said: the coupling is there anyway once I typehint, so whether I use one constant or two or three doesnt matter for the fact that it is coupled to that interface or type. but the amount does indeed matter when it comes to being able to change aspects of the coupled class. because everything that is public will potentially break the callee when changed. its part of the contract.
 
10:35 AM
hm... what's with the 'plz help' influx from the subcontinent to the east of europe... is that normal?
 
@yashvirsinghprince It's pretty clear cut. The user PHP is running as doesn't have permission to write that directory. You need to give that user permissions for that directory or run PHP as a different user. Those are the two options
 
@yashvirsinghprince no offense, but "Permission Denied" is a very very clear error message. If you do not know how to fix that, I strongly encourage you to do a beginner's tutorial on User and File Permission in Linux. It's essential that you understand this if you want to work with a file system
 
@Gorden i Have changed folder permission also.but not solution
 
@yashvirsinghprince consider calling your system admin if you cannot fix it yourself then
 
CONNECT ERROR: Permission denied to write to var/package/tmp/ \D:\wamp\www\pos\magento\var this is my error msg.
 
10:38 AM
yes. you already said that. but it wont go magically away if you repeat it here
 
@Gordon ...but you are using names, not values (if you are relying on the name having a specific value you are using constants wrong, you might as well just use the value). So as long as those names always have the same semantic meaning, it doesn't matter what the value is - just like the public methods, it doesn't matter how they are implemented underneath, as long as they always do the same thing.
So I'm just not seeing the problem, you would never remove a constant, unless you designed the interface wrong, in which case you probably have more problems than just some duff constant references.
 
@DaveRandom if ($something === Foo::BAR) is pretty much checking the value of Foo::BAR. You cannot change BAR in that case. Just like you cannot remove BAR anymore now because the callee is using it.
 
@Gordon I'm starting to get your point ;-)
Also, I realized that the constants could lead to "tell-dont-ask" violations more easily.
 
@DaveRandom its basically the as having public function getBar()
@Jack yes. absolutely. that's what I was aiming at earlier on
 
@Gordon Yes, but I would never do that unless $something had been obtained as a derivative of Foo. Although tbh I would pretty never do that in a consumer implementation anyway, I only use them as flags for bitmasks. Although what @Jack was talking about earlier (a status ticker) would be liable to have things like that in the consumer, and that is why I do agree with you that it's probably not the best idea.
 
10:50 AM
Slightly-on-topic as I've been following your convo... where do you place your interfaces in your heirachy, relative to their concrete implementations?
 
gentlemen, i gtg; but i'll scroll back when i get home =D enjoy your Friday!
 
Its like $something = $myFoo->getStatus(); if ($something == Foo::STATUS_BAR) <-- that's fine, because if the value of STATUS_BAR changes, the return value of getStatus() would also change to reflect that. But if ($_POST['something'] == Foo::STATUS_BAR) is not fine because then something external is relying on that specific value.
 
@Jimbo where you can find them ;)
@Jack byebye
 
@Gordon So, an interfaces folder then :)
 
@Jimbo I wouldnt do that. If you like that, go with it. I dont believe in having such separation
 
10:55 AM
@Jimbo Good bloody question. Mine always tend to end up in the same branch as their implementations, which doesn't feel right.
 
@DaveRandom @Gordon I don't want to place them right next to their concrete class file, it'd just be... ugly?
But an interfaces folder is too separate, like Gordon says
 
/app
+ Logger     // Folder
  - Db       // Class
  - File     // Class
- Logger     // interface
 
Yeh I've done that sort of thing before as well, but it still felt a bit wrong somehow. I can't quite put my finger on why though.
 
#fail
 
10:57 AM
@DaveRandom I think it's fine. Whether something is an Interface, Abstract Class or Concrete Class shouldnt matter imo
 
@Gordon Okay, so you separate all your classes into sub-folders, and in the base dir of class folders you place your interfaces
What about some sort of factory, or autoloader, or something that grabs the right interface and places it with the right class? Is that possible?
Still, it doesn't help... my mind is melting
I don't want to have to put all of my classes in their own individual folder, especially if there's only one class file per folder
 
@Jimbo No. Subfolders could contain interfaces, too.
 
why not:
/app
+ Logger     // Folder
  - Db       // Class
  - File     // Class
  - LoggerInterface     // interface
i don't like to trash the app root
 
@andho that would be an option, too. If you follow PSR though, you'll end up with namespace foo\bar\Logger\Logger though and I think that sucks
 
I always feel a little wrong having a MyApp\Foo\FooBar though, it feels superfluous in terms of naming
 
11:05 AM
like in Zend, there is a Validate folder and Validate.php, and about 100's like this. So if i wanted to checkout source of Validate i need to find the Validate folder and Validate.php file
 
@andho its not trashing. its making it screaming architecture ;)
 
public function setFoo(Foo\Foo $foo) <-- does that look nice?
 
@DaveRandom no
 
Still clueless, what influences nickname presence in closed question area closed by. i.e. placed cv and flaged, but nick still wasn't listed in closed by section
 
but logger specific things should be contained in it's own structure
only if Interface.php was possible :P and Abstract.php
@Gordon man, he never gave that example
 
11:07 AM
@andho you are free to do it that way. I doubt there is one right way to approach this, hence my suggestion to put things where you find them
 
it's a problem when the other guy I work with can find everything in 1 file 0_o
^ ^ that is not a joke
 
@andho but he suggested in the ruby midwest talk that its pointless to have a folder structure telling you only which framework is used, so you can derive it from there
 
@Eugene The names that appear there are the five users who voted to close the question. Flagging won't get you there.
 
i worked with a guy like that
 
@Eugene That shouldn't ever happen, could be a bug if you've seen that. Although your name won't be listed if you just flag and don't cv. Also, don't cv and flag, just cv is enough
The flag queue has enough crap in it as it is
And that's just the ones I get to see
 
11:08 AM
@vascowhite voted as well and there are only two
 
I dread to think what the mod flag queue looks like
 
@Eugene Link or it didn't happen :)
Is the 2nd one a mod?
 
Yes.
 
@Gordon I think this is the only thing that I wholeheartedly disagree with you and Uncle Bob on. But I might see the light with a good example. Oh well.
 
It would be MyApp\Logger\LoggerInterface, that looks okay!
 
11:10 AM
@Eugene A mod's close vote is final
 
I placed a cv
and flaged
but there are only two names present.
I'm just trying to understand the algorithm for such behaviour
 
Gordon must have got in just before you
 
My cv was first 100%
 
@Jimbo yeah this is my composmise
 
@DaveRandom yes, still doesnt invalidate what I said about public api though
@Jimbo why would you name it Interface?
 
11:12 AM
@Eugene You can't know that because of caching, although it may have appeared that way to you. Keep trying, you'll get your name up :)
 
@Gordon So, well, you know it's an interface. lol
 
:|
 
Future developer opens the folder, sees interface, knows to look at that blueprint first before anything else?
 
@Jimbo why wouldnt the developer know that from Logger alone? I mean, does that information give you any particular benefit? IMO, naming things AbstractFoo or FooInterface shifts attention away from the Problem Domain to the technical domain.
 
@Jimbo In retrospect of this conversation I would probably go interface MyApp\Loggable and class MyApp\Loggers\FileLogger/MyApp\Loggers\DatabaseLogger
 
11:13 AM
@DaveRandom it wouldn't because $_POST['something'] has values derived from Foo::STATUS_BAR and such
 
@DaveRandom So not MyApp\Loggers\Loggable?
 
@andho what wouldn't what?
 
@DaveRandom i like Loggable, but able is not always possible no?
 
@Jimbo No, because the Loggable is not a logger.
 
Ahh okay, fair point
 
11:14 AM
@DaveRandom sorry need context.. it wouldn't (something external would not rely on it)... not necessarily
 
I'm doing an SSHConnection... implements connectionable doesn't work ;)
 
Actually yeh, Loggable isn't quite right (I blame @PeeHaa) because it implies something that can be logged, not something that does logging
 
Sure blame the dutch guy
 
@Gordon I see what you're saying. It's only a tiny naming change though..
 
@DaveRandom oh yeah, that's true, very misleading
 
11:16 AM
@andho Yeh I know what you mean, chances are the value of the post var would have been derived from Foo at some earlier stage in the application, it's more about generated/processed values.
 
i think then i'll go with CanLog
 
or even CanHazLog
gtg
 
@andho YES. implements CanHazConnection. I liekz
 
@Jimbo it will make for a more UbiquitousLanguage to omit it
 
11:18 AM
@PeeHaa I have to say though, I like the general concept of *able which is something I really only picked up from Websucket. Semantically it doesn't quite work with the logger interface, but often it would, when it's a thing you can do something specific with, rather than a thing that does something specific
Like exceptions could reasonably implement Throwable (Java alert)
 
@DaveRandom I agree. I only use *able when it makes sense semantically.
 
@Gordon This is coming from a junior developer my friend, so I'm learning both sides here :) But from a junior's perspective, I can just see an easier to find and understand code base... I guess a better alternative would be what I'm looking for
 
@Gordon I agree. but i would prefer if i look at the files and can find the Interface, without thinking about what word to describe an interface
the other option it to use a static analyzer which is not good at all
 
@andho its usually the main noun describing the thing
 
@DaveRandom Correct. It was a fuckup. :-)
 
11:20 AM
@Gordon oh, i think i could get used to that. mind might need a little training maybe
 
@andho like in foo\Logger\Db it's pretty clear that Logger is an interface and Db the concrete class
but yeah. I am repeating myself. Do what works for you. It's all a detail only anyways.
 
@Gordon Oh I seeee... so the interface is in the above folder, and everything sub is the concrete. I actually like!
 
@Gordon I just feel a little wrong having a thing called Logger and a namespace branch called Logger at the same level. But actually there isn't really a problem with this that I can see.
 
You don't need to name it interface, because it's the first thing you find in the heirachy anyway
 
mon-ring
 
11:22 AM
monring @NullPointer :)
 
@Jimbo there might be situations where the subfolders contain interfaces, too
 
@Gordon Yes I get you. I like this. And I definitely want to call these "CanHazThing"
 
Ugh, I really hate M$ for propagating the word "folder" as a synonym for "directory". I do it myself all the time, and I read it back and hate myself.
 
i have one strange thing for me .i have form when echo "<pre>"; print_r($_REQUEST); die("here"); it will give Array
(
[msg] => Wrong Username or Password
) here
 
And what's strange about that?
Looks quite ok to me. ;)
 
11:24 AM
Apart from the fact that you are relaying messages back to the client in data which will then be sent back to the server again
 
62
Q: What's wrong with using $_REQUEST[]?

sprugmanI've seen a number of posts on here saying not to use the $_REQUEST variable. I usually don't, but sometimes it's convenient. What's wrong with it?

 
^^ and that
$_REQUEST should have just contained stuff like the headers that now incorrectly turn up in $_SERVER IMO. And $_ENV and the rest of $_SERVER (like docroot etc) should be merged. And what $_REQUEST does in its current form shouldn't exist at all.
 
@DaveRandom build an abstraction on top :)
 
11:27 AM
okey but new guy to php.i don't understand where this massage comes from if write die at the end of form tag
 
5 cv, where one was mine, how the hell it got 5 people in closed by now?
absolute BS
 
@Gordon Started doing it the other day. I only reached that conclusion the other day when I got in a debate in here about it with someone (might even have been you) but now I've realised that it's really obvious and it seems really dumb to do it the PHP way.
 
@DaveRandom abstracting all the SuperGlobals away will make testing easier anyway because you can use Mocks then
 
Wait, I've just realised what @Eugene's problem is. You don't have enough rep to cast proper close votes (needs 3K) but they changed the UI so that you have a screen that looks like you can cast close votes IIRC.
 
Ou. Okey. At least this is a fair explanation.
 
11:32 AM
@Gordon Oh I've already been doing that for a while, I'm just refactoring the logic in the standard template Request class that I use to put things in a more sensible layout
Also I'm not happy with my current Request class. It has way too much magic in it for my liking. But previously it was way too... errr... wet? It wasn't DRY enough.
 
hi people
if I install windows server 2008 r2, should I create a new partition, is it just like any other operating system?
 
@Gordon care to join me on TL?
 
@grasshopper Fresh install, not a second OS?
 
@grasshopper what's windows server 2008? :P
 
Well, the answer is almost certainly "Yes" anyway
 
If you aren't using RAID you ideally want to use a separate physical disk for the OS
 
@DaveRandom I got win 7 on this machine, so I'll just have to setup a new partition, right?
 
Also really this is a matter for ServerFault/SuperUser
 
Good morning
 
11:46 AM
@grasshopper Are you sure you don't want a VM? Running a server OS and a workstation OS side by side isn't usually a good idea/what you want.
 
@DaveRandom ok thanks, ill check out my options
 
Actually I'm not sure what the scope for running 2K8 architecture under a Win7 VM is without paying for full-blown VMWare stuff.
 
@MadaraUchiha i dont think there is anything we can do to convince casper
 
11:53 AM
@Gordon I don't think that blindly deleting them is a solution though
 
@MadaraUchiha I am with you on that but what should we do? He has his opinion. And I doubt we will get an official policy for that
 
@Gordon I don't think it's right for a single mod to act independently without having some sort of discussion about it
Either with other mods, or at open on meta
 
@MadaraUchiha that's true but isnt there a question on Meta already?
I can add my two cents if you like
 

« first day (881 days earlier)      last day (4058 days later) »