« first day (1404 days earlier)      last day (3527 days later) » 

11:03 AM
@AndreaFaulds What, why?
 
Perhaps @AndreaFaulds likes 'yeah m8' music? :P
 
You two are being music snobs. Don't.
 
Yep, she likes chav music.
 
hello everone
 
"Willst du mit mir Drogen nehmen?" JA!
 
11:04 AM
I don't, but no need to be pretentious arseholes.
 
@Jimbo Had to google chav.
 
you two? who are you refering to?
 
@zeeks You and @webarto
 
Why me for the love of Allah?
 
Allah Dragon god
 
11:07 AM
my table name is books and my column name is book title but when i am trying to fetch the record from the table then it shows me error #1054 - Unknown column 'Book.book title' in 'field list'
i am using mysql database
 
Did anyone see that newspaper article about the guy who got pastafarianism as a real thing, and was allowed to wear a pasta strainer on his head for his passport photo?
 
You really have a space in your column name?
 
yes
 
@akhilesh Try book.`book title`
 
don't please
That is a horrible thing to do
 
11:07 AM
Jesus Akbar
I better log off.
 
@AndreaFaulds i am getting the same error
 
@webarto omfg :P
 
Ja ja ja was ist los was ist das!!!
This is the song of my childhood.
 
This is the song of my parent's childhood lol
Nah, unfortunately it's the other way around and this line would be uttered by my own son =(
 
This is how we played :D
 
11:11 AM
@AndreaFaulds i am working on cake php that's why i am using the column name same as input field name
 
I used to smuggle cigarettes to soldiers.
At a triple price of course.
Opulence, I has it.
I might be a bit drunk now.
Like @tereško says.
 
@AndreaFaulds listen to eminem. that is true music.
 
@zeeks wat
 
Eminem is true music?
 
11:15 AM
@akhilesh Try `book.book title`
 
Sweet mother of the spaghetti monster in the sky...
 
@AndreaFaulds i have already try it and i am getting the same error
 
hmm
@akhilesh Are you sure book.`book title` doesn't work? They must be backticks (`), not single quotes (')
 
@AndreaFaulds i need to remove space from the column or there is other way to do this
 
You should remove the space in the name. It's a wtf.
 
11:19 AM
hello everyone
 
What @PeeHaa said, too.
Hi @Japa
 
can anyone help me with this peace of code? i´m getting the 404 error:
$("#idBtnEntrar").click(function()
{
$.ajax
({
type: "POST",
url: "menu-principal.php",
username: $("#idUtilizador").val(),
password: $("#idPass").val(),
success: function(data)
{
alert("Settings has been updated successfully.");
}
});
});
 
@Japa That means there is no page behind menu-principal.php
 
but menu-principal.php exists
in the same directory
 
Well you say it exists, but the webserver tells me it doesn't exist
 
11:21 AM
@AndreaFaulds @Jimbo listen to his songs. i think he is the best singer ever
 
Check your error log
 
@PeeHaa what do you think it could be my problema since the page is in the same directory?
 
24 secs ago, by PeeHaa
Check your error log
 
@zeeks I like older music, you know, 80's, classic rock. Jazz. Rap, r'n'b, club girl and popular music isn't my thing
 
@PeeHaa i´m using notepad ++ how do i check that? (sorry newbie)
 
