« first day (1361 days earlier)      last day (3813 days later) » 

15:00
@ircmaxell pong
@DaveRandom classic mistake :-D
@JoeWatkins So, send an email to [email protected] asking for a concessionary ticket ( they are usually around 70-80 pounds). And we'll work out taking care of that 70-80 pounds ;-)
@ircmaxell Regardless of politics or morals that's a very sad video :'(
Poor polar bear.
@LeviMorrison yeah... :-(
@Fabien install console2
15:03
:'( I'm still sad.
Can someone find some kittens doing something cute to cheer me up?
@salathe ? Please?
@ircmaxell I done that
@LeviMorrison they are hiding, can't find them ...
@JoeWatkins cool, do you also need a place to stay? Or are you close enough to make it there without?
I'm 270 miles away, will need somewhere to stay ... think I can find somewhere though between now and then ...
it'll take me a day to drive there ...
ah ok
well, I'll ping Jeremy (the organizer) and try to see if we can get you a ticket :-)
15:10
awesomesauce, thank you ...
foo
@JoeWatkins you can crash on my sofa if you need to :-)
@DaveRandom moar awesomesauce, thank you ...
@NikiC you should try to come as well to PHPNW in Mancester :-)
15:16
Cheers @tereško @ircmaxell I shall do so the moment I get home.
@LeviMorrison I don't have kittens but I have a playlist of lorikeets being happy
I don't remember you being on Windows 8 @tereško
work pc
How do you find it? The tablet OS.
user895378
Since we're offering couches: if anyone wants to spend a weekend in Charleston, SC (pretty much the best city on planet earth) let me know. I've got your lodging covered.
15:19
:-)
Room 11 Couch Surfing.
I have a class method. I'd like to use it as a callable. Is this possible (without calluserfunc)
@rdlowrey How close is that to an airport that would fly to Switzerland?
user895378
And I mean that in a, "seriously, book a flight to Charleston and you'll have your own place to stay" kind of a way.
@Jimbo [$obj, 'methodName']
user895378
15:20
@LeviMorrison ha :)
I guess I'd offer my couch services for 'God knows why you're in Southampton' too.
@LeviMorrison It'll require a parameter or two;)
4/5 * though. Awesome couch for sleeping on.
@Jimbo No worries:
function (...$args) use ($obj) {
    $obj->methodName(...$args);
}
If you want to bind some of them already, that's cool too:
function (...$args) use ($obj, $alreadyBound) {
    $obj->methodName(...$alreadyBound, ...$args);
}
Ahh, it's kinda like a proxy via use
15:24
@rdlowrey I assume that's short for, "Not very close"?
I need to figure out how to strip out two (or 3) characters from this: function g(a){return(b=a.replace(/g\+/g,'+g'))!=a?g(b)+1:0}
user895378
@LeviMorrison It's close to me :) my family has a couple of places in downtown Charleston (about 90 miles south of me) that are really nice. Makes for a great weekend. It's a really lovely city and you can walk around everywhere.
I don't think I can name one thing in SC.
user895378
Charleston is where the American civil war started back in the day.
user895378
Because: South Carolina.
15:28
heh. American history isn't historical enough for my tastes.
Give me a nice Mayan civilisation and you got me.
Why am I getting a confusing time stamp in PHP?

$date = new DateTime();
echo $date->getTimestamp();

I get:

