« first day (2160 days earlier)      last day (2791 days later) » 

1:00 PM
without knowing it, you may wipe out the creature which may give rise to the last surviving species on earth ... it seems unlikely, but the chances of you being here to make the choice to kill the thing at all are much, much smaller ...
only now you can't do it without knowing it, because I told you ... so if you do it now, you're just a bad person ...
 
Anonymous
@Darius Shame.
 
Hey, i am in magento atm. Got a static block that includes my Terms and Conditions.
In the Saleconditions i am loading this block.

After changing hoster the static block wont show up, can u help ?
 
so all my notices are because I was using if($variable) instead of if (isset($variable))
 
@Darius I suggest forty lashes as punishment ...
 
@Saitama I..Im...Imma crawl up into a ball and cri :c
 
Wes
1:06 PM
do you guys use incognito mode for things other than pr0n :B ? maybe it's just me, but if i need to log in to like other gmail, facebook accounts etc, i use that. in the latest chrome's update they made the UI dark, like incognito === illegal, haxxor, pr0n, so it MUST look shadowy. it's so fucking stupid and i hate it already
 
@Wes Create another user on Chrome
 
Anonymous
Yeah, I always use incognito for the lack of cookies :)
 
regex101.com/r/vD1lM7/2 /me goes insane (with special thanks to chat.stackoverflow.com/users/1400768/nhahtdh (see revision 1 of that regex))
 
Wes
@Slayther and then delete the user every time? i don't think it's a one click job :B
 
Do you people have cameras in your office? As in, cameras the employer can use to see what people are doing.
 
Anonymous
1:08 PM
and @PeeHaa forced me to update so I too have that issue now -.-
 
@Wes What do you mean delete the user?
 
@BenjaminGruenbaum I don't know. I hope we don't
 
Anonymous
@BenjaminGruenbaum lol, no
 
I'm pretty sure they monitor the internet traffic though
 
You log into Chrome user and log into separate Facebook / GMail / whatever account there
 
1:08 PM
@bwoebi what is that for?
 
@salathe adding two binary numbers at an arbitrary offset defined by the length of the first term
 
becoming crazy obviously
 
Hmm, thanks.
 
Wes
@Slayther what if i don't want cookies and data to stay saved? i have to delete the user every time, or clear the saved data
 
@Wes Set cookies and cache to clear on exit
For that user
 
Wes
1:10 PM
lemme try it..
 
Yeah, that's how my brothers don't mess up with my Chrome
It was a pain before, as I didn't know about Chrome user thing
> Keep local data only until you quit your browser
 
@AlmaDo Is that related to the legend that @JoeWatkins is tatooing his passwords on hamsters?
Nov 6 '14 at 20:43, by Joe Watkins
@PeeHaa I use a hamster ... every project I start, I buy a hamster (they are cheap, a few bucks only), I shave it, and I tattoo the configuration on it's belly ... the password is only 5 minutes away with a decent shaver ... I find it to be secure, but you have to weigh carefully the cost of hamsters against your security needs ...
ah… was missing a bit of context
oh, well… he quoted that more above…
I should have read the full backlog first :-D
 
@bwoebi That's what I always do. Feeling empty as if I am missing something if I don't.
 
I did too… but too late ^^
 
:P
@bwoebi What is this regex for??
 
1:17 PM
8 mins ago, by bwoebi
@salathe adding two binary numbers at an arbitrary offset defined by the length of the first term
 
Ah, missed that
Wait, seriously?
 
(no carry yet)
@Slayther hmm?
 
@bwoebi I am not sure how to respond. Other than awesome :D
 
@Slayther That's what PCRE is for, after all, no?
 
@bwoebi Yeah, what else would it do..?
 
1:19 PM
@Slayther Please delay this response until I'll have figured out full addition of two binary numbers
 
@bwoebi Still awesome
:D
I love regex for some reason
@bwoebi When you do that fully, it won't be good. Or awesome. It will be legen...
Darry
Then, we can implement it everywhere and could also add conversion to hexadecimal in it.
 
@bwoebi Wait, you solved it ?
 
If unit testing some sort of add method which eventually adds an element to an internal array what is the best way to test that the element was added to the array? I don't want to put some count() method on the class just for testing purposes because it would not be used in any other context. I also don't want to assert against private properties of the object.
If the method returned an integer which is the new number of elements in the list do you think that would be an alright solution?
 
