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

8:06 PM
@DaveRandom oooooh shiny. kewl \o/
 
@ircmaxell cutpoints can be anywhere, because many bundles use events to build "hook" system. And it's not easy to use them, like #aop
am I the only one who thinks AOP is a bad joke?
 
@ircmaxell isn't AOP that spaghetti-code thing?
 
it's "intercept any function/method call in the system, and run code before/after it"
 
@ircmaxell Spaghetti-sandwich-oriented programming, then?
 
@ircmaxell No, it's not a bad joke - it's hilarious.
 
8:16 PM
 
@ircmaxell Noice fireworks
 
@ircmaxell AOP is useful for doing before/after type triggers in code you can't modify. You probably should only use this for things like counting the number of times a function is called, or logging certain things. Not production stuff.
 
@ircmaxell you cannot cure the stupid
you really shouldn't have opened that cann of worms
it's not worth the effort
 
well, many have taken the correct result from it
@ircmaxell #aop is just a tool for extend #oop, not to replace it. Like #DIC in #symfony
@LeviMorrison well, that's not the context we were discussing ;-)
 
as for AOP, it is not really a "practical pattern". Instead proper AOP is something you write your Doctor thesis about. Also, I have not heard about any language which lets you use AOP natively .. and in java you have to use some 3rd part framework for it
it has NOTHING to do with OOP ok, that's not entirely true
 
8:22 PM
@DaveRandom o.O
 
@tereško Well, pretty much every language "supports" it indirectly, it's just bytecode weaving.
 
... you know what I mean
 
also, if you haven't seen it before: youtube.com/watch?v=vPW7ZqtW5U4
 
@LeviMorrison If you are complaining about the cps, I don't like it either and I don't actually write code like that, it's just a convenient way to write the "example" (which is actually just the dev bugger-about-with-it script)
 
@DaveRandom This looks good: bitbucket.org/DaveRandom/pq-async/src/…
What if there aren't any results?
 
8:29 PM
@LeviMorrison You get a resultset.start immediately followed by a resultset.end - there are a bunch of events that the example doesn't handle explicitly, but if you run it you can see the full set (the * handlers are catch-all)
1 sec, I'll pastebin the output of the script on my system where those tables actually exist and have data in
 
@ircmaxell cool
 
@DaveRandom In any case, looks good.
 
makes you realize how primitive out "space tech" still is
 
The main computer in the command module occupies only one cubic foot.

While an automobile has less than 3,000 functional parts, the command module has more than 2,000,000 not counting wires and skeletal components.

The command module uses only about 2000 watts of electricity, similar to the amount required by an oven in an electric range.

The honeycomb aluminum used in Apollo's inner crew compartment is 40-percent stronger and 40-percent lighter than ordinary aluminum.

The tanks which hold the cryogenic (ultra-cold) liquid oxygen and liquid hydrogen on the Apollo spacecraft come close t
 
Has anyone here been in a situation where, you need to include global namespace 'use' statements in some places, but not in others?
I don't have 'use DateTime' specified in one file. works fine, using the timezone set in PHP.ini
in another file, I get a PHP error upon execution saying that DateTime isn't found. And what's even weirder, is that DateTime object uses UTC by default (ignores my PHP.ini)
strange
 
8:33 PM
\DateTime ?
 
I get a feeling that you do not fully understand how to use namespaces
 
pastebin.com/zQV8Rgeu @LeviMorrison - that's the exact output of that script on my system, just to show what events you get and what sequence they are in. There are a bunch of other events as well related to errors
 
please, please please always use UTC by default, never change that default
 
8:48 PM
yeah, but webserver and database should be configured to UTC, @NewToMS
 
@tereško I never do that and it always get me into trouble :P
 
Phew... grand jury decision in Ferguson shooting case going to be announced tonight. Expect chaos.
 
hi guys ..
 
@tereško I do though
for the most part? :p
 
