« first day (1651 days earlier)      last day (3296 days later) » 

12:00 AM
/me is writing algorithm which involves math and DateTime class and scheduling
this is hurting my brain
I probably would work it out in 20 min, if I had had any sleep
=/
 
 
2 hours later…
user895378
1:44 AM
@LeviMorrison I'm pleased because I'm now certain that it's not a php-src problem.
 
user895378
yeah, it's either an issue with openssl or the remote imap server ...
 
user895378
but strace shows that php-src is sending the data as it should.
 
user895378
And it only crops up if using a specific set of ciphers for the tls session
 
user895378
Time to sit down and write some phpt tests so I can push the new streaming ext/zlib functionality up to php-src \o/
 
1:53 AM
I had to do a bunch of yard work today to keep me from working on union types >.<
 
user895378
hehe
 
I want to work on algebraic data types so badly.
Being patient is tough sometimes.
 
user895378
Any idea how long until you'll know if it's approved for credit?
 
user895378
 
Probably not until next week at the earliest.
I'm also getting antsy about the PNWPHP conference talks. I expected them to announce the second round of speakers by now.
 
user895378
2:08 AM
Hmm ... well good luck on the talk selection. That's about the only comment I have in that area :)
 
It's not the end of the world, obviously.
It's be fun and a good experience.
 
user895378
2:29 AM
TimeWarner Cable has to be the worst ISP on earth.
 
user895378
And thanks to awesome monopoly power I have no alternative if I want internet.
 
user895378
Over the last couple of weeks my connection gets dropped multiple times a day and it drives me nuts.
 
user895378
 
user895378
> 8. I found a bug in zlib.
> Most of the time, such problems are due to an incorrect usage of zlib. Please try to reproduce the problem with a small program and send the corresponding source to ...
 
@rdlowrey Teehee
 
3:16 AM
/me lurks
do we have anyone here living in/around hamburg? I'm still on the job hunt (and apologies for being aloof lately)
yo @hakre do you live in the north?
 
How do I squeeze in a variable in a SQL single-quote query?
This is obviously a lame attempt
 
The PHP in that code seems fine
 
Sorry
should've posted the query only
 
user895378
@Leigh evenin'
 
user895378
Or morning. Or whatever it is for you :)
 
3:24 AM
'SELECT id FROM names WHERE id = " + username + "'
 
Everybody should have thefuck installed on their developer machine :)
 
I have no idea what you mean by "squeeze", I tried to grip some variables very tightly once. Slippery buggers
@Ja͢ck forwarded to my old sysadmin team, I anticipate 50% of the commands issued in the next month will be "fuck"
 
:D
such an awesome idea
 
there was a guy who used to type that anyway
because all logging was central
 
hehe
 
3:29 AM
@rdlowrey hi, I have no idea what time, or even day it is
This not working lark is awesome
No idea why I didn't do it earlier
 
3:41 AM
@Leigh I basically need to put in a variable in the query
 
Hello anyone
 
@StevensHaen So ideally what you want is a prepared statement
 
I don't know what a prep statement is, frankly
 
is there anyone here using phabricator ?
 
I would like to search for something that's stored in a variable in my script
 
3:42 AM
I half guessed that @StevensHaen, hoping you'd take it and run (to the nearest search engine) with it
A prepared statement is a separation mechanism employed by the DB engine, that keeps the query and the variables in the query apart, so that the query itself cannot become contaminated with user supplied data.
 
 
2 hours later…
5:27 AM
anyone comfortable with yii2 please
 
5:45 AM
hi firends
how do you post a private message on twitter?
 
thanks
by the way Gordon i have implement the twitter direct messages on twitter, i can now post on others but can't post on myself
 
6:23 AM
moin
 
6:33 AM
Mogguh o/
 
morning
 
user4661379
Hi all respectable people around the globe
 
user4661379
I just need small help from you.
 
user4661379
6:46 AM
1
Q: Why the HTML tags are not getting removed even after using strip_tags function in following scenario?

