« first day (1325 days earlier)      last day (3639 days later) » 

8:00 AM
I can't believe cryptic's message lasted a month, but who know who long it would last :o
 
@user3470815 normally, this
 
@Naruto Oh Em Gee, really?!!
 
@SecondRikudo one month ago you was able to pin it by yourself :p
 
@salathe ERMAHGERD!
 
@AlmaDo haha
 
8:03 AM
@PeeHaa Is your new boss being a real ball-breaker? :P
 
@JoeWatkins I looked away... and you stole! :)
 
could someone recommend me a developer html-php-js-ajax ?
 
ohai
 
Curiosity: imagine that all you have is matching by regex. And you can not "capture" anything (however, parenthesis is allowed in regex pattern itself). Is it possible to do split by regex with this only functionality? Long story short: emulate preg_split() with preg_match() only, where you can use it only to match, not capture (so only 2 parameters)
 
8:17 AM
@AlmaDo Anything's possible, with regex.
 
@salathe so, how would you do that?
I have one clue now, but.. not very good
 
Personally, I'd use preg_split()...
 
lol
 
Heh @BenjaminGruenbaum your meta question skyrocketed
 
@AlmaDo are you allowed to use preg_match_all() ?
 
8:19 AM
@salathe no
only preg_match. And without capturing
 
@Fabien :) @AlmaDo
Busy like always:)
 
@salathe yes I did :D
 
@user3470815 that hard huh? :D
 
@AlmaDo I'm certain it's possible (and not too difficult), but I really have to question... whyyyyyyy?
 
@salathe create stored proc for MySQL. It will produce row set, based on regex (so do same as preg_split) - but in MySQL we have only REGEXP, which behaves like preg_match and does not allow capture
 
8:22 AM
@Naruto i think this project is sucking up years of life-span
 
It's a very refined way to torture DBMS, I know, but I'll do it
 
@AlmaDo ooohh, so you're not even allowed to use preg_match()!
 
@salathe I have REGEXP. It's quite same as preg_match, the only difference is that capture is impossible
 
@AlmaDo there'll be a UDF somewhere for that
 
@salathe there's not. Also, I'm about to create stored proc, not UDF
 
8:25 AM
WTF Sorry, we are no longer accepting questions from this account.
 
@AlmaDo You've searched the entire world for a UDF?
 
@salathe actually, not entire world.
 
What have you got?
 
@SecondRikudo what is that?
 
8:26 AM
@AlmaDo preg_split with only matches and no captures
 
@AlmaDo can you use Postgres? It has a regexp_split_to_table() function built-in. :D
 
@SecondRikudo no, it isn't. Because you're using capture implicitly
 
off to work.. taxes to pay.. Later, happy coding
 
@SecondRikudo oh. better to say: you're using preg_match_all-like behavior
 
@AlmaDo [^|]+\|? then...
 
8:29 AM
@SecondRikudo that's not allowed. Only thing that we can do: answer the question if certain string matches certain pattern. We can not say anymore (so it's impossible to find, "what was matched")
you're relying on fact that it will show all three occurrences - so it's impossible with REGEXP operator
 
@AlmaDo By definition you can't return the split string if that's all you can do.
 
@SecondRikudo I think I can. I'm trying now
 
how to capture this response in JS i.imgur.com/bGeJ3cj.png produced by jsfiddle.net/6JUMj the php just outputs an array as json_encode($queryresult)
 
mornings
 
@user3470815 You're in the wrong room.
 
8:35 AM
Guys when going to my website with a www. it works. without it doesn't. When I try checking the dns with a pinging site I get 'Unknown host: cddnation.com'
morning @DaveRandom
 
@Fabien You don't have a root A record, which could potentially break quite a few things
 
@SecondRikudo If i try to post a question i get we are no longer accepting questions from this account.
 
Checked the DNS. * and www are pointed to the same IP
 
@Fabien You need to add an entry to the zone file for the host @
 
What's @ do?
 
8:37 AM
@user3470815 That's a completely different problem.
 
* is only a wildcard for sub domains, @ is the self-referential record (i.e. root of the current zone file)
 
Fix your existing questions so that they are reopened and upvoted.
Otherwise, you won't be able to ask questions.
Also, this is the PHP room, you're asking a JavaScript question.
 
Ok @ added.
 
@SecondRikudo thanks
 
Hey guys. Interesting problem. I'm trying to build a redirect based on the latest software build in a directory.
 