well, to access php native classes , you do not need to import them
thus use DateTime; is a pointless statement
instead you should be writing $foo = new \DataTime;
.. or \PDO for that matter
 
9:19 PM
Morning
 
@tereško Any idea why a 'new DateTime()' statement works fine without the global namespace specifier? ()
'\'
 
because it is not in the scope
 
the file that's bitching about the \ not being present references the same autoload
 
use the syntax that you were advised to
 
oh
I'm foolish
the bootstrap file doesn't have a namespace set. doh
thanks for helping me figure that out
 
9:38 PM
What is this SOAP wankery? :-/
 
Hey, I have MYISAM table and i wrote a FULL-TEXT sql query.
When i execute this query, it takes almost `< 0.53 seconds `
But when i execture this php+mysql application, it takes `more than 1-2 minutes`

Note : I am not running any other sql query on this page.

Any Idea, why it's taking more time.
 
lol
 
0
Q: SQL query takes less time in MYSQL, take more in PHP application

RafeeI have MYISAM table and i wrote a FULL-TEXT sql query. When i execute this query, it takes almost < 0.53 seconds But when i execute this php+mysql application, it takes more than 1-2 minutes MyQuery select concat(first_name, ' ', last_name) as cand_full_name email from thesis MATCH (thesi...

 
good morning php
I seldom come here but I sincerely do not do so to be linked back to the questions on SO :p
 
@FélixGagnon-Grenier The ignore this user button is awesome.
 
9:51 PM
@FélixGagnon-Grenier Morning
 
why the fuck would any sane person be using MyISAM ?!
 
@tereško A person who doesn't care about his data?
 
Because innodb doesn't have full text search?
 
@tereško I still use MyISAM from time to time. But then again, I also am most definitely not sane
 
@ircmaxell care to give some examples of use-cases
I am now kinda curious
 
9:54 PM
@Danack it does now
>5.5
 
@tereško when I don't care about data, because it's a read-only DB (where I can trivially reconstruct the DB), I'll use MyISAM as it's approximately 3-4x faster at reads.
 
@tereško @PeeHaa I have lot huge chunk of data and i need very good search support for this.
 
@tereško I use it for my mailing thing (the queue)
 
Just spent a good few hours chasing down a rogue character in my DB causing an error. The character didn't even register as a character. It was hidden and occupied no space when I moved cursor left and right. wtf...
 
@ircmaxell wouldn't some cache system be even better ?
 
9:56 PM
@Fabor cough hexviewer cough
 
@tereško the use-cases I'm talking about wouldn't have been possible to cache effectively (the cache hit rate would have been nearly 0)
 
in-memory DB then ?
but, yeah , I see your point
 
@tereško data set was about 4TB. which was also why the cache hit rate was so low
 
@Fabor often the editor will not display the symbol, if the there is not character for it in the font
 
 
9:58 PM
in reality, it was a complex system with a tiered approach, where some of the data lived in sphinx, some in MyISAM, some in InnoDB, and some in flat-files
 
That little bastard
 
I'm not saying it was great, but it worked quite well
 
@tereško Usually there's a replacement one no? This had no replacement and took up no space. I only found it by copy and pasting my field in to notepad and it revealed itself.
BTW I was searching ~2,500 rows for that thing -_-
 
depends on the "editor" and the font ... some font use ▯ to fill out the missing symbols (and some editors compensate for those symbols)
some don't
 
Would there have been a good way to search for these via sql?
 
10:03 PM
@Fabor Related ;) jsbin.com/juqiwuzami/1
 
-_-
 
@AndreaFaulds -1
 
@AndreaFaulds I have a premonition that this is going to be controversial ;)
 
@ircmaxell That was quick :D
@NikiC Ditto.
 
10:04 PM
@PeeHaa Some editors show characters as hex if they're "weird" ones.
Super easy to detect wtf.
 
@webarto They do? Never seen that before. Nice feature though
 
Ah it does occupy a space! I can find the little shits.
 
