« first day (2651 days earlier)      last day (2291 days later) » 
00:00 - 20:0020:00 - 00:00

8:01 PM
Missing GtkToolbar::set_orientation() and get_orientation methods – #75845
 
Wes
8:18 PM
@LeviMorrison hio \o in a PHP_FUNCTION() how do i retrieve the class-scope of the caller?
 
How much maths does someone need to get into Computer Science?
 
@Wes In a method, you mean?
@andho Not much to get started.
 
I don't know about others but when something complicated comes up I usually just Google it. :p

It's more logic which is technically math, but.
 
Wes
both a method and a function. PHP_FUNCTION(baz) i want to know if baz() was called from e.g. class context "\My\Other\Class"
 
@andho basically algebra
 
8:20 PM
What's algebra?
 
@Wes Not sure - I'd call a method from an invalid scope, find where the error message you see is generated in the source code, and work from there.
 
@Allenph I can't think of a witty response :S
 
Wes
basically, php-src equivalent of debug_backtrace()[1]["class"]
 
@LeviMorrison I'm not having much luck understanding the Math symbols in algorithms. First clue was I need to learn Calculus. And while learning calculus, still running into those same symbols. I've done Statistical mathematics, but not mechanics (advanced trig, kinetics, calculas, I guess).
Where does those Integral and such symbols come in first?
That's where I need to start.
 
Screenshot of the symbols in question?
 
8:22 PM
Damn, my high school maths was shit.
 
This is a list of symbols found in all branches of mathematics to express a formula or to represent a constant. A mathematical concept is independent of the symbol chosen to represent it. For many of the symbols below, the symbol is usually synonymous with the corresponding concept (ultimately an arbitrary choice made as a result of the cumulative history of mathematics), but in some situations, a different convention may be used. For example, depending on context, the triple bar "≡" may represent congruence or a definition. However, in mathematical logic, numerical equality is sometimes represented...
 
Let me grab a sample
@Allenph nice
 
@Allenph when I took algebra 2 in high school, my instructor let me write programs in my calculator and use on the test... only instructor that let me do that though... but I was pretty happy with that.
 
Found the symbol in Allenph's link: σ
 
@Tiffany I had a professor like that in high school for science. I moved to this podunk town in northern Florida and was destroying the grading curve, so I got to sit in back and play with my tablet in that class for two years. (I made sure to take his classes for two years, rather)
 
8:27 PM
I wish she taught math that was higher than algebra 2. Instructor I had for pre-calc wasn't as fun
 
That same school made me do pre-algebra, algebra and algebra 2 because the highest math they had was geometry and I did that freshman year. It sucked.
 
Ah, time to learn the basic again I guess. My biggest mistake in life was taking Business stream in high school.
 
I didn't even get to learn calculus. :p
 
