« first day (1021 days earlier)      last day (4153 days later) » 

09:00
lol
I see who's the more favourite :)
I like the bad joke cat better. but shes repeating herself quite often
We0
We0
Hey gusy
guys
have any of you upgraded to php 5.4
Yeah, default php on apt-get on linux is 5.4.3 I think
No, 5.4.6
that's a bit dated.
09:03
^ clarified
We0
We0
had issues with preg_match
blame your pcre library
We0
We0
jack talking to me?
@We0 What Is the issue(s)?
We0
We0
anyway what is the best way go about fixing deprecated preg_match
preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
09:05
@We0 see ChangeLog note in Manual. Use preg_replace_callback
Or, y'know, read the error message
We0
We0
I know just wondering what would be the best way to approuch fixing it
I did
I know how to fix
just wondering best approach
it is for a lib I didn't write
That is the best approach.
We0
We0
line by line? Preg_match replace with correct way?
that type of thing
@We0 Do you mean 5.5?..
We0
We0
09:07
5.4
lol
If you want to know what the best way fix a specific line is then we need to see the specific line ;-)
/e isn't deprecated in 5.4
It's not?
It's deprecated in 5.3 I think
We0
We0
09:08
I upgraded to 5.4 this morning and got this msg
Oh the manual says 5.5
Oh yeah
> This feature has been DEPRECATED as of PHP 5.5.0. Relying on this feature is highly discouraged.
I'm sure that's wrong though
We0
We0
anyway, I know I can go line for line and fix it
or maybe using eclipse PDT
09:08
@DaveRandom 3v4l.org/gGIFY
We0
We0
do a pregmatch across the lib
Do you guys do namespace, docblock, class .. or .. docblock, namespace, class - with the docblock being for the class
@We0 if it's not your lib, check if their current version fixes the issue already. if it doesnt or you dont want to update the lib, fix it yourself and consider sending them a Pull Request. Alternative: use another lib that doesn't use that security vulnerability
We0
We0
and fix it with one go
out dated lib for Yoo
Yii*
@DaveRandom Hmm, there's no deprecation notices in 5.4 =/
09:10
@salathe Yeh I just tested it. It's weird that everyone here thought it was earlier though
We0
We0
plugs an cURL API call onto Yii's deActiveResource
Must have been soft-deprecated
@We0 is it on Github?
@DaveRandom Like mysql_* it has been discouraged for a very long time, but didn't throw a deprecation message
We0
We0
nvm i have 5.5
WTF UBUNTU
09:10
@DaveRandom Well, there's always been this:
> Caution: Use of this modifier is discouraged, as it can easily introduce security vulnerabilites:
We0
We0
upgrade to 5.5
@We0 Ohhh I understand what you're saying now, you mean how to do the actual changes rather than what you change it to
31
Q: Database design for audit logging

jbochiEvery time I need to desing a new database I spend quite some time thinking on how I should set up the database schema to keep an audit log of the changes. Some questions have already been asked here about this, but I don't agree that there is a single best approach for all scenarios: Database...

