« first day (816 days earlier)      last day (4118 days later) » 

@ircmaxell ah, I see everything is as usual in internals
 
Anonymous
howy folks
 
Anonymous
@Gordon see you're still ehre :P
 
@SkippyChalmers in this chat? yes. i'm idling.
 
Anonymous
10:05 PM
it pains me to ask this question... @hakre will know I was moaning about drupal all last night
 
Anonymous
znyone know how to theme menus on drupal?
 
hi @Gordon! ;) - php.net/SOAPOpera
 
Anonymous
drupal 7, to be specific
 
Anonymous
you'd think there was a view file or something like that... :P
 
@hakre yeah, i know why i dont follow internals
 
10:08 PM
ffs, why did you have to go and make internals interesting again, I needed a boring day!
How am I supposed to be productive now!?
 
if i compress a folder under apache folder, will it keep permission set?
 
Anonymous
oh duh nvm
 
Anonymous
anyway. how is everyone?
 
@Happyninja Depends on the archive type you choose.
 
zip
 
10:10 PM
@SkippyChalmers I am stressed, but my users are happy, for we finally, after a decade without, have caller ID on our phones!
 
Anonymous
@Charles SUCCESS
 
Anonymous
:)
 
2
Q: Maintain file and folder permissions inside archives

ajaybcI am packaging and distributing a program I made for Windows,Linux and Mac. I plan to put the files and folders in zip archives. If I set the correct folder and file permissions and then compress into zip and redistribute them, will those permissions be maintained when the user extracts them in ...

tl;dr use a tar, not a zip
@SkippyChalmers You have no idea. It's good to have competent vendors to work with for once...
 
Anonymous
@Charles competency is over-rated
 
Anonymous
:P
 
10:12 PM
@Charles is there a way to script some kind of php (apache) installer for my app? It is realist and more important, it is the good way to resolve it?
 
@Happyninja A common pattern is to actually use the FTP functions to FTP to the server you're on and extract files there, with the proper permissions. It's insane, but it usually works ... if FTP is available.
Alternative 2: PHAR. If you can restrict yourself to PHP 5.3+, that is.
 
@Gordon yup
 
hi , is there something else atribute to just read the input ? like readonly and disabled is there something else ?
 
@Charles why would it be insane? I can't afford alternative 2
 
And for the record, I'm not going to apologize for the "shut up" comment. It needed to be said...
 
10:15 PM
@Happyninja Maybe "insane" is a bit strong. I just find it very odd and roundabout. I mean, it totally works, it's just silly.
@ircmaxell While I don't think you should back down and agree with you 100% on the entire message, you could have used wording that was less ... harsh.
 
0
Q: How can I pull 2 paired elements from a csv file and add them to an array using PHP?

Dryden LongI have several csv files that contain order information for products. My csv files look something like below: order_number,sku,qty,price_per,total_price 12345,55555,25,4,100 12346,33333,10,5,50 12347,55555,20,4,80 I'm not having any trouble finding out the total_price for all transactions, but...

 
@Charles i have seen kind of script 'installer' would it be appropriate? Could I set permission using a php script to initialize them?
 
we have 6000+ questions about CSV files and people keep asking them
 
heh
 
not that this one is particularly about csv files
but still … trivial
 
10:19 PM
Could have? Sure. But the point was to make a statement...
 
Rails has the same good qualities that PHP has when it comes to security and QA. First they have some really crazy vulnerability, then they patch it, and obviously completely break JSON parsing with that :D
 
@Happyninja Permissions aren't really the problem so much as file ownership. You can't change the permissions of a file you don't own, and too many shared hosting setups still run PHP as a user other than that which owns the filesystem in which the script runs. If not for the ownership problem, it'd be easy...
 
any idea ?? on my question please
 
@NikiC LOL
 
@ircmaxell Just be careful not to lose credibility by breaking out the strong wording too often. You're smart, people should be listening to you, not wanting to ignore you. :p
 
10:21 PM
@Charles When was the last time I broke out a strong word like that ;-) And thanks!
 
@ircmaxell Good point
 
@Charles thanks for the information, i really appreciate it. it's still a bit confusing to me, could i ask you some documentation link for me to read more about it?
 
@Happyninja Unfortunately I speak from experience, not from documentation. Sorry.
@goodmood Your original question was not clear. Please rephrase?
 
@Charles Using strong words and/or talking bullshit doesn't stop anyone from listening to you
Otherwise everybody would just ignore Stas
 
Evening
 
