« first day (2806 days earlier)      last day (2145 days later) » 
00:00 - 15:0015:00 - 00:00

12:00 AM
not worth the agro
will have to wait til tomorrow
 
@tereško I died =/
 
although related:
 
I need to watch a video
 
!!friday
 
12:01 AM
@DaveRandom It's too early! Stahp!
 
utc or gtfo
 
lol
its 5 am friday here, and I am still awake
I've had too many energy drinks
 
is that what you kids are calling it these days
 
It's not really Friday until it's Friday in America. =D
 
I don't think i am gonna sleep today. Will sleep once i go to and get back from office
@StatikStasis So, if its 5 am here, than that means its around 5 PM thursday there, depending on your state's timezone
@DaveRandom what do you mean?
 
12:05 AM
8pm
5pm in Pacific Time.
 
@StatikStasis ffs, I was all ready to point at american samoa but apparently they flagrantly ignore the fact that they should be on the other side of the international date line
 
I'm on the East Coast
lol
 
@mega6382 I was inferring you are doing a bunch of drugs
 
@DaveRandom oh, uhh, I though you were inferring to me being drunk. :P
 
drunk people who are awake 5am typically aren't capable of typing
 
12:08 AM
Gah. Job asking for SOLID and unit testing that turns around and asks if I have Laravel experience.
 
Lucky you, allen! Take it!
 
@Allenph hahaha
 
what are you gonna do?
 
Not take it. I have a few months to look.
Not interested in getting out of the frying pan and into the fire.
 
12:11 AM
Think your current job will offer you more money to stay?
 
I doubt it.
 
@Allenph I almost used that phrase when you first typed that.
 
Nor would I take it if they did.
 
@StatikStasis I've never felt comfortable in asking my employer to increase my salary or I am gonna leave. Its always, if I'm gonna leave then I'm gonna leave there is no making me stay, and if I wanna stay then I'm gonna stay, even if I have a somewhat better job offer.
 
I would rather dip my balls in honey and run into a bear den than stay there.
 
12:15 AM
@Allenph sounds like an intriguing idea. :P
 
@mega6382 No- I wasn't suggesting "more money or I leave" I was wondering if they were had offered him more money to stay.
 
They just gave me 10k not too long ago.
 
Wes
ftr, bears don't like honey
 
@Wes So, only pooh the bear likes it?
 
Wes
maybe
they eat the bees, and the larvae
but not really interested in those either
bears don't give a damn if they get stung in their mouth
 
12:37 AM
@Wes or maybe the bee venom doesn't effect them
 
Wes
was doing research on the topic and i found this
 
 
1 hour later…
2:07 AM
I have been working with node.js(typescript) for past couple of months, and just right now in php code for debugging I just wrote "console.log()" instead of "var_dump()" :P
 
Wes
2:19 AM
define("console", "");
function log($obj){ var_dump($obj); }
you are welcome.
 
lol
@Wes anyway this doesn't work, since log() function already exists in php as builtin
 
Wes
namespace it
 
yeah, thats what came to my mind
 
in JavaScript, 43 secs ago, by little pootis
user image
lol, @Wes
 
2:36 AM
@Wes I've rewritten it like this:
namespace MyNamespace;
define("console", "");
function log(...$vals){ call_user_func_array('var_dump', $vals); }
but I don't think i am gonna use it anywhere.
 
if you multiply 1.9 by 3 and if you ta subtract the same the result is not zero – #76515
 
@littlepootis what was the profile pic? mind sharing the link?
 
I don't see anything wrong with it.
 
Wes
@littlepootis not my fault. it was meant to be for halloween only :B
 
2:39 AM
Oh, it's not your fault. I'm surprised they found it inappropriate.
 
Wes
you know that text you can write under your avatar in chat?
> Ouch! How dare you click me?
mine was "mother dick!" a line from a character from walking dead. i got a reprimand for that :B
 
@Wes well, that can be considered inappropriate, i think.
 
Wes
a suicidal guy is inappropriate too
 