11:23 AM
I like intelligence in my music, not repeated notes to a drum beat
(but that's just me, and my opinion)
 
@Japa What OS are you on and what webserver do you use?
 
i´m in Windows 7...using wamp
could you advice me a better editor?
 
oh wamp. well search on the web where your error log is
 
so...for wamp there is no menu-principal.php file in my directory....just like that?
 
11:27 AM
so ... what are recommendations for Android SSH client ?
I need something that can deal with RSA/ECDSA keys too
 
@tereško I liked ConnectBot, not sure if it can handle that
 
@AndreaFaulds again, how is that related to scaling? that's just programming-related.
 
emm ... oh, and I need keys + password option
 
 
@FlorianMargaine It makes the memory usage of PHP code easier to reason about, which makes PHP easier to scale
 
11:37 AM
I don't get it
that doesn't sound like an argument in favor in scaling
 
@FlorianMargaine I think she meant the "shared nothing" architecture is good for scaling horizontally.
 
@Ja͢ck why?
I know she means that, I just don't understand why it is
 
<== Do you see this guy? He know how to call PDO
 
@FlorianMargaine And it's not that custom, it's running Drupal.
 
11:44 AM
@Danack I didn't say it was custom, just that it was in php.
 
Oh, I was just implying that you don't even need to write PHP applications in a special way to have them be usable for large sites, that relatively 'slow' things like drupal are usually good enough.
 
oh yeah
 
@FlorianMargaine sorry, a bit busy at the moment; i'll have to get back to you on that :)
 
BAM! DUPE HAMMERED THAT SHIT
 
@jimbo lol :D Did you apply? ^^
 
11:49 AM
good mornings
 
@Naruto Nah, it says "No weirdos" at the bottom :(
 
@Ja͢ck k, thanks
 
@AndreaFaulds it works perfectly thanks
 
mornings (again)
 
@FlorianMargaine not because shared nothing is more efficient, it's not "easier" in the sense of "easier on hardware", it's easier in the sense that there is less to worry about at scale in terms of the complexity to setup, all it takes to scale is adding more machines no matter whether you are using drupal or some fancy framework or whatever ... easier in that sense ... and I agree ...
I dont agree that it's the best way to scale ...
morning @DaveRandom
 
11:57 AM
__construct() { return "Morning"; }
 
@JoeWatkins I don't really agree in this sense though. Complexity to setup is the same in any other technology: in java/nodejs/whatever, you have one app per server (i.e. apache), and the rest of the stuff is the same (load balancing, session sharing, db sharing, etc)
 
@Jimbo You get free laster death rays tough.. And a suit :D
 
btw I´ve never done return in construct. Does it will close loading in class?
 
@TomášAresakMalčánek No it is ignored
 
11:58 AM
It should probably raise an E_STRICT as it makes no sense, but I don't think it does
 
@FlorianMargaine by the time you are adding machines, you already have that stuff worked out for the first (set of) machine(s), so scaling is literally plugging in a few more boxes and setting up your software, at no point should you have to rethink your architecture, if it works on one or two machines it should work on 1000
 
@JoeWatkins isn't it the same for other tech stacks?
 
there's a limit ... facebook approaches it ... found it ...
 
__construct() { $this->__destruct(); } // because fuck you that's why
 
@PeeHaa That should probably raise an E_STRICT as well, dtor abuse
 
12:01 PM
not really, if you take java, what works in 8 threads on one machine might not be so easy to setup on hundreds of threads spread across hundreds of machines ... because of the nature of the language itself ... it's different software though, if you are expecting to run on 1000 machines you need to know that at the start of the project in most cases ...
 
Just generally calling the dtor manually makes no sense
 
In JS you can make the constructor return a totally different object, I think that would be a good feature
 
@JoeWatkins I was more thinking along the lines of a single-thread nodejs, for example
 
E_MIND_FUCK
 
can't comment, never deployed it
 
12:01 PM
@AndreaFaulds please no
 
but yeah, I guess when you have to handle multithread in your app, it becomes a different story
@JoeWatkins single-thread event loop
 
@ircmaxell Why not?
andreas-air:~ ajf$ php -r 'class Foo { function __construct() { $this->__destruct(); } } $x = new Foo;'
PHP Fatal error: Call to undefined method Foo::__destruct() in Command line code on line 1

Fatal error: Call to undefined method Foo::__destruct() in Command line code on line 1
 
so... no scaling issue
 
because that's insane...
 
12:02 PM
@AndreaFaulds that's pretty severely wtf, and yet another symptom of Javascript's identity crisis
 
@AndreaFaulds and it's beacause JS doesn't have objects, it has functions. There is no constructor, you're just returning the instance of a function call...
 
It's not WTF, it's quite useful. It means you can construct the object yourself rather than letting JS do it.
@ircmaxell JS does have objects...
 
@AndreaFaulds E_WTP_P_M_TOO_HIGH
 
@AndreaFaulds Not userland objects.
 
@ircmaxell Yes userland objects.
 
12:04 PM
> I'm a prototypical language! Oh wait, shit, classically trained programmers might not know how to use me. Better throw in a few classical idioms. But let's not have enough of them to make useable as a classical language, we want them to learn how prototyping works.
 
It doesn't have classes in the sense PHP does, though.
 
@AndreaFaulds you're missing my point. You create "userland objects" by calling a function and using the instance of the function call as your object instance
 
oh yeah know how it works but haven't used it in the real world, so can't comment from experience ... lets pretend for a second it's okay to take a prototype to production even just during startup phase of an idea, I'd rather take a prototype php product into production than a java one, because a php one won't need changing if the idea takes off ... of course I wouldn't do that, and of course there might be exceptions ... oh and, I'm always wrong :D
 
@DaveRandom ES6 has classes :P
 
@AndreaFaulds it doesn't have objects in the sense that every other OO language does either.
 
12:04 PM
@ircmaxell "instance of the function call"? You mean the prototypical object returned by a constructor?
 
After workings
 
@AndreaFaulds And the identity crisis deepens
 
@ircmaxell Not true, JS's model isn't unique
 
@AndreaFaulds the entire model is unique (as in, no single language brings all the pieces together the way that JS does)
 
frankensteins together
 
12:06 PM
@ircmaxell That much is true
 
I'm not saying the prototype model is unique
 
the platypus of programming ...
2
 
@ircmaxell false! coffeescript is the same.
 
JS isn't a frankenstein, though. Its prototype creation mechanism is a little weird, sure, but it's not hacked together.
 
@ircmaxell false! actionscript is the same.
 
12:07 PM
@FlorianMargaine I see you already have some answers about scaling :)
 
I'm saying that the entire constructor model is, where you don't create objects, you call functions. And the function just so happens to return an object. Yes, they have a new keyword. No, that doesn't mean it's an object in the traditional sense.
 
@FlorianMargaine :18389719 cheating
 
@Ja͢ck You have worked with AWS SQS haven't you?
 
@Ja͢ck yup, but the argument was related to nodejs too, so I didn't get her argument
 
@Fabien Yep
 
12:07 PM
@ircmaxell Why not? An object has 1) methods, 2) properties and 3) a type
As well as hidden, encapsulated state
 
