« first day (1696 days earlier)      last day (3478 days later) » 

Anonymous
00:54
ping anyone
02:17
Anonymous
seems legit ^^
it's not :P
it's not an interface
Anonymous
> When inheriting from an abstract class, all methods marked abstract in the parent's class declaration must be defined by the child; additionally, these methods must be defined with the same (or a less restricted) visibility.
Anonymous
have you tried giving x protected and y public? @Worf
you have no interface to respect, it's an abstract method
with protected it works @samaYo but that's not my point
Anonymous
02:25
same rule applies to abstract classes imo
................
Anonymous
☆⊙♧♢♡○°•☆♡♢⊙♡▪☆♢♡⊙
lol
Anonymous
don't you sleep?
not yet
refactoring a go go
can't interrupt
Anonymous
02:28
better get some long and comfy sleep after this.
Anonymous
Here it's 4:27 am :/
same
Anonymous
Hi guy
How are you :) ?
Anonymous
02:35
is that your question?
I don't have any question
just chatting arround...
Ho yeah that's true your the guy who where asking me if all my question was starting with "do someone". Has you can see, that's not the case...
Anonymous
> has you can see
Why are you just so unpleasant ?
Anonymous
can I has cheezburger?
Listen, i'm french speaking, and maybe I don't always have the right english syntax, and i'm really sorry for your poor eyes. But what if you where writing in french ? Does your grammar and syntax will be safe from any errors ?
Anonymous
02:39
don't take it personally. It's called sarcasm.
And you may use it a little bit too much... I would say that in your case it's a habit of intimidating people...
Since there's nobody interesting with who talking, i'll go to sleep, have a good one.
@JonathanLafleur ignore him :P
@Worf but i'm really tired ;D I have to sleep :P lolll
i know the "i have no idea how to write english" feel :(
@samaYo stop pissing off people! especially if people is me! :D
Ho yeah, what's your natal language ?
02:54
italian
Cool :) When i'm done with spanish I would like to learn Italian :)
Actually I can understand maybe 50/70% creole, french, english, 30% spanish, 5-10% italian :( but it's similar to spanish and french so it will be quick I think :P
:D i would really learn at least english... proper one i mean. but if i had the time i would learn korean or chinese
or even indian
@Worf you know, learning "proper" english would not help you get rid of people like @samaYo ... There will always be "grammar nazi" everywhere who will complain about people not talking/spelling the right way... But at least we are trying, and we are talking the time to learn theses languages... What have they done ? Ho yeah... pissing us ...
i don't think he even is a english grammar nazi. i've seen him doing some mistakes occasionally :P he was just trolling
oh, when i'm tired my english gets even worse
From my experience, developper and geeks are the only one to "troll" people about the way they talk when trying to speak english... Everywhere else they are complimenting people who are trying to speak with them in english... It's not just me, it's a lot of "not english speaking" people...
03:02
yeah
developers troll about anything, not just english :D
Internet hide people behind a screen and a keyboard, that got them back to childhood when they where bullying different kids or been bullied... and now they have the power... that's so beautiful ...
well i don't think @samaYo meant to be so unpleasant. he's usually nice :P
It's the second time he talk to me, and it's the second time that he laugh about the way I talk
@samaYo apologize!
@samaYo don't take it personally. It's just that i'm tired of these manner. I'm here to chat, by the same time practicing my english, and my devs skills... Before @DaveRandom helped me I never stayed in the chat room too long because there's always a stupid ¡@£€∞ to make you feel like you are an idiot for asking such a dumb question... And sometime there's people that let you understand that the so little help you can give worth the time you passed with the person who need it.
And that's why I come here, only too see if some people need help, and if they get trolled I just help them understand that ppl trolling are just dumber then what they are trying to make the person asking the question feel.
I don't give help a lot, because i'm not in MVC/POO and any advanced skills that I've saw here... But damn, when I can help someone, I do it. And the rest of the time, I just sit here and read what they are talking about and try to understand at least 30% of what they are talking about, yesterday what about zend compiling and i've retain maybe 5-10%... But now I can use this 5-10% for more research on my end..
Sorry about that guys. I'm becoming unpleasant now ;) lol
03:14
@JonathanLafleur that's another problem. this chat room is very elitist. they can't stand newbie questions. consider this: many of room regulars are php core developers (they are the creators of the language itself) which has a bad reputation because of the terrible code unexperienced/casual users write. so basically every newbie is a potential threat to php's reputation. i believe this happens here :P
Every time they troll a newbie, he goes and continue to read dumb tuts online and write shitty code ! Let them stay there, read what it's talking about here, and let them dig and understand the quality and satisfaction of well written code
and that's nothing. in the html room i get ridiculed constantly for being a php developer
There's a way to help the language with new blood... Those with already bad habit will be really hard to change
Yeah, it's like being french or even Canadian here...
and sometimes is really annoying, but what i can do..
Nothing, but you can chose like me to answer to those people and tell them that it's stupid to act like they where "gods" just because they know something you don't..
03:18
it doesn't even matter, because i get ridiculed even by people that know literally nothing :P it's just a sadic sport
anyway, moving on :P
if you need random help with php i'm usually in the html room. i'm not very skilled either, but i know the basics
I'm not that bad in php, just saying that question are not in my expertise field :P
good morning
morning
@Gordon Maybe. We could do something based on he 3v4l code but we'd need a VM somewhere (or maybe actual hardware) for it to run on.
I'm moving from my old way to code (function, function, function, function) and trying to think with class now, that goes well :) Reusable, class, separation of concern, it goes better then it was ;P
03:29
@JonathanLafleur eheh, you've only scratched the surface
yeah ;)
got to go, need to sleep now :P
gn
Anonymous
Wow, I log off to watch a movie ... and it seems I have been popular during the last 30 minutes.
Anonymous
\○/
04:02
Morning
 
