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

 
3 hours later…
Wes
3:43 AM
mornings
 
3:55 AM
@Sean That's interesting… could be an issue with unmasking the message. If you can repo let me know.
@Wes Morning
 
4:13 AM
Morning Morning
 
 
1 hour later…
5:24 AM
Good morning, anyone there!
 
Wes
Any internals guy that wants to have a preliminary peek at an RFC i'm writing? :P Throwski, brzuchal? :P
 
Wes
6:06 AM
 
posted on January 23, 2017

New Cyanide and Happiness Comic

 
6:33 AM
morning
 
6:54 AM
@Danack The only thing I have are the amphp.org visitor stats. But when I look at my Github followers and web pages I find via Google, a lot of them are Russian.
 
maybe interesting for @NikiC ^
 
@Gordon He already forked and worked on it. github.com/nikic/tolerant-php-parser/commit/…
 
Wes
is nikic's one intolerant? :B
mornings
 
7:27 AM
mornin Wes
 
7:38 AM
\o
 
o/
 
hello guys
any body used JWT with Symfony2.8
 
8:20 AM
Is this fast for searching these 3 values ?

SELECT shareit,id FROM shares where from='".$nick."' and shareit REGEXP 'castexsharehaha|ytlinkcastex|imglinkcastex' ORDER BY id DESC limit 15
 
morning
 
morning @Naruto
 
@kelunik all those russian hackers for Trump are on there ;)
 
mornin
 
morning
@user3304007 please learn to use prepared statements
 
8:31 AM
\o
 
o/
 
Wes
\o
 
can any of you recommend a data center provider with several locations around the world? Rackspace? Equinix? Something else?
 
ovh is very solid
they provide you also many tools for scaling, like load balancer
plus, they provide 1gps data transfer, which means you will never face any bandwith problems
 
8:43 AM
@Gordon With the way we've been messed about recently, I wouldn't opt for rackspace
 
Wes
@user3304007 your sql is an actual mess. sorry. you should format (SQL tokens should all be uppercase) your code, for your own and our sanity. does where from = even work? and no, that'll likely be slow as hell, check the IN() clause instead
 
@wes Is there a reason for "SQL tokens should all be uppercase" ?
 
Wes
it's a convention, and courtesy @user3304007
 
9:07 AM
@Sean have you notice that rackspace is very slow in recent days and returning server unavailable error?
 
what is stack overflow hosted on nowadays? media temple? rackspace?
 
Hi, Anyone has integrated Codeigniter with ms-sql?
 
What will be more proper in English: Escape from Big Ball of Mud or Quit the Big Ball of Mud as presentation title describing process of refactoring BBM application into Domain Desgined one?
 
1
Q: MSSQL query in CodeIgnitor

Harsh DalwadiI want to run MSSQL query in CodeIgnitor framework but it is throwing error like: Error Number: 42S22/207 [Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Invalid column name '1'. SELECT * FROM user_master WHERE id ="1" I'm trying to run following query: SELECT id,fname,lname,username...

 
Wes
@brzuchal run (away)? from a big ball of mud maybe? don't listen to me though, my english's pretty bad :P
 
9:16 AM
@brzuchal Escaping Legacy with Adding Tons of NEW Complexity
 
@Gordon nice but too long
 
Trading Legacy Code for Complexity
 
Out of the Frying Pan and into the Fire
 
@Gordon It sounds like exchange Legacy Code to Tons of Complexity
 
what @PaulCrovella suggested
 
Wes
9:18 AM
@bwoebi sent you a twitter PM. i've also attached my sexy pics
 
Maybe something with leawing, gosh it's hard
 
escape the big ball of mud with:
photoshopped to be more muddy?
2 days ago, by Danack
@DigantShah the query in the error message bears no resemblance to what you're attempting to do in your code. Either you've made a mistake in how you're using the codeignitor query stuff, or there is something else stupid going on.
2 days ago, by Danack
You should either find a query that is working in your code base, and look at what the difference is between that, and the code example you gave, or step through the code you are calling with a debugger, to understand what it is doing.
 
@brzuchal From spaghetti to lasagna
 
Wes
yum
 
Invalid column name '1'.
SELECT * FROM user_master WHERE id ="1"
SELECT id,fname,lname,username,email FROM user_master WHERE username ="admin" AND password ="123456"
 
9:22 AM
Escape from the Spaghetti Code Jungle :D
 
srsly - those are completely different.
 
@Patrick Actually I like that, it's like from spaghetti code to layered app
 
Wes
*ravioli
 
Am hungry also, expecially for lasagne
@Patrick THX, it fits most of things I wanted to present
 
9:28 AM
mioing
 
did someone post this yet?
.@sqlOnIce Disable all foreign keys! Why do we even need foreign keys anyway? We should be using American keys! #MakeKeysGreatAgain
 
\o v0.42
 
9:49 AM
@Gordon How much of an issue is price?
 
Weekend migration was a success, 1/2 primary sites now uses php-fpm :D (on a new spangly server)
 
@Leigh the only requirement atm is cheaper than AWS
we will get in touch with multiple services anyway, so just collecting names basically
 
@Gordon Ah, so that rules out AWS :D
 
@Leigh :)
 
