« first day (599 days earlier)      last day (4346 days later) » 

2:00 PM
before
 
@t
@truth
 
Aye
 
@paul
 
@OnlyPritesh don't ping people individualy, just ask your question, if somebody can help, they will
 
2:01 PM
@hakre
ok
 
unless they're personally fine with being pinged, I suppose
 
@Paul I wonder if igbinary is better than the serializer used by facebook - or if it's even the same?
 
@hakre I have no idea on that, I haven't done much serialization up till now though. Happy new day to you.
 
You ping me to press your question? You are on my blocklist and can ask and ping your finger-tips off.
 
@markustharkun Agree, if you see something bad, just post the question. People will make up their own mind
 
2:17 PM
@ircmaxell ok
 
anyone familiar with github issues tracking? Trying to figure out how you can quote a previous comment..
 
user50049
@ircmaxell pong
 
wanted to ask your opinion on a question: stackoverflow.com/questions/10915398/…
imagine we didn't have a duplicate
that's obviously a question that a trivial search can find. It even uses the same keywords as the docs on php.net
IMHO, it doesn't belong on SO because it's a direct doc reference. But I'm not sure how it would be closed if not a duplicate. Any thoughts?
 
Just made an edit: preview.php.net/manual/en/…
 
@hakre what edit?
 
user50049
2:29 PM
@ircmaxell I pushed a little hard to get a general reference close reason on SO, but ultimately it just came down to the definite possibility that the reason would be used incorrectly. In this case though, it is general reference.
 
@ircmaxell The description of the parameter 1 and 3.
 
user50049
The person obviously just didn't know what to search for, or didn't search at all.
 
user895378
@hakre Is there a reason to use the is_a function instead of the language construct instanceof?
 
My english might not be that well, so normally I get them edited again.
 
@TimPost Sure, but general reference isn't a close type. I don't think too localized fits. So I'm just not sure...
 
2:30 PM
@rdlowrey I think this does not work: 'StringOfClassName' instanceof ClassName - which was the reason why it's use in that answer.
 
user895378
@hakre Ah, I see that now in the manual.
 
$ php -r "var_dump('iterator' instanceof StdClass);"
PHP Fatal error:  instanceof expects an object instance, constant given in Command line code on line 1
 
user50049
@ircmaxell What I basically found was, extremely simple questions almost always have a duplicate. So, for the small percent that don't, well - they just decrease that small percent.
 
@TimPost I can accept that. I just wanted a mod's insight. Thanks!
 
@ircmaxell We could upvote the one who answered up to the sky so irregularities are triggered for moderators which then come to chat here and we will find a solution quickly then ;)
 
2:33 PM
@TimPost is there a chance for a 'It's in the manual' closing reason?
 
user50049
@ircmaxell However, if you see a pattern of the same user consistently failing to put any research into their questions, we'd appreciate a flag as the user needs to be contacted at the least. I do often find myself wishing that I pushed harder to get "General Reference" as a close reason, but pushing that kind of thing past Jeff and Joel at the same time just wasn't something I could do.
 
Oh of course
 
user50049
@markustharkun That would be General Reference, and we do have that on some of the sites. But as long as Joel is steering this boat, we're not going to get it on SO. To be honest, he's right on every point he makes against having it .. and there's just not enough positives to tip the balance.
 
stackoverflow.com/questions/10915398/… - this does not answer your question @ircmaxell, but it's a duplicate and we can delete it.
 
@TimPost understand...
 
2:35 PM
@hakre That's the case for that patch too, if it doesn't get committed by this evening... ping me and I'll look at it. :)
 
@salathe and @hakre: I'm around. When you think it's ready, put it up for review and I can commit it (after reviewing it)
 
user50049
@markustharkun It looks like 'our' way of dealing with it is to let every valid question be asked once and in theory just close the rest against it. The problem is, you can't always find the dup you're looking for :)
 
yep
@hakre side note, $WP is a bad variable name, not self documenting (in the example)
 
How can I determine if a specific DateTime is between Sunday and Tuseday (for example)?
 
user50049
But, the saving grace is extremely basic questions are often very poorly asked, poorly formatted and barely comprehensible. So it's often possible to do something about them based on those characteristics.
 