@AndreaFaulds it only sort-of has a type
 
@AndreaFaulds It sure as hell feels that way to me :P
 
Is it possible to retrieve certain jobs from a queue? or it can't make those kind of decisions?
 
and it only sort-of has methods
 
It has methods and it has a type.
 
12:08 PM
@Fabien Yeah, I don't see why not.
 
@AndreaFaulds Yeh that doesn't work. Some elements of SO chat are a little retarded (markdown impl is missing some bits as well)
 
@AndreaFaulds it has functions, which it does an implicit binding to the object based on call convention
 
@Ja͢ck Where can I read about job selection?
 
@ircmaxell Or that can be explicitly bound.
 
function foo() { return this; }

foo(); // window
var a = {'foo' : foo};
a.foo(); // a
 
12:09 PM
@AndreaFaulds ...and yet that type does not have a name unless you declare it the right way...
 
there's no difference, other than the binding that the call does
 
@DaveRandom ?
 
@AndreaFaulds yes, explicit bound at call time
 
@ircmaxell They're still methods.
 
meaning, there's literally no difference between a method and a function. They are the same thing!
 
12:10 PM
@ircmaxell No, you can bind ahead-of-time if you really want to.
 
@AndreaFaulds no you can't. You can use closures to do that, but you're creating a new proxied callback to do it
 