OVH are everywhere ... I used them a long time ago ... they're actually a pretty big telephone company in FR, well financed ...
 
9:54 AM
yepp, thx. put them on the list already
 
@JoeWatkins They're mainly a hosting company, they launched their ISP offer just a few years ago
 
TIL
 
I'd still put Rackspace over OVH in terms of features, but also they cost a lot more too
(and in terms of support)
 
moin
 
@JoeWatkins Thank you, that was the "FRANCE RULEZ" report from Trucy, now the weather
 
9:56 AM
yomin
@Leigh I only once needed to phone them, and got a native English speaker (after couple of transfers)
it was years ago, but at the time, their mgmt was cutting edge, allowed you to choose the OS, partitioning, and all that junk ...
 
I guess I was probably dealing with a larger set of infrastructure, enough to warrant a dedicated account manager
 
(rofl, just saw on their datacentres page that they have datactentres in the same town as a nuclear plant (Gravelines))
 
oh yeah, was unmanaged, between 10 and 20 boxes ...
 
Anonymous
mornin
 
very competitive prices for unmanaged things ... at the time ...
\o
 
10:01 AM
@Trucy well, if that plant ever melts and they keep running, there is no better advertising
 
@Gordon +1
 
@Gordon That's a good point actually :D
 
they don't have anything above 28 cores ... which is nothing like top of the range
20 cores if you want 10gbps ...
pretty disappointing actually ...
and everything seems to be software raid
 
btw. @JoeWatkins i figured out whats that bullshit with travis nightly build is :D
 
Is it that the code is bad?
 
10:05 AM
ah did they fix it yet ?
 
its something strange with ICU
nope
just searched a bit and
found thats its related to ICU
 
It doesn't need fixing, it's alt-working
 
lol
Punching nazis isn't assault. It's alt-dialogue.
4
 
Also shamelessly stolen from @Sara but v. good:
define('AltTrue', false, true);
 
@Trucy My brain wont let me pronounce that any other way than how it looks in English... Grave Lines
 
10:12 AM
@Leigh I… I never read that as Grave Lines. Sounds pretty creepy
 
♫♪ Grave Lines… I know you want it… I know you want it… ♫♪
 
@JoeWatkins I'd say that aggression isn't a good answer, but sometimes, just fuck it and punch the motherfucker straight in the face.
 
play stupid games, win stupid prizes
 
@Trucy The grave lines, sounds like a creepy dystopian railway operated by the dead after dark... maybe
 
@Leigh "Next stop… HELL jk next stop is Dunkerque, our terminus"
 
10:17 AM
Terminus is a very fitting word :)
 
Reminds me of a friend who saw US tourists at Cannes with t-shirts reading "the CANNES do attitude"
(cue seinfeld theme)
 