8:38 AM
Stupid fasthost. It's showing blank rather than the @ symbol
 
So far I have it detecting if there's a updated directory
 
@Fabien A lot of UI's do
 
Furry muff
 
That should probably work immediately after deploying it to the NS, failed lookups shouldn't be cached
 
Thank you. Will away propgation.
 
8:39 AM
actually, guess the problems too complicated for this channel.
 
@Purify It probably is. Goodbye!
 
@user3470815 link me your question
@SecondRikudo Why you killing my friends on thursday? :(
 
@DaveRandom Hopefully soon it'll update then. still gimping but the A record is now there.
 
@Naruto Because it's almost friday!
 
@Naruto what do you mean by link me
 
8:41 AM
@Fabien That's a bit weird, I would have expected it to work immediately, are you sure you don't have to "apply" or something? If it doesn't work after a couple of mins, see if it will let you add a record for . (which doesn't mean the same thing but should have the same effect in the root zone file for a domain)
 
Nope. I changed page and came back to be sure.
 
@SecondRikudo wth? :D
@user3470815 nvm, found your question, the json one?
 
wait im gonna edit
it
 
Holy crap @Fabien, you got enough MX records? :-P
 
@DaveRandom Some locations have picked up the IP though. Ireland, Netherlands, UK
 
8:43 AM
@user3470815 ut an alert before the loop, jut check if you ever enter the succes state..
 
@DaveRandom lol. Inherited responsibilities remember :P
 
@Naruto By telling him the answer before he fixes his questions, you are encouraging him to beg for answers in a chatroom instead of asking proper questions in the main site. Please don't.
 
Oh BTW apparently that Draytek router we were trying to access belongs to IP-XCHANGE
 
@SecondRikudo just realized - with negative/positive lookaheads/lookbehinds it's not possible :(
 
Instruct him on what he could do to improve the question, and put here on the room for review and reopen.
 
8:44 AM
/*
long function ($n, $f) {
	switch ($n) {
		case 0:
			return 1;

		case 1:
			return 2;

		case 2:
			return 2 * $f;
	}
	return 2;
}
*/

$builder->doJumpTable($n, [
	function($builder) use($one) {
		$builder->doReturn($one);
	},
	function($builder) use($two) {
		$builder->doReturn($two);
	},
	function($builder) use($one, $two, $f) {
		$builder->doReturn(
			$builder->doMul($two, $f));
	}
]);

$builder->doReturn($two);
how geeky is that :D
 
it's syntax error
 
@Fabien What's strange is that querying the NS for that domain directly doesn't return a record, suggesting it has either not been applied or they are not handling @ as they should :/
 
@DaveRandom I think it's going, just slowly.
I see more locations picking up the IP.
 
Oh wait it's working now
 
Should I add the . ?
 
8:46 AM
No, leave it
 
I swear google caches failed DNS calls. -_-
Furry muff.
 
I think they are just slow to deploy, it's only working on 1 of 3 nameservers (ns3.livedns.co.uk)
 
@SecondRikudo Ow sorry :( Then I should say, learn to debug? :O
 
@DaveRandom Gotcha. What's IP-XCHANGE anyway?
 
@Naruto No, you should say "Learn how to research and how to ask a question"
 
8:47 AM
@Fabien In what context? Sounds like a company name
 
@DaveRandom Ah, I guess it is. That Draytek router belongs to them. The one we were trying to access.
 
@Fabien Are you working from a managed business centre?
Also, did you get in to the router yet?
 
It's a shared location yeah.
And nope. Apparently we don't 'need' those logins.
So unless there's some other router around... :-/
 
What was it you were trying to do again?
Oh right, find that nginx server
 
Yeah. But other benefits were potentially opening up some ports. For instance we have no VPN - should we need one.
I'm not sure if straightening out all our network stuff would be fun or a nightmare :P
 
8:53 AM
tbh I would tell them to go fuck themselves and give you the damn login, tell them you are doing a security audit or something. Tell them that if you can't configure the router yourself you'll go somewhere else. I have no problem with the idea of managed comms, but managed comms where they won't let you manage it yourself is not a solution, it's just a giant problem waiting to happen
 
So it is the right place for doing it...? If so, fuckers.
 
At the very least, they should tell you where port 80 is being forwarded to
@Fabien Unless you have a way more complex set up than it sounds like you need (no-NAT multi-IP with a different gateway)
 
cddnation.com working for you yet? pingdom showed all 3 dns now going to fasthost but still gettinng openDNS guide.
 
And in fact, you definitely don't have that because we already established that the gateway given out by DHCP is the Draytek
 
I'll leave that stuff to the auditter if we get one.
 
8:56 AM
@Fabien It is not, and I'm querying the domain NS directly. I'd phone the host's support and ask them wtf
 
@SecondRikudo guugle? :p
 
Ugh speaking to people. Guess I've little choice.
 
âš™ <-- :)
 
