« first day (1411 days earlier)      last day (3540 days later) » 

4:00 PM
@SecondRikudo Parse error; unexpected '@'.
 
Hmm watching sin city 2 in hour..
 
@SecondRikudo The @ makes the meaning clear, though :)
 
@AndreaFaulds Intentional :P
 
Also, I like the german Approch of Capitalising all Nouns and Lowercasing all Adjectives. It reduces Ambiguity.
 
@AndreaFaulds Oh I'm quite sure (never really dug into the mechanics of the MySQL protocol)
@AndreaFaulds ApproachofCapitalisingallNounsandLowercasingallAdjectives
 
4:03 PM
@SecondRikudo also, using the correct grammar, it would be "I helped my friend Jack off of a horse"... "off a" is a colloquialism.
 
@ircmaxell It's not, it's an AmE vs. BrE thing.
 
But @SecondRikudo isn't American nor British .. hmm
 
14
A: How can I explain to people that the phrase “off of ” is grammatically incorrect?

KosmonautThe phrase "off of" has a long history, which, according to the OED, stretches back roughly 500 years. If you want to consider it to be "wrong", then it certainly has a lot of staying power. Here are their quotations using "off of": ?c1450 in G. Müller Aus mittelengl. Medizintexten (1929)...

 
@ircmaxell Right, "off of" isn't wrong, nor is "off", it is a matter of style and one being preferred on one side of the Atlantic.
 
@ircmaxell Wait, you can see my messages? :o There were a lot of stuff I wanted to reply to you but didn't because I thought it was pointless T_T
Ah well, water under the bridge, I hope.
 
4:06 PM
posted on August 27, 2014 by kbironneau

/* by gustav */

 
@AndreaFaulds also why I said it was a colloquialism :-) But fair enough
 
@ircmaxell It's not a colloquialism, both are equally correct ;)
Dictionaries are wrong. :D
 
@AndreaFaulds still, the usage in this context would have prevented said contextual ambiguity :-P
 
I'm writing my latest project in Python so...
 
travis is really really overloaded now ...
hi @LeviMorrison
 
4:10 PM
@ircmaxell And that is why it is great you have a choice :)
 
Hello, Joe.
 
Jay
hey
 
@JoeWatkins How have you been feeling lately? Sleeping better?
 
Jay
Is there a way to check if SuPHP is installed using PHP?
 
Fun fact: less has applied to countable objects for literally centuries longer than it's applied to uncountable objects. Using fewer is a matter of style, and can sometimes reduce ambiguity, but saying "5 items or less" isn't incorrect in any sense at all.
 
4:14 PM
@Jay Check the value of PHP_SAPI.
 
@LeviMorrison yeah, better ... all night ... a lot of some days ... I won't complain ... there's no point :D
 
Jay
@Ja͢ck What would I be looking for if it was enabled?
 
@Jay Well, what's the value?
 
Jay
@Ja͢ck apache2handler
 
4:18 PM
@Jack no icu on travis
wanna fancy up the build script a bit ?
 
@JoeWatkins can be installed, no worries.
 
I'm 5 things at once ... so if you have time ...
 
sure, i just needed you to enable travis ... i can do the .travis.yml
 
I love the UNIX approach to things. Sometimes it's kinda brilliant.
On DOS and Windows, you use /S or the like to silence an operation and ignore all prompts
In UNIX, you pipe an infinite number of "y\n"
 
it's travis/ci.sh I think for c ...
 
4:21 PM
$ yes "it is"
it is
it is
^C
$ dammit ...
 
I dunno, always done it that way ...
lol
 
@Ja͢ck *yes "it is"
It also means UNIX has a built-in tech support auto-responder:
yes "Have you tried turning it off and on again?"
 
heh
@JoeWatkins hmm, then why does php-src use .travis.yml ?
 
yeah that too ...
/me clueless
 
heh
@Jay not likely to be suphp then.
 
Jay
4:27 PM
@Ja͢ck how do I know if its suPHP?
Thats what I am trying to work out.
like an if statement or some kind
 
PHP_SAPI == 'CGI' or sth?
Why do you need to know, though?
@JoeWatkins ooh, we can choose to make it compile with clang if we want :D
 
