« first day (1208 days earlier)      last day (3965 days later) » 

00:06
> 04/02/2014 07:07 (EXT) check.php: Disk temperature 13626 C
Ummm...
user652649
plutonium disk drive?
@DaveRandom Thanks.
I thought it was because the script was parsing the output wrong but it turns that's what smart is reporting as well :-S
@Danack np - re your mail to the list, preview. is flakey as shit, I'm not at all surprised it doesn't work there. @LeviMorrison might be able to give you a quick answer as to whether there is anything else required to make it work on the mirrors (but then again maybe not)
@DaveRandom tbh I should probably just man up and setup the phd tool on my machine and ask for SVN karma or whatever it's the access is called.
But ......SVN.....
@Danack I have used SVN to commit something to the docs precisely once, and that was your images, and I kinda cheated and did it with PHP Storm and it's GUI that, y'know, makes sense.
Almost everything I do is through the OE, and tbh if you're doing XML shit that's the way it should be because it has a bunch of sanity checks in it
00:16
@DaveRandom There's a GUI for SVN that makes sense?
Unfortunately schema validation is not (and cannot be) one of them :-(
@cspray TortoiseSVN was nice - but requires windows.
@cspray Well there's SVN integration in PHP Storm, which makes sense in as much as it's possible for SVN to make sense. It's still a sorry state of affairs compared to the git tools but it's better than typing in commands that guarantee to fuck something up with no warning
@Danack I actually hated TortoiseSVN. Of course, that could just be my loathing of SVN being projected onto the GUI.
It still can't fix svn's own stupidity though, particularly when it comes to the annoying habit it has of applying patches wrong
00:18
We used SVN at my last job...after having only used Git/Mercurial it was pretty abysmal
It didn't help that we weren't using it correctly...
I've never used mercurial, what's it like?
@DaveRandom I actually found it quite similar to Git. It was relatively easy for me to swap between the two
I don't use anything but Git at this point though; both personally and professionally.
@cspray ditto at my current job. Luckily a) everyone acknowledges this and b) there is a general air of moving towards git (but it's going to be a sloooow process I think)
@DaveRandom We were in a perpetual state of moving to Git
One of the big factors in me taking my current job was actually a Git/GitHub based workflow
@cspray orly? github private repos?
00:25
@DaveRandom yarly
Interesting. I don't mind trusting github with my "private" codez - things I'm pissing about with that will be open source if they ever get finished/become useful
Not sure I would trust them with commercial IP though...
@DaveRandom Yea, I was wondering about that myself. We did have quite a few devs working remotely and I imagine it wound up being the best way to collaborate.
Does anyone know of a demo/tutorial for Doctrine that is non-trivial - i.e. actually uses more than a couple of tables, and actually does stuff with the data?
/cc @Ocramius ^
@cspray I suppose they must have some kind of commercial contract with SLAs and guarantees and shit, but still, once your code is out you can't get it back. There have been enough github security scares in the past...
Plus, y'know, rails...
@DaveRandom True that. Oh well, risk vs. reward I suppose :P
@DaveRandom Don't even get me started on Rails...
00:44
Right I'm out, see thee fine gentlemen on the morrow
Later
01:40
Latest PHP work ^^ namebot.com
01:54
@DaveRandom why not use bitbucket instead for private repos?
02:15
@Yosi cool
03:06
good morning
@Orangepill mornin
@rdlowrey you still hanging around?
user652649
morning
Evening
03:23
@ircmaxell evening... congrats on the new job
is it advocating for php, go or google's technologies in general?
thanks!
Google's products, a specific one
don;t want to get too much into details yet, waiting for things to unfold before that
m59
m59
Is there a name for the most global place where your code runs?
Let's just say my whole app is:
@ircmaxell well anyway it's going to be a fitting role for you ... you are a good educator.
m59
m59
new Foo();
Foo->doStuff();
@m59 global space?
m59
m59
03:33
I guess I kind of meant the flow of it
It's like an overview of what happens
or can be
Thanks!
Off to bed. Good night!
m59
m59
I've been trying forever to make it clear in that area what happens throughout the application, while keeping the details hidden.
This seems impossible.
@m59 I know what you are talking about .... but I don't know what to call it...
m59
m59
Is my goal not the right goal?
Overall Architecture? Sometimes shown in an Overview Diagram (Context)
03:37
@m59 basically it's what's it the index.php in most routed systems or buried in the $app->run method
m59
m59
I've heard that called the bootstrap file (I think)
$Foo = new Foo();
$Bar = new Bar($Foo);

$Bar->doStuff();

$data = $Foo->getData();
//Where did that data come from!? Bar added it behind the scenes.
bootstrap is setting the environment up for the application to run.... you are talking about the phases that exist with a given request / response cycle right
@m59 kind of but not really. Bootstrap is where you setup all the dependencies for your app to run.
m59
m59
That above code seems wrong is the point I'm trying to make.
@m59 that looks like bootstrap then, because what Bar did is setup your environment
03:39
yeah... it looks riddled with side effect.... Bar shouldn't cause any state to change on foo... possibly
m59
m59
How can that possibly be done without a crazy amount of logic in that overall view?
@Orangepill why? Unless we are going fully immutable.
I guess it depends on what Foo and Bar are...
in terms of setting up the environment, considering that Foo is a Request, it makes sense
m59
m59
I don't know what anything is =D
03:42
I would prefer decorating Foo with bar in that case ....
m59
m59
I can make anything work, but my code is terrible.
user1642018
hi all
user1642018
does using too many require functions in php slows down page load ?
m59
m59
Not usually, unless it's a ridiculous amount.
I mean, technically all code slows down page load =D
user1642018
okie., i am using like less than 10 require.
03:45
^ specially I/O
m59
m59
Is your page load slow?
user1642018
not yet, but building high speed side.
user1642018
so gotta take that in to consideration too.
you need to require what you need to require. Just make sure you don't require the same thing twice
@AMB opcache should make it a non-issue
user1642018
03:46
okie.,
user1642018
looking opcache , thanks
user1642018
@Orangepill did you mean zend opcache ? or
user1642018
regular php opcache ? or both are same ?
standard equipment on php 5.5
user1642018
03:48
@Orangepill got it, thanks man.
m59
m59
A lot of things need access to some request/server info (formatted to my liking)
@m59 Then it is a dependency and it should be injected.
m59
m59
I made something that can handle that pretty easily.
But what is "it"?
I considered making a request class
but it's not a "new" request
maybe that's irrelevant..
user652649
sup!
@m59 you should compartmentalize your app. For example even if DATA is sent in a Request, by the time it reaches your Model it should be only in terms of things that your Model knows about.
03:52
it is a new application request fromed from a http request
@wes how goes it
m59
m59
Ok, right. That's kind of what I was doing, but awkwardly.
@Wes are you the right Wes?
nm, you are =D
user652649
yes it's me @m59 xD
it's Wes from EasSide
user652649
03:54
lolz
m59
m59
Ok, so like I said, I have a ton of logic to work things out, but I'm just trying to clean it up (again)
I've been sending all the global stuff to this function that prepares it up for me
I get the main request data with it
When I added the ability to expand requests, it got fail again
@AMB If you use class autoloading and the OPCache in php 5.5 (or any other PHP cacher) then you can avoid requiring files, and so avoiding any slowdown. You can also use a horrible hack to avoid requires when you need to load a bunch of functions that aren't in a class.
m59
m59
Basically a resource can include some rules for how it can be expanded. If you ask for an article, there's a little route thing that tell the app how to also get the article's category info
since i already have logic for getting resources, I thought, well, re-use it!
@Danack makes you wish the function autoloading rfc made it ....
m59
m59
So, I want to take that route rule and build another request and pass it through the thing that gets resources
03:58
@Orangepill Yep.
m59
m59
that's all gravy, but while so similar, it seems like the original request rewriting logic doesn't work out.
So, what's supposed to be responsible for dealing with these other requests?
Another class for expand requests?
user652649
guys how would you call a class that you use just for avoid dozens of parameters in a method? something like Composer ? does it exist a name for this pattern?
@Wes Config? If it's config.
user652649
lemmecheck
m59
m59
new ExpandRequest($someParams); actually sounds pretty intuitive...
04:01
Also - dozens of parameters in one class?
user652649
just making a point
user652649
yes it looks to be config thanks
user652649
/me refactors
m59
m59
class ExpandRequest extends Request
And server info belongs in another class?
@Wes ValueObjects
user652649
04:10
@Orangepill i don't understand why some very specific features get approved (like named parameters [i think not many will use them]) while features that fit the language naturally, that would match other features awesomely and that are requested by many are sometimes dropped
user652649
for example look at this bugs.php.net/bug.php?id=46492
@Wes BC, FC and maintainability reasons. and DRAMA
user652649
now tell me how that is different from array("a", "b") instanceof Callable
user652649
i can't understand it
@wes amen to that.... I've bitch about array not passing a Traversable typehint
04:14
@Wes good point.
@Wes it's like law. You need to point this out to the judge and if he can't counter this, he will have to go with the new proposition too
was this ever RFC'ed?
user652649
i don't know, but someone should do that
What good does the traversable interface do anyway?
its not like you can implement it and get anything out of it
user652649
if you put this on that point also Callable has no actual benefits
user652649
@PeeHaa @Gordon @ircmaxell @rdlowrey take a look at that ^ array() instanceof Traversable
user652649
massiveping
04:24
you can apply the exact words to Callable:
> array() is not an object of any class. Hence, it can't implement any interface such as Traversible Callable.
user652649
iirc callable is not an actual interface means that you can't use it with instanceof operator (as opposed to what i wrote before)
@wes the difference is that callable behaves like it should :)
user652649
you can only use it as a type hint, exactly like the "array" type hinting
user652649
ie you can't do array() instanceof array, but you can do function test(array $a){}
user652649
traversable is instead an actual interface
user652649
04:30
maybe that's the difference
Traversable is an interface. traversable should be a type.
user652649
yeah, since it has no methods
@andho I can get on board with that .
or just array XD
user652649
problem is that change would probably break code that currently uses $a instanceof Traversable
04:32
so if (is_array(new ArrayIterator([]))) { should work
public function doSomething(array $things) {
should work with:
$this->doSomething(new ArrayIterator([]));
wait does that work already?
user652649
does it? :|
doesn't work
user652649
yeah
either way, I think array could be the equivalent of callable
m59
m59
Should the Request class have the functions that parse/rewrite everything or are those in another class that it depends on?
04:35
@m59 everything? :O
m59
m59
most of it..
user652649
anyway @andho that would be wrong because if you typehint array you would expect to use array_* functions on that var, which you can't do with "array containers classes"
user652649
@JoeWatkins chat.stackoverflow.com/transcript/message/14504798#14504798 have a look at this discussion
@Wes that's something that needs to be fixed isn't it
user652649
you mean using array_ functions on array objects?
04:39
@Wes yup, or better to say, using array_ functions on Traversable objects.
user652649
imho no, because what then would those functions return? a raw array or an array object class?
user652649
you are talking of __toArray magic method or something
user652649
class ArrayObject{ function __toArray(){ return $this->storage; }}
user652649
basically the same as __toString
@Wes didn't think of that but Boxing should take care of it
user652649
04:42
lol
lol
shit
alright
user652649
that's really close to boxing, and it would allow users to have their own scalar types implementation
user652649
plus so much many things
user652649
04:57
guys i'm thinking to move all interfaces in a completely different namespace (and a different dir too) containing interfaces and interfaces only, what do you think?
05:14
morrrning
morning...
user652649
morning
@Wes what does that gain you?
user652649
wat?
user652649
especially a better organized filesystem
05:15
@wes isolating interfaces from implementations.... just wondering the motivation
user652649
i have a gillion files, i'm trying to organize them :\
@crypticツ You've been playing with Arya... is there a reason that you can think of as to why before middlewares aren't being used here
isn't that what they are for ... augmenting the request before it goes to routing?
or am I misunderstanding the intent of the before middlewares?
I dunno, I'm too stupid to understand any of that =o(
Maybe it's a todo?
05:30
It looks like there is not a public interface to set the field properties.... obviously rewriting the request is not in the cards for middlewares :(
05:45
@Wes nop. Interfaces belongs to whatever module it gives access to
@Orangepill can't they return a new (mutated) Request object?
@Orangepill looks like a good job for middleware. That's how express does it..
I think so too...
05:59
I agree =o)
any wordpress developer?
"wordpress developer" is an oxymoron
4
@Wes you can have interfaces in Interfaces dir. traits / abstracts in type directory and classes in model directory. if that helps. that way traits interfaces and classes can all have the same name. that's the only advantage. if you plan on interfaces having different names then there's no point.
What is the code to reply directly from text box? my right click button is faulty.
@mAsT3RpEE TAB > Enter? what textbox? what right click?
oh i see, but your left click works right.
there is a reply icon on the right side of the message
how do you set a timeout on a request in Artax?
what's the easiest way to run some shell scripts in parallel?
06:36
Morning
morning
RAINBOW!!!!1
morning @Gordon
06:56
@crypticツ you still give out free hugs? I could use one. im stressed :D
@Gordon *hugs* what's stressing you out?
@Gordon RAINBOWS and stress?
@crypticツ thanks. just juggling too many things at once atm
From 127 ms to 45 ms. Yay, micro-optimization!
I know the feeling. Just gotta cut-back where you can. I always had the problem of not being able to say "no" in college when I volunteered with groups. People always wanted me to help with something and even though I was swamped with stuff already I said yes, and it piles up =o\
07:01
@Leri 35% is not much of a micro optimization. Unless your system hardly has concurrent users :)
@crypticツ there are few things that will get you ahead in life. Hard work is not one of them :P. Making excuses, saying no and letting others do you job.
@andho so true
@andho Actually, it's android app. And for low-end devices that will give me quite big performance boost. On my device it's unnoticeable.
But I rarely delegated tasks to other members of the group. I felt I could do it better and faster if I did it myself, which was pretty much true all the time.
and because of that, more groups wanted me to help
I suppose now that I look back at it, they were kinda taking advantage of me
morning :)
@crypticツ that's true and happens to me. But unless you can make your team improve, you cannot go forward with them.
07:06
Morning, @hakre
how important is it to make code 5.3 compatible? is it okay to make code for 5.4+ ? I know iPage only supports up to 5.3
If i have 3 tasks to do, i can give 2 to team members. Do 3 myself. then when the other 2 tasks are done by the other members, I have to debug them :S
I like working alone, when I work in teams I feel like I'm 10 pages ahead of them and I have to keep explaining myself. Maybe I had team management all wrong.
@mAsT3RpEE are you writing a library that will be used by people that run there servers on 5.3. Are you going to need to run you system on 5.3 because of any restrictions
@crypticツ you cannot work in a team, that doesn't want to improve. So in that case you will have that feeling.
@andho Im hoping 5.3 will be phased out soon. it's not that good. better than 5.2 by far but really 5.4 is the reall php as far as im concerned. but i can't guess how long it will take for 5.4 to be available on all servers.
07:10
@mAsT3RpEE if you have no control over where people deploy your system, then I guess you either support them, or tell them to upgrade
most hosts are slow to upgrade.
1 last question. What is the fastest most pluggable / usable implementation of a Mediator. Currently I'm using an event dispatcher to do this. Any one have something better. I'd really appreciate it. thanks in advance.
07:28
So the email addresses have been obfuscated to discourage automated scraping to minimize SPAM, and you are seeking help in circumventing the obfuscation so that you can scrape the email addresses? Nice. — DavidO 1 min ago
bwahahahaa!
Good morning! :)
-_- Bummer I would like to ask a question on the drupal.stackexchange but I don't have enough reputation yet.
morning
07:45
Morning @crypticツ
Hello All
How to update a blob field ?
I am using update statement in my code, it isn't updating the column, moreover it isn't throwing the error too
morning all
@Gordon @Gordon y was the question deleted? I thought this was a free world. & I had an answer.
Morning room
mornin @PeeHaa
08:01
Hey @crypticツ
@mAsT3RpEE Author deleted himself. :)
so my work wont go to waste "generic email address expression modified from rfc"

