« first day (649 days earlier)      last day (4299 days later) » 

12:00 AM
.. this will require a tea
 
or a scotch
 
do you guys remember when we used to just dump it all in a single file
 
which is what I need
 
i only have few drops of plum brandy in a bottle
it is not a brandy-kind of an issue
 
user895378
12:28 AM
Corona Light -- good enough for unit testing. And it's the only alcohol I have in the house at the moment.
 
12:41 AM
@rdlowrey I use good old H20.
 
user895378
I usually do too ... sometimes after a long day of programming I treat myself to a glass of enhanced programming, though.
 
2:12 AM
good morning
i am looking for a good zend framework video tutorial please refer me to a good one
 
3:04 AM
they have those?
 
@rdlowrey I usually have at least one bottle of every major type of alcohol. And multiple of the stuff I like (Scotch, Whiskey, Beer, Bourbon, etc)
 
user895378
I'm usually better equipped, but my younger sister and her husband came into town two weeks ago and my older sister stayed with me last week, so I've been wiped out.
 
I've got at least 24 bottles in my fridge right now
 
user895378
I need to make a trip to Costco and stock up ...
 
Well, at least 12 of that is home made...
 
user895378
3:10 AM
Ooh nice. Homemade liquor, wine or beer?
 
beer
Speaking of which, I need to brew some more
 
3:55 AM
hmm.. homemade brew.. gr8 way to start your day.. wish I had some
hey all
 
4:26 AM
What is this I don't even
-3
Q: PHP syntax error for list()

TonyI've never coded in php before and I'm sort of new to this and I'm helping my local community center fix up their community site and I came across a problem on the script I've been trying to fix but have no clue how can anyone offer a solution? If not them if you can point me towards the right di...

