« first day (1587 days earlier)      last day (3374 days later) » 

11:07 AM
@Fabor Only the fact that it was wednesday
 
@Alexander pong
 
@DaveRandom heh. Good enough
 
ThW
Morning
 
Morning
 
11:31 AM
@JoeWatkins I didn't see it clearly stated in the RFC, does the custom assertion for assert have to descend from AssertionException?
 
@SergeyTelshevsky trust me 5.2 is worse ^^
 
11:46 AM
@ShubhamNishad you could use Google/Facebook Authentication
 
@NikiC hello, we can start our discussion )
To anyone who interested in the Parser API RFC, here is a link wiki.php.net/rfc/parser-extension-api
 
2
Q: How to use array_filter() function recursively on a multi-dimensional array in order to remove the key-value pairs that contains null values?

user2839497There is one associative array titled $post_data. The actual array is very large. For your reference I'm just putting below two elements from it : Array ( [0] => Array ( [feed_id] => 1331 [app_id] => 0 [privacy] => 0 ...

I'm not able to get the answer posted for this question.
 
Hey @Alexander
@Alexander btw, I'm currently working on importing asts back into php. but still at the "assembling all the necessary metadata" point ^^
 
@NikiC great, what kind of metadata do you need?
 
@Alexander precise information about which node can contain which node at which position and which flags it can use in which combination :/
If nothing else, it will serve as good documentation for the AST structure ;)
 
11:52 AM
@NikiC yes, It's not so easy ) Because it require parse-level information about Grammar
 
exactly
so anyway, about the apis...
 
@NikiC I have a though about introducing interfaces for nodes. For example, ClassElementNode. And ClassNode will have a method add(ClassElementNode $node)
 
@Alexander it would be kind of nice to have individual node classes with names for the children (instead of indixes), but it makes the whole thing much more complicated, both from API and implementation perspective
 
@NikiC some languages provide single class for each type of node
 
it means instead of one or two classes you need two hundred
 
11:55 AM
yes
 
I think it may be hard to get two hundred new classes past dmitry ^^
 
Can this information be automatically generated from .y file? ))
 
nope, .y file is not really laid out to allow automatic extraction of info
 
It's pitty... However, what is your vision about node class? Should it be only one or one per each node kind?
 
If this should go into core I think it should be just one node class
well or maybe two, an extra one for declarations as they have a bit of extra info
 
11:59 AM
but then we will have an issue with AST validation, if we decide to implement NodeTransformers
 
validation at which point?
 
If PHP hook will change an AST and add "Statment Node" into the "Class node" directly.
Compiler can be very puzzled to see this node for class-level node.
 
separate node types won't help with validation when importing a userland ast - even with typehints and inheritance hierarchy you can't really trust what you're getting
it requires explicit validation (thus the metadata ^^)
 
Yeah... but maybe it's ok, just to throw CompilerException and finish execution?
 
@NikiC Is this something that can come later?
 
12:02 PM
<?php $email_attch=false; ?>
@if(condition)
    @foreach(condition)
        @if(!$email_attach)//I don't wy It's not working here
            do stuff
         @endif
     @endforeach
@endif
 
@Leigh it's probably something to be done in userland
 
Even better :)
 
@user2736704 Thanks for reminding me I hate template libraries
 
@user2736704 The PHP in that is fine. Problem is elsewhere.
 
@Leigh do you see any prob there?
@PeeHaa :/
 
12:04 PM
psst
"attach" has two "a"s in it
but the PHP is fine
 
@Alexander I think we had some disagreement about the use of functions ...
 
:/ :)
 
hey guys, does anyone here ver use dhtmlx scheduler? i´m havig trouble loading data from my database...i was wondering, is this possible:
$scheduler->render_sql("TipoQuarto","idTipoQuarto","Nome,Preco");
echo scheduler;
can i echo the variable scheduler to see if there is data inside it?
 
@Japa $scheduler ? (missing sigil), try var_dump($scheduler);
Glad to see the quality of SO has remained constant, last two issues in here have been typo's :D
 
