« first day (1754 days earlier)      last day (3194 days later) » 

3:00 PM
Yeah, I'll poke again in a few hours and wait till tomorrow. If nothing again I will just leave some feedback on a review site.
 
@rdlowrey o/
 
@Riccardo990 You tell me. You're the one using it
 
user895378
Github has been intermittently very slow to respond for me since late last night. Anybody else experiencing that?
 
Wow they deleted the ticket.
 
@kelunik Still doing something wrong with my namespace trailing slash. hastebin.com/ekufebecat.coffee :P
 
3:03 PM
@Fabor is there a CAN-SPAM equivalent in the UK?
 
@Duikboot "filp\\whoops\\" instead of "filp/whoops". :P
@Duikboot Nope, actually, "filp/whoops": ">=1.1.2" has to move into "require" instead of "autoload" ^^
 
Hmm ok then I was right, I thought I did something wrong because I saw:
Fatal error: Class 'Whoops\Run' not found
 
Hi guys
Can anyone look what's wrong with my code?
http://codepad.org/pwfqRfqI
 
That's indeed my stupid mistake, thanks kelunik.
 
I am checking if on a certain date, user's age is between 16-18 but it's not working well.
 
3:06 PM
1) Use DateTime 2) Accept min/max range arguments, rather than a string.
 
@Rizwan that's an interesting usage of whitespace... o.0
 
function is_age_allowed(DateTime $birth, DateTime $event, $minAge, $maxAge) { }
 
Ok, let me try
 
@Riccardo990 What does the fox docs say
4
 
user895378
@PeeHaa hahahaha
 
3:09 PM
;-)
 
So, apparently we need to create an API doc generator and call it Ylvis
 
@Orangepill Dunno. I am only mildly invested in this.
Left a review on trustpilot with all the details.
Should I create another ticket to ask why my original ticket was removed? :P
 
Hi
 
Hi
 
3:14 PM
Hi
 
Anonymous
Hi
 
user895378
Hi
 
Hi
 
Abe
Hi
 
Anonymous
ok, it's broken now.
 
3:16 PM

Abe, get out.

1 min ago, 1 minute total – 7 messages, 7 users, 0 stars

Bookmarked 5 secs ago by Dan Lugg

4
 
Yeah stupid Italian
 
Abe
lol
 
Aw!
Dafuq??
 
Why am I getting a PDO error?
`$stmt = $db->prepare("SELECT * FROM product WHERE category = 0 LEFT JOIN system USING :type");`
 
Anonymous
@Rahul ask pdo.
 
Abe
3:17 PM
who is this pdo guy
 
pdobear.
 
oh
 
Abe
lol
 
fuck
 
SELECT `error` FROM `pdo` WHERE `my_query` IS BROKEN
 
3:17 PM
I've been discovered
 
Amidoingitrite?
 
Abe
@PeeHaa requires animation
 
But anyone know?
`$stmt = $db->prepare("SELECT * FROM product WHERE category = 0 LEFT JOIN system USING :type");`
 
Is it a post-slap or pre-pimp hand?
 
Abe
but yes :P
 
3:18 PM
@Rahul what says the error?
 
@Fabor GTH gesture
Because pizzabakers love gestures
 
I've also tried (:type)
 
@rizwan Why not just use datetime
 
can anyone help me with my regexp?
 
Abe === wes?
 
3:20 PM
basically the one I have for SEO URL matches everything, included css and js files
 
Abe
@MadaraUchiha ya
 
function is_age_allowed($dob, $event_date, $age_limit){
    list($min_age, $max_age) = explode("-", $age_limit);
    $edate = new DateTime($event_date);
    $bdate = new DateTime($dob);
    $diff = $bdate->diff($edate);
    return $diff->y >= $min_age && $diff->y <= $max_age;

}
 
@Fabor You can and should make a data protection info request - gist.github.com/Danack/fb8de0a48391ea65ad10
 
when a css file is requested it gets parsed by php and prints wrong mime
 
@MadaraUchiha Just install the wes finder user style script ™
 
3:21 PM
@rizwan ^ something like that should work
 