http://pastebin.com/GsCtEyHW
@PeeHaa E_TOO_MUCH_MAGIC_WITHOUT_EXPLANATION :)
:-)
BTW that is a huge fucking pattern you have there :P @mAsT3RpEE
08:16
yess it does it is full rfc but it is quite heavy. the final built search strin is over 1kb long. so for performance i normally do:

$isValid = filter_var($Email, VALIDATE_EMAIL)?: my_custom_validate($Email);

But the internal php command can handle 99% of email addresses.
Not 99% I think but it does go a very long way emailtester.pieterhordijk.com/test-pattern/MTA2
Nice job
Crazy, but nice
@PeeHaa its not a pattern look @ rfc. it is a copy line for line. even the variables are the same.
What rfc's is it based on?
brb meeting
@PeeHaa all of them let me get the list
credit should go to him but basically what he did is copy from rfc 822 and keeps it updated.

https://github.com/iamcal/rfc822/blob/master/rfc822.php
@PeeHaa the full pattern is actually 24kb 8P. that's why i think php wont be adopting it.
08:23
@Leri like he said. this is just for testing purposes. you have to modify the code yourself for your own needs.
@PeeHaa it cover at least RFCs 822, 2822, 5322
@mAsT3RpEE I understand that but... You should always try to write clean code. For me this is much cleaner: pastebin.com/XadJB6QC
And better to maintain.
Well, I messed logic though
LOL
Back to my work
08:39
hi all
Warning: shell_exec() has been disabled for security reasons
how to enabled shell_exec
currently using plesk
use .htaccess file edit the disable_functions variable
set it to null
ok checking
if it's due to a hosting provider consider switching to a cloud server. its around the same price $10 per month with no restrictions.
Morning
@mAsT3RpEE nice
08:50
@mAsT3RpEE can you give me example
Nice email validation regex.
Do you not use filter_var() for emails then?
And no I doubt it will be added when it is that performance hit
Still pretty cool though
I mean I know the regex is a bit trolol but I am curious about filter_var()
i still use filter vars but like this:

filter_var()?: my_function()
@KaranDembla 1 min
php variables using .htaccess http://davidwalsh.name/php-values-htaccess disabling functions using php.ini http://www.cyberciti.biz/faq/linux-unix-apache-lighttpd-phpini-disable-functions/

Apparently it's a directive you cant set with .htaccess. you'll have to create a local php.ini file
@Fabien I think the final solution would be a set of regex not just one that can be passed as an array. the full regex is impractical. but im satisfied with this so im not going to write one.
09:07
Aye
@RonniSkansing insidetv.ew.com/2014/02/03/the-after-first-chris-carter =oO so excited! I loved the X-Files so I'm sure this will be good too.
09:32
Will David be in it?
@DaveRandom I need to get my hands on contacts from exchange from the web. You have any experience with that by any chance? Doable, but as much fun as stabbing your own eyes? Easy and straightforward? Fucking impossibru?
@PeeHaa Doesn't exchange use LDAP?
@PeeHaa Well Exchange contacts are all stored in AD, so the "simplest" approach is LDAP. But activesync does contacts and, while that probably means writing a protocol impl from scratch, it's also probably safer and easier to write a nice abstraction
Yeah. And @DaveRandom is our ldap lover :)
told you so ;)
@PeeHaa I'm kinda busy but I'll walk you through some stuff later if you like. What exactly do you want to accomplish in terms of auth etc?
09:46
If your sick of always having to use

