« first day (1126 days earlier)      last day (3827 days later) » 

11:03 AM
yo!
im going crazy on drupal -_-
 
@webarto wont be a problem to change supported version to 5.4 in the design will it ?
 
hello
 
good evening friends
 
Please vote me. — Bipin Kumar Pal 22 mins ago
^^^ rofl .... I am thinking to downvote, as he didn't mentioned vote me up or down :P
 
Just temporary downvoted ;)
 
11:08 AM
haha I saw
 
any body know how to create featured product listing in magento
 
@JoeWatkins internals question - when you instantiate a class, it doesn't create a copy of all defined methods right? i.e. when you call an object method, it calls the singular method definition with a pointer to the calling instance?
feels like a silly question to ask, I'm assuming it works in a certain way, just want to double check..
 
@webarto hi
 
@Leigh no, it just saves a pointer to the methods HashTable.
 
Of course it does, if I'd have thought about it I'd have known that. The class definition has a methods hash table, and calling a method on an object looks up the method in the hash table, and populates $this accordingly
 
11:14 AM
@Leigh $this isn't populated? the only thing that's copied for every object are the properties
 
Hey, if anyone here knows Yii could they possibly try to help out @DarkAshelin regarding this question stackoverflow.com/questions/19998417/yii-routing-on-form-action ?
 
That's all what you can call a population.
 
@bwoebi Populated might be the wrong word, but the context of the call makes $this point to the correct object
 
Yea, I just had a dumb moment during refactoring, thinking I'd save memory overhead extracting some methods from a class there is many of, and placing them in a class there is only 1 of.
 
11:19 AM
@JoeWatkins method local static vars, yes; but nobody uses that really I assume (in methods!) :-D
 
@webarto gonna need to say 5.4 :D
 
I have a string in this format "Hello how are you - and you"
I want the "and you" text which is just after the -
How to do this in php?
 
@Mr_Green list(,$andYou) = explode(' - ', "Hello how are you - and you");
 
@Mr_Green or you can look up on regex
 
11:27 AM
@Mr_Green or $andYou = explode(' - ', "Hello how are you - and you")[1];
 
@Mr_Green see list() and explode() in the docs.
 
@bwoebi u got time?
 
@JoeWatkins yeah?
 
11:33 AM
we got 5.4 support at the last minute, another set of eyes would be good ...
 
@JoeWatkins yeah, I saw; I'm already building
 
ok thanks
 
thnx :)
looks okay so far
 
@Duikboot Whys :(
 
@webarto suspense killing me ...
 
11:42 AM
I have array in php
I want to run it in reverse
right now I am using foreach
but it is checking the array from top to bottom
but not reverse as I want
 
@Mr_Green array_reverse
 
I am stupid
I could have searched the same on google
 
Hmm, How does this figure out who the Hosting Provider is? whoishostingthis.com/google.com
 
oh fabien you still trying to parse whois ?
 
:)
 
11:55 AM
@Mr_Green or a for loop with -- :o
 
@JoeWatkins Well the work isn't finished and is subject to change, so kind of yeah.
 
@JoeWatkins Not a problem at all, it's powered by Wordpress, you can do everything.
git commit -am "Humour krakjoe"
:P
@Fabien In between jobs :D
 
TBF, with our skills we're never unemployed. We're just "freelancing"
 
If I can't get money to survive with my skills, I'd hang myself.
I grew up in war, so, what I have now is luxury :)
Changing job often gives you more opportunities.
 
12:06 PM
I worked on one app solely, and that killed me a bit.
So, I'm f* wild now :D
 
Yeah, it's hard to find good balance at work.
 
We had like 50 ruby apps, and few php ones, most of them were hacks.
So they had all the fun :)
My man-ager told me that it's a job for me, and he's right.
I want MOAR :D
^ @JoeWatkins
 
hi all anyone answer please this question?stackoverflow.com/questions/19983822/…
 
@james Pleas don't do that... git.io/chatroom-pact
 
MGE
hello, how to delete an array key, using in_array ?
for example:
 