10:24 PM
@Charles thanks you anyway ;)
@DaveRandom hello
 
@Charles i have input , and i want user just read its value , i know there is readonly and disbaled im asking if there is something else .
 
@PeeHaa: Hotel booked, yet no exact TOA for Friday ;)
 
@hakre what happens on Friday?
 
@Gordon Friday the first of Feb. On second is FOSDEM 2013 starting.
 
@Gordon Gotta get down on Friday
 
10:26 PM
@DaveRandom Party Party Party
 
@NikiC and Linus
 
@goodmood I'm sorry, that does not make any sense. You have an input, and you want to read the value from it... using what? How? How does it being readonly or being disabled have to do with anything?
 
@goodmood No there isn't anything else. Besides just "not using an input" and putting the data in e.g. a <div>
 
10:32 PM
i have an input with some value , i want users can edit it , just read it , so i know i can make it as readonly or disabled for users for they can just read this value , im asking if there other attributes which let users read only beside readonly and disabled?
 
> A lot of work has gone into making this beer event the best ever. We’ve taken into account the suggestions from previous years and are confident that this edition will be a blast. Bring your friends and join us for a great evening out as well as a great opportunity to socialise with fellow contributors from all around the world.
 
@Charles I think your brain skipped over the word "user" (like mine did the first couple of times I read it)
 
@ircmaxell i dont know what this was initially about but I dont think PHP needs some sort of vision beside the one it has right now. PHP is like the Borg. And everything worthwile from other languages will be assimilated. In that sense, PHP has been Agile long before Agile was a Trend.
7
 
@Gordon unless Stas has something to say about it :-P
 
@DaveRandom ok thx , nice that u understood me :)
 
10:33 PM
@DaveRandom That and the word "can" being used instead of the words "can not"
 
@hakre interesting. didnt know Volker will be there
 
@goodmood Besides readonly and disabled, you can also try catching focus events in Javascript and then returning false and/or calling blur... same thing for keypress events.
 
@Gordon I'll partially buy that. But the problem is worthwhile things are being left out or pushed aside because "PHP is not X"...
 
@Gordon Yes just saw. We might do an Agile By Design - The PHP Vision lightning stand-up talk, too ;)
 
@Charles Mmm, nothing like a bit of unnecessary Javascript to warm the soul :-P
 
10:35 PM
@Gordon Put another way, PHP is like the English language. It steals the interesting bits of all the other languages, but misuses them so horribly that the result is an abomination.
5
 
@Charles ok thx
 
Damn today I crushed my hand. And it sucks because when writing, I need it!
 
@DaveRandom Well, to be honest, disabled sucks because you can't even select the text inside the control, and readonly sometimes does the same thing depending on the browser.
 
@Charles Doesn't keypress fire after the input has been focused/updated? I think that would only work with keydown
 
@hakre no one writes nowadays. people either type, swipe or dictate
 
10:36 PM
@DaveRandom Yeah, true
 
0
A: PHP website design

shiplu.mokadd.imI think you searched for PHP tutorials. But the approach you are talking about is called MVC. If you search PHP MVC tutorial you'll find a lot of them. Note, Jumping into learning a framework is really not a good idea as a new php programmer. Get a good grasp of the language itself then go for ...

 
@hakre yesterday I told my Nexus I want to write an SMS to my wife and then told it the content. Worked like a charm.
 
Okay, so I work for a server hardware vendor. We just got a huge order in from a company that backs one of the NoSQL database projects.
 
@Gordon Well, instead of talking to your smartphone you should talk to her ;)
 
The huge order is for SSD storage servers.
Using OCZ SSDs.
OCZ SSDs have a terrible failure rate.
 
10:38 PM
@hakre she wasnt available
 
Do these people want to reinforce the "we don't care about data consistency" message!?
 
@Gordon There is something called "paying a visit" and persons magically become available. ;)
 
@Charles had a lot of return on seagate drive too
 
Spread the luv ;)
 
@Charles Doesn't matter, they're just writing to /dev/null anyway. Persistent storage is not webscale.
 
10:39 PM
@hakre that would have taken a 90 minute train ride and she'd still not be available then ;)
 
@Charles Isn't that what NoSQL is all about?
 
Apparently, but I expected better!
 
@Gordon Hmm, time is relative I tell you. And also you still would have been able to do that and then just wait for her. She will probably loving that having you wait for her. Who knows ;)
 
