« first day (2083 days earlier)      last day (2862 days later) » 

2:00 PM
then solve it yourself and bugger off
 
except i dont know how to solve it
 
@Mark and part of that information is the fact that it's using a cryptographic hash function
designed to be irreversible
 
unless you figure one out before the chain
 
when you break it, let us know, because you'll also have broken a lot of the internet
 
ok, time to add this one to the ignore list
 
2:02 PM
can someone explain to me what that csgodouble is trying to explain?
ELI5 pls
 
seems to be some sort of lottery where you can verify the results by putting the published seed into the provided algorithm
 
except you cant see the published seed only the server can you can only check past ones
untill the server publishes it
 
yea, they could totally publish it up front, but that's their design flaw
they should at least publish a hash of the seed up-front to make sure they're not brute forcing on the back-end
 
they use a chain of hashes so if you figure out a hash before the one thats being used you can get it by hashing it
 
and if you have that, you win the lottery?
 
2:07 PM
if you hash 2016-06-28 you get 2016-06-27 then if you hash 2016-06-27 you get 2016-06-26 so if you had 2016-06-30 you can hash it to get 2016-06-29
no you can then put the hash into this to get the next number thats going to roll
$server_seed = "39b7d32fcb743c244c569a56d6de4dc27577d6277d6cf155bdcba6d05befcb34";
$lotto = "0422262831";
$round_id = "1";
$hash = hash("sha256",$server_seed."-".$lotto."-".$round_id);
$roll = hexdec(substr($hash,0,8)) % 15;
echo "Round $round_id = $roll";
 
and then you win the lottery because you can accurately predict the rolls
 
@Gordon no, it looks like they're using the seed for a primitive RNG, knowing the seed lets you know the rolls ahead of time
 
plush unicorns anyone?
 
yes
 
I am trying to write something like:

RewriteRule ^EN/?$ index.php?lang=EN

But when that gets directed to the index.php, I don't get any styles on the website? What could cause that
It is shown in pure html
 
2:16 PM
Ugh … I've realized, that when watching recursively on arrays, I also need to watch on arData to account for extensions and rehashes :x
 
@bwoebi So, this feature is never getting finished, right? :P
 
Anonymous
@JakobMillah check your source code's css path
 
@NikiC It's actually the last thing to do… Everything's working except that specific case
 
@samayo Yeah, it has something to do with the path. I just wonder what path I should add to the css source / base tag.. Seems like adding rhe one provided from my host does not work
 
Anonymous
@JakobMillah then browse your page and check the source code for the style, what does it show you?
 
2:21 PM
@samayo only 123.com/css
Oh nvm. sec
 
Anonymous
you should use the absolute path to require your css file.
 
Wow that has been a while...
 
Anonymous
i.e. domain + path/to/css
 
> [Wed Jun 29 16:22:15 2016] [notice] child pid 19032 exit signal Segmentation fault (11)
 
Why the domain too?
 
2:23 PM
@samayo Yeah, that is causing it:

.123.com/customers/0/6/9/123.com//httpd.www/css/stylesheet.min.css
that is what I get
 
Anonymous
again, use absolute path
 
Yep, I'll
 
@samayo no. you should use a /
sorry for barging in :p
and mornings
 
Anonymous
:)
 
Anonymous
and morning evening
 
2:31 PM
@samayo Fixed all my problems. THanks
 
inb4 the site breaks on migration / multi domain / tls
 
Anonymous
@JakobMillah You awe me $10.--
 
@samayo RUDE
 
@DaveRandom Haven't seen that particular opinion in here yet. I thought everyone was a big fan of defensive programming.
 
Your Karma just fell through the roof!
 
2:33 PM
He was joking
 
@NikiC final is mostly just a pita
 
So am I - Kappa
 
imo
 
-_- this isn't twitch
 
@NikiC There's defensive and then there's crippling your users
 