We0
We0
@DaveRandom yeah exactly, I know what it should look like, just thinking of a way to fix it automatically
You should grep the project for preg_replace and do each one individually, often the code used in an /e expression is not the best way to do it with a callback I have found
There can't be that many of them (and if there are then the lib is probably flawed in its design)
09:12
Would it be a good idea to use this approach and implement logging of all my entities in such maner?
Why?!?!?! Would somebody install ubuntu on a server????
We0
We0
dev
not server
server is next to upgrade :(
Your dev env should mirror your production env as closely as possible ;-)
We0
We0
need a sysadmin
And I log in and what do you think:
We0
We0
09:13
agreed
> *** System restart required ***
Hmm, how would one create a system that rotates encryption keys? Perhaps a cli migration script or something?
WTF!
We0
We0
but product not live
what is a "restart"??
09:13
@We0 £50/hr ;-)
We0
We0
@DaveRandom start up, I already earn minimal wage :(
I am working with zend_Gdata. I have auth token and refresh token
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
We0
We0
but thanks for help, maybe looking at each individual case and finding best fix is best Idea
@DaveRandom Cool, would you do my garden for that fee as well? :)
Why the hell would I want to retsart a server?
09:15
I want to get the client using auth token instat of user and password
@PeeHaa To get that fresh restarted smell :)
We0
We0
here is the github link if you guys are interested github.com/Haensel/ActiveResource
@We0 Mass-replace of stuff in code without custom refactoring tools designed for that specific task is often a bad plan
gees
@We0 There's only one line in that whole project that uses /e
09:17
Btw, that header parsing function is a joke!
Where's the header folding case?
@We0 Also that line is basically just doing ucwords()
Exactly!
I want to do this but without email and password stackoverflow.com/a/10402165/430112
That is a truly terrible header parsing routine actually, why would you not just normalise to all lower/upper anyway?
Also, I'm not even sure why he does that ... normally, array keys are lowercased for that purpose.
Normalized, that was the word :)
09:20
I already created the access token and refresh token using google client api
I want to reuse that. Anyone have any idea
@Jack Plus the previous line has /m but doesn't actually assert start/end of subject
And it doesn't account for all the weird edge-cases that RFC822 permits (that spec is way too loose for my liking)
rdlowrey would explode if he saw that
-1
A: <output> vs <ul> in displaying list items

AnaMariaLet me keep this simple to avoid a lengthy answer. "output" tag is a new tag in HTML5. It is not supported in IE. So dont use it. PERIOD

