« first day (1068 days earlier)      last day (3866 days later) » 

2:00 PM
Anyone know how to set a selected radio button by default in ZF2? using array notation. The zend site won't load.
 
@CharliePrynn Google does load ;) encrypted.google.com/…
 
@CharliePrynn they offer download links from google cache to download the docs I think.
 
:)
 
@hakre the good thing about your blog is that I dont have to call you to find out I have to put nplurals=2; plural=n != 1; into poedit
 
I hate writing threaded code. -_-
 
2:03 PM
@Gordon I've already looked there! No ones using the array notation.. :(
 
@Gordon yes, that's what blogs are for :)
 
2
Q: How to set the default checked value of a Zend_Form Radio Element?

AndrewI have a radio element with two options. I want to set one as the default value in case the user forgets to check it. How can I do this? Solution: $this->addElement('radio', 'choose', array( 'required' => true, 'multiOptions' => array( 'yes' => 'heck yes', 'no' => 'ple...

 
I really am tempted to link lmgtfy here stackoverflow.com/q/18874265/508666
 
@Starsong Racing conditions? -.-
 
user895378
@Starsong Forking FTW.
 
user895378
2:05 PM
shared state ... who needs it.
 
@Gordon All answers are not using the array notation.
 
then I don't know what you are talking about because
$this->addElement('radio', 'choose', array(
    'required'   => true,
    'multiOptions' => array(
        'yes' => 'heck yes',
        'no' => 'please no'
    ),
    'value' => 'yes' //key of multiOption
));
looks pretty much like array notation to me
 
@Gordon maybe he means this array, [ ] hehe.
 
@Gordon what's your IRC nick on freenode? gooh?
 
2:07 PM
@igorw yes
 
@Gordon Didn't see that... He answered it in the question. Thanks!
 
@CharliePrynn np
 
too many mentions about google on the first few mins of the day.. XP
 
@rdlowrey people don't seem to be getting it so far.
> Might just be me, but I don't really like having function names as strings (obviously I use it when I have to, but I try and stay away from it otherwise).
 
I prefer function names to be integers
makes it much clearer what's happening... f152(f3523(1), f35235(2), f121(42))
 
2:11 PM
@ircmaxell Technically, all strings are integers.
 
I mean I get it. it sucks that they're not vars, or otherwise first class values. but come on...
 
$ThingManager->{9981}();
 
@ircmaxell f152 ? and what it's doing?
 
@AlmaDoMundo isn't it obvious? it takes 3 inputs, and does something with them!
 
I can understand f42 since 42 is a fundamental Universe constant, but f152 ? .. hm..
 
2:13 PM
@AlmaDoMundo since you've got 42, you already have your answer..
 
152 (one hundred and fifty-two) is the natural number following 151 and preceding 153. In mathematics 152 is the sum of four consecutive primes (31 + 37 + 41 + 43). It is a nontotient since there is no integer with 152 coprimes below it. 152 is a refactorable number since it is divisible by the total number of divisors it has, and in base 10 it is divisible by the sum of its digits, making it a Harshad number. In the military * USS Bond (AM-152) was a United States Navy Admirable minesweeper during World War II * USS Cahuilla (ATF-152) was a United States Navy Navajo class fleet tug d...
 
@reikyoushin - and that is? what thing is that 152 pointing to?
 
class pdInsComp_02_DAT extends pdInsComp_01_IEL{
.. it's from real codebase
 
@AlmaDoMundo you can ask google
 
@tereško My god
By the way
 
2:15 PM
wait, @ircmaxell are you trolling? //sorry, I'm asleep oO
 
Happy Birthday @ircmaxell!
25
 
and the next file in the folder contains
class pdInsComp_03_INSLV extends pdInsComp_02_DAT{
 
@MadaraUchiha Thanks!!!
 
(I am right, am I? @ircmaxell)
 
2:16 PM
yup
 
by the way!
 
Greatz :D
How old are you?
 
Just turned 30
 
@ircmaxell do you have any ideas here: stackoverflow.com/questions/18869230/… (they told me you could help :p )
 
/me is officially no longer a "youngster"
 
2:17 PM
@ircmaxell . my sincerest condolences in your 30th birthday
 
@AlmaDoMundo yeah, that's not going to generally be possible to do without altering said variable
 
@ircmaxell happy thirty-eenth birthday sir!
 
@ircmaxell Oh wow, congrats for breaking the record of most consecutive days alive!
 
@MadaraUchiha lol. that's a pretty good record. I don't want to not keep breaking it every day
 
@ircmaxell Happy birthday you dinosaur you!
 
2:20 PM
@PeeHaa Come on ... he's not that old :)
 
happy birthday @ircmaxell
 
@ircmaxell Happy Birthday!
 
Thanks! :-D
 
You know, starring my post should be sufficient, as much as we all love redundancy redundancy.
 
CongratzZZ
 
2:23 PM
@MadaraUchiha Department of Redundancy Department!
 
@ircmaxell My favorite kind of department kind is my favorite!
 
@ircmaxell happy b-day ...
 
Thanks!
 
@Orangepill He's half a year older then I am. So that's pretty ancient I would say ;)
 
@igorw: I love the treatment of function composition in that thread. "That's nice, so should it be is_ or are_?"
 
2:25 PM
@ircmaxell you shalt not read internals
 
Happy Birthday @ircmaxell :)
 
ops
how to paste images?
 
If the image has the correct content type by pasting the URL in here
 
Single line
 
2:28 PM
Oh good lord... :-P
 
30 years is once at life. Wish you all the luck and happiness :p
 
@AlmaDoMundo Umm, every day is once at life, that's how life works :D
 
@MadaraUchiha true. And birth day is a good reminder for that
 
Was there a "before I am 30" list?
I'm only 4 years away :(
I think I should try and setup nginx to work properly before I am 30 :P
 
2:35 PM
what's mean of nginx?
 
user895378
Be prepared: the day you turn 30 things start breaking. It's like the factory warranty expires.
 
@DarkHorse engine x
 
I have nothing to worry when I'll be 30. But when I'll turn 32...
 
Ugh I am already breaking. I've been on crutches the last 3 weeks and I have 5 more to go. If I don't x-ray well it's surgery time.
 
Yay! Convinced the dev lead it's okay to install composer and use it on sandbox / live box :D
 
well, I'm switching to runlevel 0. See you!
 
Ok, who's the Doctrine Expert in here? Somehow I don't get how I register Annotation Classes properly, so Doctrines Annotation Registry is failing :/
 
Our resident Doctrine expert appears to be absent
Not seen him for a while actually, where is that cheeky little Italian plumber hiding?
 
Mario.. ok. Will look out for him :)
 
2:52 PM
:-P
Actually that's just his avatar
@Ocramius Y U NO APPEAR AS IF BY MAGIC?????
 
lol
 
@DaveRandom is there anyway to tell where a root in nginx is looking? I've set a root but getting File not found.
 
Crap, I only got 5 years 'til 30
=[
 
@kaiser He's a Doctrine dev and he's usually quite accommodating to questions on the subject
 
@DaveRandom Very nice. Thanks a lot for the link to @Ocramius ... doctrine doctore :)
 
2:55 PM
@Fabien Config file?
N.B. even some places in the docs for Nginx tell you to set the root in the wrong place
 
Fuck. Typo bugs are the shittiest of bugs.
 
You can do this:
rewrite_log on;
which spams the nginx error log with all of the attempts it makes to match requests to files.
 
@Danack I prefer to just read the config file :-P
 
@DaveRandom Config File :(
I've tried commenting out various things like lines 49, 51 and 56.
 
@Fabien OK and you're having problems with what, /phpPgAdmin -> /usr/share/ ?
 
@DaveRandom The page loads but it's blank. In the source I see some HTML.
but ueah
usr/share. It's worth noting I also have a symlink in public to the usr/share/phpPgAdmin
 
lamephp.com/phpPgAdmin loads for me properly actually
 
God damn Chrome
 
heheheheh
 
@Fabien Works fin in chrome on my end :D
 
3:03 PM
@Orangepill *cache
Can you all see it still?
 
403 now
 
Security level - Pro -
(•_•)
( •_•)>⌐■-■
(⌐■_■)
But seriously please don't attack my server.
 
/me gets out the DOS tools
 
Don't! My mother is visiting right now and I swear to God I will tell on you.
You've made it to the front page @DaveRandom lamephp.com
 
:-D
 
3:09 PM
Cool so that's IP locked down. Feeling a little more secure now :)
Learnt a nice lesson about Chrome testing for the 2nd time in two days.
 
Hi everyone!
 
@Fabien and every other site. as long as all pagination points to # :D
 
@kaiser It's all server setup atm :p
 
what happenned to the design @Fabien
 
HTML5up has nice stuff. Good luck with your site.
 
3:13 PM
"Striped by HTML5 UP"?
 
@reikyoushin Felt I should use something at least a little more professional so I grabbed a free theme.
 
Hi all!
 
Certainly better for different resolutions.
 
could anyone help me with htmlentities?
I'm using htmlentities($_POST[$key], ENT_QUOTES, "UTF-8");
and this changes all my ' to \'
only on online server, not local
strangely enough, same result with ENT_NOQUOTES
 
@reikyoushin Progress on the next parts will be slow too BTW. I'm trying to learn as I go so I create something I can maintain and improve with my ability.
 
3:15 PM
I ... I can't wash off this filth. I've come across $things = (array) @$values['things']; and I'm not fixing it.
 
Damn now I think about it I should have written blog posts for the site as I set it up.
 
@Fabien good for ya, my personal site is still a graveyard
 
@Fabien still 403 for lamephp.com/phpPgAdmin
 
@JoeWatkins My IP only now.
 
ah right ...
good call ...
 
3:16 PM
anyone happens to know about my htmlentities problem? ^^'
 
@reikyoushin No time like the present :)
 
if not a little short sighted ... I've rebooted servers with my phone before ...
 
lol
True but it's only a personal blog.
 
well this is a nice site.. html5up.net, @Fabien where'd ya got it from. i should thank him/her too. (im collecting free themeforest freebies of the month too, but this is another good source, since im not into designing stuff)
 
@reikyoushin I just googled HTML responsive free template. Let me find the site I picked it from though.
 
3:19 PM
only a personal blog ?? as far as we know, the only thing we have created with the ability to be immortal is cyberspace, you have your own slice of immortality ...
and look at that I got a shout out on the page ... don't remember what I done :D
 
Oh wait, it was html5up.net.
 
sits in the corner, whimpering
 
@Fabien i could set up a blog too, but i dont have anything yet to post. so there's no sense yet.. i'd stick with the fading image for a little more while
 
@JoeWatkins Immortality as long as my card details don't expire and my bank has money :). Well there's always the waybackwhen machine :P
 
Hi all :)
 
3:20 PM
hi swap
 
@Fabien waybackwhen you have money?
 
need advice related to securing course content after upload.what are the measures that I can follow to make it safe
anyone having any ref URL
 
@reikyoushin Yeah content is the hardest part. I think for me it will be mildly related to what people discuss in here. For instance someone mentioned that UNIX and Linux are different. Or that jQuery is a library but used as a framework. Topics for me to read and post on.
 
@Fabien yeah obviously, human error could ruin everything ...
 
seached stack but lost with the answers :(
 
3:22 PM
@swapnesh Securing how / what / why /when?
 
@reikyoushin No, that the waybackwhen machine will keep my site forever, thus sealing my immortality long after I am broke or dead.
 
kind of like the bad guy in highlander ....
 
@swapnesh I don't think they're answering questions today, join me in the corner of ignored people :(
 
@DarkAshelin but your question is a bit vague, i dont get it. maybe they can. sorry
 
@swapnesh Define "safe"
 
3:23 PM
@swapnesh you want to copyright your content? is that what you mean? or just so that what you upload cannot be accessed by other people?
 
@reikyoushin what exactly is unclear?
 
@PeeHaa actually I am working on elearning site so basically user can upload course content that I need to make secure, as I am retreiving the content files as well via AJAX
@MadaraUchiha safe from Unauthorized users :)
 
@reikyoushin If you do decide to blog, and it's a learning one like mine. A good idea is to write the blog initially about how you made the blog site. (I should have done this). My blog would be largely "Copy, paste... error... -> google -> copy, paste... error... -> Stack Overflow/11 -> Copy, paste... fix. *^10
 
@swapnesh Yeah I got that. But what do you mean by secure?
 
@swapnesh define "unauthorized".
 
3:25 PM
You want to prevent unauthorized users from accessing it?
 
@DarkAshelin "only on online server, not local", are you saying that it is working correctly on local or live, and not the other way around, vice versa?
 
@reikyoushin yes. on local it's working as I want it to, but on the online server it's escaping all of my quotes
 
@DarkAshelin then it must be a setting.. something to do with magic_quotes_gpc perhaps?
 
Basically Its a SCORM package so playing the package via ajax ..i need to pass the index URL with the course index path in the URL..my concern is if a user is little bit techy he can easily view the source and find the location of the course content
Solutions came in my mind -> .htaccess but I doubt I can then make an AJAX call after that(may be I am wrong)
 
@reikyoushin thanks! turning off the magic_quotes in my htaccess solved it ^^
 
3:29 PM
@swapnesh "if a user is little bit techy he can easily view the source and find the location of the course content" - you cannot hide the location of the content in the Internet, there's nothing you can do about that. but you can tell it to only be available from a certain IP, add login/auth or something.. since the Internet is public and its just the way it is..
@DarkAshelin ^_^
 
@reikyoushin yeah but another way is I can save the files outside the document root path i.e just after public_html..but unable to found any tut regarding this
let me know if anyone have 1 for me
 
@reikyoushin +10 rep to you ;)
 
any suggestions greatly appreciable this time :)
 