Hey @JoeWatkins, how far off do think people would instruct me to fuck if I suggested that we expose PHP_WIN32 to userland?
 
It's such a common test, in literally millions of codebases there are people doing unreliable string comparisons to get a value at run time that was already known at compile time
 
@Danack did you discover that ansi quotes setting? treating double quotes the same as backticks?
 
10:20 AM
@Leigh Holy… and right next you've got "West-cappel"… Scotland Yard got it wrong, Jacques the Ripper was french and operating in West-cappel
 
@DaveRandom well ... there is already PHP_OS ?
 
Anonymous
@Jeeves you fixed?
 
@JayIsTooCommon <html>
 
I always considered fuck off to be a boolean thing.. never considered it might take a distance parameter
 
@Jeeves if you're happy and you know it say <html>
 
10:22 AM
@Trucy And Warhem
 
@Trucy <html>
 
oh I just read the next bit ...
 
@Leigh In their defence the north part of france has dutch roots :D
 
well, maybe nobody would tell you to fuck off, if you exposed a set of boolean constants that are better suited for os detection than PHP_OS (which is really about naming) ...
 
@JoeWatkins I have seen many codebases that will do weird shit on cygwin/darwin because they check for strpos() === false
 
10:23 AM
@Trucy You could totally write an anime around that
 
exposing one might be a bit strange ...
 
@Leigh W-Why an anime? Jaques-chan the ripper doki doki adventures?
 
morgin
 
Anonymous
10:24 AM
o/
 
@JoeWatkins indeed. imo it does make sense - that's basically the only reason I've ever seen PHP_OS used, other than blindly displaying it
 
@Trucy have you never watched a serious one where they don't do things like that?
 
One day there may be another OS whose identifier starts with win and a shitload of code will break
Windows is pretty much the only OS where sometimes you need a totally different codepath
 
@Leigh of course, I was just wondering why an anime. I think a movie in a 1888 setting would be more fitting
 
well realistically ms would sue the crap out of that OS, so I think not ... but being able to detect OS with a nice switch seems desirable ...
 
10:25 AM
At least, the only one that people actually write code to try and work there
 
I think it may get a bit tricky when it comes to bsd derivs though ... and I don't know enough about it to do it myself
 
@Trucy It might, write one of those instead then, off you go
 
@Gordon it's not uncommon to see stuff like that in areas prone to high snowpack.. some days you gotta use that upper floor exit
also possible there used to be a deck there
 
@Leigh I'm not remotely good at script writing, and trust me, you don't want a french to write a script for a movie
 
@DaveRandom do a PR, target master, we'll see who complains about it ...
 
10:27 AM
@JoeWatkins you may be able to shed some light:
14 hours ago, by pmmaga
hmm.. does anyone know why do we use gcc's -g even when debug is not enabled?
 
@pmmaga wut
I think we do not, are you compiling some non-standard extension in tree maybe ?
 
@Gordon there is a drawbridge on the other side
 
something else must be setting cflags
 
@Patrick :D
 
10:31 AM
@JoeWatkins As far as I could see, debug only gets rid of any -O flag but it leaves the -g behind
 
if you have it set in env, sure ... you should expect that though, right ?
 
hmm, given that "mysqli_prepare() returns a statement object or FALSE if an error occurred." how am I supposed to call int $mysqli_stmt->errno; on it then?
or any other of the error properties
 
@JoeWatkins will do
 
@JoeWatkins I don't think I have it on env, but I'll try to triple check later today. So, for you this doesn't happen?
 
no, definitely not, there are no debug symbols in a production build
 
10:33 AM
ok thanks!
 
ah ok. stmt_init
 
@pmmaga wait ...
 
@pmmaga I see -g -O2 in production makefile, I don't know where it comes from ...
 
@JoeWatkins hm.. so it seems to be actually happening
 
10:45 AM
yeah, but there really aren't debug symbols in production builds, I've had to rebuild php a billion times to get debug symbols
but it's also not stripped
it must come from autoconf
 
