« first day (1587 days earlier)      last day (3358 days later) » 

10:00 AM
frameworks are made of magic and fairy dust and made by grand wizards in ivory towers
 
@SergeyTelshevsky tbh I kinda understand this... I used to be like that too. It's only since recently (~1 year or something) that I look at the code of the framework I'm using.
 
and peons like you should stop saying bad things about frameworks because you could never be even half as smart as the wizards
 
@FlorianMargaine everyone was there at some point
 
Well, frameworks really are too much magic… a ton of components somehow coupled together…
 
10:02 AM
@tereško makes me want to answer "I put on my robe and wizard hat"
 
@bwoebi yeah, but they usually have good reasons to do so (whether or not we like them), and you can understand what it does when reading the code
 
Reminds me of trolling saruman
 
@Jimbo bloodninja quote :)
google the quote
 
@FlorianMargaine not really… it's just a weird mess of components… with some components being marked as components, but so tightly integrated…
 
@SergeyTelshevsky I can't believe I haven't seen these before...
 
10:14 AM
@Jimbo thank you for helping on github with auryn!
 
is there a standard solution (a linux tool) that watches changes in a directory, and runs a command after each change?
 
@SergeyTelshevsky No probs, with my set-up, I haven't had to do anything for any libraries or components I pull in for a long time. Add a string or so to my config file for any non-concretes, and I can plug and play anything anywhere I choose
@FlorianMargaine inotifywatch or inotify-run?
 
that reminds me: I need to charge my smartband
 
@FlorianMargaine I know there are some events fired by the FS, used by ides/editors like sublimetext to notify the user the file was changed
 
@Jimbo this kind of thing yes
 
10:17 AM
@FlorianMargaine inotify
 
@Jimbo inotifywatch gets statistics of changes though, I want to run a command after each change
 
@FlorianMargaine inofity does that
 
@PeeHaa googling
 
@FlorianMargaine Check out inotify-tools, there's plenty of stuff in there
 
I use it to scan on changes
 
10:18 AM
thanks
@PeeHaa how do you run it?
@Jimbo inotify-tools seems to have inotifywatch and inotifywait only :/
 
Hi,
 
@FlorianMargaine YOu can pass commands to be executed to inotifywait
 
@PeeHaa example?
 
16
Q: How to automatically run a script when the contents of a directory changes in Linux?

GeneQI want to automatically run a script whenever new files are copied into a particular directory. In other words, is there a way in Linux to "watch" a directory for changes and then run something in response to the change?

 
Get Facebook pages in PHP

Users can login through my website.
Once they login, I have to get all the user's page.
They can select which page have to use and they can remove the page tab through my website. For that I have to get strong access token for pages.
I can get my all facebook page through my app using Facebook SDK. But how can I get all users?
 
10:22 AM
@PeeHaa oh, ok
 
I think I used that with extra flags to wait until writing is done otherwise on ftp upload it would keep executing for every block uploaded
 
#!/bin/sh
while inotifywait -e modify -e create -e delete /home/me/code; do
    rsync [options] /home/me/code/ /media/nfs/code/
done
there's nothing easier?
 
Easier than those three lines? :P
 
I was hoping something like inotify folder command
 
@FlorianMargaine Put it in a shell script that accepts the arguments you need :D
 
10:24 AM
alias, too
 
@SergeyTelshevsky Thank you, figured it out
 
@Joseph great!
 
