« first day (698 days earlier)      last day (4264 days later) » 

Sam
6:00 AM
he might be busy :-P
 
lolol too busy looking up python keyloggers
 
Sam
lol....or busy trying to bring down godaddy again.....becoming their daddy
 
or that lol
 
Sam
many guys are gonna try that again in the next few weeks
 
@Sam Wasn't I the one who suggested that you do a keylogger? Yes... its like the first step to stealth... :D
Nick: Who's your Daddy? GoDaddy: You are
 
Sam
6:10 AM
one of these days, we might have to open up a room on this stuff, before we get flagged or something
:-P
 
totally...
 
haha was thinking the same thing
 
Sam
I don't think there's any room on security/poking around on SO
 
try SE then... there is an IT Security or something
 
Sam
I might
 
Sam
@ShyamK dude.....you are some enabler, aren't you?
 
enabler?
 
hahaha ^^
 
Sam
someone who encourages someone else to do something, usually bad :-P
 
often drugs..
 
6:16 AM
Progress, good or bad is progress none the less
drugs? maybe weed... haven't done anything else...
is scared of addiction
 
what about alcohol, caffeine, advil ?
jk jk
 
alcohol... well its a lil too bitter for me... usually add tons of sugar...
same goes for caffeine...
 
you add sugar to alcohol :|
 
I meant something sweet.... to lull the bitterness
 
6:21 AM
@Sam that's awesome haha
 
@Sam nice...
 
Sam
lol....when SSL is cracked, then the internet's in trouble
:-D
 
@Sam gonna try it?
 
Sam
try what?
that?
 
sure... why not?
 
6:25 AM
^^ enabler
 
Sam
lol
 
wordpress.stackexchange.com/questions/65024/… please help me out from this problem
 
I am export .. you're an export ?
 
@Jalpesh there is a WP chat on their site itself... try asking there also... U'll get WP ppl there
 
Sam
does knowing PHP == knowing WordPress or is that just a natural misconception?
 
6:30 AM
misconception
people who use WordPress don't know PHP (most of the time)
 
ok thanks friend i think that some one help me out @ShyamK @Sam @Nick
no problem thanks for your reply @ShyamK @Sam @Nick
 
k... I guess
 
Sam
Uggggghhhhhhhhhh!
 
what's wrrronggg
 
?
 
Sam
6:43 AM
brain's fried.....lol
been trying to write an essay for the past 2 hrs without success
 
the joys of school...
I usually got someone else to do mine :D
 
Sam
it's annoying cause I can't work on anything else till I've completed it
 
@Sam im so tired, it's almost 2
 
Sam
lol....yup......still can't go to bed
 
@Sam got a dog?
 
Sam
6:48 AM
lol....the only pet I can care for is my computer :-P
 
hmm... so the dog eating your homework is outta the question...
 
Sam
lol....it's the 21st century; I doubt that excuse works online
 
online?
 
Sam
lol....submission is usually online now
 
virus deleted my hard drive?
 
Sam
6:51 AM
lol.....won't work
 
@Sam its a good thing I'm in India... online submission might be eons away...
 
Sam
lol......maybe I can say I've gone to India
 
:D
we have tons of excuses... dogs, cats, cows, power outage, connection failures... the list seems endless
 
Sam
nice.....
well.......see you guys tomorrow...need to finish this crap
will u open that room tomorrow, @Nick?
 
gudnite then :D
 
6:57 AM
@Sam haha you wish.. buh byee
 
Sam
or you @ShyamK
I'm sure we might need to share codes as time goes on
 
you could hack into my system and leave it there :D or not
 
Sam
don't worry; although Rome wasn't built in a day, it was eventually built :-P
and success is all that matters :-P
 
cheers to that...
 
Sam
goodnite folks
 
7:02 AM
'night
 
g'nite
 
Morning?
 
technically, I guess...
 
Well it's 8:05 in the UK!
Pretty much morning for me
 
2 AM in Canada
 
7:05 AM
Morning for you too
Hey @pratikshaprabhu
New topic... Wordpress! I hate it
 
Any particular reason why u hate WP?
 
