« first day (1037 days earlier)      last day (3911 days later) » 

10:17 PM
It's going to be a struggle referring to nginx as engine-x instead of n-jinx. That's one thing I suck it with all these. Reading a word before hearing it pronounced.

Cache = Kay.shh
Align = Alid.Gin
 
I messed it up sooo good that now it doesn't even show the "homepage" of nginx
 
Hi folks I'm trying to do a dummy sql injection test. I'm sending a parameter in a POST request that is evaluated like "if ($param <= 10)". Someone knows some trick to pass this validation even if the parameter is greater than 10?.
 
@user1403997 that isn't SQLi
 
well yes you are right, but theres some hacky way to do this. Maybe with eval or some function in Php?
 
......
How long have you been doing php ? Or programming in general ?
 
10:23 PM
@user1403997 Where is the sql?
 
Well I'm a java programmer and I'm doing some testings in a php system, but I know very little of php, just the basics (php5)
If theres no way to achive this, It's okey I will test something else
 
Gordon has stopped a feed from being posted into this room
 
Well one way is: $param = 'eleven';
 
Basically $param is a variable. Either a string, or an int or a boolean or null etc...
There is no way it get's executed even if
$param = "eval";
 
Gordon has made a change to the feeds posted into this room
 
10:28 PM
@user1403997 Check this video about how sqli is possible and how to prevent them youtube.com/watch?v=nLinqtCfhKY
 
Okay I will check it. Thanks!
 
Is it just me, or is UTF-16 needlessly complex?
 
can anybody give me a link to a nice PHP related question to answer?
 
2
Q: Can the for loop be eliminated from this piece of PHP code?

Ben HaroldI have a range of whole numbers that might or might not have some numbers missing. Is it possible to find the smallest missing number without using a loop structure? If there are no missing numbers, the function should return the maximum value of the range plus one. This is how I solved it using...

I've set a bounty if you're interested
 
^ wow, that is an amazing answer!
 
10:32 PM
@HamZa Thx!
 
@DaveChen hmmm ?
@hek2mgl you're welcome
HamZa just defenestrated himself
 
@HamZa Of course one could craft a recursive function for that - without need to loop in PHP - but what's the benefit of that?
 
Reason nginx
well to be honest I don't think that the question is valid in a real world situation
but as you can see, "tylerl" approach is quite nice
 
@HamZa The algo solution still loops (array_sum()) and the regex solution does two complete iterations of the array (implode()/array_map()) as well as some interesting complexity in the str_repeat()
 
@DaveRandom I know ^^'
I mean you somehow need to loop through some of the values ?
 
10:41 PM
Yeh you cannot do it without being prepared to visit multiple elements in the array, and for an arbitrarily large input that means there's a loop in there somewhere.
tbh that question has all over it
 
@DaveRandom hahhaha
Yeah well, he did show what he tried ?
 
If it is homework, he most likely showed what the original question had tried. In principle I don't mind homework questions but the problem with them is that people give out free answers instead of hints
Go home @Feeds, you're drunk
@Gordon your dates are broken in your feed, apparently
 
looks like @Gordon just travelled back in time
2
 
I'm going to bin some of those as well because @Feeds is doing the usual spam thing it does when you add a new feed
 
5 messages deleted
 
10:46 PM
Or that
 
Stupid feeds
 
Now that's happened it'll be fine
 
@DaveRandom I see ...
 
@DaveRandom Hmm, I'm not keen on figuring out why that doesn't work. I'll have to look into Jekyll I guess.
 
of course closing this crap caused a revenge vote , but not by the OP .. jeez
 
10:51 PM
@Gordon Needs a <published> element I think
Also the articles should have an <author> element, I think @Feeds can do odd things without it IIRC
Ask @cspray, he had a similar problem with his when it was first added
 
well .. i had to ask
 
I love it when I see $obj = &new \Thing;, redundant PHP4 byref assignment and 5.3+ only features all in one line
 
@igorw Our discussion yesterday was interesting. Had a look at some of your blog posts after that. (and related Wikipedia pages).. do you have a github account? would like to see some code ...
 
@hek2mgl sure: github.com/igorw
 
10:59 PM
@igorw Beat me! :)
 
@HamZa also, i suspect that the reason for that revenge vote has less to do with closing of the question (and thus preventing him from spreading the holy light of codeigniter) and more to do with me making fun of said love of his life after the closing and adding insult to injury
@DaveRandom it's actually actively harmful in 5.0+
 
@igorw You have done that laravel framework?
 
@hek2mgl nope. just recently started trying to fix some of their design issues to make it properly work with stack.
it's just a fork of the laravel repo.
 
Ok I see, it's a fork... sometimes hard to recognize on github....
@igorw I've thought a lot about what you were saying yesterday.Still think that "composition over inheritance" is in - said in that way - wrong. But I'm currently implementing such patterns as you suggested on your blog as well..
 
11:19 PM
i personally think that laravel 4 is a big mess of static function and sf2 components , as if it cannot figure out if it wants to be codeigniter of symfony
 