@Fabien Maybe give it half an hour if you like, but if it's not working by now I'm not confident
 
@DaveRandom Furry. Thank you for the help.
 
9:01 AM
@Naruto hi
 
Man, porridge oats without sugar isn't anywhere near as tasty
 
@StephenWolfe ghello! :)
 
Could you help me on payment system with codeigniter ?

I have tried to implement ci_merchant and omnipay but it display blank page.
Awaiting for an response from you.
 
@KabirHossain Unlikely. Doubt there's any CI devs in here. Try a dedicated CI channel on IRC or something
 
@DaveRandom Writing the interface for the part that talks to the torrent client, called ClientInterface. If it has methods like addTorrent($id);, that's fine. But I also want Torrent::pause() to work, which is the direct opposite of ClientInterface::pauseTorrent(Torrent $t); - could you advise? :-)
In the former example, i'd be passing an instance of ClientInterface into each Torrent object. In the latter, it'd be a standalone that takes instances of Torrent. It shouldn't be doing both should it
 
9:04 AM
does mysql query "delete from table where id = 45" = "delete * from table where id = 45" ???
 
@Naruto Do you think the class I am including could be clashing with wrodpress's clasess?
 
@Jimbo Torrent is a VO, client is a BO, action methods belong on the client
 
@Fabien, I am new here. Please suggest me clearly..
 
@StephenWolfe Whut? I know from nothing?
 
@Naruto sorry
@Naruto was thinking about my error from friday
 
9:06 AM
@DaveRandom So no Torrent::stop() then? I liked that too.. but good, one way or the other
Value Objects shall has no extra methods
 
@StephenWolfe You mean with the enveloppes?
 
@Jimbo It's an SRP violation to put stop(), pause() etc on the torrent.
 
@Naruto Yeah.
 
@HamZa You here?
 
@DaveRandom Is that a bit like how Doctrine 1x did active record then?
 
9:07 AM
morning
 
Note that it's quite recently I've been swayed to this pov, my opinions are in no way static :-P
 
@Naruto I am just googling it
 
And now it has an EntityManager
 
@Jimbo does mysql query "delete from table where id = 45" EQUAL "delete * from table where id = 45" ???
 
@Jimbo I do not know doctrine at all, couldn't possibly comment
 
9:08 AM
@StephenWolfe I havn't checked it anymore..
 
btw, did desktop notifications stop working in chat?
 
@ThinkkSo Have you opened up mysql, created a temp database and a table, and tried it?
 
£5 says they tell me to wait 24 hours btw @DaveRandom
:P
 
I don;t seem to get them any more and I don't have the enable/disable link any more either
 
@DaveRandom yes, it did. After last upgrade
 
9:09 AM
@Naruto Ahh fixed it!!!!!!!!
@Naruto I love mondays
 
@Fabien probably, but tell them that you can't resolve it by querying their NS directly, it's not a propagation problem
 
@Fabien "Try a dedicated CI channel on IRC or something" ??
 
@Naruto I owe you a beer!
 