2:39 PM
A specific DateTime is always between Sunday and Tuesday.
 
@salathe One in a million is next tuesday
 
user50049
You forgot leap tuesday
 
@ircmaxell I finished my part. Where should I put it up for review?
 
@hakre right click on the left side. There should be an option to promote the patch
@hakre: what's your username on edit.php.net?
 
@ircmaxell anonymous. you mind find some hanskrentel@yahoo mail addy there.
 
2:42 PM
which anonymous
there are a bunch
 
@ircmaxell anonymous #13349
 
no no no, its anonymous #1337
 
user50049
@ircmaxell Are you going to nominate in the current election? I half expected to see your hat in there by now.
 
@TimPost no
 
asked the same question yesterday
 
2:44 PM
I was half tempted to, but now after what happened yesterday, I really don't want to...
 
What's a faster alternative to: $array = call_user_func_array('array_merge', $arrays);
 
you should, just because of what happened yesterday
 
@Christian $array = true; // much faster
 
user50049
Yeah, that all rather blew up in over protracted proportions.
 
@salathe Really?
 
2:47 PM
@Christian Totally.
 
What I'm pissed about is not what blew up. It's that almost all of the mods jumped on the "they must be stopped" bandwaggon without even stopping to understand what happened or the backstory
 
@salathe Well, perhaps, I should have mentioned that $arrays is an array of arrays. Maybe my variable naming was off, or something. :)
 
@Christian: look up the return value of array_merge
 
@ircmaxell "Returns the resulting array. " ?
> Merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array.
 
Oh, good point. I though it was a reference function
 
2:49 PM
@hakre The ideal approach is to make some changes in the editor, when you're happy formulate a patch. Then raise a bug report detailing what is broken and how to fix it, and link to your patch in the editor. This last step is not usually done, and means that lots of patches just get left sitting there without being reviewed.
 
@ircmaxell :D
But yeah, I'm a bit confused. I'd have thought merging array values should be doable.
I think array_merge_recursive kinda does what I need...
 
@Christian why are you looking for a faster alternative?
 
user50049
I got to the party kind of late, and by that time it was just a pub fight
 
Or an alternative at all?
 
@salathe call_user_func_array() is uber slow :(
 
@ircmaxell Last I checked, it was.
 
no
 
@Christian Slower than what?
 
@salathe Than say, array_map, or a native alternative.
 
@Christian you make array_map() do what you're trying to do ;)
 
2:52 PM
@salathe Hey, I said I wanted to make it work better, not worse. :D
 
Why can't you just call array_merge() ?
 
@ircmaxell Fair point, but CUFA is what I try to avoid, always. Kind like eval().
@salathe Variable amount of arrays.
 
@Christian Do you even need to merge them?
 
Hmm, though I suppose I could just:

$final = array();
while($array = array_pop($arrays))
    $final = array_merge($final, $array);
 
@Christian I've abused call_user_func pretty heavily, and never did I find it to be a bottleneck worth optimizing out.
 
2:55 PM
@salathe Hmm. Now that's a good question :D At the end, I'm looping the final array, so I can just loop twice instead. Oops :D
@Bracketworks I've had issues with it. If you want it go really bad, try Drupal :)
Thanks @salathe
 
@Christian I've not used Drupal, so I'll take your word on it.
 
@Bracketworks OK, drupal relies heavily on functions.
If you want to say, create a menu, you need a function named yourplugin_menu()
It must be named exactly that, so drupal has to look up that function first.
 
that's likely going to be slower than CUFA
 
@Christian Yay for doing less work! :)
 
I have had the "pleasure" of working with WP; sounds reasonably similar.
 
2:58 PM
They 'fixed' it by caching functions.
@Bracketworks Hey, I've nothing against Drupal. But I've been using wordpress for way longer.
Wordpress doesn't work like that, at all.
Its actions/filters system is something else.
 
No, I mean it's heavily function driven; and uses convention over config for alot of crap.
Meh
 
@salathe Well I normally just press the edit link, edit and done. If there is a button (@ircmaxell told about something I was not able to find) or similar to signal, edit done, would be cool.
hi @Christian.
 