I guess there are no problems with MVC. I'll delete my posts then... context
 
You can lead a horse to water but you can't make him drink.
 
@ircmaxell What do we keep telling you about reddit and your mental health? :)
 
10:15 PM
yeah, I know
 
I'll be in surgery in just under 12 hours :D
 
:-(
Good luck!
 
you tried to simplify
you failed =/
 
It's a good thing. Been waiting months, years almost for it. Finally going to put a metal rod through my shin! One step closer to Wolverine status.
 
Nothing other than I don't want the & turned into &amp; — Ryan 54 secs ago
O_o
 
10:23 PM
We can rebuild him! We have the technology.
 
I hate stupid questions without any clear goal
 
@Fabor actually we don't
it's about 20 years away
we will have self-driving cars before human augmentation
 
Okay, well I'll settle for a non-cracked shin.
No wi-fi in the hospital and I am in overnight. Prep'ing the iPad with entertainment.
 
:-)
 
there's always 4G
 
10:27 PM
@DaveRandom you rely on an ext? boo! I'm implementing the whole mysql protocol on top of just basic socket operations and amp!
 
I'm still on PAYG for my phone. Never been a big mobile data kind of guy. I think it's a good opportunity to read some books that are long overdue anyway.
 
@bwoebi knock yourself out, I plan to never use MySQL ever again if I can manage it ;-)
 
@Fabor best wishes
 
@DaveRandom My complaint is not about mysql, it's about using an ext. I might agree that mysql isn't the best rdbms, but it's still used.
 
There's no reason not to use an ext for something like this, if one is available that would do the job
tbh @bwoebi you'd be better fixing up mysqlnd so you can do proper async IMO
I concede that async MySQL support would be a very useful thing, even if I don't want to have to use it
 
10:33 PM
Cheers @RonniSkansing
 
@DaveRandom well, connection over mysql is no matter which API you use synchronous, which is a problem.
or do you mean the C code? … meh, more fun to write PHP, especially for such things.
 
@bwoebi Yes I meant the C code. I believe that would be the more useful thing to do, although I'm inclined to agree that a fresh impl in PHP will probably be a more pleasurable experience
 
that's my point.
 
G'night
 
10:57 PM
What the hell?
Am I going insane?
Rational, sane, considered discussion on internals...
Sara and Adam both had sensible, interesting responses...
WHAT IS HAPPENING??????
HELP
 
hihihihi
 
:D
Btw, I wouldn't go down the default_charset line
It sounds like a viper pit that won't actually be useful to anyone
 
Yeah, I'm not really a fan of that either.
 
Just like zend multibyte itself
we have theoretically have multibyte script support, it's just totally broken and nobody uses it.
 
@NikiC It's likely to cause problems, too, with people accidentally breaking their strings because their encoding is Latin-1
 
11:03 PM
@AndreaFaulds Uhm… I'm not seeing Adam's reply.
This worries me. A lot.
 
On 24 November 2014 at 14:21, Sara Golemon <pollita@php.net> wrote:
On Mon, Nov 24, 2014 at 2:09 PM, Andrea Faulds <ajf@ajf.me> wrote:
Here’s a new RFC: wiki.php.net/rfc/unicode_escape

I'm okay with producing UTF-8 even though our strings are technically
binary.  As you state, UTF-8 is the de-facto encoding, and recognizing
this is pretty reasonable.

I'm also OK with this, although I do wonder if we should be respecting
the user's default_charset setting instead. (Since default_charset
 
I've felt like PHP-Internals has been lower volume than normal but I know of at least one email that never did show up in my inbox or spam filter.
 
@NikiC You should say that on internals, actually. I'd feel awkward replying a second time ^^
 
Night all
 
Night @Fabor. Don't let them probe you!
 
Heavy breathing but I found more use from BitBucket (for personal stuff) ... maybe if company finances it.
 
11:55 PM
gn
 

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