I'm trying with this regex but doesnt work: ^(.*)(?!\.css$|\.js$)[^.]+$
can anyone help me?
 
Anyone going to Laracon next week in Louisville, Kentucky?
 
@PeeHaa To be fair I've thought about writing such a script for a while now
 
Abe
@MadaraUchiha i feel so important
 
heh nice @Danack, bookmarked for use later if they start responding.
 
3:21 PM
@Manulaiko It works just fine. It doesn't do what you expect it to do perhaps ;)
 
Abe
<3 guys
 
@MadaraUchiha Works great
 
@Fabor you should send it straight away - they have 40 days to respond...
 
Anonymous
I want to open-source my classified-ads website, which I am using currently just to get some review/improvements .. but I'm afraid of any harsh critics :/
 
3:22 PM
@DavidGraham flagged as offensive
:P
 
even though I like Lumen (microframework) more
hahah
@PeeHaa
 
@DavidGraham you're looking for sympathy?
 
user5020521
@PeeHaa there is non a valid reason for me to use it
 
@Danack I submitted a new ticket asking why previous one was removed. As soon as I get a response (or lack of) I will send that one.
 
so none will help me right?
 
3:23 PM
Why are folks so uppity about Laravel? lol
 
@Riccardo990 Thought so ;)
 
The full code and error is there, pastebin.com/RUibxk6A
 
@DavidGraham Because you either have to be an asshole to use it or you become on by using it
 
3:23 PM
Not sure which way around it is :P
 
Like "artisans" don't want to see it any other way?
And don't want to create packages for the whole community
stuff like that?
I like Laravel, the framework taught me a lot of things
 
@PeeHaa Not something specific to wes
 
@rahul $stmt->execute([':type' => $type]);
 
I left it though, started using Lumen, because I dont like Active Record pattern
 
Use whatever works for you.... @DavidGraham
 
3:25 PM
yeah
 
But something that tracks users by their ID, rather than by name, and gives you the ability to give your own nicknames
 
As long as you understand it's not the best thing since sliced bread and argue about the fact :-)
 
So @Abe appears something like Abe (a.k.a. wes)
 
@Orangepill Thanks, but PDO doesn't require the :.
 
@rahul colon at the beginning of the key for the array passed to execute
 
3:26 PM
It's not required.
 
@MadaraUchiha Yes it does that and I marked it red for extra drama
 
Yesterday people in the chat were talking about how they don't like Mysql. What's wrong with MySql?
 
@DavidGraham You mean retardsql?
 
Is it the type of join I used?
 
@PeeHaa Oh, you already have something like that?
Link?
 
3:26 PM
I tried FULL OUTER JOIN also
 
@PeeHaa yeah, I mean, what exactly is bad about it? And what do people prefer over it? (with php)
 
@Rahul This is always useful
 
@Rahul you wouldn't be able to tell from all of the examples here
 
First time I stared using Mysql I picked up the book "High Performance Mysql" and I liked the innodb
 
.signature.user-4251625::after { content:"(A.k.a. Wes)";}
.signature.user-4251625 { color: red; }
Just that ^ in a userstyle @MadaraUchiha
 
3:28 PM
@DavidGraham missing features and it falls over and dies.
 
@PeeHaa Ah, no, I'm talking about something a bit nicer, with an interface and all
But that also works well
 
@Danack even since Oracle has taken the helm on it?
@Danack what do you prefer to use instead?
postgres?
 
Oh I use it - I just acknowledge it's short comings, and will one day move to postgres.
 
@DavidGraham sql is actually kinda a standard softof and mysql looks at the standard and does the opposite thing
Also acid
 
innodb is acid
 
3:29 PM
Since when?
 
it's not?
acid involves transactions, right?
 
@DavidGraham actually, why did you have to move from laravel to lumen to avoid having to use active record?
 
Abe
@PeeHaa it is, since the beginning, afaik
 
@Orangepill Thanks, that worked fine :)
 
And that's one of the reasons we call him, Pee-'Not good with databases'-Haa
 
3:32 PM
@Abe Uhhhm nope. Not afaik
@Danack ;p;
 
@Danack In lumen, I can easily disable it. So no performance hit.
 