2:34 PM
@Fabor Kappa isn't twitch. It's life
 
@PeeHaa I don't use it myself, but it seems like a not entirely unreasonable way of forcing people to use composition over inheritance
Of course only if you limit its use to cases where composition is actually possible ^^
 
:P
> PHP 5.3.3-7+squeeze17 with Suhosin-Patch (cli) (built: Aug 23 2013 15:06:16)
WTF is this thing?????
No wonder it segfaults. I would do so too
 
@PeeHaa youtube.com/watch?v=PJiRijiLwbQ does it compile yet?
3
 
Hi everyone, I have a question regarding the specification pattern: Is it possible to use multiple implementation of a spefication?
 
2:45 PM
@FélixGagnon-Grenier I am new to patterns in general and I'm wondering how to use it
 
I am new to reading in general, please disregard
 
@FélixGagnon-Grenier In my case I have an object representing a webpage, I want to check if it is up. The PageIsUp specification could be checked using various tools (curl, get_headers, goutte etc)
 
@IamZesh Are you looking for Interface?
 
@FélixGagnon-Grenier So I was thinking creating a PageIsUpInterface and then implementations like CurlPageIsUp
@FélixGagnon-Grenier then GetHeadersPageIsUp etc.
 
Client should be the name of the interface. And Curl the implemnattion imo
 
2:48 PM
@PeeHaa thank you, and how would you do with the specification?
@PeeHaa would you pass the Curl class to the specification too?
 
@IamZesh what do you mean by "specification" exactly?
 
                                 That ^ ?
 
I meant the specification pattern
 
Like, do you have an example of one?
 
\o/ aligned
 
2:50 PM
:p
 
I have a page that represents a webpage
 
so a Page class with the url property
 
OK, with you so far
 
then I was thinking that to check various things about this page (if it's up, if it contains this or that element etc)
I was thinking that I could use the specification pattern\
like
PageIsUp (the name of the specification)
 
2:51 PM
!!wiki Specification pattern
 
@DaveRandom Sorry I couldn't find that page.
 
Gon
We've got a question in our class today ' With the help of a situation explain how computer is Non Heuristic in nature.'... And afaik AI algorithms are heuristic...Am I wrong anywhere?
 
but to do the checking, I can use different ways, curl, get_headers etc
 
@⁠PeeHaa error has been logged. Fix it fix it fix it fix it.
 
2:52 PM
@Jeeves Y U NO FIND RESULT???
 
@Jeeves fuck off
 
so I was wondering if I can have the specification be an interface
 
Idiot
 
Gon
:P
 
Can't even handle spaces
 
2:53 PM
and then different implementations, depending on the tool I use to do the checking
 
> inherits its functionality from the abstract aggregate Composite Specification
 
the code example is even more... comprehensible (not.)
 
you know that thing when you immediately want to kill yourself when you read about a design pattern, what's that pattern called?
 
usa politics? meh
 
@IamZesh Some general advice. Write software instead of patterns
 
2:54 PM
^ this
yes you can use an interface for it
 
double this ^^
 
@PeeHaa Thank you :)
 
o/
 
Gon
o/
 
@IamZesh also you could just use Artax and be done with it because you'll never need another HTTP client ever again \o/
 
2:56 PM
so something like this could be good:
interface PageIsUp {
public function isVerifiedBy(Page $page)
}

and then
class CurlPageIsUp implements PageIsUp {
public function isVerifiedBy(Page $page) {
// the curl specific code returning a boolean
}
}
 
Omg I have an issue :D I have following situation:
www.nicedomainname.com/name

www.uglydomain.com/projectxyz

How can I access www.nicedomainname.com/name and load the website from uglydomain.com/projectxyz ?
Without having the url changed?
 
@Duikboot nginx proxy
 
@IamZesh class names are horrid, but the general principle is sound
 