@NikiC yes, this should be discussed. From my point of view, it's much easier to work with classes, because they provide logical unit, whereas functions is just mix of functionality. + class have good autocompletion for methods
 
12:07 PM
@Leigh instead of just doying the echo?
 
@Alexander well, functions have just as good autocomplete ;)
 
@Japa why don't you try it and find out
 
@Leigh lol you´re right, but it´s not working
i keep getting the same response: { "data":[]}
 
@NikiC but they can be imported by different names: use function Php\Ast\parse as foobar; foobar('Hello, WTF');
 
the reason I want to have functions that can work just on kinds (without instantiated node) is introspection/metadata. E.g. I'd like to do something like var_dump(array_map('php\ast\get_kind_name', ast\get_kinds())) to get a full list of kinds in human-readable format
@Alexander You can import classes by nonsentical names as well ^^ Ability to import is actually advantage of functions ;)
 
12:10 PM
@NikiC why do you need to call get_kind_name on integers?
 
@Alexander Not sure what you mean?
 
@NikiC this information is useless without node kind
 
@Alexander why? This just gives me an overview of all available kinds
if the extension exports the metadata I'm currently assembling, you could print not just the available kinds, but also what the subnodes are allowed to use etc
 
@NikiC this information can be stored as list of constants in the Php\Parser\Node class: var_dump((new ReflectionClass(Node::class))->getConstants()
@NikiC
 
@JoeWatkins I answered my own question. I see instanceof comparison with the AssertionException CE in the patch. I was hinging between yes and yes+custom, but with this restriction, I think custom is fine.
 
12:12 PM
@NikiC or just empty enumeration interface, like Php\Parser\KindList { const AST_XXX= 'AST_XXX'; }
 
so instead of having a simple array of available kinds we now need to use reflection?
 
@NikiC $kindName = KindList::AST_XXX; or (new ReflectionClass(KindList::class))->getConstants() to fetch all available names of all kinds
@NikiC I'm thinks about usage from userland. array is not friendly tool to work with such information, so I want to put this into classes. This keep a way for class extension for future needs
thinking
 
@Alexander Okay, so that gives you the names. What about other metadata?
Actually, arrays are the most friendly tool in PHP ^^
 
@NikiC @NikiC not sure )
@NikiC flags can be enumerated as constants too. Only the question with use_flags
 
@Alexander yes. use_flags and other things that may be added
like num_children or allowed_children etc
 
12:18 PM
@NikiC could you provide more examples?
@NikiC this information should be stored in the concrete node class for better design...
 
@Alexander in which case you will only be able to access it if you already have a syntax tree
 
Jay
hey
ping pong
Can anyone answer me why I am getting an error with this code.
db_update('file_managed')
            ->fields(array(
              'uri' => $new_file
            ))
            ->condition('filename', $image_id, '=')
            ->execute();
 
@NikiC no this is not needed. Create (or take existing) parent node, ask for max children and add several children nodes.
 
Jay
Its Drupal
 
1. eww drupal
2. what is the error?
3. method chaining does not exactly make debugging easier...
 
Jay
12:23 PM
just says: The website encountered an unexpected error. Please try again later.
 
@Alexander sounds like very roundabout way, just to avoid exposing functions ;)
 
@NikiC this information is only relevant for concrete node, I can't imagine the situation, when I want to ask how many children can have a node with kind=123
 
Jay
Even when I tried this as a test it still gives that error
db_query("UPDATE file_managed SET uri = '".$new_file."' WHERE filename = '".$image_id."'");
 
@Alexander Can you think of a situation when you need a list of all token types PHP supports?
 
@NikiC can you give an examples with functions how this metadata will be accessed&
 
12:25 PM
@Jay why don't you configure your error reporting properly?
 
Jay
@Patrick please advise how this is done
@p
I got it mate thanks
 
@NikiC yes, (new ReflectionClass(KindList::class))->getConstants()
 