Abe
@PeeHaa as far as i can tell, it always supported transactions with all proper isolation levels, foreign keys and so on
 
@DavidGraham Why can't you avoid using it in standard Laravel? i.e. just not use it in your code.
 
Postgres ftw
 
3:33 PM
(I know not much about laravel so that may be a dumb question.)
 
How come this doesn't work either, what's the syntax error?

$stmt = $db->prepare("SELECT * FROM product WHERE category = 0 INNER JOIN system ON product.type=system.(:type)");
 
@Danack I can. But I suppose I like the idea of more fully disabling it. Then there's things in Laravel (like the Cashier) that use Eloquent as well that I don't need. Also, lumen is much faster in routing and such. I'm more of a micro-framework kind-of-a-guy.
 
@ircmaxell wuzzat?
 
3:35 PM
Or this:

$stmt = $db->prepare("SELECT * FROM product WHERE category = 0 INNER JOIN system USING (:type)");
 
@ircmaxell is always mystical
 
What am I doing wrong?!?!?!??
 
@Rahul Programming.
 
@MadaraUchiha a photo from 240,000 miles from the moon (about 500,000 miles from earth)
 
@rahul because type is not a value it's an expression
 
3:36 PM
It's a set sql thing?
like order?
 
@PeeHaa looks like it's still like that...so yeah the acidity of the DB doesn't extend to tables.
 
@rahul prepared statements separate the data in your query from the structure of your query so they can be evaluated separately by the db. By passing in a field name or expression as data it is being treated like data and is being quoted and escaped.
 
user5020521
@PeeHaa have you taken a look at my code???
 
@Riccardo990 Why do you have three question marks???
 
Anonymous
does using unset($someArray) after the value of $someArray is no longer needed, has any impact / benefit in memory optimization? atleast compared to the overhead of calling the unset() function itself?
 
3:41 PM
@Danack cc @Abe
 
@Orangepill Then how is 'type' an expression?
 
Anonymous
I know it depends on the value the array holds, but still curious to know..
 
Abe
@PeeHaa ?
 
@Rahul it's a column name... not data
 
Abe
@samaYo if array is big and that's the only reference, it is certainly a good thing
 
3:43 PM
So got a response and this other guy who seems a lot more competent has stated that they have affiliates who they share information with but should abide by the same rules as them. So they need to investigate and have asked me to forward the email.
 
cool.
 
Funnily the original guy was a "Manager" and this competent guy is just a "representative".
 
@Orangepill Walk me through this, I've made a few changes so terms have meaning.

$stmt = $db->prepare("SELECT * FROM product WHERE category = 0 INNER JOIN system USING (:style)");
$stmt->execute([':style' => FILTER_SANITIZE_NUMBER_INT($_GET['style'])]);

I'm on localhost/x/systems.php?style=1 and I get that PDO error.
 
It wouldn't be unheard of for people in the company to be illegally skimming off contact details and selling them....
 
@Rahul you are telling the database SELECT * FROM product WHERE category = 0 INNER JOIN system USING ('1') which doesn't make sense
 
3:46 PM
My tables:
product:
id, name,desc,etc,etc,etc,etc,etc, category, style
--
system:
style, name
 
@Rahul this is not how join works
 
don't parameterize it just do $db->query("SELECT * FROM product WHERE category = 0 INNER JOIN system USING (style)");
 
@NullPoiиteя what should I be using sir?
 
@rahul if anything should be a parameter it should be the value for category (the 0)
 
@Danack Yeah, anything with the word "affiliate" gets immediate "scammy" feelings from me. I would normally let this thing slide but maybe because it's Wednesday I pursued it.
 
3:49 PM
@Orangepill You're making no sense? (:style) is because I'm executing :style as $_GET['style']. Without : it wont recognise the PDO execution phrase.
I think I get where you're coming from
how do I specify what my style is then?
 
hello
 
Hello, I am Galstaff, sorcerer of LIGHT!
 
I'm trying to do.. SQL database insert, but it does not work. I've been trying to do that for 2 days. Can anyone tell me if something is wrong? with my code? Or its database's fault
Its really weird
 
