« first day (1439 days earlier)      last day (3506 days later) » 

12:08 PM
@MoshMage I'm new to the Internet, how do I google?
 
@MoshMage UK
 
@JoeWatkins well, having nearly all the day to do it… I'm not too busy :-)
 
@Unihedron I'm new to civilization, how do I ask questions?
 
@Tyrael are you reading the backlog of all the days or how are you finding messages like that?
 
@SergeyTelshevsky imnew to tping how doi wryte words
 
12:10 PM
*makes telepathic contact with @Unihedron to ask another dumb question
 
@bwoebi when you are release manager, your consciousness and the internet are merged, temporarily ... probably ...
 
@JoeWatkins hehe :-D … and the real answer is?
 
I don't have a good one ... the funny one was the best I could do ...
 
...
leave it
 
morning
 
12:20 PM
morning
 
@JoeWatkins what I forgot on my ToDo list before … porting phpdbg to phpng after all that IDE crap…
 
@bwoebi just where I was mentioned
 
@Tyrael don't see a mention there… but well…
 
@Tyrael don't break the dream
 
12:24 PM
@bwoebi question like these get deleted automatically ...no need to close it :)
 
@bwoebi that was a follow up to "VCS Account Approved: fmargaine approved by tyrael \o/"
 
btw i voted to close
 
@NullPoiиteя I have 50 cv-votes per day. It's not like I'm ever out of votes…
 
@NullPoiиteя the point of closing is to prevent answers. Answers can prevent autodeletion.
 
hold reason is wrong, should read
 
12:25 PM
neither me :)
 
> put on hold as fucking mental
 
@JoeWatkins too short, probably offensive
 
@NullPoiиteя closed
the answer needs to burn, though
 
12:40 PM
somebody there know where I can find a good tutorial to dual boot ubuntu with windows 8? I already following some tutorials but its not working
 
@Marby install on seperate partitions,
if it autoboots into either, fix the bootloader =]
 
Do people really still dual-boot?
Why wouldn't you just VM?
 
I dual-booted for a bit. Stopped not long in. Windows and Ubuntu. I'm sure some people would hate that combination.
SSD each too.
 
I'm very much not a fan of Ubuntu
 
@DaveRandom may be due to lower hardware configuration ... like i have
 
12:46 PM
@DaveRandom I do..
 
I don't think I will ever step away from Windows as my main OS. Not while I still enjoy gaming.
 
@Fabien i am doing same :D
 
wtf, you have an SSD but not a mobo/CPU with virtualisation support?
 
Two SSDs. And I no longer dual-boot.
I VM like you say.
 
I meant @NullPoiиteя
 
12:47 PM
Oh
I'll go away then :(
 
:-P
 
You made that Onigiri yet?
 
@Fabien Why Ubuntu, though?
 
Ease of use. And lack of consideration.
 
@FlorianMargaine Oh. I thought you guys were in the same "Timeline" as PT :o
 
12:49 PM
What do you use it for?
@Fabien Not yet
That's the other good thing about VMs: you can just spin up another
 
@DaveRandom did you see my ping?
 
I used it for development stuff. Where I was working on OSX at the old workplace I needed a good medium.
 
@FlorianMargaine No, one sec
 
down with windows ...
 
12:51 PM
@Fabien CentOS ftw (or at least, some flavour of RHEL)
 
I use CentOS for all my VM needs.
 
@DaveRandom I prefer ubuntu for my VMs :P
there's just much more community for the ppas
 
Though the frailty of which I spin up and shut down sometimes means I delete/forget about mildly important ones. Thankfully git has my back.
We're moving office next week and I ordered 2 monitors + single stand for new desk :). Hopefully the laptop won't fallover trying to keep them running.
 
I cannot get along with Ubuntu. I also cannot get along with runlevel != 3 though, so I generally prefer things that are not designed with GUI in mind
 
I think for newbies it's okay. Much like any less-scary interface. Depends how many layers you want to peel off that onion.
 
12:55 PM
@NikiC way to pick holes in everything ... thanks :)
I keep doing this.. I had them returning false, then I looked at some other functions (like... gmp_random), that returned null, and changed it
 
@Leigh It's very simple: zpp fails => return null, anything else fails => return false
though of course there's a bunch of gmp functions that don't hold to that either ;)
 
like, gmp_testbit returns false, but gmp_setbit returns null ...
yes, exactly that one :D
 
which, is right next to gmp_random, where I was looking for what other functions did :p
should we fix in 7?
 
@Fabien I have found it just gets in the way, *nix + GUI = square peg + round hole.
 
1:00 PM
sure
 
@DaveRandom bullshit
 
I actually need to do some work today, will fix patches tonight
 
you just have to set it from ground-up as "desktop system"
and, yes, it will require additional work, but you can make a friendly GUI on a nix platform
 
But I don't want to use *nix as a desktop, and not just because every DE is shit (which every one I have seen is). I want my desktop to Just Work™. I'd be happy to be proved wrong on this though, but I have just never seen a desktop environment that works properly and isn't a constant maintenance project - Windows does suffer this, but to a lesser extent.
 