12:12 PM
okay..:(
 
MGE
if(in_array('sample',$array)) action_to_delete_this_array_key
 
@james I'd be happy to help, but I can't answer in the form you've asked.
 
@MGE array_search()/unset()
 
@webarto Where's the HTML/CSS for that?
 
MGE
ok i have to use array_search
thanks!
 
12:14 PM
if ($key = array_search($needle, $haystack)) unset($haystack[$key]);
@MGE ^
@bwoebi Will be up soon, it's a mess, need to tidy it. I just started this few hours ago.
 
MGE
if (in_array($soundid,$new_sounds_order)) {
$key = array_search($soundid, $new_sounds_order);
return $key;
}
 
@webarto why use array_search at all? Just unset($array[$key]); - even if key does not exist, it's ok
 
MGE
but I have to know whats is the key
 
@AlmaDo Maybe for confirmation, IDK, I would do like you've said.
 
no one is answering my question since yesterday. @webarto i shall be thankful to you if you still help me.
 
12:16 PM
@webarto $key can be zero i think so
 
@webarto like if(mysqli_query('DROP table foo')) {echo ('table "foo" existed')}; :D
 
if (FALSE !== ($key = array_search($needle, $haystack))) unset($haystack[$key]);
 
@ThomasWeinert Yeah, yeah, just pointing, couldn't bother reading manual. My browser can't hold another tab :D
 
@MGE is "sample" an array key, or value?
 
Webpages are falling apart.
 
12:17 PM
@webarto hehe
 
MGE
I have the value
and I want to delete the key that have that value
 
@bwoebi I'll give access to webpage repo to all project contributors.
 
@MGE only one "key" will ever have that value?
 
@Gordon no, that was from my September trip, AutoAwesome just made the video
 
@ircmaxell ah ok.
 
12:30 PM
sorry @Fabien was on school run, I wonder if you can find the abuse email in zone file, zone files are a standard format, look at dig command or find the rfc for DNS ...
@webarto looking good ...
 
1:01 PM
> It's not just you! people.php.net looks down from here.
Why is this happening lately?
 
The thing runs on php...
 
That explains it all.
 
@PeeHaa the webserver is down too… and I don't think that it's a webserver written in php :-)
 
and why not ? :P
 
@webarto that's odd, it's not pinging to its normal host machine
 
1:13 PM
I noticed it was down off-on a few times in past few days.
 
0
Q: jsPlumb on rotating elements

Stasikconsider the following fiddle: http://jsfiddle.net/7fgDf/3/ $(".cl").rotate({ bind: { dblclick: function () { $(this).data('angle', $(this).data('angle') + 90); var w = $(this).css('width'); $(this).rotate({ animateTo: $(this).data(...

hi. the OP picked me as best answer and voted me down. (I think accidentally) please help
 
@webarto it was moved to a new vm a few days ago, I'm guessing there's still teething problems
 
Ah, good, didn't know that, explains a bit. Thanks.
 
@JoeWatkins We do check for abuse emails in the whois. Or at least the presence of the word "abuse".
 
1:28 PM
@thenewseattle Comment him about it, you can use the @ ping to notify him aboutit.
 
@MadaraUchiha I watched this go game(44:46) last night. It's a commentated youtube video. Commentary is a little hard to understand but he does a great job. Might be interesting to you.
 
@Fabien Thanks, will watch :)
 
@MadaraUchiha well you can revert it if you have a look at the q and the a
 
1:53 PM
 
yo
 
@ircmaxell jo
 
word
 
2:09 PM
meh
 
Hi
 
I have complete page html i.e from doctype to </html> which is coming as response through ajax request
<Mr_Green> I am doing the above using prototype
<Mr_Green> I want to get a specific element though that html text
<Mr_Green> How to get a element in prototype?
 
@webarto hows it going ?
 
@Mr_Green
3 hours ago, by Mr_Green
I could have searched the same on google
 
hehe
 
2:16 PM
are you sure you don't want to ask google first?
 
