« first day (625 days earlier)      last day (4326 days later) » 
00:00 - 18:0018:00 - 00:00

12:00 AM
good luck finding one of them
cappuccinopc.com/pandora-mp65-d.asp $915 for a quad core i7 (mobile), 8gb ram, 750gb stat hdd,
 
12:50 AM
hello
 
user50049
@ircmaxell I use the lower end Acer minis which work beautifully for a dev / build server. My wife's company buys them in batches which means every few months she's bringing one home. I use Xen, which lets me set up a couple of virtual machines to better replicate the production setup (Redis, HAProxy, MySQL M->M cluster, etc)
 
1:12 AM
interesting
laptop?
 
user50049
@ircmaxell No, just the cheap Mini ATX models.
 
link?
 
user50049
@ircmaxell Like this only half height. About $240 US. (Link is for local PH shop, sorry)
 
user50049
That would work. Debian 6 installs effortlessly on darn near anything
 
CentOS 6
screw Debian
 
user895378
+1 for CentOS 6
 
which could scream. Then again, the cheap mac mini is pre-assembled and works. $580 for a dual core i5, 2gb ram, 500gb ram. Then another $90 on 16gb of ram after a little while...
$10 tax to have it tomorrow and know it works out of the box... Not bad
 
2:10 AM
posted on July 02, 2012 by Josie Messa

DISCLAIMER: I'm sat next to Washington post employee (not intern) and self-proclaimed travel blog hater Masuma, so this first post will likely be awkward and self-conscious and it's all her fault. I am currently sat in Washngton DC on my third full day on my post-graduation, mid-life crisis aversion tour of the USA. My aims: get a tan, recover from the trauma that is a four year degree in Mat

 
Hey hello peeps.
Talking of new laptop I got a fancy new HP Envy 15.
all is good except for the crapy, touchpad.
oh btw, it feels like plastic. not fun.
 
user50049
2:29 AM
@OmeidHerat How's the battery?
 
hello all
 
@TimPost not that good, around 4 hours.
@Paul Hey Paul, afternoon.
 
@OmeidHerat afternoon, i like a good wireless mouse with a laptop most of the time anyway.
 
that is a good idea, but I am a keyboard junkie so I want my hands as near to the keys as possible.
I am a Vi type of guy.
 
ahh, yes, i'm starting to use the keyboard more and more with emacs, the time to move your hand to the mouse does kill you.
 
2:42 AM
exactly.
 
 
1 hour later…
user895378
3:52 AM
<--- another fun-filled late night programming session for this guy
 
user50049
I had one of those last night. I'm doing a lot of on my feet learning when it comes to JS. (I'm not typically the person responsible for the user facing interface)
 
user895378
@TimPost In that case I strongly suggest The Good Parts ... pretty quick and easy to read if you haven't done so
 
user50049
But the cool thing is, instead of just faking it with jQuery I'm actually writing jQuery plugins using nice, well structured prototypes.
 
user50049
@rdlowrey Yeah, I have, it helped enormously.
 
user895378
I like JS, but I go through extended periods of time where I have no opportunity/time to use it. Then when I need those skills they've all but rusted away and I have to re-learn most of it.
 
user50049
5:11 AM
@rdlowrey The coolest part about my job is the frequent gear switching. I go from C to PHP to Python to shell scripting to Lua to JS all in a week, almost every week. It's quite a proverbial workout
 
user50049
And pretty soon node is being added to that list.
 
7:02 AM
hello @PeeHaa
 
morning
 
user50049
7:42 AM
Just found a giant East African land snail in the gardens downstairs. Never saw one close up before to appreciate how huge they get
 
8:29 AM
morning
 
@TimPost Are those like those huge things like these?
morning mr @hakre
 
 
2 hours later…
10:53 AM
It's so dead in here, the "other" PHP room shows up first in the channel list :x
 
11:08 AM
well, you do have to work at least on Monday...
 
11:19 AM
http://stackoverflow.com/a/1283195/424004
epic answer
 
11:56 AM
why did you waste you time to even edit it ?
 
user50049
@PeeHaa Yes, same one. I managed to get a picture, I'll upload it when I find my phone.
 
ewww...how do you hold it in hand
 
