« first day (863 days earlier)      last day (4068 days later) » 

Anonymous
12:00 PM
@hamad stay away from teresko
 
user652649
@Hamad i've favorited too :P was wondering who was the 2nd fav
 
@wes wheres teh fun on SO without people like him eh?
I mean @PeeHaa would have nothing to do all day
 
hi everyone
 
user652649
@Hamad its not fun for me, i answered to his question indeed...
 
12:09 PM
can someone help me? I want to integrate Authorized.net AIM in zend framework. how can i achieve it?
 
user652649
@Hamad the question was really badly made, but still a legitimate question i think
 
@Hamad :)
 
@udgeetpatel your question is pretty general, have you attempted to do an integration and faced any 'specfic' problems you might need help with?
 
12:13 PM
@udgeetpatel seems like a fairly common payment gateway. Maybe you should first google around and look for existing PHP APIs for it.
 
user652649
@PeeHaa why the question was closed? i fixed the title and some other guy fixed the message, now it "seems" to be a "valid" question
 
i have searched but i can't find any useful resource for authorized.net . I want to use zend webservices for authorized.net payment gateway
 
crystal ball says: prefix the img src attributes with the remote location — Gordon 34 mins ago
Note especially the crystal ball part
 
12:15 PM
@udgeetpatel I am sure a PHP integration is available already, and tuning it for your own framework should not be an issue after that. Are you familiar with ZF?
 
All question which need a crystal ball to answer are NARQ. Answering it is just guessing
 
user652649
@PeeHaa ok, just asking
 
np :)
 
@Hamad i am new to ZF and know only basics.
 
morning
 
12:17 PM
@NikiC monring
 
hmm... do you guys tend to have two different actions for a "view form to insert data" and an "insert data" page? I'm getting back at writing webapps and I kinda forgot how it's done ^_^''
@udgeetpatel ZF1 or ZF2?
 
@udgeetpatel Then I would suggest first finding a good PHP API for Authroize.net. The APIs for Paypal and Authorize.net are pretty straightforward. You wouldn't really need to use Zend specific methods to set them up within a Zend application.
 
@udgeetpatel then you may want to create an application resource with the payment gateway configured in it: framework.zend.com/manual/1.12/en/…
 
i found the zend service for cim framework.zend.com/wiki/display/ZFPROP/…
but i cant find anything for Aim.
 
12:26 PM
Morning
 
@webarto morning
@NikiC morning
 
Feb 17 at 20:35, by webarto
I forgot HTML/CSS
 
@webarto lol
 
True story :)
 
@webarto you can check html and css these are greatest source on the planet earth :P:P
 
12:32 PM
@NullPointer <3
 
@webarto also you can get certificate for html and css and than you can add w3schools certified engineer ...... no need to show zend certificate :P:P:P
 
@NullPointer I'm going to seriously add that and remove Zend (pfffft)
 
@webarto lol...l
 
Awesome!
 
@NullPointer congrats!
I think we should all put that in our profiles
 
Flamed.
0
A: php strtotime("31.12.2013 12.00")

Your Common Sensea robust one list($date,$time) = explode(' ',$dateString); list($d,$m,$y) = explode('.', $date); list($h,$i) = explode('.', $time); $unixStamp = mktime($h,$i,0,$m,$d,$y);

Wonder is he trolling @YourCommonSense
 
@NullPointer I'm going to print this and frame it :D
 
@webarto lol
 
ok, if you didnt already cv for the false dupe then for too localized stackoverflow.com/questions/15066376/…
 
12:40 PM
:D
TL then.
@Gordon is your cv backlog removing duplicates (I assume so)?
 
@NullPointer wtf
 
@webarto yes. but it wont remove reopened questions
 
@NikiC dont tell me you are jealous :P:P
 
ok guys, in case I apply for mod, are you going to write my application?
 
@NullPointer that's nothing I got the W3Schools badge
 
12:48 PM
@Gordon number of stars on right are enough for your answer :)
 
+1
 
meh
 
: +1 already ..
 
I opened a bottle of wine for good luck. *hick*
 
posted on February 25, 2013 by Matthew Weier O'Phinney

In my previous posts, I covered basics of JSON hypermedia APIs using Hypermedia Application Language (HAL), and methods for reporting errors, including API-Problem and vnd.error. In this post, I'll be covering documenting your API -- techniques you can use to indicate what HTTP operations are allowed, as well as convey the full documentation on what endpoints are available, what they ac

 
Anonymous
12:50 PM
I would love to take the Zend test, but the question is can Zend take me as a candidate
 
