« first day (1093 days earlier)      last day (3871 days later) » 

5:01 PM
@MadaraUchiha I have checked path on browser and it is opening my XML file it means path is correct
 
@MuneemHabib Absolute path in browser != absolute path on the file system
 
@MadaraUchiha then what path should i give?
 
4 mins ago, by Madara Uchiha
Try using realpath() on your relative path, to reveal the real absolute path
 
Someone who wants to hide notices and doesn't want to fix them said: By definition, a notice is not an error, then you can't "fix" Interesting view :)
 
@ComFreek No, it's an idiotic view.
 
5:04 PM
E_NOTICE, see that E?
 
@webarto Thought you were AFK :o
 
Well, I can't even make a partition correctly in Windows, it just does something and I don't know what, so I'm waiting :P
 
@MadaraUchiha i have revealed my full absolute path and it is giving /var/www
now what should i do
 
@MadaraUchiha "Interesting" was meant ironically. But he goes with "It sounds like a college professor with his puritanism" Oh I became a professor :D
 
@MuneemHabib If your relative path is ../whatever/file.xml, use realpath() on that (realpath("../whatever/file.xml"))
@ComFreek link?
 
5:07 PM
@MadaraUchiha stackoverflow.com/a/19346334/603003 last comment
 
@MadaraUchiha it is resolved your help is highly appreciated
thanks for your help
 
How many reputation does one need for delvotes?
 
5:12 PM
@ComFreek 10k for general deleting, 20k for instant deletion (answers score -1, questions -3)
 
Thanks! Still need of 0.52k rep points ;)
 
@Danack you use imagick a lot ?? bugs.php.net/bug.php?id=64784
 
@JoeWatkins No - I've mostly just used GD up till now.
 
hi guys! sunday night and i am here. LOL
 
@JoeWatkins It looks like that manual entry was copied from imagemagick.org/api/statistic.php#GetImageChannelStatistics but then the C code wasn't converted.
 
Hey guys!
 
@Danack how can people vote on the RFCs? do you need to be a core developer first?
 
5:57 PM
@reikyoushin No idea. I'm not a voter or core developer.
 
@Danack let's w8 for the others to read this then. ^_^
 
^ this needs to be killed, someone posted a duplicate :)
 
Well that was farking obvious and not another waste of an hour php.net/manual/en/imagick.construct.php#108764
 
6:38 PM
@NikiC can remove nested classes from the list, withdrawn ...
 
:-/
 
Hey lets talk
@D
 
@hakre Kill it
 
@MadaraUchiha one more to go ... :)
 
@hakre Kill it.
 
6:47 PM
> Warning: Suspected phishing site!
The website at stackoverflow.com contains elements from sites which have been reported as “phishing” sites. Phishing sites trick users into disclosing personal or financial information, often by pretending to represent trusted institutions, such as banks.
Phishing http://stackoverflow.com/questions/19346208/php-mac-warning-php-startup-unable-to-load-dynamic-library
LOL
 
@hakre I also got that whats the problem
?
 
Time for walking dead ;) Bye
 
@Beraki I assume that the link was the problem. I removed it now. Try again.
 
Give me the new link because this one is still the same
@hakre
 
Howzit all
 
6:51 PM
@Beraki click the "I know what I'm doing" option (for me it was a checkbox and then a proceed anyway button)
@Beraki and you don't have any rights to vote anyway, so not enough rep, so you can spare it as well.
 
@hakre I got it too :o
 
@hakre Its because of all the error crap in the message
 
@Beraki assumptions. going wild.
 
@h
 
:)
 
6:53 PM
@hakre yap too wild I am googling it !
@hakre lets talk you a coder I assume ! What are you working on ?
 
@Beraki no, all we need is someone who votes to delete now as well :)
@Beraki I'm drinking alcohol right now.
I also think I should close the browser and cook something in the kitchen :)
Ouzo (, ) is an anise-flavored aperitif that is widely consumed in Greece and Cyprus. History Ouzo has its roots in tsipouro, which is said to have been the pet project of a group of 14th century monks living in a monastery on Mount Athos. One version of it was flavoured with anise. This version eventually came to be called ouzo. Modern ouzo distillation largely took off in the beginning of the 19th century following Greek independence, with production centered on the island of Lesbos, which claims to be the originator of the drink and remains a major producer. When absinthe fell into ...
 