@Krish , it should be simple , doesn't look all that heavy =P
 
user50049
They are interesting and all, but an agricultural menace.
 
yeah , they are
 
12:14 PM
@TimPost k cool
 
isn't it sticky ??
 
user50049
 
user50049
Not nearly as awesome as the other pic, but no way was I picking that thing up :)
 
is it alive ?
 
@TimPost nasty :)
 
12:24 PM
hi good evening
I have a query regarding push notification
can I get any help from anyone??
 
read the top right then ask away :]
 
@carrie is it for me
push notification related to server part
 
its for anyone in PHP chat - Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
 
ok
 
morning guys, anything interesting happen this weekend?
 
12:28 PM
@Srim : push notification to ?
 
@CarrieKendall hi, the PHP5 tag count fell below 10,000
 
@CarrieKendall hiya. Got drunk too many times for too long. Now I'm trying to keep my eyes open in the office while al my colleagues are laughing at me
 
@Srim what is your question
 
@PeeHaa oha. probably take a nap? a power nap?
 
during implementation of push notification in php for iPhone, I am getting "Connected to APNS Message successfully delivered ". But the message is not receiving in iPhone or iPod
 
user50049
12:29 PM
@PeeHaa I hear a bacon sandwich does wonders for that condition.
 
@PeeHaa sunglasses in the work place :P
 
@TimPost Tried it. My stomach thought otherwise :(
 
user50049
I'm not far from having a strong beer myself. I'm just waiting for my colleague in Canada to get online so I can explain what I need done.
 
my code is like : $deviceToken = "b04566b137d5cdd919614c44af20f2a11539b44037501df4c045b53d0f264d34";
// Put your private key's passphrase here:
$passphrase = "*****";

// Put your alert message here:
$message = "hi push";

////////////////////////////////////////////////////////////////////////////////

$ctx = stream_context_create();
stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem');
stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
// Open a connection to the APNS server
 
@hakre LOL! did you make that?
 
user50049
12:35 PM
@PeeHaa I mostly drink beer which doesn't inflict hangovers (when consumed sensibly). I love my liver a little too much to reach for anything stronger.
 
12:47 PM
@TimPost , wine ?
 
user50049
@tereško Occasionally. I like a good red, but cheap wine tends to disagree with me so I save what I have for worthy meals.
 
> PHP is like democracy. It's not perfect, it might not even be great, but it's the best we've come up with so far.
 
user50049
Can't go insulting a good Cabrinet with hot dogs and fries :)
 
@hakre nice.
 
12:49 PM
there is that too
@TimPost then again , i would say that hotdog and fries are not too good for your internals either
 
Hi everyone
I have an issue on Joomla 2.0 can anyone ?????
 
@TimPost it can eat humans!!!
 
I want to install export content component on joomla version 2.0 but its not installing and displaying message about not exist new_version/install.mysql.utf.sql file. I downloaded correct zip file(3 option bottom) from here bestdownloadsites.com/joomla/download-component according to joomla version, please help @CarrieKendall @CharlesSprayberry @Srim @salathe @Krish
 
your english can cause aneurysm
@NareshSharma , there are two things you should know : mass-ping is a bad idea , and this channel doesn't really support 3rd party products
 
@CarrieKendall thx
 
12:53 PM
you will have much better results if you visit #joomla IRC channel on freenode
 
We don't support third party products - except curl.
 
how can you be using a framework and not know how to write a foreach
 
well .. you have seem people using jquery
haven't you
 
fair enough..
 
1:02 PM
Hello :)
 
actually people start using a framework and then start to learn language
many of them
I donno much ruby but can put up a basic crud app with all fancy stuff using rails
 
and that is wrong in so many fxcking ways.
 
yeah..it will be only realized only after they get stuck somewhere ..
 
I am really hopeless to see that nobody tries to help me regarding my push notification issue
 
@Krish I don't give a tiny crap about themselves, it only hurts when you are the next developer to work on such things.
 
1:07 PM
there is probably nothing wrong in the code, check your server, or see response, !$result is not enough... @Srim
 
I print the $payload also. it is showing " Connected to APNS {"aps":{"alert":"HI Push","badge":1,"sound":"default"}}Message successfully delivered Connected to APNS {"aps":{"alert":"HI Push","badge":1,"sound":"default"}}Message successfully delivered "
How to check my server and what to check
?
 