I download ubuntu image from the ubuntu site, then I create a partition with 20gb and I use universal usb installer to install ubuntu in that 20gb partition. but now I dont know what I need to do next, I think that I need to enter in bios and do some configurations, but I'm afraid of messing up because Im not very familiar with bios and I read that some people delete windows 8 doing this lol..
 
1:04 PM
@DaveRandom Because some software specifically checks if it is run in a VM and fails.
 
orly? like what? (and also: how does it check that?)
 
It's not uncommon for video games to do this.
Video games are also often too taxing on the system to run efficiently in VMs.
 
Well that's fair enough, but I don't have this issue because I don't really game
 
I imagine that would hold true for any system-taxing application.
Engineering apps, etc.
 
@DaveRandom you heretic!
 
1:10 PM
@LeviMorrison Depends on the hardware virtualisation support, but yeh probably. Certainly for graphically heavy things (but as I say, I don't really care about this)
 
You know you're picky when you edit a question to change "i" for "I" xD stackoverflow.com/posts/26017875/revisions
 
Good morning
 
good morning
 
Huzzah!
 
1:26 PM
morning @ircmaxell
 
Morning, ircmaxell.
 
Anyone want to know how we currently output json from a controller for an api call?
die(json_encode($data));
 
@DaveRandom Start your own OS where all the components are libraries and you can pick and choose an OS to suit your needs. :P
 
@DaveRandom ubuntu server
 
1:37 PM
@Jimbo ...die? Really?
 
@Jimbo return new JsonResponse($data);
 
@Jimbo drupal 6?
 
return $responseFactory->build($data, 'json');
 
No, terrible proprietary framework.
 
1:39 PM
well, drupal 6 had to do the same if that comforts you
 
Great to know this framework is at the same level as 2008, and that I'm leaving next Friday :D
 
@Jimbo you leaving your current company?
 
@Naruto Yep, moving out, new job, new people.. only 50 miles away but still, big changes coming
 
@DaveRandom I don't like standard DEs. I gravitate towards using Fluxbox and file-manager-of-a-month, when dealing with nix desktops
though it looks like fluxbox project is not active anymore
aaanyway
anyone here using presentation objects?
I am wondering how you implement them
 
2:01 PM
posted on September 24, 2014 by kbironneau

/* by Buck */

 
^ wow. Seriously. Wow.
 
meh
 
I mean: 1st I thought that was possible only in movies, 2nd: baddass cop. x)
 
@MoshMage I'm sure it is a quick slice from a movie…
 
@tereško Presentation objects as in Model-View-Presenter or ..?
 
2:08 PM
@Jimbo Nice, what are you going to do next?
 
SIGH. For some reason we have a database of regex with pretty much all the delimiters not escaped. So I can't find a delimiter to work with -_-.
 
@Fabien condolences... :)
 
@Fabien example
 
@Naruto More OO PHP and JavaScript, interfacing with EPOS systems and some other cool stuff
 
otmu\.com/~otmu/index\.php/en/foo/
 
2:20 PM
@Fabien just use () as delimiter, that always works.
 
@bwoebi In soviet Russia, movie slices you
 
@bwoebi i like ~
 
@CSᵠ I mean, you don't need to escape anything if you want to use parenthesis as delimiter.
 
@bwoebi if this is true, it's pure gold, need to test
 
2:23 PM
@bwoebi I only found this out recently, I don't know why we don't recommend it more prominently in the fine manual
 
@DaveRandom I only know that since someone said that (I believe it was Nikita) a few months ago...
 
@DaveRandom Correct me if I am mistaken, but I do believe you have the appropriate karma to remedy this situation? :D
 
:D
 
Indeed, will need discussion first though - factual stuff is one thing, recommendations are another
 
awcrap, here i was enjoying my SO when all-of-a-sudden a todo: Template appears out of nowhere
 
2:26 PM
Probably a good place for it, in a "Tip" box: php.net/manual/en/regexp.reference.delimiters.php
By the way, that page has notes that are downvoted that are worth keeping :D
 
@Fabien user a regex replace over your regex database to change all the regex delimiters from the regex database :D
 
@DaveRandom I'd recommend to use curly brackets as delimiter. Just to better distinguish from capturing groups.
 
@Jimbo sounds nice, don't forget about us here, while your moving 50 miles ;) :)
 
ThW
@bwoebi but the whole match is captured anyway, so I just read it as group 0
 
@ThW works too.
 
ThW
2:32 PM
Morning btw
 
@Naruto Lol, I still aim on being on here often when at my new job. I brought it up in the interview - access to the internet for research / discussion is a pre-requisite of me taking the job ;)
That feeling when you search your codebase for new and the only places it exists are in your bootstrap, factories and when throwing exceptions :-D
 
@cs aye
 
@Jimbo well wish you all the best :)
 
Danke schon
 
@Jimbo are there companies limiting internet for devs?
 