Maybe because I am forced to use it when it's not necessary
It's great - as a blogging tool
but to make websites
no
For instance, it's editor
 
WP was born as a blogger... was good for that... should've stayed that way
 
Exactly.
You wouldn't dare type any HTML into it's editor, it will eat up your tags like anything and spit most of them out at the bottom, deleting any attributes
Weirdly, it's okay the first time, but if you go back and edit it again, it's gone
Can you believe, British Airways, Barclays and Staples all wanted wordpress installed?
 
WP websites all have a similar feel to it... everytime I visit a site (WP site) I kinda just know its WP straight away...
@Titanium for their blog? or as the whole firgging site?
 
7:12 AM
Whole frigging site.
And I know exactly what you mean
Fortunately for the user, it doesn't have that feel because it's a bespoke design but unfortunately for the developer...
we have to make everything work
 
ya... WP is kinda stiff...
 
posted on September 13, 2012 by Christopher Jones

This posts highlights some great scripting language sessions coming up at the Oracle OpenWorld and MySQL Connect conferences. These events are happening in San Francisco from the end of September. You can search for other interesting conference sessions in the Content Catalog. Also check out what is happening at JavaOne in that event's Content Catalog (I haven't included sessions from it in t

 
@Titanium Barclays? really?
 
Yup
 
8:05 AM
@ircmaxell I know I know. Hence the decision to go to bed. I wrote the branch, then I thought "hey, I could make that ternary" and I started writing $var = $expr ? true : false; then realised what I had done and though it might be time to call it a night. Despite outward appearances I'm not that stupid... ;-)
Morning all
 
:)
Morning
 
8:22 AM
I just realized, an answer to a question can be selected after 6 minutes.
What's the rationale behind this? Doesn't it promote answer-less questions?
 
If you make that 30 minutes I guess lot's of people don't bother to come back to select their answer
 
@Titanium Just dealt with a UK university (who shall remain nameless) who wanted to use wordpress for their whole intranet
We shot them down so fast...
@DaveRandom I've never understood "outward appearances", to get any other appearance of you I'd have to assault you with an endoscope or similar...
 
8:44 AM
@Leigh I walk around with my mouth open a lot.
 
@DaveRandom slack jawed daffodil?
 
@Leigh I personally find it very hard to believe that Barclays asked for WP to be installed on anything. I am intimately acquainted with some of the inner workings of Barclays IT departments - while there are some intelligent people doing some stupid things, I highly doubt any of them would go near PHP. Most of them default to writing in assembler, and will spend 5 days writing a 3 minute script. Maybe a junior dev somewhere might think WP was good idea, the red tapers would never allow it.
 
Anyone know if there's a php5apache2_2.dll for php 5.4.6?
 
@Leigh That's rich coming from a southern fairy :-P
 
getting problems with loading curl and stuff running apache 2.2 and php 5.4.6 :/
 
8:53 AM
@DaveRandom Yea not so sure myself. I used to work for a financial company, and they used some pretty ridiculous stuff (I used to be an ObjectStar programmer - try finding docs for that!), but they would never use WP
Sorry @Adam, I wouldn't use windows as a hosting platform, even if there was no alternative ;) - so no clue
 
@Leigh it's a local thing
server's on Linux
 
@AdamLynch Doesn't it come bundled? I thought it did. Regardless, just upgrade to Apache 2.4 - If you already have a working 2.2 install you just need this Apache build and this mod_php DLL.
 
Is your production environment windows?
 
@DaveRandom hmmm I might actually do that but I'd probably prefer keeping the same apache and php versions as the server (2.2 & 5.4.6). I'll see what my colleagues think
 
You can just drop the contents of the zips straight into the old install dirs and it should work, all the new 2.4 config directives for httpd.conf have backwards compat modules so you should just be able to use your old file#
 
8:55 AM
@Leigh no
 
Good idea to have your dev environment set up matching your prod environment as closely as possible. VM software = free, linux = free, PHP problems on linux vs windows... far less.
 
@Leigh ya but this is a multi-national... I'm not going to convince them to do anything. We lost time over case-folding problems in Mercurial too between Win & Linux but it's what we're working with
@DaveRandom hmm getting a 403
 