Good mroning
 
@OmeidHerat : many popular books related to Django , Rails assume that the readers have almost no knowledge about the language :P
 
well for starters test code on different server, to eliminate that possibility, you haven't got any response because no one here is psychic.. @Srim
@ircmaxell good morning
 
mroning @ircmaxell
 
1:10 PM
@ircmaxell : morning
 
@Krish and that is why this is true: "Popular is not necessarily always right."
 
ya I have tested this for another server also
 
how's everything going?
 
same thing is happening there also
 
@ircmaxell Hey, I am doin' good. how have you been ?
 
1:11 PM
Good
 
that is good, much been happening around ?
 
morning @ircmaxell, I don't know how everything is going but I know that codinghorror has started a personal crusade against php and it will either be the downfall of php or the downfall of codinghorror :D
 
what ? jeff made another article ?
 
no, he just keeps tweeting and you can read from between all the lines that he has something in mind... a plan
 
@webarto so what you are suggesting for this push notification?
 
1:14 PM
riiiight
 
which will be a good thing for php in the end
 
@markustharkun it will be his downfall
 
can any one guess is jeff has used php in real projects ?
 
lemme guess .. he will write something in php and show everyone how horrible the language is
 
Well, considering that Jeff has started programming with VisualBasic, no one can blame him.
 
1:15 PM
@tereško I don't think so, what about Jeff wants to design a new language?
 
never .. gonna .. happen
 
@ircmaxell with you as his nemesis, why not :)
 
@Krish He's talked about how Stack Exchange blogging platform uses WordPress
 
I'm not completely serious about all of this but I'm sure there is more to come from him
 
@markustharkun nah, not nemesis
 
user50049
1:17 PM
@NikiC I hope I don't have nightmares about human eating snails :P
 
@Srim , i fail to see any topic about pushing of notification , but usually it is much better idea to use long-polling
 
sigh using wordpress alone to judge php .. what about symfony2 ( many say sf code looks like java :P )
 
@ircmaxell well, Jeff tends to lean towards hybris, so why not nemesis :)
 
naah ... snails eating humans would make much better nightmare
 
@Gordon Cloud9 source code is also available. Considering it's a mature IDE (compared to mine), I think it's easier to customize C9 than build mine from scratch.
 
1:19 PM
 
@Krish I prefer the italian version.
 
it might be tasty
btw , i think we have 4 simultaneous threads now
 
eih
 
Wouldn't it be ironic if the week after I just got my Zend Certification, I switched to NodeJS? :D
 
@Christian horses for courses sir. despite the popularity of Node.js in the developer community it still has a lot to go before you can make some bucks out of it.
 
@tereško
during implementation of push notification in php for iPhone, I am getting "Connected to APNS Message successfully delivered ". But the message is not receiving in iPhone or iPod
 
JavaScript for Assholes | lmao
 
@tereško my code is like : $deviceToken = "b04566b137d5cdd919614c44af20f2a11539b44037501df4c045b53d0f264d34";
// Put your private key's passphrase here:
$passphrase = "*****";

// Put your alert message here:
$message = "hi push";

////////////////////////////////////////////////////////////////////////////////

$ctx = stream_context_create();
stream_context_set_option($ctx, 'ssl', 'local_cert', 'ck.pem');
stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase);
// Open a connection to the APNS server
 
user50049
Is anyone else here seeing broken gravatars?
 
nope.
 
1:26 PM
nope
 
@TimPost I even hard-refreshed but still everything loaded just fine.
 
user50049
Thanks all :) Wanted to be sure it was just me.
 
np.
 
@TimPost Other than those broken by default? No.
 
@Christian broken b default ?
 
1:29 PM
@tereško did you get my issue regaring push notification
regarding*
 
hey guys
 
@OmeidHerat It's called a joke. I implied some avatars aren't really understandable. :D
 
Is there an equivalent in mysql of this: SELECT TOP 50 PERCENT * FROM table?
I want to select the first half of the table only
 
@Christian that is what I thought at first, but then I was like maybe there is something to it.
 
Hey all
 