PHPNutI've an array titled $aMessages. Actually it's quite a huge array but for your reference I'm printing below only first three elements from it: Array ( [0] => Array ( [message_id] => 240 [thread_id] => 43 [user_id] => 244 [text] => test msg

 
user4661379
Please read my comment on the answer. Now I want that thing only.
 
hello
i was wondering if you can help me with some stuff
i'm trying to implement some facebook spam chat
like on my friends i'd like to send them a chat link using php
 
Anonymous
@boyee You want us to help you spam people?
 
Anonymous
I'm not sure if I get it right.
 
Anonymous
@Gordon ping
 
6:53 AM
@samaYo pong
 
Anonymous
@Gordon Do you know why SO doesn't have a room-only suspension? As in if I want to be suspended from here, but not in the JS room.
 
they do
 
Anonymous
It seems a legit feature for SO.
 
room owners have a "kick-mute user" option when seeing a user's link
 
we have a payroll system on which when the employee tries to apply on our system . automatically it saves the data on the database as well as the data to be sent to the hr chat box. i.e( Boyee has applied a sick leave on april 20,2015)
 
Anonymous
6:56 AM
@FlorianMargaine How long is the longest?
 
i dont know if these are possible
 
Anonymous
One minute doesn't mean much
 
Anonymous
@FlorianMargaine I am not talking about minutes, more like months upto a year.
 
6:58 AM
@samaYo if you are to be banned so long, it shouldn't be room-specific
 
Anonymous
It should.
 
Anonymous
Not all rooms have the same content anyway.
 
it's not about the content, it's about your attitude towards other people. That's what gets you banned
 
lol
@boyee lolwut. This is why I hate FB apps. I tend to block them as well
@samaYo What @FlorianMargaine said. Your case is special since you actually request a temporary ban. Which means you actually want "a self service temporary ban feature request". Which is probably a no-go from SE perspective...
SE's*
 
7:18 AM
good mornings
 
@samaYo … are you aiming for your next chat ban in here? why?
 
@bwoebi it's addicting :)
 
@HamZa sure… and? I'm a lot of time here… But not all the time …
 
@bwoebi some can't handle the freedom. For example, I have a ton of things to do but I'm still hanging out here...
 
@HamZa Sure… but you aren't looking all the time on the chat and be immediately interrupted by every non-ping message…
 
7:31 AM
meh. SO has become a routine. For example: I was free yesterday morning. I planned that I would work on something for school. I got a habit to open SO en chat everytime I start up my PC. I spent almost 2 hours on chat&SO and couldn't finish what I wanted to do. This is happening a lot to me and I'm always falling in the same trap...
It's psychological I guess?
 
anyone know why PhpStorm won't follow coding style I've set? It's frustrating
 
This habit has been affecting my school performance (I think...)
@vamsikrishnamannem I did. What are you referring to?
 
from CTO: the server's timezone should depend on where it physically is located
 
lol
 
7:37 AM
yeah .. I don't even ..
 
Hi! I'm getting a SoapClient error "SOAP-ERROR: Encoding: object has no 'countryCode' property" when trying to get VIES VAT from this answer: stackoverflow.com/a/14340495/559157
I'm guessing it's related to this bug stackoverflow.com/a/8992192/559157 but I can't seem to get the request correct even though I use stdClass
Anyone having a clue as to why the request cannot be made?
 
7:51 AM
And, good mooning Roomies :)
 
I know what that is... :P
@salathe Morning fine sir
 
@PeeHaa *grin*
 