@hakre Caffeine my side ?
You from Greek
@Y05H1M1T5V welcome need some help ?
 
My first friends mother was from Greek.
 
@hakre I get you now
 
@JoeWatkins why?
 
6:58 PM
hello
I have one question please
 
not worth the effort I don't think, I think it would be better to have visibility modifiers at the namespace ...
 
@JoeWatkins btw, you also have to update the status in the rfc itself (no just move to another section)
@JoeWatkins ah, so you just think that there's a better solution to the problem?
well, I'd agree there
 
I want to compare two images with php and get a result as a percentage
is it possible
 
Does PHP have extension methods?
 
7:00 PM
@NikiC yeah, it's just too against the grain ... I think namespacing can be improved to achieve the same thing as nesting ...
 
@NikiC Were they never implemented or just not wanted?
 
I say improved, it's barely implemented ...
 
if extension methods means monkeypatching methods into classes from unrelated files
 
can you read my question
 
@NikiC extension methods means monkeypatching methods into classes in a scoped manner. We're having a discussion about it in the JS world right now and I wanted to know what other language folk think.
 
7:02 PM
@begiPass sort of, yes: Imagick::compareImages
 
@begiPass The question is very vague. Do you want a percentage of pixels that have an exact patch in all four channels?
 
I don't think there's a good way of doing that ...
 
or some kind of "smart" comparison with some lenience or "human perceived" difference?
@BenjaminGruenbaum I'm not a fan of monkeypatching
 
yes NiKic
 
@BenjaminGruenbaum but we all agree that the word monkeypatching is fun to use ...
 
7:04 PM
Monkeypatching is magic and magic is bad
(Well, not exactly, but that's the basic idea ^^)
 
@NikiC its 4 rfc's
 
@NikiC It's not monkey patching per-say. It's more like syntactic sugar for static methods. It doesn't sound too bad given that the current php global namespace is a mess. Converting stuff like arra_push to array.push and array_map to array.map and so on.
 
what is the dot doing there ?
 
@JoeWatkins Sorry, php, ->
 
@BenjaminGruenbaum ah, that's what you mean
 
7:08 PM
kind of static scalar methods
 
@BenjaminGruenbaum I have an extension for that: github.com/nikic/scalar_objects
 
You have a big procedural code base and a lot of stuff you can't extend. Extension methods let you extend stuff in a scoped way.
 
I plan to add that for PHP 5.7
In PHP 5.6 I'll add some (pseudo-)prerequisites, including named parameters, expression dereferencing and exceptions in the engine
 
@JoeWatkins It's just syntactic sugar, then again that can be said about a lot of oop. I think doing array_map conveys intent a lot less clearly than array->map because mapping is a capability of the array. I think it can make poor man's oop for a lot of the stuff you're stuck with already.
@NikiC Yeah, that's exactly what I meant :) What do you think about it?
 
@BenjaminGruenbaum I think it's good to move to a method-based API, but I don't think that the enduser should be able to add or change methods ;)
 
user652649
7:11 PM
evening
 
I think allowing the user to add methods makes interoperability somewhat difficult
 
