« first day (1500 days earlier)      last day (3431 days later) » 

12:22 AM
@LeviMorrison Intuitively covariant. (Try to resolve at compile-time/late binding-time if possible without autoloading and if not then at runtime)
Which at the same time is the hardest to implement, but that's what I'd expect to work when writing code.
 
@LeviMorrison I can just do brew install hhvm. It'll just take forever to install.
 
Yeah, because it has to build GCC 4.8 and a host of other dependencies.
^^
 
Oh yeah :/
 
They really need to fix it to work on clang.
If it doesn't work on anything besides GCC that's really crappy.
 
I mean, wow, HHVM might be fast, but you need GCC and hours of spare time to compile it? What the hell.
Zend is slower, but it builds on virtually anything and builds fast
 
12:40 AM
@AndreaFaulds zend_execute.o slowly builds :-P
 
s/E/Ei/
(yes, I'm really telling you how to write "Eih", even if you really meant "Eh" :-P
 
@AndreaFaulds Depending on your machine, maybe a different unit of time, like days.
 
@LeviMorrison I haven't tried on my machine, I think I tried once and cancelled it after a while
 
1:06 AM
@AndreaFaulds I hate case insensitive PHP class names.
 
@LeviMorrison Fix them.
but then, it'd ruin PHP's optional shoutyness
 
My beautiful covariant and invariant checks have to be nasty now :(
 
<HTML><HEAD><?php CLASS DATABASEMODEL { PUBLIC $USER; PUBLIC FUNCTION __CONSTRUCT(USER $USER) { $THIS->USER = $USER; }...
Hey, can the opening tag be <?PHP?
YEP!
<?PHP ECHO "I LOVE CASE-INSENSITIVITY"; ?>
<?PHP BILLY_MAYS_MODE(); ?>
@LeviMorrison NASTY? BUT ALLOWING UPPER-CASE IS AWESOME!
ISN'T IT JUST WONDERFUL!
 
1:23 AM
Hmm, why don't we have zend_string_equals_ci yet?
static inline
zend_bool zend_string_equals_ci(const zend_string *a, const zend_string *b)
{
        return a->len == b->len && !zend_binary_strcasecmp(a->val, a->len, b->val, b->len);
}
For now I just lobbed that into the zend_inheritance.c
 
1:51 AM
Oh, damn. It's surely the tenth time I write "public fun..." and then I notice that I'm writing Java code because the IDE is highlighting it in red color...
 
@crypticツ lol
 
Stas is spamming php-src git log with pull requests ^^
 
@bwoebi lol...i do that from time to time...sometimes the other way around too :P
ya know, i love virtualbox...but they really need to fix that "sometimes it doesn't feel like running" thing.
 
2:11 AM
@bwoebi After writing C++ I sometimes omit function and then get errors >.<
(In PHP I mean)
 
olah
 
@LeviMorrison Making function optional does feel like the right thing sometimes :)
 
2:54 AM
So, I ditched Photobucket's API and switched to ImageShack and I'm finally making progress, but I've hit a stump if anyone here is generous to pitch their two cents in

This is what I have for my code here (with my sensitive data redacted of course): http://pastebin.com/yaVjZWmj

I tested the login separately and it worked okay, but when I attempt to upload any image (whether locally from my server, http:// through my domain, or http:// from any other website, regardless if .png or .jpg) it fails and says it's not recognized as an image file.
 
@Leaf is the file corrupted? Also, are you sure they are .png or .jpg files? Just because they have that extension does not make them those types of image files. I'm sure it's checking the file header and seeing they are not correct PNG/JPG headers.
 
... I really should stop learning about theology
 
@crypticツ I tested another image, this time making sure the extension was .png, it was transparent, and high enough quality to not be .gif (found here urlnextdoor.com/ai/design-layout/images/sample-png.png), but I'm still getting the exact same message
Wait, I just noticed something
"error_info":{"Content-Type":null,"filesize":0
It seems it's not getting any file at all...
I'm going by this documentation:
https://docs.google.com/document/d/16M3qaw27vgwuwXqExo0aIC0nni42OOuWu_OGvpYl7dE/pub#h.jcrh03smytne
 
3:25 AM
I got it!
I needed to transload with URL instead of uploading as a file
Thank you for your help, @crypticツ [:
 
 
2 hours later…
5:13 AM
Morning
 
6:03 AM
^^ 'ello Jack.
 
6:26 AM
New Knapsack algorithm: just keep trying
 
Tom
Hi all. Can I ask a little advice... I been working to solve out a little script for days but I am delving into things that are way over my head. I finally posted seeking some help, but so far help has been scarce. Do I post a new question, or what?
 
-1
Q: convert text url into clickable text or image link

TomAll of these create link in the format <a href='$1'>$1</a> : How to add anchor tag to a URL from text input Convert text url into clickable links How to replace plain URLs with links? How to replace plain URLs with links? http://jsfiddle.net/kZfGV/ Convert text url link into clickable link php h...

Is that the question?
 
Tom
Yes
 
@Ja͢ck pretty big question :-D
 
So things are enclosed between (* and *)? @Tom
 
Tom
6:32 AM
Sorry I don't understand.
 
It's good that you have shown your attempts, but it would be better to phrase your question into: example input, expected output ... and then what you have tried.
 
Tom
Now in reading manual I find out that the function called can not be after the preg_replace_callback.
 
6:50 AM
@Tom function($safe_text) { ... } creates an anonymous function; you probably meant function safe_text($text) { ... }.
 
Tom
syntax error, unexpected '$safe_text' (T_VARIABLE), expecting identifier (T_STRING) or '('
Changed to function safe_text(text)
Fixed that one, I put function $safe_text($text) -- $ on safe_text
Thank Jack I've changed that. I think I need to go back before reordering and put the function before the preg_replace_callback. Current there is an error message for every line of code.
 
7:23 AM
good mornings
 
7:35 AM
posted on November 24, 2014 by kbironneau

/* by Cyrus McDugan */

 
how to change page a to b with timer ?
 
JavaScript
 
have link tutorial ?
 
8:08 AM
27
A: time delayed redirect?

Marat Tanalin<meta http-equiv="refresh" content="2; url=http://example.com/" /> Here 2 is delay in seconds.

 
Good morning.
 
moin
 
good meurning!!!
 
Morning!
 
@DaveRandom pong
 
8:21 AM
M0|\|DAYZ
 
soooo monday
 
:(
I wish there was a song for mondays
it'd be less sad
 
@FlorianMargaine If you drink enough during the weekend.. there still is a song in your head on monday :D
 
@FlorianMargaine There you go
 
@SecondRikudo best thing ever
 
8:50 AM
Morning
 
9:00 AM
morning @Fabor
 
2 days left on my invites for a 64GB OnePlus if anyone is interested.
 
@SecondRikudo ahhahahaha
 
posted on November 24, 2014 by kbironneau

/* by notananimegirl */

 
@SecondRikudo Got your oneplus yet?
 
@Fabor No -_-. But will soon
 
9:42 AM
heh christmas gift perhaps :P
 
9:55 AM
"bacon-wrapped ferrari"
6
 
ThW
Morning
 
10:12 AM
mornings
 
gluten morge
 
10:34 AM
@Gordon A bacon-wrapped ElePHPant would probably be more edible
 
@SecondRikudo you got some time for jquery issue?
or anyone else? :P
 
(puke)
 
...but who would eat an ElePHPant? ElePHPants are adorable mascots that exist to be loved and hugged.
 
@AndreaFaulds ... and eaten.
 
@salathe nooooooooo :(
Don't do that to the poor elePHPants :(
 
10:50 AM
My niece liked chewing on an elephpant, but didn't do it any lasting damage.
I burned the belly and legs of another one... don't ask. :(
I say burned, it just melts rather than catches fire. :)
But now he's scarred for life
 
Hmm I wonder what elephant tastes like.
 
moin
 
11:07 AM
Yo Joe
 
indeed
 
Patch that adds Unicode code point escapes to PHP by @AndreaFaulds: https://github.com/TazeTSchnitzel/php-src/compare/php:master...TazeTSchnitzel:unicodeEscape ES6 has the same syntax: https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point
 
@AndreaFaulds uh. I believe that ES6 has the same syntax is a coincidence ^^
 
@bwoebi Yep
 
11:14 AM
I noticed something weird ...
 
@AndreaFaulds But actually you also could, just like ES6 add fixed length unicode Sequences.
 
<7 you can register the constant namespace\type, like JitFu\integer or strict\integer ...
but in 7 you cannot
Fatal error: Undefined constant 'strict\string' in /usr/src/php-src/ext/strict/strict.php on line 13
any ideas ?
 
@bwoebi I'd rather not...
 
Btw. @AndreaFaulds "\x20" gives a space, not "\x2" and 0. We already have that variable length behaviour. Why does that not work for unicode codepoints?
 
@bwoebi Because so far no language has implemented it like that
 
11:17 AM
same for \x[0-9]+
 
@bwoebi Allowing variable length would cause confusion, too, if people have used other languages and expect it to be "\uxxxx" and "\u00012" doesn't do what they expect
 
hmm ... actually lookup of any constant seems to fail ... wtf is occuring ...
 
just like people might be confused when they see \xa and think it's an ivalid sequence
 
"Allowing variable length would cause" (╯°□°)╯︵ ┻━┻)
 
@Danack ?
 
11:19 AM
@Danack looks fine, we should use it :-D
 
@AndreaFaulds Er - agreeing with you. Having variable length would produce bad surprises that result in tables being flipped.
 
@JoeWatkins ?
 
@Danack Right.
 
Morning
 
We could allow \uXXXX, but I'm not super fond of it. I think non-clearly-delimited escape sequences are error prone and we shouldn't add more of them.
Also I'm definitely not adding \UXXXXXXXX because why require an unnecessary two leading zeros?
(The historical reason is "because Unicode wasn't always limited to 21 bits")
I'd rather people write "\u{202e}1234" than "\u202e1234"
 
11:29 AM
I dunno why but REGISTER_NS_LONG_CONSTANT is not working ...
registering same constant with REGISTER_LONG_CONTANT and using full namespace name works ..
 
:/
Sounds like a bug.
Maybe look into how REGISTER_NS_LONG_CONSTANT is defined?
 
I did yeah, just uses macro "n \\ c" ZEND_NS_NAME or something ...
it looks right ...
 
@JoeWatkins There's no -1 on the sizeof?
Note that there is one for the non-ns ones
Maybe that's it
Yes, that probably is it, as ZEND_NS_NAME doesn't do the -1 for you
 
yeah, looks right ...
I can't figure out if that is on purpose because of \\
I guess that's the bug anyway ...
 
No, it's doing a sizeof() on the ZEND_NS_NAME
 
11:39 AM
yeah I c
 
You know, we should make a macro that does the -1 for clarity
Something like static_strlen()
 
you'll get shouted at if you suggest moar macros
 
:p
I think it makes the intent clearer though
 
5.6 doesn't have the -1 either
and it works ...
 
@JoeWatkins 5.6 doesn't have the -1 on the non-NS one either, though.
 
11:41 AM
doesn't have -1 on non ns ones ...
yeah
 
hi
 
we need to get our shit together, either we want terminating char all the time or not ... it's really messy ...
 
need help :(
I am in problem with japanese character :(
I am using sql server
 
What's the problem?
 
in DB i was able to insert japanese/chinese character
but in the webpage its not appearing correctly
 
11:45 AM
Ah, sounds like a character encoding issue
What encoding is your web page? What encoding is your database?
 
i am getting ?? instead of japanese character
 
Sorry, gotta go. I'm sure someone else here can help...
 
Should I do interprocess communication between iis and windows service? (Context: I have http action that waits for some event to occure. That event happens when windows service finishes its job).
 
292
Q: UTF-8 all the way through

mercutioI'm setting up a new server, and want to support UTF-8 fully in my web application. I have tried in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL and...

 
@JoeWatkins what do you prefer?
 
11:49 AM
choosing one, not bothered ... but it's literally impossible to guess when to pass termination and when not too, and too hard to remember ...
 
@DaveRandom wrt the static/self thing in DateTime, what do you mean exactly?
 
/Zend at least should always require the termination, i can't think of a good reason not too ...
 
I'm not sure I understand...
 
no solution :(
 
@Hriju I doubt you have checked everything in that article is correctly configured on your server in 8 minutes.
 
11:55 AM
Any body knows Which technology is best suitable for E commerce sites?
 
network technology
 
@DaveRandom ping
 
but those things I have cheked before
i have been searching solution for this last two dasy
days*
 
Go for the alien tech - it's not that well documented but it glows green.
 
Yeah, I have tried loads of tech and Alien is definitely the best for e-Commerce.
 
12:16 PM
@SergeyTelshevsky hehe ... also ...
 
@JoeWatkins yes, electricity, I always forget that word!
 
that's the feeling I get when I have to deal with rails deployment-stack
 
Can any one tell multi threading in php is code approach for processing many loops same time in parallel
 
morning
 
12:31 PM
I want send 50000 emails from ses
My loop processing 1-2 email/ sec

Which is very slow

I want to process

50 emails per second

For that i want to divide my large 50000 array

In to 10 or 15 small array then process all

Array in paraller
 
Similar to how you're dividing a single sentence in to chunks?
 
tcp/ip for ya
 
Is it possible in php to run many loops in parallel
Same time simultaneously
Multi thread
 
pthreads
not sure if you want to do that
 
@Leri pong
 
12:34 PM
Yes i read it on Google and php docs
I will test it
 
@jitu Highly unlikely you want to do that in this context
 
Any other option?
 
The bottleneck is not your server's processing but the remote host
 
@jitu you should be using a 3rd party service for somethig like that .. like mailchimp
 
^ this
 
12:35 PM
Mail chimp api is awesome
 
@DaveRandom Is theoretically possible to fake tcp origin during http request?
 
unfortunately i am working on SES
And SES doesn't have fast e-mail processing approach or api
 
@Leri you mean change the ip?
 
It's theoretically possible to do what mailchimp do in pure PHP. It's something that's been on my list of things to do for a very long time. However, I estimate it will be 6 months at least of focused development before you'd have something remotely production ready.
@Leri Meaning pretend you are coming from a different IP address?
 
TCP is a 3 way handshake so no
 
12:37 PM
@DaveRandom Yes, for instance from my local machine where web server is atm.
 
SES support multiple connection
Just need to processing parallel
Sendy is using same approach
What i am trying
 
It is possible to spoof IP addresses at the network level, trivially easy in fact, but it's a lot more complex with TCP because <what @HamZa said>. It is possible to spoof it and handle it fully if you have control of a router in the route between the server and the address you are pretending to be, but that's beyond the scope of what you are asking I suspect.
XY: what are you actually trying to do?
@Leri it's worth noting that Tor is basically a way to spoof your IP address, at the fundamental level
@jitu The simplest way to do what you are asking (although I suspect it will be a bad plan) would be just have multiple instance of your script running.
 
@DaveRandom I have a web app hosted in IIS, client sends request to it and it pends request unless windows service running on the same network, says data is ready. So I want to have a WS that can be requested only from the local network.
 
Then what should be better approach any advice?
Or something that i make study
Amd try
 
@FlorianMargaine Why does PR #910 look so messed up?
 
12:44 PM
I thought doing that via IPC but IIS does not support named pipes. Also domain in iis may die if http requests are not executed.
 
@jitu You can configure sendmail to use SES
 
@Leri Oh right, well yeh then just applying some access policy based on REMOTE_ADDR (or whatever IIS calls it) will be sufficient.
@jitu Firstly, are you using an API or SMTP to send?
 
@Ja͢ck rebase... seeing with Remi so that he just cherry picks the last commit
not sure how to fix it :/
 
@FlorianMargaine I don't think Github likes doing a rebase on master from something that used to be 5.6
 
I didn't do that
 
12:47 PM
Your branch has "5.6" in it?
 
I think I'll just close the PR and open another one...
oh
I think I messed up when I created the PR
 
Ah ;-)
Yeah, close and redo should fix that then
 
dunno how to change that...
 
It seems like diverged branches ... not sure
 
yeah... I'll just close
 
12:50 PM
:D
 
I am using phpmailer basic emails sending api for Ses
But sending dynamic email
For each email dynamic email
Is slow processing
Send mail is also can't process multiple dynamic emails
Simultaneously
Each email per loop is bad and slower processes
Ses not have it self any api for processing multiple dynamic emails
Only option is create multiple threads amd send multiple connection
 
xxx
Hi I have a small doubt in MySQL
This is my table pd
+----------+-----------+
| product | division |
+----------+-----------+
| Product1 | Division1 |
| Product1 | Division2 |
| Product2 | Division3 |
| Product3 | Division4 |
+----------+-----------+
4 rows in set (0.00 sec)
 
SELECT COUNT(doubt) FROM MySQL; -- integer overflow
 
xxx
I want to concatenate those rows having duplicate products
and I tried this query
select if(count(*)>1,concat(product,' ',division),product) as 'Product' from pd;
 
12:58 PM
<?php
$file = fopen("logs/ip.txt","a");
echo fwrite ($file, $ip);
fclose ($file);
?>

Why on this I get internal server error lols ?
 
xxx
But I get only the first row not the second one
meaning I get this
+--------------------+
| Product |
+--------------------+
| Product1 Division1 |
+--------------------+
1 row in set (0.00 sec)
 
Sendmail is saying to send 50 emails bundle per email but dynamic email is unique for each emailid
 
@Tredged file_put_contents supports appending as well.
 
Can't make bundles of emails every email is unique for email id
 
12:59 PM
@hakre Let's do that, thanks ;-)
 
Well might not be the cause of your error. In case not: Internal Server Errors are within the servers error log. You can additionally just enable PHP error logging and look into the PHP error log. You will then find out in less than a minute what caused the problem.
 
Bleh even file_put_contents wont work, lets check error logs.
 
@Tredged does echo 'hello world'; even work?
 
xxx
@DaveRandom can you help me out with this
its freaking me
 
@HamZa Aahh what a good question :)
 
1:03 PM
and wth, do you really work for heijmans?
 
@xxx Did you try it? Look at the examples in those docs for GROUP_CONCAT() and try and work it out, if you can't get the hang of it then post the query you tried
 
Oh I kinda remember you....
 
@HamZa Duhh LOL
 
xxx
ok @DaveRandom
I tried in if() but it throws a syntax erroe
 
You don't need the IF, you just need GROUP_CONCAT and GROUP BY
 
1:06 PM
@DaveRandom Cool, thank you.
 
@Leri it's a long time since I had to deal with IIS but I know you can do it, I seem to remember it wasn't too difficult, I think it's in the basic site properties
Also @Leri if they are running on the same machine, you could just bind the back-end app to 127.0.0.1 and nothing else and it won't be accessible from the outside
 
xxx
Ok almost got it. This is the query
select group_concat(product,division) from pd where count(product)>1 group by division ;
the count(product)>1 throws error @DaveRandom
 
@DaveRandom Yep, that's pretty trivial.
@DaveRandom Not really possible, because part of site's app domain should be public.
 
@PeeHaa you just pocket dialled me I think
 
xxx
@DaveRandom you there ;)
 
1:13 PM
@xxx moment
select group_concat(division SEPARATOR ',') from pd group by product ;
@xxx does ^that do what you want?
Or do you want only the records where there is more than one?
 
xxx
this works
but
Only records that have duplicates
 
@xxx OK so what you need is a HAVING clause, which is something that it took me a long time to get my head around how it works, so in the interests of speed I'll give you this, but try and read the docs and figure out exactly what it's doing ;-)
 
xxx
Tried this too : select product,count(product),group_concat(product,division) from pd group by division having count(product)>1;
but no effect
ok sure @DaveRandom
 
SELECT product, count(product) as product_count, group_concat(division SEPARATOR ',') as divisions
FROM pd
GROUP BY product
    HAVING count(product) > 1;
 
xxx
I think I already tried this query . see my above message @DaveRandom
 
1:18 PM
Your group_concat is slightly wrong in your version
 
xxx
Ok But I wanted it like that. The concatenation to be Product1,Division1
 
@xxx example result set based on original example data please?
That might get nasty, tbh, might need a sub-query
 
xxx
I am trying to solve this question: stackoverflow.com/questions/27102945/…
 
@xxx Do you actually need the last two "results" (i.e. the empty ones)? Or are you just trying to get a list of products with duplicates?
 
xxx
I got it @DaveRandom . see this SELECT group_concat(product,' ',division SEPARATOR '\n') as divisions FROM pd GROUP BY product HAVING count(product) > 1;
I just wanted to get a list of products with duplicates?
 
xxx
@DaveRandom thanks a lot :)
 
ugh, sqlfiddle is so broken
just a moment @xxx
 
Corporate accounts payable, Nina speaking. Just a moment.
 
@xxx SELECT DISTINCT a.* FROM pd a INNER JOIN pd b ON a.product = b.product AND a.division <> b.division
^ that's what you want, I think
 
greetings, i ran an xss vulnerability test on one of my forms, the test resulted in a vulnerability cause by '=' sign on a text field . I was wondering how an unprotected '=' sign can be a vulnerability ? I understand that these ; \ / < > " ' are sources of vulnerabilities if not protected but the equal sign ??
 
@tereško You started commenting on this, would be great to see an answer from you on DAOs
 
Is it really just the =? @Joseph
 
MAHRNING
 
@Jimbo
 

« first day (1500 days earlier)      last day (3431 days later) »