yeah, I'll try to have a look at it tonight (at work now..) and try to get rid of it
 
ping me when you find out what's occuring
 
will do
 
Anonymous
@DaveRandom Sorry for all the pings yesterday, thought I ballsed Jeeves - I've added the VO we talked about and added support for builtIn for now - Turns out postMessage / postReply are used a lot...
 
10:51 AM
@JayIsTooCommon yes they are :-P will review it later
 
@Jeeves are you clever again?
 
@Gordon <html>
 
I guess that means no
 
@Jeeves which tag should i use on the top of a document to be displayed on the browser?
 
@pmmaga <html>
 
10:54 AM
@Jeeves thanks!
 
@pmmaga You're welcome!
 
@Jeeves What's the correct doctype for a HTML5 page?
 
@Jimbo <html>
 
10:57 AM
@Jeeves HA. WRONG.
 
@Jimbo <html>
 
Jeeves's wrong. Sad!
@Jeeves please cite a programming language
 
@Trucy <html>
 
Not to be pendant but that's a markup language
 
Anonymous
@DaveRandom ok :)
 
11:37 AM
@bwoebi Er - no? I wasn't investigating it, only pointing out that the query giving the error is completely unrelated to what they think they're running.
 
@Danack oh okay
 
11:49 AM
First thing to-do as a developer in Germany alias bitte='sudo'
 
@Shafizadeh thanks
 
Wes
 
meh, who uses bitte … we always use exclamation marks!
 
I have a function with two optional parameters `myFunction($required, $optional1 = true, $optional2 = false)`
Is there any way I can call the function but only pass the `$required` and `$optional2` as parameters?
 
11:59 AM
user image
4
@sweg_yolo_69 You probably want named parameters, in short, probably not
 
@DejanMarjanovic That's what I thought. Bummer :(
 
You could hack it, but probably not worth it
Just try not to use true/false multiple time, it usually means function is doing two or more things
 
@bwoebi exactly. I never use bitte. I usually tell the computer what to do without courtesy. then it complaints. then I just type !! and it does what I want. exclamation marks ftw
 
:-)
 
@DejanMarjanovic accurate
 
12:10 PM
It's all fun and games unless you need to get Mietschuldenfreiheitsbescheinigung
 
@Gordon alias bitte=sudo
 
meh, these filthy polite foreigners.
 
22 mins ago, by Dejan Marjanovic
First thing to-do as a developer in Germany alias bitte='sudo'
:-D
 
13 mins ago, by bwoebi
meh, who uses bitte … we always use exclamation marks!
 
