« first day (1949 days earlier)      last day (3224 days later) » 

00:05
/me thinks about making something like this
I would prefer a tiny lizard instead ... while one of my dorm-mates had a pet cockroach, I still see them a slightly disgusting
It's not easy being green.
lol
but lizards are.. cute
well .. then remote-controlled fly
but that won't work
it needs to be big enough
00:08
yeah
Dinoponera is a strictly South American genus of ant in the subfamily Ponerinae, commonly called tocandiras or giant Amazonian ants. These ants are generally less well known than Paraponera clavata, the bullet ant, yet Dinoponera females may surpass 3–4 cm (1.2–1.6 in) in total body length, making them among the largest ants in the world. == Species == Dinoponera australis Emery, 1901 Dinoponera hispida Lenhart, Dash & Mackay, 2013 Dinoponera gigantea Perty, 1833 Dinoponera longipes Emery, 1901 Dinoponera lucida Emery, 1901 Dinoponera mutica Emery, 1901 Dinoponera quadriceps Kempf, 1971 Dinoponera...
this might do
huh and it's almost here
also, from experience with dorm-mate's cockroach - they really don't work well in heat .. it died from cooking itself in the sun on a window sill
heh
my first quest would be teaching my dog not to eat it
we have opossums here, like these
you probably should buy them in bulk
=)
@Ekin those look like tiny dropbears
00:17
hehe indeed, they're so cute but they fear terribly from hoomans
I tried to feed a baby one and it was shaking so badly
@bwoebi Pulled and built with your patch. Fixes the bug I submitted, but I still get Uncaught Error: Cannot yield from finally in a force-closed generator even though the generator is not in a finally block. I still haven't been able to make a small test case, but it cites this line: github.com/icicleio/http/blob/v0.3.x/src/Server/Internal/…, however the generator is actually within another generator on line 242. Maybe something to do with nested finally blocks?
@Trowski there is no yield at all on that line? o_O
oh, the yield log()
It's a very long 'line'.
Right
... and now the sound is gone
00:32
@bwoebi I'm actually seeing the same error in 5.6 and 7.
@Trowski ah okay … well, then it's unrelated to yield from
@bwoebi Yeah, this happens with the 5.x version of Icicle. I haven't tried it with the 7-only version.
Hmm... appears not to happen there.
Though I'm not testing the exact scenario because I haven't written a 7-only version of the package I'm testing.
@Trowski can you please tell me where exactly the last line of code is actually executed? (before the bad finally-jump?)
You have no idea how hard that question actually is...
@Trowski why? pro-tip: use phpdbg -O oplog -qrr yourscript.php
(I hope you have a SSD :-D)
this will log all the opcodes into a file you can "easily" search
00:45
I haven't used phpdbg much. I'll try that. Should be interesting.
Then there's a JMP instruction, followed by an ASSERT_CHECK.
Not sure what you need to be helpful...
I meant before the finally
Particular opcode I'm looking for?
yield ^^
So the last yield before it starts executing any finally?
01:01
nah, in that function.
Oh, you just wanted in that function, that's easy: github.com/icicleio/http/blob/v0.3.x/src/Server/Internal/…
thanks
At least I got to learn some more about phpdbg along the way :-D
:-)
I see where the issue is
I really need to take the time to learn more about internals... just too much other stuff I have on my plate.
01:08
@bwoebi Can you tell me why the 2nd insert is not inserting please? pastebin.com/9pzGSLa8
it's doing a fast-ret and then going to a catch
normally FAST_RET returns to a final sequence with a RETURN, but in case it is inside a try/catch, it goes to the first catch instead
and as there is no exception, it successfully continues its path through the finally to the end of the function
there might be an easy fix, need to check…
@bwoebi what would it be?
wasn't replying to you, but to @Trowski
@treblaluch wtf. Seriously. Why is your code indentation so messed up?
@treblaluch and I can't tell without knowing what $this->db->insert() exactly does… also please don't ping random people. (not going to look at it now)
01:13
also, you probably should use gist.github.com for posting code fragments
bob$ ~/php-src-X/sapi/cli/php -r '(function() { try { try { yield; } finally { print "INNER\n"; } } catch (Exception $e) { } finally { print "OUTER\n"; } print "NOTREACHED\n"; })()->current();'
INNER
INNER
OUTER

Fatal error: Uncaught Error: Cannot yield from finally in a force-closed generator in Command line code:1
Stack trace:
#0 Command line code(1): {closure}()
#1 {main}
  thrown in Command line code on line 1