@NikiC I didn't.
in RegEx - Regular Expressions, 3 hours ago, by nhahtdh
(?J)(?(DEFINE)
(?<b> _[01]*1(?=\k<e>$) | (?=.*(?<e>[01]\k<e>)$)[01](?&b)[01] )
(?<c> _[01]*0(?=\k<e>$) | (?=.*(?<e>[01]\k<e>)$)[01](?&c)[01] )
(?<s>0(?=.*(?<e>1)$)(?&b)1 | 1(?=.*(?<e>0)$)(?&b)0 | 1(?=.*(?<e>1)$)(?&c)1 | 0(?=.*(?<e>0)$)(?&c)0)
)
^(?&s)$
 
@bwoebi I don't understand that statement
What is missing from full addition?
 
1:26 PM
@NikiC well, it's until now just a simple addition on Z/2Z on a single digit at a single offset
working on completing it currently
 
@bwoebi From the examples, I don't see which single digit it is
E.g. in 011_111_100
What is being added there?
 
@NikiC the leftmost one
 
@bwoebi Ah, you're saying the 00 there at the end are arbitrary?
 
yes
 
ok
 
user6779766
1:30 PM
------------Notice: Trying to get property of non-object ----------
 
wait, does php support the J modifier?
 
user6779766
<?php
$sql = "SELECT * FROM input WHERE id =" .$_GET["id"];
$result = $conn->query($sql);

if ($result->num_rows > 0) {
$index = 0;
while($row = $result->fetch_assoc()) {
$index++;

$myid = $row["id"] ;

$sql2 = "SELECT * FROM output WHERE question_id = $myid ORDER BY date DESC";
$result2 = $conn->query($sql2);

$sql3 = "SELECT COUNT(*) as rowCount FROM output WHERE question_id = '".$myid."'";
$result3 = $conn->query($sql3);
$rowCount= $result3->fetch_assoc();
?>
 
@PaulCrovella yes, learned that today too
 
@PaulCrovella (?J) at least should work
Also iirc we recently landed it as a /J modifier
 
> PHP Warning: preg_match(): Unknown modifier 'J'
 
1:31 PM
but that might be 7.1 only
 
@user6779766 please stop dumping you shitty code in the chat and learn to use google
 
(?J) does work though
 
user6779766
@tereško please stop talking shit to people and learn some manners..
 
ah on 7.0 here
 
@bwoebi and by Z/2Z you mean no carry?
 
1:36 PM
@user6779766 It's not shit if it's true. :)
 
@NikiC yes
 
@bwoebi awww
 
One step at a time
 
user6779766
@Slayther so u saying thats a "shitty code"?
 
@user6779766 Pretty much. :D
No, seriously, stop dumping code here.
 
user6779766
1:39 PM
@Slayther thats how u need to tell, teach that kid.. code isn't shitty, dumping code is shitty..
 
no that code is totally shitty.
 
once you accept this it will go way easier
 
@user6779766 Several people already told you what was wrong / at least how to find your problem and several people noted that there are 1000s of dupes about it on the main site
 
queue the temper tantrum
 
1:41 PM
@user6779766 I didn't say your code isn't shitty
That no wasn't referring to it
 
Not knowing something isn't bad, but people can only do so much to help you to the point you need to help yourself
 
@Wes that black color, and the bg-color of pr0nhub matches really nice, doesn't it? :P
 
Wes
lol
or @PeeHaa's site, which requires incognito
 
lawl :B
 
@Wes porn and debugging
Actually mostly just for debugging
 
1:43 PM
 
@PeeHaa Porn and debugging porn
 
It's just easy to quickly test something without a session
 
Wes
aw, damnit, transparent bg :P
 
@NikiC <3
 
1:43 PM
:32843951 I'm tempted to flag as offensive
 
Wes
lol
 
:B
 
@Oldskool I am officially offended now
 
@PeeHaa mission accomplished then.
 
@Wes worked on my screen though
 
1:45 PM
@PeeHaa you should write an article about it on Guardian
 
Wes
because you have a black theme, like incognito
 
Hello Everyone,
 
Wes
damn u l33t haxxors
 
Huh what's happening
 
I am facing a issue in CI.
 
Wes
1:46 PM
your issue began with C and then got perpetuated by the I @itzmukeshy7
(sorry, ignore me)
 
@itzmukeshy7 what type of continues integration system do you use? Jenkins? GitlabCI? Some commercial solution?
 
@Wes I use it when I want to google something that I don't want affecting any sort of later "personalization" google wants to do for me (google news feeds, etc.)
 
@tereško CodeIgniter :P
 
@itzmukeshy7 That's not a question though :-)
 
@PeeHaa then please help to solve it.
 
1:47 PM
Solve what?
 
@salathe I was trying to be polite and not immediate assume that OP is fucked or stupid.
 
@tereško aww, that's awfully nice of you. :)
 
innorite
 
@Slayther lol that's a terrible one
 
1:50 PM
Muhahah :D
 
evenin
 
Eveneen
 
@PeeHaa this issue I am facing.
@PeeHaa If this is not a question then what is this?
 
Idunno. A couple of statements
 
Any suggestion?
 
Anonymous
2:01 PM
@itzmukeshy7 Ask a question :)
 
