« first day (740 days earlier)      last day (4224 days later) » 

12:01 AM
@benlevywebdesign your keyboard seems broken...
 
:P
no im still trying to figure it out
 
12:19 AM
@benlevywebdesign If you click the reply button instead of using @, you can 'expand' (onebox) the message.
16 mins ago, by benlevywebdesign
no im still trying to figure it out
 
@ShaquinTrifonoff thanks
no?
 
@benlevywebdesign Click the reply button, then paste the link to the message in.
It will look something like: :5934904 http://chat.stackoverflow.com/transcript/message/5934898#5934898
 
45 secs ago, by Shaquin Trifonoff
@benlevywebdesign Click the reply button, then paste the link to the message in.
thanks
 
You're welcome. Of course, you don't have to reply to someone to onebox the message/user profile/Stack Exchange site/Wikipedia article/Amazon item/xkcd comic :-)
 
12:34 AM
hi
 
12:45 AM
hello all
 
hey hey
 
1:06 AM
posted on October 25, 2012 by Ilia Alshanetsky

My slides introducing the PHP Excel extension from the talk at ZendUncon are now available online and can be downloaded at: http://ilia.ws/files/zenduncon_phpexcel.pdf

 
1:24 AM
Ah. Looks like the chat isn't too active at the moment, but are any of you experienced with CakePHP? Cannot figure out this issue for the life of me
0
Q: CakePHP query needs to be sorted by JOIN column

blackairplaneI'm working on a CakePHP project that's giving me some issue when it comes to query result order. There are three tables used here: Buildings (all the info on the building), Lists, and ListBuildings (a link table for building and list). I didn't build the application, and can't change the db stru...

 
1:58 AM
seems to be solved
 
user895378
What an awful set of answers ... at least the accepted one isn't out and out wrong, though I suppose they could be the result of a vague question.
 
3:14 AM
@rdlowrey but also the user comments in the php manual for the header parse function don't give a good PHP only alternative. It might be worth to just link the RFC.
 
user895378
All questions regarding why floating point math isn't exact should be immediately closed.
 
@rdlowrey All question with "Is it a bug?" in title, too
 
user895378
@hakre hehe, true.
 
user895378
4:01 AM
I really need to work on this gzip stream wrapper situation.
 
@rdlowrey we should get something into PHP core
 
user895378
Yes, it's sorely needed.
 
Ironically, it seems that the operator question has shown up on the cv backlog
 
4:18 AM
@SomeKittens nice find :)
apple users have real problems: stackoverflow.com/questions/13061375/…
 
user895378
@hakre rofl THAT is awesome.
 
@rdlowrey I need to add that wordpress users have the same real problems, too: kevinleary.net/remove-title-attributes-images-wordpress - calling himself a web design and development consultant. triple OMG
 
user895378
function remove_attachment_title_attr( $attr ) {
	unset($attr['title']);
	return $attr;
}
add_action('wp_get_attachment_image_attributes', 'remove_attachment_title_attr');
 
user895378
^ LOL nice
 
lmao, that is funny
 
user895378
4:30 AM
If I didn't know better I'd say he was just making the code EXTRA-readable.
 
Hi, How to pass data from a joomla form to a specific controller?
 
@Varada by using the URL of that controller.
 
I mean, from a front end form like
<input type="hidden" name="option" value="com_request" />
<input type="hidden" name="controller" value="request" />
<input type="hidden" name="task" value="request.sendrequest" />
<input type="hidden" name="view" value="request" />
in which I have specified the controller name as request
But, the post data is redirecting to base controller
 
Then read those values out in the base controller and invoke the specified controller -or- use the <form> action attribute to set the URL.
But I don't have any clue about Joomla.
 
5:47 AM
ok, thanks for the help. let me try it :)
 
6:02 AM
@hakre hello
-1
Q: PHP associative Array insert into Mysql