@swapnesh if you save the resource outside the doc_root, then it wouldnt be accessible outside. what is this content you are speaking of btw, PDF files and the like?
 
@reikyoushin yeahits going to be an html/swf/pdf files
any suggestions?
 
3:35 PM
@swapnesh then besides adding auth, i dont think there is anything you could do to prevent other people from taking your files.. as what people always say: "Once you upload something in the internet, it is considered public information" but, you can copyright them instead..
 
@reikyoushin any sugggestion for this ? " if you save the resource outside the doc_root, then it wouldnt be accessible outside"
 
and if you are serious, you can take this service: dmca.com
if you see your content somewhere, they can take the content down for you
 
Is it just me, or is Google Analytics unnecessarily complicated?
 
@DanLugg it has always been complicated for me. >.<
 
I'm just trying to pull page views from date X to date Y, for pages A, B and C.
And it keeps giving me all these comparison metrics.
 
3:38 PM
Another concept of generating dynamic URLSs??
 
@swapnesh ahh, now i get what you mean.. you want the files to be passed through PHP via fopen or something like that right?
 
any idea/thoughts?
Yup
 
hmm lemmecheck
1
Q: How to securely store/serve files on a webserver via PHP that are only accessible via a secure login area?

deshgI am currently creating a PHP website which allows administrators to upload a variety of documents (pdf,doc,docx,xls) which can then be downloaded at a later date. These can only be accessed by administrators after they have logged in. Up until this point to do this I have been storing files abov...