@hakre Hello Hans :)
 
@Christian You should call me hakre ;)
 
@hakre 'mkay
 
user50049
3:03 PM
Does a list exist somewhere showing what versions of PHP had issues with garbage collection?
 
@hakre Seen the other guy's response to your code
Good so far
@TimPost Never heard of such a thing.
Maybe internals?
 
user50049
I'm seeing a plain blog with no plugins (WP) shoot to 3GB usage per request
 
@Christian Can you put your changes to 1.2.x on github so I can merge them? I think I'll re-work on the PHP 5 branch and want to compile this so on 12th this is all done. already.
 
@hakre Yes, we could make the "approval process" much, much clearer. At the moment, everyone just makes their changes and hopes for the best.
 
@hakre Nothing to add so far, sorry. When I'm not incredibly busy, I'm incredibly tired :(
 
user895378
3:04 PM
Is there an easy way to strip unknown delimiter characters from the edges of a regex pattern string? Without writing a stupid regex to catch every possible delimiter?
 
@TimPost Did you try some logging? strace, php debugger, etc? (how do you know it's the gc?)
 
@TimPost 3GB of what? (bandwidth, RAM, disk space)
 
@webarto ram, I presumed...it's the realm of gc :)
 
user50049
@Christian Yeah, I'm doing it now (I don't know it's the GC, I'm still eliminating)
 
@Christian Haven't you added a patch in the wordpress trac? And if I compile a PHP 5 version, can you put it in your blog and check the error reporting?
 
3:06 PM
@hakre ooh, right. I tried the reporting, it works. AFAIK most issues eliminated.
 
user50049
@webarto Garbage collection typically frees memory :)
 
@TimPost The PHP memory limit should not allow that much, could be due to mysql library.
That blog has content?
 
user50049
@hakre Admins kept just .. upping the limit ...
 
@TimPost That are wordpress constants, see/compare WordPress Memory Limit fixed in 3.2
And which PHP version is that?
 
user895378
<---- glad he doesn't have to deal with WP. Ever.
 
3:09 PM
@TimPost I have a Hetzner VPS with small site, and RAM is always maxed. pokit.org/get/img/e7244c36c4a7992cf4fc910e6e8d5ec7.png Could be some caching algorithm or something.
 
user50049
@rdlowrey If only I could get to that point ... if only
 
@rdlowrey but WP is the paramount of PHP
 
@webarto oh lawdy
 
user895378
PHP is the best extension for WordPress! We've covered this in great detail :)
 
@rdlowrey The good thing about globals and WP is, you know it's used there ;)
The open closed principle in WP is at the FCGI interface.
 
user895378
3:12 PM
@hakre hehe
 
The only reason to change WP code is to change WP (the single reason to change)
 
good evening
 
@TimPost pokit.org/get/img/379f28bd2bbee6c3f0c472772b0dea98.png pokit.org/get/img/cbf7484131c7f98fd946ddcf0b809c8c.png I don't think my app uses 12GB or RAM :\ Interested to see what is stored there...
 
@Srim good evening
 
@hakre thanks
I am using highslide-4.1.13
for pop up
Its coming fine whenever I am using only one list of records.
 
3:14 PM
tell us more Srimanta Chakraborty
 
redacted, could be for drupal integration
 
NOw I have a page which is including two sub-pages and in both pages I am using that popup. The records are dynamic obviously. Now whenever I am calling the main pages which contain those two sub-pages and now the pop up is not proper for the second subpage
<link rel="stylesheet" type="text/css" href="css/highslide.css" />
<script type="text/javascript" src="js/highslide-with-html.js"></script>
<script type="text/javascript">
hs.graphicsDir = 'js/graphics/';
hs.outlineType = 'rounded-white';
</script>
I called this in the main page only
@hakre is it making sense to u?
@we
@webarto is it making sense to u?
 
Fine, smartass, how can I find if a specific DateTime is between 06:00 and 17:00
 
Stop closing things as too localized
That's not a localized question!
 
user895378
3:23 PM
My default RTFM close option is "Too localized" ... what else can you do?
 
Not constructive
or find a duplicate
 