There's no point though
@ircmaxell function MyClass() { this.myMethod = (function () {}).bind(this); }
 
@AndreaFaulds and what does bind do?
returns a new callback
 
@Fabien It's been a while, but I thought you could give criteria ...
 
"Callback"?
 
12:12 PM
@AndreaFaulds this makes me feel unwell ...
 
@AndreaFaulds Anything declared as an anonymous function has an anonymous type, which leads to code like namespace.Foo = function Foo() {}; - it totally makes sense from an impl PoV, but not a usage PoV - one might expect that if you did new namespace.Foo the ctor would be bound to the target, but no.
 
@Ja͢ck MessageAttributes ring a bell?
 
function bind(newThis) {
    old = this;
    return function() {
        old.apply(newThis, array.prototype.slice.call(arguments));
    }
}
it's actually creating a new callback, that's decorating the original, and adding an explicit bind behind the scenes
 
@Fabien Eh yeah, that sounds familiar
 
it's not making a method, it's making a proxied function. It's using closure state preservation to simulate binding...
 
12:14 PM
If you implement it in ES3, yes.
 
@AndreaFaulds So newer versions of the language implement binding internally. It's still the same concept
point being: PHP's object model is the one sane thing it has going for it. Please don't ruin that...
 
I never said I wanted to add prototypical inheritance to PHP
However, I wouldn't say JS's model is insane, far from it
 
16 mins ago, by Andrea Faulds
In JS you can make the constructor return a totally different object, I think that would be a good feature
 
@ircmaxell Upon reflection, perhaps not :P
 
@AndreaFaulds I would say that parts of it are. Significant parts...
but I digress, I have to leave. Later
 
12:18 PM
lata @ircmaxell
 
@ircmaxell which parts?
huh, later
 
later
Fun thing about PHP is you actually could implement prototypical inheritance in userland if you wanted.
I feel like writing a toy class to implement it, just for the fun of it...
 
@AndreaFaulds I did something like that once
 
^ me too. No good came from that
 
Well, it was interesting
 
12:23 PM
> I'm developing an intranet
lulz
 
I never actually did anything with it
 
interesting, but.. useless :p
 
I don't think there was any reason you couldn't though
 
We have __call, we have closures, and if my RFC passes, we'll have Closure::call().
 
hey, is anyone familiar with laravel here?
 
12:25 PM
You don't need that to implement it, but it makes it faster...
 
aughhh .. does anybody have an idea how to install libuv-dev on Travis?
 
Good morning
 
anyone?
 
__construct() {echo "Morning"; }
 
anyone at all?
unhandled Exception in __construct(), it is afternoon!
 
12:27 PM
How does the __destruct() working? can you do the same as __construct()?
 
yeah, except you dispose of unmanaged resources with it
closing db connections etc
 
So __destruct() {echo "End";}
 
yeah =]
 
Is it automaticly called on the end of class? Or user only?
 
@Ja͢ck with.. your hands? (so, manual build) ?
 
12:28 PM
usually garbage collection is automatic, but if you need to close a database or a filestream, something like that
then you'd use a destructor
because it's not managed and needs to be closed manually
 
@AlmaDo The v0.10 branch doesn't have an 'install' target =S
 
hoho
 
is anyone familiar with laravel? really struggling with this
 
And is there some function called by end of class?
So I can do:
`class Tomas {
public inProgress = true;
__end() {
$this->inProgress = false;
}`
 
:-)
 
