« first day (1766 days earlier)      last day (3408 days later) » 

21:00
@prograhammer UOW only does what is has to to update.. no crud is supplied to the database if change isn't needed.
BTW is there no good reason for having a return type declaration of a class (VO for instance)?
@prograhammer it's the same difference as apple pie VS apple
@Orangepill that sounds like caching?
So UOW is just caching?
can i ask opinion here on a theoretical problem?
@prograhammer , please, go and read the literature
21:01
@Fabor while you write that: what happened to @throws? you have a blogpost?
$user = $userRepo->getUserByName($username);
.... do something with user
$user->save();
@prograhammer what is UOW?
unit of work
Negative.
@prograhammer uow would no-op in the save if the user didn't change
21:03
$user = $db->model('user',$id); ...edit... $db->store($user);
@samaYo lemme put it this way: it will be an acceptable step in refactoring. But you probably will revisit that app code (or your approach in general) when you learn to use dependency injection containers.
@Orangepill save() function creates a file ?
sorry that should be $userRepo->save($user);
and still confused how it differs from a database transaction
@r3wt press cursor-up to edit your previous line for some seconds here in chat.
21:04
@tereško Thoughts on method return type declaration of a class (VO)?
"In this video he states that using a Unit Of Work is a sign that the
modeling of the Aggregate Roots is wrong. Calling
"repository.save(..)" should be the only transaction boundary."
@sajad intent was to persist... so maybe or store to db or submit to a storage service.
@prograhammer lol. Please get "Patterns of Enterprise Application Architecture" and read it.
@Orangepill I see
@prograhammer problem with unit of work is, that it's one transaction then. it works well with PHP as there is a shared nothing so you could flush when the request finishes.
Anonymous
21:05
@tereško You're probably right, because I don't know enough (on areas of IoC vs Service Locators) to defend what I am doing.
so for a shared nothing architecture, it's perfect
@Fabor my current thoughts are: sleepy, thirsty, need to take a piss.
but if you actually share things, it's not so useful.
possible to order by count(*) desc of joined table?
@hakre what does "if you actually share things" mean?
21:07
so .. I will put on some water for peppermint tea to boil, while i take a leak, before going to bed
@prograhammer multithreading.
I guess I need to read "shared nothing architecture"
oh
heh, maybe tomorrow then. Bed time for me too
guys, do you uses of Nginx or apache ?
my approach to uow is to ignore it and save all the things...
21:07
so for single-threading, no point in UOW
@sajad both ... but I'm liking nginx more and more
@tereško peppermint tea before sleep? how is that?
@Sajad what are you concerned about?
@Orangepill yes, me too, it is the the fastest !
@hakre no thing :-)
@r3wt yes
@Orangepill oh wait, your mean is: you install both nginx and apache in the linux ? or sometimes nginx and sometimes else apache ?
21:09
vimeo.com/13824218 Greg Young says UOW means modeling of the Aggregate Roots is wrong
@hakre fresh peppermint tea does not contain CNS stimulants
@sajad I have several servers running one or the other. I don't run both on the same server if that's what you are asking
@Orangepill yest that is !
@Orangepill Is it possible to I install both of them in on server ? and set dynamic files on apache and static files on nginx ?
@Sajad nginx here
two services cannot listen to the same port
@sajad I don't think so ... not bound to the same port
21:12
@tereško aha
@Orangepill aha
but if I use of nginx, then I can not use of .htaccess, right ?
@tereško whatever, I don't know what that stands for. I just was wondering how it is before bed.
@Sajad you don't really need to
@tereško don't need to .htaccess ?
@Sajad nope. it isn't.
@hakre soothing
21:13
@hakre too bad !
@Sajad the url-rewrites are done in nginx config
@tereško ah, okay.
@Orangepill could you recommend me some reading on it? i'm really struggling to get it to work, i had to fallback to counting in a seperate query, which prevents me from correctly getting data for "most popular items based on upvotes/ views"
@tereško aha, yeah I read about it already
and what linux version is your suggestion ?
@Sajad linux version like kernel version?
21:14
/me doesnt use linux
join the FreeBSD master race
@hakre cento, ubandant
@Sajad what you use currently (for a distro)?
@tereško so what is your system operation ?
Anonymous
@tereško That's not enough. We need justifications .
21:16
@Danack lol! asshole sea lions
@teresko What are the advantages for freebsd vs linux?
@Orangepill networking performance, ZFS, tons of other stuff
^ that + better firewall, source-driven application management, much better application organization .. and it has centralized leadership
@tereško it is a panel ? (like Cpanel ?)
@hakre I use CentOS right now
@Sajad no, it is an operating system. Like CentOS, OSX of Windows
21:19
@tereško it has a command line ?
all unix-like OSes have command line
@tereško aha !
@tereško working with it is hard ?
@Sajad debatably, it's easier than Linux
compared to what?
Well, simpler, but simpler != easier
21:20
@tereško linux
which linux
@tereško (How precisely the question asked) - ubuntu
no, it is not as simple to use as ubuntu
@tereško ubantu is easier ?
@tereško really? I haven't touched BSD much but I'm of the opinion that anything is simpler than apt
21:22
ubuntu is designed to be a lot easier to use for newbies and is geared towards being used as "desktop system"
@tereško are there multiple distros of bsd?
@tereško so I think I should use ubuntu
it is possible to change root password on ubuntu if current user is sudoer
@r3wt 3 major (freebsd, openbsd, netbsd) + about 5 minor (dragonflybsd, darvin, freeNAS, m0n0wall, pfSense) .. and then about 10-20 highly specialized forks
@r3wt not really "distros" but there are multiple BSDs.
21:26
@tereško do you have to build alot of common packages yourself on bsd?
i've been using ubuntu forever but my friends use centos mostly and i know 1 guy who runs his own fork of bsd
when I buy a VPS, I need to install these:
1. mysql
2. php
3. phpmyadmin
4. nginx
there is anything else ?
you need to install hhvm, not php
mariadb, not mysql
:D
Anonymous
@Sajad You don't need phpmyadmin on prod server
In fact, it's inadvisable
@r3wt I use "ports system", which lets you compile apps from source. For example, installing firefox looks like this: cd /usr/ports/www/firefox; make install clean .. and then you go make some coffee (because firefox actually has 70MB source code)
21:28
@r3wt shit ! then configing is too hard !!!
Anonymous
Also, either mariadb or better yet postgres will do fine.
@samaYo why ?
@Sajad i have 1 liner for ubuntu
@r3wt what is your mean of 'liner' ?
and i can provide you example hhvm and nginx config for good performance
21:28
@r3wt will it compile the code for your particular hardware and let you choose options what to add?
@Sajad phpmyadmin on a VPS? something went in the wrong direction here ... .
Anonymous
/ having hard time to explain why phpmyadmin is bad on prod
@hakre look, I need to see my databases, also I need to phpmyadmin.
Anonymous
mysql -u root -p
@tereško no, it just adds the repos to the key ring, updates apt cache, installs them. you have to config yourself
Anonymous
21:30
# password
@Sajad you most likely need a dev-box, not a VPS
@r3wt do you have any command line code ?
Anonymous
show databases
@Sajad are you logged in as root or nah
21:30
@samaYo really I can not use of my database on commad line !!
depends on if you are logged in as root, or you can su up to root
@r3wt 1 time !
Anonymous
@Sajad Anything that requires you to use phpmyadmin should be done on development.
@r3wt you can install apps from packages, but nobody on freebsd actually does that (aside for kde/gnome packages)
Anonymous
@Sajad Using mysql using cli is not that hard.
Anonymous
21:32
ssh [email protected]
# passwordk
su - root
# password
mysql -u root -p
# password
show databases
use databasename
describe table
@samaYo it shows me rows and columns on CI ???
like this?
+---+
| col |
+---+
@samaYo I actually prefer port-forwarding to my local machine and then using MySQL Workbench
^ this
Anonymous
Yes, I use CLI all the time, because I don't have phpmyadmin on prod.
21:33
If you're using MySQL use the WorkBench tool imo
Anonymous
@tereško MySQL workbench costs money.
@samaYo no?
@samaYo nope
yeah, well i prefer reading the tables in binary output and ordering by HEX(id)
I used it for all of my last job and paid no monies
21:34
@hakre but I want to buy a VPS, and I need to config it...
Anonymous
I'm sure I saw $$ on the mysql site, when I tried to download it once.
@samaYo the is the "community version" (though, you well need to create an oracle account)
I actually wish there was an equivalent tool for Postgresql
oh onething else, how can I upload my files from local to my vps ? I need to a panel ?
I've found some things that are close but not quite the same thing
Anonymous
21:35
But too late, I'm migrating to postgres and now I'm having migraines because because of pgadmin
Anonymous
cc @cspray
as for "how to forward ports", @samaYo you might like this one: ssh -L 3333:localhost:3306 [email protected]
Anonymous
pgamin is one of the worst apps ever made.
@sajad scp/sftp/ftp are all ways you can move files between machines
@Sajad i use magic to get my files into my servers. you need to go and learn alchemy right away
21:36
Does anyone here use Sublime Text 2 or 3?
@Orangepill scp/sftp/ftp are protocol, I think I need to a application ..
filezilla ftw
Anonymous
@tereško Will try it, dev is on postgres now, but prod uses mariadb ..
@r3wt I prefer WinSCP (because of the sync)
@tereško does it work with pageant
21:37
@r3wt filezilla ! ok, I will download it
Anonymous
@Sajad $ scp {-P #PORT } /var/www/my-site.tar.gz [email protected]**.**:/var/www/sites/public
@sajad Filezilla is a good one
@Orangepill aha
i hate my life right now
@r3wt unfortunately, yes (which is why you cannot really use ECDSA for keys, without messing with it)
21:38
@samaYo may you please explain me what is this ?
rsync is also really cool, because of diffs, progress, other cool features, etc.
@RonniSkansing let me know how you progress in DDD, I'd love to have someone to bounce off ideas/discussion with
Anonymous
@Sajad Send files from your PC to host.
@Sajad but get comfortable at a command prompt.. if you have your own vps you are going to be spending some time there
Anonymous
@Orangepill Do you know of any mysql > postresql coverters?
21:39
@samaYo ahhaaa, without application ?
Anonymous
yeah
@KevinMGranger I tried it, but it really hates unstable connection and when writing the command I feel a bit blind. Not enought feedback.
@Orangepill I'd argue that if you're gonna do any serious web development you should be familiar with the command line.
@samayo no...
Anonymous
@Sajad If your site is small, just push it to bitbucket (by tags) and pull it in your server.
21:40
@tereško Greg Young asks you why are you using UOW? Isn't UOW a domain concept? If you are following your aggregate boundaries correctly, would you ever need a UOW?
@cspray I agree
really I think all of you are really professional! none of you don't use of visual software. just command line ! it is a nightmare for me
@tereško if by feedback you mean the interactions between the various options, I'd agree. Haven't tried it on a super-unstable connection
@prograhammer what? when?
lol
17 minutes in on this video: vimeo.com/13824218
21:41
@samaYo your mean is drag and drop ?
@tereško about 17:10ish
I hope you are not telling me to watch video now
I am about 10min away from going to bed
no just skip to 17:10 and listen for 15 seconds
Anonymous
@Sajad Nope. Do you know anything about source version control?
@samaYo no
21:44
i use visual software like Filezilla and i'm growing past its usefulness. everytime you save a file it prompts you to upload it back to the server. so annoying
there is any support Center for configing my VPS ?
like bitch just do it. stop asking me
@prograhammer yes, he has a point. Now what do you want me to do?
Anonymous
@Sajad I have a file that I saved ..
lol nothing, was just having good conversation with you
we were talking about UOW
that's what this chat is about right?
talking about these things
21:45
@samaYo what file ?
we are talking about servers
we were?
@Sajad did you buy a VPS or are you setting up one on your local system
Anonymous
In my PC. It shows a step-by-step install of php>nginx>mariadb @Sajad
@tereško I want to buy tomorrow
@samaYo oh, please sent me ...
21:46
@Sajad don't. First get VirtualBox and try setting up a VPS on your own computer.
Anonymous
@tereško VPS on my computer ? your mean is my laptop be is server ?
external VPS costs $$$
@Sajad yes... that is the way you want to develop...
local VPS is what most of people use here for development
21:48
@Orangepill really is it possible ?! my laptop has windowse. and xampp !
VirtualBox works just fine on windows
I used it for 6 years exactly for the purpose of running a development environment
@tereško and if I turn off my laptop my website will be done :-)
@Sajad yep.
@tereško your laptop was a VPS ?
no
@Sajad is your website completed"?
21:50
@tereško almost
@sajad you won't be able to serve the webpages while you laptop is off but you can develop while the virtual box is running... when you have a finished application then you can buy a vps and publish the files up to that.
@Sajad so, you don't really need a hosting yet
have you ever used a VPS before?
@Orangepill aha, your mean is a local system ? If I create a VPS on my laptop, you can see my website on my laptop with internet ?
@tereško honestly I had just a Cpanel
You can get a micr-instance on AWS for super cheap. Maybe even free if your careful.
@Sajad then you also need to learn how to set stuff up on a VPS
21:52
@tereško I know !
you cannot run a production code on xammp
If you want a super-duper easy VPS, why not use some sort of PaaS? OpenShift has a good free tier
I'd advise learning real VPS / OS management eventually, but PaaS is a good compromise over CrapPanel stuff
@KevinMGranger aha ...
@Sajad most likely not. but cd $YOURCODEFOLDER && php -S
anyway, I need to get some sleep .. NOW
21:54
@tereško you told 10 min .... Now is 8 min ;-)
@teresko goodnight
Guys can i get some quick help?
@tereško anyway sleep tight ...
@r3wt don't say "can I", just aks ... :-)
SELECT b.*,COUNT(1) AS views FROM views a JOIN mixtape b ON a.mixtape_id=b.id WHERE a.mixtape_id IS NOT NULL GROUP BY a.mixtape_id ORDER BY views DESC i have a 3rd table, called likes where i need to perform the same count and orderby. possible to add that to this query?
Anyone here use Sublime Text 2 or 3? and do you have a favorite code formatter(to clean up formatting) plug-in/package?
Anonymous
21:59
@Sajad Maybe I'll just upload the sites and you can save yourself weeks of misery
@samaYo alright ..
Anonymous
I wish someone had a complete list on how to install everything from scratch.
@r3wt So right now you are counting the number of views for each mixtape? But you want to also count the number of likes?
Anonymous
I had so many headaches making everything work.
Anonymous
@Sajad create a github account
Anonymous
22:01
that should be the easiest thing to do tonight.
@dan08 I don't care, i just have to meet the requirements in the spec sheet, which is sortable by popularity OR newest
@samaYo I have ...
Anonymous
Oh, good .. I thought you did said you did not know what svc was ..
@dan08 right now it is taking me 3 queries to fulfill the requirement, and if possible i'd like to do it in one
@r3wt Then I think you want two different queries. If you just add a "JOIN to likes" to your current query, you won't get the desired result.
You could probably do it with subqueries
22:04
@samaYo yes I don't know what is svc
I just have a github account ..
Anonymous
@Sajad It's what git allows you to do. Source Version Control.
Where you do the counts in subqueries. Then pull that into one query that you do the ordering on.
@samaYo aha
@samaYo so we need to create a page for sharing the codes ?
Anonymous
@Sajad I have github.com/centopia already. I could grant you ownership .. but the guides are all on how to do x on CentOs distro
@samaYo fine
Anonymous
22:07
@Sajad Which distro are you using (if any)
@samaYo to be fair that acronym is almost always written VCS
@samaYo actually I don't any distro now, I want to buy a VPS tomorrw. and I will install ubuntu
Anonymous
@KevinMGranger for some reason, I mix them always ..
Anonymous
@Sajad Just download it on your pc for now. Play around it for a week or two.
@samaYo download what ? ubuntu ?
Anonymous
22:11
Downlaod a virtualbox
@samaYo aha ok
@samaYo well, a Version Control System allows you to do Source Version Control :P
Anonymous
:)
@samaYo Is it related to ORACLE ?
I use of mysql
Anonymous
22:13
@Sajad Just download it.
ok
Anonymous
VirtualBox 5.0.2 for Windows hosts
Anonymous
I hope you are on windows.
@samaYo I am
Anonymous
good
22:14
downloading ...
but may please tell me what is it exactly ?
Anonymous
@Sajad Ok. VPS is a Linux OS, Linux is different from Windows, it's another Open Source Operating system .. good, stable, secure .. blabla ..

