« first day (1811 days earlier)      last day (3153 days later) » 

11:00 AM
@Epodax yes, but for long sentences, (not for some short words like "no", "yes", "hello", ... )
 
Damn... That's a lot of Copy + pasta work.
 
I think he's messing with you
 
"Maybe if I use another website, I would feel better."
I think that's pretty decent.
 
Well, I am a gullible idiot ^^
 
@Epodax yes, the <v> button in my keyboard is damaged
 
11:01 AM
@tereško who is messing with whom ?
 
Google Translate is basically just a way to understand words better.
However, you shall not go with it to understand full sentences.
 
@Sajad why dont you install chrome plugin to translate automatically?
 
@MikeM. tnx
@NullPoiиteя really?!?! there is a automatical translator ????
 
@MikeM. and even he has translated it with google translator lol
 
@NullPoiиteя What?
 
11:03 AM
"Maybe if I use another website, I would feel better." this
 
@NullPoiиteя I didn't translate that. It's just what I feel like...
 
later ... back to work
 
I am by no way godly goofie good in english, however, the sentence I wrote just feels right to me :-)
 
@NullPoiиteя thanks for those links, but I can not open them, my country is boycott
 
@Sajad try fucking vpn hide.me/en/proxy
 
11:07 AM
@NullPoiиteя heh, that's funny, even www.hide.me is filter in my country, but ok, I will use proxy for opening them, tnx again ;-)
 
@NullPoiиteя WeeWee chill your peewee
 
@Sajad amazon aws ec2 provide free server for 1 year (1gb ram) ... make free account and than host your own vpn)
 
posted on October 01, 2015 by nlecointre

/* by ispuk */

 
I thought amazon is a shopping website
 
IE is not that bad.... ^^
 
11:09 AM
aws.amazon.com/ec2 dont make me sick bro
 
:-)
 
@MikeM. now imagine client wants support for IE8 :P
 
I would be like "HELL YE IT'S ALREADY SUPPORTED BUDDY."
 
@NullPoiиteя well, I opened those links, I will install the chrome extension
 
@Sajad The chrome extension came from me, the other shitty links from @NullPoiиteя ^^
 
11:12 AM
@MikeM. ah ok :-)
 
Ugh sarcasm level: +1 :-) Sarcasm level is now 9/10
 
@MikeM. are you ill? why do you use sarcasm all the time?
 
1) I am bored
2) Why not? :P
 
@tereško indeed, I have a personal question. My family have gone to travel (they are travelling now) and I'm alone in the home. living alone is really hard, I'm depres, hungry and several other bad feeling now. how, and really how you can live just by yourself? (alone)
 
@Sajad Buy food/drinks, Cook food and drink your drinks. Pay rents and all the other things and have some fun online...
 
11:15 AM
look for a girlfriend :/
 
@Johannes Who needs a girlfriends, when we have the interwebz ? :-) (sarcasm)
 
@Sajad I think this is a core life skill that once you learn you can do well
Don't look for a gf until that's passed :)
 
@Johannes girlfriend is banned in my religion
 
wtf?
 
@Sajad Lol?
 
11:16 AM
yes, having a girlfriend is a bad thing in my contry
 
@Sajad Cook, workout, have your own hobbies (video games, importantly ones where you go out and socialize)
 
where you comin from @Sajad
 
Meetup.com exists for a reason - to meet like-minded people and make friends
 
@Jimbo yeah good idea
@Johannes Iran
 
You should come to Germany there you can be free
 
11:17 AM
No offense to the people loving the same sex, but @Sajad, you can only love the same sex or you have to marry instantly?
 
@Sajad lol
 
actually you aren't free
 
@Johannes I can not go out of Iran! I should pass Military service first, and then I can go out of Iran
 
@Sajad Learn enough PHP, you can get a job in europe
Like Germany, England, NL as a junior
 
Dem hate against the Netherlands ^^...
 
11:19 AM
Ok wow.. in germany they disestablished the military service (compulsion)
 
@MikeM. actually "sex" is a really bad thing in my country, even the word of "sex" is a bad thing. and sex happens just between husband and wife
 
@Jimbo Can I, can I, Sir!!
 
@Jimbo can I have a job in europe from Iran?
 
@Sajad That's not what I meant with sex. I meant sex as in gender.
 
@Sajad sex is bad thing, lol-rofl-eww
 
11:21 AM
actually sex is life!
 
@Sajad so how the hell human can reproduce without sex? does your contry found another way? :D
 