^ code writing service, and look at the high-rep users lining up
 
Jay
actually I don't hehe
 
@Chris is that the right q link?
 
No
 
4:30 PM
:-P
 
Jay
@Ja͢ck sorry Jack I just realised I don;t
 
@JoeWatkins compile.sh, but it's dispatched from .travis.yml
 
cool :)
 
yeah wasn't sure if better way for C stuff ... I use travis but always just smash a script together
 
4:31 PM
@JoeWatkins Glad things are better; hope they get better still :D
 
@JoeWatkins I thought that's the only way you can do stuff with Travis :)
 
@Jay it wont tell you specifically about suPHP, but getmyuid() will let you know if you're running as root
 
^ this is probably what you actually want to know
 
Not interesting enough to bite.
 
4:38 PM
I periodically think to myself, "I'll look at some questions and answer good ones."
A few minutes later I will give up.
 
Jay
thanks guys :)
 
Oh, Travis may consider providing nightly builds of php-master :D - github.com/travis-ci/travis-ci/issues/2480
 
5:11 PM
Oh man. That awesome moment when you hear a song you've been trying to remember the name of for MONTHS. Finally!!
@ircmaxell Got or considered getting one of those android watches?
 
@Fabien I've been wearing one for a while now :-)
 
How is it? I am thinking of getting one.
 
I love it
I've been wearing the Samsung version, and it's quite good
 
I may swing for the LG G one. I like LG. Just need to figure out why I would have one.
 
yeah, both are good
I've used the LG quite a bit as well, definitely like it
 
5:23 PM
I have a reason ... because if you're going to strap an object to your person it should be able to something more useful than tell you the position of the earth in it's orbit of the sun, and on it's own axis ... after all, the date and time are pretty useless information ...
 
lol
I just like wearing mechanical things
 
@JoeWatkins useless information? but time is money, so a watch tells you the money
 
@ircmaxell got one of these on your shopping list then? newscientist.com/article/…
 
@ircmaxell There's two samsung ones? Gear and Gear 2. Which do you have?
 
@Fabien neither, Gear Live
 
5:26 PM
@Fabien best. german. song. ever.
(Probably the only one I know tho)
 
@ircmaxell Usually google are one of the cheaper places to buy it. See it cheaper in a few others. The Samsung one seems like it's a little nicer.
@cheesemacfly Yeah. Been trying to desperately hum it in to Shazzam for a long while now.
 
I've never felt compelled to wear a watch ... you can tell roughly what the time is by looking outside ... that's enough resolution for me ... gimme the interweb and comms. over said positioning information any day ...
 
Ah damnit. I got challenged for that ice bucket thing. I don't engage with conspicuous charity. Am I a jerk if I just say nothing? Do I care if I'm a jerk? These questions will be rendered moot by the fact that I'll forget about having been challenged within an hour because writing code is a special kind of amnesia.
 
@cheesemacfly I like the Goldfinger version better...
@Fabien are you sure it's for the same one?
 
@JoeWatkins Yeah, I'm largely disinterested in the precise time. "Dark" and "not dark" suffice.
 
5:30 PM
@ircmaxell Beginning to wonder that myself. Why can't they name these things more distinctly.
 
@ircmaxell Yes true! I forgot about their version
 
@Fabien that's not it, that's running Samsung's OS... You can tell by the camera on the strap
 
I should stick with Google.
 
one difference is that the live (android wear) supports all android 4.3+ devices, where as Samsung's Gear OS only supports flagship Samsung phones...
@cheesemacfly I got to meet them in college (when they were still popular), really quite awesome guys
 
@ircmaxell mechanical things like this you mean? :D
 
5:34 PM
I would LOVE to get a Devon Tread 1
 
inorite, it's such an awesome piece of work.
 
@ircmaxell Well I have the Nexus 4. Presume that works as long as I am on Android 4.3+
 
I have several mechanical (no electronics at all) watches... Some are mechanical wind, some are automatic wind (self-wind), but all are aesome
@Fabien yup, that'll work fine
 
user895378
@DaveRandom Nice! Did you update NEWS?
 