Well 403 is going to be a permissions issue
 
@Leigh really? </sarcasm> :P
 
webserver has read access to the directory?
 
8:57 AM
@DaveRandom just went to the downloads page and it worked. Weird!
@Leigh talking about a remote third party URL now
 
Oh, you meant a 403 on php.net?
oh, apachelounge, well. /care
I have to go to a meeting now. Bye! :)
 
@AdamLynch Just checked and PHP 5.4.6 has a php5apache2_2.dll bundled in the zip. Is it not working?
 
@DaveRandom hmmm I'm 99% sure I didn't get it
I'll unzip again
 
Make sure your running a VC9/10 Apache build, it's not going to play the game otherwise
(ApacheLounge will provide a VC10 Apache 2.2 build if you need one)
 
@DaveRandom this is what I was trying php-5.4.6-nts-Win32-VC9-x86.zip
the VC9
don't know much about the different ones
 
9:01 AM
@AdamLynch the nts build doesn't come with an Apache DLL because it's designed for IIS. Apache needs the thread-safe version.
 
hmmm my colleague said we needed the nts version for some reason
 
Please please can anybody tell me how to ge the value of post_form_id in facebook?
 
@AdamLynch They're wrong, trust me. I have set this up many, many times :-D
 
@DaveRandom ya he said no way can we use it
"we're using non-thread safe... it's a completely different operational model"
I guess the server is using nts so we have to
we've limited access to the server set up
 
103
A: What is thread safe or non thread safe in PHP

Amr MostafaNeeded background on Concurrency approaches: Different web servers implement different techniques for handling incoming HTTP requests in parallel. A pretty popular technique is using Threads -- that is, the web server will create/dedicate a single thread for each incoming request. The Apache HTT...

> PHP has to be thread-safe to be able to play ball correctly with Apache!
I'm not the only one that thinks this, got to be some merit to it. Also, How come the ts build comes with an Apache DLL and the nts doesn't? ;-)
 
9:06 AM
Please please can anybody tell me how to ge the value of post_form_id in facebook?
 
Who flagged my post? :-(
 
@DaveRandom I'm not saying I don't believe you
@DaveRandom Maybe I'm getting confused between the two of ye because I've limited knowledge about apache + windows
 
@AdamLynch No, I don't think you are, I'm more just trying to give you some ammo to go back to someone who obviously doesn't really know what they are talking about. Maybe they're used to setting it up on IIS, I don't know.
 
@DaveRandom The thing is... this guy reeeeaaaaaally knows his stuff
@DaveRandom so I'm thinking that maybe I got lost somewhere and maybe he said ts and not nts or something
I have php 544 installed
how can I check if that's ts or nts?
 
Good question, never needed to so I don't know. Let me RTFI.
 
9:12 AM
@AdamLynch whats the dll called? :)
 
@Leigh php5apache2_2.dll
 
thread safe libs usually have ts on the end
 
@Leigh so it would be php5apache2_2ts.dll or something like that? Never saw anything like that on a dll before I think
 
oh, 5.4.7 out today?
 
@Leigh Yep. Seems v quick to me
 
9:16 AM
Nothing in news yet, but the windows build is up
 
posted on September 13, 2012 by Stuart Herbert

I haven’t really talked much about my upcoming tutorial session at #phpnw12 next month before now, but I hope there’s still time to convince you to come along and learn how to use Git as your team grows in size. That’s what I’m teaching: a strategy, plus supporting tools for Git called HubFlow, that will help you stay sane – and more importantly help you keep delivering – as your team starts

 
@AdamLynch I'm thinking of php5ts.dll
 
@Leigh ah ok. I tried loading php.dll as a gamble but no luck ha
 
@Leigh No, the NTS have -nts in the names, the TS don't have anything
 
@DaveRandom on the php5apachex_x dlls?
 
9:18 AM
@DaveRandom php5ts.dll has ts :)
 
@Leigh So it does. And yet the convention is the other way round for the zipped package names. An inconsistency? In PHP? Never!
9
A: find if the installed php is threadsafe or nonthreadsafe?

grunkOpen a phpinfo() , search for the line Thread safety . For a thread safe build you should find enable

