« first day (1940 days earlier)      last day (3011 days later) » 
01:00 - 16:0016:00 - 00:00

Wes
4:00 PM
a factory may use a factory to produce not-another-factory, that's always wrong, probably
 
@NikiC Btw. have you tried to convince Dmitry that exceptions are an acceptable solution to the HashDos issue?
 
@Wes I was thinking serviceFactory->entityFactory->ValidationFactory->class text/file/number etc, but I smell bad coding practice
 
Wes
so you are mixing factories with "manager" or whatever you call it. you can have a similar structure i guess but you shouldn't mix the two
also you should probably just inject some of these stuff... like, why do you need a factory for validation?
@JoeWatkins i think i brick'd the huawei :(
 
@Wes I was thinking to have a separate object to deal with validation when encounter different type, guess Im thinking too much..
 
@Wes so easily done ... did you take a backup ?
 
Wes
4:12 PM
i did but it fails restoring it
 
can you get into recovery ?
 
Wes
nope, screen is on but it's all black
 
sounds like fastboot
use the other button, if it was power+vol up before, try power+vol down
 
Wes
nothing
 
@tereško is it true that you switch to IoC container instead of serviceFactory->domainObjectFactory+dataMapperFactory ??
 
4:15 PM
okay, then try getting into fastboot
 
@Andrew that's what I have been trying to do since my last major project, with varied success
 
I'd be surprised if there was no way to get fastboot to run, you can't delete it ...
 
Wes
@Andrew the good thing of oop "done right" is that you can program in single units, without thinking of what will happen externally. start creating the innermost logic then "bubble up" till you get all things wired together. you don't need the "big picture" if you follow solid principles
 
don't wait for something on screen, wait for some device to be presented to the machine you are plugged into, not sure how windows behaves
 
Wes
oh
 
4:17 PM
"fastboot devices" should show you something that makes sense ...
 
Wes
had to remove battery because wasn't responding. bad sign
 
@tereško good to hear :D, as varied success, do you mean theres different kind of ioc container ??
 
the major issue is that the way I write services they end up juggling various domain objects and each of those has one or more mappers
I have to do a method injection instead of constructor injection
I am still not 100% sure it's the better way
 
@bwoebi no
 
@Wes thanks for the head up, escpically Im still new to the OOP world :D
 
4:24 PM
@NikiC would you then please?
 
@tereško maybe invent a new pattern :D ?!
 
trust me, I am not that smart to invent something new, that people in 70s and 80s didn't think of already
 
@tereško the 70s and 80s did really have a really shining moment...
 
!!imdb shining
 
[ Stanley Kubrick's 'The Shining' ] 1980, Stanley Kubrick
 
4:38 PM
@Andrew correct
 
@Andrew use github.com/rdlowrey/auryn Recursion is needed, but you don't want to implement it by hand.
 
I wonder .. The author of this answer should has at least 18.5k rep, but he has just 7.5k rep ..! Anybody know what's going on?
 
@Gordon haha, that moving was out before I born
 
@Shafizadeh You can gain a maximum of 200 rep per day (save for rep from being an accepted answer, and bounties)
So, more than 20 upvotes per day doesn't get you more rep.
 
@Danack I actually have looked multiple times, but I was thinking to build one my own.. :)
 
4:43 PM
Well, do that first, then in 3 months start using Auryn.
 
@jbafford Oh really?! I didn't know that .. that's really ridiculous
 
ok ^
 
@Danack will do :)
 
4:46 PM
It's a counterbalance to, among other things, prevent answers like that from leading to outsized rep gains. (Does that person really deserve 18k rep just for that one single answer?)
 
@jbafford Not really ... I think that rule isn't ridiculous ..
 
@Shafizadeh "did have" is fine
 
And if you look at his history, you'll see that he has six answers. The other five have a total of 22 upvotes. Almost his entire rep is from that one single answer.
 