There shouldn't ever be a propagation time when you create a new record, it's only changes to existing records that need time to filter through (because failed lookups shouldn't be cached)
@iroegbu To the meta mobile!
 
@KabirHossain Try a dedicated CodeIgniter chat room. You might find one on IRC.
@DaveRandom Cool. Will do.
 
9:11 AM
@StephenWolfe What was the problem? Can't use beer on mondays :( :D
 
@Fabien, Well. I am trying.
 
@Jimbo they are both different the one with * fails to delete while the other succeeds
 
@ThinkkSo That's because the one with a * is invalid syntax then - manual
 
@Jimbo yeeup
 
@DaveRandom huh. Started working for other people in the office.
Working for me now too
Seriously. I literally stood up to speak to the head of dev and advise we may need to ring fasthost and at that exact moment it starts working. PROOF that complaining solves the issue.
 
9:15 AM
Yeh now working for me on all 3 NS
Evidently their back-end systems are wank
 
Not unsurprising.
 
good mornings
 
@DaveRandom is that because 2 reasons for change might be: the change of the torrent DTO structure and the change of its behaviour? (srp is the thing I cannot understand for long time yet)
 
morn hakre
 
hey guys
anyone have worked on presscore theme?
presscore theme displays images in a flexible 4 column format
but it makes delay in loading
as every image is loaded in its original size rather than display size
cant avoid it as this is a responsive design which changes image size as per the screen
 
9:19 AM
@prashu132 we don't discuss wordpress here
 
is there is solution to make the image loading faster???
why
 
because we're a real developers
 
wordpress is written in java or what ??
its also in bloody PHP
 
@prashu132 Just because it's in PHP doesn't mean we like it.
There are no wordpress dev regulars here, you are likely not to get help.
 
if I install PHPUnit globally by doing composer global require "phpunit/phpunit=4.0.*". To use in a specific project, need I still add the phpunit to the require block in composer.json?
 
9:21 AM
Try WordPress Development. They have chatrooms as well.
 
@DaveRandom Awesome. Got an interface and concrete Torrent VO here that if you want vuze to talk to it you can use. I'll get around to adding support for that anyway after I'm done with transmission. I'm trying to KIS this time around :-) Will put on github soon once I have transmission done
 
Adaptor ???
 
Oh fine adapter then you pedantic boob
:P
 
public function getUploadSpeed()
{
    return $this->uploadSpeed;
}
It's weird this belongs to the Torrent class
 
Why? A Torrent has an uploadSpeed and a downloadSpeed associated with it
Associated with that specific torrent (not client-wide)
 
9:28 AM
@user3470815 finished?
 
Why does it have them actually?
Isn't it a client who cares about transfer?
 
@zerkms The client cares about the transfer of all torrent speeds
Imagine a GUI that all these torrent clients provide showing each torrent with it's associated data
Each torrent displayed also has an upload and download speed associated with it
 
for me torrent is just a data
 
This makes it simple so that when you're looping around this data to display client-side, you just put $torrent->getUploadSpeed() and display with a little up arrow and that's it
 
the files, hashes
which has nothing to do with data transfer over network
but just provides some iterators over its data
which is then used by a client (or whatever layer is a network one)
 
9:31 AM
It's still a property of the Torrent object though, it's still something it has and is provided access to via the spec anyway.
 
okay
let's continue your assumption
"Imagine a GUI that all these torrent clients provide showing each torrent with it's associated data"
what if in a torrents list in a GUI
 
(That I've already done I might add)
 
you highlight rows depending on some attribute
like - torrent size
would this logic be also put into the Torrent class?
 
No, I'd do I already have done that in angularJS
 
well, what's the difference with speed?
the highlight color is another attribute like transfer speed
 
9:33 AM
@DaveRandom How'd you're chrome extension go?
 
@zerkms So I want to highlight say, the fastest torrent?
 
well, the logic is not defined at this step, but we know they will be coloured
 
I'd say in angularJS, this speed has this colour, this speed has this colour
 
"the last time the torrent was uploading"
 
As how things look on the client is nothing to do witth the torrent
 
9:34 AM
I don't see why one thing belongs to angularjs while another is moved into the Torrent class
 
I don't understand why speed specific to a torrent isn't part of the Torrent
In both my code, and the spec that defines it
Each Torrent will have different speeds
 
and that's a network layer responsibility isn't it?
to maintain and expose this data
 
@zerkms Okay. When I request data from the transmission or vuze or any other API, and ask for data about a specific torrent, it'll give me some data back. Included in that data is the speed of the specific torrent
 
I'm just putting that exact same thing in my own object
 
9:38 AM
@Fabien I got somewhat distracted by life, but will finish it soon
 
Damn life always distracting you from chrome extensions.
Whata bastard
 
@zerkms I hate the "reasons for change" thing. SRP does make sense, but defining a responsibility as "a reason to change" doesn't, IMO. I (currently) prefer to think about it in terms of VOs and BOs - a BO performs exactly one business process, a VO has only setters, getters and properties and doesn't do anything in and of itself.
@Fabien inorite
 
^ That's almost like Entity / Repository. Entity is basically a value object with setters / getters / validation. Repository is the thing that fills entities with their data, or else uses the information within the entities to perform actions.
 
@Jimbo #famousLastWords
One of the key points is that if you give a torrent all those stop() etc methods, you have to inject a whole bunch of stuff to let if talk to the back end - and in effect you end up just forwarding calls to the client from the torrent
 
Damnit twitter just forced the new gui on me
 
9:46 AM
Youtube videos loading for everyone?
 
@Fabien yes
 
Weird. Not loading any videos on my network.
 
@DaveRandom Yeah I see. It'd be passing an object around unnecessarily. It's just contextually stop() a Torrent made sense. Also, I missed getTorrents() :P
 
@Fabien Firewall/content blocker? Try on your phone
 
Phone is the same. Was fine earlier. Ah well. We'll see if it passes.
 
9:52 AM
@Jimbo Agreed that is seems like it makes sense from a public API perspective, but from an implementation perspective it really doesn't
 
Also - chrome desktop notifications are working for me now
 
orly? Chrome version?
 
@SecondRikudo, just a question is it best to cast string as intval in mktime or do it before? ex: mktime(intval($string));
 
@Naruto DateTime.
@Jimbo ping me?
 
@SecondRikudo PING PING PING PING
@DaveRandom > Version 34.0.1847.132
 
9:55 AM
No notification for me.
What OS/Chrome version are you on?
 
Make sure you're off in another window
 
@Jimbo That's an outdated version.
 
/ tab
 
The change happened in chrome 35.xxxx....
 
Ahhhh
I did notice a new google-chrome-stable but haven't updated yet
That'll be why
I like how Joe's dilemma is Lusitanian's Mother
 
9:57 AM
 
@SecondRikudo Why use datetime vs mktime?
 
@Naruto Much more flexible, much more readable, easier to work with
 
well I only write away timestamp to DB and later just date("d/m/Y") so in this case it doesn't rlly matter?
 
@SecondRikudo Has that gone now?
Can't find it
 
@Jimbo Magic of DOM manipulation
 
9:59 AM
@Naruto If it doesn't matter logically, your next step is to choose one that future developers are going to find more useful. If you're trying to write OO code, then start using objects like DateTime
@SecondRikudo lol
 
@Jimbo mm, ok I'll keep it in mind
 
I've gotta leave at 5 today if I can and get home in time for the wwdc live stream
 
10:12 AM
It's weird when one in a vacancy text requires an extensive knowledge of some technology (ie WPF) and then explains what WPF means
 
@JanakaRRajapaksha sadly no..
 
zend framework1 render view with numeric view not working
Uncaught exception 'Zend_View_Exception' with message 'script '/promotion-mailers/15day-pre.phtml' not found in path xxx
where if i replaced 15day-pre.phtml with test.phtml
 
<-- Looking at a 521 line method :)
 
then its working
@Fabien didn't get u
 
Anyone here with C-fu willing to PR a feature to xdebug?
 
10:25 AM
@SecondRikudo Derick on #php.pecl #phpc or #php.doc
 
Hello
anybody help me on dojo chart
 
hello
anybody can help me
 
$morning = sqrt(121);
 
^ 121? good. In my case it was -3
 
10:40 AM
Having a complex Monday?
 
yeah..
 
@DanLugg I bet it took you all weekend to come up with that :P
also morning
 
hi, @Jimbo
 
@AlmaDo Man I talked to you earlier lol, but hey :-)
 