@salathe nice try, but url starts with your name. therefore rejected (:
 
A blog post from me should be suspicious anyway, even if not posted on a Friday... because I never blog :P
 
Your site sucks :P
 
7:55 AM
Hodor, Hodor Hodor!
 
:D
 
Haha, my newest four blog posts... 23 Oct 2009, 30 Apr 2010, 17 Mar 2012, 06 Sep 2014
I suck at blogging :(
 
s/at blogging/
;)
 
s/at blogging/
:D
 
BAM! :P
 
7:57 AM
ok , so ...
which frameworks automatically handle time zones ? (I want to know, which is that magical framework that the CTO was refering to)
 
you're both missing the replacement string
 
<3
 
we don't :D
 
@tereško Zend?
 
@tereško "handle"?
 
7:59 AM
Although it must be 10years ago I used zend so not sure what in specific n tried to do automagical
 
@salathe "handle" as in "magically compensates for difference in timezone of PHP and MYSQL"
 
Why would there be a difference in timezone between PHP and MySQL? :/
 
23 mins ago, by tereško
from CTO: the server's timezone should depend on where it physically is located
I am kinda getting frustrated
 
"The server is located in the universe, so it gets UTC." :)
 
:)
 
8:01 AM
@salathe yeah, well, I got over ruled
 
Morning
 
FAPORE!
 
Weird, everytime I load up this chat I have "@ AlmaDo" in my textarea.
 
Do MySQL's dates/times come back (to PHP) with timezones? It's so long since I've used MySQL...
 
@salathe and when I pointed out this fact I was told that "this is why people do not write their own frameworks, because good frameworks handle this automatically" ... even though the project does not have "a framework", just a bunch of composer libs
 
8:03 AM
[2010](google.co.uk/…) 6,170
[2011](google.co.uk/…) 8,860
[2012](google.co.uk/…) 22,800
[2013](google.co.uk/…
not formatted very well, but you get the point ...
 
God I need weekend. 2 client meetings to go and then finally beeeeeeeeeer \o/
 
how to I know when my constructor is doing too much work?
I have a class that implements `Iterator` I want to check that the contents of an array that goes in through the constructor are of a certain type.
 
@iroegbu Sounds like a job of the contrsutcor
If it is the incorrect type the object would be in an invalid state
 
oh... okay. Thanks. I was getting concerned because of closures
 
?
closures?
 
8:14 AM
array_walk($blah, callback) -- meant callback
 
@PeeHaa I'm surprised you don't have 100k messages on chat
 
@iroegbu Maybe you need to validate it before that
 
but soon :)
 
good meurning!
 
@FlorianMargaine Yeah I'm pretty weak :( I'm not even on the first page of most active chat users
@Naruto Mogguh\
@FlorianMargaine Yeah shouldn't take too long
 
8:16 AM
@PeeHaa o/
 
\o
 
@PeeHaa you lost me there... I was planning to use the callback to validate
 
@iroegbu What exactly are you passing into the class?
 
an array
 
And where does it come from?
 
8:17 AM
I have another function add(TypeRequired $var)
it comes from a doctrine Repository
 
So it is already validated?
 
hmmmmm... yes
 
So now the question is do you need to validate it again or just document it. To which I don't have the answer I think. Something tells me you would need to validate because you could have incorrect data when instantiating in a way outside of that repository stuff. But on the other hand you are basically doing it twice now
Perhaps somebody else can throw in his/her 2¢
 
What is he doing?
 
yes, if I'm forever going to use it only with the Repository I wouldn't need to validate again
 
8:23 AM
11 mins ago, by iroegbu
how to I know when my constructor is doing too much work?
I have a class that implements `Iterator` I want to check that the contents of an array that goes in through the constructor are of a certain type.
 
@salathe I'd like if it weren't (probably) Rebecca Black…
 
mm.. as peehaa said, if the data already is validated before passing it to the class, no need to check again...
if you don't trust the data, just recheck it :)
 
posted on April 24, 2015 by kbironneau

/* by SynxS */

 
8:46 AM
 
9:02 AM
o/
 
Mornbo
 
9:16 AM
The new Batman vs. Superman Trailer is awesome.
 
user986408
quick question: i have a rest api and additionally i'm using a bundle for sending push notifications that are using curl internally. will the curl calls block my api? - in other words do i need to create an external job?
 
@Fabor Dammit! :D
 