@NikiC The nice thing is that extension methods (at least in c#) work in a scoped way (let's say per namespace) so you can create a more OOPy interface without breaking other code.
 
@BenjaminGruenbaum yeah, that might work
 
That's what the discussion in ECMAScript is about right now, I want a way to be able to extend stuff like Array in JavaScript without causing these interoperability issues.
 
I think the main question there is what "per-namespace" will mean
 
7:13 PM
 
@JoeWatkins hm?
 
@NikiC when are you going to put your arg unpacking rfc into voting phase?
 
hakre, I have found this imagick but I don't find how to use it in a php code
 
@NikiC The extension method only exists within a given namespace. Honestly I'm not sure how that works nicely in php
 
7:15 PM
@BenjaminGruenbaum What is a namespace in JS?
Is that some new ES6 thing?
@BenjaminGruenbaum But if it is per-namespace wouldn't that prevent you from using it in some other namespace? Or how would the importing mechanism work?
 
@NikiC There is no namespace and that's not how things work in the ECMAScript world. We present a problem and then discuss it for a while, only then we start considering solutions. JS now has no notion of namespaces but creating a namespace like thing is trivial
 
I think it's something that might work, but hard to reason about without some specific approach
So, let's throw some code in:
extend_type_in_namespace('Array', 'My\Name\Space', 'ClassWithAdditionalArrayMethods');
^-- something like this, conceptually?
 
C# handled it quite nicely, you import a class that has an extension method. Importing that class means you can use these extension methods. No magic, just syntactic sugar making prodecural interfaces look OOP
 
@begiPass I do not have any code as well. Here are some example pictures to play with (and you can also add some code there if you like): stackoverflow.com/questions/7327536/comparing-2-images-in-php
 
@NikiC Conceptually yes, but why the strings everywhere :P?
 
7:18 PM
@BenjaminGruenbaum php ^^ in php everything is a string (or an array :P)
 
@NikiC :(
Huzzah for type safety.
 
@BenjaminGruenbaum Well, not really, but function / class references work that way ;)
 
God knows you need good OOP to overcome language smell :)
 
oh, we do have good oop. a lot better than ruby and python etc
we just have all the old stuff too :D
 
@NikiC What I meant is - you have to really take care of a lot of the stuff yourself. In some languages, it takes a much longer time for the language to mess you up if you don't do SOLID
 
7:24 PM
@BenjaminGruenbaum I like that, somewhat. PHP will not really allow you to patch around issues, you have to solve them.
Or so one might think in theory ^^
In practice that doesn't work quite out :/
I guess PHP is the least dynamic dynamic language when it comes to OO
 
the old stuff are one of the reasons why PHP became dev friendly/popular too, i think. it makes it easier to use.. but will be a ticking timebomb most of the time if you don't use it correctly.. that's the drawback of having so many ways to do even one thing. and usually newbies (i'm guilty too most of the time T-T) do it the easiest way possible..
 
PHP, the haskell of OO languages.
 
Less dynamic than some statically typed languages even ^^
@igorw Is that to be an insult for haskell? ^^
 
that wasn't the intention. :)
 
it could be as powerful or as noob-friendly as you want it to be. ^_^
 
7:29 PM
There are seriously still people who think it's okay to disable notices
Honestly, I didn't even consider this to be possible nowadays
 
@reikyoushin The reason PHP because popular isn't because its ""amazing"" syntax or procedural nature back then. It abstracts the whole HTTP protocol (including stuff like sessions which are not a part of the protocol) from the developer. It was cheap , free and easier than PERL . It also didn't do horrible WebForms stuff.
 
@NikiC thought it was supposed to be disabled on prod, but still you need to LOG them all.. so you would know when something happens
 
@reikyoushin display_errors is disabled, not error_reporting ^^
 
@NikiC disabling error_reporting would disable logs too?
 
Hi,

Does any one know how to get the arguments from a backbone fetch in Slim PHP?

Thanks.
 
7:32 PM
@NikiC two month ago I worked in a company where everyone thought so .. and I suspect that they still do
 
@tereško harsh. eheh XP
 
@tereško way to be an ass to noobs. well done.
I'm outta here
 
@BangoTango Where are you stuck?
 
but still, i thought your way works, it would make people think first before posting. ^_^
 
@reikyoushin How is his question not legitimate?
 
7:34 PM
what is "backbone"?
is he talking about network backbone ?
 
@BenjaminGruenbaum ^-- there ya go..
 
Benjamim, I am trying to do a simple Login form, after setting the username and password I try to fetch the ID. (using BackboneJS)

In Slim Php I cant get the username and password ...
 
@reikyoushin yes
 
Hello, Anyone look towards my issue..
 
@NikiC i would need to remember that one. ;)
 
7:36 PM
yay .. we managed to extract the question
 
@tereško I tend to forget that a lot of PHP programmers still live in the stone age
 
@BangoTango Can you post the network request sent by Backbone? Are you using Backbone.fetch or Backbone.sync? If you could upload a short self contained sample of your code in something like paste.ubuntu that would be nice.
 
I'm calling the webservices and I a'm getthing 403 as http status in the response.
Can anyone help me for this to resolve what changes is required to fix it
 
