« first day (622 days earlier)      last day (4323 days later) » 

9:02 PM
I don't get the print function.
It happens that it does not print
 
What is the name of black / white as color when RGB are primary colors?
And yes I know they aren't "real" colors
 
PHP Quiz: What does echo print('hello') && 0; output?
(executing is cheating)
 
@hakre 01?
 
@NikiC I don't know if I could say "close" ;)
 
1?
 
9:06 PM
Bravo!
But what does echo print('hello') && 1; output?
 
1 ... wait...
 
Something is wrong. I got 8 votes but it doesn't show on the frontpage :/ news.ycombinator.com/item?id=4178882
@hakre 11?
 
@NikiC Jup.
The question is: Why?
Shouldn't print just output something?
 
@hakre Is that a real question?
 
Yes that is a real question.
 
9:09 PM
Well, what part do you not understand?
 
I wonder why print('hello') is not giving out "hello".
 
echo print('hello') && 1; is echo print ('hello' && 1); if you put the parenthesis right. And that is echo print true; and that is print '1'; echo '1';
That's why you shouldn't use those damn parenthesis with langauge constructs
 
that's why I use printf. (even when I don't need to)
 
@NikiC lol, okay ^^
 
9:11 PM
@hakre Really, it annoys me
 
@Bracketworks thanks for the hint, that's what I need ;)
 
I hate it when people do echo(((((((((('Hi')))))))))); (or equivalent)
 
@NikiC lisp?
 
@NikiC Oh I thought with print it would not be like echo.
 
@hakre I've become quite fond of printf (and brethren) over variable interpolation.
 
9:12 PM
@hakre it's from the same breed ^^ just doesn't support varargs
 
@Bracketworks Yeah, I like it too. However I sometimes miss modifiers like urlencode or htmlspecialchars in printf ;)
 
okay i have a complete choice of what payment provider to use for a project i'm working on
which api is least offensive
 
@David DON'T USE PAYPAL!!!
 
@NikiC it's already out of the question
 
(all I have to say)
 
9:13 PM
Paypal SUCKS
 
@David Face to face asking for cash ;)
 
@hakre How do I redirect them back to my site once it's processed?
Do i bring a laptop with a web browser up?
 
Paypal is an evil money-eating monster
 
If you want the submit button to work, gimme cash ;)
 
@NikiC I think Google Checkout looks like the way to go
@NikiC but tbh I'm not sure what's out there --- I'm developing an online educational curriculum that's subscription based
so i want auto-drawn payments
 
9:15 PM
I have no idea about payments ^^
I just know that paypal sucks
 
and i don't want to touch paypal with a 3000 foot long absestos insulated pole
 
@David: Which country?
 
yeah i've had lots of issues with them
 
I don't know how much many I left behind on frozen paypal accounts
 
@hakre The US for now...depending on how this individual's business expands
probably will go into most english-speaking countries
then spanish over the next few years
 
9:16 PM
@David USPS. Cash by mail. Only.
 
@Bracketworks ingenius
 
what is the english main word for fax, phone and cell phone?
 
@David US, check this: dwolla.com
 
@hakre ahhh i forgot about dwolla
it's a very user friendly site
 
@Gordon Telecommunication Device?
 
9:17 PM
i still would need something for CC processing
 
@David I think they do that, too.
 
no they don't, that's what they're against
and why they're cheaper than dirt
 
@David Well internally their system runs on the same base as CCs.
 
@Gordon telephony?
 
@hakre hmm, yes. though im not looking to describe a device. just the numbers
 
9:18 PM
their design looks a lot like bootstrap
 
@Bracketworks is fax telephony?
 
Fon/Fax/Cell
 
but it isn't bootstrap
 
@hakre i need the superclass :)
 
Number
 
9:19 PM
 
Phone Number
Take Phone and then do a hover-text that explains what's all in
 
perhaps stupid question... when you have singleton class, session_id() returns only one id?
 
> The term's scope has been broadened with the advent of the different new communication technologies. In its broadest sense, the terms encompasses phone communication, Internet calling, mobile communication, faxing, voicemail and video conferencing.
 
@webarto , session_id() returns cookie value
this has nothing to with singletons or any other error in your architecture
 
I like your explanation...
 
9:24 PM
...any other error in your architecture.
I rambled a half-question earlier on singletons actually; still a bad idea for the Null Object pattern for handling instances, I presume?
 
Data: 7a1f1bd3c7abab41f41e3a185f4fa7a5 AND d2ddac6usgmt7vonq18rbrp512
Data: cd1c3833ec83f77638b83cf8c5f356a6 AND d2ddac6usgmt7vonq18rbrp512
@tereško so I couldn't figure out why the f* same session id for two different computers, thanks for explanation...
 