1:31 PM
@hanleyhansen First run a query to count the total. Then do: SELECT * FROM tbl LIMIT total/2
 
He is not sanitizing anything!
 
@Christian There's no cleaner way?
 
user50049
Sorry, wrong link, one second I know I saw that covered before
 
@hanleyhansen I'm no db expert, but I think that's the only way.
Unless you can get it to run a subquery.
 
1:32 PM
@Christian Ok thanks!
 
Anyone? ^_^
 
Maybe procedures or something?
@Neal Who's really interested won't reply ;)
 
@hanleyhansen did you try that ? I guess it should work.
 
user50049
@hanleyhansen I don't think you can in one query. You could SELECT COUNT(*) , halve that, then use it in a limit for a second query.. but a single query? Not sure.
 
@OmeidHerat that only works in MS SQL not mysql
@TimPost ok thanks. I guess i'll have to resort to that if i don't find anything else.
 
1:35 PM
@hanleyhansen and also, I think it would be faster if you defined a filed as well rather everything (*).
 
@OmeidHerat yeah i know. i just typed that in here for purposes of asking the question
 
user50049
@hanleyhansen Yeah, that's .. kind of an ugly way to go about it. I think the DBA site has some active chat rooms, they may know some arcane sorcery (and usually do)
 
user50049
Or, well, that would be a perfectly valid question on DBA.se I believe.
 
@TimPost thanks. i will see what i can come up with. anyone car to know if i find somethign?
 
@Christian :-P
 
user50049
1:37 PM
@hanleyhansen I'd be interested ... no immediate need to know, but that would be a nice addition to 'may need in the future'
 
@TimPost Ok. I'll post it back here if i find anything.
 
I died a little
 
ok
 
actually your code looks like something that cat dragged in — tereško 2 mins ago
 
If Henry Ford used Apple's mentality, he would have sued all other car makers for having a steering wheel.
 
I giggled
 
2:13 PM
cmon, gotta play hardcore
 
no way ..
 
every other difficulty is easy difficulty
I got to magma pick before I died on hardcore
shit gets hard
 
it is hard enough to play on medicore , usually you end up loosing all the gear in some unreachable location
 
Man i can't find anything!!
 
user50049
Those 'personal membership reps' ACM assigns us really are awesome. My membership card met a rather unfortunate end and they mailed me out a new one straight away, for free :)
 
2:15 PM
1 message moved to bin
 
@tereško Yeah I lost a lot of gear on medicore, thats why you put all your best gear in a chest and just use the second best pick you have, worst that can happen is you lose the worse of the picks, then you just use the better one for the harder to mine ores
specifically I usually make a mine shaft straight down in 2 or three places
and wall up any holes to caves, light the whole shaft, and use platforms to get up and down
 
i just put a bit water at the bottom .. no paltforms , no lights
 
that works, but I like to be able to dig horizontally to get to any good stuff after i have dug as far down as possible, plus its easier to get back up
 
