« first day (794 days earlier)      last day (4167 days later) » 

11:00 AM
@Leigh: I doubt it, I have some pretty horrible sleeping rhythms at times and I still don't see nearly the ~18-fold of the Dutch
@Jack yep
 
@Leigh: I barely know any Toki Pona :p
 
I always though that Dutch used to be German, and then one day someone decided "MOAR vowels"
 
@NiekBergman More than me for sure, I just remember what it is, not how to speak any of it.
 
@DaveRandom It's the other way around :P
 
@DaveRandom The language has similar roots.
 
11:01 AM
@Jack I understand that, but you have chosen another country with very different culture for some reason
 
I fear actually learning Toki Pona because that would mean I would have to translate my website into it :p
 
Saying Dutch is similar to German.. Please guys, keep it civil. :P
 
@Jack Well I guess so, presumably the similarity between "Dutch" and "Deutsch" isn't a coincidence...
 
@DaveRandom Yeah, that's a bit odd I must say.
 
The two languages didn't have different names until about 400 hundred years ago if I'm not mistaken
 
11:03 AM
0
Q: How do I get service manager object in module.php file in zendframework 2?

JimitI found below function in module.php file of ZendFramework 2 module. I don't understand how do I get object of service manager($sm) in this function? ` public function getControllerConfig() { return array( 'initializers' => array( function($in...

 
At a guess they derive from the same word meaning "language" or possibly some concept of nationality.
 
And because at that time we were on top of the world (sailing and all that), we took the common name for the two in English (Dutch) even though we started using a differnt name in our own language at around the same time
 
@ualinker I guess you haven't figured it out yet ... my wife hails from these regions ;-)
 
@Jack oh, that was the reason! I see. She didn't like the Netherlands? :)
 
11:06 AM
In terms of occupation, I think the Dutch still come second to the British ... but they've been places alright :)
 
I saw a great statistic recently (not sure how true but it was in a reputable source): Of nearly 200 countries in the world, 12 have never been invaded by the British.
 
@ualinker That and I like Singapore ... the weather never depresses ... well, a little bit with the monsoon maybe ;-)
Wow, that's some statistic
 
@Jack Aren't there some pretty epic racial equality issues though?
 
@DaveRandom Don't know if that's something to be proud of, though
 
@Jack I see :) Thanks for the explanation
 
11:09 AM
nvm
@DaveRandom Hmm, not really ... they strive for racial harmony, but of course, racial jokes never really die
 
Not much different from the jokes about Belgians and Germans that the Dutch make :)
 
is there any one knows how to save checkbox flag to database .
 
^ please help removing that code from the site.
 
11:13 AM
I see that HTML building by variable concatenation hasn't gone out of style yet.
 
^^ somebody is getting their "friends" to upvote them...
@hakre Now accepting s
 
Think the list ran out just about now though ;-)
 
@Sandeep most people here do, but it's a question that sort of asks us to do your work for you. You'll get more replies if you tell where you are stuck
 
@DaveRandom looks like. have you flagged voting anomaly?
 
@Jack But the reason you reject it is performance?
 
11:17 AM
@Jasper Eh?
 
@DaveRandom wow each question of that guy has at least 3 upvotes.
 
@hakre I hadn't but I now will
 
@DaveRandom I did
 
@Jack I was trying to figure out what you meant with concatenation comment
 
Anonymous
Alohaa
 
11:21 AM
@Jasper Oh that. I wouldn't say performance is a real issue, though I haven't really tested it to be honest. My personal opinion is that PHP has a perfectly functioning HTML mode that you can use by just doing ?>.
 
@Jack I tend to use echoing more than that, but I get your point
 
^ does not deserves the upvotes, too
 
Anonymous
Jeff Atwood Vs Jeffrey Wey?
 
11:25 AM
@Jasper I use a templating engine, so I never deal with mode changes in my code anyway ;-)
 
@DaveRandom I like E4X which is basically the ECMAScript version of what they show there in Visual Basic, but ah, that suggested code looks horrible. Honestly, I don't like at all.
 