It's like asking "what's wrong with this code":
function:: (5 &+ 7 "hello"
 
hello all
 
5:27 AM
Coffee anyone?
@minitech and answer would be : The coder.
 
 
2 hours later…
7:36 AM
posted on July 26, 2012 by Stuart Herbert

At the start of the month, I was on a panel at Unified Diff (which, if you’re in the South Wales area, is well worth your time going to every month), and the last question we had is well worth expanding into a blog post. We were asked what each of us would do with a failing developer, and everyone was taken aback by my unequivocal answer: I’d fire them. After some back and forth between us (w

 
8:19 AM
UGT
 
@deceze ? no hello? no howdy? no bon jour?
 
*cough*cough*
مرحبا.
 
ya.. marhaba to you too
 
8:50 AM
yeah, coffee!
 
9:11 AM
yakshemash
 
Gesundheit
 
pozdravlenie
 
9:40 AM
Did everybody's Mountain Lion upgrade fail, or why is it so quiet today?
 
ya its awfully quiet today..
is it the apocalypse already?
 
Already? Damn, missed it.
When's the next one?
After all the util.php hubbub yesterday, someone reddited my article: reddit.com/r/PHP/comments/x2uvu/…
Suddenly saw a ginormous spike in traffic... ^_^
 
10:08 AM
hello all
 
hmm.. reddit is really the best place to be to get news on the net.... hmmm
 
What was this util.php thingy all about? I only saw a comment about on ircMaxell's twitter.
 
@Whisperity Simply yet another terrible library that got hyped way more than it deserved...
 
10:30 AM
've had a quick read through it. Will print for further inspection later.

Can anyone give a shorter TL;DR on what PHP/MySQL programmers need to do to be safe? I've been programming PHP for about **13 years** and never had any issues, but I assume I will run in to some at some point.

I just leave my MySQL tables on the default: latin1_swedish_ci. Should I be using something else?
@deceze force is strong with this one :D
 
Greetings
 
@webarto Yup. Hey, lets TL;DR summarize security for this poor chap, because there really isn't anything to be found out there about this topic already... -_-;;
 
Why there are so many PHP developers in India? Are they good?
 
@deceze I'm guessing he didn't have any problems because he wasn't using unicode :P
 
@DanielsPitkevičs like we know every PHP developer in india...
 
10:39 AM
@GeoPhoenix I think I've seen them all on SO by now.
 
@DanielsPitkevičs because there is 1.2 billion of Indians...
 
@GeoPhoenix Like You didn't get the question. I'm not asking about each particular PHP developer in India. I'm asking just in general.
 
global $template, $db, $user, $sess, $cache, $cfg, $lang And of course, you need to invoke this clutter partially in every single goddamn function. Argh...
 
And no, most of them are not good... ;-(
 
@Whisperity WP? :P
 
10:40 AM
@webarto Well, yes, but most of them live on the street and dont own a computer.
 
and most of them are smarter then most of people...
 
@webarto Not really. It's just a tinkering framework I am using to play around with ideas, designs and for self-education. But this global space is so goddamn cluttered.
 
@deceze That's good, otherwise we would have great competition.
@webarto Why do You think that?
 
@Whisperity well if you are using global, you are doing it wrong... put code on github so we can flame you today :D (jk)
 
@webarto Like.
 
10:43 AM
@webarto Nice
 
@webarto I know I am doing it wrong with global, that's why I am researching what other options to use. The problem is that the $user class relies on $template, it's really couplated...
 
http://www.youtube.com/watch?v=Gzi4xfMWMuw
http://www.youtube.com/watch?v=6EvoLeyhIyw
@Whisperity I can't imagine why it relies :\ Have you used some "popular" frameworks?
 
@webarto Oh my god...
@webarto I did, but only used them, not really dipped into their code. (The user class relies on template only if there is an error message to distribute.) But I am having the code refactored heavily.
 
@DanielsPitkevičs I'm little puzzled by your opinion, how do you mean, "we" :) People from Europe?
 
10:53 AM
@webarto Yeah, I suppose I didn't say it quite polite. I was thinking about people from Europe/America/Canada/Asia
 
I understand, but like I said, there are lots of them, and even if 0.5% is good, that is still a lot more than there are developers, let's say in Latvia (all of this are assumptions). Companies turn to India because of cheaper hourly rate of developers... but that is worth for all outsourcing businesses.
@DanielsPitkevičs You don't have to look at them as competition, if you work in company in Latvia, it is unlikely that company would pay someone from India to get them to Latvia... India is just an example, it can be applied to all "other" countries...
 
@webarto But if I travel to other country then it can be more difficult. But ok. I was just curious - in freelancer.com almost all of who bid on projects are from India.
 
and many of them are cheaters too
 
Hi is there a way to limit the amount of rows that get updated in a PDO query ?
e.g. update a field for the first 50 results
 
w00
@StephenWolfe Use LIMIT in your UPDATE query
 
11:08 AM
I tired maybe im structuring it wrong
PDOStatement Object ( [queryString] => UPDATE _customers SET advisor=:advisor WHERE campaignId = 0 LIMIT 14 )
 
seems legit
 
In India, there are 1.1 billion people, but every second 2 babies are born and every 3 seconds 1 person dies.


Read more: http://wiki.answers.com/Q/How_many_people_live_in_India#ixzz21j48CRSl
Good for them.
 
@StephenWolfe I think you need LIMIT 0, 14 to update the first 14 rows.
 
I think it is assumed if not specified
 
github.com/brandonwamboldt/utilphp/network Why doesn't it show all the 15 forks?
 
11:17 AM
I think this show branches and merges, github.com/brandonwamboldt/utilphp/network/members you can see here who forked... (also you can "move" graph)
but I might have misunderstood your question
 
I think as in showing the fork, merge and whatever graph like here: github.com/ircmaxell/php-src/network
 
@Whisperity I think it shows only those forks where commits have been done.
 
@Whisperity still didnt work :(
 
11:33 AM
hmm google chat doesn't seem to be working..
anyone have the same issue?
 
w00
@ShyamK yeah, everyone in my list is offline. Guess its dead
 
Sem
@ShyamK You might want to try facebook messenger ;)
 
XMPP Message Error
Message delivery to @gmail.com failed: status=DEADLINE_EXCEEDED (Code 503)
 
GMail loads slowly for me too.
 
Mail works fine for me
@Sem why facebook one? :)
 
Sem
11:42 AM
@webarto It works, even now :D
 
thanks but nah :)
We're aware of a problem with Google Talk affecting a majority of users. The affected users are able to access Google Talk, but are seeing error messages and/or other unexpected behavior. We will provide an update by 7/26/12 1:50 PM detailing when we expect to resolve the problem. Please note that this resolution time is an estimate and may change.
 
Oh god, it has begun. Now they start cramming the kitchen sink into it... github.com/brandonwamboldt/utilphp/pull/18
 
@Sem facebook seems to want to launch their own mobile..
 
news.cnet.com/8301-1023_3-57478352-93/… why the f* is there a hype over this, this was always possible...
@deceze mother of god
 
@w00 seems that I am able to send mails with no prob, but the chat is dead...
 
Sem
11:48 AM
@ShyamK I'm waiting for people to move on to Google+, sorry if I scared you.
 
who needs that s* when you have chatroom number 11 on Stackoverflow
5
 
w00
@ShyamK Yeah, same here
 
@webarto Will be interesting to see whether he merges that in...
 
@Sem Nah.. Google+ is nice.. got it peaks, but its way down under when you compare it to Facebook
 
@ShyamK Let the balloon grow larger...
 
11:50 AM
@webarto ya that was my only relief.. I was like thank god tat the chatroom at SO works..
 
why wouldn't it work, it is not PHP :P I'm also saying everytime I open up Facebook a part of my brain dies...
 
@webarto hardy har har :P\
 
Sem
Google+ is a social network. Facebook is a social friendly pastebin.
 
I can be proud that in many countries facebook is leading social portal, but here facebook sucks balls - our own win ^^
 
haha.. that is true.. just dump crap and get 'like'd but tons of people.. most of whom you don't even know
 
11:58 AM
why do I need social network in first place? I only found LinkedIn to be extremely useful
 
cos that is like useful for searching for jobs and stuff.. its a lil more professional (I guess)
 
@webarto Well, I use social network for communating others - there is great chat feature so, no need for skype and I like galleries part of social portal.
And I havent been in LinkedIn. What is there?
 
ya.. the only reason I stay on FB is cos most of my buds use that
 
@ShyamK Start using www.draugiem.lv :)
Of course, learn latvian before :D
 