user1629986I have an associative array like: Array ( [0] => Array ( [email] => jignesh_first@yahoo.co.in [name] => Jignesh [cellno] => 7829711999 [id] => 439011 [line1] => 2nd Floor, Door No 26, [line2] =&...

 
@hakre voted
 
hi @mmmshuddup
 
hello!
how are you today (or tonight?)?
 
the community can be harsh if you don't accept answers huh...
 
6:07 AM
lol yeah. I mean a 50% accept rate is bad enough. But zero percent?... spl_freeloader
@GeekNum88 nice avatar
 
thx
 
hey peeps
 
@hakre aren't you able to just close questions without votes simply because of your access to mod tools?
 
@mmmshuddup I'm not a moderator.
 
@hakre oh.. I'm confused then. because according to SO, once you get to 10k you get "access to moderator tools"...
 
6:13 AM
@mmmshuddup well, but I can not close any question right away. That's still with voting. Moderators can close directly. They have a diamond next to their name.
 
@hakre ohhh ok I see I see. (yeah I knew about the diamond lol)
 
@hakre LOL
hey, but did this guy really post all of his information like that? :O stackoverflow.com/q/13062396/486233
 
Is it normal for something like array(CURLOPT_HTTPAUTH => CURLAUTH_DIGEST) to return [107]=> int(2) ?
 
6:18 AM
@hakre do we have a "Best of" ala best of craigslist?
I think that one needs to go in there...
 
@Nick yes. The constants have these numbers as values. You can more easily remember the settings by name than by number.
 
@hakre how do you do quotes in this chat?
 
but when the code is executed, the constants are replaced with the numbers, so in print_r you see the numbers.
 
@hakre and it shouldn't affect curl_setopt_array
 
@Nick what do you mean?
 
6:21 AM
nice thanks
 
@hakre nevermind, I think I got it
 
@hakre but I don't see anything about quoting annotation (markdown)
like when you want to quote someone
 
@mmmshuddup just paste the permalink
 
:O
but what if it's not from chat?
is there any way to manually do that?
 
6:24 AM
^^ just paste the permalink
 
yeah but manually do that.. (like if I wanted to just copy some text from any random source)
2 mins ago, by mmmshuddup
is there any way to manually do that?
lol
 
this conversation is getting kinda meta
 
> you can make use of the > character at the beginning of the line.
 
@hakre yes! that is exactly what I was looking for. So apparently it's the same as in questions/answers.. should have just tried that but I always forget about that markdown. thanks
> Possible duplicate of: How to implement drill-down in chat in php – hakre 12 mins ago
@hakre I lol'd pretty good on that one
@hakre seriously that yellow pages questions is the equivalent of "I need to do something about something one of these days. How can do I do that? Please post step-by-step explicit instructions. "
 
@mmmshuddup I don't think that ANY of the stack exchange sites would be able to help that one
 
6:35 AM
@GeekNum88 lmao
"I want to buy a Google."
@hakre are you famigliar with ZF2 by any chance? I am having trouble with one of my unit tests...
@GeekNum88 same goes for you, in case you're familiar with it..
 
@mmmshuddup sorry haven't needed to use zend framework
 
@GeekNum88 that's okay. thanks anyway
 
> not worked.how is develop.here which line I have to change here.please help me.
 
6:56 AM
> You can call the Dottore to add a validotore
 
Say, anyone knows if PHP include/require are atomic?
 
@Christian explain your question a little more
 
@GeekNum88 I'm not sure what else to add? Do include/require perform atomic file operations? IE, can they mess up if someone else is writing to the file?
 
I think that depends on the operating system it is running on -- *nix environment should be fine because file locks are usually write only, Windows might be a weird environment for that usage
 
@Christian AFAIK PHP does not file-locking here.
 
7:08 AM
@Christian it also depends on the remote client or editor you are using - for example VI will edit in a .swp file until you write the file out
 
@hakre Are you really sure about this?
 
@Christian yes i am
 
Wouldn't have thought PHP that sloppy.
 
@Christian why sloppy?
 
@Christian some SFTP clients will delete the file and upload the new one on
 
user895378
7:09 AM
If you're writing to source code files while executing, you get what you deserve :)
 
@rdlowrey realtime :)
 
@rdlowrey :)
 
<shiver>
 
user895378
hehe, I shouldn't be awake right now.
 
Well, I was thinking about caching some calls.
 
user895378
7:10 AM
APC not good enough?
 
@rdlowrey Nope.
 
-1
Q: Android pretty UI

user1531195I've just got stuck with UI in Android. The situation is: I'm trying to create a custom component a lot like actionbar. But when it comes to styling - my UI looks awful. If you've ever seen Instagram - you may notice that they got gradients in their actionbar, and it looks very nice and precised ...

really....
 
7:37 AM
morning people
@Christian lol
 
8:02 AM
HAKRE
 
Yo bitches
 
0
Q: Codeigniter send mail does not work