@SergeyTelshevsky feels like it had a good impact on performance tho :(
 
hi kids!
 
@PeeHaa needlessly complex...
 
10:27 AM
@Jimbo I'm stuck on 5.3 and some parts of auryn do not work, getClosureScopeClass for example, so I'm forced to skip stuff like factories :(
 
@SergeyTelshevsky Which part uses getClosureScopeClass()?
 
factory closure IIRC
 
ugh
 
I make my own factories and 'build' the object in a create() method... so you can still DI the factory
 
@FlorianMargaine Lazy French guy... :)
 
10:29 AM
 
@SergeyTelshevsky Got a simple code example for this? I've never used it
 
ah... another shot on scalar type hinting wiki.php.net/rfc/scalar_type_hints_v5 .. hope it finally gets a foothold ..
 
ffs, sitting on a 5.3 feels like being disabled
 
@PeeHaa Do you happen to know if safari pre-loads page when you type url but press tab instead of enter?
 
10:32 AM
@SergeyTelshevsky I think I tried doing that with all my doctrine repositories but I couldn't for some reason, I'll give it another try
Because as of right now, all my repositories are created and shared so I can type hint for them
 
@Naruto No idea sorry
 
@Jimbo I have that as well can't use doctrine here so I don't have these problems, I would like to use that, though
 
@PeeHaa dammit, my script gets executed 2ce because of that.. which shouldn't be happening :P
 
@SergeyTelshevsky you haven't had t use PHP 5.1 in part year
 
Ugh @DaveRandom?
 
10:34 AM
My company - on 5.3, I managed to convince migration planning to 5.4, then 5.5 :-)
(happening within next few weeks)
 
Nicely done @Jimbo
Why not 5.6?
 
@Fabor We'll probably go straight to 7 after that, it's a big jump
 
Furry muff
 
@Jimbo 5.6 or gtfo :P
 
Any bets on when PHP will start going by codenames instead?
 
10:36 AM
@Fabor I went for one pint last night and got home at 2am
 
PHP AlphaVixen or gtfo
@DaveRandom Went for one stayed for six? :P
 
presumably, it's a little hazy
 
On a school night too! tut tut
Celebrating?
 
user3949359
How do I connect via the cmd on Win7 to the XAMPP MySQL?
 
@nosille I wouldn't personally. Look in to virtual machines.
 
10:39 AM
Morning guys. Do you know any good applications for recording desktop + voice?
 
user3949359
@Fabor I do have a VirtualBox running
 
@nosille seascapewebdesign.com/blog/… Something like that
Virtualbox + Vagrant
 
user3949359
@Fabor Is Vagrant a must?
 
No but it's a recommend.
 
user3949359
Ok, I can see mySQL on the vm
 
user3949359
10:40 AM
I should add the execution path for it though
 
If you know how to setup a server then vagrant is fine. If you don't and have the time to learn then don't use vagrant.
If you don't have the time or don't want to learn how to setup a server then vagrant is fine.
 
@ircmaxell I would personally want to have integer and boolean aliases, because they are in use a lot. Even in your RFC (the behavior table you use them)
 
user3949359
@Fabor My objective here is to be able to manage DB through the shell. Which path on VM/mysql should I add to environment variables?
 
If you want to connect to your db through your host (windows) then look up Putty. Use Putty to SSH in to your VM which has MySQL on it
 
user3949359
@Fabor is "mysql" command going to work on putty?
 
10:43 AM
Putty is a terminal through to your VM
Think of it like remote desktop
 
user3949359
I do have putty
 
has anyone made use of the dropbox api?
 
Okay so learn how to setup SSH and ssh in to your VM through putty.
 
Also @ircmaxell in @Andrea's rfc most people voted to include them
 
user3949359
@Fabor I just tried to and got ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
 
10:47 AM
can I ask in using socket,is it necessary to use looping event ?just to listen incoming data stream ?
 
@nosille And so the learning/googling begins :P
 
Php people can I ask,I am still beginner in using socket,my question how would you handle to keep listening for the incoming client do you use while loope or for loop,is there other way not to use looping event?
 
@Jimbo I'm waiting to do that too. Pretty hard to convince when "50 devs don't see problems in using 5.3 and you do" is the argument
 
@SergeyTelshevsky Need to find somewhere you're taken seriously - luckily current company and boss believes that I'll do a better job than the previous guy who wrote our codebase in symfony 1 (procedural code everywhere) so I get to design the next codebase from scratch (it has like 5M loc) fml
 
10:59 AM
@Patrick did you tried this ?
 
@Jimbo yeah, I have almost convinced, will continue after launch
 

« first day (1587 days earlier)      last day (3358 days later) »