@AdamLynch Turns out it's actually pretty simple, just a phpinfo() jobby
 
@DaveRandom ok 2 minutes, I've gotta revert to 644
 
@DaveRandom or php -i | grep Thread :D
although maybe it differs in the cli version
since it's only ever going to be single threaded
 
Yeh, except we're talking about Windows so it'd be | find
@Leigh Indeed, if your interested in the web SAPI, better to check the web SAPI...
 
@DaveRandom colleague just said that we might have to upgrade to 2.4 on the server
"it's a difficult combination of apache and php"
"a lot of people seem to have abandoned 2.2"
 
9:28 AM
in my table there are rows of time and i need to get times which is different from others, i used group by statement and it is showing a common and different rows. any suggestions
 
Kind of annoying, one of my bugfixes in 5.4.7, and Laruence committed it and put his name against it :(
 
@Sibu have you tried DISTINCT? w3schools.com/sql/sql_distinct.asp Assuming you're talking about MySQL
 
@AdamLynch That sounds like a generally good plan to me. However it should be noted that (and I have done this many, many times) no matter how the *nix production server is set up, the only way to get Apache/PHP (specifically mod_php) to play the game properly on Windows is to use a thread-safe build.
 
@AdamLynch i tried distinct but it is showing same results
 
@AdamLynch please don't link to w3schools ;-)
 
9:33 AM
@DaveRandom ok great but do you want to do it? I gotta just sit and wait til he sorts it basically
@DaveRandom ha I got a little kick out of it
@DaveRandom it was either that, about.com or lmgtfy
 
@AdamLynch What's wrong with the MySQL manual?
@AdamLynch Hang on let me see if I can find the transcript of when I talked someone through it the other week
 
@DaveRandom I was going for the most basic :)
 
@Leigh have you got a link to the changelog? Or are you just looking in the zip?
 
i just need to get rows which are different from others??
 
@Sibu Can you do an sqlfiddle so we can see the data and the query that produces that result set? Also, they are all different because they have a different day_id
 
9:38 AM
@DaveRandom NEWS file
 
@DaveRandom i need to group them on opentime and closetime
 
@DaveRandom sqlfiddle; oh yes! Never saw that before
 
@DaveRandom wow... didn't know there was a site similar to jsfiddle for sql... is there one for php too?
 
@AdamLynch Room's been deleted, was too long ago :-(
 
@DaveRandom colleague says he think he got it working
 
9:42 AM
this looks like a fairly decent and succinct walkthrough though, can't see any glaring errors in it
 
ok... ugh
using THREAD SAFE
I told him that a half hour ago or whenever after you told me
 
lol
 
@DaveRandom he's normally light years ahead of anyone here
but today
 
@ShyamK What, like viper-7's codepad ;-)
 
9:44 AM
Gotta go help someone with PHPUnit. @DaveRandom thanks for the help
 
@AdamLynch Everyone's got blind spots. Especially *nix heads trying to do stuff on Windows. And this is especially complex and badly described by the docs. He is forgiven.
 
@DaveRandom ok I'll let him know:P
 
@Sibu So from that you want the 2nd and 3rd results merged? So you only get 2 results?
 
@DaveRandom yes
 
2
A: Integrating Static Content with MVC architecture

Stefan LuvFirst, I recomend you Yii Framework,its fasts stable and have a nice documentation of all functions/methods. Other framework options(symfony,cakePhp,etc)are slow and with a learning curve as slow. Yii manages content with controller->actions. When u connect to yourpage.com/site/index yii loads a...

how the hell this guy got 3 upvotes ?!
 
9:49 AM
@DaveRandom couple of times when I tried the site it was not working for me... not today... a month back or so... thought it was down for good or something...
 
@ShyamK He let the domain reg expire, it was only down for a day or two. There's also 3v4l.org and the ever reliable codepad.org
 
@DaveRandom hmm... thanks anyhow... codepad looks nice :D
 
@Sibu ...but the closetime and other columns are different? I don't really understand your logic there. What are you actually trying to do in terms of displaying it?
Maybe this is what you want?
 
@DaveRandom thanks that too will work
 
Easter Egg: php.net/humans.txt
 