Ah :)
 
9:35 AM
@codingrogue Yes, and yes. You need an external job anyway as the notifications can fail and need to be retried.
 
user986408
@Danack thanks! good to know!
 
user986408
@Danack can you recommend a workflow/set of tools?
 
@codingrogue Not a full set, but I prediect Supervisord being in your future.
You then need to choose between a full on queue like RabbitMQ or just using SQL/Redis to list 'jobs' to be processed.
 
1 message moved to Orphan GIFs
 
user986408
thx a bunch!
 
9:44 AM
@Fabor nobody clicks links on fridays :P
 
@iroegbu heh true. Also makes it an annoying time to post a useful link.
 
Decided to look at Symfony DI implementation and I was surprised of their 1000-2000 lines of code classes :D
and naming conventions
for example ParameterBag class which "holds parameters"
and also FrozenParameterBag which is basically a value object holding parameters
 
10:03 AM
@ziGi Yeah...to be fair to them, the aim of the framework was to make everything be replaceable, which is at least in part responsible for them having so many classes.
 
Anonymous
@bwoebi yes.
 
Anonymous
@salathe thank you so much.
 
quick question here, i´m creating a field in my database to get the today date and time...should i set to DATE or TIMESTAMP? and what do i put between the () ?
 
Anonymous
NOW()
 
Anonymous
@Japa ^^
 
10:15 AM
yes samaYo
sorry i didn´t understand
i create a filed called NOW() ?
 
Anonymous
no
 
so TIMESTAMP(NOW())
 
1208
Q: datetime vs timestamp?

karlipoppinsWhat would you recommend using between a datetime and a timestamp field, and why? (using mysql). I'm working with php on the server side.

is that what you are asking?
 
@Danack I am not really talking about the fact that they have many classes, but the fact that they use strange names and put a lot of responsibilities in one class. That's what I think at least
 
@iroegbu yes..also
@samaYo ?
i´m trying to create the timestamp now, but i needs something between the () and that´s what i don´t know
sorry i know it´s a rookie question
what do i put a zero?
what?
that´s what i need to understand
@samaYo you said now but i don´t understand..pls explain
 
10:22 AM
INSERT INTO servers (server_name, online_status, exchange, disk_space, network_shares)
VALUES('m1', 'ONLINE', 'exchange', 'disk_space', 'network_shares', NOW())
research what you don't know first stackoverflow.com/questions/19246309/…
 
i´m talking about when you are constructing the table...i have a field called Date which is type TIMESTAMP....but when i´m creating the field, i have a dropdown where i choose the type for that field(TIMESTAMP) and when you choose it appears timestamp()...what do you put between the () ?
 
@Japa put _|_ between the ()
 
right! right!
 
@Japa "mysql timestamp default" - did you try googling ?
> Use of DEFAULT CURRENT_TIMESTAMP and ON UPDATE CURRENT_TIMESTAMP is specific to TIMESTAMP and DATETIME. The DEFAULT clause also can be used to specify a constant (nonautomatic) default value; for example, DEFAULT 0 or DEFAULT '2000-01-01 00:00:00'.
 
@AlmaDo i was thinking putting this: fode-te e come coves!
what do you think?
 
10:28 AM
I don't think. I can't. I'm a script
 
@AlmaDo then add this to your script: vai para o caralho!
 
I'm SOLID script. you can not modify me
 
really?
i have something SOLID too!
 
Byeeeeee
 
:)
 
Anonymous
10:30 AM
ehh
 
lololo
just kidding
 
Real answer: learn how to learn. Educate yourself
 
moin
 
@AlmaDo Or learn to Google, either works!
 
@Epodax unfortunately, not, but I'm telling about general case
 
10:37 AM
@DaveRandom heya
 
@AlmaDo i hope you never have questions or doubts in your life...and when you do, someone tells you this: | ...which by the way as lot to do with education... more like...manners!
 
@Japa pity me, I'm doing them each week
and by the way, placing _|_ between the () is not a bad solution for most of the problems
 