@Trowski ^ repro case ;-)
wtf is it printing "inner" twice
and whut is that yield …
@tereško was gonna arrange it later cause i was searching for solutions
@bwoebi ok sorry..
if your code is all messed up, it is a lot harder to comprehend it
besides, majority of programming editors provide very good assistance for code indentation
what are you using to write that gibberish?
notepad++ :D
https://gist.github.com/anonymous/62d725f62d10a5348aee here can u take a look?
It's going directly from the catch to the yield again … whut?!
01:23
@bwoebi Really? I'm getting:
INNER
OUTER
NOTREACHED
with PHP 7?
Yes.
also with master?
Yep.
well, both is bad ^^
01:24
Right, but at least mine makes sense with the error I'm seeing.
@Trowski well, I'm getting yours only with 5.6 and 7, with master I get the above
@treblaluch this is how it should have looked: gist.github.com/teresko/2b199b9ae22a2a3526e1 .. also, you should probably try sublimetext.com/3dev or atom.io instead
but this is just due to some fixes in 7.1 …
@tereško OCD :|
@bwoebi Oops, my bad, I wasn't on master, but PHP-7.0
01:27
;-)
@iroegbu no. I have had to work with one "senior developer" who had never learned how to do proper code indentation
Now you have two things to fix :-D
it was a FUCKING NIGHTMARE
@Trowski no, same bug, different effect
proper indentation makes things a lot easier...
It's blissful reading Python
01:28
@tereško couldn't you just auto-reindent everything?
@iroegbu I prefer properly indented C code to Python…
@bwoebi oh, I did. But it was all fucked up whenever he touched the file again
@bwoebi well, you can't not properly indent Python...
@tereško downloading sublime. hmm but what could be wrong why is the 2nd insert not executing?
@iroegbu oh you can, but it's harder to unintentionally do that
@treblaluch as for your issue: did you check if the code even enters the if($_POST['hw_type'] == 'RAM' || $_POST['hw_type'] == 'Graphics Card') { block ?
maybe that condition is false
01:31
@bwoebi why will someone go the extra mile to make a mess?
also, this part is completely pointless:
}else{
    return $query;
}
the reason in master is a optimization … so actually it's two things :-D
@tereško i just use redirect to check if it executes and it did.
do you get any SQL errors?
01:46
@tereško i used ajax in calling the controller for submission so kinda hard to display the error. but in the console it says internal server error 500
that wasn't what I asked
@treblaluch check your error logs
@treblaluch there should be a mysql error visible
@tereško no i did not get any mysql error
of course you are using mysqli_error() function completely from
your $query1 variable in case of error probably contains null or false (judging by the if-condition there) ... which is definetly not an expected parameter for mysqli_error()
@Andrea first thought: "do these people get some special secret training by monks to learn how to make posts look extra-ugly?"
Bah, I know again why debugging FAST_CALL+FAST_RET is so much fun.
@tereško changed it to $mysqli->error($query1); still nothing
@treblaluch what's inside $query1?
and did you even call the query using that particular $mysqli object?
I am starting to think, that what you need is finding a good book, because you don't understand ... well .. a lot of things
@Trowski I think I'm going to defer that to Nikita … there is the following edge case…
(function() {
        try {
                try {
                        yield;
                } finally {
                        print "INNER\n";
                        throw new Exception;
                }
        } catch (Exception $e) {
                print "EX\n";
        }
        print "NOTREACHED\n";
})()->current();
note the Exception is thrown...
caught and then it continues as if nothing special happened
02:09
@Danack I just got bitten by the fact that the github API doesn't return emails as part of the user. 3 hrs wasted re-writing half of my value object usages -.-
02:21
@tereško I'm using CodeIgniter so I don't know much in manually executing MySQLi.
@NikiC FAST_CALL and FAST_RET fun, just for you! bugs.php.net/bug.php?id=71604 \cc @Trowski
@treblaluch CodeIgniter comes with its owner DB access abstraction layer. Why are you not using it then?
26
Q: CodeIgniter - how to catch DB errors?

StackOverflowNewbieIs there a way to make CI throw an exception when it encounters a DB error instead of displaying a message like: A Database Error Occurred Error Number: 1054 Unknown column 'foo' in 'where clause' SELECT * FROM (`FooBar`) WHERE `foo` = '1' NOTE: I only want this to happen in one controller. I...

