« first day (1075 days earlier)      last day (3858 days later) » 

9:00 AM
Morning @Fabien
 
@Fabien monnig
 
hi, @Fabien
 
@blackbee You will hate pointers for the first month, then you'll wonder how you ever lived without them.
 
lol
 
9:04 AM
where's the rest of it! D:<
 
Damn people thinking they're clever by making it hard to embed images on other sites
 
@DaveRandom lol. All prepped for the task?
.
 
@DaveRandom Am I the only one who has a separate drawer for lids neatly stacked in size/type order? =o\
 
My tupperware is all old chinese take-out containers -_-
 
9:07 AM
@Fabien Yeh I've reserved an actual solid uninterrupted and, crucially, child-free 90 mins for myself later today
@Fabien +1
@crypticツ Yes, yes you are.
 
@DaveRandom When it's finished, may I be rude enough to ask to see it? I'm still in the early stages of OOP and much prefer real world examples. I understand if you don't want to though.
 
@Fabien Going to PHP UK in Feb?
 
As soon as I'm finished and have sent it to them I have no problem showing it (indeed I was planning to ask for a code review myself after the fact)
 
@DaveRandom I'm OCD with my tupperware. I'll also stab anyone who uses a sharp utensil on my non-stick pans.
 
@Starsong I feel like I am too noob for those sorts of things :(
 
I think they re-use these task things though so I can't post it in a way that will be public for ever more, I'll have to set something up on my server
 
@Fabien Nonsense. :o
 
@crypticツ I'm with you on that. Also putting non-stick pans in the dishwasher will result in a punch in the face.
 
@crypticツ Anyone using a sharp utensil on my non stick pans will have the same sharp utensil applied to their groolies. >_>;
 
9:12 AM
@Starsong I'll see if other devs I know are going.
 
@Fabien I'm going. :D
@Fabien Employer is paying for a 4 star hotel, 2 nights out on the town and the conference. Can't complain.
 
lol. I don't think I could get mine to pay for it. I wish.
 
$metarow = "75_";
var_dump(preg_grep("/$metarow/", array("75_")));
How to insert variables in match, the above doesn't work
 
lol .. in my previous workplaces it would have been a bonus, if you wouldn't have to work on weekend to work off the time you spent away on conference
 
@tereško The conference is on the weekend, only thing I have to pay for is my flight.
 
9:15 AM
@DaveRandom Awesome thanks :)
@Starsong Looks like I might be going. I suggested it to friends and they're down.
 
@Fabien Cool, let me know if you do and I'll get you a beer (or four). :P
 
@Starsong which conf?
 
@Ocramius PHP UK conference in Feb
It's in London.
 
@Starsong lol. It's a date :P
 
@Starsong oh, CFP is open <____________<
 
9:18 AM
@Ocramius CFP?
The Common Fisheries Policy? :P
 
Can anyone help me with the command to import a SQL into a database via terminal
 
@Starsong Call For Papers
 
@DaveRandom Oh
 
mysql -u username -p database < sqlfile.sql
 
I'd be the last person to stand up and talk in front of a PHP crowd, tbh.
If it was C++ or perl, maybe.
 
9:21 AM
Public speaking is not my thing.
Public nudity I'd be down with, but I don't think it's that kind of event
 
nor me, I wouldn't mind preparing some material for someone else to present ... but fuck doing it myself ...
 
I'm not much into public speaking either, though I've done presentations to clients.
Also, new Sub Focus song (bass warning):
 
yeah yeah, a few people around a table is cool ...
 
StackOverflow Room 11 conference then?
 
9:22 AM
That was about 40 people, showing off some new features.
 
I'm honestly just doing it to get conference+hotel paid - I gladly prepare the talk for that
 
by the way, @JoeWatkins - sorry, I promised to give feedback about anon. classes yesterday - but was absent. Are you still looking for cases?
 
still suck as a presenter, but hopefully will get better :)
 
@Fabien That would basically be a bunch of people in a room shouting out the window at random passers by
 
@AlmaDoMundo I think the need for use cases has been satisfied, feel free to post to internals with your views though ...
 
9:23 AM
@DaveRandom Excellent. Where do I sign up?
 
@Ocramius As I said, employer is paying for my hotel & entry. :P
 
I think it's satisfied, no clue what others think ...
 
All I'm paying for is a flight at about €300 because I refuse to fly econ. :P
 
@PeeHaa There's a list behind the bar, but they'll only let you sign up after your 9th pint
 
@DaveRandom heh. Still sounds like fun.
 
9:24 AM
@JoeWatkins ok. Ugm.. I'm not sure I can 'post to internals' :p
 
@Starsong no employer anymore here \o\ /o/
 
good good
 
@Ocramius I quite like mine. :P Not sure I'd choose to live in Napoli if I didn't have one. :P
 