2:36 PM
@CSᵠ Pretty sure stackoverflow chat might not be classed as acceptable in some places
:P
 
@Jimbo can't see why not, if one does the work, it's an information channel
 
user895378
morning
 
@CSᵠ I like that way of describing it. I also remember an application that turned a facebook feed into an excel table that repeatedly updated
@rdlowrey monring
 
Why is it when doing

// echo $regex;
if (preg_match($regex...

I get WARNINGs on the preg_match when the echo is commented out, but if uncommented no warnings.
 
@Jimbo awesome, i've seen that type of thing countless times, if ppl don't wanna work they'll distract themselves one way or the other :)
 
2:43 PM
any ideas how to make this less-like-crap: gist.github.com/367fc304250fdebb7cda ?
 
@tereško Yeah, don't buy into Symfony's $false === first balls, it's horrible
 
@tereško isset($array[$key]) for one vs. arr key
 
@Jimbo that's like saying "don't buy into CodeIgniter's objects"
In programming jargon, Yoda conditions (also called Yoda notation) is a programming style where the two parts of an expression are reversed from the typical order in a conditional statement. A yoda condition places the constant portion of the expression on the left side of the conditional statement. The name for this programming style is derived from the Star Wars character named Yoda, who spoke English with non-standard syntax. == Example == Usually a conditional statement would be written as: Yoda conditions describe the same expression, but reversed: The constant is listed first, then the...
it has nothing to do with Symfony
 
@tereško Is also true though right
Damn, you can't just name something aweful, an awesome name like 'yoda conditions'.. because now I want to use them
 
there is actually a good reason behind it
 
2:47 PM
> Critics of Yoda conditions see the lack of readability as a disadvantage that does not outweigh the benefits described above.
 
and now that we are done bike-shedding
can someone actually comment on the problem ?
 
what problem?
 
four IFs in a row, four exits
 
@tereško as @CSᵠ said, use isset().
 
So, I'd start by abstracting the cache system
 
2:50 PM
@tereško that's not a bad thing?
 
@ircmaxell the "cache" is an array inside the class
you can call it "runtime cache"
 
$entry = $this->cache->get($type);
if (null === $key) {
    return $entry[$type];
}
return $entry[$type][$key];
 
hmm, you actually have a point
 
@tereško anopther, they're simple if's, with isset instead of array_key_exists line will be shorter, so get rid of the {} code block
 
@tereško I know, I'm saying abstract it out of there. Or at least into its own method
 
2:51 PM
@DaveRandom you still haven't answered my ping :D
 
Sorry I'm pretty bombed out at work today, I'll come back to you soon, not had a chance to look at it yet :-(
 
np, it was just asking if you had had the time to look at the code yesterday
 
@CSᵠ it would make any difference, if I was not looking in different arrays
 
@CSᵠ the {} block?
 
@tereško would be less messy, look prettier, and ofc what @ircmaxell said if you can
 
user895378
2:54 PM
@DaveRandom I massively updated the dns lib (mostly how the public API is consumed) to work in the new Amp sandbox. Check the readme for simple examples.
 
of course
 
 if (false === isset($this->sources[$type])) return null;
 if (false === isset($this->cache[$type])) $this->cache[$type] = require $this->sources[$type];
 
@rdlowrey Yeh I saw it earlier
 
emm , you made it worse
 
Will check it out properly later
 
2:55 PM
@tereško beauty is in the eye of the beholder :)
 
@FlorianMargaine Yes, but not extensively, was planning to dig into it further tonight
 
@CSᵠ also, since your definition for "better" includes "remove curly braces", I won't ask you any advice ever again
 
@DaveRandom k
 
@CSᵠ yeah, no.
 
isset makes more sense than array_key_exists, such an ugly fname
 
2:56 PM
also...
 
more readable
 
7 hours ago, by Florian Margaine
@DaveRandom did you see the code? I thought about it last night and I think I found the solution in my head... might be totally wrong though :D
 
naturaklly
 
@ircmaxell misdirected ping, I presume?
 
user895378
@DaveRandom no rush. Also, are you really sure you want to branch off for every minor version before 1.0? I understand doing that once you have stable releases but supporting minor versions before v1 is a lot of work when the understanding is that pre-v1 things aren't stable.
 
2:56 PM
@DaveRandom you presumed correctly
 
:-P
 
@tereško normally I would say that's over-reacting, but in this case, no, I agree 100%
 
@rdlowrey I was somewhat experimenting with release-oriented workflows there. I'd want to work like that post-1.0 but yeh, not a lot of point at the moment
 
user895378
2 mins ago, by DaveRandom
@FlorianMargaine Yes, but not extensively, was planning to dig into it further tonight
 
user895378
^ You're starting to sound like me, Chris. Telling tons of people (too many?) that yes, you'll get to their thing later :)
 
2:58 PM
It's only because I'm actually having to do some real work today :-P
 
@ircmaxell usage of { } should be mandatory even for 1 instruction even if for the compiler they're optional?
 

« first day (1439 days earlier)      last day (3506 days later) »