@Jack: Yeah, I don't use it much myself either. Not any of the three options (concatnation, echo and ?>) was one of the reasons I started working on my own templating engine years ago
 
I've been using PHPTAL for some time now, and it works well with my deployment scripts.
 
11:33 AM
@Jack So you are now talking steenkolen Singlish? Must be strange :)
 
@PeeHaa Singlish grows on you :) In fact, taxi drivers give me a strange look after talking to me over the phone, because they expected a local .. heh
 
:D
 
But for instance, the principal of my son's school is Dutch too and he basically still speaks with a thick accent ... I guess the immersion is different for everyone.
 
@Jack PHPTAL looks nice enough from what I can see from glossing over
 
But that templating engine I started on so long ago is a part of the project I am currently working on (it's grown a bit since then) and the project should soon be in working order, so I'll have a new shiny toy to play with...
 
Because it's still valid XHTML, it's easy to optimize using a simple DOM parser to gather and compress JS, CSS, etc. without affecting the template itself.
I've used Smarty before that and got sick of it.
 
How so?
 
Because I might as well write PHP with some helper functions. And our designers always had problems with it.
 
12:00 PM
@Jack fair enough - I haven't really used smarty myself, though, I didn't like it from the start
You'll probably not like what I have made either, though
while it does not quite allow anything like smarty does, it doesn't have the properties you like PHPTAL for
 
@DaveRandom Paul Irish in the video, blah..
 
@webarto Remarkably similar... but somehow a bit shite.
 
@DaveRandom pokit.org/get/img/f80af22bb2a52549ae7bbb049d4094d7.png Cannot register. That is a sign.
confirm its source* wow... really...
 
Having an issue where a rendered page isn't scrollable in Chrome mobile, until the DOM is touched in some way. Using the Inspect Element view and just highlighting an element fixes it. Setting a DOM breakpoint fixes it. (So kind of hard to debug). Eventually after much tapping, the page becomes loose and is scrollable.
But no clue why it originally isn't
 
Hey, can someone please help me? I'd like to code a Postback system with PHP.
The code should send data to a predefined URL with GET method.
How can I actually make the code to send or go to that URL from the SERVER?
 
12:14 PM
@user1406071 Have you looked at cURL?
 
user1125394
or file_get_content or Artax
 
@DaveRandom not yet, but its not possible to just forward the server with the header() function to the specified URL?
 
@user1406071 That is redirecting the client - it sounds like you want the server to make the request.
@cyril File system functions with URLs are a bit blegh IMHO, and I avoided Artax because it's a little advanced for the needs of this user (it sounds like)
 
@DaveRandom Yes I actually get data from a different server, which I'm processing in a code, and after I have processed it, I'm inserting some values to a predefined URL with GET variables, and after that I'd like to fire that URL with the Server.
 
@user1406071 Well yes, in that case, cURL is definitely going to be what you are after. There are a few good examples provided in the manual.
 
12:23 PM
Okay, thank you for your help. Do you think, that its possible to create this postback system, from the manual?
 
asked same question before 2 hour ...
 
@user1406071 Since it's just a simple GET request, I would have thought so (with a bit of reading between the lines ;-) ) - the most useful page in the curl documentation is probably this one because it defines all the available options and what they do.
 
@webarto its ... cool...:D
 
@webarto Get a job.
 
12:29 PM
@webarto lol... but why now? that too on Youtube
 
@DaveRandom Alright. Thank you, so I could actually fire that GET request with curl_setopt ,am I right?
 
user1125394
@webarto wait will do the animation through CSS it's much more smooth
 
I forgot to put >= instead of > ... @DaveRandom Distraction junkie :P
 
@user1406071 Free gift :-)
 
^ in the spirit of Christmas?
 
@DaveRandom Oh, man you are really -really generous :)
@DaveRandom Thank you so, so much for this :)
 
I may be beginning to see why other devs act uppity about PHP.
It's not the language (doesn't help it much of course), it's the really low entry point. The question stream is quite horrible.
 
I don't even have the energy to downvote any more
 