but that clearly looks fake
So, I just found out that "Soap Soccer" is a thing. What is wrong with the world?
 
Wes
3:04 AM
it's amazing
 
I was just watching random youtube videos and got to "Ozzy Man reviews soap soccer", and was like wat? is that even a proper sport?
 
Wes
you never watched brazilian tv, right? :B
 
nope
why? is it all like that?
 
Wes
yes. it's all promiscuous sexuality
 
4:18 AM
Mornin
 
4:37 AM
shuffle() has a note about undefined sorted order – #76516
 
4:50 AM
\o
 
o/
 
5:21 AM
posted on June 22, 2018

New Cyanide and Happiness Comic

 
5:52 AM
--with-gettext= causes configure to misjudges there is no getcwd – #76517
 
6:22 AM
mornin all
 
 
1 hour later…
7:33 AM
mornin
 
7:48 AM
morns
 
Morngins
@littlepootis What the actual fuck...
 
pellucid clear in meaning, expression, or style: a pellucid way of writing.
 
!!dad
 
I ate pasta by myself last night. It made me feel cannelloni
 
8:11 AM
Gives you a perspective into perspectives qr.ae/TUpbto
 
8:34 AM
 
Nice title.
 
moin
 
o/
 
I am trying to find any indication, that it's satire ... but it really seems like it's not
 
@PeeHaa Yeah, that's weird.
I just want to know who that mod was.
They were stalking me, or I did something to grab their attention. Either way, I'm flattered.
 
8:49 AM
wasn't your avatar just a picture of you?
 
@littlepootis My guess is it was flagged
Still weird
 
even if it was flagged, a person still acted on the flag
 
True.
But mods tend to act when flags are accumulating even if it is without merit
 
9:13 AM
i tried to send email using clientscript js with 3rd party api mandrill i successfully completed all steps but console displays(Failed to load resource: the server responded with a status of 500 (Internal Server Error)) ...this my code below:
$.ajax({
type: "POST",
url: "https://mandrillapp.com/api/1.0/messages/send.json",
data: { 'key': 'xxxxxxxxxxxxx',
'message': {'from_email': 'mymail@gmail.com',
'to': [ { 'email': 'mymail.m@gmail.in',
'name': 'hacker',
'type': 'to' }],
'autotext': 'true',
'subject': 'Connect with me',
'html': 'hi'
}
}
}).done(function (response) {
console.log(response);
});
 
E_JAVASCRIPT
although in general, "the server responded with a status of 500 (Internal Server Error)" means that the problem is definitely server side, and you need to take it up with mandrill
 
It failed to load mandrillapp.com/api/1.0/messages/send.json:1 internal server error 500..so i need to ask support with mandrill.right?
 
yes
 
thank you for your valuable response @DaveRandom
 
well it's certainly a response, not confident about "valuable"
 
9:20 AM
yes..but i think it is valuable
 
Happy Friday y'all
 
ya happy friday..
 
9:42 AM
hi to all :)
can anyone suggest me nice ajax tutorial?
 
@BishalUdash start here
and whenever you are looking for any kind of documentation related to front-end stuff, look at mdn
 
i mean using jQuery
 
!!w3schools
that needs to be a thing
@PranavPatel don't use w3schools, it's full of a bad practices and sometimes information that is just wrong
MDN is a much more reliable resource
 
segfault when opcache enabled + extensions like apcu/imagick – #76518
 
9:53 AM
@DaveRandom it was disabled because the site w3fools.com removed all the points.
 
yes it seems that w3schools has improved, at least content-wise
 
at least they dont claim $_GET is a function any more
 
@DaveRandom ok
 
thanks bruh
 
@DaveRandom Yes, but still mdn is way better because it provides much more in-depth explanation.
 
10:07 AM
include function access file written after question mark (?) – #76519
 
@Jeeves wat
Did OP just learn a lesson about security and wants to share it? Or what?
 
@PeeHaa it's a bug in reality
 
Fuck reality
What good did he ever do for us?
 