user895378
Every question that's ever mentioned iteration on an array is a duplicate, but none are exact duplicates :)
 
@Srim You ping to gain attention, I then block to make you tipping your fingers wound for nothing. (for me you are now ignored everywhere).
 
user50049
@rdlowrey Same thing with most of the questions in the C tag asking about pointers. I can always tell when a semester has started somewhere.
 
^ L O L
 
3:25 PM
2 mins ago, by Truth
Fine, smartass, how can I find if a specific DateTime is between 06:00 and 17:00
Anyone?
 
me
 
Of the same day that is
 
wait pls
 
@rdlowrey some duplicates are better than other duplicates ;)
 
@DanishIqbal please don't just start pinging everyone. It's pretty damn annoying.
 
user895378
3:26 PM
@TimPost Alas:
 
user895378
52 mins ago, by Tim Post
@markustharkun That would be General Reference, and we do have that on some of the sites. But as long as Joel is steering this boat, we're not going to get it on SO. To be honest, he's right on every point he makes against having it .. and there's just not enough positives to tip the balance.
 
@RepWhoringPeeHaa Oh you still see that?
 
user895378
@hakre My thoughts exactly :)
 
I'm off shopping, tomorrow those are closed and I don't want to be latest.
 
If only I would know which ones are going to be idiots...
 
3:28 PM
58 secs ago, by hakre
I'm off shopping, tomorrow those are closed and I don't want to be latest.
And those idiots keep pinging me and I need to see what its all about!
 
@Truth has to use DateTime ?
 
@webarto Yes.
 
user895378
The moment someone strolls in and starts pinging people like a moron they get ignored. That way I never have to deal with it going forward ...
 
user50049
@rdlowrey Now you see why I fought for it so hard :)
 
3:34 PM
hello friends anyone using knet payment gateway before
 
@webarto Should I ask this in Stack Overflow?
Or are you managing? :P
 
0
A: Convert scientific notation back

hakre sprintf('%f',$ret) doesn't work, it returns 0.000000. Overflow? sprintf works, however you miss some point here. 0.000000 is not overflow. It's just that sprintf for the %f modifier uses 6 digits per default. Also please take care that %f is locale aware, %F is probably better suited. You...

 
user895378
@Truth Are you still looking for an answer to your DateTime question?
 
Yes
 
Here is an easy 250 bounty to catch, go go go: stackoverflow.com/questions/10538419/… ;)
 
user895378
3:40 PM
$hour = (int) $dateObj->format('H');
var_dump($hour >= 6 && $hour < 17);
 
user895378
?
 
Anyone here is good with photoshop?
Specifically, animations
 
@Truth no, beats me man... pastebin.com/veLMuVmf I've coded this, but "pure" PHP... I had situation when time starts at 23:00 and finishes at 06:00, those are two calendar days etc...
 
How can I make a GIF of something like this?
 
user50049
3:45 PM
Linkedin is having a very bad day
 
user50049
Apparently, unsalted SHA-1
 
What Stack Exchange site is suitable for Photoshop related questions?
 
user895378
@TimPost They could've benefited from a PHP-PasswordLib equivalent ...
 
user895378
I don't understand how huge companies can allow gaffes like that. Heads should roll.
 
@hakre I hate the tone in that question. "Do developers of php ever thought about that? Much (popular) functions are just depreciated causing a lot of work to people like us."
It's people like that who keep PHP from fixing param-ordering and other backwards-compatibility stuff
If PHP were to ever break the upgrade path and fix some of its core issues and inconsistencies how would these poor designers keep up?
A: Hire someone who knows what they're doing
 
3:52 PM
my password is a regexp, to validate email
 
user895378
@MikeB I probably have the wrong attitude to participate in a large-scale open source project ... I vote for, "screw backwards compatibility, UPGRADE YOU LOUTS" every time :)
 
I can see tereško echoed my sentiments in his answer
 
user895378
If you can't be bothered to learn the software you're using it's a YOU problem, not a SOFTWARE problem ...
 
> The unsalted hashes use SHA-1 encryption, and while it is somewhat secure, it can still be cracked if the user employs a simple dictionary password. sigh
I wouldn't even call it somewhat secure...
 