12:45 PM
@adityamenon you just lost energy after just 30 down vote in 2year 3 month
 
Yep
It's not just hitting a button. Takes energy and time to read spam.
 
@user1406071 No worries, there are a lot of options for cURL requests but for what you described I think that should suffice. The error handling code might need improvement, that would also treat it as an error condition if the remote server returned an empty response (and it sounds like you don't really care about a response) - you might want to look at using curl_error() instead. But there are plenty of examples out there if you Google about a bit :-)
 
Oh my, that's one dedicated man.
 
lol
576 up/4625 down
 
12:47 PM
mostly questions, too
 
1707 up / 175 down
 
@DaveRandom Thank you really much. I'm going to look into this more. Also, this code you have given me, will fire the URL with my Server's IP address?
 
@user1406071 Yes it will, to avoid this you would have to use a proxy of some flavour.
 
no one even near ... with teresko ratio ..lol
 
12:49 PM
@DaveRandom No its perfect actually. I'd like to others see the server's IP. :)
 
@webarto ahhaa..... i love cat ...
 
I love when people describe OOP as "oops". Userland PHP is full of oops. Not so good with the OOP.
 
Uh yeah that happens a lot in my country. They think it's funny to say 'oops'.
even after the one thousandth time
teachers and instructors do this
 
Is it okay to say off topic stuff here?
I had multiple braingasms at the IMAX showing of The Hobbit yesterday.
 
12:58 PM
Hi All
 
Hm, I still have 2 free cinema tickets :)
 
some days back I have seen a question on track that explains how to track database structure changes with triggers (MySQL). Somehow I am not able to search that question again
could anyone please help me find it
?
 
@DaveRandom :D PHP supports OOPS!
 
1:10 PM
@Leigh PHP users definitely support OOPS.
 
I'm a big user of oops
Never oops-a-daisy though, that's just wrong
 
@NiekBergman it is teh awesome. Do not miss, worth the money spent on a big screen ticket.
 
@Leigh and frankly, a little gay
 
@adityamenon: Did you see it in 3D?
 
Oh yes, and in an IMAX screen, no less. Felt like I was walking beside Bilbo.
 
1:16 PM
@NullPointer If you are going to rep-whore on basic questions, please provide proper answers ;-)
 
@DaveRandom np...... wont answer anymore php basic question
 
@hakre Maybe, but it's actually not a bad question, it's very basic and obviously asked by a newbie - we shouldn't penalise people for asking questions that are shit-answer-magnets, it's not really their fault. IMHO.
 
@DaveRandom Basic questions are not okay, if it's a common of the language and we have tons of duplicates of especially that one.
There is no further future use of the site having again that question. It's only personal use of the OP who could trouble-shoot that issue as well by doing some homework. A comment to the dupe is normally enough to help the OP.
 
Fair point.
 
1:23 PM
@DaveRandom, Mr. Alien got upvoted for the same answer that NullPointer wrote, so what did the latter do wrong?
 
@adityamenon its because i am regular user of chat and i am not suppose to do this ... and they are fair enough
 
@adityamenon I didn't vote on any of the answers, the problem I have is that people simply put "do this instead" without explaining why. With a question like that there is the opportunity to educate someone quite a lot in just a couple of well-worded paragraphs, it's a basic mistake that can be easily avoided, and it demonstrate a couple of common problems quite well. You could really help someone there, but people still just correct the code with no explanation.
 
Okay, yes, that is indeed a good thing to insist upon.
 
@NullPointer Not my issue at all. You can answer all the basic questions you like, I'm not your boss - but I know that you know better, and I know that you could have written a nice explanation of why what he did was wrong. That's the problem I have.
 
1:33 PM
@DaveRandom thankyou... :)
 
-9
Q: Automatic pill dispenser

AthiraThe automatic pill dispenser is an excellent way for the elderly to be reminded when to take their pills and the current access key can be worn around the neck or on a bracelet. Who is the inventor of Automatic pill dispenser?

lol^^^^^
 
@NullPointer hehe
 