Sem
The big difference between other social services and facebook is that you have a news feed based on your friends activities. At least Facebook was the first as far as I know :)
 
12:01 PM
latvian? language? hmmm..
hmm I'm confused.. do you like support FB or G+ ?
@Sem
 
@ShyamK Yup latvian language, like, - Sveiks, Shyam. Kā iet?
 
hmm.. will I need a different keyboard for that? cos I have no idea how to type that 'a' you just typed
 
Sem
@ShyamK I love Google+, but I just don't see everyone moving to it. Everyone is glued together @ Facebook.
 
ya.. someone ought to like kill FB
then everyone may rush to G+
or maybe they'll revert back to Orkut
:P
 
@ShyamK No need, many latvians are too lazy to write speical letters. But, I must say, that latvian language is very very hard.
 
12:04 PM
@DanielsPitkevičs oh...
 
@deceze github.com/emmanix2002/utilphp/commit/… He didn't just post personal details... he did...
 
@ShyamK But I must say that I like www.draugiem.lv much more than facebook.
 
@DanielsPitkevičs Oh that site is available in Hungarian.
 
PHP
hello
/index/manufacturer/12
need to change into
/manufacturer/12
I am trying
RewriteRule ^manufacturer/(.*) /index/manufacturer/$1 [L]
but no success..any help ?
 
@Whisperity Yeah, there are many languages available, but, I think, other languages than latvian are with limited usage. Like beta or trial version of application.
 
12:07 PM
you can't rewrite rewritten rule
 
Ok, now there are only 4 languages
What is Magyar? Found - Hungarian :)
 
my native language is malayalam.. and I don't know how to rad and write in it.. and now you ask me to learn latvian??
 
PHP
@webarto oh.... is it?
 
yup
 
PHP
any other solution then?
 
12:08 PM
@ShyamK Well, what can I say - sucks for You ;)
 
show the rule for /index/manufacturer/$1 , what platform are you using btw?
 
No, English, Russian and Hungarian are fully built.
 
@Whisperity LOL! Try calling him to tell him to retract his commit. ;P
 
and why the f* are they commiting to a joke :)
 
I think he's trying to add another punchline
 
12:11 PM
they should rename it to disaster library utility
 
@webarto Why that library is disaster?
 
because it is?
one library to rule them all is doomed to fail
 
What is the cycle of the meta mods looking at suggestions? meta.stackoverflow.com/questions/139988/…
 
a f* joke, wordpress PHP style @DanielsPitkevičs
 
@DanielsPitkevičs Totally..
 
12:19 PM
yesterday, by deceze
This summarizes my feelings aptly: EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy
@DanielsPitkevičs ^
 
Ok, I will never use it :)
 
I think if you need something from that code, just copy the function and put it in your own functions.php or something like that.
 
Sem
@DanielsPitkevičs Keep everything gray will ya. Don't be like an apple fanboy.
 
@deceze iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str); right?
@Whisperity functions.php should not exist in most cases...
 