you could just gave the answer like danack gave me...and he also told me that i should google...and he´s right...but this time i went strait here...just because it could be quicker
 
Yes, I'm a bad policeman
 
poor conversation man...poor!
forget it!
 
10:44 AM
I already did
 
Does error the same if you try to upload less then 300mb file? — sergio 4 hours ago
Hello Everyone
I want some solution from your side
 
@learner Solution on what?
 
question on which he linked this comment
 
one minute
 
Ooh yea, Ah sorry, my bad.
 
10:50 AM
1
Q: Unable to upload large file 300 MB at Amazon S3. Response is "Internal Server Error"

learnerI am trying to upload large file upto 300 MB, but every time I am getting "Internal Server Error". I am using: try { $uploader = UploadBuilder::newInstance() ->setClient($s3Client) ->setSource($fileloc) ->setBucket($buketname) ->setKey($filename) ->setConcurrency(3) ->setOption('ACL', $fileacl) ->...

I tried many time but getting same again and again .What i should do
 
You got it right the first time @learner - It's just me not getting that it was a link :)
 
Okay. Have any solution for this Why i am getting same issue . I am using high level API as per Amazon S3.
 
None at all.
 
thanks
 
> In general, when your object size reaches 100 MB, you should consider using multipart uploads instead of uploading the object in a single operation.
 
11:09 AM
@iroegbu as per my code i am using multipart code
 
@learner What makes you think you're using the multipart upload?
 
Sorry Iroegbu , Danack . Accoding to "Multipart Upload Initiation

When you send a request to initiate a multipart upload, Amazon S3 returns a response with an upload ID, which is a unique identifier for your multipart upload."
My code dont have Upload ID
So May be i am not using Multipart
 
You aren't. If you look in S3Client::uploadDirectory, there is a call to the method setMultipartUploadSize() which I'm guessing you need to add.
However I'd also recommend just using the putObject() method instead of trying to manage it yourself.
 
11:29 AM
I think CTO just loves me .. deeply: now I got told that I should be doing refactoring (which I happened to doing at home in the evenings)
 
I thought you're CTO
 
@Leigh no more in the middle. you're looking for a job in HH?
 
@AlmaDo nope
 
not anymore .. or wasn't at all?
 
wasn't at all
 
11:44 AM
ok then. Looks like Chef Tereško Officer was @Fabor's trolling (:
 
Nah, it was when we wanted him to be.
Does more work than the guy already
 
I don't want to work at home
 
You live in your office already don't you? :P
 
that's why I don't want to work at home
but I'm thinking to stop living in office
 
11:51 AM
^ PITA
 
Or rather review them all
 
Anonymous
is lazy loading a replacement for singletons ?
 
12:07 PM
No.
 
@AlmaDo is it, "you live in your office" or "you work in your home"?
 
@iroegbu correct
 
@salathe I'm really not sure why I was expecting something else
 
@DaveRandom At some future Friday, I'm totally going to write a blog post with that same title... and no-one will read it. :D
 
12:14 PM
It's the classic tale of the boy who cried markdown
 
@SergeyTelshevsky lol
 
x-files part is awesome :)
 
@SergeyTelshevsky Almost made me wish I lived in USA
 
http://stackoverflow.com/questions/29847159/rest-api-of-neteller-tok‌​en-message
@SergeyTelshevsky Reminds me of the original Dollar Shave Club ad
 
12:31 PM
for what purpose we use CGI in php ? is it for load balanceing
 
@abhi Depends what you mean by CGI. Are you talking old school PERL scripts or running PHP as FCGI?
 
Or crazy monsters in Hollywood movies maybe
 
please let it be crazy monsters
 
actually about cgi i know that its a conman gate way interface for server it can be written in any language and about fast cgi . i know that it's manage cgi , i do not have proper idea about it and it's use can u guide me @Machavity
 