@webarto hmm. when $client->getClientId(); returns a socket ID maybe the method is misnamed and should be getSocketId(). Also, if it returns the socketId, dont name the variable id
@webarto also, the session_id comment is superfluous
 
@webarto , i hope you are aware that your code means nothing
there is no way for me to guess what $client->getSessionId() actually returns
 
Does anyone here have experience with creating facebook apps?
 
yeah soap sucks
@jas
@Jason facebook apps are just webpages that use the facebook graph api
 
9:29 PM
I changed some auth permissions today and they still don't seem to have propagated
I'm not sure what is going on.
 
when you change permissions the users have to re-like you app to okay the new permissions
afaik
 
I'm using the facebook php-sdk and it has been pretty reliable so far
I'm using testing the permission changes by removing the app from a test account and then trying to sign up for it again in a separate browser (I thought maybe caching or cookies were causing the issue)
This was about an hour ago and all my googling shows that the changes are usually propagated pretty quickly
 
oh :s
that should work :s
 
:|
 
sorry I gotto go now :(
hope you get it to work....
 
9:33 PM
Have a good weekend!
 
you too ;)
 
Anybody has a link to the php manual where the different truthy / falsy value evaluation is explained?
 
0
Q: What is Z66831? What is the reference?

SpideyVeriFone's default password for their PoS products is Z66831. There are tons of references for Z66831 on Google (Steam, Flickr, Xbox LIVE, Battlelog, etc. accounts, mainly), but I can't find the original reference, if there is one. I think there is a bigger meaning behind this string, but I can'...

 
yup. Ty
 
@Bracketworks wtf?
 
@CharlesSprayberry The worst part is ... it works.
But is (as profiled by others; grain of salt) 2000% less efficient.
 
@Bracketworks I'd say the worst part is that people think its a good idea and like it
 
Well, yea. Anyone putting it into production is better off selling their computer.
 
Seriously, if you're gonna rely on debug_backtrace() in a production environment for core functionality then of course your app is gonna suck performance wise.
You should also quit your job and do something else with your life
 
9:54 PM
lol
 
Just, wow. Everytime I see some userland PHP code that makes me go WTF I think it can't get any worse. Everytime I am proven wrong.
 
yeah, great pick. Just some minutes ago I thought about making a script that basically is exectuing within the error handler to protect itself from being error handled. that comes somehow close.
 
@CharlesSprayberry But userland can do it. I don't understand why ircmaxell's proposal got the shaft; the on on scalar parameter type coercion, eg: function foo((int) $int) { ... }
 
@Bracketworks http === string yada yada yada :(
 
@Bracketworks But, realistically though they can't. If the solution can't be used in a production environment I don't see it as a viable solution. None of those hacks would work in any serious application that needed to scale properly.
 
10:05 PM
@CharlesSprayberry I don't disagree with that; but it's one thing when something can't be accomplished, and another when it can but shouldn't.
The latter giving rise to
And sad face.
Anyway, I'm off to the bank.
 
@Bracketworks Touche and too true.
 
@Bracketworks That is actually quite interesting
@PeeHaa I don't like your array formatting
 
10:20 PM
:(
What do you suggest?
 
the normal
array(
    'foo' => 'bar',
    'bar' => 'foo',
)
array('foo' => 'bar',
      'bar' => 'foo',
     )
is just ugly
 
hmmmm I think the first one is ugly :P
formatting war the new IDE war? ;)
But serious what is everybody in here using?
 
@PeeHaa You have bad taste!!!!
Bad CS taste :P
 
hehe
@NikiC Is it really that bad? Should I be ashamed of myself? I've always done it like that :P
 
@PeeHaa Yes.
It hurts my eyes ^^
 
10:30 PM
We don't want that to happen
 
array( 'foo' => 'bar',
       'foo' => 'bar' );
 
0
A: convert tab/space delimited lines into nested array

hakreIn contrast to my previous answer that is quite a bit long and explains all the steps, it's also possible to do the same but more compressed. The line splitting can be done with strtok The preg_match then "on" the line making mapping more immanent The Levels can be compressed into an array take...

muhaha. don't ask.
 
@NikiC , you left out this option
 
@tereško I always add the extra , and extra line for versioning
 
is "versioning" a new synonym for "copy-paste" ?
 
10:33 PM
@tereško git / svn etc
When you add an extra item to the array two lines will be changed instead of one
 
and i don't, because it is a bad habit to take over to JS code
 
@tereško grrrr now there are three options. damn you :)
@hakre You have anything to say about the way ™ to format arrays?
At least we agree everything has to be on a separate line ;)
 
Good Evening
 