@Alexander I'm just asking whether there's a situation where that would be useful (and referring to token types here, not ast kinds)
 
@NikiC not sure that I understand correctly what you are referring to
 
Okay, let me give you a simple example ... I want to export the AST into XML and want to create an DTD schema that specifies how the result should look like and validates that it is correct. If I have the metadata available I can simply generate the DTD file. Well, "simple" as far as anything involving XML is simple ;)
And very generally, this is a design concern. Basically you are saying that in order to get information about the TYPE you require an instance of that type. This is classic violation of object oriented principles, as you are asking for things that you do not actually depend on.
It's like passing in a service locator because you need something that's stored in it
Of course here, much less of an issue ;)
 
12:32 PM
@NikiC I'm affraid, that without concrete classes for each node type this will be impossible ( Or DTD just will check that Node can have som attrs and node can have nested nodes.
 
@Alexander Storing it in one class in PHP does not prevent you to generate different XML node types based on the kind name
 
@NikiC so we are here to find the best way ) discussion is a good way to choose best decision
 
@Alexander Of course you are totally right in saying "Who the f* wants to use XML?" and dismiss the use case :)
 
/**
* @notauthor Marcel Burkhard
*/
I just found that in some ugly legacy code that I had previously touched ^^ like a year ago or so
 
@NikiC what If we extract all this metadata (meat-data :) ) into the one class? Maybe with public static properties or even array constants
 
12:36 PM
lol
 
laravel.io/bin/yGKRm when tried to echo the statement prints 1 inside foreach
 
@NikiC yes )) But validation of XML with DTD is a very clever thing, Symfony uses XML a lot for services definition.
 
ouch laravel is really ugly: laravel-recipes.com/recipes/256/…
 
@Alexander Yeah ... not a fan personally ^^
 
12:40 PM
@MarcelBurkhard it's scope issue or may be something else..
 
@NikiC I like the last sentence in this post: "But it’s just a thought ;) Maybe I got it all wrong." ))
 
@Alexander :D
@Alexander One part I certainly don't have wrong is that anything that contains the word "static" is a code smell. That's conventional wisdom around these parts :P
I've been slowly migrating away from static methods and properties
 
@NikiC Static methods almost equal to functions ) You should like them
 
So, this is it
2
 
@Alexander Depends. Either they are like functions (in which case they should be functions, not static methods) or they are an artifact of class-oriented design (in which case they should be eradicated)
@AlmaDo Crap, I got an error downloading the internet
 
12:49 PM
@NikiC class is just a good entry point for concrete API. I chose a static methods, because parser doesn't have a state to store between consequent parses , so no instances. Etensions are per single instance too, so static methods and properties IMO good way to represent this behavior. What should I do to convince you to choose Php\Parser\Engine class instead of list of functions?
 
@AlmaDo @NikiC strongly suggest you to watch this episode of IT Crowd about the internet
 
Good morning
 
@Alexander I don't think you can convince me of that. If it has state, I'd totally approve of using a class for it. However if you're just using static methods as means of namespacing, I don't see the point. The only thing it does is hurt importability. For the extensions I'd probably go with instances.
 
@ircmaxell Good morning
 
Is it even possible to put static methods in an interface?
 
12:53 PM
@NikiC what about future use of extensions? It's a state
 
hi
 
@NikiC yes, sure
 
anybody know how to make a curl request using command line
for posting json data as well as a file
?
 
@sharath google knows
 
@Patrick i tried a lot
 
12:54 PM
 
i am not sure weather its my requests problem
 
@sharath what have you tried? what errors did you get?
 
Literally the first result has your answer when I searched "how to make a curl request using command line"
 
@ircmaxell morning
@Alexander k
@Alexander not sure what you mean there
 
@Patrick curl -X POST -H "X-Parse-Application-Id: sdgfsdfgsdfgsdfgsdfgsdg" -H "X-Parse-REST-API-Key: sdfgsdfgsdfgsdfgsdfgsdfgsdfgsdfgsdg" -d '{"username":"aaaaaaaa","email":"aaaaaaaaa@gmail.com","password":"123"}' --data "image:@/home/user/Pictures/gravatar.jpg" api.parse.com/1/functions/signUpUser
@Fabor this is my curl request
 