user895378
You just can't allow people to use weak passwords ... it's that simple. If allowed, little Susie will ALWAYS use something stupid like "myDogsName42"
 
3:56 PM
@rdlowrey 100% agree :)
 
just require a 5 phrase password with a minimum of 5 letters each
:P
 
user895378
@Bracketworks If you can't be bothered to upgrade your code, don't upgrade your PHP install. Easy fix.
 
@MikeB Well moaners gonna moan their whole life. Sometimes things can turn out to be frustrating, so I was looking for some better answers there. The question is not the best one to put a bounty on, I have to admit.
Just wanted to share the opportunity as the bounty ends sooner or later.
 
@rdlowrey /agreed
 
Why don't you use sscanf first? Please promote sscanf more: stackoverflow.com/a/10917752/367456
 
user895378
3:58 PM
@MikeB While we're on the subject, can people please stop using depreciated where deprecated is the correct term? That drives me nuts :)
 
@rdlowrey Yeah, blindly upgrading old PHP version will cause you headaches.
 
@hakre At first I thought it was a great question.. how can one deploy code to N servers? But it's really: I installed god-knows how many CMS and frameworks across all those servers.. how can I upgrade them? No details about what frameworks or versions
 
I think that's why in many linux distros you did found mroe or less outdated PHP versions because it's a real problem with stability.
 
user895378
@hakre Yes sir.
 
How twitter deploys code: engineering.twitter.com/2010/07/…
 
3:59 PM
@MikeB You can create a link post as answer there, too ;)
 
But that's a different question
They're deploying the SAME code to N servers
these guys have unique installs per server
So the generic answer is: Log into each server and upgrade
 
user895378
@MikeB i.e. "I did no planning whatsoever now I have a big mess can you please rescue me from my stupidity so it's not painful for me???"
 
exactly (which is fine for a question here)
 
Guys, where should I ask a photoshop question?
 
it's just not the interesting-gem I thought it would be
 
4:01 PM
@Truth super user???
 
@Truth what do you want to know?
 
Evening everyone
 
Mittchel ya olde hunter, what's cooking?
 
I want to make that, into a gif animation
more specifically, it should be a mask, behind it there should be an image moving upwards
 
4:02 PM
Not much brahh.. been away for a while hehe
 
The point I'm trying to make here is to simulate a mirror rotating on its x axis
 