Ordered @ircmaxell
 
5:44 PM
@Fabien awesome! Enjoy it!
 
@cheesemacfly I think that title goes to this song (caution, potentially NSFW)...
 
:). Yeah should be good. Mind you Google is taking over my life a bit. Nexus, Watch, Chromecast.
 
I tell ya, I like the chromebook as well
 
user895378
I also like the chromebook.
 
user895378
5:47 PM
Really want to find time to play with the chromecast API.
 
it's quite easy to work with
 
6:07 PM
> Why is PHP – a language full of quirks which at least gives you memory and type safety – is universally ridiculed and the developers, while defending the language, never ridicule back, while C++, an absolutely insane language, is ridiculed often enough but C++ developers always counter-attack viciously? For that matter, why isn't Lisp ridiculed for EQ, EQL, EQUAL and EQUALP, if comparison operators are so funny? - Yossi Kreinin
 
Does anyone Scrutinizer in here, and do you have a complete config file example? Because their documentation sucks.
 
@BenjaminGruenbaum Because PHP developers always take the higher ground in an argument ... :D
 
> The reason, IMO, is simple: PHP is not taught in academic CS courses. C++ developers are much more likely to have a CS degree, therefore both they and others treat their knowledge of crazy C++ arcana as something of intellectual value. And Lisp is the poster child of academic programming language development. Educated proponents deter attempts at ridiculing a language.
 
Anyone here familiar with using OAuth with the Google API PHP Client library?
0
Q: (400) Bad Request using Google API PHP Client with the Admin SDK

Nathan JonesI'm trying to use the Google API PHP Client with the Google Directory API. I wnet into the Google Developers Console and created a project called google-sync. I then enabled the Admin SDK in the APIs list page. I then selected "Create new Client ID" from the Credentials page, and selected Service...

 
I think the whole language vs. language is asinine. All languages have quirks. Which one are you most productive with while being able to deal with said quirks? Use that one.
 
6:10 PM
Anyone here have a GeForce GTX 750, 750 Ti or 760?
 
@LeviMorrison I have a 760Ti
 
Which is fairly rare, btw.
Not a lot of them made.
 
@ircmaxell NSFW was definitely appropriate (for the name at least)! But I still like 99 luftballons better :)
 
@BenjaminGruenbaum I don't know if I buy the reason, but it's not insane
 
@ircmaxell the article is full of fud but still a fun read
 
6:15 PM
Anyway, I have a GTX 550 and am in need of at least a little upgrade.
 
yeah, a quick scan so far is pretty good
 
I'll probably get a 750 or higher, just don't know which one to settle on.
 
hi guys, i have only one question: i have a table with this columns: Question, War1, War2, War3, War4, Answer. And in the answer is a number which points to the right War, for example if Answer is 2 then should echo out War2 (so third column) (answer + 1). But i dont know how to do that. I need to echo out the value from the column where the answer + 1 points. This is my code:
 
Anything above a 760 is just too expensive for what I use it for.
 
$statement = $db->prepare("SELECT * FROM war_question WHERE question = :question");
$statement->execute(array(':question' => $question));
$row = $statement->fetch();
$column = $row['answer'];
$num = $row[$column + 1];
$ans = "here show column[num]
 
6:17 PM
...your database schema is pretty crazy.
 
s/pretty/completely
 
jaywalker ;-)
 
ii know but the Answer column is only a number and i want to know how to get the column of that number
 
Wow 'Filth' is a pretty crazy film.
 
@KraziiKiiD Instead of learning to do that you should learn more about RDBMS and how to normalize a database.
 
6:20 PM
@Fabien is that the james mcavoy film?
 
@KraziiKiiD you cannot
 
@NathanJones Yup
 
@tereško but however those war's have the names: warans1, warans2, ...
and i tried this:
$ans = $row['warans' + $num];
 
try redesigning your DB instead
 
but im gussing there shouldn't be "+"
 
6:22 PM
in php string concatenation is done like this: $foo = $foo . 'bar' . 1 . $test
 
@tereško my question is if i have the column name warans2, how can i get the value from it like $row['warans' + value];
 
$ans = $row["warans$num"]; then.
 