12:32 PM
^ c.r.a.p.
(-:
 
@ReeceCottam "I have a question but I'm too lazy to actually formalize it in words unless there's someone who promises to try to answer it." aka don't ask to ask
And no, not many people use Laravel in here.
 
there's no point in asking a laravel related question if nobody here knows laravel, that's why i asked
 
52 secs ago, by Danack
@ReeceCottam "I have a question but I'm too lazy to actually formalize it in words unless there's someone who promises to try to answer it." aka don't ask to ask
 
wow ... is it just me or this guy sounds somewhat entitled
 
Laravel. Lol.
 
12:35 PM
urgh fine, I have a form located in a view as detailed; form action="{{ action('RemindersController@postRemind') }}" method="POST">
<input type="email" name="email">
<input type="submit" value="Send Reminder">
</form>
 
@rdlowrey , shouldn't the name of cookie be escaped too, before it is sent as a header ?
 
this is intended to reset a user's password, but when I try to test it by filling out my email, then pressing the submit button
it throws the following error The requested URL /laravel-master/app/views/{{ action('RemindersController@postRemind') }} was not found on this server.
So in other words, for some reason it won't find the RemindersController
and I have no idea why
I've tried directing the form to a known working controller
nothing
I've tried fixing the routes, but they're as they should be
and still nothing
 
@ReeceCottam No, it means that the template isn't rendering "action('RemindersController@postRemind')" to a path, but is instead just rendering that as text.
 
@ReeceCottam where exactly you found that <form action="{{ action('RemindersController@postRemind') }}" method="POST"> is a valid syntax ?
 
12:39 PM
because I am quite sure that it is completely made up
 
It was on the laravel website actually
I'm trying to get the form to action a controller
@Danack I've tried that to no avail
 
@ReeceCottam yeah....the issue is that the blade template isn't picking up that the action thing needs to be processed. That's something you're going to have to figure out yourself, as you haven't given enough information to allow other people to figure it out.
 
@TomášAresakMalčánek :)
 
why not? shouldn't laravel pick it up as a controller and render the page?
 
12:48 PM
"That's something you're going to have to figure out yourself, "
 
@ReeceCottam huh?
 
@JoeWatkins ssssshh :)
 
Put Closure::call() to a vote again: wiki.php.net/rfc/closure_apply#vote
I'm out to lunch
 
@AndreaFaulds enjoy
 
"yes, we know"
 
12:55 PM
@ReeceCottam why don't you use a named URL::route('foobar') instead ?
 
Getting Travis to work properly is like courting a woman ... "no" ... "nuhuh" ... "nope" ... "not gonna happen"
6
 
@Ja͢ck well, I still make it work at the end.
Forcefully.
 
it took me like 5 commits to set it up
 
1:00 PM
 
The reviews of: http://www.amazon.com/Parents-Open-Carry-Brian-Jeffs/dp/1618081012
4
 
"I understand that this book is the first in a Trilogy. The second and third book, "There's Fluoride in my Water!" and Where's the President's Birth Certificate" are due out before Thanksgiving."
 
Has anyone ever had "Abort trap: 6" when running anything?
 
> This educational book is a great resource for explaining to my friends and family my reasoning behind my delusional behavior. It's so comforting to know that there are others who are just as paranoid, delusional, and armed as I am. Hopefully I can outdraw all of them should I need to when I'm out running errands. If not, at least I have my high-capacity magazines and body armor. To freedom!
@Ja͢ck Seems to be OSX specific, seen a couple of things saying it's most likely a failed assertion
Although I'm sure you already know this as you have Google too :-P
 
Yeah, trying to figure it out now .. Travis runs fine, so it seems to be a local thing =/
 
1:15 PM
@Ja͢ck Try peeling the Apple logo off
 
Okay ...
Hmm, it's kind of permanently on there, any other ideas?
 
"permanently" is not a word of my vocabulary.
 
heh
 
Well tbh most of the rest of my ideas involve either buying a new computer, or the use of power tools immediately followed by buying a new computer
 
I'm sure I'll figure this shit out.
 
1:17 PM
another idea could be to install linux on this mac.
 
It's not a PC @FlorianMargaine
 
No I think he meant the one he's using
 
ah
 
Seriously though, I have no idea. Seems to mean "process terminated because of a SIGABRT", which is not hugely helpful on its own
 
@DaveRandom Meh, something naughty happens here.
This is the second buffer issue today =S
 
