« first day (2308 days earlier)      last day (2639 days later) » 

1:37 AM
Evening.
Kids and I have been sick.
Streptococcal pharyngitis (aka strep throat)
 
2:14 AM
hi
 
That sucks :|
@LeviMorrison
I hope you start to feel better
 
Why do I keep getting page not found? When I run it on my local server. github.com/PatrickLouys/tutorial-example
 
?
@SalOrozco here's mine github.com/funkytaco/php-mvc
I haven't updated to php7 though
 
@taco nice more practice
 
it's based on Patrick's work
I ended up switching to Handlebars in a separate codebase
 
2:25 AM
@taco For templating.
 
yes
There's a lot I haven't explained in that repo. I created a composer command 'install-mvc' which copies files from github.com/funkytaco/php-mvc/tree/master/.installer into app/
and then "composer commit" takes all the work you've done and copies it back to .installer. The app/ directory is in .gitignore, so it will never be committed back to git, only .installer
The idea was I could update my core, and somebody working on the Controllers & Views could cleanly make updates
 
@taco anything else I should know.
 
yeah, I don't know. Nobody uses my code. It could be garbage, no idea. :|
But I think it's decent.
It's pretty fast. I'm using it for a portal and API aggregator
I put my re-usable code into what I called Modules: github.com/funkytaco/php-mvc/tree/master/src/Modules
Then I include those in controllers github.com/funkytaco/php-mvc/blob/master/.installer/common/… As you can see I'm passing in the Date_Module with just a few lines.
For example you could make a cURL module by extending a Composer package ("Class Foo_Module extends ComposerPackage") and then include it as Foo_Module like I used Date_Module
<?php
namespace Main\Modules\API;
/** https://github.com/php-curl-class/php-curl-class **/
class cURL_Module extends \Curl\Curl {

//private $API_HOST = '/api/';

}
That's literally my cURL class
 
2:42 AM
lol What you mean it could be garbage lol
 
What's wrong with it
 
I'm just getting into oop, so I wouldn't know.
Know the fundamentals, just not familiar with implementation.
 
It's an abstraction
If that cURL class somebody else wrote is indeed garbage, I can just replace the composer package
If I didn't do that, then I'd have to remove references to \Curl\Curl in all of my Controllers.
e.g. same with my Date_Module, which is indeed garbage and referenced here: github.com/funkytaco/php-mvc/blob/master/.installer/common/…
It's just an example module, though
 
yeah
 
yeah. get gud nub. cya guys
 
2:53 AM
later @taco
 
3:32 AM
mornin
 
3:42 AM
o/
 
\o
 
morning
o/
 
morning
 
o/
 
4:11 AM
Morning
 
4:26 AM
Is there an advantage to using MySQL default current timestamp as opposed to using PHP to enter in the current timestamp manually?
 
Alesana utc
 
4:55 AM
morning
happy prerebbeca day
 
5:07 AM
I missed that
 
5:36 AM
ok digital ocean is wayyy more hipster cool than aws
 
6:27 AM
@JoeWatkins for context, I was asking in ##crypto on freenode for feedback on a recent blog post and Taylor asked how hash_equals() is implemented, so I linked to the php-src definition and he pointed that out :)
 
I see
gotta go afk, walk dogs, we'll see what Ferenc says, probably will want to backport it I guess
 
6:55 AM
Hi guys

good morning All

I have a problem
`$userrow->emails2 = $userrow->emails == NULL?array():json_decode($userrow->emails);`

PHP Warning: Creating default object from empty value
 
7:06 AM
HI all, I am an ex-python developer, currently using PHP's Laravel framework for about a year. Is there any good book or video tutorial that you can suggest me in order to start understanding a little bit better PHP language (if is preferable to target the last version of PHP 7). Thank you
 
@PraveenKumar your $userrow is not an object
 
hey gordon.
 
@iraklisg php7explained.com but that assumes working knowledge of php5
 
@Gordon thanks
Now changed to this you think warning will be gone  ?
$userrow->emails2	=	json_decode($userrow->emails) == NULL?new stdClass:json_decode($userrow->emails);
 
@PraveenKumar does that look readable to you?
 
7:11 AM
Sorry
 
formatting it, doesn't help in this case ;)
split it and make sure $userrow is an object before assigning properties to it.
 
@Gordon Got your Point here
Please check now
if(!$userrow)
{
	$userrow = new stdClass();
	$userrow->emails = new stdClass();
}
$jsondecode = json_decode($userrow->emails);
$userrow->emails2	=	$jsondecode == NULL ? new stdClass() : $jsondecode;
 
@tereško Cities: Skylines any good?
 
