« first day (2475 days earlier)      last day (2698 days later) » 

14:14
which way will this initiative go down in flames meta.stackoverflow.com/questions/353845/…
Ah good they are going to to care of new money users
Screw all old users
And yes I only read the fist sentence :D
read more, it gets better(?)
@PeeHaa NOT ALL NEW USERS (tm)
shrug, I think it's a good idea in form, but in practice, it may not work out...
@PaulCrovella I actually like the idea, but agree with the top three answers
14:19
there are so many ways for it to not work out, and only one way for it to work
Finally set it up
I went with Xampp instead
@PaulCrovella SO could... you know... fucking listen to their fucking users for once who actually deal with it daily when they make suggestions
@PeeHaa there are only three answers
Because I know you were all wondering...
@PaulCrovella :D
But that time is long gone
They just have an idea based on making more money and that is going to get pushed. No matter how many people say it's a bad idea. And telling them better ideas.
Meta is liking voting in one of those fakes democracies
It feels like you are doing something, but it's all /dev/null anyway
14:23
xampp might cause problems for you in the future, especially if you use your computer for multiple things.
oh great
I look forward to it
What do these other things include?
@PeeHaa couple ideas I had recently: make new users wait at least 24 hours after registering before they can ask a question; make all new questions from any user wait 24 hours until they appear to others
I went the VM route at home because my computer is first and foremost a gaming computer, and I don't want the projects I work on interfering with that.
@PaulCrovella Both have been suggested already in the past
Anonymous
@PaulCrovella unless rep is involved, I can't imagine anyone wanting to volunteer
14:24
iirc
ah, yeh i don't do anything else on here
just wurrrk
one issue with xampp is that you get what they give you. so if they give you php 5.6, you're stuck with php 5.6 and you can't upgrade to php 7.1 if you want to.
sometimes ;)
I'm sure you can choose...
@JayIsTooCommon this touches on one of the ways this can fail - the wrong people volunteer
@PeeHaa no way either would happen, but man it could help
yeap
14:26
@Daruchini here's my VM tutorial I was talking about earlier. Mind you, I set this up using the builtin PHP web server SPECIFICALLY for @Patrick's tutorial. After getting PHP installed, you can use Apache or whatever you decide.
So does a better how to ask / new users page (also already suggested in 1000+ different ways)
another alternative is using @Jimbo's vagrantbox that has php 7.1, apache and xdebug all set up and ready to go with phpstorm. You'll need to download and install virtualbox and vagrant.
Anonymous
@Daruchini i was on the edge of my seat
@PeeHaa the mentorship thing is basically that, but with volunteers writing it out for individuals manually each time
i'm sure it'll scale fine
@Daruchini using @Jimbo's vagrantbox is probably your best option (in my opinion). It works really well.
Anonymous
14:29
Just take everything with a pinch of salt, as it's @Jimbo
^ this is true
also, you'll that you have to fix it using one of my commits... they haven't been merged to master because I need to squash them >.>
Anonymous
GH allows you to do that via UI remember.
@JayIsTooCommon @Jimbo wants me to learn how to do it manually, and he's right, I need to learn how to do it.
Anonymous
nerd.
14:32
@JayIsTooCommon explains me perfectly.
:P
I played Dungeons and Dragons last night
nerd
WoW.
I started playing Warcraft 2 when I was nine.
and how old are you now?
14:34
in other words, I was eagerly awaiting WoW years before it came out (after it was announced) :P
when I was nine I think I was playing Blaster Master
the math game?
When I was 9 I was pondering the great questions
What's for dinner
I think I was doing outrun and paperboy and frogger?
14:36
frogger!
what a game
@PeeHaa paperboy in the arcade? with the bike handlebars controls?
math blaster is what I'm thinking of
@PaulCrovella c64
you missed out then
I missed ou on a lot of actual arcade play sadly :(
14:38
they straight up mounted a set of handlebars to use as a joystick
Sweet
niiice
Anonymous
9 - GTA 3, like a real man.
GTA Vice City
Goldeneye
14:38
grimy-ass rubber grips and everything
Get the giant dildo from the jail cells and slap people silly with it.
Anonymous
haha, yes
god I miss that dildo.
7
Anonymous
Same. There was a dildo in GTA Vice City as well
best thing about the star list is lack of context
FélixGagnon-Grenier @thegreatrupert yippee ki yay eh https://www.youtube.com/watch?v=XpoYWROw5BY&feature=youtu.be&t=355
Anonymous
@FélixGagnon-Grenier you suck
haha, on the plus side people will now know who I am. The not so positive is now what do they think of me...
we're doing evening a little early today ... just a heads up ...
I haven't done last night yet
14:43
you'll have to squeeze it in at the beginning of next week now ...
Anonymous
hey Joe, were you a yes for NW ?
-2
A: Stack Overflow Mentorship Research Project

Patrick SimardI think those are great ideas but will probably have a low rate of success ... or a high rate of "skipping". I think that the best way to avoid bad questions would be a "forced to watch" video of 2-3 minutes before they can ask a question. The video should look a lot like those at lynda.com. A wa...

I told the wife ... nobody knows how wives work, you tell them stuff, and then later, things happen ...
lol looks like my idea is not apreciated >.<
I'm pretty sure we got the day to come for a meal, pretty sure ... but I'll check tonight when she's home ...
14:45
I still think a video would be a great way ... people don't read a lot.
Anonymous
@JoeWatkins if you tell her I'll be there, I'm sure she'll be more keen
And first timers are in a rush to get answers so a forced pause and a 2-minute video would probably lower the rate of first timers bad questions.
@PatrickSimard force them to wait a day before their question is made public and they can't use SO in a rush anymore
@JayIsTooCommon we have children to look after at home ...
Anonymous
@JoeWatkins bring them along, @bwoebi can entertain them
14:49
they can't come, they ruin everything ...
he's good at asynchronous multitasking, it'll be fine
Anonymous
@JoeWatkins :')
Anonymous
Imagine Bob as a baby sitter..
I imagine bob as secretly mildly evil, so he'd force them to write docs for him or something
lol @PaulCrovella A 2 minute videos sounds less invasive hehe
user895378
14:53
Hi folks. Brief moment of escape from work jail. @kelunik I'll get with you in the next couple of days to figure out amphp.org domain name transfer details. Sorry for being absentee
Anonymous
o/
hello pretty
user895378
scheduled to auto-renew Aug 3
Anonymous
Have you revealed your employer yet?
Anonymous
@JoeWatkins o/
14:54
@rdlowrey hey handsome
user895378
My work incarceration continues
Anonymous
@PeeHaa o/
user895378
@JayIsTooCommon yeah it's a company called BounceX
isn't that a fabric softener?
user895378
anyhow, off to go meet a job candidate for coffee, later all o/
14:55
wait, don't tell me, I can guess ... they make pornographic versions of normal footballs, right ?
user895378
@PaulCrovella trampolines for millenials
Anonymous
@JoeWatkins That would be BounceXXX, silly.
@rdlowrey You can keep paying for it if you want to. :P
What tools do you guys use for source control?
I've come to drink from the fountain of knowledge
@rdlowrey I have no issues paying for it. I manage around 50 domains already.
Anonymous
15:06
@Daruchini git
@JayIsTooCommon hipster
Though if @kelunik wants to pay for it who am I to say no :-P
@Daruchini cp, vcs, cvs, svn, hg, bitkeeper, monotone, git... probably some others I forgot
Mercurial?
@Daruchini that's hg
15:09
TortoiseHg , any good?
most people here stick with git
@Daruchini dunno, i haven't touched that since it was new and awful
@PaulCrovella well I've just downloaded it, and can confirm it looks awful
i try to stick with git whenever I have the choice
@tereško noted. Thanks
15:10
hg is good corporate environments, when you do not trust your developers
I guess my dev lead is trying to say something to me then...
Isn't Tortoise a Windows thing? It's kind of expected to be awful
@Daruchini or he used it in the past .. or watched some lecture
They've asked us to make a web tool, IT'S NOT MY JOB TO BUILD SYSTEMS!
@tereško yeh I think he's used it in the past. I'd prefer git, I've got a free account with private repos
the ominous "they"
@Daruchini git does not have free acounts
I think you are confusing github and git
15:12
Oh yeh, I am, oops
I assumed you were just shortening it
See, would you trust me building a web system... lol
nobody was shortening anything
I know, my mistake
@Daruchini So ... what is your job then?
@Narf data science
oh, yer boned
15:14
Working for a medical health outcomes company
also, keep in mind, that all options for using Mercurial (either self-hosted or cloud) will require $$$
@tereško I thought it was free
client are free .. I am not sure about servers
@Daruchini Well, that's a thing no manager understands :)
right best get back to it, thanks for your help guys. Have a nice whatever time of day it is o/
15:21
have fun storming the castle
e v e n i n room
15:37
evenins lads
o/
@tereško Can't tell if serious :P
@PeeHaa wait... chat-wide flag notifications will have to go
Anonymous
why?
you want to get inundated with them from a mess of new people?
15:48
@tereško A political youtube channel :P
:D
eh ... as much as I would like it, I dont know shit about politics
I would have to spend entire next year just reading books to even get half-way-there
@PaulCrovella Yes, that will only get worse
ping @Trowski
@PeeHaa pong
Quick question before i actually start debugging my code. Am I somehow supposed to "isolate" prepares/executes in postgresql?
I am doing two queries at the "same" time and it seems like it tries to execute on the wrong query
Terrible query incoming:
> [2017-07-26 15:50:00] error Amp\Postgres\QueryError: ERROR: bind message supplies 52 parameters, but prepared statement "
SELECT channels.hash, items.provider_id
FROM items
JOIN channels ON channels.id = items.channel_id
WHERE (channels.hash = $1 AND items.provider_id = $2) OR (channels.hash = $3 AND items.provider_id = $4) OR (channels.hash = $5 AND items.provider_id = $6) OR (channels.hash = $7 AND items.provider_id = $8) OR (channels.hash = $9 AND items.provider_id = $10) OR (channels.hash = $11 AND items.provider_id = $12) OR (channels.hash = $13 AND items.provider_id = $14) OR (chan
The other query I am running does actually need 60 params, but not the one I am executing
The fact that the error message is being a liar if I read it correctly makes me think it's not me, but want to confirm before i dive in it
@PeeHaa Does the other query have the same beginning, only more parameters?
15:58
yes
Hey guys
@Trowski That reads like you know what's going on? :)
@PeeHaa Then I think you hit something I wondered about: statement names can only be so long, and it's using the wrong prepared statement. I should hash the sql and use that hash as the name instead.
@Trowski oooh
!!? postgres prepared statement
Search for "postgres prepared statement" (https://www.google.com/search?q=postgres+prepared+statement&lr=lang_en)
• PostgreSQL: Documentation: 9.3: PREPARE - Description. PREPARE creates a prepared statement. A prepared statement is a server-side object tha… (https://www.postgresql.org/docs/9.3/static/sql-prepare.html)
• PostgreSQL: Documentation: 9.6: PREPARE - Description. PREPARE creates a prepared statement. A prepared statement is a server-side object tha… (https://www.postgresql.org/docs/9.6/static/sql-prepare.html)
16:01
is it 64?
Seems to be much longer actually
perhaps 256
I could try to find where it creates it and dump the name
I might also be on an older postgres version
That error message with the query I think is showing the "name"
user4962466
hey guys
user4962466
what do you use for database migrations apart from doctrine ?
user4962466
16:03
raw sql files ?
@Trowski Nope. Otherwise it would cut of exactly at the end of the query
Could be coincidence sure, but
@0x13a magnetized needle and a steady hand
@0x13a basically, yes
@tereško I am going to ask if those guys can order in a Define C Mid windowed
@0x13a I use phinx lately
16:04
@Fabor do you really need windowed?
Anonymous
@0x13a phinx
Not really
@Fabor it's not tempered glass, it louder and you need to actually worry about what parts look like
Lemme try hashing it as a test @Trowski. sec
@Trowski ermagerd.
16:06
and it's Mini, not Mid
(supports mATX and mITX boards)
HALP
kk resent message. 11pm though so they wont see it for a while
@Danack Did I do a bad thing?
how do I do cross-compatible GROUP_CONCAT() ?
> statement names can only be so long, and it's using the wrong prepared statement
^^ was responding to that.
I should have known someone would break it with some sort of terrible query.
16:09
is there any way to do a try catch inside a while and make the while loop be the conditional catch?
\o/
Duplicate terrible query even…
I don't really know if that made sense...
Now I'm proud
@McStuffins what exactly is the problem, taht you are trying to solve?
16:11
I am working with the amazon api, but when a request is throttled, there is an exception thrown.
@Trowski Tbf it will break with any moderately complex query too :)
I want to be able to try again each time after a specified sleep timer
washes hands in innocence
@PeeHaa Only if you prepare almost the exact same query.
I knew it was a problem and was on my to-do list. I assumed sha1 is sufficient here, but I wanted to check, which is why I never did anything.
@McStuffins how large is that time?
16:12
Yeah. Running it now with sha1
one second
maybe a do while?
Oh wait. i don't. Need to update in more places I think
hmm ... then the try-catch in a while will work just fine
It's not like user input should be designing your prepared statement, so sha1 shouldn't have issues.
Agreed
16:14
while ($thing = $thingsToDo->next()) {
    try {
        do($thing);
    } catch (DoS $e) {
        usleep(1050);
    }
}
something like this. @McStuffins
but keep in mind, that this will start running in execution time limit at some point
@PeeHaa Did you find how long a statement name can be? That was the other question I had before I selected something for naming.
Nope. Was first quickly trying to track down what I missed to hash. Found it. Now back to the postgres tabs
Is there a better way to do this:

$status['UD Servers']['Plesk Web Content Server'] = ((isset($json['UD Servers']['Plesk Web Content Server']) && $json['UD Servers']['Plesk Web Content Server']!==NULL) ? $json['UD Servers']['Plesk Web Content Server'] : doCheck());
Put each statement on a separate line.
yes - don't use ternary
16:24
So basically a standard if?
I don't think ternary is that bad no? If formatted nicely.
Go kiss @DaveRandom
Weirdos
My main concern is ((isset($json['UD Servers']['Plesk Web Content Server']) && $json['UD Servers']['Plesk Web Content Server']!==NULL) ? $json['UD Servers']['Plesk Web Content Server'] :
and doCheck() is a terrible name for something that produces value
I put doCheck cause it was an internal use only ip
16:25
@tereško That actually would work. Thank you! I did not even think about that!
@Fabor have you caught that dengue fever? I heard it makes people confused about whether ternaries are acceptable or not.
$foo = isset($bar)
    ? $bar
    : 'default';
I used to have `($json['UD Servers']['Plesk Web Content Server']) ?: doCheck()`
but sometimes the $json value is 0 which would result in doCheck when actually I need 0
$name = null;
if (isset($json['UD Servers']['Plesk Web Content Server'])) {
    $name = $json['UD Servers']['Plesk Web Content Server'];
}

$status['UD Servers']['Plesk Web Content Server']  = $name ?? getSomeIp();
$foo = 'default';
if (isset($bar)) {
    $foo = $bar;
}
16:27
will isset return false for a NULL value?
@MattCowley what do the docs say?
who knows ...
Ah cool
Can I condense this down then at all, like to remove the need for the second $json?

$status['UD Servers']['Plesk Web Content Server'] = (isset($json['UD Servers']['Plesk Web Content Server']))
? $json['UD Servers']['Plesk Web Content Server']
: doCheck());
Sorry @Trowski was brute forcing :P
> ERROR: prepared statement "a12345678901234567890123456789012345678901234567890123456789012" already exists
@PeeHaa Was the query actually different?
16:30
I was creating prepared statements from the cli
Max length is 63 for the name
Yeah, so sha1 in hex is fine.
yep
<3
I could not find much for docs about it, besides generic identifiers etc max 63
Perhaps it would be a good idea to add something unique to it to allow the same statement to be prepared twice on the same connection.
That would eliminate some potential traps for users.
Could just add a simple counter I suppose?
@Trowski Just reuse the first one?
16:38
@kelunik That would add a lot of complexity, as statements are destroyed automatically on object destruction.
But that's certainly possible, yes.
/me Adds that to to-do list.
Anyway thanks for the hint @Trowski <3
@PeeHaa I assumed you were using amphp/postgres, right?
yep
And hashing works for
Feel free to PR any fixes :-D
16:41
k
I forgot another one in another package too I realize now
Mornin' PHP
Anonymous
\0
o/
16:48
\0
o/
⊚∕
Anonymous
¯\_(ツ)_/¯
it never left
16:59
Hiring is so hard sometimes :/

« first day (2475 days earlier)      last day (2698 days later) »