2:30 PM
Hey all
I right now have a flat array of parent and child elements. Each array eleent has a feild with which element is it's parent
how do I put all child elements within their parents?
For example:
Array
(
    [0] => Array
        (
            [nonmodel] => Array
                (
                    [0] => 1
                    [1] => Hi
                    [2] =>
                    [3] =>
                    [4] =>
                )

            [Task] => Array
                (
                    [taskId] => 1
                    [taskSubject] => Hi
                )

            [Relationship] => Array
                (
                    [relationshipName] =>
                    [childRelationship] =>
That is what I get from the database.
 
@tereško they refer to such actions as baked? .... WOW
 
and now I want to make all the associations.
 
Anyone have any idea of what I am talking about? :-\
 
@CarrieKendall i have nothing against being baked .. i just prefer to avoid programming at that condition =P
 
lol "I baked a Model, Controller, View by console." v.v
 
@CarrieKendall He said this because the console command to do this is quite literally "bake"
 
i wonder if the creators of cakePHP realize the irony..
not of baking a cake, but of their baked MVC ^^
 
:-(
 
can you show an array?
 
2:42 PM
10 mins ago, by Neal
Array
(
    [0] => Array
        (
            [nonmodel] => Array
                (
                    [0] => 1
                    [1] => Hi
                    [2] =>
                    [3] =>
                    [4] =>
                )

            [Task] => Array
                (
                    [taskId] => 1
                    [taskSubject] => Hi
                )

            [Relationship] => Array
                (
                    [relationshipName] =>
                    [childRelationship] =>
 
user50049
@ircmaxell Did you officially submit your patch for password handling yet?
 
user50049
I think I'm going to make more noise regarding turning blog.so over to the community.
 
user50049
2:57 PM
Dear @twitter, when someone blasts a bit.ly link to thousands of non followers via mentions, IT'S SPAM. This PSA sponsored by COMMON SENSE.
 
-6
Q: How to calculate different between two date()?

Ehsan Possible Duplicate: How to calculate the difference between two dates using PHP? I have two time in this format: date("Y-m-d H:i:s"). How can I calculate different between these two time?

lolz
BA in IT.
 
user895378
3:19 PM
I suppose everyone else must have seen this by now, but I've just encountered the awesomeness of Star Wars in ASCII for the first time ...
 
user895378
Also, good morning all.
 
morning @rdlowrey
 
> deleted by casperOne♦ 7 mins ago
 
ah, should have refreshed, but got distracted by another q :)
 
3:25 PM
:)
 
user50049
@rdlowrey I never get sick of seeing that :)
 
@rdlowrey if you have an iphone or any other device with HD 1080p you defs should try ! I am not even kidding it looks heaps good.
 
user895378
@OmeidHerat lol I'll load it up on my iPhone right now
 
@rdlowrey I used the one that works on Terminal and it was heaps cool.
 
3:46 PM
@rdlowrey Interesting
 
@rdlowrey telnet towel.blinkenlights.nl if you got terminal in your iphone, which you should :)
 
Makes me think of old adventure games
 
@rdlowrey thank you for those 30 minutes of my life i'll never regret
can't watch the rest, I have to work :p
 
4:02 PM
@tereško We've been doing it wrong: github.com/PeeHaa/php-net-tutorial/issues/5
:P
 
@EventHorizon , i think your definition of "spaghetti code" is a bit flawed
 
I think bad formatting contributes to code becoming spaghettified.
Especially if the formatting is inconsistent.
 
@Event_Horizon How does the format (either of the three) introduce spaghetti code?
 
If things aren't formatted in an easily readable way it may lead to bad coders skipping figuring that code out adding their own which may just duplicate what that did in the first place.
I'm not saying those examples are conducive to that but I think separating the brackets from the content with newlines help keep most code readable.
 
4:20 PM
Well, picked up a mac mini for the build server project. Got the base model, will order 16gb ram for it at some point. Tight's task: linux
 
which one (linux) ? :)
 
he's centos native
 
CentOS
 
@ircmaxell 16gb ? just because, right ?
 
no , because a server eats a lot of RAM
 
but still I think 16gb is a lot, unless we are talking about 10k hits per hour or something like that.
unless you are catering some Expensive services.
 
LOL
nah, even compiling can benefit from a ton of memory
and it's $90 vs $55 (16g vs 8g)
 
haha, yeah so it's again that just because :D
in JavaScript, Jun 25 at 13:55, by Andy E
Stop Amazon from controlling the .app TLD. File an objection with ICANN. http://appdomain.org/
 
Happy Monday!
 
4:50 PM
@ircmaxell that's practically free
 
news.php.net/php.internals/61066 <-- That pisses me off to no end
 
@ircmaxell wtf. do you even need code example for that ? haha
 
There is a code example . . .
 
I added it
just now
but the RFC has been on list for over a month. I proposed it 2 weeks ago. I issued a "last call" for comments on Friday. And it comes up today
 
Hi all. I am just starting to play with functional tests ,selinium and YII, there is a way to run selenium IDE test cases from YII?
 
4:54 PM
@ircmaxell why?
@ircmaxell That's normal
When the vote starts things are getting serious
 
@NikiC and that's what bothers me
BTW @NikiC: I got the mac mini and am setting up a dedicated build server. If you want to hook in any of your projects on it, I'm fine with that
 
@ircmaxell Btw, I'm not sure I like the $length argument
 
@NikiC it's specified by the PBKDF2 algorithm... It wouldn't be compliant without it
 
My main issue with it is how it related to $raw
I'd prefer something like $bytes over $length
@ircmaxell what will that build server do?
 
$length === strlen($output)
@NikiC mainly run Jenkins. I'm going to use it for primary PHP dev as well, but I can provide build processes for whatever...
 
4:58 PM
@ircmaxell yes, I know
 
I am going to setup a template jenkins job to build php-src. Then I'll fork it for each branch of my fork. That way I can integrate over pull requests, etc
 
hi all i am developing one simple application using xml and php, my problem is i update or edit xml file using php but each time my xml file is overwrite only occur so how to solve this problem?
 
@ircmaxell interesting
 
hi all i am developing one simple application using xml and php, my problem is i update or edit xml file using php but each time my xml file is overwrite only occur so how to solve this problem?
any one help me ?
 
@ircmaxell I guess my issue is that $length has a different semantic in the PHP implementation than in the PBKDF2 spec. PBKDF2 means the length in bytes, but in PHP it would be only half the length in bytes with the default of $raw = false
dinner, later
 
5:02 PM
fair enough
 
@karthys didn't get it . What do you mean?
 
@NikiC why didn't you bring that up before?
 
@FabioCosta hi updated xml file using php when i refresh the page each time occur overwrite the xml file
http://fpaste.org/M1f9/------------------installer.php
this is my one part of the program
i handled two file for this concept
@FabioCosta
 
@karthys what do you mena with, "When i refresh the page each time occur overwrrite the xml file?" what is happening and what should happen?
 
just store date in xml file and update or edit that xml file using php
then that xml node value reading by user and edited by using user again submit then updated in xml file also then sorry for my poor english
@FabioCosta
@FabioCosta hi r u there?
this is my full program code for your refer
 
5:12 PM
@karthys I didn't understand what is wrong and what you want help with
 
@karthys what's your problem
 
u saw my full code @FabioCosta
 
@karthys You can't expect to me to read 400 lines of code looking for anything that could seem wrong
 
my problem is update the xml file but not overwrite ?
 
@karthys The file is not overwrite as in you can't save in an existing file?
 
5:16 PM
in that xml file i add some new node directly agiain i run the files the new nodes are deleted
@FabioCosta
 
Anyone know of another way other than using implode to take an array and turn it into a comma delimited array instead (for use with the SQL IN construct)?
 
If you run once the new nodes are added and the output is as expected?
 
<pose img="poses/19.png" thumb="poses/thumbs/19.png"/>
<pose img="poses/20.png" thumb="poses/thumbs/20.png"/>
u see in that code there
?
@FabioCosta
 
@karthys yes
 
hi all , my php printer function not working i got this error Fatal error: Call to undefined function printer_open() in
 
5:22 PM
@ircmaxell I guess I forgot it ^^
@srini The error message seems rather clear to me ;)
 
And it seems to be Windows only? But that's from 2002..
@NikiC Should the Printer Requirements page list the PECL extension that printer_open() requires?
 
@MikeB Not sure what you mean
printer_open is part of the printer pecl ext
the requirements page is for stuff that the ext requires
e.g. intl requires the icu library. but printer doesn't require anything (if you assume that page is right)
 
@MikeB i download the file php_printer.dll and put it in "ext" folder and after it i made some changes in php.ini

i add the line
;extension=php_printer.dll in php.ini

but i still got the error....
 
@FabioCosta in below that code directly i will add new node in xml file <pose img="poses/21.png" thumb="poses/thumbs/21.png"/> again i run the application that code deleted automatically that is my problem
but actually i want that added node also not deleted , thats also stored in xml file
 
5:42 PM
@NikiC Gotcha
@srini You added the line but left it commented out?
 
@srini remove the semicolon ;)
 
hmm I just got 100 rep for "Association Bonus"... Any idea what that means?
 
@MikeB @NikiC i removed but this time also got same error
 
did you restart the server?
 
@NikiC when i start up the server i got error ------------>Php Startup: printer:unable to initialize module

Module Complied with module API=20060613

PHP complied with module API=20090626

these option need to match
 
5:57 PM
well, then your dll must be incompatible with your php version
 
00:00 - 18:0018:00 - 00:00

« first day (625 days earlier)      last day (4326 days later) »