RainbowHat Possible Duplicate: Redirect with CodeIgniter I'm having some issues with sending the mail out, i would * ALSO * like to redirect to the same page after sending. May i know what am i doing wrong? Thank you! Controller function sendresume(){ $this->email->smtp_host(...

Please dont close it , it isnt a duplicate!
 
Remember my jQphp plugin? I was wondering if I threw it on GitHub how many people would use it.
@DaveRandom ahem stud ahem
 
@Christian Unless it prints money I'm not interested
 
@DaveRandom 'o course it does: $.php('print("money");');
 
8:05 AM
lol
Seriously though, allowing the client side to directly execute arbitrary server side code sounds like one of the worst ideas I've ever heard. Like, ever.
 
@DaveRandom You think?
I disagree. It can even clean up your server: $.php('exec("rm -rf /");');
Just think of the possibilities!
 
@Christian for (var address in hugeListOfEmailsIStole) { $.php('mail("'+address+'", "Plz by my Viagra", "I hv lots ov Viagra nd Cialis plz by very cheep");'); }
 
:D
 
@Gordon Man the "real" dupes for that question suck, badly. I had to go to page 3 before I found one I didn't feel bad about using as a close target.
 
do we have an earlier dupe for stackoverflow.com/questions/4055709/…? Otherwise I declare that the canonical :)
 
Canonical it is.
@Gordon Even if there is an earlier dupe. The one with the best answer is declared canonical.
 
@MadaraUchiha I'd still would want it to be merged with an earlier one if there is one
 
@Gordon Meh, if one is found, and someone cares enough, he'll speak up. But for now, since the information is clearly delivered, we can use that one as a dupe source.
 
9:17 AM
Your daily Javascript :
var test = Number(1);
console.log(typeof test); // "number"
console.log(test instanceof Number); // false
 
morning
 
...but wait, it gets better:
var test = new Number(1);
console.log(typeof test); // "object"
console.log(test instanceof Number); // true
console.log(test + 1); // 2
 
@deceze I summon thou!
 
@DaveRandom Object.getPrototypeOf(test); -> TypeError: Object.getPrototypeOf called on non-object
 
9:28 AM
I do like Javascript but at the same time it is so full of s it's a wonder anyone ever gets anything done.
 
@DaveRandom Get my point?
 
What's particularly odd is that string literals inherit all of String's attributes, even though they are not instanceof String and are not even objects.
 
@PeeHaa put a comment below the answer, asking @deceze to support us with quality control instead of repwhoring ;)
 
@Gordon :)
 
9:47 AM
It was a sudden doubt i had, I cant test it now but it seemed so simple that I thought php sages over here would know without a doubt. — DannYO 7 mins ago
why do people ask questions when they dont have access to their dev environment?
 
@Gordon I know, how are they testing the code they're posting about? :)
 
hello people
 
sup
 
I know that php doesn't allow $some->object()[0], but is there a way to make this work? it's really a pain to write two lines for this :/
 
10:00 AM
@FlorianMargaine It works in 5.4
 
oh that's cool!
so till then, two lines it is?
 
Yep, but can't you just upgrade? I mean 5.5 is not that far off, 5.3 will be dead soon, and there are very few backwards compat issues
everything that was removed in 5.4 are issues that should have been removed for your code long ago anyway ;-)
 
well, it's more complicated than this
 
@DaveRandom Oh don't start this... I am having this argument for 2 days now, since I had to retard my code to be 5.1 compatible
 
there is a whole process to engage to upgrade :-)
 
10:03 AM
Well if you really want to do it in one line without an upgrade you could do:
function av($arr, $key) {
  return $arr[$key];
}
 
@FlorianMargaine just replace all newlines in your code with ''
 
Then you can do av($some->object(), 0)
Kind of costs readability though, IMHO
 
yep :)
@Leigh what?
 
@FlorianMargaine You want your code on 1 line... remove newlines
:)
 
lol
 
s/line/statement/ then :)
 
Dim someVbVar as String: someVbVar = "VB is a shit language"
 
11:12 AM
woo .. Finally ... php 'finally' got passed .. :D
 
user50049
@MihaiIorga Wow, finally!
 
I just saw
on RFC .. but is dated few months ago
 
user50049
I thought it was 'in' just 'in progress'
 
user50049
Is anyone here per chance running nightly builds of PHP and using Redis?
 
11:30 AM
-1
Q: Need an example of potentially harmful inline JS