there ya go!
you can then put the files outside doc_root if that's the case
 
Thx +10+15 :)
 
the real path wouldn't be seen outside
 
3:40 PM
favicon suggestions for lamephp? :X
 
@Fabien :P
I guess that hits it
 
php with an X over it? lol
or how about just a thumbs down icon :)
 
@Fabien or the head of a lamp
 
A crippled elephant?
 
Seriously, wtf. Does anyone use GA?
 
3:52 PM
@DanLugg GA?
 
Google Analytics...
 
@DanLugg Ah, yes. We do occasionally use it for reporting ;)
 
Okay, I'm at the All Pages breakdown; gives me a pretty chart at the top, table at the bottom of all the pages it has data for. I just want to generate a report of page views for pages A, B, and C. I can't seem to filter to pages A, B, and C.
Like, I can select them (checkbox column), but I can't do anything with the selection it seems.
Aside from plotting them on the chart.
I'm sure it's something really effin' simple, but I can't seem to figure out the UI.
I'm going out of my goddamn mind here.
 
@Fabien i'm working something out. justasec
 
@reikyoushin heh
well I got a temp one up.
 
3:59 PM
 
@fabien something like that.. hehe
 
Hmm .. I think I should do some maintenance on my older posts, but I cannot summon enough give-a-fak
 