12:57 PM
Hi is anyone here familiar with zend in particular the zend 2 blog tutorial ?
 
@NikiC Parser::registerExtension($myExtension1); Parser::registerExtension($myExtension2); Parser::parse(file_get_contents(_FILE_));
 
@Patrick any hope for me?
 
@Alexander yes, what about it?
 
@NikiC I mean, that Parser has a state (list of registered extension that can affect parsing)
@NikiC and you wrote "If it has state, I'd totally approve of using a class for it."
 
@NikiC I know. Internet here sucks ..
 
1:02 PM
@Alexander I was referring to Engine there
 
I wonder how many people are going to ignore my ask on that thread this morning...
 
@NikiC Php\Parser\Engine
 
wait, I'm a bit confused now
 
@ircmaxell ??????
 
The parse method is on Engine ... but the register etc methods are also there?
in the RFC this class is declared twice
 
1:03 PM
@NikiC yes, sure
@NikiC just two parts of RFC, because I have no hope to move it entirely for 7.0 )
 
@sharath sorry, that was accidental
@PeeHaa can you give me a technical justification for it?
 
@Alexander sounds like SRP violation
 
Without me diving in, does anyone know if "literal string" . "literal string" is automatically optimised into a single string
 
@Leigh with opcache or php 7 yes
 
@NikiC no, this functionality is related to the one domain: parser. No better place where parser extension can be registered. No SRP violation
 
1:08 PM
@Alexander One of them is about parsing code, the other one manages registered compiler extensions.
 
@NikiC compiler extensions will affect parsing of code, so they affect on Php\Parser\Engine::parse() method.
 
@Alexander huh they do?
Extensions will affect output of ::parse()?
 
@NikiC yes, this should be the same result as if parser invoke extension for simple "include/require/eval". No difference. So parser extension can transform an AST, affecting output of of Php\Parser\Engine::parse() too.
 
@NikiC Nice, trying to think of little things I can work on :)
 
Regarding Andrea's scala type hints, does anyone know what will happen if I, being in weak mode, will pass a string variable to a function with this kind of signature: function(int &$arg) ?
 
1:18 PM
@Alexander I don't think making parse() subject to extensions is a good idea, but if that's how it worked, then it would make sense to make the parser an instance with methods, yes
@nikita2206 the variable will become an int (including your reference)
 
Ok, I would say that could be listed as a weakness of coercive typing
 
@ircmaxell Not so much technical as a usability justification. People use (and are used to) boolean and integer. Also it is more in line with casting rules making it less confusing to people where you can and where you cannot use integer / boolean
TL;DR imho it is saner to have both casting as well as hinting use the same rules as to what is allowed instead of making up new rules
 
@PeeHaa real $a
 
Can't remember if it's okay or not to have URLs with id's in if they're for DELETE requests
 
@Alexander It would be good to have an option about whether ast_hook runs after parsing or not
 
1:23 PM
@NikiC Arguably that should also be allowed for this RFC and should be deprcated in a "follow up" rfc
 
@PeeHaa arguably it should not be allowed for this RFC and the cast syntax deprecated in a follow up RFC ;)
(together with the most useful unset cast)
 
@NikiC Assuming you are talking about real I could totally live with that :)
 
well, that's done
I guess you can call that "shots fired"
 
@NikiC great! so, class Php\Parser\Engine is accepted? I'm correct?
 
1:27 PM
@Alexander you missed the first part of the sentence ^^
 
@NikiC maybe, standard "prepend/append"?
@NikiC ) ah, you noticed this ))
 
> Bacon^WBenefits
(the last RFC)
uh, not sure if it should be shown?
@ircmaxell shots totally fired :-)
 
I slept on it, and it made me more pissed-off
 