10:23 AM
So. I was going to send this to internals - https://gist.github.com/Danack/4304c3ccf57f57065559c057f07c8eee
But I remembered that asking for cash money, without including a link for where people can give money is stupid.
I've asked around before, and there seems to be some consensus that making a way to generate invoices for open source projects would make it easier for companies to give cash money to open source projects.
So I'm going to throw together a site that allows me first (and then other people) to generate official looking invoices for open source projects, and to have the money tracked etc.
6
Can anyone suggest a cunning name for a webshite that does this?
 
Pretty sure I've seen open source "feature bounty" sites before
 
@Jeeves Sound less like a bug and more like a flaw in his validation.
 
@Leigh yes, I've seen them, and they seem focused wrong. I'm thinking that what is needed is a fully skinnable website, similar to opencfp
i.e. make the site look like it is part of the project, rather than a 3rd party thing.
 
Making it look like part of the project, when it isn't..
 
@Danack How about a paypal donate button instead?
 
10:31 AM
3 mins ago, by Danack
i.e. make the site look like it is part of the project, rather than a 3rd party thing.
Also fuck paypal.
Really - just looking for a name for now.
 
@Danack OSF
Open Source Fees
@Danack one thing I usually do is open the "list of dieties" pages on wikipedia and pick from there
then maybe change a syllable if I think it looks cooler, or something
 
@Danack Do you mean the invoices will look like an invoice (err, okay), or the invoices will look like they come from e.g. the PHP Group? If it's the latter, oh hell no.
 
10:46 AM
@Danack name it "two hard problems"
 
@FlorianMargaine thanks. Even better that was available.
 
@salathe iirc people have generally said "it doesn't need to be from a legal entity, it just needs to look like it might be"
so I think the name would be arbitrarily decided by the user
 
@salathe it will look like an invoice, and eventually people will be able to make their own look and feel. Definitely not official PHP group.
 
but you do raise a good point in that there would need to be some protection against people choosing a name like "The PHP Group"
 
I won't open it open to anyone straight away - and probably would always need to have some checks in place, like these people do: opencollective.com
Context for those who crave context: news.ycombinator.com/item?id=10863939
> We don't donate to OSS software which we use, because we're legally not allowed to.
I routinely send key projects, particularly smaller projects, a request to quote me a commercial license of their project, with the explanation that I would accept a quote of $1,000 and that the commercial license can be their existing OSS license plus an invoice. My books suggest we've spent $3k on this in 2015. My bookkeeper, accountant, and the IRS/NTA are united on this issue: they don't care whether a software license is OSS or not. A $1k invoice is a $1k invoice; as a software company, I have virtual
> I would do this more often if OSS projects made it easier for me to do so. Getting me to pay $1,000 for software is easy; committing me to doing lots of admin work over the course of a week is less easy. Take a look at what e.g. sidekiq.org , which is an OSS project with a commercial model, does. Two clicks gets me to a credit card form. If I actually used Sidekiq, Mike would have had my credit card on file the day that form went up.
 
Wes
11:05 AM
\o
 
i need to put from_mail and to_mail dynamically into Email function. please help me how to do this?
this my script code:
var from_mail = $("#from_mail").val();
var to_mail = $("#to_mail").val();

Email.send("from@email.com","to@mail.com","This is a subject",
"this is the body","smtp.ips.com","username","password");
 
That's jabbascript not php
 
i tried like this but it doesnot works
var from_mail = $("#from_mail").val();
var to_mail = $("#to_mail").val();

Email.send("+from_mail+","to_mail","This is a subject",
"this is the body","smtp.ips.com","username","password");
@PeeHaa then how to send it dynamic details into it?
 
Hi Anyone help me for this : stackoverflow.com/questions/50986108/…
 
> Path is folder of xampp htdocs and is not a folder
Is this like a magic trick? :P
 
11:13 AM
@PeeHaa :D
Edited ;)
 
@PeeHaa Is there anyway to do this?
 
11:25 AM
@hearthacker You just pass the variable straight to the function.
```
var my_variable = "some value";

someFunction(my_variable);
```
@Danack Are you leaving your current company then?
 