@NikiC possibly we might want to first do a partial bug fix (first case, simple finally nesting) and fix the second case with the exception later? :-/
@tereško I don't know why its not inserting in the database. And the error also is not displayed with $this-db->error();
02:53
0
Q: SQLSTATE[HY093]: All parameters are filled properly and the syntax is right, so what's wrong?

DemCodeLinesI am getting the following error and I can't figure out just why: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in Here's the code: $transactions_sql = "INSERT INTO transactions (usr, service, txn_id, orig_amount, currency, date, descripti...

Found the problem, the values in $_POST['memory_type'] & $_POST['memory_size'] is empty.
@bwoebi So in that scenario, the exception should be thrown where the generator is destroyed?
Throwing from finally is weird...
In that case the coder probably assumed the exception would always be caught, but not so.
03:14
@Trowski it is, but a called function might throw
putting a throw directly into it is indeed weird^^
weird how no one answered my question. About a year ago, PHP and JS answers were the quickest to be answered. I guess no longer, huh?
 
3 hours later…
user924016
Mornings
morning
imgur not working
user image
3
one day old kittehs ...
morning, room
@JoeWatkins cuteness overflow!
06:59
do you consider wordpress as an option for a professional website?
@SergeyTelshevsky :)
@JoeWatkins looks like you can place all 4 of them in your palm?
probably, I don't like to handle them until they are a few days old though ...
bones are still soft, and I'm not the most gentle of people ...
lucky to get close enough for a picture without upsetting mother ... she wouldn't be happy if I tried to handle them yet, I'm sure of it ...
user924016
@JoeWatkins =)
afk take misses to work
07:14
question related to database if any one could help me
designing database structure for stock management with maintaining history of each date
posted on February 16, 2016 by nlecointre

/* by eXes */

want report that on which day how much stock was?
08:02
lol
08:23
Morning
Wes
Wes
mornings
08:43
You could try asking people for their experiences with PHP frameworks in the PHP chatroom. — Oldskool 1 min ago
-4
Q: Need advise for Phalcon PHP framwork

ShailI am starting a very big project with phalcon php framework. Project will have millions of entries daily and if it grow then it will have millions of users daily. It's like classified website. So is phalcon best framework to use for such requirement? I don't need feature rich framework but my ...

^ "which framework is the best?" is the sign of an upcomming war :P
@HamZa Haha, well I tend not to make a war of it, just speak out my personal preference ;-)
user924016
Wordpress is the best framework for php
@RonniSkansing LOL
user924016
08:44
=p
@Shail depending on the requirements you might drop PHP as a whole and use another stack :P
Seems like I will not get any real reply on stack. Thanks any way. :)
@Shail As for your question, popular frameworks for large projects nowadays are frameworks like Laravel and Symfony. They've proven to be flexible and stable over the last couple of years.
Don't know of much large projects that run on Phalcon to be honest.
Doesn't mean it's not good, but might be worth reconsidering ;-)
@Shail CHoosing a framework is not like choosing a menu in a restaurant for a night. You need to provide much more information than "big project"
@Oldskool I have already consider laravel and found phalcon faster in performance. Thats why only asking for phalcon. Because I have never used phalcon so don't know much about its future and community.
@HamZa Its like classifief website similar like uber.com .
08:50
@Shail I think that in terms of community, Laravel has a larger community/userbase. So it might be easier to get support on it from the community. This also translates to SO: tag:laravel has 32,843 questions. While tag:phalcon only has 1,156.
also: you better know how to debug in C.
(because yes, you will end up finding bugs in the framework.)
@FlorianMargaine Yes thats correct. Phalcon is based on C so if there is some bug then need to wait until next release or I will doing debug in C. :)
@Shail that's not something you should underestimate. Being able to easily debug your whole stack is very important.
> Project will have millions of entries daily and if it grow then it will have millions of users daily
exagerate much @Shail ?
@Shail that website looks simple, laravel with elasticsearch would be ok (from my point of view), assuming that you reach your dream userbase population you probably have the budget to develop it further.
08:57
@GeoPhoenix Yes we have everything. Best server (using redhat with amazon), budget etc.
@FélixGagnon-Grenier I am not saying it will 100% grow. My main concern is website should handle this type of situations.
Morning, 11!
user924016
o/
@Sean \o
Hope you're well ^^
09:20
Am I missing something? Why is there support for {} only on strings and [] only on arrays. Is there some virulent strain of neurosyphilis doing the rounds on internals?
Because PHP :P
@Leigh uh?
what's wrong with [] on strings?
also: way to break everyone's code...
I was hoping for packets of monosodium glutamate
@HamZa yes?
@FlorianMargaine it wasn't directed at you.
@HamZa it wasn't directed at anyone, you just threw the link in the room
@FlorianMargaine correct
09:39
also: it's a public room, expect everyone to react
so... what about msgpack?
did you just find out about it?
it's pretty good
I just stumbled on it while reading about SALT stack. Seems pretty awesome
at work we halved perf by going from json (de)serialization to msgpack
in python though, so it may be that python's json sucks
haha
Wes
Wes
@Leigh ?
Wes
Wes
09:50
{} sux
hi im trying to publish config from vendor in laravel 5 using this command sudo php artisan vendor:publish --provider="Kordy\Ticketit\TicketitServiceProvider" --tag="config" and its gives that error : nothing to publish for tag [config]
@Ocramius That is one of the reasons why the last commit message for me is 9 months after writing the code and is "I forgot to check in before losing hope."
o/ 11 !
@ELOISSIFIAhmed config:clear and retry php artisan vendor:publish
10:06
fixed
@Duikboot routes doesnt work
-17
Q: Android: Failed to allocate a 13398966 byte allocation