So, now since you have windows, and you need to learn how to use a VPS (which as I said runs in Linux) You must download VirtualBox. This is just a container that makes your window OS run Linux in it.
Anonymous
@Sajad Or better go to reddit and do an ELI5
Anonymous
I hope you got something though
Anonymous
If you are thinking about asking me what ELI5 means, DON'T!!!
Anonymous
22:18
I warn you
@samaYo yes I got it, I know what is virtualbox now :-)
@samaYo it is good that you warned me :-)
Anonymous
@Sajad To add even more, you can use virtualbox to run Mac OS, or even use it to run WindowsXP on windows 7/8 .. so, like I said, it's a box in which other OSes are able to run
@samaYo I see :-)
Anonymous
@Sajad Once you installed virtualbox you can get a linux distro (don't ask) from here. isoredirect.centos.org/centos/7/isos/x86_64
Anonymous
I hope your Window PC is 64bit
22:21
@samaYo it is ...
Anonymous
Or else it, has to be 32bit with intel CoreI3
@samaYo my laptop is CoreI7
your link is just for centOS ?
I want ubuntu
Anonymous
@Sajad I have no guides for Ubuntu, you use CentOS
Anonymous
Checkout this (todays) poll.
22:24
@samaYo CentOS is fine ?
@Sajad anything is fine. Just try something!
Anonymous
It works for me, it's secure and has backing of fedora maintainers.
@KevinMGranger alright
Anonymous
/ Ubuntu is too mainstream for me
@samaYo aha
@samaYo anyway thanks, when virtualbox downloaded, I will install it and tell you ...
@samaYo Ubuntu 14.04 is the best in this
Anonymous
22:30
@Sajad Yes
Anonymous
Although, in the same way Laravel, Kim kardashian, starbucks coffee are the best.
@samaYo :-)
I hate Kim kardashian
Anonymous
@Sajad Use what you like, I think Ubuntu will be easier .. so just go with that and don't give up
@samaYo owkey !
Anonymous
Ok, I'm out.
22:54
what does $_POST alone return?
@AnasLmt return? How?
Uh, an array?
an array?
@iroegbu what is its value
oh... it's an array of everything 'posted'
with all the inputs contents?
talking about a form with a few inputs per example
22:59
yes, the form content
'name_of_form_control' => value
riiight! thanks!!
How can i add between clause to this query