bu can i concate it that way?
no symbols between them?
and is " instead of ' ?
 
... also, who all that is sacred, please get this (shop, torrents .. whatever) book: pragprog.com/book/bksqla/sql-antipatterns
3
 
also: everybody please fill this survey out: j.mp/osmisurvey
6
 
6:31 PM
you're asking php developers about their mental health? ;-)
 
@ircmaxell my problem is that I already dislike the code I've just completed.
 
Lucky build #13 @JoeWatkins :)
 
@ircmaxell I am very surprised at the number of "gender neutral" or "gender-sensitive" answers in that field so far. Very socially aware respondents so far.
 
6:48 PM
Anyone wanna help me find the problem in the following Oracle SQL code?
$stid = oci_parse($conn, "INSERT INTO questions (questions,details,author,tag,datetime) VALUES (:question, :details, 679, 6, 1408391827)");
 
OMG working CI for UString?
 
Keep getting ORA-01465: invalid hex number
 
@Ja͢ck you're awesome
 
user895378
@Ja͢ck is something of a hero these days.
 
@Ja͢ck is the hero we need, but not the hero we deserve
 
user895378
6:50 PM
I'm going to be up all night writing TLS docs for php.net because I'm such a terrible procrastinator.
 
anyone?
 
@DemCodeLines what have you tried? Also, what are the types? Typically, error messages tell you the problem. So my guess is that one of the fields is a number, and you're providing an invalid value for that field...
 
Anyone have Zend karma and willing to merge?
 
@AndreaFaulds ask for karma
 
@ircmaxell What's the proper way to request it? Or, rather, how should I request it, proper way or no?
 
6:55 PM
pop into #php.pecl and ask someone for it
 
@ircmaxell Basically I'm trying to create an auto_incrementing id column in oracle sql.
And I don't want to use sequences and triggers as i suck at it.
 
@rdlowrey does Artax handle all the new SSL/TLS stuff introduced in 5.6 by default or does it need to be configured?
 
the point being that the error tells you the problem. You keep dumping queries and error messages saying "what does this mean". Do some searching. Try to figure it out for yourself.
 
@ircmaxell Yeah I understand, I am just saying I hate using sequences and triggers. It's annoying, really annoying.
 
7:20 PM
@Leigh By mpz_import you mean gmp_init(bin2hex($data), 16)?
 
@NikiC with all of the other cool stuff like endianness ;)
working on a patch at the moment
what's your memory limit set to?
 
nevermind, I can't read
 
ah :)
I suspect refcounts are off because the temp gmp objects are obviously all out of scope when the func returns
 
something weird about this ... neither zmm or valgrind report leaks, but it does obviously leak...
 
I checked it with valgrind, by shutdown it's all freed I guess, but during the course of runtime it keeps accumulating (I assume) gmp objects
 
7:30 PM
Talking with my co-workers about unifying our code. They work on external client projects, I work on internal stuff. We are all "code islands", we don't share any useable code.
As part of this conversation, I mentioned that we will have to establish some standards before we get started, for instance, "No statics"
Which made them both freak out, because they use a static class for their database access
db::row('SELECT....')
 
Wonderful. Now ask them to upgrade their PHP so stop using mysql_* and see their frustration
 
@Leigh probably something caused by result==op1
 
I think I convinced them, but I used to do that too, and it was a hard sell to get me to stop. Nowadays I can't imagine doing it like that.
 
@Chris If you're using Auryn, you can make it hide the fact that statics are used to access stuff:
$emDelegate = function ($conn, $config) {
    return \Doctrine\ORM\EntityManager::create($conn, $config);
};

$bugRepositoryDelegate = function (\Doctrine\ORM\EntityManager $entityManager) {
    return $entityManager->getRepository('Bug');
};

$injector->delegate(
    \Doctrine\ORM\EntityManager::class, $emDelegate,
    [':conn' => $conn, ':config' => $config]
);
$injector->delegate(BugRepository::class, $bugRepositoryDelegate);

function displayBug(BugRepository $bugRepository, $bugID) {...}
$bugViewer = $injector->execute("displayBug", [':bugID' => 12345]);
So it means you wouldn't need to re-write everything at once....but can migrate to a sane code base gradually.
 