@JayIsTooCommon this is the question: stackoverflow.com/questions/39492100/…
 
Anonymous
Again, not a question
 
Anonymous
> Now when I am printing last_query() after select query I am getting all 6 where conditions.
 
@JayIsTooCommon then what is this?
 
Anonymous
I assume, you were expecting the last query instead of all 6?
 
2:04 PM
@JayIsTooCommon I am expecting only 5 conditions so the database return me expected results;
 
Anonymous
Edit your question so it's actually a question. Research what a question is if you don't understand. What you have done is given a few statements, that's it. If it helps, questions normally end with a ?. Include actual code in your question, otherwise I'm not sure how you plan on someone being able to help you. Also, read this - stackoverflow.com/help/how-to-ask
 
To be fair I see he only has a single question
 
Anonymous
hm?
 
Anonymous
Oh, as in it's first question
 
Anonymous
@JayIsTooCommon @itzmukeshy7 pretend there's a smiley face on the end of that :)
 
2:18 PM
:P
 
Thank you everyone
 
Anonymous
@itzmukeshy7 Honestly, just providing code is a good first step - people will be much more willing to help if you show them a snippet of the problem code :) Developers are usually better with code than words :D
 
I need to test my error reporting, but I'm not really sure how I can force my website to generate an error... is there a quick/dirty way to do it?
I'm trying to think of ways, but QA isn't my specialty
 
They sound good in my brain, then my tongue makes not the words sound very good, formally. @dailysimpsons
Pre-coffee
 
Wes
@Tiffany throw an exception? or php.net/trigger_error
 
Anonymous
2:24 PM
@Tiffany You mean an Exception?
 
@JayIsTooCommon yes
 
Anonymous
@Sean :P
 
@Wes that might work. let me dink with it. Thanks.
 
cool feature
 
that's how I am before I take vyvanse, @Sean.
can trigger_error() trigger an exception?
 
2:29 PM
hmm has someone an idea how I can do this : Let's make a paste about what I want to do: kopy.io/BFZhl >< bit stuck about how I can check if it has an other array
 
Wes
@Tiffany no, it triggers an error
 
Anonymous
!!docs Exceptions
 
An exception can be thrown and caught. Code may be surrounded in a try block, to facilitate the catching of potential exceptions. Each try must have at least one corresponding catch or finally block.
 
Wes
to trigger exceptions, just do throw new Exception();
 
Anonymous
@Tiffany ^^ if you click the link there's some examples. You need to throw an exception (what he said) :)
 
2:30 PM
alright
thanks
 
@DaveRandom Please take a look when you have some time: github.com/amphp/postgres
 
Anonymous
@Duikboot is_array?
 
Im just not sure should I check that around the current foreach?
or how should I handle it? : )
 
user895378
@Trowski I can actually spend a lot of time using this before the end of the week as well. Will let you know if I run into any WTFs ...
 
Anonymous
2:34 PM
@Duikboot Well, if you want different behaviour dependant on whether it's an array, then is_array would be on the right path.. but whether it should be done in that foreach depends on your design
 
@Duikboot you can just check if one of the keys, like PHOTO_INDEX, is set. if so, pull directly; if not, foreach.. also, when dumping example data use var_export - it outputs syntactically valid php that's easy to copy/paste and work with
 
Anonymous
but how would that work with multiple?
 
Anonymous
OIC... single/multiple yeah..
 
@Trowski Added @DaveRandom to the database team and set the team for pgsql instead of individuals.
 
@kelunik Yeah, that makes more sense.
 
2:37 PM
I'm not doing this right. I have function notify_exception($exception), that emails me when an Exception occurs. I stuck this on the test server, for when I log into the back-end: try {} catch (Exception $e { notify_exception($e); }
dammit. I fail with the chat's markdown
 
@Duikboot also that looks suspiciously like some crap you'd get out of simplexml.. if so, for everyone's sanity, please stop using it at take a bit of time to learn to use php.net/dom
 
@Tiffany Single backticks for inline code, otherwise 4 spaces.
 
I was using single backticks for the inline snippet, but I guess because I had the multiline snippet too, it didn't like the backtick portion?
I guess should I put something like try{ 1/0; } catch ...?
 
@Tiffany markdown basically doesn't work with multiline messages.. you can indent for fixed width font and I think that's about it
 
something that would cause an error guaranteed?
 
2:41 PM
@Tiffany You had three backticks and multiline code. Multiline removes all markup except autolinking URLs.
 