Actually, I was just playing around with that... Interestingly:

php > echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', 'éüö');

gives me

'e"u"o
iconv is being a little too intelligent here for its own good.
Anybody know of the top off their heads any other flags to set?
 
12:28 PM
it depends on locale
 
Thought so. What would be the appropriate locale to use?
en_US.UTF-8?
 
yes, I use that
 
Hmm, nope, still too intelligent
 
o/
 
Sem
@rlemon Oi, nice non-round number you got there.
 
12:38 PM
it's a wave
 
Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/w/public_html/github/iconv.php on line 7 @deceze interesting
 
Sem
Which browser plugins do you guys use for frontend development?
 
ummm huh
I use chrome out of the box.
 
w00
i use FireBug. That's all i need really
 
I prefer dev tools in chrome - but that is just me, I don't see one being any better or worse.
 
12:43 PM
I guess one could loop through each individual character, if it's not ASCII //TRANSLIT it and strip any non-alnum characters out of the result...?
I'll play around with that later, got work to do now.
 
I'm still at that point before you really wake up where everything is still a bit fuzzy (metally and physically... my eyes are not what they once were)
 
Sem
Hmmm, I use firebug as well. Never seen any other developer using something like webdeveloper or IE tab and such. Even though both have around 1.2 mil downloads
 
@Sem Chrome has dev tools - check em out
 
The new Web Inspector in Safari 6 seems very different and interesting. Haven't played around with it too much to have formed an opinion yet though.
 
PHP
@Sem I downloaded both of them just to test how they look/work
 
12:45 PM
CTRL+SHIFT+I in chrome
 
Sem
@rlemon inspect with firebug is what I'm used to hehe.
 
morning
 
'ning!
 
Sem
@tereško Morning, found out where to place your redirects? :)
 
yeah
 
12:47 PM
@deceze euo, got it
 
Sem
@tereško In the controller?
 
no
in the view
 
Sem
@tereško Hipster
 
@deceze pokit.org/get/img/42b189432b354fa076f72dfb6a8add4b.png file needs to be UTF-8, but I don't know how that goes over CLI...
 
Sem
@tereško No really, why?
 
12:49 PM
@webarto Hmm, nope, didn't work for me. My locales are apparently different.
 
@Sem , where the hell else would i put it , since controller is not supposed to receive any feedback from model layer ?
 
@deceze Mac?
 
root@debian:~# php -r "echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', 'éüö');"
PHP Notice:  iconv(): Detected an illegal character in input string in Command line code on line 1
try with file (put code in UTF-8 encoded file)
 
My shell is UTF-8, that shouldn't be a problem.
 
12:54 PM
on ubuntuL i can copy that into my shell, but not into php -a (which uses readline)
 
Sem
@tereško So redirects are feedback from the model layer?
 
@deceze The (transparent) dependency is the locale. Set it to german or so to get ae etc.
 
@Sem think of it this way : if you send a POST request to a website , and you expect a html response , then you have to do a redirect. That's just how things are done. But if you send the same POST request via XHR and expect a json response, then there is no redirect required. This puts the action of redirecting squarely in the territory of presentation logic.
 
$ php -r "echo iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', 'éüö');"
euo
 
@rlemon Add your LC_* envvars as well.
Probably british?
 
12:59 PM
Hmm, nope, whatever I do, I always get 'e"u"o.
On another box it works though.
Probably problem unique to Mac, probably unique to 10.8.0.
 
Well, if you need more control, switch the library and embrace unicode. E.g. take the intl extension it's based on the CLDR from the unicode consortium and it is aware about the different transliteration variants. Different to iconv you can specify them non-globally.
 
Sem
@tereško But what about seperating the request types. With POST requests having a nice redirect at the start? :)
@tereško Wait a minute, I read it wrong...
@tereško Well, I guess that's a situation I haven't faced before. However I do think the POST via XHR can be identified in time, choosing to redirect or not.
 
1:15 PM
why hello there supergirl how are you
oh how i love SDCC
 
oh my jesus so many publics ahhhhhhhhhh
 
too many privates, she said
 
Sem
@tereško Even though your saying you have a valid reason to place redirects in a view it still feels weird for me to place it there. They're just there to present the results in a nice container...
 
1:22 PM
anyone know a free online PHP compiler that allows screen scrapping? codepad disables it
 
@Sem that's because in your mind view is just a template ... it isn't
 
Sem
@tereško I guess so :) Which book explains that btw?
 