@crypticツ here you go i.stack.imgur.com/ciaSW.png :P
 
@NullPointer Ok, that's it, I'll make certificate generator :P
 
@webarto lol
 
I love when douchebags block my car and they won't move it.
 
12:59 PM
@crypticツ inb4 me
 
@crypticツ lol
@webarto i do trolling in that switchwation ...
troll the douchebags
 
@PeeHaa Y U SEND NO PR?
 
@DaveRandom vote tracking is not working for me
 
@crypticツ ? ("not working" is not an error :-P)
 
1:03 PM
@NullPointer Axe effect
 
@Gordon hhmmmm. I thought I did :P
 
@webarto 403 Forbidden :(
 
@NullPointer Just refresh when you open it.
 
@DaveRandom the cv's re-appear when i reload page
I have the option checked
 
@crypticツ Chrome or FF? Also, presumably the plugin does state it's version to be 0.20.1?
 
1:05 PM
@webarto lol .....true axe effect ..
 
@DaveRandom same version, FF 19
 
@PeeHaa can you send PRs for gists?
 
@crypticツ kk looking into it now
@crypticツ Did you let it auto-update or di you remove it and add the new version?
Working for me in FF18, updating to 19 now
 
@DaveRandom uh oh was I suppose to remove previous? I just clicked on new one and it installed over previous
let me do a fresh install
 
@Gordon No I just found out I can not. :P
 
1:10 PM
@crypticツ I would have thought ff should figure that out by itself, as long as only one appears in the list it should be fine. fyi when we push an update you just right click on it and go "find updates" to force it and it does it by itself, or if you wait a few hours it'll just happen
Let me know if that fixes, I'm updating my FF to 19 to see if that breaks anything
 
@DaveRandom no still notifies me of cv's I've already visited
 
@crypticツ Weird, working for me in 19 as well. You got anything in your error console?
 
@DaveRandom works for me
 
Mmm, Mozilla is a bit funny with access to localStorage from extensions, they seem to be a little confused themselves about how the scoping is supposed to work, I'm guessing it's failing to write to it.
 
@DaveRandom how do I know I have it enabled (localStorage)
 
wow
it go a [visited]
 
@crypticツ dunno, it's always just kinda worked, I guess if you haven't explicitly disabled it then it should be enabled
 
1:18 PM
There's probably something somewhere in about:config
 
@PeeHaa eeeeih. you want a dv, too?
 
@Gordon too late
:)
muahhahahaa
 
@crypticツ check for dom.storage.enabled in about:config
 
@DaveRandom

device.storage.enabled;false
dom.storage.default_quota;5120
dom.storage.enabled;true
would having caching disabled cause domStorage to not be used?
 
1:21 PM
nvm, tried with cache on and still shows notifs
 
@crypticツ Maybe it's full, try upping the quota (don't know why it would be full but maybe some other extension is filling it up?), also possibly any number of privacy settings might screw with it, this page suggests that a cookie setting might have something to do with it but as usual with Mozilla's actual products there is a dearth of useful info
@crypticツ The whole thing should be stored in a localStorage key called cv-plsclickedList, can you do a localStorage.getItem('cv-plsclickedList') in the console and see if there's anything in it?
 
@DaveRandom [08:27:01.310] "{\"value\":[]}"
 
@NikiC Does it keep track of what you've clicked after you reload the page? That's what @crypticツ is having a problem with, but it works for me and @Gordon
 
@webarto I never learned HTML/CSS
 
@DaveRandom yes, it does
 
@DaveRandom I'm going to disable all my extensions and try
 
@crypticツ Huh. Well that's (kind of) what I would expect, it's just empty, looks like the storage is not being updated on link clicks for some reason, but you wouldn't get that if localStorage wasn't working and the extension hadn't successfully initialised the empty value.
 
@DaveRandom yes, it is work
 
1:31 PM
@crypticツ Are you middle-clicking the links by any chance?
 
@DaveRandom nope, still notifying, no I don't have middle button
 
heh, one of my clients forgot to renew his ssl cert. he did so now and asked me to phone the provider and ask them to "release the site" again. which means he wants me to tell them to remove the warning in his browser. he thinks the provider puts it there
 
lol
 
@DaveRandom I'm going to try one more thing, create brand new Firefox profile and install it so default config settings
 
@crypticツ kk, if it doesn't play the game after that (and in fact, even if it does) can you post a screen dump of the settings page and the options you have set?
 