@ircmaxell uh-oh
@Alexander I'll have to think about the whole thing a bit
 
I somewhat pictured @ircmaxell wearing hit batman mask as he wrote that email.
 
1:31 PM
@BatProgrammer, Gotham
3 tweets, 11 followers, following 3 users
 
@ircmaxell this should be happen...and will happen later. It can be finished only if vote karma will be revoked from some core developers with their access to the git repo.
 
:D
 
@Alexander that sounds a bit too much, unless they do some other stupid politics
 
@NikiC ok, feel free to ping me if needed. I will update the RFC after we discuss all the things.
 
@nikita2206 IMHO telling other contributors to not contribute in private because they have a "better idea" is stupid enough politics
 
1:35 PM
@nikita2206 I can remember some cases, when political games in internals result in quitting of good people from the community.
 
@ircmaxell I guess yeah, you are right... but I don't think anything apart from public boo-ing and blaming will happen. But actually I would support taking voting rights from Zeev
 
@user2839497 where do you stuck?
 
I don't really care about taking away voting rights from anyone. I just want the community to know what's happening under their noses...
 
> For the rest, Lester summarized quite well my view about designing PHP -- hehe, I like this. If Lester summarizes your view about PHP then something is wrong here...
 
Morning
 
1:41 PM
personally I gave up on reading the threads between zeev/lester/francois...
 
BTW if I make an RFC this weekend am I still gonna fit in the feature freeze timeframe?
 
lots of mails are sent...
 
@FlorianMargaine I followed someones advice on here just not to read Lester's emails... Working alright so far
 
so the whisper campaign against scalars continues, hmm?
 
but with what francois said you have to read them now...
 
1:43 PM
@nikita2206 likely not, 2 weeks of discussion and 2 weeks of vote? too long. Unless it's simple enough to go in with 1 week of discussion
 
Ah okay, it's not simple but neither it's urgent
 
It could be worse. It could be VB.
 
hehehe
@DaveRandom or COBOL
 
I've never had that particular displeasure, I think I'm too young
 
there's still a lot of it out there
a buddy of mine graduated about 5 years ago, and started doing Cobol...
 
1:54 PM
Where? What do they use it for?
 
Pretty much anything legacy. Some power plants, military, etc
 
> Please stop this. I have been in touch with Sara, yes, but it was absolutely and 100% polite, which I'm sure she'll confirm if you ask her. I can't speak for François as I wasn't a part of whatever correspondence they had between them. And no, quoting someone else instead of you making that statement and doesn't make it any better.
 
You can still make quite a living programming in otherwise dead languages
 
13 hours ago, by ircmaxell
8 hours ago, by Sara
In other news, Ze'ev and François have not-so-politely asked me to not put 0.4 forward since they have something they believe they have consensus on.
those 2 things seem to oppose each other, no?
 
@ircmaxell ask @Sara if you can confirm this ^...
 
1:57 PM
I don't want her to have to take sides
or let me put it differently: forcing her to be put in the middle is not something constructive...
 
yeah. But Zeev is saying you lied, basically.
I understand your position, though.
 
wouldn't that be up to her?
 
I'm replying
 
Arg… things get political again :s
 
yup
but I branched it into a new thread, so with any luck the proposal can stay "unharmed"
 
2:06 PM
I just tried to imagine when two different proposals about the same thing were successful at the same time… lol.
 
> v0.5, on the
other hand, is, for the most part, v0.3 with opinionated, discussionless
explanations of why it's absolutely fine to keep as-is.
Ha! I lolled
Oh wait. I mistyped cried
 
It's the same when it's really funny
 
@bwoebi in which case we can have a vote to choose between them
@PeeHaa "discussionless". It says why directly in the RFC. And I explicitly said, if you disagree with the rationale the RFC uses, please, let's discuss that.
 
@ircmaxell which end with exactly same results on both sides? =P
@ircmaxell hehe
 
1 message moved to Orphan GIFs
:-P
 
2:10 PM
@ircmaxell Yeah that is really full retard imo
 