@Ocramius are you self employed now? or looking?
 
I can think of preferable exotic locations.
 
9:25 AM
@Alma you just have to subscribe to the list but I don't blame you, I hate posting to internals, it's usually a massive waste of time ...
 
@Gordon I am
So far still messing with paperwork, but feels good =D
 
@Ocramius If I was self employed I'd move to Panama or something lol, somewhere with a 1% corporation tax.
 
@JoeWatkins I've never do that, so - I'm not blaming myself :p
 
even being paid to fix doctrine bugs at ATM, that really feels awesome
 
@Ocramius That's the biggest thing that puts me off that route tbh
 
9:26 AM
hey @Ocramius cool to meet you here as well ;-)
You seem to be everywhere
 
@Ocramius is neo, prolly ...
 
Damnit I was just going to make a Matrix reference. Must learn to type faster.
 
@DaveRandom once the first stuff is done, you're fine. I'm also using harvestapp, which makes getting people to pay you a breeze =D
 
#FirstWorldProblems
I've already done the paperwork because I freelance so much.
 
@sanders I've been exploded into different pieces and splatted all over the various chat vectors in the internets
 
9:28 AM
@Ocramius Why, do they send The Boys round with some kind of farm equipment is people don't pay you?
A scythe maybe
I always wanted one of those
 
Me too :/
 
@DaveRandom haha
 
Hope there are some regex experts here. I would like to know if the following is correct. '/^[a-z0-9 .%+$*\/-]+$/i'; means: The string should start with a-z or 0-9 and it could have multiple % charachters
is that right?
 
no
 
@sanders That simply allows all the characters between the [] 1 or more times, and nothing else
 
9:30 AM
@sanders No, that's wrong.
 
so al the characters between [ ] should be allowed
?
 
Yes, although the backslash is not included in the allowed char list
 
@Ocramius developers developers developers ;-)
 
You should use something else as a delimiter for that for clarity
 
9:32 AM
@sanders Are you looking for a single A-Za-z0-9 followed by any number of %s?
 
@sanders What are you validating with that?
 
actually, that regexp is invalid
 
ok but .%+$*/- are alowed
 
Yes
 
@DaveRandom nope
 
still wondering how a guy like ballmer got in such a position. Are clowns really paid that much?
2
 
lol
 
instastar
 
user image
2
 
9:33 AM
@Ocramius become a clown
 
@Fabien actually, it has :p
 
@tereško Nope, I can't see it. I see a couple of gotchas but nothing that's actually invalid
 
@Ocramius look on the comment from that youtbe movie from mephisto40
 
@sanders When validating multiple things, you may find it easier to use multiple simpler regex rules than one complex one.
 
Hello every One
 
9:35 AM
hi @SaimaMaheen
 
hi how r u
 
hi roon
 
@sanders For example:
$regex = array(
    "/^[A-Za-z0-9]/",      // Starts with A-Za-z0-9
    "/%/"                  // Contains at least one %
);
 
good @SaimaMaheen
 
lolzzzz
 
9:46 AM
@DaveRandom then look at it carefully '/^[a-z0-9 .%+$*\/-]+$/i'
 
@DaveRandom There's an unescaped - in the character class, this would indicate a range, but there is no end to the range.
 
That's one of the things I was referring to as a gotcha, the expression is still valid, it just probably won't do what you are expecting it to
Also backslashes are a world of pain to the uninitiated
 
btw, anyone here fan of Egosoft's X games: humblebundle.com/weekly
 
can anyone tell me where I should run commands such as $ php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
 
in terminal
 
9:52 AM
in bash?
 
@tereško cmd?
ah wait, this command is for Mac systems? what would the equivalent for Windows be?
 
@DarkAshelin yes, but only if you have php.exe in %PATH%
 
since it doesn't recognize $
 