@tereško Was it ever useful? I mean I get that/why you had to pass objects by ref in ZE1 and you don't in ZE2 but why would it matter for the new operator whether you get a copy or a ref? If you get a copy (which makes no sense anyway) then the original is still not going to affect anything anyway, at the point of creation you get an object - it doesn't really matter whether it's a copy of the created thing or the created thing because you didn't previously have one to separate from.
 
@tereško I think it wants to be silex, but it wants to look like CodeIgniter.
 
^ that could be it
 
@igorw It must be: "inheritance and composition together ... " make a - nowadays - good design
 
@tereško at least it's not as crap as CI :P
 
11:22 PM
// @hek2mgl

class User extends Abstract_Model{}
class Abstract_Model extends Zend_DB_Table{}
^ I personally find it offensive
 
So all users are models? Obviously it's only supposed to be used by attractive people.
 
haha
 
@Ocramius I don't think they would be willing to put it as a selling point in the first page. It would either scare away the CI users, or be seen as "well .. that's setting a bar bit low, don't ya think, mate" by others
 
@tereško Yes, that's pain. I would create an interface ActiveRecord and make classes in model folder inherite BaseActiveRecord or implement that interface.
 
Well, I currently suggest laravel to users that say that symfony2 and zf2 look like java
I also don't see a benefit in those people joining our community, it's just tiresome to discuss with them
 
11:26 PM
@tereško (I guess you'll beat me beacuse of this)
 
@hek2mgl have you ever used a language that does not have classical inheritance? or classes at all, for that matter? JavaScript for example, although it hides it pretty well. Io would be another. and I believe self is also based on prototypal inheritance.
OOP is not about classes. it's not even about types. first and foremost it's about objects.
 
@hek2mgl that would be a wasted effort. You will either recognize your mistake in your time, or you were not worth bothering with in the first place
 
@igorw I were an ActionScript coder (You may laugh, I still think ActionScript3 is a nice language, this is how JavaScript should look like)
 
AS3 isn't that bad if it wasn't that the compiler is utter crap
 
javascript looks as it should .. well .. maybe it could add tail recursions, but that's planned in ES.next already
most of JS is just fine
 
11:29 PM
@hek2mgl AS looks like an unholy union of JS (ES) and Java.
 
@igorw Have you ever tried it?
 
@igorw it is :D
 
not really. I had to fix some bug in someone elses AS code once, and I looked at the language a bit. but no, I don't really have the experience to judge it. :)
 
actually, I think they don't have an idea of what they're doing :)
 
the feeds didnt pick up my newest post, or did it?
 
11:32 PM
it accused you of being immortal and/or jesus
but no , there weren't any indications of latest post
 
Blogged my opinion about How to become a professional developer at http://blog.gordon-oheim.biz/2013-08-19-How-to-become-a-professional-developer/
 
when I looked at it a while back, I thought it was great. a version of JS that doesn't suck, with typing, "real" classes, packages/namespaces, etc. now I'm not so sure anymore.
does AS support lambdas?
 
@igorw No problem, I really don't like the company's background and .... . But believe me, AS3 is good!.. it was the last thing made by macromedia. Its future-js ;)
 
and with that said, I'll head to bed
 
@Gordon I would also add "surround yourself with people smarter then you" as 7th
 
11:34 PM
@tereško that's a good one. It's implied in Socialize. My assumption is you'll find smarter people eventually when you do
 
@Gordon just socializing is not enough
sometimes the pond is too shallow
 
@igorw Do you know when they're going to start tagging Satis? Not that composer has many tags, but Satis has none - packagist.org/packages/composer/satis
 
the finding smarter people advice is also in apprenticeship patterns as well
 
@Gordon typo at the end "if you* just got started"
 
yeah, I remember those
 
11:37 PM
@Danack open an issue <_<
 
@igorw thanks. fixed. actually. vim autocomplete made that typo. its not in the email
 
anyway, I have seen too much the failing of "socialize" bit in LV community: yes, there are some events, and there is chat and forums , but they keep on doing in circles .. hell .. large part of LV's php community does not even speak english
 
@Gordon unless of course your email was to greg young, in which case it would have been no typo, but quite peculiar indeed.
 
@Ocramius Ok - I will do, but seeing as neither composer nor satis have tags, was wondering if there was some politics behind not having any tags, rather than just people forgetting.
 
@igorw it wasnt :)
 
11:38 PM
@Danack composer is not yet one-oh-oh
;)
 
@Danack I don't know. open a ticket. :)
 
it has tags, but they're all alphas
 
but generally, there's not much point in tags for satis since composer itself is very unstable, as @Ocramius points out.
 
@igorw i will do, right after donning fire resistant clothing.
 
OT: steam games for linux are SO MUCH BETTER than on win... darn, switching window doesn't even flicker a bit!
 
11:40 PM
@Gordon I think I'm also going to make a list of recommended reads, nice idea!
 
@Ocramius because your entire environment is already powered by OpenGL
 
@igorw looking forward to it
 
@tereško ya
 
Guys.. Extremely stuck on a question, and my question isn't getting any views. Could someone review? stackoverflow.com/questions/18304579/…
 
@tereško Maybe I can say more tomorrow - after reading this document . Will go to bed (almost sleeping) Thx for the link.
 
11:54 PM
Note to self. Be careful what you purge :(
 

« first day (1037 days earlier)      last day (3911 days later) »