Vineeth S Thadathili am getting out of memory error for the following code the error is look like this: FATAL EXCEPTION: main Process: in.co.winsoftsolutions.tileapps, PID: 3081 java.lang.RuntimeException: java.lang.OutOfMemoryError: Failed to allocate a 13398966 byte allocation with 4194304 free bytes and 11MB u...

... :)
@Duikboot routes dont work im using ticketit pakahe
package
New EIP creation failed: The maximum number of addresses has been reached. - fml - this company has a public IP address assigned to EVERYTHING, database servers, app workers, everything..
moin
Should not be a problem if they use ipv6 leigh :) The internet of things right
@ELOISSIFIAhmed .. that's not good but, you have to understand that telling us an error like that results in zero response/help...
@SagarNaliyapara I already know the limit is hit, point is, why does everything have a public IP, so ridiculous
With those System.out calls, I can't help but feel like this was coded by a cat walking across a keyboard multiple times. — EpicPandaForce 40 mins ago
lol
A little of topic, what's the best way to say 'goodbye' in a formal email? 'Best regards, Firstname Lastname' ?
10:17
@Duikboot "Sincerely yours" ??
toodly-pip.
or the sincerely, xxx format
What's the difference between Kind/Best regards Firstname Lastname, vs Sincerely Firstname Lastname
Best regards = informal?
Yeah, it's a little more informal.
Allright ! Thx.
10:22
@Duikboot I think that in Dutch "Sincerely" translates roughly to "Hoogachtend", whereas "Best regards" is more like "Met vriendelijke groet,".
Best regards, sound imo better then :)
haha
Stared today officially with my secondary business (Bijberoep @Oldskool ) ! Bam!
@Duikboot you mean you started your own software company?
Not sure what the correct terminology could be in English, maybe @Oldskool has a better description ( dutch : vlaanderen.be/nl/ondernemen/een-eigen-zaak-starten/… )
10:30
oh here we say "eigen bedrijf starten"
"Bijberoep" sounds like a "side job"
I still have my contract on my main job :)
@Duikboot "Kind Regards" is my go-to
Thanks for all help :D
@Duikboot @HamZa Yeah, "bijberoep" is a job on the side.
@Duikboot Good luck with that :)
Thanks! :-)
10:33
Congratulations @Duikboot and All the best... :-))
Thx!!
@Jimbo \o
morning :)
10:36
@Oldskool Have you worked / experience with laravel? I saw you are doing mostly Symfony2... is there a large difference between both?
Anonymous
Does anyone know of any debuggers that simulate a click on every a element and reports back any php errors?
@Duikboot No, don't have that much experience with Laravel. Pretty much only work with Symfony lately and have been using CakePHP a lot too (the 2.x version mainly).
@Jay Any type of crawler along with PHP error logging should do that trick.
@Jay For example, let screamingfrog.co.uk/seo-spider crawl your site. Then check your logs.
What could be a reason you pick Symfony or Cake?
Anonymous
@Oldskool Thank you, taking a look now
10:54
@Duikboot Well, they both have their ups and downs :) Depending on your needs you can see which one fits you best.
Morning
@PeeHaa o/
@PeeHaa I have enough ning already, have some of mine
badumtish
Anonymous
@Oldskool That's great, thank you. One question, should my apache log show undefined variable errors?
Anonymous
10:59
Because it's not
Wes
Wes
i so want one
@PeeHaa o/
@Jay Depends on your php.ini settings.
Wes
Wes
fast way to hash an any-length binary string so that gets converted to a uint64?
(actually, a signed int because php)
@Wes where are you transferring it to? And hash() with md5 possibly.
11:12
or DJB2. would be nice if PHP exposed its djb implementation
Wes
Wes
@Danack converting a guid for an hash table implementation (quite possibly no idea of what i'm doing)
why do you want to do that?
mornin'
@Wes pack has 64 bit codes now
Anyone else get spammed by meetup.com?
11:17
@Danack certainly do
@Leigh I meant a more specific spam, rather than just their normal "Oh, I'm sure everybody wants to receive plenty of email" level of spam.
It looks like a phishing attempt.....but the link does actually go to meetup.
@Danack I get a lot of suggestions for groups I'm not interested in
@Danack yea
Wes
Wes
trying to understand how php creates hash tables internally @Danack i'm using guid's for comparing objects and i've been laughed at :B
11:19
@Wes Internally it does use a djb hash I believe - there we go: lxr.php.net/xref/PHP_MASTER/Zend/zend_string.h#324
@Wes I was bored a couple of years ago and did the same you're trying to do :D github.com/nikita2206/php-canis-majoris/blob/master/src/CanisM/…
you should mention, that there can be several objects with the same hash value
Wes
Wes
@nikita2206 that. then the object is additionally compared by its handle id, right?
forgive my lack of terminology :B
@Wes What problem are you actually trying to solve?
Wes
Wes
11:26
@m6w6 yep i do know how hash tables work. but i don't know how php ones are implemented
So. I don't often say something worth "starring" .. but why in gods name did that one line have to be picked out ;)
@Wes no, objects are not handled in any way (as keys at least)
Wes
Wes
@nikita2206 doesn't splobjectstorage uses the same hash tables arrays use?
11:32
@Wes it does use php's hast table implementation, but it uses its own hashing method for objects which @m6w6 linked above
11:43
@bwoebi In the second example, why do you expect the behavior you expect?
I.e. why should not-reached not be reached?
@NikiC because it's not inside a catch or finally
at least in case of generator abortion
@bwoebi It don't see why it has to be.
dunno, I always interpreted Generator semantics to be that way
@bwoebi Think of it like this: It should behave as if you replaced the yield we're currently at with a return, or with a throw
otherwise the error message is also bogus
11:45
Which error message?
Anonymous
@Oldskool Thanks again, worked (y)
@NikiC zend_throw_error(NULL, "Cannot yield from finally in a force-closed generator");
so, it's really just force-closed generator in general'
@bwoebi Yeah, that should probably be more like Cannot yield from a force-closed generator (entered through finally)
@bwoebi but the behavior in the first case looks wrong
Also, it is easy to prevent yields being used in finally, but I can't do an if(!$forceclosed) yield ....;
@bwoebi We should discuss the underlying problem which causes that
11:49
sure, but what can we do about it?
@bwoebi Can you clarify how you want to fix case 1? Which u2.lineno do you want to set?
@bwoebi Well, why does this happen in the first place? Why do you have unfinished generators?
@NikiC all the u2.lineno's of the finallys reachable
@bwoebi It's it a single variable?
oh … ok.
Hi is there someone who has installed the latest version of ticketit for laravel 5
11:52
@bwoebi Okay, problem 1 looks like it may get ugly
we don't have a fast call sled for this
@NikiC other code failed with an exception, most often.
Is there any one who had previously worked in Mandrill API?
@bwoebi So a case where an explicit close() wouldn't even help?
@NikiC yes
you could close() in a finally though, but that might end up even more ugly
11:55
@bwoebi okay, how about allowing yields, discarding the value and retriggering finally execution?
@NikiC and what is the return value of the yield then?
@bwoebi It doesn't need one
i have some generators which are an infinite loop and waiting on data via yield
As we retrigger finally
11:57
@bwoebi You can cause an infinite loop either way, if you really want it
You don't need yield for that ^^
could work
:-P
Basically we'd make it behave as if we were throwing an uncatchable exception into the generator every time you yield on a force-closed generator. Instead of throwing one outside it
we actually could throw the exception into it and not just behave as if?
@bwoebi You mean to resolve problem 1?
But a dummy exception, right?
@NikiC actually, that's a side effect ^^

« first day (1949 days earlier)      last day (3224 days later) »