@MikeM. ah, but actually I don't understand what is your question exactly, and I should say, we can merray with another gender
 
@NullPoiиteя I think they have copy"right" claimed on that knowledge.
 
@NullPoiиteя NO :D ! sex is exist, but just for husband and women, not girlfriend
 
@Sajad Let me write that out for you: "Does your country only accept 'gay' people to love eachother or marry eachother instantly?"
I tried to phrase that without offending anyone...
 
11:24 AM
@MikeM. "marry each other" means marry one man with another man? (two male together)
 
@Sajad Marry eachother instantly between a boy and girl. or be gay like boy <3 boy or girl <3 girl...
Assuming you can't have a girlfriend as man...
 
@MikeM. ah, marry instantly
 
@Sajad you can have women as girlfriend too :)
 
I will never go to iran, that's official.
 
now i think my country is lot better than all of middle east countries
 
11:27 AM
@NullPoiиteя what is your country ?
 
India
 
I like Indian people, they are kind
 
BTW it's not a good idea to invite @Sajad to europ...
 
@MikeM. why??
I like to go out from Iran
 
travel or emigrate
 
11:29 AM
travel, for 1 month
 
than you can go to any place i think
 
The loads of luckseekers messed it up for people willing to learn and work for what they want. People even get sick of immigrants, that came out of warzones.
And I mean the luckseekers doing literally nothing...
 
How to write unmaintainable PHP code - Involves getting into a company that doesn't know anything and becoming the "architect"
 
@Jimbo Write thousand lines of bullshit, write 1 sentence usefull, pass the next php file, write another thousand lines of bullshit.
TADAAAA :-)
 
Exactly, also build the framework and don't dare open source this
 
11:34 AM
anyone familiar with finfo() ? or has something better?
 
@Naruto Something... better?
That is a crap question :P
 
@Jimbo this is too crappy :\ too fat troll :p
 
Finally some decent replies on list to short closures.
 
@PeeHaa I know but.. I'm kinda in the dark here ^^
 
@AlmaDo Do you disagree that it's true? It sort of reverse engineers the mindset of some complete bell-ends who don't bother actually writing good code or actually architecting anything, yet get placed into positions of power
 
11:36 AM
@Naruto ;-)
 
@Jimbo A friend of me always used "$var_1; $var_2" however he kept notes for himself, just to mess with me what it was used for ^^ but learning it before school presentations, he always failed messing with me :-)
 
What is the problem you are solving?
 
@MikeM. That's school though, shouldn't be the case in professional companies and yet it's far too coommon
 
@Jimbo Haha ye.. I know :-P If I work on a project alone, I neither always use commentary :-( However I do keep it in the documentation, which is not smart XD I KNOW I KNOW. it's a bad habit.
 
Use an IDE... if you're writing a class, you're only a few keyboard shortcuts away from generating all your PHPdocs, creating your constructor from properties, getters / setters etc
 
11:39 AM
I use notepad++ :-P I struggle to get into something else XD
 
@MikeM. atom.io is the best
 
My hand just ignores the download buttons.
 
notepad++ is best editor
 
I wouldn't call anything "the best"
It's just a personal preference
 
I'd say there's definitely a "worst" though
 
11:43 AM
@MikeM. The best I say!
@Jimbo windows notepad?
 
Bahahah I remember when I made something in notepad++ saved it on the server, opened it with notepad, it was all a mess, no line breaks at all.... XD
 
@MikeM. There were linebreaks
:)
 
Nah, everything was just placed right after each other like "SCREW YOU! IMMA DO MAH OWN SHIT" and opening it up in notepad++ it was like "Nah all fine brah"
 
@MikeM. Still there were linebreaks
\n instead of \r\n
 
@PeeHaa Hmmm maybe, but it's freaking retarded of notepad.exe :-)
 
11:47 AM
Nope. It's the entire windows system that uses \r\n
Where nix/macs use \n
 
@bwoebi I'll write an actual RFC today.
My family and I have been sick so I didn't get around to it earlier.
 
hello everyone
@Epodax @PeeHaa @MikeM. i think "sublime text" is best right now
 
12:09 PM
Still opinion based.
 
@BhawinParkeria Sublime is nice
 
Morning's
 
mornign @AnmolRaghuvanshi
 
I have an ajax code, it does not work for my website, but it work correctly if I write that php code in the separated page... WHY ?
 
show the code , show the code
 
12:12 PM
Don't show the code, don't show the code.
 