2 hours later…
06:04
morningz
06:44
morning
06:59
Morning
07:11
hii I need to export mysql rows in xml format.. the thing is i already have a model file which does it in .xlsx format and i want to do the same in the same file. I am using MVC opencart for this.. if you wish I might share my model file
Morning
any help??
Do I need to download xdebug if I want to configure xampp with jetbrains?
07:43
Each time I try to add a dependency to composer
I get this error:-
Fatal error: Class 'Phar' not found in D:\xampp\htdocs\America\composer.phar on line 23
Good morning
good morning
08:01
Good morning :)
Happy mondays
/me reaches for things to throw at @salathe
/me throws with @ircmaxell at @salathe.
sam
sam
08:23
Hi all,

I'm having a play around with Periscope's private APIs
but overtime i send a request to the servers, it says "Bad request"
anyone have any ideas?
I know there are a few library's out there for making oauth requests, but how would I go about constructing the URL on my own
for example: here's a url: api.periscope.tv/api/v2/liveBroadcastFeed
and the only parameter that's being sent is a cookie parameter
cookie=V1Z8JDcwMjfjvU9hb01OZWLbIKZo_DNbGqTg0cQMrMErHCg6oUawBw\u003d\u003d
sam
sam
I would think that this url should make sense: api.periscope.tv/api/v2/…\u003d\u003d
but it just gives me a "bad request" response
how can I fix this?
The response is a valid JSON if done correctly. Any thoughts?
My guess would be that you are sending a bad request?
there is a cookie in the uri
it is quite possible that that's the smell
the smell is most probably the unicode chars though
08:29
^
sam
sam
@ziGi
yes
sam
sam
Is there a solution?
most likely there is
sam
sam
Do I need to encode before making a request with say PHP?
Sorry for soundig silly. This is just killing me :-)
08:31
@sam can you give a link to the API docs
sam
sam
No API does unfortunately. I'm just sniffing the network traffic
sam
sam
I can see the requests being made by the app, but not able to replicate them
and good mornen
@ircmaxell *grumbles something about mondays*
^^ better?
sam
sam
08:33
@ziGi No API docs unfortunately. I'm just sniffing the network traffic
@sam yeah, I am a bit busy at work now, so I don't have time to do reverse engineering and guess what is being used
what you could do is use Sniffer and check what is being sent
sam
sam
@ziGi shame. Thanks for trying though :-)
but I guess the cookie should be sent as part of the request not the uri
sam
sam
@ziGi I'm using Charles and can see the full requests including the private keys and all
08:37
@sam I don't think you should share your cookie with the world... ;)
Anyways, there is this Chrome plugin called Postman which allows you to make requests https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en