@PeeHaa I won't point that out tho. IMHO it's useless to continue that line of discussion.
 
Yeah agreed. Still we are allowed to think "WTF dude..."
 
@PeeHaa you're free to point it out :-P
 
Hey, I have a problem with Cloudfront, it's sending an Accept-Ranges: bytes header but refuses to honor my Range header
 
beat it with a stick
 
2:12 PM
 
wait a second, did I miss something?
 
Anyone have experience with that?
 
@ircmaxell :-)
 
@Andrea yes, yes you did
 
I was like, alright, Anthony revived STH
but... wait, Anthony?!
 
You're back on internals?!
 
@Andrea I decided I'm not going to sit back and let strongarming continue
 
Ah.
 
chat.stackoverflow.com/rooms/61037/orphan-gifs <- holy moly this is the best room ever
that is the best room ever
 
@Andrea for this proposal only. If things go well, I may consider staying. If they don't, it'll be it...
 
2:13 PM
@tereško interestingly enough, I'm forced into mortals time-schedules as of lately :X
 
and by go well, I don't mean "my RFC passes"
 
Alright
 
I preferred the ameba sleep schedules
 
@AustinBurk That room crashes ever computer I have ever used
 
@DaveRandom Are you using a terrible browser like Chrome?
 
2:14 PM
I will hunt you down and kill you, don't think I won't
:-P
 
no problems here in Firefox
 
I had some luck with it. I've scrolled through twenty GIFs so far.
 
Chrome users
 
So we have to thank @Andrea for leaving to have led @ircmaxell to go back to internals? :-D
7
 
.<. I'm using Chrome
 
2:16 PM
@AustinBurk wait... you have 2GB of RAM?
I have 8 and I think I need the double...
 
oh wow
Chrome becomes instantly unresponsive
What an awful browser.
 
@FlorianMargaine I will say that I'm using VMWare View Horizons.
 
A bit like loading the coding love.
I have no idea why they don't convert all the incoming gifs
 
@FlorianMargaine The only system on which I think I have enough RAM is my iMac with 32 GB…
even 16 aren't enough…
 
@m6w6 Your output buffering RFC could really do with an example of how it would be useful - aka what scenario people have encountered that needs it. I think I can imagine one....but it should be in the RFC imo.
 
2:19 PM
    complicated issue
    $pagination=$this->user->with(array('emails'=>function($query) use ($user){
    			$query->where('users_email.sender_UID','=',$user->Id);
    			$query->paginate(10);
    		}))->get();
 I want to use pagination function over collection but that's not working..!
$pagination->getTotal();
blah blah function
 
It's like a test of strength. Whose computer can handle the most GIFs?
 
@bwoebi I can believe that.
 
GIF is a great file format, it's just abused for something it does not work well for
 
I like how the chats have a little memory management built in themselves, the images disappear when I switch away from the tab
 
It's designed for pixel art and such, hand-drawn things. They compress well. And so when extending it for animation, it worked well for little pixel art animations
But now people are trying to stuff multi-second 24fps full colour video into GIFs
It's a miracle it works at all
 
2:21 PM
I've seen some amazing 720p smooth gifs tbf
fast loading and all
 
@user2736704 "it's not working" is really helpful
 
@Patrick WYM?
 
Alternatively there's always webm... Example
w/ sound.
 
I have hundreds of thousands of large GIFs on the site
I still haven't figured out how to get sox to mix in sound at exactly the right spot yet though, or truncate it to the proper length
 
@ircmaxell your list of arguments aginst the new syntaxes for declaring strict types is very good. you might want to update the RFC with it (if you havent already)
 
2:24 PM
@bwoebi don't thank me/her yet...
@beberlei yeah, I will when I get some time
 
http://www.sudomemo.net/watch/DE7542_0E060E874E52F_106

(This one is excellent).

But the audio loads way quicker than the GIF most of the time
 
Anyone used Symfony 'voters' before?
 
@Danack e.g. caching away dynamically created images
 