Gon
4 mins ago, by Gon
We've got a question in our class today ' With the help of a situation explain how computer is Non Heuristic in nature.'... And afaik AI algorithms are heuristic...Am I wrong anywhere?
 
@DaveRandom
the one with the nice domain name = apache
the one with the ugly domain name = ngingx
 
2:57 PM
@Gon please don't spam
 
@DaveRandom Thank you, Dave, do you have suggestions for class names?
 
@IamZesh you probably want a PageIsUpVerifier with a verifyPageIsUp() method or something.
 
Gon
@FélixGagnon-Grenier Buhahaha
 
@FélixGagnon-Grenier you realize that dick changed his name and he is not a random help vamp rite? :-)
 
hmmm............
 
2:58 PM
People who change their name should die. Amirite @Wes?
:P
 
Gon
:D
 
dude wat. Who you @Gon?
 
btw @IamZesh there is another thing to remember here... determining if a web page is "up" is non-trivial. You can just send a GET request and check that you get a 200 response, however that may or may not be what you actually want and it may or may not make sense for an arbitrary "page".
 
Gon
@Saitama -> @Gon
 
Wes
3:00 PM
@PeeHaa in my defense, i wasn't very active in the chat
 
@DaveRandom ok so then I'd have classes (implementations) like CurlPageVerifier, GetHeaderVerifier etc?
 
Wes
@FélixGagnon-Grenier asphalt
@FélixGagnon-Grenier aspartame
 
@DaveRandom and the interface / specification would then be PageIsUpVerifier
 
Anonymous
3:01 PM
@Wes eh, what was your old name?
 
Wes
ran out of words starting with as
asbestos
 
ascension
ash-tray
 
Wes
@JayIsTooCommon had plenty. mario, worf, wesabi, wes
 
@DaveRandom, thank you Dave, for this case I know but I'll have other things to check, like elements, etc, so I thought it was a simple enough starting point to ask
 
3:02 PM
@IamZesh Yes. This is really just a naming thing, but a business object class like that is a "doer" - it does something, so the most descriptive name is usually along the lines of ActionPerformer, and a method is an action so the most descriptive name is usually doThing()
 
Anonymous
@Wes You're such a hipster
 
I cheat a lot of scrabble...
 
Wes
@JayIsTooCommon next one will be EL PHPOLLO LOCO
 
3:03 PM
> pollo
you're into chicken much?
 
Anonymous
@Wes hehehe
 
@Wes asshole
 
wooptiedoo
 
Wes
@DaveRandom haha
@FélixGagnon-Grenier only if accompanied with spaghetti [???]
 
so italian
do you freak out when people cut their not fresh pastas?
 
3:04 PM
@DaveRandom
the one with the nice domain name = apache
the one with the ugly domain name = ngingx
 
Wes
not fresh pastas? what is this (genuinely asking)
is there pasta that isn't fresh? fresh like the ocean in may? mmmm pasta
:B
 
I thought you italian people only ate pastas if they were made that same day
 
by grandma
 
@Duikboot uh, I think I missed something?
 
us everybody else in the world, boil them from dry state
 
3:05 PM
That proxy you suggested.
 
@Duikboot that was @PeeHaa :-P
 
oh
 
however, one sec
 
Anonymous
3:06 PM
@PeeHaa hot.
 
@PeeHaa
the one with the nice domain name = apache
the one with the ugly domain name = ngingx
 
@PeeHaa have a ping
 
Wes
@FélixGagnon-Grenier if it's just boiled pasta it lasts a couple of days. if you add tomato after few hours it's gonna suck hard
 
You know spaghetto is the singular for spaghetti, but spagett is something completely different.
 
@Wes our pastas are literally in the stores for weeks before we get them
like... in a dried state
 
Anonymous
3:08 PM
@Fabor Why do you know these things?
 
Wes
we have them too. in the stores 99% is dried pasta
 
I'm old.
 
@Duikboot Can you put nginx in front of them both?
 
Dave is older than me, that's why he knows more.
 