And add the cookie etc.
sam
sam
Do you think a PHP curl would work?
@ziGi legend. I'm going to try that
@PeeHaa the cookie I'm not too fussed about. It changes every time I sing in. But the private keys I'm wary about putting on the interwebs :-)
@sam yes. or if you prefer something that's nicer to work with: github.com/amphp/artax
sam
sam
Just trying to teach myself a little bit about security
@Patrick Awesome dude. I'll check it out.
@sam Uhhhm yes. My I can probably now log in using your account...
sam
sam
08:39
@PeeHaa hahahahaha. Spam the world using my name ;-)
Is Composer is necessary with php frameworks like Larave?l
Also it is odd that you have the cookie as a querystring param instead of as header
sam
sam
@PeeHaa pretty impressed by Periscope's level of security so far. The APIs are mostly read only.
@PeeHaa I thought it would be a basic JSON call on their end. But No. They just had to make it difficult.
@JavaFan Pretty much. Many frameworks (and libraries) are moving to composer by default because it makes dependency management so much easier.
If the framework doesn't provide an "all-in" source tarball, you could get the frameworks working by downloading each of the dependencies manually and putting them where it expects to find them, setting up the autoloading, etc. But it's a lot of work when you can just have Composer do it all for you.
Morning
08:44
@AllenJB I work with phpstorm and I have two days to add a dependecy to composer but I failed I just download composer are there other steps?
2 days to add a dependency?
@Fabor Monring sir
that's some damn fine estimation...
yes It 's very difficult for me to work with php frameworks
@JavaFan I'd suggest learning to use Composer directly though the command-line. PHPStorms Composer support is sadly still a bit lacking.
08:47
okay
@FlorianMargaine two days spent
@JavaFan On Windows I believe I installed a WAMP package (to get PHP on Windows), installed Composer, point PHPStorm to Composer in settings. Then for each project you have to first run "Init Composer" to generate an initial composer.json, then you can "Add Dependency".
Hire a consultant, I guess
@AllenJB Might be my mistake is not installing composer, However I will try again, you suggest to use command line even in windows?
any help for this -> I need to export mysql rows in xml format.. the thing is i already have a model file which does it in .xlsx format and i want to do the same in the same file. I am using MVC opencart for this.. if you wish I might share my model file
08:52
lol @ MVC open cart
Funniest thing I have read this week
sorry for that @PeeHaa
here is the link
hehe no worriee
the model is in here.. i just call the download() from the controller
also my PHPexcel library consists of XMLwriter class as mentioned here cz1.php.net/manual/en/book.xmlwriter.php
D:\xampp\php>php php -r "readfile('https://getcomposer.org/installer');" | php
Could not open input file: php
what is the error here
I would like to do something like make an object of XMLwriter in the same download() and then call the other method for the whole later procedure of XML export
is it possible with the current codebase ?? if anyone saw the gist?
09:12
lol
@JavaFan php php o_O
@NikiC So I set that level to 0x00000 - but it didn't help
what php o_O?
@Danack yep, tried that just now, still having that error
@JavaFan you used php php -r try php -r
Good morning
09:15
D:\xampp\htdocs>php -r "readfile('http://getcomposer.org/installer');" | php

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in D:\xampp\htdocs\- on line 574