haha I like it
 
LamePHP favicon for ya. XP
 
4:01 PM
@tereško Examples?
 
lol @reikyoushin
 
@MadaraUchiha like this craplet
 
@Fabien just fix it but basically the concept is there already. i suck at photoshop :P
 
especially since it still gets upvotes at least once-per-month
 
@reikyoushin What browser you on?
 
4:03 PM
chrome.. but i have firefox open at the same time, why?
 
@tereško I'll +300 that one should you improve it properly :D
 
Check mine in FF
 
please don't
@Fabien , your design needs some sort of accent
 
@tereško Yeah I drew it on favicon.cc :(
 
Most hilarious user on SO to me so far.
 
4:07 PM
wait .. who exactly has LamePHP site ?
there are no copyrights anywhere
 
@tereško @DanLugg @Starsong your comments... :D
I'm an Android dev, forgive me wordpress experts — Kokas 35 secs ago
 
Copyright in bottom left @tereško
Well mid left.
 
@kaiser lol
 
4:26 PM
Hi Guys
Im new to PHP and was trying to setup a PHP -facebook plugin
0
Q: Fatal error: Uncaught CurlException: 7: couldn't connect to host thrown in ....src/base_facebook.php on line 887

KodeSeekerI'm trying to develop a sample facebook php login example following the example here I've hosted my app here, but I'm getting the error message in the question whenever I try to access the link. Here's the code segment that throws the error try{ $e = new FacebookApiException(array(//...

But I get the above^ error
any help would be appreciated
 
Just spent an hour trying to figure out what is wrong with:
function __constructor(FileFilter $previousFilter) {
    echo "Why isn't this being called?!";
    $this->previousFilter = $previousFilter;
    $this->srcFile = $previousFilter->getFile();
    $this->destFile = $this->modifyFilename($this->srcFile);
}
 
To no avail?
 
a lil help.. anyone?
 
4:42 PM
Don't ask whether someone is here to help you. If someone is around and wants to help they will.
 
@Starsong He already asked...
 
@Danack "constructor" hehe
 
To be fair - it is the constructor...
 
Aahhh
lol
 
does asking disqualify me from getting help?
nm
 
4:50 PM
btw @LeviMorrison I noticed a tiny colour weirdness when selecting the function name for a function definition page - there's little bars of darker colour:
Smallest, bug, ever.
 
@Danack sounds like a negative margin or something like this
 
that depends on the color setup
1 hex number, could possibly be the smallest bug
 
@KodeSeeker seems like the can't connect exception you're getting could possibly be due to some hosting restrictions? I see you're using a free host
 
@SixteenStudio okay , and where exactly do I change those restrictions(if its possible) ?
 
@Danack jup, there's a negative word-spacing. I think this is the reason (\cc @LeviMorrison)
 
4:52 PM
@SixteenStudio yes free hosting, this was for a proof of concept
 
It's doubtful that you'd be able to, since it is a free host, they will set certain restrictions so you can't go crazy using cross-site functions. But that's the only thing I can think of, unless you post your config up to see if there is anything wrong with that.
 
@SixteenStudio can I get the config from cpanel?
 
I meant the config for the facebook connection script you're using. Where you entered your app id details, etc, except obviously removing the secret credentials
 
@SixteenStudio Yup Ive pasted an image of that already?
this image was there in the post
is there any detail that I missed out here?
 
is there anyone here familiar with OAuth2?
 
5:01 PM
It's been a while since I did anything with the Facebook API but it may be a good idea to see if putting the site domain inside the App Domains field. Maybe it only accepts connections using your key using domains specified in that field...
 
@KodeSeeker are you sure you can use http-protocol? I think facebook needs a https-url. maybe this affects only facebookapps
 
Poll: Code blocks inside blog posts.
Vertically fully expanded or fixed height with scroll bar?
 
I vote fully expanded
 
@ŠimeVidas depends.
 
corection, agree with recode
how many lines?
 
5:05 PM
@ŠimeVidas best solution would be to have them fixed at 10 lines and expand when first clicked on them
 
oooh, ok, i cede to recode's wisdom, for wise and ingenious that one is
 
@Recode I have a similar idea: Have a toggle button below the code block
 
@ŠimeVidas prefer my solution, because when users want to c&p the code, they just click into the code-area
but you could add a close button
@ŠimeVidas it's just what I think is best ;)
 
@Recode The problem with this though is, if the visitor unintentionally clicks on the code block, he may be confused with the change in layout.
People tend to click on random spots of the page for all kinds of reasons.
 
@ŠimeVidas you could also do this when the user starts to select code
 
5:17 PM
@SixteenStudio, you mean mention the site url in 'Apps Domain"/
?
the site throws the following message when I remove http `Error

Site URL must use the HTTP or HTTPS protocols.`
So I guess it should be okay
 
@KodeSeeker Yes, then you can use http, I just remembered that facebook forces https for apps running inside facebook
 
@Recode the error beats me though
The funny thing is the catch block doesnt print the exception
weird
 
5:35 PM
There should be a rule of thumb that all delivery drivers have a good understanding of English :(
 
Hmm, are deleted users' comments preserved?
 
hey guys quick question, is there any way to see all the community wiki posts with the PHP tag?
 
For example:
change your condition: if(isset($_GET['success']) && $_GET['success'] == 'no') — user1646111 Apr 21 at 21:56
 
I've been looking for this page for an hour, and I haven't been able to find it. Tried google too, no luck.
 
@AlanChavez: just specify wiki:yes in the searchbox
For example, if you're searching for SEARCHTERM:
 
5:44 PM
ahhhh let me try it
ahhhh it works!!!
thanks a lot Amal
 
you're welcome :)
 
is there any page with all the search "operators" ?
I don't want to use google to find things on SO lol
 
yes, just click on Advanced Search Tips
one sec
 
got it
Thanks Amal!
 
5:47 PM
this is amazing :)
exactly what I needed :)
 
@ircmaxell: Happy birthday!
 
@Recode Any other thoughts about my issue ? :(
 
news.php.net/php.internals/69205 … the problem with people proposing things without knowing problems with the implementation… :-/
 
Thanks!
 
@KodeSeeker nope, sorry, never got that to work, just tried once the sample app
@ircmaxell happy birthday ;)
 
5:55 PM
@ircmaxell: Happy birfday broskey
 
@ircmaxell I dont know you yet, but Happy Birthday! nonetheless :D
 
lol, thanks!
 
Some people in this channel never go offline. What's the secret behind that?
On IRC, there's tmux/screen/bouncer but what about this SO chat?
 
happy bday ircmaxell!
 
@AmalMurali we just don't close the browser (with the chat open) and don't shut down the computer at night.
 
5:56 PM
@Recode a generic question, could this be happening because of blocked ports? Did you try your sample app on local or a paid hosting site?
 
oh lol.
 
@KodeSeeker it was @bwoebi s server
so it wasn't local
 
@Recode oh okay
 
@Recode @KodeSeeker (and I didn't charge him anything…)
 
Does anybody have room on their servers for me to try this out? I just want to see if its the port or my code :(
 

« first day (1068 days earlier)      last day (3866 days later) »