Properly the ajax failing if the php is working when called independently.
Maybe show the code, maybe show the code.
 
never show the code, never show the code.
 
:)))
I will show the code, I will show the code
 
This is the PHP chat not the JavaScript chat ^^
 
ok
 
12:15 PM
Anyways it seems more like a relaxation chat right now :P
 
@MikeM. can we paste javascript code along with php ?
 
Hell no ^^
 
@BhawinParkeria yes sure
 
UNO what javascript is? it's toxic :P
 
@Sajad i can give a try
 
12:17 PM
thanks, I will create a git of my codes and I will show it to you ...
 
TSSS....
 
"laughing" is one of the important part in the PHP! you have to laugh when you are coding PHP! - , its very well said
 
@Sajad sorry, But how much free time do you think we have!!!
 
@NullPoiиteя What is.... free time?
 
ah ok
 
12:18 PM
I'm going to write some code -.- I seriously did nothing yet today beyond being in here and watching youtube vids
 
@BhawinParkeria php is getting you food, is it not enough!
 
@NullPoiиteя no , "yeh dil mange more".
 
I laugh when my friend works hard on a script and I decide to put down "exit();" in the middle of it when it's finished and uploaded, and blame him for it that the script isn't working ^^
 
@Epodax i dont work day in day out
 
I am known as a troll ^^ sorry can't help it :P
 
12:29 PM
Why when I remove this line dataType:'JSON', then my code works correctly? In other word why when I use dataType:'JSON' then success does not run?
 
How is your PHP script being loaded?
 
all my php codes and js codes are in the same page
 
And why the heck you use it with javascript then?
 
there is an error object in jquery ajax as well which will tell you the exact error
 
ok thanks, I will try it
 
12:33 PM
as far as i can think , the success function is not working because the returned data from php may not be json_encoded
 
Hey there.. I am making a social networking website and there is one query I have..
To facilitate fetching info easily across diff platforms and also for giving api to developers, I am thinking of a flow like this:

DB->XML->PHP Script

Now, If I use XML to represent the DB data, will it be prone to security risks? Like how do I avoid the XML from being read by unwanted person? I just want the person with the token to read it. And is there any other method which I can use?
 
@vignesh god no xml
 
Why not making it:
[site] PHP <-> DB <->php -> XML [devs using api]
 
@Sajad you have to return json if you use dataType json
 
@vignesh At the very least also provide a json format
 
12:36 PM
@MikeM.: Thats how I have made it now.. But then I thought there may be problems later..
 
@vignesh What problems are you thinking off?
 
@NullPoiиteя I return JSON, I use this: echo json_encode($data);
 
@PeeHaa: XML, JSON pretty much do the same but just have different representations
 
What's wrong with validating an api key and return upon that, XML Data in that API using PHP?
 
@vignesh Yes. A car and a train also pretty much do the same
 
12:38 PM
:P
 
Dev calls api.php
API Key gets validated
API Key Accepted: Spit out XML/json
API Key Denied: Spit out error
 
@Sajad try this $.ajax({....}).responseJSON;
 
@MikeM.: Hmm.. I will follow it then.. Thanks a lot.. So, will there be any hacking risks in this?
 
@NullPoiиteя ok, but should I remove datatype:'json' ?
 
@PeeHaa: I get you bro but I am more concerned about security than speed
 
12:41 PM
@vignesh If your validation is incorrect and what you spit out, hell yes but that's with everything.
 
@Sajad no keep it
 
ok
 
What's the point of db->XML if everyone can just view that file?
Don't you rather want to validate who they are before spitting out your data...?
 
@MikeM.: Thanks a lot bro. I will make sure I validate stuff.. I was just worried about "What if hackers get the xml to spit out data they are not supposed to access"
Sure.. will do that.. It does make sense
 
can i ask a mysql question here please
 
12:43 PM
You show the data you want to show...
If the api key accepts users to be spit out, don't show the user sensitive information....
If a hacker knows an api key, you can block that API key from ever connecting again, that's why it's being validated...
 
thanks a lot bro.. I am indebted to you :-)
 
No worries, I am here to help and kill dem boredom.
 
anybody can understand what is the problem ?
 
It's just based on my point of view, maybe some more experienced devs in here would say "Screw you Mike M. you're so incredibly wrong that you just killed my last bit of faith in the future of starting devs."
 
@Sajad it would help it we had the code.
 
12:48 PM
ah
 
hey guys
 