Parse error: syntax error, unexpected T_SL in D:\xampp\htdocs\- on line 849
what version of PHP are you using?
php -v
@JavaFan If you're on Windows, there's a Windows installer option further down the page. I would use that.
@ircmaxell php 5.6.3
weird
09:24
D:\xampp\htdocs>composer install

Fatal error: Class 'Phar' not found in D:\xampp\htdocs\composer.phar on line 23
Might be my composer.phar is corrupted
D:\xampp\htdocs>php -r "readfile('http://getcomposer.org/installer');" | php

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in D:\xampp\htdocs\- on line 574

Parse error: syntax error, unexpected T_SL in D:\xampp\htdocs\- on line 849
I removed it but same problem
any one has ever done
php pagination combining two or more tables without sql join
@FaizRasool why do you want to avoid joins?
@JavaFan ah, you need phar support... which needs to be built into php
phar support?
because when you join it you cannot avoid the limit
you apply the limit in outer temp table
and the data in table is 160 millon
it would not work
09:36
huh?
how to support phar
?
@JavaFan you're a developer right? Try to do your research.
@JavaFan the best way is donating I think
hehehe
09:51
morning pals
Question on the right was reposted on workplace. Downvote ftw
-5
Q: Am I failed in life by choosing PHP development as a career?

0____________0See, I have work experience in PHP of total 2 years. I got recruited thru campus interview by my company. I was in 8 people selected out of 467 students. Then my company assigned me PHP(core OOP php, frameworks, REST api, wordpress, magento and client side coding I learnt there). I am one of th...