@Happyninja With the few hundred drives I'm in charge of, so far I've thankfully seen about even failure rates across all vendors. Well, all two vendors now. Stupid consolidation.
 
@hakre Time is an illusion. Lunchtime doubly so.
 
user895378
10:41 PM
@hakre I also require the use of my hand from time to time!
 
user895378
Quelle coincidence!
 
@Charles i think there is a curse over maxtor drive
 
Oh Look, An Oven That Runs Android #ces2013 http://bit.ly/10fN0Jw
4
 
@DaveRandom And so is my 7 años?
 
@Gordon Does it burn my food when it crashes?
 
10:43 PM
@hakre I cut my butt, 20cm wide, 5cm deep, I can't sit, your argument is invalid :P
 
@Charles No, but hacking the device via WLAN is probably more fun then just starting the 2500 page print job.
 
@Charles i dont know but maybe it has a Bacon App
 
@webarto I've told you before to keep your perversions to yourself.
 
@Gordon I would be overjoyed to press a button on my phone and receive bacon from my oven when I got home.
 
@hakre no kidding. it got wifi
 
10:44 PM
@Charles terrible failure rate in general? compared to spindle disks? Or compared to other SSDs...?
 
As it is, I have to push lots of buttons and hope that my wife has bacon and already plans on cooking it. Such effort.
@ircmaxell Compared to other SSDs. Mostly in a historical sense. We have a pile of them on the support guys' desks. They whine every time we sell'em...
Maybe their newer drives aren't as craptacular.
 
@Gordon Sure, I hope so. And bluetooth and Gigabit LAN so that you can stream HD videos into the oven (hopefully) so to use it while you have a kitchen party.
 
If it's lower than physical drives, I'm not that concerned... If it's higher, that's BAD...
 
+1 for the word craptacular
 
@DaveRandom craptacular programmixing?
3
 
10:46 PM
Damn straight
 
@ircmaxell Lemme see if I can get the actual failure numbers, though it might take a while. Gotta write the SQL manually. Stupid excuse for an ERP, someone oughta kill whoever's in charge of writing it. Oh, wait, that's me.
 
lol
 
@DaveRandom i used onkyedown =' myFunction()' and in javascript , i have done this myFunction(){return false ;}; but its doesnt do anything , its not disabled this input
 
@DaveRandom I was cut by ski, I'm the only one registered with that injury. It wasn't on purpose :P
 
@goodmood you need to do onkeydown='return myFunction();', or preferably assign the event handler properly in JS
@webarto Dude, a ski?? What were you doing to get through you pants and that far into your ass??
(and don't say "skiing")
 
10:49 PM
@DaveRandom nothing happened
 
@hakre It is missing a webcam though. I want to see how far the cake is without leaving the couch
 
Is there a keyboard shortcut to auto-complete someone's name after the @
 
@goodmood Try just onkeydown="return false;"
 
@Leng tab
 
@ircmaxell thanks
 
user1125394
10:50 PM
I've been cut by a skin (head)
 
user1125394
not far
 
@DaveRandom worked :) thx
 
@webarto I feel sorry needing to read that because yes my problem is actual minor. urgs, sounds really butt hurting.
 
@hakre I can't sit, I'm useless, what a paradox :D I meant to say, smallest injury can be big obstacle, like texting your wife you are staying late at work :P
 
why in some php files they dont close php tag ?> in the end .? is it something special ?
 
10:53 PM
@Gordon even more hard, you can not crate a live-stream out of your oven.
something like my-sweet-oven-at-home.tv
 
@goodmood No, the closing tag is not mandatory, and it is recommended that you omit it wherever possible
 
@goodmood Php knows to close scripts at the ned of the file
My question is... why don't all PHP 5 servers parse <? ?> the same as <?php ?>
I seem to be required to use <?php instead of <?
 
@Leng because it's a setting.
 
In php.ini?
 
10:54 PM
@Leng yes in php.ini php.net/short_open_tag
 
beat me to it
both of you
 
Ah how handy, thanks guys
 
and you might want to consider the long form if you need XML compat: en.wikipedia.org/wiki/Processing_Instruction
 
@Leng Always use the long tags, don't enable short tags, for one thing it screws with XML literal declarations and for another it screws portability
 
And if you write portable code, take the long form, too.
 
10:55 PM
Oh I see, or PHP will be parsing all of my XML files?
@hakre @DaveRandom Okay I see.
 
nite nite
 
@hakre This mind merge is starting to produce a lot of duplicate content
 
gn8
 
@Gordon nighty night
 