@brata You should write your question before trying to get someone to agree to help you. If you write it in notepad, and then copy + paste it in here, even if no-one can help you now, you will have the question written down and you will be able to re-use it elsewhere aka sol.gfxile.net/dontask.html
 
$something = "INSERT INTO topic1 (thread_name,thread_poster,board_name) VALUES (:thread_name, :thread_name, :board_name)";
I know there iS NOTHING WRON G. phpcodechecker.com
I checked php multiple times here
I've been learning PHP for 6 months
I'mn so fucking mad
 
Abe
3:58 PM
you have :thread_name appearing twice
 
<?php
session_start();
header('Cache-Control: no-store, no-cache, must-revalidate');
require_once('PDO_DB_connect.php');
$board_name = $_POST['thread_name'];
if(isset($_POST['submit']) && isset($_POST['thread_name']))
{
$something = "INSERT INTO topic1 (`thread_name`,`thread_poster`,`board_name`) VALUES (:thread_name, :thread_name, :board_name)";
$query = dbConnect()->prepare($something);
$query->bindParam(':board_name',$board_name);
$query->bindParam(':thread_poster',$board_name);
$query->bindParam(':board_name',$board_name);
erhm
Do you have skype?
I've inserted there sae values cuz its more simple
same
 
inserts do not return rows
 
they do
 
also, turn on error handling
 
Okay
 
Abe
4:00 PM
you can't use the same placeholder twice
VALUES (:thread_name, :thread_name)
two times
 
ah
 
Abe
also :thread_poster is never used, and that's an error too
 
Wait
I see many errors there
 
allright
 
4:03 PM
@brata exactly. And each one tells you what's wrong with a particular section of code
 
It works now.. thank you
Working ..{code ? }
<?php
session_start();
header('Cache-Control: no-store, no-cache, must-revalidate');
require_once('PDO_DB_connect.php');
$board_name = $_POST['thread_name'];
if(isset($_POST['submit']) && isset($_POST['thread_name']))
{
$something = "INSERT INTO topic1 (`thread_name`,`thread_poster`,`board_name`) VALUES (:thread_name, :thread_poster, :board_name)";
$query = dbConnect()->prepare($something);
$query->bindParam(':thread_name',$board_name);
$query->bindParam(':thread_poster',$board_name);
$query->bindParam(':board_name',$board_name);
I'm making stupid mistakes,... Inserting to DB isnt new to me,...Thank you all
 
Sauce from the currently starred joint.
Also this might get some use.
 
@Orangepill This is the answer I was curious about earlier: stackoverflow.com/a/4478721/1110941
 
4:14 PM
@NullPoiиteя you got me with that
I was like "wait, what?" till I noticed the scrollbar
 
Abe
btw, do phpunit betas support Throwable now?
 
One of the comments on the answer says "Getters and setters are not a tool for enforcing type in dynamically typed languages like PHP" without any further elaboration.
 
Older people of this room, was the whole Y2K thing really that big of an issue? ping @rdlowrey :P
 
He would have been in school....
 
4:18 PM
Hah! I love that @rdlowrey is our go-to old guy
 
I gotta take a jab at his age though :P
 
I'm pretty sure I'm roughly the same age =\
 
so you are also 40 years old :P
 
:P
 
@Fabor It didn't lead to an issue, but only because a huge amount of money was spent on modernising systems.
If that money hadn't been spent, there would have been a lot more problems.
 
4:20 PM
@NullPoiиteя I didn't think he was that old
 
What was the issue? If I remember it mostly boiled down to YY instead of YYYY? Or is that over simplified?
 
No, that's about it.
 
Amazing.
 
@Abe Sorry was on Phone couldn't link properly chat.stackoverflow.com/transcript/message/24905002#24905002
@Fabor Hey at least you are in time for the y2k38 apocalypse!
 
Abe
dev.mysql.com/doc/refman/5.7/en/cannot-roll-back.html yeah seems that certain things aren't acid yet @PeeHaa
 
4:25 PM
@PeeHaa lol
 
@Abe I am pretty sure you can just drop that yet ;)
 
Abe
lol, yeah
 
@Riccardo990 that code of earlier this afternoon?
 
@Rahul SELECT * FROM product INNER JOIN system USING (style) where style = :style and category = 0
 
How nice. Chrome has brought in another rotten update. Crash on start. Or is it a feature?
 
4:30 PM
@peehaa it's a security feature to keep you safe from the internets
 
Abe
@PeeHaa do you have skype/hangouts/stuff? i feel i don't have enough communication means to bug you :D
 
@Orangepill Well it fails, because I has to start IE now :P
@Abe I used to have Skype, but I'm not sure I remember my credentials
 
Abe
lol
 
I think I still have hangouts somewhere
 
I used IE and windows last night for the first time in a long time...
 
Abe
4:32 PM
twitter would be ok?
 
it was worse then I remembered
 
@Abe Yes, but if needed I could dust of hangouts
\o/ new chrome update
 
Abe
OK (365 tests, 1989 assertions) \o/ he lives again
@PeeHaa will write you on twitter later :P
 
@Abe kk
 
Abe
now i need alkaseltzer
 
user895378
4:50 PM
32 mins ago, by cspray
Hah! I love that @rdlowrey is our go-to old guy
 
user895378
-________________-
 
@rdlowrey we'll switch you to "deprecated" soon
 
user895378
Yeah, pretty much. I've lately been filing a lot of bug reports for my achilles tendons and knee joints.
 
@rdlowrey Note how silent I was.
 
user895378
Getting a lot of "can't reproduce," and "won't fix" tags on those reports. It's disheartening.
 
4:54 PM
Morning
 
Jul 22 at 16:27, by Dan Lugg
I can't figure out how to reproduce.
 
@rdlowrey Yeah my body feels about 50 too :(. Sports are clearly not good for you.
 
@rdlowrey I keep getting "not a bug"
 
user895378
@Fabor They really aren't. It's so frustrating when doing the same things you've always done starts resulting in injuries that don't get better.
 
@rdlowrey :/
 
4:56 PM
@DavidGraham yeah at a minimum enforcing type and business rules are something that I have to tackle.
 
@rdlowrey Worse when I watch all these kids (18-24) running up and down that I gotta keep up with. Recovery-- Pain++ Ache++ Agility--
 
user895378
^ that
 
user895378
I have a friend who's 42 and started doing testosterone shots about six months ago. He swears it's the greatest thing ever.
 
user895378
Only problem is you have to cycle off it and take pills to balance out the hormones or you'll turn into Bob from Fight Club ... not sure that's worth it.
 
@rdlowrey I would argue that's definitely not worth it.
 
5:01 PM
Yeah, allow that. I'll age fast and leave this world a decrepit but natural corpse.
 
Testosterone + adderall + high electrolyte and protein diet
And water. Lots of water.
 
I gotta climb the highest mountain in Europe in 15-ish days
 
user895378
@cspray yeah I didn't think so either. Had a beer with him recently and he was saying how it's literally like having PMS when cycling off.
 
@rdlowrey Yea, and I can already be pretty irritable at times
 
user895378
FWIW I've actually had success before when I tried to max out my diet with foods known to promote testosterone production.
 
5:03 PM
Ox testicles and such.
 
Any big testicles are satisfactory.
 
This is the mountain I invited you to many moons ago @rdlowrey
 
user895378
@Fabor ah nice
 
user895378
@Fabor I didn't go that far ... but I did try to grease the skids with as much avocado, broccoli, peanuts and red meat as possible. I mixed that with lots of strength training and it was as close as I've felt to 18 since turning 30.
 
Sounds spartan-esque
 
user895378
5:06 PM
It was pretty funny, actually. It definitely increased certain urges if you know what I mean.
 
lol. Lots of oysters aye? :P
 
user895378
yeah that
 
user895378
I should do that again.
 
They have Athleat in the UK. Probably a good US equivalent somewhere. Recommended.
 
user895378
Nice. It's all about the grass-fed everything ... otherwise you just aren't getting any nutrition from it.
 
5:08 PM
or better yet, grass and beer fed :P
 
user895378
</off-topic-man-stuff>
 
user895378
Back to programming. Sorry about the off-topic digression into the sadness of getting old.
 
@NikiC Shouldn't that be false: 3v4l.org/dM3NF?
 
5:26 PM
@Fabor I really wish Google was a bit better at their jobs some time. I've clicked that link and now I'm getting adverts for that site THAT I'VE ALREADY VISITED. Such a waste of their money.
 
@Danack I'm often surprised by the lack of ingenuity in regards to advertising. Even non-google, some sites where I am forced to watch adverts (twitch), i'd be happy to provide some info to narrow down the kind of adverts I would prefer to see. And stop showing me duplicates!
 
Morning
Have not been here for a while
 
yeah......watching the same ad for the tenth time.....does not make me like the product being advertised...
 
adblock? :)
 
Happy to track you across a whole manner of domains but too lazy to care about whether you've seen the advert before or not. TBH as an advertiser that would annoy me as it surely costs them money based on times shown and not based on repeats.
@PeeHaa I do use it but for some sites I turn it off to show support. @ircmaxell's blog springs to mind.
 
5:33 PM
@kelunik does if you scrap the &
 
@Fabor Meh the moment people start using static images as ads I might consider it
 
I noticed on utorrent that some ads cause some dodgy javascript to run.
 
All ads run dodgy javascript. That's the point :P
 
@kelunik surprised that it doesn't error that's what happens if you replace the expression with any literal.
 
@kelunik nope. It's parsed as ($node =& $node[1]) ?? false;
Because you can't set assign expressions by ref
Try $node =& ($node[1] ?? false); and it should parse error ;-)
 