@abhi It's mostly so that PHP is running in one process, that is separate from the webserver. It allows you to have separate "backends" that can be managed separately from the webserver.
That gives a bit better security and makes them easier to manage.
 
12:38 PM
that is about CGI and wt about FCGI ? is it kind of manage CGI ? @Danack
 
@Danack u actually made me laugh :D
 
@Naruto can u tell why we use CGI and what is the diffrance between CFI and FCGI
*CGI
 
FastCGI derives from CGI, it is a way of interfacing with webservers using the common gateway (CGI) while reducing overhead, it does this by pooling processes, avoiding startup and teardown for most requests ...
 
jeez
 
afternoon all ...
 
12:42 PM
afternoon @JoeWatkins
@JoeWatkins did you see my ping about gcc 5.1?
 
I didn't, show me again @Florian
 
that's cool ...
 
@JoeWatkins good noon !!!

in practical scenario where we can use it ? let's say i have a web application and i have to use CGI for learning purpose ? what should be the good example ?
 
but but ... everyone is still using 4, right ?
@abhi [F]CGI is not part of a web application, you will have to explain a bit better before I can answer any of those questions
 
12:45 PM
@Machavity that's a classic :)
 
will read about it though, looks pretty tidy ...
 
FCGI is mainly used where PHP is NOT part of your web server. So Apache has mod_php (where PHP runs as part of Apache) but can also pass PHP requests to a FCGI process. nginx only supports FCGI
 
@JoeWatkins okey i mean i have web- application running on web server ! how can i use CGI i mean for which n all scenario where we can use it ?
 
actually has binary tools that actually work, according to docs ...
 
12:50 PM
@Machavity txs will look in to it !!! :)
 
and DSO ... very nice ...
and objects and assembler ...
 
@JoeWatkins yeah well...
 
it's not the end of the world, everyone will catch up eventually ... it's looks very complete ...
it will take as long to develop anything stable with it as it will take for everyone to start using 5 series
 
that guy must STOP doing code-reviews for my project ... the latest "advice" was that I should look into learning how to use DateTime because he classes named "day" and "month" in the activity-scheduling part of the codebase
jeez
 
@tereško you have to embrace the advice ^^
 
12:59 PM
speaking of code reviews: google.com/maps/place/… and google.com/maps/place/… in case you havent seen it yet.
 
@tereško it's hard to parse this sentence. Seems like unexpected "classes" token after "...because he", verb expected
3
 
@nikita2206 fuck
sorry
 
my brain has already melted
 
@Gordon it's already gone
 
1:00 PM
looks like you have to swap places classes <-> named
 
@FlorianMargaine still works here
 
good weekend to everyone
seeya
 
lata @SergeyTelshevsky
 
lets try again
that guy must STOP doing code-reviews for my project ... the latest "advice" was, that I should look into learning to use DateTime, because he saw classes named "day" and "month" (in presentation layer) in the activity-scheduling part of the codebase .. which was especially annoying since I had spent past 24h doing mind-bending date calculations in model layer
 
1:17 PM
@Gordon everyone at Apple right now:
 
1:40 PM
Yeah date arithmetics can be quite hard to do (although DateTime is usually helpful, maybe your use case was different not sure)
Btw I couldn't load so chat for past 30 minutes, dunno what happened
 
Hello, does anyone know how I can order mySQL entries in ABC order? I tried ORDER BY 'x' ASC but it didn't work
 
@chronotrigga ORDER BY is the right way, probably you had some mistake in your query
 
that's weird
it's lined up exactly how its displayed in my mysql
 
@chronotrigga you can show the whole query so we can see if it has any errors
 
"SELECT DISTINCT Category ORDER BY Category FROM 'Main Database'"
 
1:52 PM
@Danack I'm glad you know this bothers me :)
 
@LeviMorrison Yep. This is one of those cases where if I could be arsed I would say something, but it's so much easier to just point you at it ;-)
 
@chronotrigga this doesn't seem like something that would work at all
 

« first day (1651 days earlier)      last day (3296 days later) »