How bad does this code look?
$arr = compact('foo', 'bar');
arsort($arr);
$highValue = key($arr);
next($arr);
$lowValue = key($arr);
Also, it will be used like this later:
var_dump($$highValue, $$lowValue);
 
that's quite elegant
 
@FlorianMargaine is that sarcasm?
 
I don't know, I've been awake for over 30 hrs straight. My body is shaking with all the caffeine. I can't really tell anything.
 
Wes
11:35 AM
it looks bad. should use arrayiterator :B
 
@mega6382 Maybe take a break. If you can still understand the code tomorrow, it must be fine.
 
Wes
also i would write ["foo" => $foo, "bar" => $bar]
 
@mega6382 you should sleep
 
@FlorianMargaine I will as soon as this is over... just a couple of more methods //cc @jjok
 
@mega6382 that's an odd way of comparing two values
 
11:41 AM
@salathe The alternate was to use ifs with greater than or smaller than
And write somewhat similar code twice to deal with the values
But this way, I can write the code only 1 time and use $highValue and $lowValue as the variable names.
 
@mega6382 woah there
 
Wes
kill it with napalm
 
Don't try to write clever code
I am agree with wesley here
 
OK, thanks, changing it right now.
 
\o/
And get some sleep if you have been at it for 30 hours :P
You are going to have to debug parts of it when you wake up again either way
Might as well do the bed thing now and look again when awake
 
11:49 AM
$urll = explode('/',parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH));
print_r ($urll);
Array
(
[0] =>
[1] => test
[2] => fr
[3] => users
[4] => details
)
echo array_shift($urll)."<br>";
Array
(
[0] => test
[1] => fr
[2] => users
[3] => details
)
But i need to remove test
 
@PeeHaa Now I've changed my code to something like this:
if ($foo >= $bar)
{
	//My Code
	return /* something */;
}

// The $bar > $foo code here

return /* something else */;
And yeah, I am gonna commit it right here and gonna go to sleep will deal with the rest later.
 
@mega6382 infinite times more sane :)
 
@PeeHaa I've now closed my IDE and everything. I just figured that the other way it will by more dynamic and compact, of course that also makes it more unreadable and bit more prune to errors because wrong kind of value can cause some unexpected behavior or something.
 
@PeeHaa: u see my code?
 
12:04 PM
morning
 
@StatikStasis o/
@LineLone yes
 
@Danack How can you generate an official looking invoice for open source projects if they are open source and that means there is no real person/company/organisation which is generating that invoice? In some countries registering such invoice is illegal and can be changed by Tax Office with huge penalty.
nvm
 
12:26 PM
@StatikStasis what a surprise :D
 
Wes
june really needs to stop being both summer and winter
 
@tereško What do you do once a compactor is full?
 
I haven't seen any winter since I left the uk .../
 
@Wes It's blazing here.
 
12:36 PM
It's been 37 Celsius here for a few days.
 
It's going to be hot next week :(
 
I read 40 near the pool the other day, there is no wind, or natural shade there ... the water (not heated) is 29-30 degrees ...
 
I have to cycle from Paris to London
going to be so sweaty
mmmm
 
nobody has to do that ...
 
@JoeWatkins That sounds miserable.
 
12:38 PM
I rather like it ...
inside is nice and cool, the sun hardly enters the house, I can't put up with it all day ... but it's nice, swimming at lunch time is still a novelty to me ...
 
I like water to be cool.
 
@bwoebi I implemented the static properties thing: github.com/php/php-src/pull/3316
We actually had a test that checks for the old behavior
I'm afraid Dmitry will say that this is a BC break
 
see I couldn't actually get in when it was cold, it's still water, so when you come out it feels cold, does an excellent job of keeping you cool, and doesn't hurt to get in ...
 
I go to Dominican Republic usually once per year...
 
what water temp there ?
the med near me is 23 degrees at the moment, and it feels freezing cold when it gets deep ...
 