searched very much
 
@AlmaDo I didn't mean disrespect you
 
PURPLE EVERYWHERE
 
just bad in english
 
2:17 PM
Fine, few hours at most 'til 0.0.1
 
@webarto E_TOO_NICE_TO_BE_TRUE :-)
 
Dat saturation
 
You used Adobe Fireworks or?
 
Saturation == Power
 
=]
(Looks nice by the way!)
 
2:18 PM
I'll saturate it so much it'll make your screen burn.
@bwoebi Product or website? :P
 
I'm not sure I'll like having PHP burned into my display.
 
@webarto erm, both… haha^^ well, actually I was referring to the website
 
Thanks :P
 
so bored
 
:(
 
2:22 PM
at least you are receiving money while being bored
 
Do a video :D
@webarto lol, How long unemployed for?
 
few days, can't take it anymore :D
I'm not unemployed, I'm just not paid :D
 
Become a gamer for a bit :D!
 
I got a wife and doggy to feed :D
 
Something on mutability would be nice @ircmaxell. I did like the reasoning behind what you told me earlier.
 
2:23 PM
haha
that edit changed everything =)
 
it wouldn't make sense anyways, should be reversed
 
At least you're at home with the dog more then :)
In your previous job, were you able to work from home much?
 
@AshwinMukhija I just did a post on mutability
 
Link please!
 
@webarto I find out this afternoon how long my fun-cation is
@AshwinMukhija blog.ircmaxell.com
 
2:27 PM
@ircmaxell You mean until, you know? :)
I have only one remark, and that's that I wasn't noticed month up ahead as discussed prior to employment. I got paid for the month, tho.
 
ahh
 
@webarto excellentz, looking sweeeet ...
 
border-top: solid #3px;
One of those days...
 
lol
 
You media querying it?
 
2:37 PM
I guess so, not sure :P
 
blah, I don't want to be here
 
where do you want to be?
 
I don't know
/me just feels blah
 
So, I have one question regarding namespacing and type hinting
 
Then you shall receive one answer ;)
 
2:43 PM
namespace Foo;
class Bar {
    public function baz(\PDO $pdo);
    public function baz2(array $args);
}
 
But you gotta ask first; we suck at reading minds.
 
@ircmaxell one of those days, I say (same here)
go out dude, you're in NYC
 
@AshwinMukhija remove backtiks -> ctrl+k
 
Thanks @PeeHaa
baz works, but baz2 doesn't.
 
Or if you are an apple user command + apple + backwards e + jump around + sit down
 
2:44 PM
If I pass any 'primitive' type as a type hint
 
@webarto have a meeting at 3. Could go walk, but why bother
 
@AshwinMukhija Define doesn't work
@salathe fix php will ya!
the site that is :P
php itself cannot be fixed obviously
 
@ircmaxell Never asked you, what do you actually do there if not a secret? :)
 
@PeeHaa people?
 
nothing
 
2:46 PM
@salathe yes
 
You just sit there as a trophy? :P
 
Who does the server management btw of the php sites?
 
@PeeHaa I would if I could
@PeeHaa Depends on the site / server
 
Some dark forces...
 
main and/or people
@webarto you mean rasmus? :P
 
2:48 PM
:D
 
@PeeHaa only rasmus does anything with people these days
I've been asking for access for yyeaarrrsss, it would be nice to really make people a useful site.
 
@PeeHaa With an autoloader in place, it's actually not able to find primitive types in the namespace.
 
@salathe yes!
@salathe aha
 
I almost got access to master, but no.
 
@webarto basically...
 
2:50 PM
@AshwinMukhija How do you know that?
 
I used to build and run teams.
 
Previously it was on a Yahoo!-owned machine, which made giving out access.... problematic.
 
@AshwinMukhija What does an autoloader have anything to do with primitives?
 
then someone thought I should help solve problems. So I went there, until they realized nobody wanted the problems solved
so we sat there doing nothing
 
@PeeHaa I faced this fairly recently.
 
2:50 PM
True story... @ircmaxell
I can relate totally.
 