5:43 PM
Hey guys, I've got really quick problem which I can't solve for now :(
I'm getting some html from a site, this is just a part of it:
<div class="c"> </div>
</div>




<div id="pridajkoment" class="comment">
Then I want to find this string
<div id="pridajkoment"
but PHP still gives me nothing :( My code:
strpos($text, "<div id=\"pridajkoment\"");

Please, tell me, what I'm doing wrong? :(
 
@tereško You tried the Mafia games? I played Mafia II, was pretty fun. GTA-like
 
what is the opposite of hydration as in populating an entity from a datasource
 
this strpos($text, "<div id=\"pridajkoment\""); is what you're doing wrong
 
@FélixGagnon-Grenier I know, but what's wrong there? :/
 
well. you say you're searching for '<div id="pridajkoment"'. it just so happens this string is not in that one : "<div id=\"pridajkoment\""
 
5:49 PM
@FélixGagnon-Grenier I know, but when I try '<div id="pridajkoment"' it doesn't work as well :(
 
@PDKnight works for me maybe your input isn't quite what you think it is.
 
:{ well...that's how the code looks like, it's just html, nothing more: i.imgur.com/ytM4imI.png
 
@PDKnight Don't ever trust browsers, they reorder attributes sometimes.
Use something like HTTPie to inspect the source.
 
@kelunik well...I use file_get_contents and I'm 100% sure my browser shows it great ...I'll try something
 
@PDKnight As said, don't trust your browser there.
 
6:05 PM
is there a way to un close vote a post?
 
@Orangepill If it is closed there is
 
You closed it wrongfully?
Ah yes it is
Reopened
 
:)
 
6:10 PM
@PeeHaa is that a superpower you get at 20K?
 
@Orangepill I kinda would have expected you could do the same
Maybe I'm just special :P
 
@PeeHaa where is the ui for it?
 
@Orangepill Right at the place where you normally would click close
 
I will look for it there next time. Thanks though
 
np
 
6:17 PM
@kelunik Oh hell yeah, you were right! Many thanks and thanks to all who helped me!
 
Greetings
 
Abe
@SergeyTelshevsky old but gold
 
@Abe I know it must've been posted here multiple times, but no one should miss this :)
 
cool..
if like if condition
 
@JoeWatkins Getting a nice lightening show right now?
 
6:54 PM
I am
was ... little dog can still hear thunder and is hiding under a table ... so might come back ...
 
Check out lightningmaps.org/realtime next time it's near
 

« first day (1754 days earlier)      last day (3194 days later) »