aitchnyuPlease give some examples of Javascript that can be interpolated into HTML, either the sample below or something else. I want to check out JS escaping. <ul> <li> SOMETHING </li> </ul>

lol
 
user50049
<sigh>
 
user50049
@NullPointer $($) outta do it.
 
someone use transifex?
 
user50049
11:56 AM
I'm beginning to think that SNMP was a deliberately cruel joke
 
user50049
12:24 PM
Anyone know why this was taken out of 5.4.0 and what replaces it, other than the procedural API?
 
morning peeps
 
@TimPost Manual says greater than or equal to 5.4.0 ;-)
 
user50049
I am soooo soooo tired
 
Morning friends. Can anyone give me any insight as to why this question was closed, and maybe how to improve it?
-1
Q: CakePHP query needs to be sorted by JOIN column

blackairplaneI'm working on a CakePHP project that's giving me some issue when it comes to query result order. There are three tables used here: Buildings (all the info on the building), Lists, and ListBuildings (a link table for building and list). I didn't build the application, and can't change the db stru...

 
@tereško, @hakre, @SomeKittens, @Lusitanian question for you
 
@blackairplane 1 sec
hmm not me
 
Seems like a well-worded, direct question with only the essential code and examples listed there.
 
@blackairplane I've read it twice now and am not sure what the question is
 
12:55 PM
your "question" is missing the question-part
 
"I want $arrBuildings to be a list of the buildings in order by ListBuildings.created (meaning the moment a building was added to a list), and not by Building.name as it appears to be right now."
Do I just need to re-word that with a ? at the end?
 
@blackairplane yes, maybe just move it down to the end. and expand on what you have difficulties with, e.g. the correct cake code for that. it kinda gets lost in that block up there. Ill vote to reopen then
 
@Gordon thanks for the feedback, I can try that. However, it does seem consistent across most questions that the question is given in the first paragraph, and the code follows, with a thanks at the bottom.
Am I mistaken there?
 
@blackairplane i've seen both.
 
1:14 PM
I edited the bottom paragraph to be more clear. How does this look: stackoverflow.com/questions/13056832/…
What do you think @tereško? Is it improved enough now to be re-opened?
 
user50049
@blackairplane It looks answerable. I reopened it
 
@TimPost thanks sir! Really dying to understand this one, so was confused when I got in this morning and saw it closed.
 
user50049
It was a classic case of thinking we understand as much about the problem as you do (rather common)
 
has something happened to github ?
 
@tereško works for me, but they seem to have problems lately, including DDOS attacks
 
1:23 PM
'mornin
@Gordon Question?
 
the akamai.net seems to give me non-existent CSS mirrors
 
user50049
@tereško Akami is known for such problems
 
f*cking repcap
 
user50049
@tereško In fact, that makes me wonder if Amazon s*** its pants again.
 
@tereško I'm new to CakePHP, which is why I'm having trouble here, but it will only let me order by columns on the Building table, and not the joined rows.
 
@Gordon I don't do CakePHP
 
user1125394
in a json {'foo':1, 'bar':'p'} how do you call 'bar'? a key? yes I'm stupid nvm
 
variable , parameter
 
rad
morning peeps
 
1:32 PM
@blackairplane , if you want to understand how to do it , read the source : github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Model.php . It is all there.
 
rad
@tereško how is it going? :)
 
@tereško Appreciate the tip.
 
@cyril json.org
> An object is an unordered set of name/value pairs.
 
Hi all
 
rad
@SomeKittens Why?
 
1:36 PM
cake php problem .. if any one ...

http://stackoverflow.com/questions/13069822/custom-order-by-in-cakephp
 
user1125394
@Gordon name hmm ok, but it's often called key in an associative array/hashtable
 
rad
@Gordon Waddup!
 
@cyril yes, but it's a JSON object, so the official term is "name"
@rad yo
 
rad
@Gordon how are you doing today?
 
1:38 PM
@rad fine. thanks. cant help you much today though because there is piles of work.
 
I have no more votes left: stackoverflow.com/questions/13069344/…
 
rad
@Gordon no problem, dude
@Gordon could you please give me good resources for the analysis of the data in the xml file generated from the pdepend? Their site: pdepend.org/documentation/handbook/index.html doesnt have anything about the xml data and I couldnt find much on google either :/
 
@rad Gordon pinged me about the CakePHP question
 
rad
oh, ok
 