I'm somewhat partial to @tereško's style. It doesn't waste an extra line on the parentheses. But I could see using @NikiC's style too.
 
@PeeHaa , not always
 
10:38 PM
@PeeHaa I'm not yet able to comment on that.
 
@ircmaxell evening
 
$grid = array( 1, 0, 0,
               0, 1, 1,
               0, 0, 1 );
@PeeHaa, it kinda depends what that array represents
=]
 
...
@ircmaxell you have something to say about it?
 
a true PHP programmer does var_export CS:
array (
  0 => 1,
  1 => 0,
  2 => 0,
  3 => 0,
  4 => 1,
  5 => 1,
  6 => 0,
  7 => 0,
  8 => 1,
)
 
@tereško eiw
 
10:44 PM
@hakre Is that a good thing or a bad thing?
 
@PeeHaa I agree with @NikiC
array(
    'foo',
    'bar,
);
 
@PeeHaa that is trying to make a joke.
 
you are really bad at this , @hakre
 
:P
 
but well, it doesn't look that bad actually.
 
10:46 PM
btw , you aways forget how the shorthand might impact it :
$foo = [ 'lorem' => 'ipsum',
         'sit'   => 'dolor amet' ];
 
here we go again
articles like this will be popping up till next saturday .. again
 
I've never even used the localtime() function (never even heard of it actually)
 
Guys, clearly because 1 implementation is WTF the entire language is fubar.
 
10:57 PM
@ircmaxell Was the first time I saw it myself too
 
@PeeHaa Incredible
Hate for the sake of hate
 
@tereško @hakre you're right, code I gave means nothing... I was using some php websockets server as a base... it appears that session_id() returns only the ID of the client who started the server (which when you run in console means nothing)... I can get clients headers (while connecting to server) and parse PHPSESSID in my case, not the wisest move, but meh...
thank you both
pokit.org/get/img/a3848c3331beb42f2c65d7123e50b11b.png I should have just used XHR and stop trying to be "smart"...
 
damn .. got 404 on http://webarto.net:8000/
 
11:13 PM
I should renew domain first :) It's in hosts, so when I figured it expired, it was too late...
 
https://gist.github.com/3019006 That's the reason people hate on PHP. They don't understand it, or they pick the oddball edge case to complain about..
 
@tereško could you check if webarto.dyndns.org is alive (just try to open), my router doesn't love me anymore...
 
not connecting (30s+)
 
thank you
 
11:28 PM
I can connect your dyndns
but I have no password ;)
 
just fixed it, thanks for testing :) it's some 3 years old ticket support application and I need to basically rewrite everything with ZF2 and Doctrine2, now it's all v1, and slow and terrible code... pokit.org/get/img/61a36b3c764efa035553d2b709cae0af.png (I ripped notification button from chat :P) and trying to make this "push" work...
but "before you change anything, consult us" is not helping much...
 
@hakre , i assume , you already tried admin:admin
=]
 
at least they've used SHA1 :) (3yrs ago)
 
if it does not have unique salt for each password, it does not matter waht they used
 
even sha512 is trivially brute-forced
 
11:36 PM
as I learned from you, will change of course...
 
:-D
 
I'm getting paranoid now about everything :D
 
paranoia is an occupational disease for IT professionals
 
yeah. If you're not paranoid, you're not doing it right
 
pardon me, more paranoid
 
11:44 PM
> “Paranoid? Probably. But just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face.” ― Jim Butcher, Storm Front
 
I wanted to reply "shotgun", but "invisible" prevented me... true :)
while we're at this security "thing"... huffingtonpost.com/2012/02/17/… ...
... and stole what was described as "invaluable" intellectual property ...
facebook tokens are encrypted, right?
 
btw , by best recommendation for "Dresden Files" book series
 
I must turn this s* off and read something... thanks for recommendation :)
 
> "You accessed the very heart of the system of an international business of massive size, so this was not just fiddling about in the business records of some tiny business of no great importance."
McCreath should die
 
along with FB
 
11:51 PM
> An event is starting in 8 minutes in C# - ".NET Programming Puzzles"
wtf
fuck you SO
@webarto Well. FB doesn't have to die. If people like to use it and give away their infos. Fine with me :)
 
I just hope they are in plain format :)
 
Guys you remember the saga right. And the way @Robert Harvey♦ reacted about the fact that we should have added a comment:
9
A: Should we not explain downvotes?

Robert Harveyhttp://stackoverflow.com/privileges/comment describes the legitimate use cases for comments. They are: Requesting clarification from the author; Leaving constructive criticism that guides the author in improving the post; Adding relevant but minor or transient information to a post (e.g. a ...

 

« first day (622 days earlier)      last day (4323 days later) »