Is that fine ?
 
@PraveenKumar yeah, this is more readable and will get rid of the warning. But I am still wondering what you are trying to achieve. It looks weird. also json_decode(new StdClass) will give false not null when it cannot decode the json string-
 
7:17 AM
@Gordon Also wanted to ask is that you ??
https://www.youtube.com/watch?v=12P_I4p-zk4
@Gordon Using someone else's code :)
Okk thanks
changing NULL to false
 
@PraveenKumar yes
 
What language it is you are speaking :)
I want translations
 
@PraveenKumar german. it's just an interview where I am explaining these slides: de.slideshare.net/go_oh/are-youagileyet
 
@Gordon Thanks you have any blog any tutorial for advance php.
 
@PraveenKumar I have a mostly abandoned blog not worth visiting.
@tereško and how is Hard West?
 
7:25 AM
Okk... :)
Will read you in php.net ;)
Okk... :)
Will read you in php.net ;)
 
7:42 AM
Down with the sickness
mornings
 
'nin
 
o/
@RonniSkansing :/ get better soon
 
Thanks
 
Helo
`$str = "12345";
echo $str{1};//return : 1`
where is this php code syntax on PHP manual?
 
hi
anybody from cdeigniter ??
 
Dont think so, if you have a coding question, try asking it, somebody might help
 
8:14 AM
I know codeigniter
 
What's the best possible way to update a single column of the table approx 2 m records?
 
@JanmejayPati with an update statement
 
the query shouldn't scan the whole table

4988 rows would be affected from 2 m records
 
8:33 AM
mornes!
 
moin
 
Wes
hodor
i mean, morning
 
8:53 AM
I love the smell of hodor in the morning, harry
 
Wes
harry?
 
oh wait, you are not that wizard, right?
 
Wes
wizard?
 
Wesard?
 
Happy Thor's day
 
Wes
8:57 AM
thor?
 