@AnasLmt Ello.
 
 
@LeviMorrison apparently Rowan Collins is out of control because Rasmus marc.info/?l=php-internals&m=144107616411299&w=2
 
> I am not convinced that this feature is worth breaking that longstanding basic tenet of the language.
He didn't say he was opposed.
He says he isn't convinced.
Additionally, we do have cross-scope pollution with globals already.
 
12:50 PM
But who uses globals?
actually daft comment, far to many people use globals
 
@vignesh Look into oauth an implement in correctly
@vignesh Also speed hasn't much to do with xml vs json
 
@Sajad you dont need to select #f_contact_form again and again just use $(this), like $(this).attr('action') or $(this).serialize()
 
tnx for this note
ah :-) yes I can use $(this)
 
@Sajad you are showing code between line 1-28 and error is at line 36, Awesome!!!
 
@NullPoiиteя this is epic :) :)
 
12:54 PM
@NullPoiиteя no, who said error is at line 36?
 
chrome debugger
 
where ?
 
What would be the best way to index something in an array if it's positive or negative?
I can't find the word for it, it's either + or -
 
12:57 PM
ah yes
I found the error :-)
 
guys, quick one: what's the correct way to check if a file was selected in an <input type='file'>
 
wait
 
@AnasLmt I stopped reading after "guys, quick one" ^^
Anyways, care to elaborate?
 
I'm afraid i'm not experienced enough lol
 
@AnasLmt just call user and ask them :P
 
12:59 PM
how can i do that @NullPoiиteя
 
the problem is this:
error: function(jqXHR, textStatus, errorThrown) {
     console.log(textStatus, errorThrown);
}
 
i don't think so @MikeM. this is a <input type="file" name="userfile">. I want to check if there is a selected file because as i start the page I get an error on this line: $target_file = $target_dir . basename($_FILES['userfile']['name'])
 
Well without any code we can't help you ^^
 
@AnasLmt if(isset($_FILES['userfile'])) { $target_file = $target_dir . basename($_FILES['userfile']['name']);}
 
1:06 PM
riight
thanks @BhawinParkeria
 
stay classy @AnasLmt
 
Guys, who designed the php "7" logo?
The inside of the P and 7 looks like a toilet
 
and you too @MikeM. and @NullPoiиteя, thanks
my my php7 is out
 
@Jimbo Pontier did
 
:D
 
1:09 PM
I think he also had some help of @salathe, but not sure about that
 
I did nothing to help you as I didn't get what you meant
 
@PeeHaa I didn't help with the toilet logo
 
mornin
 
hey , what does this operator do "<=>" in php
 
1:11 PM
reminds me of this:
 
@BhawinParkeria it's a spaceship, it brings aliens who probe you.
8
 
@BhawinParkeria what does isset($_FILES['userfile']) return?
 
true/false.
 
@PaulCrovella thnx
 
thx @MikeM.
 
1:13 PM
isset literally says what it does. it checks weither it's set or not.
$_FILES is an array with submitted files.
'userfile' is the index of the file.
checking it with isset checks if the file is submitted to the PHP file.
So enough productivity, I am going home ^^
 
anyone ever heard of dokuwiki discussion plugin dokuwiki.org/plugin:discussion
 
right
 
@AnasLmt why dont you just bother to see doc? try devdocs.io
 
interesting
 
@Jimbo Nobody.
 
1:24 PM
I hate zend framework :(
 
There is no such thing as the PHP 7 logo.
It's definitely not official.
 
Thought not :)
 
Is the service locator pattern supposed to be an anti-pattern?
 
I want to say this:
C++ allows [&] and [=] which do not require a list of all variables being captured. Sure, there is some explicit syntax to say "close over everything" but it's not a list.

Additionally, C++ is the only other language aside from PHP that I am aware of that does this. Every other major language does not require this. Additionally, C++ is not a good language to look at for design reasons. Look at where it places the return type: before the function name. Now go look at practically every modern language and nobody does it this way for good reasons.
And more.
But I have to go to work :/
 
Ah found the one without the toilet look @Jimbo cowburn.info/public/files/php7_preview.png
Everything with php in it looks to a toilet though
 
1:34 PM
we need something like Pixar's intro animation, but with a 7 that hops around and stomps out a 6
 
@EquinoxMatt Yes
Well, no not initially
It was identified as an anti-pattern when you look at the architectural disadvantages using it provides
It's the easiest thing to do, because it requires no architecture
No need to even worry about an object graph, screw dependency injection
Also screw future maintainability, readability and flexibility
 