also, the tards at wikipedia have destroyed the MVC page : https://en.wikipedia.org/wiki/Model–view–controller
it has become an advertisement spot
 
Sem
@tereško I remembered ircmaxell saying something that MVC isn't made for the web? And MVC is mistaken by many people. What's your opinion about that?
 
@tereško clicking that link removes the dashes for some reason
 
1:28 PM
yes it isnt, thats wht we use differnt patterns : MVP, Model2, MVVM and HMVC
the differences are in how the information flows
@Event_Horizon blame SO
 
@tereško I was reading about MVP vs MVC the other day, from what I got out of it most people use MVP and think its MVC right?
 
@Event_Horizon , well , they try to use it
 
Sem
@tereško Anyway I'll do some reading on the link later on :) thanks
 
1md.be/jobs/senior-creative-web-developer < why the f* is Mac OSX not optional?
 
@Event_Horizon problem is that they usually replace model layer with collection of ORM instances , replace view with a template and then wonder , why there is all this stuff in (what was supposed to be) controller .
 
Sem
1:32 PM
@webarto Oh the irony~
 
@webarto Because you can't use Photoshop properly unless you use it with Mac OSX trolololol
 
or because they are macfags? @Sem irony is strong in that job advert
 
@webarto thats what I was getting at :P
 
@webarto They are macfags
 
@webarto , that job-ad is just a sad joke. And i would not take the "(optional)" bits seriously .. they are not optional
 
1:35 PM
What's the difference between a brontosaurus and a Mac?
A brontosaurus runs faster.
 
morning folks
 
@Event_Horizon @DanielsPitkevičs macfags they are then :P
@tereško only thing they missed out is ninja or a rockstar, or worse, hacker...
@NikiC morning
 
Whats the difference between Mac and a PC? One you will pay out the ass for non-upgradeable overpriced aluminum casing, the other you will actually enjoy at a decent price once you learn you can change operating systems (even to OSX :O)
Though I WOULDN'T change to OSX, but thats me
 
Sem
@webarto Basically they want a developer slicing images and placing them in an opensource CMS, while making social media plugins for it (even though downloadable) in symfony with a joystick. A true developer nightmare.
 
they want one guy to do everything..
 
1:39 PM
morning @webarto :)
 
Morning @NikiC
 
you too @Event_Horizon :)
 
Sem
@NikiC good day sir, any news on the password_crypt for php 5.5 that you know of?
 
@Sem There was no more discussion about that recently :)
But will get in ;)
Just needs to go through vote
 
Sem
@NikiC Well I've been on vacation so I guess I've missed quite a bit.
 
1:44 PM
nah
internals mailing list has been just noise recently
 
Hehe, 10 minute pause from PHP programming: youtube.com/watch?v=txVCLes6lFc&feature=colike
 
huge quantity of mails, but BS to the largest part ^^
Main interesting thing is the finally proposal
 
Sem
@NikiC One thing is for sure. When it comes out I'll implement it right away hehe
 
I've got this stupid situation where someone is supposed to copy & paste content from "the old system" into the "new one". Basically, it's made up of the content render on the left and a wysiwyg on the right.
The problem is that the content from the older system might be slightly malformed (eg, missing an ending div and all)
 
@Sem I don't have a problem with that if I receive paycheck for every position...
 
1:51 PM
Instead of rendering that content into a div, I thought about using an iframe - a safer bet.
Also, I'm assuming the web browser converts the malformed crap into a something better.
 
@NikiC on the subject of new reserved words, replace yield with return *$value ;D
 
yes, it tries to fix it, valid HTML loads faster because there is nothing to fix, but render... @Christian is it internal software? if SEO doesn't matter, go with iframe.. or you could try to fix HTML with something...
 
This is for a hackish "importer" plugin I need to have up and running in a few hours
 
@Christian Chrome definitely will try and fix things, missing closing tags can be a nightmare when a UX team have had their way with things
 
Good morning
 
1:53 PM
So I've got control on the client browser - chrome.
 
mornin
 
Hello @ircmaxell
 
i think i need to get some beer and snacks
 
so I suppose it's advisable to have this working with an iframe to avoid the crap screwing my original page?
 
@Leigh no.
return still has a meaning in generators ;)
morning @irc
 
1:58 PM
what's going on?
 
I've been complaining about all the BS on internals :/
 
Sem
@ircmaxell Good morning
 
@NikiC lol
 

« first day (649 days earlier)      last day (4299 days later) »