1404833674
I want 7/8/2014/11:37:58
@BDillan That's the expected behavior.
@BDillan Then you need to use format()
@BDillan That's not a "timestamp" that how you define a "timestamp".
15:37
Unix time (aka POSIX time or Epoch time), is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds. It is used widely in Unix-like and many other operating systems and file formats. Due to its handling of leap seconds, it is neither a linear representation of time nor a true representation of UTC. Unix time may be checked on most Unix systems by typing date +%s on the command line. {| class="wikitable selfreference" style="text-align: center; margin:...
I want to insert into a mysql table a DATETIME
which is the current time
1 min ago, by Dan Lugg
@BDillan Then you need to use format()
Like

$date = new DateTime();
echo $date->format();
?
Did you read the man page for DateTime::format()?
I need to put something like "U" in
nvm $date->format('Y-m-d H:i:s');
How can I convert the datetime object into a string so I can querry it

$date = (string)$date; //doesnt work
query it into a DATETIME
@BDillan $date->format($format), passing in an appropriate format string
Is there a simple way of finding out what packages contain files such as 'libgd.so' ?
$date = new DateTime();
$date->format('Y-m-d H:i:s');
$date = (string)$date;
If I remove the last line it when querrying it it will still say it is not a string but a DATETIME object
even when its formmated
$string = $date->format('Y-m-d H:i:s');
$date->format(...) returns the formatted date
15:54
        guys.. I know this is easy, but for some reason I'm not getting it right. I need to sum hours, but for some reason the outputted hour is wrong;
    $a = strtotime("08:00");
$b = strtotime("03:00");
$c = date('G:i',$a) + date('G:i',$a);
#$c = strtotime($a);
echo $a." ".$b;
echo date('G:i',$a); // 8:00
echo date('G:i',$b); // 3:00
echo date('G:i',$a + $b); // 14:00 ||| This should be 11:00
can some one tell me what I'm doing wrong?
$string managed to fix it
awcrap, totally messed up with ctrl+k there.
user895378
I've become embarrassingly addicted to Clash of Clans over the past week.
@MoshMage $a is 1404799200......i.e. the time since 1970 or whatever. Not the hours since midnight...
soooo, how do I burn this bridge? :o
15:59
Cats are such graceful idiots.
ok. using the right keywording helped me find the solution, "calculating" instead of "sum" did the trick :)
thanks anyhow @Danack :)
16:11
@salathe you say that like you're surprised ;-)
Wonder what the record PHP compile time is.
@salathe can you edit that cat to disappear?
@Fabien mine is ~45 seconds
Damn. That's quick. Why so fast?
16:27
for crap sake. I'm hitting my head against a wall so bad I'm starting to go nuts. This is supposedly easy to do, why can't I calculate 08:00 plus three hours?! :|
@ircmaxell Trend Micro blocked as malicious site :-S
that sucks
I'll just read it when I get home :-P
@MoshMage 11:00
:-P
16:40
3v4l.org/UQX8S @MoshMage
user895378
@ircmaxell Yeah that pretty much summarizes my motivation cycles. Crazy productive for weeks/months at a time. Then days/weeks of zero motivation.
@rdlowrey Sounds like me too.
Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /in/UQX8S on line 3
/me face-palms
I think thats just burnout. I find that if I take a vacation every few months I run into less of it.
16:44
What was the thought process when, instead of just making DateTime immutable itself, DateTimeImmutable was introduced? I mean, realistically, couldn't DateTime::modify() just return a new one?
@DanLugg backwards compatibility
@ircmaxell In what respect though? Identity comparisons?
user895378
@LeonLotus Yeah I try to smooth it out but the problem is I get really into what I'm working on and go nuts on it. I exercise regularly and eat well ... I'm not unhealthy, but sometimes the motivation goes away inexplicably.
The API wouldn't change.
@DanLugg yes it would
16:45
@DaveRandom lol you teaser xD edit: oh you actually made that. Thanks. Though it's not exactly what I was looking for it surely did end my frustration
since modify would no longer modify, a ton of code would break that expected it to modify
@ircmaxell Shit, yea.
The return is just for chainability.
I just went apeshit on the code and changed the value=date('fmt',$time) to $time [that's a timestamp] and ill subtract the two after. should be safe :x
@ircmaxell I guess I didn't think about that because I've always treated it with immutability anyway.
Though that wouldn't be an BC break in the API per se, rather in the state implementation, it'd still be modify(string):DateTime
guys, I want your opinion in something. I'm noob at PHP and I was trying to make a simple CMS for my website
I don't want to use wordpress or anything like that, I want to code exactly what i need... So I did the following
16:52
Lucas: don't! (well, do it if you want to get to know more of PHP, but as someone who thought the exact same thing as you - don't.)
@MoshMage What is you input? User data?
@MoshMage it's almost ready already, it's for one specific website only
here's what I did
@DaveRandom it was hardcoded from 00:15 to 04:00 (or something)
@MoshMage Look at DateTime::createFromFormat() then
I changed that to the corresponding timestamps/strtotime and I'll test it tomorrow (as database guys are no longer there)
why on earth the database guys are saving a DATE format instead of TIMESTAMP is beyond my understanding)
16:54
(config.php)
$title= "Some title";
$subtitle = "Subtitle Text";
[... there's around 200 vars in config.php]

(somepage.php)
<?php require config.php ?>

<h1><?php echo $title ?></h1>
<h3><?php echo $subtitle ?></h3>
it's been done like that and it's working fine for what I need
the problem is, that is static, it's not user-editable yet
only if you go to config.php and change it there it works
@LucasB you could use slim framework, or the likes. but if you're serious about that have a look at my attempt at doing what you thought - github.com/moshmage/motoserra
so I'm doing an admin panel using fwrite, to write a new config.php everytime user makes a change
and do yours from MANY examples on the net. Seriously, download frameworks and read dat code like's pictures of booty
@MoshMage do you think I should do it using MySQL?
it depends. mostly on what you prefer, but read about data-storage and make your decision from there; Sometimes you don't need a mysql database, a json file will do just fine
other times a json file is not enough
17:03
@MoshMage In MySQL Timestamp can't store dates before 1970, or after 2038. And I'm guessing that your database guys are actually using a datetime, not a date. dev.mysql.com/doc/refman/5.1/en/datetime.html
Evening
What does PDOStatement::fetch returns if there's no row to fetch? The documentation doesn't exactly explains it.
Documentation is here.
It says:
> The return value of this function on success depends on the fetch type. In all cases, FALSE is returned on failure.
Is "no more rows to fetch" considered failure?
@Jefffrey A lack of rows to fetch is a failure, so fetching rows beyond the last will indeed return false.
I see, thanks.
how can I make php ignore $ in a variable value? eg: $var = "some$thing";
and treat is as a string, plain text
use single-quotes instead
17:10
@LucasB us2.php.net/manual/en/language.types.string.php - read up on variable interpolation
@cHao oh, thanks!
@Charles thanks
user924016
17:21
=[
Wow, that's probably the first time I see blatant crap on css-tricks... :\
Continuing from that 'Developing Difficulties'. I've been a lot happier since coming back from a vacation. I think I'll be even better once I get my leg sorted and can play basketball again
@Fabien Just have Naruto touch you and you'll be good to go
lol yes.
The guy can regrow eyes, what's a small leg problem to him?
17:33
I wish. :P
Part of my believes this is why i think there's progression from dev'ing to leading.
@Fabien There is progression but also regression
How to make a real time system with PHP?
I have some options, like using Pusher
But I would like to implement it on my own
3 messages moved from JavaScript
Yes... I've progressed in ability but regressed in responsibility. Though that's changed a little with me as acting noob sys admin
@SasankaPanguluri With the lack of any other information
17:35
:-(
I need my powers :-( @ircmaxell
He's right, it's rather frustrating :|
People (me) post gifs and forget to edit the onebox out
Then if there's no gif police around it's stuck there forever!
user895378
1 message moved to recycle bin
Hence the auto-preview-remove feature after 2 minutes.
I honestly don't get why people hate on gifs so much. -- really. I mean, especially if you aren't even in a conversation. People just pop in to say BURNINATE THE GIFS.
17:47
I have an extension that on hover of imgur loads the image anyway.
I like imgur's mobile interface solution to gif viewing - a "play" button appears.
user895378
tumblr does the same thing.
user895378
They just convert it to an mp4 IIRC
user895378
18:01
> On Wednesday, July 2, we became aware of unauthorized digital certificates for several Google domains. The certificates were issued by the National Informatics Centre (NIC) of India, which holds several intermediate CA certificates trusted by the Indian Controller of Certifying Authorities (India CCA).
user895378
Nice. NIC.
@rdlowrey Odd, I'd figure it'd be easier to grab the first frame of the gif (or a selected frame) and just swap src's.
user895378
Well MP4 has significantly better compression than GIF so for a large outfit you're saving storage space at a much improved rate over the original GIF.
@rdlowrey True dat.
Easier !== efficient :-P
There's a lot of html5 video from gif converters these days. Example
@DaveRandom Add 'The Wire' to the list. Especially if you liked The Sopranos
They've edited it to make some sort of sense.
19:30
Really going for it @tereško :P
are you surprised ?
heh not really.
that's an interesting article there on methods of staying motivated
There can be only one!
@JoeWatkins which one?
@Fabien Also, your hypothesis holds true decodingweb.com/room11.php?word=bullshit
@DanLugg Oh wow, I'm pretty high on that list :o
lol
19:44
the one you put on reddit
I commented on it ...
Our resident Wordpressian has arrived.
I think i'd be happiest working for a company that let me work from home, pays a good salary and only cares about well thought out deadlines being met properly. #thedream
I do enjoy working where I currently am though, but that's 0/3 on that criteria :P
I don't even have deadlines
I don't see your comment, must not be approved yet
19:51
@Fabien I'm at -4 / 3 because there's more things that belong on the list that I don't have.
yeah awaiting moderation it says
reddit? moderation? ;-)
@DanLugg heh bad times. Be your own boss seems like a better singular goal.
I do the same thing supermarkets do to keep stock fresh; I rotate.

I find it extremely helpful, approaching necessary, to have personal projects … I invest time in PHP, projects my friends are working on, my own projects, reading and looking for kittens on the internet.

That does a pretty good job of keeping me moving at a reasonable pace, nobody can go a million mles an hour all the time; if I have a week where I don’t find that many pictures of kittens, I’m not that hard on myself, afterall there is always next week and always more kittens …
19:56
What's google like for strict working hours? Role dependant? Flexi? normal 9-5?
or top secret :)
@Fabien really flexible
I imagine most people just keep regular hours though.
relatively
I do 9:30-6 normally
I hate getting up early but given flexi I would probably do 8-4:30 given the opportunity. Something about the evenings being longer appeals to me.
I like getting to work later...
20:06
@DanLugg hehe, I've found my leadership word :p
I wish our jobs were a little more active though. I lost 2kg on holiday while eating more food than I usually do. Just keeping active helps a lot with mental and physical health.
thinking must use energy, think more ...
Mental energy sure :P
I've walked over 2k miles in the past 1.5 years
tbf my work is a 3 minute walk.
20:10
no I mean actual energy, more brain activity = more energy to run brain, that has to be the case ...
Well we strength mental pathways.
Ehmmm ehmm Whaaat? prntscr.com/40q552
20:25
holy crap, Germany up 3:0?
Germany is playing beautifully
4
I hope Brazil used lube.
@Fabien From the looks of it, they haven't :o
20:33
Wonder what the bettings odds are
well, the over-under is insane
wow, it's late already
time flies when you're HAVING NO FUN AT ALL refactoring
Well, I generally have fun refactoring.
It's kind of like yardwork; you can see that the result is cleaner.
3
When it's your own code sure :)
20:48
@LeviMorrison great analogy
Schlaaand \o/
0-5 at half-time? o.O
@Gordon Holy shit that was some thorough rape
@Danack that's usual for Germany. They just were the last matches worse than usual.
21:02
Hi room I am learning mysql and I am creating a table

`CREATE TABLE `school`.`batchamates` (
`Roll_No ` INT( 10 ) NULL ,
`First Name` VARCHAR( 30 ) NULL ,
`Second Name` VARCHAR( 30 ) NULL ,
`Phone` INT( 10 ) NULL ,
`Address` VARCHAR( 100 ) NULL ,
`Company` VARCHAR( 40 ) NULL ,
`Percentage` INT( 2 ) NULL ,
PRIMARY KEY ( `Roll_No ` )
) ENGINE = MYISAM CHARACTER SET utf8 COLLATE utf8_unicode_ci `

this is giving me error #1166 - Incorrect column name 'Roll_No ' why is this an error
21:17
@RegisteredUser looks like the name has a trailing space. try removing it
Can anyone tell me what's wrong with this? pastebin.com/12GBhqTN
@RegisteredUser Also, column names with spaces in them are not a good idea.
It creates the file, everything all right, but stops at that error
I strongly recommend (though other people disagree) using standard variable spelling for column names e.g. 'secondName'
@RegisteredUser yep, there's a space on `Roll_No `
21:22
@LucasB works fine here
@chao I'm thinking in leaving it open
the file gets generated, and no notices about resources vs null
you might want to check the bytes of the script file...make sure there's no encoding stupidity going on. but aside from that, it should work
@cHao I'll try, thanks :)
21:45
@LucasB Yes. Don't do that. Please. Use a proper config file format.
At the very least, use var_export()
When you want to allow the user to change the configuration details, that's generally when it becomes time to save the config options in the database...
Although of course of those config options relate to how to connect to the database, you have a chicken and egg problem. But I would argue that those are config options that the user should not be able to change through the UI
@Fabien It's on the list, and quite high up as well
As is Deadwood, which someone reminded me about today
so, wtf?
@NikiC that's the right commentary.
21:57
@SecondRikudo Forza, mannshaften!
@PeeHaa I think we have enough pointless gifs. Also that @Feeds guy is a dick. Also bah humbug.
22:13
@Gordon OMG OMG OMG OMG OMG OMG
@SecondRikudo LULZ!
Ow wow look at all that oil royal dutch shell found for lego! Glad they think of the kids! Good guy shell
@LeviMorrison Following that analogy, the yardwork is easier (thus more fun/tolerable) when someone hasn't built a fence zig-zagging down the middle of it, or tried to plant the trees upside-down.
@PeeHaa now get robben going against argentina :)
Guess what bitches!!!!! pieterhordijk.com cc @DaveRandom
@Gordon Already on it :P
GJ Peehaa
And it did only costs 150 euros to get it back :|
Filthy domain rapists
22:27
How are your DB's?
Only single db. I have been dicking around parsing the ibdata file and it looks like there is a way. As it currently stands I think I need to "only" find some indexes and I will be able to recover tomorrow
@PeeHaa a domain for 150euro O_O?
wasn't it yours to begin with?
@HamZa I may have let the thing expire for some reason so it was put in quarantine. The only way they were willing to give it back was if I paid the fee extortion money
damn :/
I don't think that is correct and I will tell them it, but first thing was for me to get the domain back online
22:33
good luck
@PeeHaa thought it was 125?
How long was it expired for before they snapped it up Peehaa?
@Fabien It was (I thought), but that was excluding VAT
:|
VAT bastards
@Fabien month
@Fabien yes
A month! Damn :P
You check your site < 12 times a year? :P
22:37
@Fabien Ow no. It was expired for a month, but they kept it online for some reason
Hence I only noticed last week
Ah furry
Should find out who they are and mock them if they're from Brazil
@PeeHaa Y U NO have sticky footer? :P
@HamZa At the time it was too much work to move divs. And well it kinda stayed that way :)
I see
Sticky footers are annoying tbf
22:48
@ircmaxell lol
Hi ! There is someone you know PharData ? php.net/manual/fr/book.phar.php I just want to know if there is a limitation of the file. I use PharData. If i try with 1,2,5,7 Go all fine, compress is ok but with more thant 8 go it doesn't work
there is a limitation or it's a bug ?
can't fine in the manual
user924016
42
@Martialp 8 what?
user924016
42Go
22:53
Where you find this ?
@RonniSkansing Stop being annoying when someone is pretty obviously not a native english speaker.
user924016
No seriously, @Martialp how does it not work? errors,warnings etc?
@Martialp Do you mean 8 gigabytes?
@Danack yes
Go in french is GB
8Go => i mean gigaoctet , @HamZa ok !
22:55
@Martialp english people are used to "byte" instead of "octet" :)
@HamZa didn't know ! :)
@Martialp That's really not too surprising that it breaks. The underlying compression system can be either zip or tar (I think) and zip has a max size of 4GB - en.wikipedia.org/wiki/Zip_(file_format)
It'd be a much better idea to split your phar file into an executable and data files. Not only would it work, but it would mean you could distribute updates to the app more easily.
i use tar for the compression
Oh - tar does have a max size of 8 apparently. en.wikipedia.org/wiki/Tar_(computing)
(I'm reading that page now...apparently you can get bigger files, somehow)
#BraDui http://t.co/0eqXMhSsRA
22:59
"files with unlimited size (the historic tar format is limited to 8 GB) " seem logic, i can compress with 7Go but not 8.2Go

« first day (1361 days earlier)      last day (3813 days later) »