was offered my old gig (at a promotion), but I didn't want to work for who offered it to me. I can't stand that type of person
 
@ircmaxell that sounds crap :(
 
53 secs ago, by PeeHaa
@AshwinMukhija How do you know that?
 
so I said no, and waited
and they have been hounding me for the past 9 months, and I refuse to work for them
 
How have you tested it and figured out it was a namespacing issue?
 
2:51 PM
so today I find out wheat my package will be, and will enjoy the next 2.5 months of vacation
@salathe initially is was crap. then it was awesome. then it was double crap.
 
Why can't we enjoy our paid jobs...
 
now it's "I'm going to have to go find a real job soon..."
 
woof, that does sound pretty doubly crappy. That would probably drive me insane
 
@webarto I did, I really did. for years
I loved the teams I put together
 
@PeeHaa Let me dig up the exact error
 
2:52 PM
Sorry, bad wording, I meant, why does it have to go downhill and be crap in few short years...
 
I still do. I still sit with them, and that's the only reason I haven't left yet. Well, I sat with them. On monday I move to the other side of the building
part of me wants to write a blog post talking about compiled vs interpreted
but the other part of me wants to do something useful
 
Argument 1 passed to Core\Managers\Configurator::error() must be an instance of Core\Managers\string, string given, called in D:\wamp\www\nautica\bootstrap.php
Doesn't happen with arrays
But with strings
 
You can't typehint primitives
Other than arrays
 
(and yes, it's a sad limitation. and yes, there have been attempts to fix it. and yes, it may be fixed some day)
 
Ah
That makes sense
And here I was thinking that I was doing something wrong
 
3:03 PM
well, it doesn't really make sense
 
I mean, the error. Not the limitation.
 
yea :)
 
I was sick of using the is_* functions to check and throw exceptions.
 
So, @igorw: found a gig yet?
 
I hope he's looking for the gig, not just a gig, otherwise, I could just hang myself.
 
3:08 PM
@ircmaxell 'course not. dealing with actual life is way too scary.
 
@AshwinMukhija I have a static class MyProjectConstraints with several functions like assertInteger(), assertString(), ...
 
@igorw if you want to go into business together...
 
... is the business blackjack and hookers?
 
@salathe without the blackjack
 
@salathe and the hookers
 
3:10 PM
Man even @igorw is looking available? Sorry @webarto :(
 
well, looking is an aggressive term?
 
I can make a pretty darn good coffee...
Yesterday, I tried to "draw" a hart in coffee, turned out to look like male organ.
 
lol
 
One wrong move with foam and you're sexist.
 
@webarto a male heart? *innocent*
 
3:13 PM
:D
 
LOL
 
@webarto I'd be a bit worried if an employee handed me a coffee with that design in it :P
 
@ircmaxell I love the idea that data must be immutable, but take for example a DAO, where in you generate some part of the data from the user. How does data immutability come into play here?
 
@AshwinMukhija you create the data object, and then pass it around, if someone needs to modify it, they make a new copy with the modifications...
 
When I was "finishing" it, more foam poured in, and...
 
3:15 PM
Okay. And then you overwrite the original data with the modified one?
 
really dude?
@AshwinMukhija nope
you pass the modified one where it needs to go
 
@webarto that just remembered me the wrong finger… I'm unsure if I should trash it^^
 
And to maintain this transition from the original state to the modified state, you propose Value-Objects
 
Which depicts, you know...
Do you guys know some remote jobs, so I don't accidentally make inappropriate coffee for someone?
 
@AshwinMukhija Consider the number 5, it's a value object. If you take 5+2 that doesn't make 5 suddenly become 7, instead it returns a new value that's 7
 
3:18 PM
Right
 
Good ol' MS paint spray. Many a time I tried to fill using that badboy.
 
I just had to setup a WP site
 
@PeeHaa You got paid for it at least right?
 
@PeeHaa My condolences.
 
3:19 PM
@cspray Why someone would pay for a WP site is beyond me.
 
Like that Gov't that paid millions for one.
 
Ah yes, the art of embezzlement.
 
@LeviMorrison Thanks, forgot to remove it.
@PeeHaa :D I bet you got $1000 for it!
 
It looked a bit too much like a particular organ ^^
 
3:21 PM
@LeviMorrison oh, it should show that organ… Didn't realize^^
 
@AshwinMukhija That, like, totally grossed me out. (sorry for multi-ping)
 
TBF you get a good sign of your health from stool. Stool chart
 
So everyone here hates Wordpress then? :|
 
@webarto Groused?
 
FFS
 
3:23 PM
WP is only good for making a blog where you want to spend actually no effort.
 
@AshwinMukhija Not even for that
 
What do you guys use for blogging?
 
WP
 
Ghost now
 
  public function action_index()
  {
    $slug = $this->request->param('slug');

    $post = ORM::factory('Post')->where('slug', '=', $slug)->find()->content;

    $parser = new \Michelf\Markdown;
    $post = $parser->transform($post);

    $this->view->post = $post;
  }
:D
 
3:25 PM
MovableType (some ancient version because I cant fucking get the new ones :()
 
@AshwinMukhija Jekyll
 
I heard static is evil.
 
I heard static is mostly evil.
 
I heard static is evil when you don't understand what you're doing
 
Where can I read about using static for good and not evil?
 
3:36 PM
In PHP specifically there are very few times where static is useful or needed
 
most time that are instantiation methods
 
Static is all too often used as a crutch and a way to provide "pretty" global data/state
 
@AlmaDo I'd even disagree there...
 
yellow
 
@LeviMorrison clarify then, please
 
3:41 PM
In PHP I use static variables to initialize large chunks of persistent data in functions that do not change from call to call. This happens approximately never, but does on occasion (a classmap autoloader). I have yet to see a good reason to use a static method in PHP.
 
@LeviMorrison huh. static methods or static variables ?
 
I use static variables (on rare occasion) and never use static methods.
 
but if you want to create custom instantiation method - what will you do ?
 
We have a host of other, better patterns for that.
 
use Factory?
 
3:43 PM
Factory is one, yes.
 
@Fabien @cspray No amount of money is enough for this trauma
 
@PeeHaa Outsource it to freelancer and accept half pay :P
 
Static was heavily used in Laravel 3. In 4 they moved to Facades.
From the users perspective it operates pretty much the same-> HTML::input('name')
I assume there is some performance benefit of using instantiated object over static.
 
Meh, more about maintainability and good design imo
 
in certain cases maybe, but not really...
 
3:52 PM
@Fabien Freelancers suck
Or external people in general
 
Sucky job for potentially sucky dev
 
Static is effectively global; since you can just get the object anywhere you want a lot of the time people do. This leads to designs where dependencies are never explicitly declared and leads to maintainability problems.
 
@igorw Hmm... I guess it was more about promoting/enabling IOC within the framework.
 
imho avoiding static is as much about changing your design/thought process as it is anything else
 
yes, it's about encapsulation, polymorphism, and having some control over the state in the system
while objects are usually stateful and mutable, you at least have the ability to set them up and tear them down
 
3:56 PM
What do you guys think about the Facade pattern then? It's kinda like a static IOC wrapper.
 
which is generally not possible in procedural languages. but that is probably a limitation of those languages. being able to re-set that state or "instantiate" a module of procedures would allow limited control over state without needing objects. :)
(that said, you could consider a 'process' to be an instance of a procedural module)
 
@CollinJames I don't think that the Facade pattern really has anything to do with static
 
@CollinJames if you look up the definition of the facade pattern, nowhere does it say static or IoC
 
That just happens to be how Laravel does it
 
@cspray You know, your right... I knew that actually I've just been living in the L4 world for a while.
So.. what about their implementation? Still causes the same poor design issues with dependencies being obscured?
 
3:59 PM
laravel's facade is basically the equivalent of a global service locator
 

« first day (1126 days earlier)      last day (3827 days later) »