lol
@DaveRandom Yeah, better not let @rdlowrey see that ... oops ;-)
@MadaraUchiha But IE is the <center> of the universe!
@Jack Damn you!
@MadaraUchiha I should tell you that you are going to be downvoted serially, she is the one who downvoted @Jimbo
09:26
Haha, oh that one again
Mentalist.
Haha, she deleted her answer
@Mr.Alien She's in your country - go find her and give her a good seeing to
(and by that I meant chat about IE)
hehe ^^
@MadaraUchiha Why?
Also why is that tagged C++ and C#?
09:32
@Jimbo no please, I've already got too many sending mails on my id for help, perhaps, I will help her if she would've uploaded her pic ;)
@Abhi refresh the page
The accepted answer talks about C++, the question talks about C#, that question has an identity crisis
@MadaraUchiha :)
@DaveRandom Possible to convert C# get,set code to C++ <-- it's the question name
I'll just go crawl back under my rock
09:34
@MadaraUchiha that thing happened same with the css selector question yest, users tell him to google, they disgrace but don't help
@Mr.Alien The (deleted) comments on the question suggests that he has searched and researched, but he had no one to help him.
@DaveRandom You do that :D
@MadaraUchiha yes, but no one helps anyways, imo, that question is far more better than other questions which gets zillions of upvote here...
@Mr.Alien That's what I'm saying.
well, no 1 can help it...
09:38
1 message moved to bin
@PeeHaa The hell? It wasn't even a gif!
@MadaraUchiha People have chat open in the work place. Bosses may frown upon seeing pictures like that while trying to tell them it's a professional chat
@PeeHaa Reasonable. Carry on.
:-)
09:41
@MadaraUchiha delete the answer...
@PeeHaa This is a professional chat?
@Mr.Alien Already have
@salathe I believe it is (most of the time)
@PeeHaa With the top pinned message being "Happy International Beer Day", I doubt we can call this chat "professional" :P
The was a bug in older IE versions (<=7 IIRC?) whereby it couldn't cope with rules that specify multiple classes on the same element and it would always use the last class in the declaration, so in the example above that would be like writing .h1 - but who cares about old IE versions? :-P — DaveRandom 38 secs ago
09:43
LOL
Just been downvoted
I think that noob took revenge again @Mr.Alien
I'm guessing that's the issue and the question has a h1 vs h2 typo
@Jimbo you commented on her answer?
I'm just trying to find a ref for the bug but I know it existed
@Mr.Alien Yeah, saying that anyone who chooses IE is being killed by natural selection
09:45
@Gordon Can you tell if someone downvoted an answer (maybe same serial downvoter you warned last time)?
@MadaraUchiha Drinking beer is my profession? Also My boss likes beer too
@Jimbo you messed up with her, now pay for your bad deeds :p
@PeeHaa PEEHAA! WHAT IS YOUR PROFESSION?!
PeeHaa: BEER! BEER! BEEER!
@Duikboot refresh the page.
@Mr.Alien She is a character of questionable fortitude with protruding genitalia on her forehead.
09:47
ahahahahaha ^^^
rofl
I wonder who thought it would be a good idea to initialise the session configuration option without checking if they're already present ... Symfony logic?
I am in office, if anyone will see why am laughing looking at the screen, they will doubt somethings wrong :p
done
I am now working on an online server with odbc installed.
For some reason I keep receiving 'driver not found' error what could be wrong?
Smallest error message I've ever seen.
$pdo = new PDO('odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=data.accdb;Uid=');
09:50
@Jack clone & blame
odbc = oh dear bloody crap
@Duikboot Well clearly the server doesn't have that msaccess driver installed
"oh deer, blood crap"
We0
We0
Hi peeps
@Jack It's not really ODBCs fault that most of the drivers in existence for it are crap
We0
We0
09:50
anyone know what exactly this does?
/(?<=^|[\x09\x20\x2D])./e
my regex suck beyond words
@DaveRandom Hmm, I'm not so sure about that :)
We0
We0
plus hexadecimal
hmm that sucks
@We0 Look-behind assertion for start of line or space-like characters.
@We0 That expression replaces any character preceded by a space, tab or hyphen with the uppercase version of it
09:51
is it hard to install a msaccess driver?
The regex just finds the candidate characters
@We0 google: "regexp positive lookbehind"
We0
We0
thanks
now I just need to figure out why it is doing it
@tereško Sounds like a plan :)
We0
We0
I hate myself for doing this, but it is friday
We0
We0
and been having the week from hell
$match[1] = preg_replace('/(?<=^|[\x09\x20\x2D])./e', 'strtoupper("\0")', strtolower(trim($match[1])));
@We0 it's a really, really stupid thing to do
We0
We0
needs to be done with preg_replace_callback
not my lib
It's normalising the case of HTTP headers in a really stupid way
hi guys, how would you convert this: 0:02.779 to 2779 (basically it's time to milliseconds)
We0
We0
09:54
don't honestly give a shit anymore
need to get this shit done
It should just strtolower() them and be done with it
@DaveRandom I am on a linux server that will prob. cause problems?
@tereško Hmm, it's purposely done because of this ...
@sathia strpos, substr, str_replace
We0
We0
@sathia str_replace(array("0", ":", "."), "" $str)
09:55
@We0 Just replace it with preg_replace_callback('/(?<=^|[\x09\x20\x2D])./', function($match) { return strtoupper($match[0]); }, strtolower(trim($match[1]))); and be done with it then It is a stupid thing to do but going through the whol lib to make sure that doing something more sensible won't break anything will take a lot longer
We0
We0
@DaveRandom I love you bru thanks
@tereško thanks for the suggestions, i didn't mention it's the result of an external program and the numbers are always varying
basically i'm trying to parse this format into milliseconds
Are there other solutions to achieve my result? I have to use msaccess data in a web-app. The database is used on a webserver and got saved several times a day.
@Duikboot I've never tried to do that because it is a silly requirement, it's quite possible that you simply can't do it
0:01.400, 0:01.089 = 1400, 1089 and so on
09:57
Why do you have to use Access? It's a junk storage engine anyway and Jet sucks balls
maybe I could just (int)$var and then * 1000
We0
We0
@sathia str_replace(array("0", ":", "."), "" $str)
It has to start from MSAccess.
@We0 it could work, let me see
Could you think about a solution Dave?
09:59
@Duikboot I looks like you're boned. MS don't produce anything, there are a couple of 3rd party ODBC drivers for linux but they are commercial and expensive and probably not very good. You have two options: use a different DB engine, use a windows-based server. The latter option sucks badly

« first day (1021 days earlier)      last day (4153 days later) »