Thursday is the day of the week following Wednesday and before Friday. According to the ISO 8601 international standard adopted in most western countries, it is the fourth day of the week. In countries that use the Sunday-first convention, Thursday is defined as the fifth day of the week. It is the fifth day of the week in the Judeo-Christian liturgical calendar. It is often abbreviated to Th or Thu. == Name == See Names of the days of the week for more on naming conventions. === Thor's (Jupiter's) day === The name is derived from Old English Þūnresdæg and Middle English Thuresday (with loss of...
 
Wes
:P
 
@Tiffany No, a relative path is one that does not start with a /. Don't confuse this with a path-only relative URI on the client side, where the path component may or may not be relative.
So on the local file system, anything that starts with a single / is a local absolute path
 
Wes
didn't realize that till now. thur = thor
 
Anything that starts with // is a fully qualified absolute path (// denotes the start of the authority portion of the reference, which may or may not point to a different computer)
 
Anonymous
9:00 AM
morning
 
The interpretation of a path like //./usr/bin is OS dependent, but semantically it means "/usr/bin on this computer"
URIs are really complicated
 
Mormonings
 
@Wes all of the days carry such meaning. friday is freya's or frigg's day. monday is moon day and so on
 
\o
Uh, Friday was named after Rebecca Black. Where do you think Black Friday comes from?
 
tuesday tyr, wednesday wodan, …
@Sean yes, obviously. it was named after a goddess, which rebecca certainly is
 
9:09 AM
morning everyones
 
In Portuguese we were very unoriginal and decided to call them 'second day', 'third day', etc.. The only named ones are the weekend days
 
@DaveRandom So `C:\` is relative? :P
 
Wes
@Gordon we have: lunar day, mars day, mercury day, jupiter day, venus day
but sunday it's not sun's day, but god's day, ish
saturday is "sabbath day"
 
@Trowski No, but I think you didn't make a further suggestion what to try, I think I have tried everything we could come up with.
@Wes You're absolutely right. We should totally undeprecate it once we have short closures.
 
I hate everyone
 
9:14 AM
@tereško get off @JoeWatkins account
9
 
Anonymous
lol
 
haha
 
:D
 
some fat bitch at my kids school called the dog warden because I play with Jenna outside the school ... Jenna is the least threatening dog on earth, but the law says that because fat bitch is frightened, it's illegal to have my dog with me ...
I don't go outside without Jenna if I can help it ... I hate being outside
 
Dude you're being a dick. She doesn't have a safe space. (this failed)
 
9:16 AM
what ?
 
@JoeWatkins I was making reference to the equally absurd 'safe spaces'
 
Anonymous
Is Jenna a staffy ?
 
yes
 
meurning
 
Anonymous
That explains it.. Assuming the dog is dangerous because of it's breed. This assumption is also known as fucktardary
 
9:20 AM
why do people sent me xml files with encoding iso-8859-1 ? :( even with binary code in there, which makes the xml invalid.. I wanne cry, can I cry?
 
@Gordon wat
 
@tereško everyone else got it :D
 
oh
 
:D
 
9:21 AM
@Naruto let it go
 
how? I need to fix it, so it still works ><
 
you asked "can I cry" not "can I fix it"
 
morning
 
can't let it go, when it still needs to get fixed ^^
 
Dog wardens are a thing?
That's horrible ):
 
9:25 AM
any idea on how to appraoch this? Tried changing the charset already, but that's just giving me more and more errors
 
@Naruto Tell them to at least encode their binary crap
Mrmgn all
 
Anonymous
moin haapee
 
Morning, that's a hella cute puppy btw
 
@Naruto Elsa can. So you can, too.
 
Anonymous
!!dad
 
9:29 AM
Two satellites decided to get married The wedding wasn't much, but the reception was incredible
 
Anonymous
disgusting
 
@PeeHaa mm.. 3th party software.. this is going to be a bitch ^^
@Gordon I sure hope so :)
 
yay more hackings money incoming =p
 
@Naruto yes even more reason to stop trying to unfuckify it and tell them to fix their shit
@RonniSkansing Did you get monies for the chrome thing
At least I think I saw soem chrome thing on your twatter
 
9:34 AM
yea 500$
 
nice
 
and there another one waiting, thats abit more severe
 
Anonymous
context?
 
but I think it might be a while before it gets resolved
 
What product?
 
9:35 AM
Chrome also
 
cool
 
and ofc lotsa wordpress =p
 
Credited for CVE-2017-5026 (Chrome before 56 - UI Spoofing and navigation hihack)
@RonniSkansing yeah, but that's wordpress :D
 
hehe, yea that's what everybody says.. I still do appreciate the CVE's though ;)
 
:D
 
9:37 AM
WP had a real bad one in 4.7 4.7.1
discovered by sucuri .. allowd anyone to edit posts (guests) n more
 
Yeah I think I read about it
 
yea, I might poke a bit in it now that just laying in the coach feeling sorry for myself
 
:P
 
Hows ya life @PeeHaa still running the world company ?
 
I guess there is no formal mail of saying you suck fix your shit? @PeeHaa ^^
 
9:41 AM
@RonniSkansing s/running/ruining/ :P
 
@RonniSkansing Yeah. And life is good yeah :)
@kelunik :P
 
heh
nice
good to hear
 
user7462841
hello friends can anybody tell me how to receive data in string instead of string body in php?
 
user7462841
$fullname = $_REQUEST["fullname"];
 
@Naruto Sure there is. There is no reason at all to have the actual binary data in the xml
I am actually wondering whether they really do that or the xml is already processed by something
Because it doesn't make sense
 
user7462841
9:47 AM
here is my question
 
@PeeHaa basically we use soap to get the base64 encoded string, which I just decode to get the xml string, then I tried loading that string in domdocument and simplexml, but both are failing me, that's rlly all I'm doing at my end
 
user7462841
0
Q: How to post a string using android-volley and returns json Array of objects for php web service

NeoI'm trying to send a string and returns json array of objects in response like like this: // Creating volley request obj JsonArrayRequest movieReq = new JsonArrayRequest(url, new Response.Listener<JSONArray>() { @Override public vo...

 
@Naruto wat no
Surely they are not base64 encoding the entire xml
That's wrapping a huge format into a huge encoding
 
Oooooo jawel :D
 
I really doubt that
That would be so weird
 
9:51 AM
if you don't believe me, I can show you
 
Show me :)
 
you want ss or link to site?
 
link to site will do
or a screenshot whatever
I can do with a good laugh :)
 
I am using this tutorial to send email from localhost to era.com.bd
this is my code .
 
gist/pastebin pls
 
@PeeHaa imgur.com/a/gWb08 the result I get from the webservice, before I do anything with it
 
When I run this code , this code oututs me : Email sending failed
Where is the error ?
 
@Naruto lol
!!package swift swiftmailer
 
@SagorAhmed Generally using mail() is a PITA, try with PHPMailer or SwiftMailer...
 
@PeeHaa Usage: !!packagist vendor package
[ swiftmailer/swiftmailer ] Swiftmailer, free feature-rich PHP mailer
 
9:57 AM
^
 
@SagorAhmed ^
 
What is PITA ?
 
:P
 
@SagorAhmed pain in the arse
 
^
 
9:57 AM
@PeeHaa ikr
 
Oh no
Can I send mail from localhost to gmail or any other email?
 
yes you can
 
@Naruto You have such a nice job :P
 
@PeeHaa I'm just going to crawl back into my dark corner now ^^
 
:D
 
10:00 AM
@Naruto play some overwatch
 
would be nice if it could be possible at work ^^
 
:(
 
@PeeHaa Does it search now?
 
@kelunik Idunno. Did you PR it? :P
 
I have run this command
composer require phpmailer/phpmailer
Where will I find phpmailer project ?
 
10:05 AM
@PeeHaa Nope.
 
I think you have your answer :P
 
@daviddan Your IRC client always times out.
 
@SagorAhmed require the composer autoloader
 
I have installed composer .
This is my output
C:\Windows\system32>composer require phpmailer/phpmailer
PHP Warning: Module 'openssl' already loaded in Unknown on line 0

Warning: Module 'openssl' already loaded in Unknown on line 0
Using version ^5.2 for phpmailer/phpmailer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
 
require_once __DIR__ . '/vendor/autoload.php; from the root of your project, (in Bootstrap.php)
considering that the vendor folder is in your project root
 
10:09 AM
wrong window ffs
 
Anonymous
lol noob
 
lol
 
10:33 AM
I am trying to use phpmailer
But I am getting this error
Mailer Error: SMTP connect() failed. github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
How should I configure SMTP to use phpmailer ?
 
@PeeHaa you are not going to believe this
 
@PeeHaa seems they have 2 webserves, which both do the same, only they both accass different things, but just now I noticed you can call the same stuff from the other webserve as the prev one, but here comes the best part, they sent the xml 64 encoded, so I have to decode it, put in domdocument, then when I reach foto element, I have to decode 64 the foto again xD
 
And don't you even dare to call me voreingenommen, just because I am german
 
Anonymous
@Gordon voreingenommen
 
10:40 AM
@JayIsTooCommon your mother!
 
@Gordon this
2
 
Anonymous
Dec 7 '16 at 10:47, by JayIsTooCommon
Germans are strange
 
@Gordon wow please, don't be so harsh with french
France is the only (afaik) french-speaking country with the "4*20" stupid thing
Belgium says "octante" and Switzerland says "huitante"
Meanwhile, France is "hon hon hon, we've always done so, let's keep quatre vingts"
Oh the retard (fr)/late thing…
A friend of mine has a ticket system. All the tickets are written in english because reasons.
When a ticket takes too much time to get resolved, the (french) manager add the tag [RETARD] in front of the title ticket
Eyebrows were raised
 
calm down, it was humor :D
 
10:49 AM
@Gordon I know :D
I was saying that it's not the french language that's stupid, only France
And I don't take jokes about french/France seriously
(tbh we deserve it some times, especially when it's related to the language :D)
 
Anonymous
and the whole evil thing
 
@Trucy yes, definitely some times and not just sometimes :D
 
@Trucy mange des carottes, ca rend aimable ... :)
 
I enjoyed this
 
@Gordon :D
 
Anonymous
10:55 AM
!!en mange des carottes, ca rend aimable
 
eats carrots, it makes kind (translated from French)
 
Anonymous
@Leigh no, they slow down eye deterioration, they don't make you kind
 
Anonymous
silly.
 
@JayIsTooCommon that's a myth
 
Anonymous
it's not, my mum said so.
 
10:57 AM
!!? carrot good for eyesight myth
 
Search for "carrot good for eyesight myth" (https://www.google.com/search?q=carrot+good+for+eyesight+myth&lr=lang_en)
• A WWII Propaganda Campaign Popularized the Myth T… - 13 aug. 2013 - “Somewhere on the journey the message that carrots are good for your eyes became dis… (http://www.smithsonianmag.com/arts-culture/a-wwii-propaganda-campaign-popularized-the-myth-that-carrots-help-you-see-in-the-dark-28812484/)
• Does Eating Carrots Improve Your Vision? : snopes… - 24 jan. 2015 - While carrots are a good source of vitamin A (which is important for healthy eyesigh… (http://www.snopes.com/foo
 
@Gordon It's not. @JayIsTooCommon's mom said so
 
@JayIsTooCommon she lied
she manipulated you so you will eat them
 
Anonymous
it's a myth that they help you see in the dark but I'm sure it was proven that they're good for slowing down the deterioration of them?
 
> Carrots are a good source of vitamin A, which helps maintain eyesight.
Which is what she said
 
10:59 AM
and has nothing to do with kindness
:D
 
Anonymous
hah, my mum's smarter than you @Gordon.
 

« first day (2308 days earlier)      last day (2639 days later) »