@Gordon nacthy nacht
 
10:56 PM
@DaveRandom You think with me together unite, duplicate!
 
Haha
 
shit I still need to do some calculations, argh.
too much chatting here. go away ;)
 
@hakre FYI 1 + 1 = 2
 
user50049
'Allo all
 
Howdy
 
10:57 PM
good morning @TimPost
 
And I'm reliably informed that 2 + 2 = 4 although I haven't actually checked.
 
The phrase "two plus two equals five" ("2 + 2 = 5") is a slogan used in George Orwell's Nineteen Eighty-Four as an example of an obviously false dogma one must believe, similar to other obviously false slogans by the Party in the novel. It is contrasted with the phrase "two plus two makes four", the obvious—but politically inexpedient—truth. Orwell's protagonist, Winston Smith, uses the phrase to wonder if the State might declare "two plus two equals five" as a fact; he ponders whether, if everybody believes it, does that make it true? The Inner Party interrogator of thought-criminals, ...
 
lol
 
:)
 
PHP
Rule 1: United we stand
Rule 2: Divided.. we fight a bit on the lists and then ... see Rule 1
 
user50049
10:59 PM
So I was thinking of proposing .. PHP should be parsed directly by chat server side, but only in this room, and only for new users that have more than several down voted questions. I gotta shed some meta rep.
 
@TimPost Only for code that matches some SQL detection regexes
Or if it contains an eval()
 
@TimPost Only if it runs as root on the server...
 
With exec() enabled
 
@TimPost Does this server have HTML installed?
 
11:01 PM
We seem to be trolling nobody
I'm going to go do something useful
 
Anyone have any advice on how to format a date range?
This seems a little too wordy:
Wednesday, January 2nd - Tuesday, January 8th 2013
I guess it has to be wordy though O_o
 
user50049
I was looking at the PHPDoc docs, and I don't see a notation to indicate if a method throws. E.g. @throws FooException
 
user50049
Is it common to just note that in @return ?
 
@Leng Maybe the DateFormatter shows you some different ways?
@TimPost @throws FooException should be common to use.
 
@TimPost @throws is mentioned here, I'm sure I've used it before
 
user50049
@DaveRandom Ah ok, it's just an oversight on the list then
 
user50049
Thanks :)
 
anyone knows is there a plugin available that shows facebook posts in wordpress page in full scale?
 
user50049
@MeigoAlDozary I'm pretty sure that's part of at least 4 or 5 social plugins, but I don't know if there's a plugin just for that
 
11:18 PM
@webarto Yes, there is some value in installing HTML.
 
user1125394
yesterday, by Mario S
I forgot to install HTML too :[
 
@DaveRandom No, we already discussed this. We're not ordering them by date.
 
11:35 PM
@GoogleGuy What's wrong with an option? I'm not trying to force it on anyone... I envisaged a select at the head of the comments, surely all it would need to do is append a different ORDER BY clause to a query?
:-(
 
@DaveRandom No, there is no query and there is a very specific reason for why the notes are currently sorted the way that they are.
 
guys could u help out with some css? i have a website on grid framework and some things are a bit messy, could someone check it out?
 
@GoogleGuy There is no query? How are they stored?
 
Evening guys
 
user1125394
11:50 PM
kwg.tv/go/?be2c86e "fly crash your body"
 
@DaveRandom The notes system is made up of ancient legacy code that was written back in the 90s. Notes are submitted to a central backend server where they are stored in a database and later copied into an archive that gets synced to the mirrors. The mirrors then read in that archive and are able to display them on the manual pages. They are sorted based on an algorithm that I implemented which makes it fair.
The old system was unfair because it always favored the most recent notes, but the most recent notes were not always the best quality notes. The new system is fair because it takes multiple criteria into account when it sorts the notes. One of those criteria is how recent the note is, but it is not the only variable.
The point is simply to always have the notes people find to be of the highest importance at the top of the page. Whether that note is 10 seconds old or 10 years old is not the only deciding factor.
 
@GoogleGuy Well then I guess the question is: if something goes wrong (through e.g. organised vote spoofing), can the documentation mods adjust the results?
 
@DaveRandom Yes, the system takes several things into account to thwart spam. One of those things is the ability for moderators to detect vote spam. The same way we detect spam in user notes except this provides for a lot more automation. So now we do the same thing we've been doing for years, but with less work from the moderators.
 
user1125394
just sort with notes, you don't need a pagerank
 

« first day (816 days earlier)      last day (4118 days later) »