« first day (1366 days earlier)      last day (3582 days later) » 

12:00 AM
@Fabien E_TOO_DISTRACTING
 
@Fabien I do not want to get addicted to pokemon again :)
 
heh
Okay... basics complete. Now it's just everything I forgot to do :P
Apparently buying IPs is good business. They're quite expensive now.
 
Hi
 
12:18 AM
I think i've finally got it, but my if statement shows an error in NetBeans, but not in my browser. Check it out:
if (password_verify($_POST['password'], $db_hashed_password) && empty($_POST['password'] == false)) {}
 
empty($_POST['password'] == false)
 
Whats wrong with that?
Does empty not have a bool?
 
$_POST['password'] == false <-- isn't a valid arguement for empty()
Look at the parenthesis
 
empty($_POST['password']) == false
 
There you go
 
12:20 AM
Thanks.
 
> Note:
Prior to PHP 5.5, empty() only supports variables; anything else will result in a parse error. In other words, the following will not work: empty(trim($name)). Instead, use trim($name) == false.
 
@Fabien Can I have multiple variables inside empty();?
 
@RahulKhosla I don't answer questions that are an easy google.
 
12:32 AM
Hey I am just wondering. I am coding a search bar in HTML using PHP and MySQL. Can someone link me to a tutorial or tell me how when I type :"ob - 'object' would appear (google search bar functionality)
i.e. - the server would be able to compute lexographically what the user wants to search based off the letters he has already typed
How would I start with this?
 
@BDillan Found this for you 2my4edge.com/2013/08/…
 
Search for "auto complete"
 
Not sure if it will help.
Does anyone know how I can do this: empty($_POST['email'], $_POST['password']) == false
I don't think I can have 2 vars in one empty??
 
autocomplete - wow Im an idiot
@RahulKhosla Thankyou
 
No worries. Good luck.
 
12:36 AM
compute lexographically
-_-
 
12:52 AM
push and sleep
nn
 
also, try to put an order in your logic:
Check first if it's not empty and then check if the password is good
so
if(empty statement && password_verify)
and not the other way around
PHP will read the statements from left to right and will stop reading if it's false
So if the empty statement is false, it will not verify the password
 
1:09 AM
Ok thanks.
 
 
5 hours later…
6:16 AM
its all sleeping .... gud night
 
Let's have a quick chuckle at the silly things that Nashorn does :)
 
Morning :)
Hi guys I'm using this class to get session file contents then unserialize it to be an array to use it. codepad.org/Ml1J29sS but it sometimes don't work and give a empty array ?
 
6:37 AM
Why don't you just work with the session functions?
 
As I'm working on websocket server so Server recieve SESSION_ID then open the file to serialize the data. I can't use $_SESSION in websocket as it is a global variable so if any user change it, it wil change for all users. I hope you got it
Please can you help me ?
 
8:11 AM
@tereško unfortunately I cannot share code as it's for work (maybe luckily :P) - but what I can say is that, whereas our legacy application's extent of OOP is inheritance, no namespaces and not a single interface... the thing I'm making has a very simple object api which adheres to SRP, uses DI and more. I'm writing UML for it atm though
 
that's kinda nice
 
Even if it was the crappest code I've ever produced, it'd be 10x better than the spaghetti mess that we currently have that's almost impossible to debug. Took me 5 hours to figure out a route from client -> server -> java backend via xdebug
 
8:23 AM
-3
Q: schedule urban airship push notification