ahhh
that makes sense then
 
@PaulCrovella markdown SO markfuck.
 
lol
 
strugggle
 
@kelunik You seem to have removed me from that repo.
 
2:42 PM
@Trowski Whoops, wait.
 
Anonymous
@Tiffany throw new Exception(); will throw an exception :)
 
@PaulCrovella Is DOM faster then SimpleXML?
 
@Trowski Forgot to add you as well to the database team. Also promoted you to be a "Team maintainer" now. ^^
Don't you have Owner rights?
 
@kelunik I did, but I was demoted :-(
 
@JayIsTooCommon I think I tried that, but it wouldn't trigger
 
2:44 PM
Actually I dunno why it was removed.
 
Ah, you're in the core team, but no owner.
 
Anonymous
@Tiffany Then it's not being hit - check your error log?
 
@kelunik Right. If you want to just make me an owner, then I don't have to bug you :-P
Though I understand wanting to give out only the privileges necessary.
 
@JayIsTooCommon wonder if it's something with the error handling for dev environment, since it's supposed to handle errors differently, even though I commented out the environment check in the notify_exception() function
 
@Trowski I guess I was that, because you were so new. ;-)
 
2:46 PM
there may be something somewhere else in the code that's interfering and I'm not sure where
 
@kelunik Very understandable. Thanks.
 
@Trowski Granted you owner privs. now.
 
@kelunik Thanks.
 
@Duikboot They're both backed by libxml, I wouldn't expect any significant speed difference except that caused by how you use them. SimpleXML simply has a terrible api that's based on magic, and it falls on its face (i.e. does what you don't expect) for much of anything beyond trivial handling of trivial XML. The DOM has its own issues too, certainly, but it's leagues better to work with something explicit like it.
 
@DaveRandom @PeeHaa DNS issues with Jeeves (maybe amp more specifically), worth creating an issue? pastebin.com/Lyt3LZna Even if the problem isn't jeeves related the behavior probably isn't right. I'm guessing it should fatal.
 
2:50 PM
I'll definitly digg deeper into it when I setup a V2 of the sync thing I am creating :D
 
Nothing should fatal
 
Even errors that mean execution is pointless?
 
If something fatals all hope is lost
 
App can't run
 
user895378
you have no chance to survive make your time
 
2:51 PM
pastebin.com/8vSNj1sX -- on line 13, am I calling generateCallTrace() correctly, or do I need to use $ex->generateCallTrace() syntax? passing parameters in PHP confuses the fuck out of me.
 
@Fabor When would that happen?
No internet connection?
 
user895378
@Trowski any thoughts on a postgres pub-sub API yet?
 
Right now :P. Jeeves can't connect due to DNS woes on my part. Why wouldn't I want it to halt?
 
Oh yeah. In that case all hope is lost. Although you could / maybe should log and retry instead
 
@rdlowrey No, haven't looked into it at all. Probably would be pecl-pq only I'm guessing?
 
user895378
2:53 PM
Nah pgsql also supports it. It's just a regular query.
 
@PeeHaa retry and failing with a helpful message rather than a stack trace
 
user895378
But when you're listening (subscribed) you can't run other queries IIRC
 
Tried a few times. It happens at Burapha Uni every so often (more often than I would like) but eventually succeeds. This is the first time trying from home and it isn't having any of it.
 
user895378
you just issue a LISTEN query then wait for results as they come
 
Currently I use the systemd service for when all hell breaks loose
Which handles the retries, but not sure that's the best thing to do
 
@PeeHaa meh, that's fine.. still shouldn't land a stack trace though
 
user895378
not sure if any special API is needed to protect users from themselves. Could just compose a connection into a PubSub class wrapper of some kind to avoid any confusion with users attempting to execute other queries while listening
 
@PaulCrovella It is a fact that something is not properly handled indeed
 
@NikiC did you perchance send CV to Dyininno?
 
BTW is that internet over there that crap? @Fabor
 
2:58 PM
@tereško no, I don't even know what that is
 
good
 
@rdlowrey I already do something like this for transactions, so it should be straightforward to add a pub-sub sort of query.
 
@tereško why?
 
it's just that a mail from "Nikita Popov" arrived with a CV
:D
 
user895378
2:59 PM
@Trowski well I'm not sure if it makes sense to add a method specifically for that set of queries ...
 
Wes
@Saitama what's that? :B your server?
 
@tereško lol
 
user895378
my preference is to have the library provide the core querying functionality
 
user895378
and not add helpers in those core APIs
 
user895378
but allow composition of the core querying functionality into wrappers to add the niceties
 

« first day (2160 days earlier)      last day (2791 days later) »