Does Oracle not support TEXT datatype or something?
 
7:39 PM
@AndreaFaulds did you do something funky with twitter?
 
Nope, CLOB is probably the best bet
 
@ircmaxell My name has U+202e RIGHT-TO-LEFT OVERRIDE in it. For fun.
 
ahhh, that's why
 
how do I insert to a CLOB datatype column?
 
I'm working on a hands on test to test the skill level of some candidates I'm interviewing for a PHP developer position. Anybody have some suggestions?
 
7:40 PM
See, it shows up as "Andrea Faulds" but it's actually "Andrea \u202esdluaF"
 
Thanks @ircmaxell
 
@ircmaxell for the record, putting the US at the top of the country list is extremely annoying for people who don't live in the US :-P
 
@DaveRandom eih :-P
 
7:43 PM
@DaveRandom I like it when they put a bunch of popular countries at the top. But you know what's best? GeoIP.
 
even better is letting you type with auto-complete
 
@ircmaxell Yeah. I like the web trend of reviving the Combo Box
 
Also I always am then slightly amused that the next in the list is usually "Afghanistan", it's sort of like the start a list of countries listed in order of how likely it is that the average #murican will have heard of them
 
Also, pet peeve: It's the United Kingdom, not Great Britain or Britain
 
@DaveRandom That particular UI strategy does seem to be something of a relic on one hand. On the other, as a resident of the United States, I approve. Why should 1,000 people scroll past Uganda to appease the 1 person who is actually from Uganda.
 
7:44 PM
If you're making a list of countries, that is.
 
IDK, it would be interesting to see county-by-country internet use stats.
 
sigh Oracle
 
No kidding.
 
@Chris Fine, but at least it should be in order of how many people have internet access in a particular country or something. I'd expect the UK, most of mainland Europe and Japan to be before the list of obscure countries
 
Why I try to insert into my db, all the other info gets inserted except for the clob column. It says Warning: htmlentities() expects parameter 1 to be string, object given
 
7:46 PM
The list has Antarctica right at the top, ffs
 
That does seem sensible, Dave
 
@DaveRandom or the order of how likely a resident will use the site
 
Although if you "promoted" more than one, you'd still have to list it again in the proper alphabetical spot to make up for people who don't read anything
 
> Do you know the options for mental health care your employer provides?
With options of yes/no/don't know - so that would be "no" then...
 
lol
I don't know if I know. Seems legit.
 
7:50 PM
So this returns true in @HackLang `([] instanceof Traversable)`. AWW YISS.
I want this.
 
@ircmaxell Indeed. I actually don't mind making it easy for people to select the US, a lot of the internet is quite US-centric, somehow having a dropdown with no blank option, in proper alphabetical order, but with the US selected as the default option would annoy me a lot less.
 
CLOB SUCKS
I said it
 
@AndreaFaulds I don't know... On one hand, awesome. On the other, it's very much not traversable... Since you can't do new IteratorIterator($it)
 
@ircmaxell You should be able to
 
@AndreaFaulds I am decidedly on the fence about that. I want arrays and traversables to play nicely with each other, but instanceof is for objects
Like, unquestionably for objects
 
7:54 PM
Why can't arrays be object-like? After all, objects can be array-like.
 
@AndreaFaulds nope: 3v4l.org/8bST5#vhhvm-301
 
[] instanceof array I can live with (make array a class)
 
@ircmaxell Haha, wow.
@DaveRandom @ircmaxell How about making arrays iterators aggregate?
So they aren't themselves, but could produce array iterators
 
which means they must have a method ->getIterator()
 
Right
 
7:56 PM
I would be on board with that. Not ideal, but best of a bad situation
 
It means you don't have a weird state-changing method on a non-object
Which would be quite funky since arrays have different semantics to objects or scalars
 
@AndreaFaulds Array should be an object then
I can't believe I'm about to say this but... like JS
 
@DaveRandom No, that'd require changing its semantics
@DaveRandom Or Python, or other languages
 
$myArray->keyExists('key') -- want
 

« first day (1411 days earlier)      last day (3540 days later) »