`
SELECT mixtape_id,COUNT(1) as `views`
FROM views
WHERE mixtape_id IS NOT NULL
GROUP BY mixtape_id ORDER BY `views` DESC LIMIT 0,16
`

When i try to add between clause on timestamp, the query returns no results.
Does anyone know what a command/handler gets you? I mean, in DDD, we have methods on the entities that have the behavior we need.
SELECT mixtape_id,COUNT(1) as `views`
FROM views
WHERE (release_date BETWEEN :start_date AND :end_date) AND mixtape_id IS NOT NULL
GROUP BY mixtape_id ORDER BY `views` DESC LIMIT 0,16
Perhaps a command (typically issued from the UI) will have a handler that will do more than just call a method on an entity. Perhaps the handler will also call the $repo->save to persist it and maybe do some other non-domain infractructure stuff (ie. logging)?
23:05
ahhhh, so that's why it was slow...
I forgot to enable my swap partition
@ircmaxell sorry about the being "a bit of a turd" earlier
I'm frustrated trying to refactor my client's app with a good conscience.
no worries
You and Taylor should definitely do a php round table together though. That would be very fruitful for lots of folks.
other concepts are already in the works
How are you finding new job?
23:10
Loving it
not going to be easy, but going to be great
Can anyone confirm for me that the command bus is just like a service? I mean, it's simply an encapsulation of a UI interaction that does work using an entity's behaviors and repo calls?
Application level?
Basically, don't do everything in the controller. Instead, think if there is a commmand there
Easier to re-use commands than controller methods
?
Or are they unnecessary abstraction?
I would suggest not implementing a command bus at the application level
90% of the time it will be a distraction
@ircmaxell Where should the code go that takes form inputs and passes them to an interaction on the domain? Should I call a method on a domain entity (from a controller) passing in directly the form request input?
Then, in many cases, I would follow that with a $repo->save call. All of this happening on a controller method?
I was thinking a command would go on the controller instead, but I see that you are saying it would be a waste of time.
You can do it at a command level, but what does that buy you? Why not just wire that in the controller (assuming it's simple code)
23:23
Yeah exactly. If I have an api, I good writing 3 lines of code again lol.
Doesn't feel like there was a need to extract it away from the controller more.
Can someone help me fix why this iframe (link inside) is reloading the parent page ?
where command buses become really useful is when you are going to have multiple inputs doing the same "command"
beautiful. Then there is this:
Put differently: abstracting repetition is easy and satisfying, but refactoring a wrong abstraction into a good one is hard and costly.
precisely
Never prematurely complicate. It's always easier to complicate later than it is to simplify later.
23:25
So wait until I see a need to combine them. Let my app tell me the answer. Great, thank you Anthony
anyway, I'm out. later
later @ircmaxell , you just got a new twitter follower!
Sublime Text 2 or 3? Do you have a favorite formatting plug-in/package that can help clean up code?
Abe
Abe
23:46
evening
@Ocramius did you check wiki.php.net/rfc/dbc2 ?
you mean it shouldn't work with assertions (which are disableable) ?
brb
well, misread.
but that's nothing else than assert() actually
Abe
Abe
but they are forced assertions (which you can disable anyway though)
in fact that's my problem with that as i've written here news.php.net/php.internals/87758
would be much more useful if it allowed user to decide how the check should happen
you know you can handle it how you want right now, by writing code to do the check?
Abe
Abe
of course, lol. but i can even not use types and have a functioning application :P it just formalizes common checks when types aren't sufficient

« first day (1766 days earlier)      last day (3408 days later) »