1:38 PM
@DaveRandom yeah still no go, on new profile right now and notifs re-appear on page reload
let me get a pastebin
 
@crypticツ Sorry, I meant a print screen of the extension options page, I suspect a logic error somewhere (unless you just left it at the default opts?)
 
@DaveRandom yeah left it at default, le me take screen
 
http://stackoverflow.com/a/15068193/1723893
 
1:47 PM
@crypticツ Weird, that should totally work. I'll make a build in a bit with a bunch of console.log()s in it for you and we can try and work out what's going wrong/where the data is disappearing, I need to get on with some real work now but I'll do it prob when I get home and ping you with a link
 
 
1 hour later…
2:49 PM
q: is such a behavior correct? stackoverflow.com/a/15069648/347063 (pasting a previous comment as answer)
 
Anonymous
It is in my book
 
@PHPNooB plz where can buy? :P
 
Morning
 
o/
 
Anonymous
it was an expression,
 
3:01 PM
@ircmaxell Morning
 
Anonymous
@ircmaxell Morning
 
@ircmaxell morning
 
@NikiC what's going on?
 
@ircmaxell Just updated my non-scalar keys patch and hope to sneak it through against the voting RFC :P
 
saw that
 
3:05 PM
The reasoning obviously is: As we are stretching the rules of the releaseprocess RFC, we can just as well stretch the voting RFC too :)
 
hi everyone
 
I think the whole thing is a sham
 
Anonymous
hi @Pennan Mp
 
what is ur name? any interesting discussion going on here
 
if anything, move it to CodeReview or Programmers, as the answer is worth saving
 
3:14 PM
what was teh topic on that @ircmaxell
 
@ircmaxell 1 more to go
even its worth to be here on so ... rather better than ton of php question
 
@ircmaxell undelvd
 
14
Q: Is this correct object oriented programing in php?