@bwoebi :-(
 
12:11 PM
@DejanMarjanovic ah :p
 
@tereško You liked Tool - Did you ever listen to Dinosaur Pile Up?
Sounds kind of flat on youtube, check it on Spotify if you have it, for richer sounds
 
12:31 PM
anyone knows symfony2 please
I am facing a problem in URL like I have to add web/app_dev.php to run the site
How can I remove this
and directly access my site
 
nginx or apache?
 
Anonymous
!!wotd
 
froideur: an attitude of haughty aloofness; cold superiority.
 
Anonymous
> haughty aloofness
 
@Leigh apache
 
Morngind
 
@PeeHaa o/
 
@Leigh yes I followed steps and now its showing app.php in the url
this is my virtual host entry
Do i need to make any changes in .htaccess file in web/ folder
?
 
12:50 PM
I have no idea. All I did was google "apache symfony 2"
 
okay.. thanks
 
@rdlowrey where's the repo? thought you'd push last night?
 
Approaching #BallmerPeak at @InstanaHQ https://t.co/k5jpB5ChSv
 
@sweg_yolo_69 use config objects rather than default objects:
class FuncConfig {
    private function __construct($required, $optional1 = true, $optional2 = false) {
        ...
    }

    static function single($required) {
        return new self($required)
    }

    static function firstLast($required, $optional2) {
        return new self($required, true, $optional2);
    }
}

$obj = FuncConfig::firstLast($required, $optional2);
myFunction($obj);
 
@Jeeves la froideur
 
1:03 PM
or similar.
 
@Trucy <html>
 
Anonymous
@PeeHaa o/
 
!!plugin disable terminator
 
Plugin 'terminator' is now disabled in this room
 
until they fix that api, it's just annoying
 
1:15 PM
They have an API? I thought Jeeves were scraping html
 
@Jeeves you aren't going to say <html> to me now, are you?
good
 
Anonymous
@DaveRandom <html>
 
Anonymous
I will suffice for now.
 
@Trucy I have no idea tbh
I didn't write it
@PeeHaa needs to fix it @PeeHaa @PeeHaa
@PeeHaa @PeeHaa
 
@DaveRandom Sounds they have some sort of API [github.com/gabrielecirulli/cleverbot-api/blob/master/lib/…
 
1:18 PM
@pee
 
Yeah cleverbot is blocking my scraping business
Will have a looksy today
 
Yes
That's not an api though
Not a real supported one anyway
 
hi
 
1:20 PM
Hi guys this is my first time of having permission to chat here
 
Anonymous
@ranger Welcome :)
 
@DaveRandom hmmm
 
@JayIsTooCommon thank you. Is it possible to send someone a pm here?
Or is it like a free for all only chat?
 
Anonymous
@ranger no, you can start separate rooms with people but nothing is private. If you need help, best to just ask the room
 
@JayIsTooCommon I see
@JayIsTooCommon I'm currently having a problem specifically to my Add part with OOP php
@JayIsTooCommon Would you be able to help me?
 
Anonymous
1:25 PM
Pastebin / gist your code and then ask the room your Q :)
 
@JayIsTooCommon What do you mean by ask the room your q. Sir?
 
ugh damn you all
I will look into not so cleverbot now
 
Anonymous
@ranger instead of asking someone specific, just post your question without pinging (@<name>) anyone - guide.room11.org this might help you
 
I'm trying to do an Add Subcategory function
But i haven't tried doing 'adding something under another column's id
Basically category_id is the category
And parentcategoryid is the subcategory
isSubcategory 1 determines that it is a sub category
parentcategory id has to be the same as the category_id inorder to be a subcategory under this category
The NULL showing on the parent category id means it is a category
this is what it looks like
if i click more info, it will bring me to the subcategory of whichever one i clicked on
so lets say i clicked ofod
food*
that will show up, that's the subcategories under food
So now I'm trying to make that add subcategory button work below
trying to add a subcategory under this ID
im getting those errors above
 
(I don't have the time to have a look at your question but by the size of your messages I think you'll have a better chance if you post it on the main site)
 
1:42 PM
I tried :( sad thing is no one is replying which seems to be not im not explaing it too well :(
i tried and tried asking there
 
how about you actually try using google
 
Anonymous
!!canon sqli
 
Cannot find the canon for you... :-( Use !!canon list to list all supported canonicals.
2786
Q: How can I prevent SQL injection in PHP?

Andrew G. JohnsonIf user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the us...

 
Anonymous
@ranger have a read of that too ^
 
(I'd like to edit the answer to add a heads-up about the depreciation of mysql but I can't edit ("Question is locked"))
 
1:50 PM
@Trucy depreciate !== deprecate
 
@Gordon Oh, thanks! /me is learn english
And it's too late to edit :(
 
@Wes no no no no no
Kill it with fire
[] is the only access syntax you should use
 
Anonymous
he's not that bad
 
People who use {} on strings are fucking stupid
Gah
If you want to do something, deprecate {}
Making {} an offset access is not such a bad idea, but absolutely not in this form. [] must retain current behavior for strings and arrays. You could change {} to access by offset on arrays
However, don't forget that offset access on arrays is in general an O(n) operation
I don't like having an O(n) operation behind this kind of syntax
Expensive operations should be explicit
2
 
(I don't know if I can make a "your mom is expensive" joke or not.)
 
1:59 PM
happy coffee-morning
 

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