I feel like I'm doing something wrong; I have 3 projects A, B, and C; A depends on B depends on C. A also depends on C. In project A, when I do an install, it only gets B. Wtf?
 
This is what I find frustrating, ZF2 uses lots of patterns
yet uses ServiceLocator extensivly
 
Yes.
 
A complete lack of documentation, a dismal DB layer out of the box
 
1:41 PM
People who build frameworks are out for money, effectively. Sometimes they don't actually know much about what they're doing when they build it, or they do and take the easy route. So you might find some frameworks are completely shit at first, and then they improve with the next version because the author has learned new stuff. Imho without taking into account open source help, that's cowboy programming. Just look at Laravel
They're not all these professional people you know, they're just like you and me, with certain levels of knowledge and a good marketing team
 
Would you consider Laravel high quality code?
 
Certainly not
The important thing is to learn the crappy parts of the framework, like you're discovering with ZF2, then make an informed decision regarding the tradeoffs
 
good point
I find Laravel very opinionated
my framework of choice atm is Slim, Laravel just seems far to clunky
bit like Zend I guess
 
It is - when you learn it you learn Laravel and that's it, not PHP. It's designed intentionally like that. I consider DI to be a fundamental requirement for a good architecture, so would from learning that onwards then evaluate all future frameworks, in other languages too, based on their ability to provide decent DI
ZF3 had this discussion
 
Why would you want to remove it from the AbstractController?
Sorry if I am missing the point of that thread
 
1:46 PM
Seriously, wtf? A depends on B depends on C, and A depends on C (everything depends on C)... A only installs B, whether or not C is an explicit dependency.
But it's not installing.
 
@EquinoxMatt "AbstractController" - should not be a thing.
 
/cc @Danack because I know you're our resident composer guru (whether you like it or not)
 
@DanLugg Run it with -vvv . It's likely to be a version mismatch.
i.e. the constraints are fulfillable.
 
I'm doing dev-master for everything atm.
But okie doke.
 
@Danack Hmm, not sure
 
1:48 PM
 
If that doesn't provide some information, can you share the composer.json
 
@Danack - may I ask why? Abstract classes are good for having common functionality... controllers pretty much need that common functionality
 
I provide an abstract controller simply so I don't have to create a constructor in every controller asking for the Request, Session and User objects. They don't have to extend from it, they can just DI for themselves
 
Can't take credit tho
May 7 at 14:35, by cryptic ツ
user image
 
@Jimbo - This is pretty much what I was trying earlier... trying to make the logger available for everything
@Jimbo - In Laravel, I would of done it easily via the container.... the whole service locater thing feels ugly
$this->getServiceLocator()->get('Logger')->info(
'New account for Sage Account ' . $account['AccountNumber'] . ' has been created'
);
 
1:50 PM
@EquinoxMatt I disagree with the premise that there is enough common functionality across controllers to be useful. And even in @Jimbo 's case, where some aspects of the website can use a common constructor, then it should be called LoggedInUserController
 
My code is now littered with these calls to the servicelocator
 
@Danack Also TemplatingEngine, which is no longer just a logged in user controller
Unless you're suggesting the creation of a LoggedInUserController extends TemplateEngineController
 
@Jimbo btw that code sucks. Rather than coupling your controllers directly to the request, you should abstract that to an interface like VariableMap which hides the coupling to Request in an implementation
@Jimbo what the heck is TemplateEngineController?
 
@Danack A controller with a constructor for Twig_Environment (templating)
It follows your logic for creating a LoggedInUserController for the User to be given to the constructor
And also, your mum sucks
 
k - I disagree with that the controller should know how to call the templating library. The controller knows what template needs to be rendered, but doesn't need to render it itself.
 
1:54 PM
Well, we don't really do MVC do we, it's more MVP, the presenter being the templating engine
 
@Jimbo the name isn't important.....it's just that the controller fundamentally shouldn't know how to call the template rendering layer
 
(btw the templating engine is already pre-configured about what template it is rendering, I'm just passing the variables to it in the controller)
Also, I have it set up so I don't have to inject the templating engine, my controllers just return data and that's it
 
@Danack E_PEBKAC
 
@DanLugg E_CACTUS
I think I'm winning on the number of cactuses since last year
 
True, however I did find an implement of rectal stimulation on a website that is in fact shaped like a button cactus.
I get points for that.
Actually, my fiance found it, but whatever.
 

« first day (1811 days earlier)      last day (3153 days later) »