Naveed RafiCan anyone please send me a sample source code for scheduling a push notification using urban airship for php? I tried everything via documentation but was not helpful enough. Thanks.

 
AAB
Hi,
I`m having a problem with NATURAL JOIN in MYSQL
 
@AAB hola
 
AAB
@NullPoiиteя Hi
Join is not returning any rows
table A contains user_id,emailid,passwd
table B contains user_id,name,........... form fields
table A has user_id as auto_increment
 
well Mr if you don't tell the source code why have you replied to a question and posted the source code as answer? :D stackoverflow.com/questions/5004233/…Naveed Rafi 1 min ago
LOL
@Jimbo lets get rid of that troll ; delete all message :D
 
AAB
8:40 AM
@NullPoiиteя sorry but could you help me out?
SELECT name,data from table 1 natural join table 2 returns nothing
SELECT name,data from table 1 natural join table 2 using (col1) gives error #1064
 
sorry but i cant help you out now
 
i all what doo's you people think about the shortened links in the generic mysql_* notice? Is there now a rule that these shortened links should not be used? Obligatory suggestion, [Don't use mysql_* functions in new code](bit.ly/phpmsql). They are no longer maintained [and are officially deprecated](j.mp/XqV7Lp). ...
 
AAB
@NullPoiиteя k no probs
 
@LozCheroneツ i think we can use shortened links cant we ?
btw LOL Obligatory suggestion
 
I thought so, but had multiple edits on my answers today switching out the shortend links for the resolved ones, by a 8k user that is mainly a C user. I wondered if there was now a meta rule.
Im sticking to what i know, let this link nazi get on with it lol
 
8:49 AM
LOL ... may be that user gone mad/or love to edit :D
 
Mornings
 
lol
@RonniSkansing morningn
 
Sunday =/
 
Rainday where i live ;p
 
8:53 AM
Sunday where i live its 43 degC here :P
 
Grey sky here ={
 
@NullPoiиteя thanks for the upvote, and comment
 
anytime .... :)
http://stackoverflow.com/q/24720941/1723893
-8
Q: How to understand what is KGL?

KGL 3stackoverflow.com/users/3176270/kermani Do you want to know KGL? If you want please visit this page www.balit.ir/kgl I am waiting for your response There are something that you should add to stackoverflow

LOL
 
lol, a few hours more on the website and logo, might make it more believable
Whos going to watch the final later?
 
9:14 AM
i will
@LozCheroneツ which team are you supporting ?
 
if its anything like germany last it should be good ;p
 
noone just hoping it will be good
 
true .... just want to see more than 5 goal :D
 
I tend to support the team that does less dives lol
 
9:18 AM
or do not byte ... :D
 
*bites, your computer mad !!!!
;p
 
:D
it feels bitch when i close question within 2 minutes of asking :D
@LozCheroneツ lol i meant bite
 
lol i always leave and make a drink after closing a dupe question, just incase i jumped the gun. That gold dot always scares me ;p
 
its duplicate ... isnt it ?
 
did you see the link you closed it with, that question is also closed as *closed as not a real question by casperOne♦ * im not sure its the same
 
9:27 AM
yupp i have seen ... and if op knows little but about JS than he can understand
and both question are same .... i want to close as dup of each other :D
 
yeah do it ;p <?php echo include 'ajax.response.php'; ?>
 
ohhhyou silent killers DaveRandom, tereško ...
 
muahahahaha!
:-P
@rdlowrey I wish to discuss context params whenever you are alive. I have concluded they make no sense whatsoever, not sure how to proceed in persuading people that is the case though
 
10:04 AM
moin
 
Hey @JoeWatkins, you done any viewings yet?
 
aight, schland's gonna win because
 
@DaveRandom not yet, I am itching too, but no point until the money is in the bank ... there will be nothing worse than finding somewhere we love only to not have the money in the bank ...
 
@JoeWatkins true enough. Is there some thing like kickstarter where you have to wait until the target date or sth?
 
we done a bunch more research, we found a bunch of places in the uk with similar kinds of properties to that ... we committed to the idea of moving away too, because when you really look around, we were being robbed ...
it should be in my bank in a week
(yay)
we also found a hilarious article on the isle of white ... davidicke.com/headlines/… definitely worth a read ...
 
10:15 AM
My personal opinion is that you should at least consider buying @JoeWatkins, if you can find a place that you like where that is enough of a deposit (talk to a good independent mortgage person) you could end up with a much lower monthly outlay. And IMO the idea that you want to emigrate shouldn't stop you here, because when you come to that point you can either sell it and get some money back out of it, or rent it and get an income from it
 
we'll never get a mortgage
 
Possibly true, possibly not. You won't know unless you ask, and asking can't possibly put you in a worse position
 
we can't get a normal tenancy because we can't pass a credit check for that ....
(we have tried, many places)
well not never, in +5 years we'll be able to, but our credit is fucked at the moment, we have to repair it before we can get a mortgage ...
 
Sucks a bit this didn't happen 10 years ago when they would give a mortgage to anyone who could write their own name
 
it does suck ... so hard ...
 
10:24 AM
@JoeWatkins good day sir :)
 
@JoeWatkins if you like I can give you the details of the woman who's dealt with our mortgage since the beginning - she's really good, and even if she tells you you haven't got a hope in hell you haven't lost anything. You never know, you might be surprised...
Half-fill that glass!
Come on, don't make me give you a really dodgy jock sports pep talk
 
I'm only being realistic, in the last 6 months while we have been struggling we have been refused every kind of credit going, personal loans, credit cards, and tenancies .... it will only damage our credit rating further if we keep trying to apply for credit :(
I can't even get a £50 overdraft ...
r.u.i.n.e.d
 
@JoeWatkins Is there anything your company could do?
 
morning @Jack
 
@JoeWatkins Yeh but the situation has now changed somewhat (or at least it will have when you have that bank balance) - if your credit rating is already in the toilet then it cannot do any damage to ask...
 
10:27 AM
I didnt ask, many of my coworkers donated, including my boss, and the company I work for ... but I can't ask them for actual help, they just laid off 200 workers because a side project went bust ...
 
@JoeWatkins can I take you to a private room for a moment?
 
yeah, but so isn't really private @SecondRikudo
 
@DaveRandom Do you have any experience with libresolv by any chance? :)
 
@DaveRandom that's true, it really can't get worse I don't think ...
 
@Jack No, but it's an area I'm generally familiar with, what's up?
 
10:29 AM
email over the details and I'll have the misses write her, with a full explanation .. if she's really an honest type then it wont even cost a credit check I guess ... and thanks :)
 
@DaveRandom Do you think this patch is the right general approach?
 
@JoeWatkins I've pinged you
It might arrive in your global inbox
 
where ?
 
@JoeWatkins check main
 
The win32_dns.c has a similar clause in there and since there was a bug raised on this very thing I figured, fix da shit.
 
10:31 AM
@SecondRikudo don't see it
 
Check history @JoeWatkins ^
 
Jesus the docs for dns_get_record() are awful :-P
 
teeheehee
 
@Jack personally I'd rather return the error code but since that would have BC implications then I suppose what you are doing is probably the best way
 
The Windows version is here btw.
 
10:38 AM
Well actually @Jack since you are emitting an error, can you add a reason to the error message?
 
Oh, they include one more condition ...
 
That is better than "failed, deal with it" message IMO
 
Ehh yeah, I suppose we could .. for both versions.
Programmatically it won't be different unless someone checks error messages in a handler, which is madness.
 
hmmm, not sure about continuing on NAME_ERROR
I've not aware of a case where that's not just going to fail forever
(assuming that errcode is what I think it is, let me double check)
 
yeah .. not sure about it. dinner time, brb
 
10:41 AM
@Jack No but it could be good in a log file - esp. it's "couldn't contact server", that's an immediate infrastructure red flag, could save someone a bit of debugging
@JoeWatkins Yeh no worries, I'll dig her details out later. I don't think I have a non-chat way to contact you, do you use gmail? Or failing that, can I just email your php.net account?
 
yeah krakjoe@php.net or pthreads@pthreads.org (same address) @DaveRandom
 
kk no worries :-)
 
@Gordon Schland already lost where it matters, because GEMA :(
 
10:56 AM
 
Morning
 
moin @Fabien
 
Your messages are getting more cryptic Joe.
 
lol, kittens
 
They learn to distract and annoy so early :P
 
11:04 AM
one just climbed over the screen and was too busy laughing to see it typing ...
 
@tereško These guys just signed a $1.7 million dollar contract with Sony
 
gonna go outside, because sunshine .... lata chaps :)
 
See you
 
lol. Sunny days usually have me moving further from the window. Damn glare.
 
11:11 AM
@Fabien well .. I think they got him/them way too cheap
 
Yeah. Hopefully it wasn't a long contract.
Though I would like to hear them when they have a singer.
 
since about half of what I listen to is purely instrumental, I think they might be better off without a singer =P
 
199
A: How do I select an element with its name attribute in jQuery?

Second Rikudo$('[name="ElementNameHere"]').doStuff(); jQuery supports CSS3 style selectors, plus some more. See more jQuery - Selectors jQuery - [attribute=""] selector

ONE MOAR
But jQuery TT^TT
 
@SecondRikudo It could be worse, you could have a badge like I do :)
 
You should be ashamed!
 
11:30 AM
jQuery is a wonderful library and its authors should receive a Nobel prize.
 
@Jack The inventors of the Nobel prize should receive a jQuery library.
@tereško Same here. Do you have a decent playlist of proper instrumental music to share?
russia yesterday ^
 
Need to learn to check the forecast
 
Isn't there one in you're phone?
 
What hardware is most important for speedy compiling? Or does it depend at all on what's compiling.
@tereško I mean the Russians do :P
 
@Fabien IO then cpu.
 
11:43 AM
^that
So, having an SSD would probably help
 
It would help many things.
 
Yeah. I need to revive my dormant one.
 
Heh, SOAP - the most despised data exchange standard
Well,it started to rain
 
11:54 AM
Hail. Big too.
 
@Jack XML NS prefixes are such a common question, esp. wrt SOAP, we need a canonical I think
Also it might be easier if someone just added the ability to change the envelope prefix in ext/soap
I realise that's totally wrong but it would shut these people up
 
The envelope prefix should work either way, no?
I've seen similar issues with that particular soap service.
 
Hi everyone :)

What would you rather use for validation in Laravel from these two packages?

https://github.com/laravelbook/ardent
https://github.com/JeffreyWay/Laravel-Model-Validation
 
@Jack Yes it absolutely should, as should every other namespace anywhere in the document structure. What I meant was "register namespace prefixes", my bad
It is possible there are some flakey impls out there that look for specific prefixes instead of using ns URIs properly
Although that implies someone rolled their own XML parser, which means I probably don't want to be using that service for anything.
 
Agreed.
I'm amazed at how fast my new comp can compile php-src =D
17s for make clean all
 
12:09 PM
My VPS took nearly 2 hrs to compile with this config last night: info.daverandom.com :-(
 
@Jack wut
 
Okay, I should add that it's compiled with --disable-all --enable-maintainer-zts only.
 
still sounds fast for an optimizing build
 
Yeah, my laptop still takes a minute or so.
And the fan starts to whir when it reaches the linker heh
 
user image
4
 
12:17 PM
Morning
 
mornin
 
12:29 PM
It is waaaarm today
 
it's waaaarm every day.
 
1:12 PM
is it cold or hot in usa ?
 
Do you know how big the USA is?
 
NY
I don't mind, I'm from north Africa, just I want to get an idea about the weather in NA
is it summer ?
 
u mean ?
 
When I connect to the same database via SSH (mysql -u ...) and via MySQL Workbench and viewing the same table, I'm seeing different results
 
1:16 PM
maybe sorting ?
 
I'm missing a freaking column!
 
Oo
 
@SecondRikudo Using SELECT * or DESCRIBE or what?
 
SELECT
mysql> SELECT * from trc_client.property_values LIMIT 20;
+---------+------------+-------------+----------------------------------------------------------+-----------------+---------------------+---------+--------+------+-----+
| mode_id | version_id | property_id | property_value                                           | change_revision | change_date         | user_id | status | tag  | raw |
+---------+------------+-------------+----------------------------------------------------------+-----------------+---------------------+---------+--------+------+-----+
In Workbench, the raw column is missing
 
Is it a blob by any chance?
 
1:20 PM
TINYINT(1)
 
In that case I am 99% sure it is PEBKAC ;-)
 
Like what?
Connection host and port match
 
Not looking correctly?
How are you looking at it in workbench?
table definittion or data view?
 
who play with Laravel ?
 
@PeeHaa both
 
1:22 PM
It looks like you cut the screenshot of
 
You sure there is nothing under that?
 
Am I checking if the user has been logged in correctly??? pastebin.com/0kS7xPqy
 
What happens when you type DESCRIBE tablename; in the sql window of the thing?
 
1:24 PM
Thats my header.php btw: if (isset($_SESSION)) {
session_start();
} else if (!isset($_SESSION)) {
session_destroy();
}
 
@PeeHaa lemme try
Still not there.
And it appears in the SSH version
 
You are looking at a different table or you haven't commited your last changes yet
 
@PeeHaa I have no changes pending.
 
or you need to refresh the table
 
@PeeHaa I've closed workbench and restarted it already.
Only thing I haven't tried yet is completely restarting my PC
 
1:26 PM
Well only one thing left that could be it: you're looking at the wrong table / database / server
 
Or is there perhaps a "clear cache" kind of thing I can try with Workbench?
 
or workbench is fucked
 
Workbench is fucked.
 
@SecondRikudo Dunno has been a while for me
@SecondRikudo Yeah I remember that :)
 
I had a few probs with workbench once. I hated it
Any idea on this:
if (isset($_SESSION)) {
session_start();
} else if (!isset($_SESSION)) {
session_destroy();
}
I think I should be session_starting before checking right?
 
@SecondRikudo I see EAV.. a pity..
 
I've never had any particularly bad problems with Workbench.
 
@SecondRikudo .. and do you have a superior alternative that you are eager to share with us? Would it be PhpMyAdmin, for example?
 
@AlmaDo lol, EAV works. Just, y'know, if you don't care about performance, and several other things.
 
@DanLugg lol. well.. lol. and.. lol.
 
1:34 PM
;-)
If it's good enough for Reddit it's... well... hmm, maybe not.
Oh yea, I forgot, I did have a particularly bad problem with Workbench. It completely borks in a VM.
 
@AlmaDo I know, trust me. NMC
 
Like, completely breaks the OS's UI (and it's own)
 
just don't tell me that EAV works Oo..
 
@tereško Yeah, CLI all the way.
 
Wouldn't trust some people with CLI
 
1:38 PM
@Fabien Why not?
 
Well, now that I've opened Workbench, I must restart my VM. Check y'all in a bit.
 
CLI sucks for designing structure
 
Make specific users for mysql and have them SSH as those
pen and paper
 
rait
 
That's how I do it, what's wrong with it?
 
1:39 PM
@SecondRikudo Your paper comes with "Forward Engineer to SQL"? Can I buy that paper too?
 
@DanLugg No, I do those myself, it's not that hard, and it makes the structure easier to remember (when you write it yourself), as well as the dependencies and foreign keys.
 
@SecondRikudo that approach hit's some limitation when you have more then 10 tables ... like a brick wall
 
@SecondRikudo It makes the structure easier to remember when you can save the file to disk.
 
Man. You know I am spoilt and lazy when I start thinking to myself 'I wish Starbucks did delivery'.
 
@tereško I guess you're right. That doesn't justify all the quirkyness and all the bugs WB has
 
1:41 PM
Don't get me wrong, I pen-and-paper a lot of structural stuff, but I find that when you're comfortable with the design, then it's effective to begin recreating it in software; whether it's as a final representation, or an intermediate graphical one.
 
You're all pretty confident with your pen and paper. I use a whiteboard.
 
@SecondRikudo ... but it leaves you with no "superior alternative" , thus making my point
 
@Fabien s/pen/thing you write with/ s/paper/thing you write on/
 
Chisel and tablet it is :P
 
eyeliner on a napkin.
spaghetti sauce on a menu
 
1:44 PM
Pee in the snow
 
the blood of the innocent on a helicopter door
 
@DaveRandom If you have time, could you spare an eye to review this ftp patch (not my writing) ... I'm having doubts as to whether it would work in the way it's supposed to.
 
@Fabien I will model something this way, some day. Probably some day I've been drinking a lot.
 
@Levi eek @ code blocks on wiki.php.net
 
the cat?
 
1:48 PM
(unless less ugly dark background is some side-effect of shared being broken)
 
Given that most (if not all) css of wiki comes from shared I wouldn't be surprised.
 
@DanLugg lol
 
@Jack I can later on this eve if you like, I'm currently covered in paint
 

« first day (1366 days earlier)      last day (3582 days later) »