@DaveRandom Hey I have just tried the code you have given to me, but I doesn't seems to be working :( It doesn't seem to fire that url with cURL.
 
@user1406071 Can you show you code on pastebin?
 
1:49 PM
@DaveRandom I have used the code you have given to me, I haven't changed anything, just the URL. Also when I go to the URL directly in my browser, its working. So I think there should be some problem with the cURL mabye. Also I didn't get any errors. Anyways here is your code at patebin: pastebin.com/JE8xjdqA
 
@user1406071 :-P I mean can you show your code that you have incorporated that code into
 
user895378
^ That code won't work if the destination resource expects a POST ...
 
@rdlowrey It doesn't (apparently)
 
user895378
@DaveRandom And I just maxed out on my tolerance for "hey this free code doesn't work when I copy/paste it" ... I'm finished :)
 
hi frnd
I need php oops Real time scenarios...
 
1:53 PM
@DaveRandom pastebin.com/Pq3NEKgk This is the code I'm using. And I'm trying to capture it, with a simple if statement, that if get exists, than write something to the database. When I go to the url directly, its working, however with cURL it doesn't seems to be working :(
 
Oops strikes again
 
user895378
http://somewhere.com/page.php?key=value&otherKey=otherValue
 
@rdlowrey Lightweight. It's only 10am. Don't go all teresko on us :-P - actually this guy came here with no clue, asked a few (fairly) sensible questions, I just provided a mega-simple curl example and he's gone off for an hour or two and just come back with "he no worky" - I'm prepared to give him the benefit of the doubt, willingness to put effort in has been shown so far
 
user895378
^ That's not true from the code you've supplied
 
GM all
 
1:55 PM
good morning
 
user895378
It's actually:
 
user895378
http://somewhere.com/page.php?id=value&other_id=otherValue
 
user895378
(Just trying to weed out potential problems)
 
Yes, I know
 
user1125394
@user1406071 $url +=
 
user895378
1:56 PM
@user1406071 Define "doesn't seem to be working"
 
Dave have just gave me the basic code, and he has commented it out, but I have changed the variables since then
 
user895378
@cyril winner!
 
user895378
+= !== .=
 
Ahhh crap.
 
1:57 PM
That's my bad
 
user895378
lol
 
I was in JS mode
 
user895378
I do the same thing regularly with the concat operator
 
Oh
Alright I'll try it :)
 
@user1406071 $url += '?'.http_build_query($dataToSend); should be $url .= '?'.http_build_query($dataToSend);
 
1:58 PM
Hmm, I still don't get anything in my database.
 
@rdlowrey It's not as bloody annoying as switching between MSSQL and MySQL, I am forever writing stupid things because of that
 
user895378
Fortunately, I've never spent a single minute interfacing with a MSSQL db
 
Also I have tried that I have made the url myself, and tried to cURL that one.
 
And don't even get me started on VB using & as a concat operator.
 
But didn't work either.
 
1:59 PM
i copied this from hp.net manual for password encryption....
but for same value of input the outputs differ
function encrypt($origin,$pass,$salt)
{
$key=hash('SHA256',$salt.$pass,true);
srand(); $iv=mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEl_128,MCRYPT_MODE_CBC),MCRYPT_RAND);
if(strlen($iv_base64=rtrim(base64_encode($iv),'='))!=22)
return false;
$encrypted=base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128,$key,$origin.md5($origin),MCRYPT_MODE_CBC,$iv));
return $iv_base64.$encrypted;

}
@DaveRandom
 
user895378
@user1406071 Define "didn't work"
 
@user1406071 What happens if you load the target URL in a browser? Does it work when you do that?
 
@rdlowrey It actually didn't output me anything, nor written anythign to the database.
@DaveRandom Yes, it works perfectly than.
 
user895378
@user1406071 First step is to turn on max error reporting. Do you know how to do that?
 
Yeah I guess.
One moment.
 
user895378
2:01 PM
error_reporting(E_ALL | E_STRICT);
 
@user1406071 Also, make sure that your application actually reaches the curl code - add an echo statement just above the curl_exec() call.
@rdlowrey error_reporting(~0); ftw
 