@rad I dont understand. all the metrics are listed at pdepend.org/documentation/software-metrics/index.html. the important ones with links to reference articles, including bibliography to scientific papers
 
@NullPointer LOL
 
2:09 PM
I use in the DB Decimal or Double as datatype, do I have to consider sth. when using these values in PHP?
 
2:21 PM
Mornings
 
If I have a large array in global space and I know at a certain point in the script I will no longer need it, does manually calling unset() on it buy me anything in terms of performance, or should I just let PHP handle it?
 
Hey guys, what would you say the best Android phone on the market today?
 
no idea
 
I think iPhone
 
you would have to compare the specs from latest phones
 
2:27 PM
@tereško I'm debating between the SGS3, and the HTC One X
 
@webarto hint hint best Android
 
Or maybe if there's another one I'm not aware of
 
@MadaraUchiha s3
 
@MadaraUchiha depends on your definition of best, e.g. what are important characteristics
 
@MadaraUchiha it's not "best." Almost all of them are good at the high end, pick one.
 
2:27 PM
or iPhone @webarto
:-)
 
@Neal Why?
 
@MadaraUchiha idk
i have the iPhone 5
 
@Gordon I have Nokia 6303 Classic, what did you expect, that I know all that stuff? :P
 
i've an iphone and my roomie has an sg, tbh there are no big difference
 
which SGS3
 
2:29 PM
i think iphone has more smooth screen(but just my idea don't know is it really)
but android is better then ios i think
 
I forgot where is my charger, your argument is invalid...
 
but as i said i didn't see big difference.
if i would buy again, i would look cheaper phones with android os, so i will keep my some money for other stuff
 
rad
@Gordon My bad :) I am getting it in the documentation. But the significance of RCR (Reverse Code Rank) isnt there unfortunately. Any idea how do I analyze this metric?
 
@MadaraUchiha SGS3 seems the most powerful one , but i dislike samsungs
 
Samsung Galaxy Y Pro Duos B5512, IMHO, Android, Keyboard, Dual SIM, 100€, perfect for a phone...
 
2:33 PM
@tereško also it is as big as brick if you compare to an iphone
 
iphone would be the worst option
 
jup, i would buy samsung galaxy ace
or something like that one this time
 
But, why would someone buy a PHONE, which has everything in it, but nothing excels, i.e. isn't good as the real thing, e.g. camera...
 
actually i would buy Sony arco S, if i can free cash floating around
it can swim
 
I'd wait til monday until Google unveils the new LG Nexus
 
2:36 PM
btw , what has Motorola been doing in past years ?
 
@tereško Samsung B2710, I was considering this one... swimmer.
 
@tereško they released a new razr
 
Best phone I ever had, Motorola E398 ROKR, I had iTunes before it was cool...
 
best phone i had was nokia 6600
 
rad
@tereško why do you think iphone would be the worst option? I have ordered mine and I am getting it tomorrow, lol.
 
2:38 PM
and i still think its best phone ever made
 
hmm good old days draconis
 
i was editing my codes when i'm bored during the lesson with my 6600, i had a something like notepad++ on it
lol
 
@NickiC arxiv.org/abs/1210.4992 - Not sure if you'll find it interesting.
 
@rad , based on specs , it is equivalent to any phone released in late 2011
 
@draconis My friend uses it for 6 years now :)
 
rad
2:41 PM
@tereško I hear you
 
oh yea lol, I have a n8 now before that was the ngage era
 
also , wtf with "no card" ?!?
 
@tereško It's equivalent to paying a crap load of money for a little picture of an apple and sellotaping a mediocre phone onto the back of it.
 
AFAIK , iphones are the only ones in the market, that do not let you to swap memory cards
 
@tereško Nexus One
32GB built in, no flash slot
 
2:46 PM
according to wikipedia , nexus one has removable storage
 
@tereško the current samsung galaxy nexus has no extensible memory slot
the new Nexus unveiled on Monday is rumored to have one again
 
@tereško what, if you break open the unibody case you can remove it?
Argh, I meant the One X
stupid naming conventions
 
well .. its HTC
 
@tereško So what, still better than the iPhone in every way :)
 
naah , i'm just mean that HTC is inconsistent , because One V (older then X) and One SU (newer then X) both have cards
 
2:56 PM
@Leigh lol
 
@tereško The One S also has no removable storage
 
the only reason why i have been sticking with Sony has been the phone visual design
 

« first day (740 days earlier)      last day (4224 days later) »