@intval($x)
@strval($x) and
(is_scalar($x)?: is_callable($x, '__toString'))

say AMEN
@DaveRandom Not in a rush, just something I'm going to need at some later time. Basically for the job I am working on something like mailchimp and I want to let people import contact from exchange.
@PeeHaa Ahh OK. Well that's going to need ActiveSync magic in order to be useful I would say, the AD approach would generally require the Exch server to be local (only idiots open AD up to the outside world directly). AFIAK it's all just RPC over HTTP, never really looked at it but I'd be interested in learning how it works, maybe we can look at putting an open-source lib together.
@DaveRandom Yeah cool. It's been way to long we have dicked around together :)
True story
alo' alo'
09:54
hola marco
Morning @Jimbo
10:09
With the new column sorting in backlog I can sort by close vote and get to easily cast the kill vote =oD My life is now complete.
@crypticツ War ist das sort
@Jimbo It's hidden, only those who are worthy may enjoy its glory =oP
@crypticツ I am worthy!
Is it a GET param?
@Danack what kind of example are you looking for?
It's in the new version should be released sometime next week, going to make a last call for new features before I leave alpha and just do refactoring and bug fixes. @Jimbo
10:20
@Danack I haz marco-pivetta.com/doctrine2-orm-tutorial if you want - a bit outdated, but works
@Jimbo it's done client-side using JS so no need to refresh page
can any one tell me how to parse data using json and php for the result coming from the below link
http://maps.googleapis.com/maps/api/geocode/json?address=London,UK&sensor=false
Jes
Jes
hello friends
Error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1
File: D:\xampp\htdocs\Projects\TheRightPlace\app\Vendor\OAuth.php
Line: 100
what does this error mean in cake
The error, anywhere, means that the code is trying to define a class, twice.
Possibly you're including the file twice
Or, it actually has the class name twice somewhere
10:36
i try the below code
$json = file_get_contents('https://www.googleapis.com/youtube/v3/search?part=snippet&q=hai&key=AIzaSyDkLnMw5fYWY15IbEM8BftsnsOsxudgXO0&maxResults=25');
$data = json_decode($json,true);
var_dump($data);

But i am getting NULL result
@lalith458 Works for me
@lalith458 do you have allow_url_fopen enabled?
also is error reporting turned on?
1 message moved to Trash can
Jes
Jes
@Jimbo i just downloaded the plugin and added to my project
yahoo plugin for importing project
how do i apply a for each loop?
$myArray = array("First Key" => "First Value", "Second Key", "Second Value");

foreach ($myArray as $key => $value)
{
      echo "The key is: " . $key . " and the value is: " . $value;
}
10:49
or
foreach ($myArray as $value)
{
    echo "The value is: " . $value;
}
to save memory if you don't need the key
Can anyone tell me what is more efficient - starting and stopping connections to the database or keeping a connection open until you are done using the db?
@Jimbo How to Minus no of vacancy once student is assigned to company from a dropdown list menu? do i use foreach?
this is what i have so far
@BillyMathews PHP uses Request -> Response | END. Your DB shouldn't persist at the end of the response, once you've gotten your data back that's it. Unless you're doing some crazy live stuff that's talking to the DB all the time, connect when you need it, and don't connect when you don't
@Angelica Angelica. Are you from India?

« first day (1208 days earlier)      last day (3965 days later) »