3:08 PM
:P
 
Wes
but once you boiled it you can only eat it
 
wowowow
 
yeah, we're on the same page
 
Prior to boiling it can eat you.
 
Gon
40
Q: Hosting company advised us to avoid PHP for security reasons. Are they right?

YumecosmosI'm doing a redesign for a client who's understandably concerned about security after having been hacked in the past. I had initially suggested using a simple PHP include for header and footer templates and a contact form they wanted. They are reluctant because they were advised by their hosting ...

 
3:09 PM
yeah, I kinda lol'd ^^
 
@DaveRandom @PeeHaa Does it matter where I set ? I assume the domain where I want to forward from?
 
@Duikboot rtfm, never actually used it
 
OK great :D
thx
 
I've only ever used nginx at the front
One thing you can say for Apache though, it is well documented (mostly)
That part certainly is
 
I was asking my question in relation with this stackoverflow.com/a/37551204
 
3:11 PM
isn't apache like the most used server in web hosting companies?
 
I can understand a bit the answer but I cannot see how the code would look like, ie. where I will get the result of those verifications, like if page is up, or if page contains an element...
 
Wes
but hey, with fresh pasta you can't make this, for instance 1.bp.blogspot.com/-XOsqZlP2Wgs/T-Sw077yc0I/AAAAAAAABMQ/… or spaghetti bridges 4.bp.blogspot.com/_YbfDNTAiZQ8/TJdCrQL9GsI/AAAAAAAAE-4/…
 
Wes
:B
 
in highschool we made a popsicle bridge contest
 
3:14 PM
@DaveRandom It's apache though
 
I was picked on because I was a violonist geek wearing glasses. and I literally beat all of them fucktards and went to the provincial bridge contest, where superior geeks in turn beat me
 
!!? popsicle bridge
 