@tereško ooooooh
if I just had the time :(
 
@DarkAshelin You don't paste the $, that's the prompt.
Copy from php onward
 
9:54 AM
@DarkAshelin the $ there indicates that it should be executed with user-level permissions
 
ok. and does my current directory matter?
 
starsong@cadence:~$ <--- UNIX prompt
 
root@Universe:~#
that's the Prompt :p
 
aha, got it to work. ty
 
My prompt is a little more complex than that :P
 
9:56 AM
# is for root (admin), $ is for user
 
I like process number, last return code in it
 
I prefer include timestamp also
 
I have time too
 
@Alma why are you logged in as root ?
seems needlessly dangerous ... I hope it's not a remote shell, that'd be even worse ...
 
10:04 AM
@JoeWatkins I always have sudo -i tab in my terminal-emulator
of cause, I'm working under normal user
 
good good ... I'll sleep better tonight knowing that ...
 
@JoeWatkins well... I'm confused now :\ you've asked me first :\
so I've answered
 
I was taking the piss out of me, not you ... why am I sitting here wondering if you've logged in as root :D
 
would anyone like to help me with some basic Symfony questions?
 
@AlmaDoMundo
HH:MM ~ starsong::cadence { ~/code/ins-004-x2 } n.n
$
That's my prompt
 
10:15 AM
Monring
 
The ~ will change to X if RAM usage is high, the n.n changes to u.u if last command didn't return 0.
 
mornin @MadaraUchiha
 
Hai @MadaraUchiha
 
any Symfony users? >.<
 
@DarkAshelin Probably
 
@DarkAshelin see room description
 
@Starsong mine is simpler: PS1="[\t]\u@\h:\w\$ "
 
@DarkAshelin If you have questions that require more than a single line resp, you should probably ask on the main site. :P
 
@Starsong no, the question would get closed, pretty sure of that
 
@JoeWatkins you around?
 
10:21 AM
@Starsong if he will do that about RTFM things.. well it's not a good idea
 
@DarkAshelin If you know it's going to get closed, then it's probably not that great a question, don't you think?
If you know it's going to get closed, then you should know what to do to fix it, so fix it, and ask, then it wouldn't get closed :)
 
no it's because it's a rather newb question, and probably could find the answer if I had any clue what to look for
lemme type it out
 
also, asking for opinions and explanations gets closed
I have a few basic questions...
http://symfony.com/doc/current/book/page_creation.html
I created the Bundle, but at Step 1: Create the Route it tells me to create a file in the App folder (right?). Now I'm wondering
- if my entire project is in the "src" folder (why is there anyway?), why do I need to be in the App folder?
- is it telling me to create ALL my routes in that app config file, for all projects? what if I want to separate my projects (for the sake of putting them online), what exactly am I supposed to upload in the end
 
good morings
 
10:24 AM
mogoring @iroegbu
 
hi, @iroegbu
 
@DarkAshelin Sounds like a reasonable question to me.
As long as there isn't a duplicate, and the question is well-written, I don't see why it would get closed.
@iroegbu mornings
 
@MadaraUchiha well since I'm just starting out with this framework, you can expect more questions like this. they're probably really easy to answer/explain but I don't think opening 10 questions is a good idea
 
@MadaraUchiha umm. so you thought I dont know how to format markdown? Oo
 
@DarkAshelin Your application may wrap multiple bundles with different logic. App folder is some sort of bundles-wide configuration
 
10:26 AM
@Gordon Apparently so :P
Or is this the wiki syntax that php.net/rfc uses?
 
@MadaraUchiha yes
 
@Touki alright, then how is this exported to an online version (where I only need 1 bundle)?
 
Huh, I see, markdown with different headings, basically
 
@DarkAshelin Also, you don't have to declare all your routes in your config file, far from that. You just need to tell the FrameworkBundle import them from any bundle you'd like
 
x.x
I didn't understand most of that, again I'm just starting out with this framework :D
 
10:28 AM
@DarkAshelin Also, these questions are also fine here, by the way. Don't be afraid to ask (both here or on the main site), if your questions gets closed on the main site, come here and we'll give you advice on how to improve it.
 
@DarkAshelin See Step 1 of your link. The first code example is the line you have to add in your app folder to import the configuration file of your bundle
It tells the FrameworkBundle(Symfony) to import routes from your bundle
 
alright, makes sense
 
Take a closer look at the second example. It is located in src/Acme/HelloBundle/Resources/config/routing.yml not in app/config
 
I've got to go now, thx for the advice so far, ping me if u got more and I'll read it when I get back. I'll also try to bundle my future questions and ask them here or on the main site afterwards ;)
 
com'on my fellow soldiers, delete this stackoverflow.com/q/19002371/1542290
 
10:32 AM
man, missed the end of the ConFoo CFP
 
oh... why is life so complex? I want to autoload my class in Silex without composer.
 
Why without composer?
 
Why without composer?
 
Why is it complex?
 
Why without composer?
 
10:34 AM
@MadaraUchiha I am
 
lol
 
:o I'm not very familiar with it now...
With this response... I guess, I'll have to learn about it.
 
morning
 
Anyone want to look at a CFP abstract for me? I'm thinking about submitting it
 
moin @NikiC @ircmaxell @MadaraUchiha
 
10:36 AM
/me redesigning own blog with yo generator-angular
 
afternoon is more like it
 
afternoonz don't exist on internetz !!
 
How do you write clean code? This is a question that has plagued developers for decades. Most people know what clean code IS, but how do you write it? How do you get from concept to clean implementation? How can you know when it is good enough?

In this talk, I will introduce a new way of writing clean code: writing Dirty code first. We will discuss what it means to write Dirty code, how Dirty code evolves into clean code and how you can deliver optimal business value with your code. Want to write better code faster? This talk is for you.
thoughts?
 