10:04 AM
> Fixed bug #40459 (Stat and Dir stream wrapper methods do not call constructor). (Stas)
Finally!
try {
    $id = $php->reportBug();
  check:
    $php->bug($id)->checkStatus();
} catch (NoOneCaresException $e) {
    sleep(60 * 60 * 24 * 365);
    goto check;
} finally {
    $php->bug($id)->fixed();
}
 
You used goto :(
 
I used finally as well. At least goto currently exists in the language.
Anyway, you think that's bad, guess what I'm writing in at the moment? Access VBA...
 
10:21 AM
hi
 
@DaveRandom I'm being moved to a new team, my first project to familiarise myself with the product, is to refactor it to not require register_globals on
 
@Leigh Lol, have fun with that. That is one of those things where the only way to do it is to understand every single line of front and back end code. I supposed you could just limit it to looking for places where vars are used without being initialised but that would probably not catch everything. I saw a Q on that very subject quite recently, the general conclusion is that you'd basically have to do the best reasonable job, put it live and wait till people complain about broken stuff.
 
@DaveRandom If only it had awesome code coverage in the tests, I could modify phpunit to dump out the globals used for each test and that would give me a good head start
 
user1125394
@DaveRandon it isn't possible to write this code with a while loop, I think its better than using goto
 
10:39 AM
@cyril PHP Fatal error: Uncaught exception 'NoOneCaresException'
 
hello, has anyone worked with AMF ? action message format
@Leigh anyone there
:O
 
$id = $php->reportBug();
while (TRUE) {
    try {
        $php->bug($id)->checkStatus();
    } catch (NoOneCaresException $e) {
        sleep(60 * 60 * 24 * 365);
        continue;
    }
    break;
}
$php->bug($id)->fixed();
happy now?
 
const DAT_FILENAME = 'migrate/alias.dat';
tap DAT FILE
 
anyone worked with flex AMF php?
 
Seriously? What's he trying to do, get his name on contributors or something?
 
closed
 
So running the numbers, strtr is indeed faster, by 0.05s over 1 million iterations. Shame it's such an unintuitive function ;)
 
11:23 AM
shame...
eih, not really
 
I started work on a KMP implementation for strpos+friends
 
nice
actually str_replace could use that as well...
 
Thats what reminded me about mentioning :D
Not looked at str_replace code, if it finishes with replacements done, does it re-execute to see if it can replace again?
 
not sure
don't think so though
because str_replace('a', 'aa', $foo) terminates
 
Hmmm, scenario I'm thinking about is probably when arrays are passed as arguments.
Also related: gist.github.com/3707231#gistcomment-571214 - Glad someone has started setting the idiots straight already.
 
> We could add two new algos : PASSWORD_MD5 and PASSWORD_EXT_DES.
I'll stop reading now
 
11:49 AM
@ircmaxell , would there be any penalties , if you called someone "a bloody retard" on internals mailing list ?
 
Not from me
 
Well the ultimate reason should be that the password hashing API is designed to use the strongest currently available password hashing algorithm and neither of these fall into that category.
How does password_needs_rehash work? Anything thats not PASSWORD_DEFAULT and/or lower than a certain cost?
 
Hi and Good Evening
 
No, you pass in the options that you're passing to _hash(). And it determins if it's different
 
So if he passed some PHPass hash to password_needs_rehash with the default args, it would tell him that the hash does need to be rehashed?
 
12:02 PM
yes
because the detected algo (Unknown) doesn't match the parameter one (Bcrypt)
Anyone see a problem here? 3v4l.org/3cAZf
 
The fact that the result is different between versions appears to be a problem :)
 
@Leigh If I understand what you're getting at, yes it does. A question that dealt with this very issue yesterday (to which my answer was rubbish compared to the accepted answer) stackoverflow.com/q/12385977/889949 - if you pass arrays, the result is identical to what you would get if you iterated the arrays and called str_replace() for each arg.
 
But it's for pre 5.3.7, so no, not really a problem
@DaveRandom It accepts arrays as inputs, you don't need to iterate them
 
I know, I though that what you were asking was how it behaves if you do pass arrays - did I miss the point?
 