@Shafizadeh which statement is that from?? sorry I am not a native English speaker :(
 
@Andrew no no, Seems (as @PaulCrovella said) you are correct, sorry
 
4:50 PM
@Shafizadeh oh, okay :) I am open minded to anything so don't hesitate :)
 
good for you :)
 
 
1 hour later…
5:51 PM
Light vs dark - Which should be the default - vote.
7
 
absolutely, definitely, without a doubt, light.
 
Wes
6:07 PM
@Danack boostrap??????? bootstrap is the register_globals of css
 
is bootstrap really that bad?
 
@Wes CSS_Peter_Griffin_Blinds.gif
 
Wes
@Danack if i can get css i'm pretty sure you can too
 
who said you could?
 
Wes
@jbafford it's like if asp3 powered skynet
 
6:19 PM
somehow that doesn't bother me
 
Kind of sounds like a fun project.
So, yeah....Microsoft gave us a free licence for this software and we accidentally took over the world.
 
6:39 PM
prefer dark on big screen, light on small screen ...
-4
Q: Strange Server Behavior

BillyWe have a server running LAMP stack: Linux 3.2.0-60-generic 91-Ubuntu SMP Apache 2.0 Handler PHP Version 5.3.10-1ubuntu3.11 MySQL 5.5.35 APC For some clients the login submit action simply refreshes the home page. It does not at all appear to execute the login script (form submit to logi...

the deleted answer is funny ...
 
the map with localization is nice
 
6:54 PM
I have a DbAbstractionLayer component that many controllers will access. What is the best way to initiate the Dbal so that all controllers can access it? Newbie question.
 
@user2800382 actually not a newbie question.....the only sane thing I've found is use a real D.I. library such as github.com/rdlowrey/auryn and then use delegate functions to create the dependencies as needed:
$injector->delegate('Intahwebz\DB\DBConnection', 'createDBConnection');

function createDBConnection(
    Config $config,
    StatementFactory $statementFactory
) {
    $host     = $config->getKey('MYSQL_SERVER');
    $username = $config->getKey('MYSQL_USERNAME');
    $password = $config->getKey('MYSQL_PASSWORD');
    $port     = $config->getKey('MYSQL_PORT');
    $socket   = $config->getKey('MYSQL_SOCKET_CONNECTION');

    return new \Intahwebz\DB\DBConnection(
        $statementWrapperFactory, $host, $username,
 
I'll look into that. It would be INSANE to just call '$db = new DbAbstraction()' within every controller, right?
 
yes.
 
7:15 PM
Damn. And no native php/sans-library way of just instatiating the class and having it be global? Or is global bad in this case?
 
Wes
@Danack anyway, light for me, but it's so empty that i almost prefer dark
want some free of charge tips? :B
also have you tried making that without bootstrap?
 
@Wes I have tried many times to make things without bootstrap, and they all made my eyes bleed. And yes, I'm open to tips.
 
Wes
well if you just replicate what you have now you won't get bleeding eyes as it's very simple. would start with that
 
Wes
feel free to ask me anything... for once i can helpz! :B
 
yay, new privilege!!!
 
@Wes How can I have less void space on the page. I've limited the width of the actual text to be "not too wide" but the code examples need to use more width. The current layout means that their is a lot of void space around the text....which is too bright on the light CSS.
btw the code is on github.com/danack/blog with instructions on how to run out of the box, against stub implementations.
 
Wes
you could have a fake column
filled with a pattern
 
> Peak memory 1,690,040
 
Wes
7:39 PM
that column could be used for other things too, like titles could span over it, or float images... float:right;margin-right:-300px; (assuming the column is 300px)
 
@FélixGagnon-Grenier flex
@Wes Okay, but currently the main content panel has a border all the way round it. What should happen to that border? Should it be broken open? need to go in close for the text, and then go wide again for the code? Or just leave it as it is, and just have the fake column contained inside it?
 
Wes
something like this
 
hmmmmmmmmmmmmmmmmmmmmmmmmmmmm
 
Wes
i wouldn't have an actual column no, just a subdivision @Danack
 
@Wes Is there any way to make it look less like the code block is accidentally overflowing the panel?
 
Wes
7:50 PM
yes, by convincing users it's not an error :B you do that by having it applied on several cases, like blockquotes, images, code blocks. if it becomes a pattern somehow then it gets "accepted" :B if you mean visually, you could use box shadows...
 
8:08 PM
@Wes I can't see how you meant to have the pattern start. i.e. what is mean to happen at the top of the page, above the pattrn?
 
Wes
check it zoomed.
i clicked your mmmmm mmmm mmmm link. youtube brought me here after few songs youtube.com/watch?v=AMT698ArSfQ
 
That looks okay with plain color, but it looks really weird with a pattern there, right?
 
Wes
depends on the pattern. the one i used in the example before wasn't great
 
8:24 PM
Thanks @JoeWatkins !
 
Wes
@Danack alternative jsfiddle.net/y2358q8k
it's a bit messy to do properly. i bet this is what you had in mind
 
8:38 PM
that's what I've tried before...I've never got it to work that well. I think maybe just a small curved joining piece could maybe work.
 
Wes
isn't actually working that well. if you resize the panel you'll see. it can be fixed but imho it's useless effort... i prefer a complete border around it more
also border-radius is a 2005 thing :D
 
Wes
9:00 PM
@Danack doing this for fun jsfiddle.net/vj6r8L16 like it so far?
 
@Danack I love the poll results.
@Danack looks like a bug? ^
 
@FlorianMargaine the bug is "I accidentally uploaded and overwrote some data."
 
@Danack fair enough :)
just letting you know.
 
thanks. I saw that earlier and thought I had fixed it, but hadn't flushed enough files.
 
What is your everyone's favorite way of declaring constants for a namespace? Like having a single 'init/index.php' file that is run at the beginning of app?
 
9:09 PM
@user2800382 using environment variables
 
namespace Whatever;

class Constants {
    const foo = 'FOO';
}
 
You prefer that over env variables, Danack?
 
They're completely different things......env variables aren't constants.
And I thought you were asking about constants inside an app, not values being passed in from outside.
 
Hey guys can you help me ?? I have a php script that scrape multiple webpages content .. How can I make a realtime progress bar to track the progress ??
 
Wes
no eh? :B
 
9:15 PM
I'm not sure it's rendering correctly on my screen......as it really hurts my eyes:
 
Ah okay. That's what I thought. Thanks
 
Wes
how does that hurt your eyes?
 
That looks perfectly readable to me, though the font isn't really the best.
 
@Wes the kerning is terrible
 
9:17 PM
"ainng" isn't a word
 
Wes
yeah needs to be tuned a bit but it's not unreadable :B
wasn't focusing on the font much
 
The body text font is not good either.....I will work on the 'having too much void space' problem....but other than that I like the current layout.
 
Wes
@Danack subtlepatterns.com maybe you find some cool pattern that you like here
 
Wes
9:30 PM
going to bed gn
 
@Danack there is a space of 1 px between the letters… perfectly readable … but I have to agree that it's not particularly nice...
@Danack light … hurts my eyes to read the dark site :-/
 
@Danack Lots of reading? Light by default. Provide a localStorage-persistent option to change though. Personally I prefer dark themes for everything, but for content sites light is a generally better default.
 
9:51 PM
It's probably just letter-spacing
Font itself is fine.
 
 
1 hour later…
11:37 PM
@staabm @Andrea nice!
 
11:50 PM
I'm so stupid … wasting 4 hours debugging kevent() and writes to fds just to realize that somewhen in the middle of the program the kqueue() fd changed :-(
.@rdlowrey you've always warned me, today I fell in the trap of wasting many debugging hours due to mixed UvReactor usage. I feel so stupid.
:-(
 
01:00 - 16:0016:00 - 00:00

« first day (1940 days earlier)      last day (3011 days later) »