12:43 PM
We go in January. It's 29 celsius when we get off of the plane. We will be in shorts and short sleeve shirts. The Dominicans will have hooded sweatshirts on and cold. We'll swim and some of them think we're loco.
 
@StatikStasis build another one
or 4
 
I take a snorkle, but can't actually breathe properly because I just can't adjust to that temperature, and it fluctuates with every wash in ....
 
@JoeWatkins It depends on where you swim. When you said the pool had no natural shade and was 29-30... that seems really warm to me.
I'm not sure what the water temp is right now- I haven't been swimming yet this year. At our ocean... probably 25 Celsius
My closest ocean is Myrtle Beach in South Carolina. @JoeWatkins
@tereško So I just keep filling those up? I was wondering if they should be using the stuff that is in them faster or something.
 
Which would be the best or fastest way to fetch multiple rows with PDO
$stmt = $pdo->query('SELECT name FROM post LIMIT 0,10');
 
@StatikStasis yes, it is faster, because the piles on the ground have various amounts of material
 
12:50 PM
$stmt = $pdo->query('SELECT name FROM post LIMIT 0,10');
foreach ($stmt as $rownum => $row)
{
echo $row['name'] . "\n";
}
or
 
according to internet (which is probably lying), that's about to peak in the next two weeks, at 29 degrees ... I'd like that ... sea temp peaks here in august at ~26
 
while( $row = $stmt->fetch() ) {
echo $row['name'] . "\n";
}
?
 
@JoeWatkins That data sounds about right. When we go to the beach area we usually swim in the pool at my brother-in-law's home. It stays a little cooler. Plus after a day at the beach with the sand, salt in eyes from ocean, sunburn- oh god the sunburn... the cool pool water is wonderful.
 
@NikiC eww
But thanks for implementing it
 
1:17 PM
Object creation leaks memory when executed over HTTP – #76520
getimagesize() fails on photos from Samsung S8 – #76521
 
user9059272
Hi all
 
1:41 PM
@brzuchal I'd recommend not doing that in those countries then. Think of it more of a receipt of payment rather than a demand for money.
@SerialKisser hi Mr "I choose my name to creep people the fuck out".
3
 
user9059272
Can someone please explain me the meaning of the statement : "The string in PHP is implemented as an array of bytes and an integer indicating the length of the buffer."
 
user9059272
I'm not understanding the later part in the sentence that is "an integer indicating the length of the buffer"
 
@SerialKisser it means the length is stored, so php can know how long a string is without counting bytes.
In pure C a string is stored as 'an array of bytes' terminated by a null byte.
So in C to tell how long a string is, you need to go through each of the characters and test if it is NULL.
 
user9059272
@Danack : By 'length of buffer' do you mean the number of bytes(including null bytes present, if any) present in the string under consideration?
 
@SerialKisser yes, I think so.
possible s/the length of the buffer/the size of the array/
 
user9059272
1:54 PM
@Danack : Is the place in computer memory where the string is stored as its equivalent array of bytes called 'Buffer'?
 