@NikiC i wanna cry out loud in our office because until now my boss still thinks "since everybody knows CI it would be faster and easier to maintain than learning a new framework" T-T
 
@reikyoushin well .. continues integration is a really good thing. You must be really lucky to work in a company where everyone is familiar with it.
 
7:38 PM
@BenjaminGruenbaum I will
 
@BangoTango In a line, is the problem that you don't know how to get POST data you sent to slim php?
 
@Ben
@BenjaminGruenbaum Probably.
 
@tereško nope.. people come and go, and it doesn't mean they all know CI when they come in.
 
@TGMCians you probably have provided wrong credentials or are trying to access restricted part of system.
 
@BenjaminGruenbaum I tried this:
$request = $app::getInstance()->request();
$user = $app->request()->get('username');
 
7:40 PM
@BangoTango Going through the Slim source code (never used it before) it seems like you can do $app->request() and then get the post parameters. I just googled the syntax and found this SO question . Let me know if that works for you.
 
@reikyoushin anyway, which continuous integration platform are you using ?
@BangoTango try var_dump( $_POST )
 
@BenjaminGruenbaum Well I tried that before.
I will keep searching.
Thanks
 
@tereško I'm just calling the apiary webservices.. URL of this webservices is passbeemedia.apiary.io/UserService.svc/createWalletTicket
 
@BangoTango You should not use GET HTTP requests for logging in. The HTTP protocol which you're working on has several methods or verbs. A GET means I'm telling the server to give me something - like the front page. GET requests are idempotent (meaning they don't have side effects on the server), they're usually cache-able too.
 
@TGMCians call the client support. This problem has nothing to do with PHP.
 
7:42 PM
@BenjaminGruenbaum makes sense.
 
@tereško This is the code <?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://passbeemedia.apiary.io/UserService.svc/createWalletTicket");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\"head\" : {\"version\" : \"\",\"serial\" : \"\",\"skinId\" : \"\",\"storable\" : \"\",\"validUntil\" : {\"value\" : \"\",\"format\" : \"\"}, \"keywords\":[]},\n\"view\" : [{\"id\" : \"\",\"text\" : {\"value\" : \"\"},\"barcode\" : {\"value\" : \"\",\"type\" : \"\",\"caption\" : \
 
Thanks.
 
@tereško that CI sounds a lot more like CodeIgniter than Continuous Integration...
 
lol
 
@tereško you mean SVN or something?
 
7:44 PM
@NikiC why would anyone start using a dead framework now
 
@BangoTango The best place to start learning about the HTTP protocol which your website is probably going to use, is the RFC. It's not that hard to read in practice. You can usually read the first few lines for a method to see if it fits your needs - this is very important to know. The server responds with a status code indicating how a request went.
 
@reikyoushin do you know what "continuous integration" is ?
 
@NikiC yup, i think @tereško is confused.
@tereško nope =)
 
Thanks @BenjaminGruenbaum I will read it.
 
@tereško I can think of a lot of reasons
 
7:45 PM
@tereško Please look at my above code. Please check any issue in that?
 
i guess @tereško is confused..
8 mins ago, by reikyoushin
@NikiC i wanna cry out loud in our office because until now my boss still thinks "since everybody knows CI it would be faster and easier to maintain than learning a new framework" T-T
 
@tereško Though admittedly all the reasons are really just synonyms of "stupidity" :)
 
@BangoTango for example, I can POST my login data to the server asking him to add me to the list of logged in users (POST requests are for adding new things), then the server can respond with a "200 OK" status code - indicating it logged me in. Probably the best known status code is 404 not found (because the number is shown in browsers traditionally). If you want to learn how Slim works with Backbone, I'd suggest starting by looking at what requests Backbone sends to Slim.
 
@tereško that's my question too.. but they are saying it has a lesser learning curve. blah blah
 
@reikyoushin if you meant "CodeIgniter", then link yout boss to ellislab.com/blog/entry/… .. EllisLab have stopped supporting it for more thn 3 month already
 
7:47 PM
@BenjaminGruenbaum Thanks.
 