> PHP is likely dying. Python, Java, Javascript, Ruby, C#/ASP.NET are the hot languages now.
oh noes
lol
Good thing I know perl!
python is having bad times afaik
community don't like the v3
09:54
@Worf A lot of academics like it.......which is almost invariably a bad sign for a language long term.
@Worf It does. It's just 3rd party libs that are either unsupported or the developers don't care AFAIK
and java is popular only for android. not for web development
But it are eneterpize.
lol
Don't laugh. It's sad
09:56
@Worf no, it's also popular because big corporations use it for many things
it's also why "it gets big moneyz"
> I am one of the Kickass dev in above technologies. I love mysql complex queries.
lol^
also ruby is losing popularity imho
as is Java
I never met a ruby developer so I am wondering whether there actually are any
and ASP
09:58
yeah, rust is all the shit nowadays
btw we're looking for rust developer with 3+ years of experience in a stable rust version
@Danack you use java iirc. tried groovy?
@FlorianMargaine I can fit that bill
hehehe
@Worf No....to be honest I'm scared to even look at anything Java related:
yesterday, by Danack
For the record, this is why I do not think anyone should copy anything Enterprise level Java programmers have done. They've clearly, as group gone collectively insane.
I'm scared it's infectious.
10:00
LOL
AOP is just 'clever' decorating, that's about it
(My point, you don't need a bloody AOP framework to do AOP)
IMO if a language depends on AOP approach to solve some task then the language itself is insufficient
@SergeyTelshevsky s/language/programmer
10:14
yes, sorry, I really meant to say that
can't edit :)
This is actually going to be the final slide of my DI talk (once I've figured out how to word it) ......people use AOP or service locators or other magic, because they're not in the practice of building an application that has actual architecture (think tiers) inside it.
@Danack all of my apps are built on tiers tears :'(
@Danack I completely agree, if you add AOP as in AOPPHP to your OOP code, the whole point of OOP becomes broken and useless.
@salathe tears of joy, at the beauty of the code?
@Danack Auryn will be able to do auto-decorators and auto-factories when 7 is out :D
10:17
he didn't say his tears
Those poor, poor interns.
@Jimbo auto-decorators? how?
@Worf Say you want to add logging to a class. Auryn automatically creates a class implementing the same interface as the decoratee, with an __call() to forward the the call, adding the logger's method to log the data before it's returned (PHP 7 can create classes on the fly)
I haven't thought about the API to do that yet, but that's the general gist. It's possible
I'm thinking you would need to specify the object and method you want to decorate with, and that's it
@Jimbo you mean like this? Or Ocramius's proxy manager?
And for the record, I'm not sure if that is actually a good thing to do or not...
@Danack Effectively, as you're weaving stuff together there... but instead of it generating a physical file/code containing the class, it can do it (and cache it) on-the-fly
10:23
@Jimbo i would like a native solution for that

class SomeBazWrapper implements Baz dynamically{
    function __construct(OtherBaz $baz){
        $this->baz = $baz;
    }
    // implement only the desired methods here
    function __call($method, $params);
        return call_user_func_array([$this->baz, $method], $params);
    }
}
^ Yeah, but that means you have to do it for every object you want to log
Wrap it
weve tallked about that
@ircmaxell nais :D
$injector->decorate('MyHttpRequestClass', 'MyLogger::log')
Then, when you injector your MyHttpRequestClass and use it, MyLogger::log() is called after with the response
/cc @Danack
@Jimbo when exactly is MyLogger:log() called? on every function call to MyHttpRequestClass ?
10:26
^
@SergeyTelshevsky Hmm, could specify specific methods to do that for?
@Jimbo uhhhh
@Jimbo it's pretty bad to do it otherwise I think
->decorate('MyHttpRequestClass::performRequest', 'MyLogger::log')?
10:27
there may be some hidden calls to the object somewhere deeper which you may forget about
that looks better, or better yet to simply spawn a proxy class dynamically
@Jimbo you people say a lot of "uhhhh" worthy stuff :-P
@ircmaxell What defines it as "uhhh worthy", retarded?
10:30
I wouldn't go that far :-P
@ircmaxell and? :D it's not gonna happen? :P
too many talks to prepare, not nearly enough time to do it
I'd suggest a SELECT statement. — jarlh 1 min ago
:D
@ircmaxell So come on, do I have to ask? :P What's up with that
what's up with what?
18 mins ago, by Sergey Telshevsky
@Danack I completely agree, if you add AOP as in AOPPHP to your OOP code, the whole point of OOP becomes broken and useless.
10:35
8 mins ago, by ircmaxell
@Jimbo uhhhh
E_UNUNDERSTANDING
Goddamnit. Those asshole domainpirates keep moving my domain without letting it expire!
@SergeyTelshevsky I was agreeing with you
Domainpirates should die
@PeeHaa peehaa.com is available
10:40
@salathe not anymore
Hmm... ircmaxell aka domainpirate
/me didn't register it
stackoverflow.com/questions/30705325/… (localized problem, and since OP doesn't specify in detail how a Facebook user name looks like, the regex is going to be a crap patchwork)
10:50
Ay,he hadn't masked has his credentials ;(
:-)
@DaveRandom you need a PECL account, else I have to kick you out of pq's package.xml, because uploading the release bails out
@m6w6 Do I need to notify the list or can I just submit the application form? Since I have a php.net account presumably there shouldn't be too much of an issue?
@m6w6 Also, not fussed about being in the package.xml
I want to get stuff done because I use it, not fussed about credits
@SergeyTelshevsky We've changed a lot since last year's group photo
3
10:59
@DaveRandom Sure, you can still submit the form and we'll wait for someone to approve the account. Credits where credits due.
@salathe :)
@m6w6 Submitted. I had assumed that php.net account would have propagated to PECL, never actually tried to log in to that system before
hallo
11:16
started learning and trying to write in rust, very interesting and very distinguishable from other languages, now I'm trying to think of what real-world stuff could I start writing with it
@SergeyTelshevsky Rewrite the zend engine in it
20 years of PHP
oh no
@ircmaxell in preparation for PHP 9? :)
11:31
@SergeyTelshevsky sure, why not
@Andrea yeah, but that wasn't PHP back then, wasn't it? I'd say PHP/FI 2.0 was the first one
Tomorrow we will have Talks by @tobySen, @afilina, and @ircmaxell #ipc15 @bephpug Special http://www.bephpug.de
The first PHP named only "PHP" would be PHP 3, I guess?
11:34
PHPSC, shit, I have to choose between "An introduction to CakePHP" and "The new Wordpress API"
3
PHP 1 wasn't PHP.
@Jimbo Hard choice... both too good to miss.
@Jimbo Don't they have a bar?
@ircmaxell ahh, the famous "why not" statement, which caused more troubles, fails and disasters than anything else
@PeeHaa I hope so. And laser tag
So there is a sane third choice :)
How do they achieve this? Do they self-contain Riak and Ejabberd in same nodes for each of them
or what?
@PeeHaa Even if not a bar, I'm sure there will be somewhere you can get a glass to piss in and throw
:-)
Usually my clustering architecture look like
Server LB -> Servers -> DB LB -> DBs
Above architecture looks pretty neat
how is that possible?
11:37
@SergeyTelshevsky and successes
@ircmaxell agree :)
@SergeyTelshevsky Only because people considered it a statement and not a question, which is what it actually is...
Guys, is that possible only using Riak?
@DaveRandom rhetorical question :)
@EnglishMaster is what only possible using Riak?
11:40
@ircmaxell It looks like DBs (Riak) in above diagram aren't replicates of each others
Instead, stand-alone & collaborating DBs
@SergeyTelshevsky I would argue that it generally shouldn't be, though...
there are many ways of doing that, with many different technologies
like what?
in the end, it's more about the problem you have than the architecture of the solution
@DaveRandom I agree that it shouldn't be, though it's more used like it is one
11:42
what are you talking about?
anyway I need something more simple :(
@EnglishMaster I'm saying you shouldn't need to worry about the architecture of the cluster
@ircmaxell Why not? I'm just interested about it
in a good architecture, persistence is a detail, not a foundation
meaning you should be able to swap out implementations without changing significant parts of your codebase
@ircmaxell
Anonymous
11:46
Could this be used to export multiple variables, if so, how?

$var_str = var_export($text, true);
$var = "<?php\n\n\$$text = $var_str;\n\n?>";
file_put_contents('filename.php', $var);

Also - Why is there a need for two $$ before text?
how to support .phar?
@Jay Why not try removing one and see what happens?
@SergeyTelshevsky Well, being that I'm me I'd probably write a web-socket server or something I/O driven. Or I've recently been messing around with a brainfuck compiler/interpreter.
Breaking stuff is a great way of finding out why something is necessary.
@JavaFan You already asked this earlier ... have you even tried googling it?
11:49
yes
@ircmaxell Above server architecture is used for League of Legend chat server with millions of concurrent users. In what situation do you think it will require to swap out its implementation?
Anonymous
@Danack I normally would, but I haven't actually got it in my code yet. I'm just trying to understand the answer to this stackoverflow.com/questions/2995461/… before I use it, I like to understand what i'm copy and pasting haha
@DaveRandom WS server is something that first came to my mind, might fiddle with it a bit. Had fun with BF sometime ago too, so it's a nice idea
@EnglishMaster when it stops scaling or becomes unreliable at scale, or requirements change, etc
11:50
@SergeyTelshevsky For the former, github.com/reem/rust-event looks cool. Looks fairly well written as well, I just had a poke through the src and found it quite readable, even though I currently know almost nothing about rust.
@ircmaxell Well, first of all, I don't think it will have any problem with "scaling out" as long as you are using Ejabberd (Written in Erlang) for next 135 years. By the time it's not capable of scaling out anymore, nobody will be playing League of Legend anyways.
@DaveRandom thank's for the suggestion, will look into it
Anonymous
@Danack But how would I use it for multiple variables? Like 100+ ?
@EnglishMaster if you say so
Should I enable .phar from php.ini file?
11:59
i want to delete some columns from the table using id number which is an index number to another index number or till the end

« first day (1696 days earlier)      last day (3478 days later) »