user895378
whichev
 
Yes the code reaches to the exec, for sure.
 
@blackbee Yep, that's the point of a random IV.
 
@DaveRandom I have echoed out the url before the curl_exec and than copied & pasted to the browser url bar, and it was working perfectly.
 
user895378
2:05 PM
@user1406071 And there's no way you can show is the real URL? It's that super-secret?
 
user895378
Because that would go a long way to allay my fears of an E_PEBKAC ...
 
@DaveRandom then the registered user will face trouble in logging in... how to solve that??
 
@user1406071 You should crank error reporting up to max then, as suggested by @rdlowrey, and see if you get any errors. Also you should check what curl_error() says after the curl_exec() call.
 
@rdlowrey Oh, its working now. lol -.- I swear it hasn't worked before and I didn't change anything...lol maybe cached?
 
user895378
Unless you wrote your own caching layer, no, it wasn't cached.
 
user895378
2:06 PM
E_PEBKAC strikes again!
 
user895378
Glad it's working now.
 
@blackbee Why? They don't need to see the encrypted string. How will it cause problems?
 
Thank you all, for your help. I don't know, what was the problem. I'm not a newbie in PHP, I just haven't used cURL before. Thank you so much again, you saved my life now :)
 
user895378
++$livesSavedOnATuesdayByPhpChat
 
2:09 PM
no, when i use the same function on the entered password and match it against the existing password, they won't be the same.... @DaveRandom
 
user895378
That counter must be getting close to PHP_INT_MAX
 
@rdlowrey lol
 
@user1406071 Once you are a bit more comfortable with making HTTP requests from PHP, you should check out @rdlowrey's Artax library. It's much better than cURL, but also requires a more intimate knowledge of how HTTP works and arguably overkill for what you are doing here, which is why I didn't suggest it in the first place.
 
user895378
@DaveRandom lol free advertising! yippie. FWIW don't feel obligated to mention my pet project any time I'm around and someone references cURL :)
 
2:11 PM
@blackbee That's not how that function was designed to be used. You don't re-encrypt, you decrypt the stored value.
@rdlowrey I don't, it pains me a little to recommend cURL to anyone, but I think that having a Rolls Royce as your first car is a stupid idea, you'll just crash it in a very expensive way.
 
user895378
@blackbee you should drop whatever you're doing and use PHP-PasswordLib password_compat
 
ok
 
Would password_compat now be the prefered option?
 
user895378
@DaveRandom Totally agree. If all you need is to retrieve resources with GET, my lib is way overkill. Artax is for complex use-cases where fine-grained HTTP manipulation is necessary
 
(given that the natives they are emulating will be available soon)
 
user895378
2:14 PM
@DaveRandom yes :)
 
@ircmaxell is a super-genius :)
 
user895378
Actually, curl_* is probably way overkill if you only need basic GET retrieval ... file_get_contents should be sufficient
 
@rdlowrey Yeh but it's just too blegh. For me, anyway.
 
user895378
if (FALSE === ($page = @file_get_contents('http://www.example.com/'))) {
    var_dump(error_get_last());
} else {
    echo $page;
}
 
user895378
^ Bleh? While I wouldn't do it, that's about as basic as it gets for retrieving a network resource. Full error handling and everything.
 
2:19 PM
stackoverflow.com/tags/php/synonyms - I disagree that is a synonym of - also, wtf is the deal with that page in general. Why do the two synonym tags even exist? They should both just be burninated. Especially , you might as well just have a tag for every function.
 
user895378
For the record, I really don't like how php streams mix filesystem semantics with everything else. I get that it's necessary because all native streams operate like file streams, but still. The name file_get_contents makes no sense in the context of retrieving a remote HTTP resource.
 
@rdlowrey You made me feel dirty.
 
user895378
Doesn't get much dirtier than @ error suppression.
 
@rdlowrey Actually that I disagree with. When you GET something, you are retrieving a file - how are you not getting the file's contents?
 