@iroegbu this should help.
 
and then update
 
10:37 AM
ignore that , after "version" though :P
 
@JoeWatkins I think you are approaching the anon classes thing with totally the wrong attitute
 
composer update yes (if global)
 
@NikiC explain what you mean ?
 
and if I'm not using namespaces?
 
@iroegbu weird?
 
10:38 AM
@iroegbu Start? :P
 
@JoeWatkins "I'm a bit confused by this idea that every RFC has to be accompanied by a long list of use cases, expressing ideas that cannot conceivably be expressed any other way"
 
Thanks, I'll give it a go.
 
You seem to have a hard time understanding that syntactic additions require some justification
 
@iroegbu Your life will be 10x easier once you get used to it. which only takes a few minutes. :)
 
The question is not "Why not?", the question is "Why?"
 
10:39 AM
@NikiC the question should be both
 
you can justify it without providing use cases, providing use cases makes no sense, anything you can provide as a use case I can do without anonymous classes
so why focus on that ...
 
@JoeWatkins Without use cases, what is the justification?
 
@JoeWatkins same with generators. same with short array syntax, same with most changes today
 
"We can introduce it, so why not do it?"
 
10:40 AM
expressiveness, choice ...
@ircmaxell yeah, exactly ... yet they had to be accompanied by a bunch of use cases ... it doesn't make any sense ...
 
agree
sort-of
any thoughts on that CFP abstract?
 
I'm all up for hearing use cases, and discussing interesting ones, but to go on and on about use cases is pretty pointless ...
@ircmaxell I'd read/listen ...
 
@JoeWatkins not to mention that a lot of use-cases should be pretty dam obvious. And if you can't understand how a feature like anonymous classes would be useful, you either don't do enough programming, or need to open your mind to new ideas and be a little creative
thanks!
rephrase: you don't do enough OOP programming
 
I was totally and absolutely baffled that Rasmus was the first person to say "I don't get it", and that is basically what you are saying ...
 
Down for everyone or just me pieterhordijk.com/open-source?
 
10:47 AM
@Ocramius Thanks a million
 
@PeeHaa Up for me
 
hmmm tnx
 
@JoeWatkins I'm not baffled anymore. It's kind of fitting after everything I've seen. There's a reason that PHP is the hodge-podge of wonky design that it is today
 
@PeeHaa if that's true, his OS is FUBAR
 
10:49 AM
some things require a lot of discussion, use cases, lengthy explanation ... this just isn't one of those things, to approach every RFC is the same way doesn't make good sense to me ... this should have been a simple, yes we'll have it, or no, not necessary ... I'm fine with either, I'm just not as willing to engage in pointless discussions as your average internals patron ...
@PeeHaa up
 
which is one of the reasons I walked
the rules are important when people want them to be important, and aren't important when they don't want them to be important
 
@AlmaDoMundo You inspired me to update my prompt to put proper mem usage number in it instead of a vague indicator
PS1="\[\033[01;33m\]\A \[\033[01;36m\]\`free -m | sed -n -e '/^Mem:/s/^[^0-9]*[0-9]*[^0-9]*\([0-9]*\) .*/\1/p'\`MB \[\033[01;32m\]\u\[\033[01;34m\]::\[\033[01;31m\]\h \[\033[00;34m\]{ \[\033[01;34m\]\w \[\033[00;34m\]}\[\033[00m\] \`if [ \$? = 0 ]; then echo -e '\[\e[01;32m\]n.n'; else echo -e '\[\e[01;31m\]u.u'; fi\` \[\e[01;34m\]\[\e[00m\]\n\$ "
:D Why does my prompt look obfuscated?
 
I don't know. I just use my prompt as I see fit
 
sudo dd if=/dev/urandom of=/dev/sda1 <-- will make your prompt look obfuscated
 
@ircmaxell That will make your whole system pretty obfuscated.
 
10:56 AM
that too
side effect
 
Mild side effect
 
@ircmaxell Well, I don't understand it, for example
 
@NikiC what don't you understand?
 
I love doing cat /dev/urandom on the macs in the PC stores, then setting the terminal to green on black.
 
@ircmaxell "how a feature like anonymous classes would be useful"
 
10:57 AM
Then wait for someone to mention The Matrix.
 
I only ever found anon classes interesting for the "scala-like traits" use case. But that's not what this proposal is about
 
my terminal is always green on black o_O
 
eih
 
Mine's not, it's white on black with lots of colorization
 
@ircmaxell I think it's wrong to assume that everyone has five years of Java experience and as such implicitly knows the worth of anonymous classes ;)
 
10:59 AM
I have 0 Java experience. But this feature screams at me of cases where it would have been useful in PHP code that I've written about in the past
 

« first day (1075 days earlier)      last day (3858 days later) »