AaronCould this be classified as correct OOP programing? class Greeting { public $greet = array('Hi','Hello', 'Howzit', 'Ola', 'Whats up'); function __construct($name) { $this->name = $name; shuffle($this->greet); } } $hi = new Greeting('INSERTNAMEHERE'); /*NAME ...

 
@ircmaxell can't be migrated. i'd just leave it closed, but undelvd
 
@ircmaxell we already pinged mods about it =/
 
3:19 PM
@NikiC I flagged it for moderator review...
@tereško oh?
 
yeah , i marked it for deletion before is scrolled down to the answers ...
the effort that Gordon put in that answer is extreme when compared to the lack of effort in the question =/
 
can we reopen and close it as off topic (or just leave open)?
 
user895378
@DaveRandom The more I brood on it, the more I tend to agree with you that the RFC6455's allowance of frame lengths > 2^31 makes no sense. If you need to send a 10Gb message what's wrong with splitting it into five frames instead of three? 2^63 seems way overboard for a partition that exists explicitly for the sake of fragmenting messages into smaller parts ...
 
@rdlowrey Indeed, not to mention the fact that if you were sending a 10GB message you'd probably want to provide some kind of resume functionality, and that would be most sensibly implemented with a fairly small chunk size
 
@Gordon damn boy, you on fire ;)
 
user895378
3:33 PM
@DaveRandom You are so very right.
 
user895378
I guess they were thinking that's the sort of thing that would be handled by extensions, but still ... your point about smaller chunk sizes pretty much invalidates that argument.
 
@rdlowrey FYI, as @PeeHaa and myself discovered yesterday, not only is it possible to send multiple frames in a single TCP packet, Chrome will actually do it if you send messages in quick enough succession, so make sure you account for this (I actually did this from the ground up but failed loop over my buffer to drain all available completed messages because I wasn't paying attention)
 
Are there any command-line refactoring tools for PHP? Something like `rephact rename-class Silex\Framework Silex\Application`.
 
hello all
 
@Rasvan hello
 
3:37 PM
can i post a really stupid question here ? :))
 
@Rasvan You just did, asking if you can ask a question is redundantly redundant
:-P
 
@igorw sed :P
 
true true :)
 
whats wrong with my ajax sending code ? codepad.org/HTOGEdb7
this is the page where data comes from sending data , i dont get result back !
 
@igorw phpstorm (not command line)
 
3:39 PM
i get nothing , data not updated in database
 
@echo_me Please, don't use mysql_* functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which. If you choose PDO, here is a good tutorial.
 
@webarto @ircmaxell exactly.
 
user895378
Just had a horror moment -- github wasn't showing my private repos and I almost freaked out until I realized I wasn't logged in :)
 
@DaveRandom yes i know i will just turn to PDO when i know the error is
 
@echo_me you dont need to escape password
 
3:41 PM
@igorw find -type f -name '*.php' | xargs sed -i "s#Silex\Framework#Silex\Application#g"
 
i'm triing to make a script to get some produsct from a supplier site, and i get a nasty err Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from "ssss.asmx?WSDL " : Extra content at the end of the document in bla bla bla
 
@echo_me also use hash for password .. saving password as plain text is never a good idea
 
what does that mean... googled it and nothing , the funny thing is that it is the supplier's code
 
@webarto that's great, except when it isn't. does not work for use statements. besides, rename class is probably one of the most basic refactorings. also, PSR-0 awareness and actually renaming the file would be kinda neat.
 
this the code of ajax codepad.org/nyfu8647
 
3:43 PM
lol ... "psr-0 awareness"
 
@Rasvan mysql_fetch_row return enumerated array so it never be equal to 1
 
user895378
@DaveRandom Thanks for the heads up. Also, regarding unmasking payload data ... I haven't tested it yet, but I think a more efficient way to handle it than what you're currently doing would be something like this:
 
user895378
for ($i=0; $i < $maskedDataLen; $i++) {
    $maskedData[$i] = $this->maskingKey[$i % 4];
}
 
@igorw i will support PSR-0 , when it will be aware of how classes are implemented in PHP
 
@echo_me instead use mysql_num_rows
 
3:45 PM
@tereško you're going to have to be a bit more specific
 
@rdlowrey Memory wise yes (although I think it's still 2n+1) but speed and CPU-cycle wise I doubt it. I've already explained what I think about this, hang on I'll find the link.
 
@echo_me also validate input .. white space would be work perfectly in your form i think which is not what you want
 
@igorw are you aware that classes in php are case-insensive , while filesystem on which php is mostly executed has case-sensitive filenames
 
@NullPointer changed nothiong i dont get the success message
 
this basically means that either PSR-0 does not support PHP or ir does not support UNIX-like operating systems ... not sure which is the better explanation here
 
3:47 PM
@echo_me are you not getting error undefined variable $found ?
 
user895378
@DaveRandom It may be worth dynamically selecting which method you use based on how large the size of the masked string is ... then again I guess you won't ever be dealing with a string that's large enough to cause memory issues as long as you're unmasking each time you receive data ...
 
@NullPointer also validate input didnt understand here what u mean . i changed to mysql num rows
 
and about 10 message after that one
 
what would you consider as a good way to encrypt xml file content?
 
@NullPointer no i dont get anny error
 
3:48 PM
@tereško huh?!
 
which part is confusing you , @Ocramius ?
 
@tereško if all abstractions are leaky. not relying on case insensitivity seems very acceptable to me. I don't see a good reason why you would need that to begin with.
 
PSR-0 is basically str_replace(array('\\', '_'), '/', $className)
so I don't get where this is not compatible @tereško...
 
@igorw how is any of it related to abstractions ?
 
@echo_me validation means .. in your forum if user enter just white space as username ,password or in any field it will submit instead showing error
 
user895378
3:50 PM
@DaveRandom Eventually when I get around to it I'll benchmark the two approaches and report my findings for the benefit of planet earth.
 
morning!
 
@RommelCastro morning
 
@Ocramius for PHP the DOMDocument, domdocument and doMdOCOMent is the same class, while for PSR-0 it is not the same filename
 
user895378
@Ocramius Which begs the question, did we really need a standard for it? :)
 
@RommelCastro moirnign
 
3:51 PM
@NullPointer need to see some more code ?
 
@rdlowrey kk, There may or may not be much in it in terms of clock cycles because of the str_pad()/str_repeat() (can't remember what I did)
 
@rdlowrey yes.
 
@NullPointer i can show u the whole page
 
Hey do any of you use Thunderbird for Windows?

A client of mine is moving web hosts and they won't be able to transfer the emails over, so what he's done:

1. Downloaded all of the emails onto his Thunderbird account
2. Will be closing the old web hosting account down, and re-associating the email address with the new incoming/outgoing servers

What is the best way to make this transition?

Add a new email account and keep the old one seperate (but the incoming/outgoing servers will be incorrect), or just update the existing with the new data?
 
@tereško what's the problem with that? Let's just keep things clean and avoid madness like doMdOCOMent...
 
3:51 PM
I don't have much experience with Thunderbird myself, so that's why I'm asking
 
@Ocramius do you know how routing mechanisms work ?
 
@tereško which kind of routing?
 
user895378
@Ocramius Any knowledgeable developer was doing PSR-0 before PSR-0 was PSR-0. The only thing the standard accomplishes is making the PSR group feel important and low-end developers feel like they're writing standards-compliant code. (IMHO)
5
 
@tereško abstraction is maybe not the correct word. anyways, feel free to respond to the actual point I was making.
 
3:52 PM
@NullPointer yes im checking all fields by javascript if empty or is short or something like that
 
@Baumr what about exporting to csv-like model and just remap it?
 
@echo_me i have disabled JavaScript in other word server side validation is must .... client side validation is just a facility for users
 
@rdlowrey even if the guys of FIG-STANDARDS feel allmighty and important, that doesn't mean that no good stuff was produced there
 
btw you can export data in thunderbird
 
@rdlowrey the fact that so many people still get it wrong leads me to believe that yes, having a formal standard is a good thing.
 
3:54 PM
@igorw it is not about "not relaying on case insensitive" , but about "enforcing the case sensitive" .. the PSR-0 standard is arbitrarily limiting subset of PHP that you can use
 
@Happyninja Too complicated for the purpose here -- just need email to be searchable
 
user895378
@igorw and @Ocramius I'm mostly just playing devil's advocate :) A gentle push in the right direction for people who don't know better is probably never a bad thing.
 
@NullPointer ok here the whole code codepad.org/MAnkJEql the whole code of senddata.php i gave it up
 
@Baumr what is your question/limitation?
 
@tereško enforcing case sensitivity is obviously because of technical limitations. It simplifies things quite a bit, so it's perfectly OK
 
user895378
3:55 PM
It should result in a slight uptick in overall userland code quality in PHP-world, so for that, at least, commendations are probably in order.
 
@echo_me oh man user pastebin.com if you dont want to show output
 
@Ocramius nope , technical limitation have nothing to do with this
 
@echo_me well that is pretty long code can not read ... all
 
@tereško hm? So how would you resolve dOmDoCuMENt to DomDocument.php ?
 
@tereško it does limit PHP to a subset, but the limitation is not arbitrary. either way, in practice I don't see any issue with it.
 
3:56 PM
got any guesser?
 
@Ocramius strtolower() .. sloved
 
@tereško domdocument.php !== DomDocument.php
 
@tereško lowercase file names are ugly
 
@Ocramius What was produced has several loop holes and internal inconsistencies... blog.ircmaxell.com/2011/11/…
 
3:56 PM
and unreadable :)
 
lowercase filenames do not allow for fuzzy matching
 
for what ?
 
@ircmaxell who said we're forcing it? :)
 
now are you suggesting to shape PHP so it is easier for IDEs ?
 
@Happyninja Just the simplest way of going around it -- and avoiding any problems... I'm not too familiar with Thunderbird for WIndows
 
3:57 PM
@igorw fuzzy matching?
 
@echo_me that is really $_SESSION['password']=$_POST['password'] not gonna helping ...storing plain password in session is very bad ...
 
I mean... if people write crap, they can still keep their own crap: my solution is not requiring ugly stuff...
@tereško why not? Is there any kind of problem with that?
 
@rdlowrey The most efficient way to do it I suspect (if you can figure out a way to do this within the app that doesn't turn it into a plate of spaghetti) would be to do the unmasking as you fetch the data from the wire although even then you'd end up with 2n + m bytes of memory on the last iteration I think (where n is the data payload length and m is the masking pattern length)
 
it can be IDE friendly or just human friendly ordoyouprefermetowriteeverythinglowercasefornoreason? :)
 
3:58 PM
@Baumr if you would like to experiment, may i suggest you doing a backup first and just then, apply the straightest way: just changing incoming/outgoing server configuration in the client itself?
 
Assuming you are buffering the data payload into a string in memory
 
next up IIG (IDE interoperability group) , pushing for new features in PHP core ... what a nice idea
 
@igorw That is true, but can be made if needed (I guess).
 
That's the thing, i'd be telling my client from afar -- so cant really experiment
 
user895378
@DaveRandom That's what I'm attempting right now ... it may end up being an entire restaurant worth of spaghetti. Hopefully not. We'll see.
 
3:59 PM
@Happyninja huh?
 

« first day (863 days earlier)      last day (4068 days later) »