@BangoTango if I were you I'd avoid Slim and Backbone though, starting to code with a framework is really frustrating if you haven't mastered the underlying code principles of how client/server applications work on the internet. You usually don't need frameworks to get stuff working, and when you do - mastering the basics like the HTTP protocol can really help you :) Anyway, good luck.
 
@tereško i have linked that already.. and he still thinks CI is the best choice because everybody knows it instead of learning a new one
i already said that in an email directed to him saying "CI had it's time, but its dead now"
@tereško guess i need to link him to you for a good spanking, no? :P
 
I would just start looking for a new job
your boss seems both ignorant and arrogant enough to destroy the company in which you work now
 
@tereško that's my plan.. but i still need to start looking for one.
seems nothing will happen if i stay there
 
"I ired you as a specialist, but I do not value your opinion and knowledge on subjects regarding your professions"
.. seems like really awesome attitude
 
7:54 PM
it's because his ego of also being a developer blocks out our opinions
and he thinks he know MVC because he used CI
i know i thought i knew MVC some time ago too.. but i am open to learning new stuff. unlike him. maybe its because he's old already? XP
 
well .. this brings some light to it. He does not care whether "everyone knows CodeIgniter" .. he knows it, and that's what's important here
 
actually I envy young people here who knew about their stuff already..
 
this is why employers should never be responsible for developing code
 
im 25 next week and still it feels i dont know much about true development yet
@tereško they should worry on running the company, and not on how the devt is implemented. they will be passing the job back to the employees anyway
 
@reikyoushin Is CI an effective way to solve problems in your problem domain at your workplace (ignoring it being ugly and so on)?
 
7:59 PM
@BenjaminGruenbaum nope.. actually the old code looks like spaghetti crap. =)
seems my boss didn't even had the chance to encounter SOLID back when he's doing the old platform
when you see the legacy codes, you'd think that WP is way cleaner..
 
@reikyoushin You can write very mediocre and simple code and still build fair things if the problems you're solving are not complicated. This is probably why stuff like CI is popular in the first place.
 
well, our company is an SEO company anyway
i think my boss is good in SEO, no doubt. i respect him for that
 
Why do you work there -_-?
 
but his coding.. gaah
 
@reikyoushin so, you are professionally scumming people
 
8:02 PM
@BenjaminGruenbaum because we do develop sites for some clients who just want a basic site or something
@tereško the codes are used for the internal stuff.. not the ones we sell to others. we dont do CI for just basic sites
 
@reikyoushin @reikyoushin and for those basic sites, does writing code SOLID code matter much? Also, what tereško said about scumming.
 
@reikyoushin Being "Good" in SEO is not hard.
 
define scumming?
@MadaraUchiha i'm not knowledgeable in SEO.. i just know some basic stuff so i dont know. :)
 
There are no secret tricks or something, know your keywords, seed them tastefully, write good, valid, semantic HTML, and try getting links from the outside.
That's about it, there's really not much to it.
 
Where the last thing is the most important one
 
8:05 PM
And the hardest to get, too :)
 
If you have done that right it really doesn't matter whether you puked together your content
@MadaraUchiha true
 
@PeeHaa but content is important now too..
 
lol
 
after the new updates google did
duplicate content will downrank your site now..
so a fk.uped content would hurt you
 
@reikyoushin At what place do you see my site on google when searching for: online hexdump?
 
8:08 PM
Google "online hexdump"
 
im just replying to this part
2 mins ago, by PeeHaa
If you have done that right it really doesn't matter whether you puked together your content
 
@PeeHaa Third
 
@reikyoushin Look at my hex dump tool. No content of worth there
 
@PeeHaa second
 
but the domain name has something to do with it.. it's a big part too
 
8:09 PM
Not sure. I might do an experiment with it to find out
 
so basically, there are different parts that will make you rank. not just the content or markup or anything.. it's not my forte but i know some basic things about it
for example, my domain name can easily be found because my name is unique.. even without content
given that i have no content whatsoever..
 
yep that's pretty specific :P
 
but it can be overrun with a site that has good content about my name..
it's just that no one talks about me yet. (i doubt anybody will anytime soon though)
 
:-)
@reikyoushin Also good content is pretty subjective
Just look how long it took mdn to take over most of w3schools
 