I was supposed to take calculus my last year of high school, but I didn't like pre-calc (I think it was because of my teacher), so I didn't want to do calc (I took half a semester of statistics, I really didn't want to do anymore math at that school)
Took calc in college, and liked it
 
@bwoebi any opinions about this? by which I mean have you got any good reason that should not be considered a bug?
 
8:30 PM
I haven't run into any calculus at work yet. Only in electrical engineering. I can do it, but I don't understand it.
 
@Allenph I would definitely need a refresher now before I did any calc. Derivatives are easy, integrals are the bane of me.
One thing I'm proud of though, I understood what we were being taught, and what purpose it served in the real world.
 
To understand a falling apple?
 
finding the area of arches, basically
which is good for civil engineering :D
 
@Allenph I'm trying to go into image processing, databases or AI. Like going deep. Hope this pans out. I've had this cool DB idea for a while. The basics can be implemented with 0 knowledge of CS, but want to be prepared.
 
I know some comp sci uses advanced math, but I haven't encountered any.
databases require advanced math?
 
8:37 PM
3 messages moved to Trash
3 messages moved to Trash
 
Ok I'm still getting lost for inserting a new row into a db through a form if one of the form fields that is a date isn't filled in leaving it as a null value (not an empty string like 0000-00-00).
I've look here and google and get so many different things
 
@Tiffany some, but mostly "set theory"
the most math I have seen is in AI-related subjects
@Tiffany, if you want to try out, you can watch this lecture series: youtube.com/playlist?list=PLD63A284B7615313A
 
9:05 PM
@FélixGagnon-Grenier so, did actually see the "interview"? I wonder, what was your impression of it :D
 
@Tiffany Yeah I'm guessing, like if you want to find the best way to index your data (btree, etc) or how to store the data with the least amount of bytes, in storage or on the write.
@tereško thanks will check it out.
 
Anonymous
@SaitamaSama how do you see your pings on ow?
 
Anonymous
I might need to switch to Americas, just to play with you
 
Anonymous
kinda getting lonely, it sucks
 
Not related to PHP, but there are some security dudes here.
One of our servers is hit once or twice a day from a Microsoft IP, and seems to be msnbot. I've checked the IPs on Abuse IP DB, some of them will have reports. There was one that had a note stating that malicious users could be using the IP, even though it looks like a legitimate company. My question is how is that possible? IP spoofing is incredibly difficult, and the only ways I know of hiding an IP involves proxy or VPN... but that doesn't seem likely with Microsoft's IPs.
 
9:21 PM
what exactly do you mean by "hit"?
you mean there is a single access log entry?
 
the server's URLs are case sensitive, so if a bot accesses a page without correct case, it'll log it into a security log the DBA checks. Most of the time, I think they're benign, but there are a couple that have me wondering if there's something malicious behind it...
it will log the page they tried accessing, and what error occurred by them accessing, their IP address, and the date and time they accessed it. The log is for XSS attempts, and if it's a legitimate XSS attempt, it will include part of the javascript that was attempted.
here is an example of a log entry:
Cross Site Scripting......................157.55.39.36
(1)plsqlpackage.p_procedure is not a valid entry point into Banner Self-Service...01/16/18 01:06:32
 
what makes me wonder is: would it be possible to somehow affect the URL's that the bot is using?
 
there is one that is used for credit card payment, but we don't use it... that's what has me uneasy
a university reported on the vendor forums that they had someone from China that managed to automate filling out their admissions application, they had several false entries in their database from it o_O
 
let's say I create an invisible link in evilsite.com page, which link to an "attack" link, would the bot follow it ?
 
hmmmm... I might be able to test that
yeah, I think I can, as long as I tell the DBA what I'm testing with the package, cause I don't have access to prod database :P she would be compiling it on prod
 
9:30 PM
Hi Everyone, would someone mind helping me with this question? It seems pretty simple, but I'm not sure why it isn't working. Thanks!
https://stackoverflow.com/questions/48324576/html-form-action-not-working?noredirect=1#comment83634805_48324576
 
@DMop "does not work" is not an error message nor is it a valid description of a problem
also, you can't send headers after you have begun sending body's content
 
I get the impression that you're using header when you should be using form action...
but there is probably something I'm missing
 
Anonymous
@tereško when are you going to buy OW?
 
(it started playing in my head)
 
9:35 PM
@tereško @Tiffany then how should I be transitioning pages?
 
Anonymous
I would love to play with you sometimes
 
@samayo I wont. I don't have time for another game
 
@DMop you're wanting the form POST to submit to another page, yes? (or direct the user to a different page)
 
Yes, direct the user to a different page @Tiffany
 
use the action attribute of the form element
 
9:37 PM
Post/Redirect/Get (PRG) is a web development design pattern that prevents some duplicate form submissions, creating a more intuitive interface for user agents (users). PRG supports bookmarks and the refresh button in a predictable way that does not create duplicate form submissions. When a web form is submitted to a server through an HTTP POST request, a web user that attempts to refresh the server response in certain user agents can cause the contents of the original POST request to be resubmitted, possibly causing undesired results, such as a duplicate web purchase. To avoid this problem, many...
 
Got it. And if I wanted to only direct the user to another page after verifying some input (ie a login page) then would I use header?
That diagram is very helpful, thanks @tereško
 
9:57 PM
A spider trap (or crawler trap) is a set of web pages that may intentionally or unintentionally be used to cause a web crawler or search bot to make an infinite number of requests or cause a poorly constructed crawler to crash. Web crawlers are also called web spiders, from which the name is derived. Spider traps may be created to "catch" spambots or other crawlers that waste a website's bandwidth. They may also be created unintentionally by calendars that use dynamic pages with links that continually point to the next day or year. Common techniques used are: creation of indefinitely deep directory...
 
so, it is a thing
 
I need to get the sysadmin to let me set up a robots.txt file on the server first, before deploying something like that
wikipedia article "polite bots," "impolite bots"
 
Wes
10:30 PM
@tereško i don't like covers. the madonna's original one is much better
#howtopissofftereskolessonno1
 
there are probably people, who actually really think that way
and that makes me kinda sad
 
Wes
that actually happened to me yeah
 
Am I seeing that correctly that PHP has support for e.g. "next Monday", but doesn't understand "next 6:00"? x.x (strtotime)
 
Wes
but in all honesty, madonna's cover wasn't bad either
 
A lot of people think that about Jimi Hendrix's cover of All Along the Watchtower. It causes me great pain.
 
Wes
10:32 PM
i thought knocking on heaven's door was guns' and bob dylan's the cover
but it's actually the other way round :B
 
Broke my dad's heart when I told him that @Wes.
 
Wes
not a big bob dylan's fan
 
What's the best way to get the next time 6:00 happens while respecting daylight timezone changes?
 
@Wes Wuuuuut?
 
(i.e. at 5:59 it shall give today 6:00, at 6:01 give 6:00 tomorrow)
 
Wes
10:37 PM
can't do much about that... i like rock, i like folk even. can't stand bob dylan
 
function nextTime($time) {
	$timeToCheck = date("c", strtotime($time));
	$currentTime = date("c");
	$day = ($timeToCheck < $currentTime) ? "tomorrow" : "today";
	return date('Y-m-d', $day) . " $time";
}
@bwoebi ?
 
Wes
entered a old music spiral
> The Proclaimers
 
my condolences
 
Wes
old music = good music
 
I like pretty much everything before 1995. :p
Except Jazz.
 
Wes
10:45 PM
 
@Allenph yeah, I was hoping for something mire compact … going with strtotime("6:00", time() + 86400 - 6 * 3600)
 
Wes
i listened for miles davis for months once
dunno why... it just happened. not into jazz either
 
@Wes I actaully prefer the old songs with a bit newer sound equipment :D
 
@bwoebi How does that give tomorrow or today?
Meh I'll look at it later. I have to work.
 
@Allenph well, it advances until the next day if it's after 6:00, but not enough if it's before and then takes 6:00 of that day.
 
10:50 PM
Oh. I see. Yeah. That is better.
 
As daylight timezone changes always happen between 2 and 3 in the night
 
Wes
music equipment has reached its peak in the 80 i think. but was already pretty good in the past 2 decades
they've tried to improve it, but they failed :B
not sure what you mean then :D
 
I mean the recording quality :D
since my time machine order has not been fulfilled yet
 
@tereško What do you mean? Mine arrived tomorrow.
 
Wes
well if you mean a musicassette vs cd then yeah :B
but vynils are still best
:D
 
Wes
you get an operator aaaaaaand you get an operator and you get an operator
 
@NikiC it's safer to bet on "stupid"
 
Wes
i don't get it
 
... then again, my choice probably does not surprise anyone
2
 
@NikiC I've already wished to have such ops at times … but it's really better without. Wouldn't call it stupid, but rather not experienced enough to see why it's a bad idea
 
Wes
11:00 PM
$x ??++; // proposed new syntax
($x ??= 0)++;
$x = ($x ?? 0) + 1;
wat
the point is saving to write a big variable name, not "+ 1"
 
@Wes how does "please, do not copy your BrainFuck code into .php files and expect it to work"
 
I'd like to propose ???? as the null coalescing what were you thinking operator
 
Wes
by the way, what happened to ??=
wasn't it accepted?
@PaulCrovella 3v4l.org/JrdDH
 
@Wes accepted but never implemented
 
@Wes this is how one can get removed from the testament
anyway
nn
 
Wes
11:08 PM
\o
i'm singin american pie. i should record. i'm so good :B
 
yes. yes you should.
 
Wes
rofl
 
At least this is not as bad as when I addicted @samayo to animes
 
Wes
:B
i sing. i practice my english. it doesn't work :B
 
I imagine it goes something like this
 
Wes
11:23 PM
pretty much
 
@Wes stabs eyes out
 
is there an operator for that too?
 
Wes
=|==> <O><O>
 
> the point is saving to write a big variable name
ಠ_ಠ
 
Wes
twice
by the way
!!> ($a = 3)++; var_dump($a);
 
11:30 PM
[ 5.6.0 - 5.6.30, 7.0.0 - 7.2.1 ] Parse error: syntax error, unexpected '++' (T_INC) in /in/vTvkS on line 1 <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ hhvm-3.22.0 ] Fatal error: Uncaught Error: syntax error, unexpected T_INC in /in/vTvkS:-1 Stack trace: #0 {main} <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
[ hhvm-3.18.5 - 3.21.3 ] Fatal error: Uncaught Error: syntax error, unexpected T_INC in /in/vTvkS:1 Stack trace: #0 {main} <br/><i>Process exited with code <b title="Generic Error">255</b>.</i>
 
Wes
never tried this before. wonder why would one do that :B
$a = 4 is too mainstream
 
@Wes $a = unpack("V", pack("f", 5e-45))[1];
 
Wes
show off
 
ohhh.. we're doing absurd code? Here's my entry: 3v4l.org/GKmF2
 
@pmmaga at least that one you can still follow
 
11:45 PM
true, yours is more magical
 
$a = !!a<<!!a<<!!a;
now, change one char, get a warning and still get 4 :-D
 
that's pretty neat as well :D
what's the closest we can get to this in PHP? I only managed to do it with undefined properties and __get
 
@pmmaga $a = true; simple.
 
with === :P
 
haha
=== doesn't really allow for side-effects
we can't do magic like JS and substitute $GLOBALS with ArrayAccess or such bullshit
 
11:57 PM
my go at it with an object: 3v4l.org/na1ip
 
00:00 - 20:0020:00 - 00:00

« first day (2651 days earlier)      last day (2291 days later) »