user895378
@DaveRandom I disagree with your disagreement. You're retrieving a resource, not a file.
 
user895378
2:22 PM
HTTP URLs are not a 1:1 mapping to files.
 
user895378
Just because people don't understand the concept of content-negotiation doesn't change that
 
user895378
Uniform Resource Identifier
 
function resource_get_data($url) {
  return file_get_contents($url);
}
@rdlowrey ^^ that's your Christmas present
 
user895378
Accept: application/json;q=1, text/html;q=0.9
 
user895378
^ different representations of the same resource.
 
user895378
2:24 PM
http://www.example.com/file.txt <--- bastardizes the HTTP concept of resources
 
user895378
http://www.example.com/resource <--- let me choose which representation format I prefer
 
OK OK I take your point :-P nothing like a bit of pedantry to brighten the day
 
user895378
++$livesSavedOnATuesdayByHttpResources;
 
2:29 PM
Word
 
user895378
yo
 
user895378
Hmm ... apparently the github kittens are mac fanboys?
 
user895378
 
mac fags, you mean :P that is steve jobs
 
user895378
2:31 PM
Oh lol, didn't even make the connection. Saw the iPhone and got distracted. I feel like that must be a violation of the Steve Jobs estate or something.
 
in JavaScript, 3 mins ago, by SO ChatBot
@rlemon "ReferenceError: performance is not defined"
lol
 
user895378
Also ... while I'm not offended because I don't care about things like this ... the term "fag" is pretty derogatory in polite conversation in the US. I'm not trying to push my moral sensibilities on anyone, but try to be respectful when possible. I have a sister who has a girlfriend, so I notice things like that :)
 
-1
Q: php script that will check for cookie,if cookie yes go to url, if no cookie run script