yes (I'm pretty sure). I think the person who wrote that is changing between buffer and 'array of bytes' interchangeably.
It'd probably be clearer as just "allocated memory".
 
can a switch/case use mathematical operations as cases?
 
@Danack see also "pascal-style string"
 
but don't do that.
 
the example I was given has 20 nested ifs
it's either 20 if statements, or a switch/case
though, if statements are probably smaller, if I make them single line, and probably easier to read
 
2:01 PM
@Tiffany for nested ifs, try changing them to be in a function, and then early return from that function to make it clearer....like:
 
if ($IDontHaveABetterVariableNameYet > 19.5) $xp *= 2500;
they don't need to be nested ifs in PHP though, I'm converted something from Excel
in Excel, they were nested ifs
 
user9059272
@Danack : Ok, I understood your point. But, is this length of buffer stored somewhere in memory? How this length of buffer can be part of the string implementation in PHP? Isn't it enough to say that "The string in PHP is implemented as an array of bytes." only?
 
@Tiffany are they actually nested? maybe twatter me a secret gist?
 
!!lxr zend_string
 
2:05 PM
[ /Zend/zend_types.h#92 ] typedef struct _zend_string zend_string;
 
@SerialKisser they are stored here: lxr.room11.org/xref/php-src%40master/Zend/zend_types.h#223-228 Being able to tell the length of a string without counting is a big deal.
 
@Tiffany Those seem to leave out if the value == the actual number.
At 1.5 at least.
 
shrug
 
The political rhetoric this past week has been unacceptable. Cries of Nazi-ism and reference to Japanese internment camps were irresponsible and beyond the pale. Shame on the media outlets who promoted this, and those who repeated it.
/me is done with the Bob. finally unfollowed him
 
for not banging the same drum?
 
2:11 PM
For being a troll.
Which is not acceptable here either.
 
"here" being your personal filter bubble
 
did you try / are you aware of fictorum @tereško?
 
@StatikStasis it's a project a friend wants to make into a web application, he currently has it as an excel spreadsheet. I copied/pasted the nested if statement into vs code and broke it out into separate lines, and left the file open for an unknown amount of time. I came back to it cause I was closing unnecessary files, figured might as well convert the Excel code into PHP, since I'll need it eventually. If the calculation is incorrect, I'll fix it later on.
 
@FélixGagnon-Grenier no, but looks quite .. emm .. bare-bone
 
@FélixGagnon-Grenier get Grim Dawn, made by the same devs who made Titan Quest
 
2:13 PM
That always feels good to close some files and browser tabs I've had opened for 3 months.
 
@StatikStasis indeed
 
@tereško yeah. the dynamic spell creation looks interesting however
@Tiffany yeah, it's pop up on my lists a few time. that might be the good time for it :)
 
It would be neat to have an extension that showed the age of a tab by color. Tabs over 30 days could turn gray. @Tiffany
 
function foo($f3Value, $g3Value) {
  $tests = [
    [19.5, 2500],
    [18.5, 1875],
    [17.5, 1675],
    // more rows here.
  ]


  foreach ($tests as $test) {
    list($boundary, $multiplier) = $test;

    if ($f3Value > $boundary) {
      return $g3Value * $multiplier;
    }
  }
  return 0;
}
@Tiffany that is how I would rewrite that function.
probably.
 
@FélixGagnon-Grenier sounds like what Lichdom was promising
 
2:16 PM
@Danack I need to become more familiar with lists. I have trouble wrapping my brain around it
 
@Tiffany Based on Danack's code you would just need to get rid of the <1.5 check and do 0 to check whether $f3Value is greater than 0 instead.
 
@StatikStasis ah, yeah, makes more sense to use 0 anyway
 
Gorogoa is really neat if you're into puzzle games
 
@pmmaga I'm still waiting for Miegakure miegakure.com
 
Thinking about getting Dead Cells.
 
Wes
2:26 PM
on purpose?
 
@Leigh didn't know about it. looks really good
 
I think it's one of those labour of love games, single developer, it's done when it's done
 
2:44 PM
@StatikStasis same
but the discount is quite small
 
It looks really good.
@Wes Have you played it?
 
Wes
nope, just found funny "i'm getting dead cells"
 
New Luke Cage season is out.
 
@tereško What is the price show for you since the regional prices seem to be different. I'm showing $11.99 for Dead Cells here. That about 7.20 Latvian Lats?
 
2:54 PM
latvian pesos seem quite highly priced
 
we do not use Lats anymore - its euros here
 
Sorry- what Google returned to me.
It's $12 USD for Dead Cells with the sale for me right now.
 
and the price I am seeing is €11.99
 
So $14 USD
 
somehow I suspect that the price in UK is £11.99
... which is probably pronounced as "fuck uk"
 
2:56 PM
so it's 12 {whatever your regional currency is}
 
:P
 
:)
 
lol
dorks
 
00:00 - 15:0015:00 - 00:00

« first day (2806 days earlier)      last day (2145 days later) »