@PeeHaa content should have something to do with your keywords, and fresh content matters more than good content,
plus the bounce rates and everything.
there are a lot of stuff going under google's hood. ;)
yet in the end, it still boils down to the fact that i have to convince my boss not to use CI
 
8:27 PM
hehe
 
darn crap igniter.. >.<
 
8:43 PM
"F*ck stackOverflow , F*ck You , Fu*k Your Fuk**g One Eye, Put My D in Your Hands!.
Give me Ban Please!" That - can be arranged.
 
Everything ok over there? :P
 
heh. Man you have to care a lot to have that kind of reaction.
 
@Danack where'd you saw that?
 
ah there it is :-)
> Fu*k Your Fuk**g One Eye
I don't even understand what that means :P
 
8:47 PM
@PeeHaa i dont speak asterisks.. sorry
 
:D
@DaveRandom does though :-)
 
I don't understand even what Fuk**g is. I don't think I've ever fooked.
 
Fukfog?
 
@OP Could you please clarify something for us. The people in the php room are having a discussion what Fuk**g means. Please help us out here. Also me personally would like to know what that One Eyed person is. Is it a pirate? — PeeHaa 9 secs ago
 
it's a cyclops..
 
8:51 PM
aaaaah ofc
 
MORTALS!? YOU DEFY THE GODS? I SENTENCE YOU TO TRAVEL AMONGST THE STARS!
http://www.youtube.com/watch?v=OZ4c1X5ene8
 
@Danack ok grandpah ;-)
 
The full first episode - youtu.be/lz_U9Np_nZ8?t=12m10s And remember, this was one of the great cartoons of it's time.
 
i'd rather watch cyclops from X-Men than that..
time gap. i guess.
 
9:40 PM
@Danack how long does it take before an idle room closes?
 
@reikyoushin no idea.
 
okay. thanks
there ya go. i created my own room.. hoping i could catch some pokemons see users from my country. :P
 
Does Symfony2 do MVC correctly?
 
as per @tereško
> the framework does not implement MVC, the programmer does..
 
I have just read somewhere that it does not have a model layer
Which sounds very strange
 
9:50 PM
as per @tereško part 2
 
@David core of Symfony 2 is not associated with MVC in any way, but it has a bundle for Rails-like architecture
 
> the PHP frameworks now does not implement true MVC
 
@tereško is that a good thing or bad?
 
hehehe. @tereško woke up. XP
 
@tereško I have never used Rails. I need a good solid PHP framework that obeys SOLID principles and is not a piece of crap
 
9:52 PM
@David good. It means that unless you have a burning urge to us that bundle, you are free to implement any architecture you like
 
> and is not a piece of crap
that's hard. ^_^
 
@David Build your own. Use Silex, integrate Auryn DiC for true SOLID OOP code.
 
@tereško Ok. If you had to choose a PHP framework to work with what would you choose?
 
(but i can't speak about those by myself)
 
@David at this point I would go with Sf2, but only because my own one is still not production-ready
 
9:54 PM
btw @tereško does rails implement MVC? is it easy to implement MVC in rails
 
@reikyoushin it implements same architecture as CakePHP
 
then the answer is no..
 
@Jimbo I have been making my own for a few months now to learn about MVC (it has been painful at times but also rewarding)
@Jimbo I now need Internationalization and localization type features and I do not want to make that stuff from scratch when people have already created tried and tested ones I can use for free
@tereško Ok thanks I have it downloaded and installed now. Time to start learning
 
@David This is why you are of course using composer and able to integrate packages like an "internationalisation provider" easily, right?
 
heh ... I have been lately trying to figure out how to implement multi-language support in a clean way
 
9:58 PM
Not sure it's the best way - but the company I work for has YAML files (yes teresko not my code my companies ;P), one for each language, and these strings populate the application
 
@tereško and how do you plan in implementing it? language files?
 
@tereško Yeah me too but I have given up. Too much time to create it and test it. It seems to be a complex enough problem to solve
People have already solved it so I am going to save myself time and headaches and just use it
 
How is multi-language normally done?
 
@reikyoushin the source of data does not really matter
@Fabien badly
 
if English say this
 

« first day (1093 days earlier)      last day (3871 days later) »