woops. again. complex Monday
 
10:44 AM
Still umming and ahh'ing about PHPNW. Early bird is until June 15 so will decide by then.
 
@Fabien It's only a tenner off anyway
Or 20
 
@Jimbo Hurr durr maths :-P
 
(I think)
 
is it possible to use composer without it creating .git folders in required package directories?
 
What full price is £120?
That's pretty cheap compared to London
 
10:49 AM
@SergeyTelshevsky As in, create a composer package that doesn't use git?
 
@Fabien Last years was £135 at the end
WAY cheaper than London
 
Northern cheapness.
 
In fact, going to Majorca for phpuceu, the flight, trains, hotel etc - was cheaper than it would've been to get the train to London and stay there
 
@DanLugg no, I mean use third party packages via composer in your project so that they do not contain .git directories with their history
 
I hope one day that a conference does a decent job of filming slides AND talk.
Just use two camera or something
Can run youtube side by side.
 
10:54 AM
@SergeyTelshevsky I don't have .git folders in /vendor
@Fabien show the slides full screen and the speaker in a small window? Seen that before and liked it
 
what is ur opinion about YII2
 
anybody?
 
@SandipPingle What difference does that make?
 
I thinking of using it
 
10:59 AM
Have you ever used it?
 
so before that I want expert opinions
 
We're experts?
 

« first day (1325 days earlier)      last day (3639 days later) »