Search for "popsicle bridge" (https://www.google.com/search?q=popsicle+bridge&lr=lang_en)
• Popsicle Stick Bridge - Instructables - The popsicle stick bridge is a classic science demonstration and competition. Every year many stud… (http://www.instructables.com/id/Popsicle-Stick-Bridge/)
• Popsicle Bridge - TryEngineering - their own bridge out of up to 200 popsicle sticks and glue. Bridges must have a … Lesson Synopsis.… (http://tryengineering.org/lessons/popsiclebridge.pdf)
• Garrett's Bridges � Popsicle Bridges - This album highlights the Popsicle Stick Bridge that I entered into the S
 
!!? !!?
 
@Fabor Did you know? That !!?... doesn't exist in the world! Cuz' GOOGLE can't find it :P
 
3:15 PM
noice
 
@Fabor lol. I was ready for a blackhole
 
Remember that old google game where you had to get two words and see if you could return less than 'x' results?
 
universe / 0
 
> PHP is designed to appeal to the lowest denominator of programmers with the least motivation to get good at their craft
Man that stings a little
 
!!wiki Googlewhack
 
3:16 PM
helps growing your hide @Sean.
 
Jul 3 '14 at 12:25, by tereško
@Jimbo patterns emerge from your code. One should never begin by having a pattern and then trying to stick to it.
 
that being said... I agree, that stings a little
 
@Jeeves you dead?
 
@PeeHaa Nope. Not that I know of...
 
3:17 PM
@Jeeves Why didn't you answer @fapore?
 
@Jeeves you alive?!!!!
 
I think back in the day I found "conquistador spatula" without the quotes as a googlewhack
About 46,000 results :(
 
@Jeeves y u no alive?
 
!!version
 
3:21 PM
@DaveRandom Thank you, Dave. So basically I should use a PageVerifier interface, with various implementations if needed (like CurlPageVerifier, GouttePageVerifier, GuzzlePageVerifier etc.) and pass the Page object as well as other objects in methods: like ->verifyPageIsUp($page) or ->verifyContainsElement($page, $element) etc?
 
&&
 
well, horizontally it's not that bad
 
26 messages moved to bin
 
Gon
\o/
 
Clean up on aisle 11
 
3:28 PM
and it really is just retribution that @Gon looks like they can't write
 
Filthy room-elevenses
 
Anonymous
xD
 
> filthy hobbitses
 
!!should I procrastinate or work on my project?
 
You should work on my project.
 
3:29 PM
Jeeves is dumb though
 
I don't wanna work on your project. asshole
 
Gon
On Jeeves' project...
 
2/3
 
Anonymous
@Fabor back off..
 
3:29 PM
^ :)
 
James, protecting Gf v0.1? :P
 
Gon
we should str_replace("my", "your", $message); in Jeeves
 
Not sure bots understand chivalry.
 
Gon
which too would be sometimes inaccurate...
 
@Gon Yeah. Fix it please
 
Gon
3:30 PM
k, gimme a minute!
 
Anonymous
@Fabor You jel?
 
Didn't Chris write the cloud to my butt extension?
 
you have a butt extension?
 
Pretty sure he did or at the very least some ports
 
Gon
17 secs ago, by Leigh
you have a butt extension?
 
3:32 PM
butt++
 
@Leigh nice intervention
 
No intervening with my butt please.
 
!!should I come or go?
 
You should come.
 
3:37 PM
Well, that's decided. Thanks @Jeeves
 
@salathe You're welcome!
 
Anonymous
!!should I come or go?
 
You should come.
 
Gross jeeves
 
clearly biased
 
3:39 PM
!!should @PeeHaa come or go?
 
@⁠PeeHaa should go.
 
Anonymous
The deaf only know one song.
 
:D
 
haha. not that funny
 
3:41 PM
@IamZesh sounds probably-good (no time to really analyse the business problem atm)
 
is there a simpler regex for a date? [\d]{4}-[\d]{2}-[\d]{2}
 
!!should I come or go
 
You should come.
 
!!? simplest regex date
 
Search for "simplest regex date" (https://www.google.com/search?q=simplest+regex+date&lr=lang_en)
• Regex to validate date format dd/mm/yyyy - Stack… - This regex validates dd/mm/yyyy , but not the invalid dates like … Regular expression is the best t… (http://stackoverflow.com/questions/15491894/regex-to-validate-date-format-dd-mm-yyyy)
• Regex date format validation on Java - Stack Over… - It is possible to do date validation in regex. … SimpleDateFormat format = new SimpleDateFormat("yy… (http://stackoverflow.com/questions/2149680/regex-date-format-validation-on-java)
 
3:47 PM
> ^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2‌​])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?‌​(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[‌​1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})‌​$
hmmmmkai
 
Gon
cough
 
Hi Guys, a quick question for you, can't find online what's wrong, I updated MySQL to 5.7 and when I do mysql --version I get 5.7 but on phpinfo I still have 5.5 any idea why ?
 
Wes
@FélixGagnon-Grenier 3v4l.org/QQBLO
 
@FélixGagnon-Grenier ah thanks, just what I was looking for
=)
 
:p
@Wes thanks but no thanks, it's for validating a route before php gets it. I don't really care that it's a valid date, just that it has the correct number of numbers
 
Wes
3:55 PM
and how is that not doing that
 
@JonathanLafleur: Could it be because you didn't restart your web server or php service?
 
I mean, it's for feeding routes to fast-route
 
@MarkWeiman tried to restart the whole web server still no result.
 
'/beautiful/url/with/{date:[\d]{4}-[\d]{2}-[\d]{2}}'
 
Gon
FastRoute?
 
3:59 PM
!!packagist nikic fast-route
 
@FélixGagnon-Grenier Usage: !!packagist vendor package
[ nikic/fast-route ] Fast request router for PHP
 
@DaveRandom Ok, thank you for your help!
 

« first day (2083 days earlier)      last day (2862 days later) »