seeya later, I'm going to figure out why Amazon Cloudfront isn't doing the right thing
 
I'll try to put something up
 
2:26 PM
Seriously though. The webm format is awesome. Another example warning. FMA - Brotherhood spoilers.
 
@ircmaxell I hope you get that I didn't mean that seriously. It's nothing I thank @Andrea for. I only can thank her for caring about herself. That you came in now is just a coincidence.
 
@bwoebi not how I meant it
I meant it more as a joke that I may be making things worse :-P
 
hmm?
ah okay :-P
But I seriously doubt that you will make these things worse
 
I don't know, I may wind up burning the whole thing down by accident :-X
 
user895378
morning
 
2:32 PM
moin
 
@m6w6 That's what I imagined. The obvious (slightly stupid) thing people might say is that "image processing shouldn't be done in a HTTP request; it should be done by a background task". It might be worth saying something like "You can't predict which functions that need their output caching are going to take a long time to process, so you can't always predict which ones should be moved to a background worker".
 
@Danack I have a cron job that runs every few minutes in the background that runs conversions for my site, it just marks it as converted = true before it shows up on the website
 
		$pagination=$this->user->with(array('emails'=>function($query) use ($user){
			$query->where('users_email.sender_UID','=',$user->Id);

		}))->paginate(20);
filepicker.io/api/file/oCFXF3m5TYqYumWMx7nD
 
@AustinBurk context
@user2736704 Have you tried debugging it?
 
@Danack sudomemo.net I extract all the frames from Flipnote animations then put them together in a GIF.
 
2:39 PM
Hello fellow ponies)
 
@Danack I debugged it but that's also returning 2 for the getTotal
 
Have any of you guys ever used htis:
PHP 5 onJRE
 
which minor version of php5?
php 5.1 and 5.6 are very different...
 
Jay
whats a quick solution to remove duplicate ID's in a database table?
 
What are you using for your primary key?
You can set a column to UNIQUE when you make the table in the first place
 
2:43 PM
looks like they are pretty selective in terms of features
 
Jay
fid int(10) UNSIGNED No None AUTO_INCREMENT
 
but they do have namespaces
 
@Jay you need something unique in your table, otherwise you are out of luck and have to do it manually.
 
@Danack there we go ....!select email.*, users_email.Uid as pivot_Uid, users_email.email_id as pivot_email_id, users_email.sender_UID as pivot_sender_UID from email inner join users_email on email.Id = users_email.email_id where users_email.Uid in (?, ?) and users_email.sender_UID = ? 78,79 and 78
 
@user2736704 I don't care. This is a problem that is best solved by sitting down with your debugger, stepping through the code and finding out where your code is behaving differently to what you expect.
 
2:45 PM
@Jay to find the dupliates SELECT id FROM table GROUP BY id HAVING count(id) > 1; - depending on size thit takes long
 
"there we go ..." No one asked for a code dump.
 
@JoeWatkins What's the advantage of option 0 for the expectation switch? Generating code but jumping around it?
 
Jay
@beberlei will give it a go
@beberlei so that will bring back the dups and its ok to dfelete them?
 
@Jay that brings all ids back that are duplicates, you have to manually decide which ones to delete.
@Jay deleting them with WHERE id = ? will also delete the original. so thats not possible
 
I don't get why Pierre hijacks that internals thread :x
 
Rao
2:55 PM
How do I pass the param to my function in this statement? `call_user_func([ucfirst($matches[0]), 'find'])`
 
@bwoebi Pierre is the guy developing Pickle in 'secret' right?
 
@Danack I have no goddamn idea what pickle is except that it has something to do with replacing pecl??
 
user895378
The ECMAScript spec is totally foobar. You can't view it in HTML. You have no choice but to download a ~15mb PDF or word document. Welcome to the 1990s, JavaScript.
 
@Danack secret? look for FriendsOfPHP on github...
 
Yes.......which probably ought to have a few more people looking at it...
 

« first day (1587 days earlier)      last day (3374 days later) »