« first day (2374 days earlier)      last day (2568 days later) » 
00:00 - 13:0013:00 - 00:00

Haha that's what I keep thinking of while making this script
I'm trying to secretly get the SERVER_NAME and REQUEST_URI into a variable
Well, I have secretly gotten those into a variable. How secretive it is though depends on who is looking at the code
 
1:37 AM
hello
 
Well hello hello
 
I should just send a blank message since my name is Hello
lol
 
Haha I guess it would increase efficiency
 
too bad I dont think you can do that here D:
 
^^
 
1:43 AM
hahaha
 
Damnit now the ^^ makes it look not blank
 
!!dad
 
Have you read that book about Stockholm syndrome? It was pretty bad at first, but by the end I liked it.
 
2:08 AM
ughhhhh
 
lol
 
that is such a dad joke..
haha
 
 
1 hour later…
Wes
3:26 AM
missile launched by north korea. "just a test" they say
 
3:40 AM
apparently it exploded immediately after it launched
 
Sine values exceed 1 – #74451
 
4:17 AM
Ha I guess they got their test results then
 
4:30 AM
test results came back right after class
 
4:43 AM
Lol
 
Wes
@NikiC $foo = ($this === ($this === ($this === ($this === ($this === $this ? $TRAP : $this)->aaa() ? $TRAP : ($this === $this ? $TRAP : $this)->aaa())->bbb() ? $TRAP : ($this === ($this === $this ? $TRAP : $this)->aaa() ? $TRAP : ($this === $this ? $TRAP : $this)->aaa())->bbb())->ccc() ? $TRAP : ($this === ($this === ($this === $this ? $TRAP : $this)->aaa() ? $TRAP : ($this === $this ? $TRAP : $this)->aaa())->bbb() ? $TRAP : ($this === ($this ==
this was actually the code i meant to write :B
it works even.
this php parser is magic
this looks better though. works too
$foo = $this->GET_TRAP($this->GET_TRAP($this->GET_TRAP($this->GET_TRAP($this->GET_TRAP($this)->aaa())->bbb())->ccc())->ddd())->eee();
bloody awesome :D
mornings all though
 
4:59 AM
Good morning
 
Wes
GET_TRAP(
    GET_TRAP(
        GET_TRAP(
            GET_TRAP(
                GET_TRAP(
                    $this
                )->aaa()
            )->bbb()
        )->FIELD
    )->ddd()
)->eee();
\o/
 
art
 
5:21 AM
o/
 
mornin all
 
Wes
\o
 
Add 'Form' to Supported AuthType Authentication Methods w/ HTTP authentication – #74452
 
5:45 AM
if i saved inputs from a form in a txt file, and wanted to use those inputs for a sticky form on another page, what's an easy way to accomplish that?
 
Wes
"saved inputs" ?
 
like that
basically i have a search capability on another page and the user can enter a first and last name, and based on that it will bring up the appropriate contact
 
Wes
each line = 1 entry?
 
parsing
 
yeah
$file= fopen("contacts.txt", "a");
$datasaved = $firstName . "," . $lastName . "," . $emailAddress . "," . $phoneNumber . "," . $address . "," . $city . "," . $state . "," . $zip . "\n";
fwrite($file, $datasaved);
fclose($file);
 
5:51 AM
monring everyone ^^
 
Wes
@Hello use a database, or save it to a format that is more parsing-friendly
like json or csv
 
@Wes this is csv, isn't it?
 
yeah I thought it was csv
well..i tried to do it lol
 
Wes
what if $address contains a comma?
 
I guess I can assume that wont happen
for the purposes of this
 
5:54 AM
consider using php.net/manual/en/function.fputcsv.php insteaf of fwrite
 
Wes
check phpexcel for csv manipulation too
 
@Wes overkill
 
Wes
meh
 
Is it normal for a file(...); to take 5 seconds to load a page that loads instantly in my browser? I'm on localhost so it's using the same connection
the page it loads doesn't even give any output, I don't know if I am doing something wrong on the page that is being loaded with file(...);, or if I am doing something wrong on the page using the file(...);, or if I'm not doing anything wrong :|
 
Wes
@Alesana are you loading it through a local path?
or is it file("http://localhost...
also, what are you doing with it?
 
6:00 AM
@Wes Sorry the file is on my web server and I am loading it from localhost
I am just calling it and not doing anything
 
Wes
it should be file(__DIR__ . "/path/to/file.jpg")
 
The file on the server will add a row to a DB based on a GET variable
 
Wes
but what are you doing exactly with it?
 
but it is file(http://something.com/callback.php?q=...)
What am I doing with it on localhost (the server using the file function) or on the live server (the server that hosts the file)?
 
why would yu load it with file? that gives you an array
 
Wes
6:02 AM
do you actually need the whole body?
 
Because it doesn't output anything
No I don't need anything, I am trying to have the code not noticeable as a "call home" on my script and file is the shortest function name to use to do so
 
Wes
so something.com is your site?
 
Yeah
 
Wes
exact same domain? :B
you are making a request to your site to execute some stuff, rather than just executing said stuff? :B
 
Yeah I got it some billion years ago :P
something.com is my site but I am making a PHP script for distribution and I decided against doing SaaS I just wanted to see who would be stealing my script aha
I thought you were asking if I literally owned the domain something.com lol
 
Wes
6:06 AM
:B
 
@Alesana does your script output something? then just use a tracking pixel
 
@Gordon I am also implementing that! But I wanted extra security from PHP as well
 
I think I know what to do
 
I don't know why I thought it would be necessary and then I thought of a clever way to conveniently hide a file(mydomain.com/...); in the PHP script that worked better with a very short domain that has letters close to eachother and yeah then later I read about the tracking pixel but I already have the domain so I thought I'd do both haha
 
if im searching a text file to look for matching strings, is strpos better to use than preg_match_all
 
6:13 AM
@Hello if you are not matching for a pattern and only want to know if the substring exists, then yes
 
well, I am trying to allow a user to input their first name, last name, email, etc, all of which goes into a text file, then there's another page where the user can enter the first and last name, and it will bring up all of the info about that contact as a sticky form, so I think using strpos is better? basically, it will search each line and then explode the string, which I can then use the indexed array to make the sticky form
 
Wes
 
Is there even a point of creating a license that needs to be verified before installing my script if I am not going to encrypt it?
 
6:29 AM
you are asking technical questions about a legal problem
 
Oh I mean not a legal license but as in attempting to lock it to a domain through a license code that needs to be verified on my server
 
if you use foreach loop, is the key erased outside of the loop?
 
Wes
no @Hello
 
hmm
$contracts = file("contacts.txt");
foreach($contracts as $contract){
	if(strpos($contract, $firstName) || strpos($contract, $lastName)){
		explode(",", $contract);
	}
}
I think im on the right track
why did I type contracts lol
 
6:54 AM
what if the address has a ,
 
!!docs fgetcsv
 
[ fgetcsv() ] Gets line from file pointer and parse for CSV fields
 
do I have to name the file .csv?
 
@Hello no, but it helps for clarity
 
ah
im looking at it on w3schools, how would I incorporate this into a sticky form?
str_getcsv might be better
 
7:02 AM
!!w3schools
Hmm that should be a command
 
@Alesana W3Schools should not be trusted as a reliable resource. Click here to read why. Check the official PHP Documentation for help with PHP.
 
Hi, i have a simple question.why (0.0009765625 > 7.8886090522101E-31) is TRUE?
 
positive > negative
 
@Mostafa because there 31 zeros before the 7
 
lol
 
7:08 AM
!!? what is scientific notation
 
Search for "what is scientific notation" (https://www.google.com/search?q=what+is+scientific+notation&lr=lang_en)
• Scientific Notation - Math is Fun - Scientific Notation (also called Standard Form in Britain) is a special way of writing numbers: … W… (https://www.mathsisfun.com/numbers/scientific-notation.html)
• Scientific notation - Wikipedia - Scientific notation is a way of expressing numbers that are too big or too small to be conveniently… (https://en.wikipedia.org/wiki/Scientific_notation)
 
@Mostafa ^
 
does anyone else not like wearing socks?
3
 
I mean it depends
You mean like in your shoes or when you're around the house?
 
around the house
if i dont wear socks with my shoes then it hurts my feet :o
 
7:14 AM
Yeah then it gets all nasty
I don't wear them usually around the house
 
@Gordon Thanks.
this is my code:
`
$r1=pow(0.5,100);
$r2=pow(0.5,10);
var_dump($r1);
var_dump($r2);

if($r2 > $r1){
var_dump(1);
}else{
var_dump(0);
}`
 
I dont want to see your code lol
 
lol
 
lol
 
Would it be a good idea to try to load a tracking pixel that only successfully loads if the domain has an active license, and then have the script have a message for the user informing them that their script is not licensed if the pixel does not load?
 
7:33 AM
morning
 
Morning ^^
 
I love penguins
 
Wes
7:49 AM
@AdilIlhan @Ekin getting rid of erdogan?
RIP Robert W. Taylor, creator of Arpanet
 
this is their chance
lolol
 
you are too politic today :) @Wes
 
Wes
i'm compulsively hitting F5 waiting (or actually, not waiting) for WW3 to start
 
end my suffering
ww3 come
 
what a time to be alive
 
8:10 AM
Hello people
 
and trump will be commander of US?
wow
 
Trump wants to be the commander all the time
in all
 
@Wes LOL
 
we are in 2017 and still dealing with stupid social login problems.
 
Wes
@littlepootis he wants to have a trip on the golden carriage
 
i have a question about PHP, how we can get subarrays for give values
in distinct variables?
 
mornin
 
Morning
 
ThW
8:49 AM
@ChristopheCosta you can just use nested arrays (array elements that are arrays).
not sure what you mean by "in distinct variables".
 
array(2) { [0]=> array(9) { [0]=> array(0) { } [1]=> string(4) "0.00" [2]=> string(4) "0.00" [3]=> string(4) "0.75" [4]=> string(4) "0.00" [5]=> string(4) "0.00" [6]=> string(4) "0.60" [7]=> string(4) "0.00" [8]=> string(4) "0.00" } [1]=> array(9) { [0]=> string(4) "0.00" [1]=> string(4) "0.50" [2]=> string(4) "0.00" [3]=> string(4) "0.00" [4]=> string(4) "0.00" [5]=> string(4) "0.00" [6]=> string(4) "0.00" [7]=> string(4) "0.00" [8]=> NULL } }
array[0] = $total
array[1]= $total1
 
it is not readable
use pastebin
 
@AdilIlhan that he has been since 20th of January
 
i mean when ww3 begin
 
I don't think you understand what you are talking about
then again, Trump must be a good distraction from your own country's mess
 
ThW
9:01 AM
@ChristopheCosta Numbers in variable names (and using dynamic variables to access them) are a code smell, why not keep them in an array with the number as key.
 
... and now I got invited to a private room... oh what will I do
 
it is not private though
i think you have a problem
that's why i would like to resolve the problem.
 
posted on April 16, 2017

New Cyanide and Happiness Comic

 
@Wes wtf
 
Wes
9:11 AM
magic!
 
seriously, what is that?
 
@ChristopheCosta shouldn't you be computing the total weight on the SQL side when you are querying the inventory?
 
no, because i getting that variable from SQL. One of then and with that i want to divide the array
give the values
make comparasion of all the values
 
you still should be doing all that ordering on SQL side
 
saving the values and do the call of the function after?
 
9:22 AM
you can do various computations in SQL
anyway, the example you have makes very little sense and I have no intention in formatting the var_dump, if you don't think that it was important enough to be formatted
 
that is important, because is only way to do in the function because need to have the same format and make the comparasion of the total of the values.
i want to make that output in dynamic table
 
9:40 AM
Mornings
 
morning PeeHaa
 
must ... not ... buy .. Battle Brothers
also, fuck my country - it's snowing
 
where you are?
 
Latvia
 
wat... wow
I've got 23°C here
 
9:50 AM
I got something around 0°C
 
It's 42C here.
 
it's cold here for 10 month a year ... and the rest we call "winter"
 
i got 35C + 47% humidity
 
The humidity is the reason why I hate Mumbai and Chennai.
 
:p i will die soon due humidity
 
Anonymous
10:12 AM
 
Wes
10:23 AM
lol
 
!!lxr interval_spec
 
@PeeHaa Nothing went wrong but I couldn't find a suitable definition
 
Am I right into thinking php.net/manual/en/dateinterval.construct.php <-- the constructor still doesn't accept microseconds?
 
@PeeHaa look the damn source up?
 
I tried that's fucking why I am asking
:P
I think that's the correct spot
 
Wes
PT0.123S
i think this should be the syntax?
 
tnx actual useful people \o/
 
yw
 
You missed the useful part dad
Fails :(
> Fatal error: Uncaught Exception: DateInterval::__construct(): Unknown or bad format (PT0.123S) in /in/L0YTT:3
#SadPanda
 
@PeeHaa nearly right… look at the .re file in scan() function. As you see there, no mention of microseconds.
 
10:40 AM
1 sec
 
Wes
> As ISO 8601 does not support fractions for seconds for intervals, this will not be implemented.
i've just checked. it does support fractional seconds
 
Not according to wikipedia though
And we all know that's the one source of truth :P
 
Wes
fff | ffffff
specifies an optional fraction of a second using the digits 0 - 9:

fff
use 1 - 3 digits for values read by the $N8601B informat and the $N8601E informat

ffffff
use 1 - 6 digits for informat other than the $N8601B informat and the $N8601E informat
 
uck
 
What does .re stand for @bwoebi?
regular exception? :P
 
> Python Regular Expressions source code
 
3 messages moved to Trash
 
@tereško Isn't python though
 
Wes
wait peehoo
 
Looks like standard poop c to me
BTW what happened to the eesterpeehunny?
 
Wes
10:46 AM
user image
3
 
You peaked too early wes
 
Yeah I blame @DaveRandom's coding
Need to still look at it while testing / rewritign asynctwitter
Not sure what's going on there yet
 
Wes
i blame improper use of exceptions
 
Lemme pin it right there these days
 
Wes
10:48 AM
catch(\Throwable $e){ /* yolo */ }
 
@Wes yeah might be it :P
Well that's not the cause obviously but part of the debugging problem :)
 
Wes
just use IntlCalendar @PeeHaa :B
ext date gave me cancer already
 
I am trying to clean up some docs bugs
 
Wes
there is a "f" in the dump of date interval
 
Thought it was an easy fix
 
Wes
10:50 AM
maybe that's it
 
@Wes It does have it for things like format()
You just cannot set it it seems
 
Wes
what if you extend the class?
 
Also as opposed to the others like %d it contains the sign
Which confuses me even more
Scratch that last one
Might be me being confused
 
Wes
one letter variables confuse me
 
All of timelib confused the hell out of me
^ contains the sign for some reason
While stuff like %d doesn't
And I am not sure enough to call bug or feature
 
Wes
10:55 AM
is derick aware that if he doesn't add support in both dt and interval the feature is going to be useless?
 
Again I am not sure if I should be making noise and what that noise should look like
 
Wes
Just Use ICU™
 
I started out with a "hey that's an easy fix" docs bug and ended up with 30 minutes of ^
:P
 
Wes
i'm slowly moving everything to intlcalendar. it is great, especially the non lenient mode
 
10:57 AM
Yes a lot has been fixed in 7.1 I think
@Wes I don't even know what that means :P
 
Wes
api is not great but not even disgusting
 
Accessibility Issues – #74453
 
!!? lenient
 
Search for "lenient" (https://www.google.com/search?q=lenient&lr=lang_en)
• Lenient | Define Lenient at Dictionary.com - Lenient definition, agreeably tolerant; permissive; indulgent: He tended to be lenient toward the c… (http://www.dictionary.com/browse/lenient)
• Lenient Synonyms, Lenient Antonyms | Thesaurus.co… - Synonyms for lenient at Thesaurus.com with free online thesaurus, antonyms, and definitions. Dictio… (http://www.thesaurus.com/browse/lenient)
• Lenient | Lenient Definition by Merriam-Webster - Define lenient: allowing a lot of freedom and not punishing bad behavior in a stro
 
More permissive?
 
Wes
10:57 AM
@PeeHaa date time is lenient, if you do 2010-13-20 you will get 2011-01-20 or something
 
ah k
 
Wes
with icu you can customize that, you can have strict checks
otherwise will work exactly like ext/date
 
ah
Makes sense I guess
Soooooo look what happens when I open a simple timelib docs bug:
 
Wes
10:59 AM
but it is much simpler reading this icu-project.org/apiref/icu4c/classicu_1_1Calendar.html
 
:P
You know what. Imma bail and try again later when I'm drunk
Close tabs to the right
 
Wes
what are you trying to do?
*were :B
 
Which I still can do rather easily, but I don't wanna anymore :P
 
Wes
11:22 AM
@PeeHaa MARONN'
i clicked the link but i only looked at it now
 
!!urban MARONN'
 
whatchoo talkin bout willis
 
Wes
maronn = mother of jesus
 
:P
 
Wes
in italian
 
11:24 AM
Useful tnx :)
 
Wes
regex /^(?:maronna?|madonna?|mamma) mia$/
that code is insane
goto all the things
 
Is derick lurking somewhere I can bug him somewhere next week?
 
Wes
twitter?
 
We can instaclose several bugs once I know what's going on
Good one. Will try to ping him thee
But first imma need a strong drink
 
Wes
had to do house stuff, now i'm back on php parser. doing mad things :B
6 hours ago, by Wes
GET_TRAP(
    GET_TRAP(
        GET_TRAP(
            GET_TRAP(
                GET_TRAP(
                    $this
                )->aaa()
            )->bbb()
        )->FIELD
    )->ddd()
)->eee();
 
11:34 AM
wtf are you doing O.o
:P
 
Wes
 
Also I suggest tunes like these with that code youtube.com/watch?v=NlJsXsEVcP4
 
Wes
you are such a tamarro @PeeHaa
 
Better quality
 
Wes
11:35 AM
teaching you italian today
 
!!en tamarro
 
tamarro (translated from Italian)
 
gee tnx
 
Wes
!!urban tamarro
 
[ Tamarro ] An Italian word that denotes an individual who is ignorant and boorish. It was universally used in Italy to describe the cast of "Jersey Shore" during their sojourn there. "Tamarra" is the feminine form; "tamarri" is the plural.
 
11:36 AM
:P
ooohkay :D
 
Wes
that's kinda incorrect though
 
@PeeHaa Amp\Artax\TimeoutException: Allowed transfer timeout exceeded: 120000 ms in /srv/www/Jeeves/vendor/amphp/artax/lib/Client.php:441
 
oh weird
 
Wes
 
Does that mean all images are borken?
 
Wes
11:37 AM
that's a tamarro
a douche basically
 
The issue is timing out fetching images from imgur I think
 
https://t.co/g0yneY3QDJ
 
ugh
 
could be a Connection: close job
 
@PeeHaa Posting to Twitter failed :-( Image file size must be <= 5242880 bytes
 
Wat
Don't you use chunked? Or is there an actual limit?
 
That's a limitation of the twitter API
 
!!poop-on twitter
 
💩 on twitter
 
11:39 AM
We could resize with GD but I'm not a fan of loading images that big into in-memory bitmaps a la GD
 
Isn't it a problem of stack imgur vs normal imgur?
 
dunno if imagick is more efficient
 
The peehaa one I mean
@DaveRandom I think not cc @Danack
 
maybe, I haven't really looked at it
could be a Referer: issue in that case
although I would expect 400/403 in that case
 
I know better than to expect anything from external apis
 
11:40 AM
I would start with Connection: close, that's the most likely answer I think
 
Not that I actually check on any of it though :P
 
it's nothing to do with twitter itself afaict
 
kk
 
anyway I am busy today but might be on later
 
Meh no worries. Go have a nerfgun war with your kid and wife :P
 
Wes
11:43 AM
I can watch this again and again. https://t.co/YvEw6iVixJ
 
12:22 PM
Wrong exception being thrown when using ReflectionMethod – #74454
 
Who's gonna win the refelection API or opcache?
 
Wes
reflection is a mess
i so wanted to answer "nature of reflection is wrong"
i thought it was a traits bug but basically any class lists the parent class's private methods -__-
air quotes private air quotes
 
:P
 
12:37 PM
Freetype support is disabled – #74455
 
has markdown parser on gihub gone tits-up?
hmm ... nevermind
they have just changed the parsing code at some point to be less forgiving
 
@PeeHaa an image file size of 5MB is huge....anyway of resizing that is going to take a few seconds at least. (unless it's a completely uncompressed image.). There probably won't be much difference between GD or Imagick.
 
kk tnx <3
 
Wes
12:55 PM
!!annoy PeeHaa
 
@PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa @PeeHaa hi
 
yes sire?
 
Wes
it was !!annoy not !!seriously-capture-ones-attention
:B
 
:P
lol that insta rubberducky
 
there is a fucking snowstorm
 
00:00 - 13:0013:00 - 00:00

« first day (2374 days earlier)      last day (2568 days later) »