1:27 PM
Er, is that calling itself?
Or is it magic?
 
PHP_FUNCTION(uv_cwd) is not the same as uv_cwd :)
 
Obviously.
 
Yeah :D
 
@Ja͢ck buffer[buffer_sz] = '\0'; <-- E_NONSENSE
 
You people and your C voodoo
 
1:31 PM
which internet company has the biggest value, amazon or google or facebook?
 
should be buffer[buffer_sz - 1], right?
@zeeks Ask the stock market. Also, nobody (here) cares.
 
@DaveRandom Exactly :)
There's a function right above that calls uv_exepath() but that one takes a pointer to size as its second argument ... perhaps that was the confusion.
 
Things that make PHP seem less bad - The Worst API Ever Made
 
@Ja͢ck ...and yet does not bother to check that buffer_sz < 1024...
Is that a sane hard limit? I'm sure fs paths can be longer than that
 
@DaveRandom It calls getcwd() internally ... checking that now
+1 Teach a man to fish...miss out on some 45 odd upvotes :-) — Angad Sep 7 '13 at 17:34
lol
 
1:37 PM
 
omg
 
@SecondRikudo brutal
 
@SecondRikudo Awesome :D
 
We should've done that to @JoeWatkins after his motorcycle crash
 
He had an accident?
 
user895378
1:41 PM
morning
 
morning @rdlowrey
 
meurning @rdlowrey
 
meowrning @rdlowrey
 
monning @rdlowrey
 
1:42 PM
c-c-c-combo breaker
 
Joe's life is a series of unfortunate events. Seriously if you ever go to a casino, take Joe. Anytime he comes off a machine, use it after him. It's like a multiplier for good luck.
 
user895378
Lusitanian's mom's face is a series of unfortunate events.
3
 
@Fabien That's called the gambler's fallacy, it doesn't work that we :P
 
BTW guys. Let's say I have a script which I need to run on a server a few times (at the same time). The control of this process would ideally be handled by 1 singular script. Any suggestions on what I should be looking at to achieve this kind of functionality?
 
user895378
@Fabien like a cron sort of thing?
 
1:44 PM
Well I need a little more control/flexibility.
Think crawler.
 
user895378
So something that runs all the time but you're able to schedule things to happen at specific times or intervals?
 
user895378
And schedule new things to happen based on results?
 
You need goto.
 
Yeah, so this crawler can be told to pause. I will need to pass info from the parent script to the processes it starts.
 
1:46 PM
 
user895378
@Fabien well I kind of have something that does exactly this
 
user895378
It's the basis of all my async work.
 
@DaveRandom Check this definition out .. okay granted, it doesn't happen often, but a max buffer of 256 for a path? ... meh
 
@rdlowrey Stable?
 
user895378
Funny you mention it. I tagged v1.0.0-rc1 yesterday. Short of any unforeseen bugs it'll be v1.0.0 in a few days. The API isn't changing for sure.
 
user895378
1:49 PM
Been using it for the last two years in everything :)
 
Can I gTalk you or something to just query you more on what I am doing and if it fits?
 
user895378
sure
 
@rdlowrey May as well leave it for a month.
 
@rdlowrey That's about $150.000 of work in money.
 
Nobody is in a rush, right?
 
1:52 PM
Go buy yourself Porsche.
 
I mean they've waited years for this.
 
Haha!
 
user895378
@LeviMorrison yeah, a month is more sensible
 
/cc @Ja͢ck ^^
 
1:57 PM
@DanLugg nice :D
 
@SecondRikudo wtf? :D
 
@Ja͢ck The "weird systems" clause probably mitigates the risk. I take it you are updating uv to use that def?
 
@DaveRandom heh, i was curious about the definition of MAXPATHLEN yeah
@SecondRikudo Reminds me of reading the label on my "super man-only" vitamin tablets: don't take when pregnant o.0
 

« first day (1404 days earlier)      last day (3527 days later) »