user1785934Im trying to create a php script that will check for cookie. If cookie exist it goes to a page. If the cookie does not exist it it will run script. however its not quiet working I think its the index.php code below thats the issue. gateway.php <?php $value = "mobilecookie"; /*setcookie(na...

I think OP is confused between JS and PHP
 
dude, a performance object exists? That's freaking AWESOME
performanceTiming is what rocks
> performance
    Performance
        memory: MemoryInfo
            jsHeapSizeLimit: 793000000
            totalJSHeapSize: 26000000
            usedJSHeapSize: 15200000
            __proto__: MemoryInfo
        navigation: PerformanceNavigation
            redirectCount: 0
            type: 2
            __proto__: PerformanceNavigation
        timing: PerformanceTiming
            connectEnd: 1355767021034
            connectStart: 1355767021034
            domComplete: 1355767021323
            domContentLoadedEventEnd: 1355767021247
That's for this page ;-)
 
2:45 PM
What's the deal with requestStart/responseStart/responseEnd? The entire request and response took 1ms? Are you sitting in the data centre next to the SO servers or something?
 
what s the best way to submit multiple forms at once? should I use ajax ?
can I serialize them all ?
is there another way?
 
Why do you have multiple forms? Are you submitting them to different servers or something?
 
no there is also an inline edit .. or sth like that
 
user895378
@DaveRandom While not 1ms fast, my Artax testing has shown the SO servers to be very fast in general
 
morning
 
2:50 PM
for some fields
 
What's going on @NikiC
 
@Samson I don't see why that requires another <form> element
 
it was easier to handle data.. for me
:)
press enter..submit the form and save it
when focus is somewhere
 
@Samson ...until now, when you find you are having to submit multiple forms at once ;-)
 
now:)
I wouldn;t want to rewrite it..it works like a charm
but if I have to..
 
2:53 PM
Someone just said "Programming With Anthony is the Khan Academy of PHP"
 
user895378
@ircmaxell I feel like there's a brand there to be exploited ... like "Uncle Bob"
 
@ircmaxell It has terrible special effects?
 
user895378
"Programming with Anthony" just sounds very non-threatening and accessible
 
@Samson Well in that case just have some onsubmit code that picks the values out of the secondary forms, puts them in hidden inputs in the main form, and let it submit. Ajax is definitely overcomplicating it.
 
@rdlowrey That's one thing I'm trying to do, build up that brand...
 
3:01 PM
wow, michael is helping with cleaning php5 tags and added an entry to the error-reference: stackoverflow.com/a/13935532/367456
 
I hate to ask this but I really have no bloody clue what I am doing here: How do I do this using the openssl extension in PHP? openssl rsa -pubout -outform DER < "$key" > "$pub" - I know $key is a .pem file with the private key, and obviously $pub is an outfile whereas I will get a string back (which is what I want) but how do I get a public key from a private key?
 
Got my 4 years :D
 
3:16 PM
@MikeB That's dedication ;)
That latest email to internals makes me want to write a snappy reply
 
@Charles lol phpQuery.
 
at the internals thread about data structures
 
@MikeB sounds cool...
 
@ircmaxell link?
 
@MadaraUchiha Two most recent messages
 
3:29 PM
@ircmaxell You're the only one who's identified my issue as a halting problem. I probably wouldn't accept it as an answer but I'd give it an upvote if you want to post it stackoverflow.com/questions/5446647/…
 
@DaveRandom I'm not subscribed to the PHP internals
 
@MikeB I'm sorry, but I think there is no solution for your problem.
 
@ircmaxell I agree, that's why I wouldn't accept it. But it's definitely useful
 
No, meaning that's one of the highest rated answers
 
3:33 PM
@MikeB than why bounty ?
 
When I started the bounty it had no answers. ircmaxell was good enough to label the problem for me (I think only 1 answer had been posted at that point)
Defining the problem as a common one was the most helpful to me.. all the other answers are just rehashes of what I already knew
 
@MikeB I've seen a library that can turn all fatal errors to exceptions
 
I don't believe you :) - You mean extension?
 
Maybe that can help you, try { var_dump(); } catch { error, too large; }
 
^ That would be ideal - yes. But afaik there's no reliable way to catch memory errors (which I guess is the meat of the question)
The keyword being reliable.. people who say dump less or increase the limits aren't helpful
 
And for anyone who rags on me for asking (and bountying) an impossible question.. I was hoping for something like this stackoverflow.com/a/13000176/46675
 
brave
 
we danced all around that one for a day +, even involved a mod
surprised to see it deleted though..
 
3:52 PM
7
A: Find an integer not among four billion given ones

ircmaxellIf we assume that the range of numbers will always be 2^n (an even power of 2), then exclusive-or will work (as shown by another poster). As far as why, let's prove it: The Theory Given any 0 based range of integers that has 2^n elements with one element missing, you can find that missing elem...

 
@MikeB do you think this question is constructive/real question ?
 
SO has a soft spot for questions that tickle the brain.. and it's no use fighting
 
@MikeB yup that may be possible reason ... but i have dont close vote now helpless
 
The col. was so close to being his old self :(
Someone told me that it was not safe to use mysql_* - that's simply not true. Mysql is no less secure than PDO. It's users to blame for the insecure code, not extension. — Your Common Sense yesterday
 
@MikeB i think he is right .. @ircmaxell has same opinion
why The col. ??
 
3:57 PM
He's usually correct.. about very unpopular things which is why I love to follow him. Some people are sensitive and can't take the name-calling
 
Dec 10 at 17:01, by ircmaxell
@LeviMorrison Except that misses the point entirely. ext/mysql is EXACTLY as safe as PDO. Or actually more so depending on the use-case involved (especially when setting charset after connection). And that's the problem here. 26 people voted to remove it on the understanding that it's less secure. It's not. It's just as secure as mysqli or PDO when used correctly, and just as insecure when not.
 
15
Q: What does one do with 'angry' users?

BlowskiIf a user is making a valid point but in a rather angry way, what can I do? I don't want to post something like 'please check the FAQ for how to provide a constructive answer' as that's just going to make it worse. Case in point was Col. Shrapnel in this question. (My answer he took particular i...

follow up question: What does one do with overly-sensitive users?
@ircmaxell Yep, that came to mind.
 

« first day (794 days earlier)      last day (4167 days later) »