@Truth You can do that with irfanview, it can take a screenshot every X seconds. Then in photoshop you create an action for the crop operation to apply it to every file in a directory. You then merge all images with the gif construction set to create the gif (joke, you know how to do that in PS, don't you, right?).
 
@hakre No?
I'm not very proficient with GIF animations
 
@Truth Ah okay, does your Photoshop version ships with a program called imageready?
 
I tried to simply make an oval and resize it on the other frame. Needless to say it didn't work
 
I have CS5
Animations integrated
 
You create multiple frames and that's it. If you have one frame a layer already, that's half the job.
 
@hakre I was hoping there's a more sophisticated way than just drawing the oval over and over on frames and show one layer at a time
 
You COULD animate it in flash and export as a gif I believe
 
@Truth well not easily. you can do dirty tricks with gifs, but as you're going into it right now, start that way. its frame based animation, so it's basically that way.
 
4:07 PM
Guys I've got a question. Europe has this cookie law which means you've to present every user who access your site with a landingspage asking them to confirm to use cookies.. I would like to develop a script that lets me do this, but it has to be easy to be integrated in other systems.. how am I able to do this without including the php file that checks your cookie status in each php file?
 
user50049
If you hacked into my LinkedIn account, could you PLEASE make it stop sending me email? Thanks in advance.
5
 
@Mittchel You can not solve that legal problem automatically, sorry. Ask your lawyer what the requirements are, which is normally per site.
 
Basicly: User enters website -> Script needs to check if you accepted the cookies -> do nothing. Else -> show landingpage.. but this has to be done for EVERY page in any website.. how can this be done the best way?
 
@Mittchel You do that with mod_rewrite. you check for a cookie. if it does not exists, go to landing page.
Create an environment variable so you can decouple this a bit.
 
can you check cookies in mod_rewrite?
 
4:09 PM
@Mittchel That and much more, yes.
 
@truth I'm digging that dabblet page, its cool that it gives you a measurement of your pixel size as a preview etc
 
@Event_Horizon I know, I'm using it all the time if no JS is present
@hakre So basically, I capture a screenshot every 0.1 seconds, and lay them out in a document, layer by layer, frame by frame?
@Event_Horizon It reduces response times, and sometimes it makes editing awkward (because it re-runs the script on every character you type)
 
hello everyone
 
@Truth yeah but I wish there was a preview window in most editors JUST for showing you what your pixel/em/in size is actually going to be, and for colors/gradients
 
user895378
@PeteHerbertPenito hello
 
4:15 PM
@Event_Horizon I hear you
 
I have an XML question, if an attribute exists on an element that is inside a default namespace, does it need to be prefixed?
 
To clarify a little, does the attribute name need to be prefixed with a namespace prefix?
 
@rdlowrey Every bit of that article is information dating back 10+ years...
 
You implement it by designing a solution to the problem you're trying to solve, verifying that the proposed design meets your requirements, implementing it and testing it properly. This is what's known as "programming". — GordonM 6 hours ago
 
4:19 PM
quick SQL question: If I have 20 INSERT statements in a stored procedure and say some of the INSERT statements fail, will this stored procedure still INSERT the other successful INSERTS?
 
Oh @GordonM you sir are precious
 
user895378
@orourkek At least it doesn't do what major media outlets usually do: scare people with words like "hacked," "attacked" and "cyber-terror" when they have nothing to do with anything.
 
Very, very true
 
@hakre cool.. it's possible to check for a cookie in mod_rewrite and if it exists, just redirect.. excellent :)
 
user895378
@GordonM outstanding work, sir.
 
user895378
4:21 PM
@PeteHerbertPenito Sorry, my XML hit points haven't leveled up sufficiently to give you a helpful answer.
 
@rdlowrey lol no worries,
 
@GordonM Lol, say it here so we'll star it :D
 
I bet he's thinking "Man this ADVICE FORUM doesn't give answers, only advices"
 
user895378
@Truth Was tempted to go for "too localized" :)
 
4:28 PM
" What Have You Tried? " should be a mandatory read before anyone can submit a question
 
uhh guys.. why am I getting an internal server error when I use the following mod_rewrite: pastebin.com/BZMfED4U
 
@Mittchel Don't do this kind of logic in htaccess. That's PHP's job.
 
Truth.. It's going to be something else, nothing to do with login this was just an example.
 
so, one could set non-empty cookie with that name and be logged in?
 
RewriteRule ^(.*) -> RewriteRule ^(.*)$ ?
 
4:37 PM
@rdlowrey Thanks, I'm glad someone appreciates my sarcasm. Though I wish I'd added it's called "programming", or, if you're being paid to do it, "doing your job"
 
Europe has a cookie law which means users have to see a landing page first before they can enter the website. What I wanna do is do this in .htaccess.. check if the cookie accepts_cookie is accepted, if not rdirect to landing page
@orourkek without the question mark right:P
 
@Truth I thought we were trying to avoid starring stuff too much!
 
@GordonM When things deserve to be starred, they deserve starred
 
Well I'm glad you think so :)
Okay, seriously? SQL server doesn't support LIMIT/OFFSET? stackoverflow.com/q/10917979/477127
 
4:42 PM
@hakre I've downloaded ifranview, how do I set up automatic screenshotting?
 
@Mittchel oh, yeah - that was me making it a question :]
Slow morning all around :[
 
user895378
I'll never understand why people think that SO users are just sitting around thinking, "man, I hope someone does a huge code dump so I can filter through it to find a tiny problem that's the result of the OP not knowing the language." ... it doesn't work please help! ... code dumps blow
 
@rdlowrey "Any suggests will be taken to heart!"
 
@orourkek Haha! Awesome
 
4:57 PM
@rdlowrey I am agree with all
 
Do you really write your code with that indentation? — rlemon 8 secs ago
 
Tar
how come people use $_REQUEST
 

« first day (599 days earlier)      last day (4346 days later) »