@Leigh Yeah, I just updated the composer requirements to require 5.3.7
 
12:09 PM
Good, screw those bastards who refuse to budge from 5.2
 
Hey hey
 
Yo
 
sup ma G?
 
Dmitry make Kazakhstan first dating service. Because use Hadoop backend instead "speed dating" will do "batch dating". Is good idea yes?
 
12:34 PM
guya
*guys
I get an 310 redirect loop error for this code
<?php
require_once("models/config.php");
securePage($_SERVER['PHP_SELF']);
include("../includes/header.php");
include("left-nav.php");
echo "Hey, $loggedInUser->displayname. This is an example secure page designed to demonstrate some of the basic features of UserCake. Just so you know, your title at the moment is $loggedInUser->title, and that can be changed in the admin panel. You registered this account on " . date("M d, Y", $loggedInUser->signupTimeStamp());
when I remove the config.php, it works fine
<?php

require_once("db-settings.php"); //Require DB connection

//Retrieve settings
$stmt = $mysqli->prepare("SELECT id, name, value
FROM ".$db_table_prefix."configuration");
$stmt->execute();
$stmt->bind_result($id, $name, $value);

while ($stmt->fetch()){
$settings[$name] = array('id' => $id, 'name' => $name, 'value' => $value);
}
$stmt->close();

//Set Settings
$emailActivation = $settings['activation']['value'];;
$mail_templates_dir = "models/mail-templates/";
$websiteName = $settings['website_name']['value'];
 
is there any gauys who know cre loaded?
 
@MrugenRamani Is there also an English version of that sentence available?
 
good morning*
 
morning @MikeB
 
@PeeHaa do you know CRE loaded?
 
1:12 PM
Nope
 
ok thnx
hey @mike are you there?
 
Kinda, haven't had coffee yet
 
hey @MikeB can you help me in cre loaded issue?
 
I have no idea what cre loaded is
 
ok np thnx
 
morning
 
@draconis morning
 
morning
 
Oh yea, Happy Programmers day. Today is the (2^8)th day of the year, (starting at 0)
 
1:42 PM
Hey guys, how do you usually go about salting? What kind of techniques do you use to generate salts?
 
Leave some ocean water in a bucket in the sun all day
 
user1125394
men stupid question, but is it possible to get the hash "#..." of the uri in $_SERVER
 
228
Q: Secure hash and salt for PHP passwords

luiscubalIt is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection. Is “double hashing” a password less secure than just hashing it once? Suggests that hashing multiple times may be a good idea. How to implement pas...

@cyril AFAIK no, everything after # in the url is inaccessible from php b/c it's not part of the request
 
user1125394
well thx
 
1:49 PM
57
Q: Can PHP read the hash portion of the URL?

JenkoAssuming a URL of: www.mysite.com?val=1#part2 PHP can read the request variables "val1" using the GET array. Is the hash value "part2" also readable? or is this only upto the browser and JavaScript.

 
user1125394
k
 
@MikeB That could use an update.
 
@Leigh Aye, I was looking for one of @ircmaxell's answers
 
which?
 
@Sommer For this @ircmaxell
 
1:53 PM
@Sommer use /dev/urandom. Or better yet, use a library like PHPASS or PasswordLib
 
If you have mcrypt, mcrypt_create_iv does all of the work for you, with a fallback to urandom (I believe)
 
@ircmaxell do you know creloaded?
 
@MrugenRamani Why?
 
i have 1 problem do you help me?
 
No
 
1:56 PM
:)
 
@ircmaxell ok np thnx
 
Please read the room description
and don't ping individuals, unless you've worked with them before on that particular problem
 
oops sorry for that.
0
Q: lc ultimate seo module integrate in cre loaded

Mrugen RamaniI have integrate lc ultimate seo module in cre loaded. but i have 1 issue is i don't want to redirect my category & product url without ".html" extension.i don't want ".html" extension in url ex :- www.ohvibes.com/Batteries Insted of this ex :- www.ohvibes.com/Batteries.html

 
@MrugenRamani dupe of a dupe of a dupe of a dupe
 

« first day (698 days earlier)      last day (4264 days later) »