« first day (1037 days earlier)      last day (3911 days later) » 

12:03 AM
test
omg I can finally talk in this room
 
@hakre so in the DB i generally have to make an n:n relationship right?
thus it means i need to add a pivot. pffft.
 
@hak
@hakre My experience with Yii was ... less than satisfying
 
.. you don't say
 
@tereško is this for me again T-T
 
dunno ... the color seems to fit the general scheme
 
@hakre It means it correctly parses a version according to SemVer and rejects invalid versions.
 
@LeviMorrison digit dot digit dot digit then done ?
 
12:13 AM
@hakre Harder than that, mate.
 
or you have also comparison functions?
 
1.0.0-alpha
0.8.0+asd82m.2adfas.2rasfa
 
oh magic numbers (even if they are strings)
oh that really hits some box.
@LeviMorrison so the semver edition of php's version compare?
 
fuck , i forgot to spend my votes
 
Yeah, but I don't quite follow the full spec yet because it's got some tricky bis.
 
12:15 AM
@LeviMorrison the tricky parts are always interesting, but doing one's own implementation is also counting towards.
you normally only learn about the tricky bits if you really implement stuff
 
For instance: 1.0.0-rc.2 < 1.0.0-rc.11
 
AND (actually) a C/C++ based implementation should be part of any good standard.
otherwise it's not a CI standard.
 
My code is horrible.
>.<
Here's a taste:
 
12:19 AM
looks really painful
 
C is painful pretty much always.
 
tru
 
Labels?
;)
 
sometimes goto is the lesser evil , especially in C
 
But someone on the internet said they were bad!
 
user895378
@Gordon Hmm. That's strange and very well could be my fault. Looks like my reverse proxy may be acting up. I'll look into it. Might need to enable some debug logging and have you make more requests after I do. I'll keep you posted.
 
user895378
/cc @LeviMorrison
 
Good to see you again :)
@Danack For simply labeling purpose. I never actually use goto :)
 
What's the worst that could happen?
 
@LeviMorrison emm ... that's what comments are for
 
12:30 AM
@tereško wow, very good update.
 
@tereško It's called a 'label' and it's harmless. Seems like a +1 to a comment to me.
 
@hakre it should give you some avenues of inquiry for that interview
 
@tereško good insights dude. I can talk like a pro :D
However, that guy I'll talk with is really face-to-face.
so it's not about technical details.
but how to get the project onwards.
regardless of mistakes, so really helpful for me your summary. thanks a lot!
 
oh .. forgot to add another section
 
@hakre I always prefer non-technical interviews.
Did they say what kind or more of a chat?
 
12:41 AM
@Fabien dude I'm just meeting a developer and I hope we have a good time.
 
Oh. Fair enough.
 
for sure :D
@Fabien and chatting can be pretty cool.
 
Yup. Good ol' chatting.
My last interview was in a pub, guys spent the entire time chatting to me then just offered me a job. Wasn't even an interview really.
There's a PHP Hampshire group that meet near where I live. Tempting to go but unsure how those kind of things go.
 
My understanding is that PHP events center around alcohol.
 
few years ago I too had an interview in a bar .. there was the owner of a small company, their lead developer and three candidates (including me) .. basically, it ended up as me and lead dev drinking beer and interviewing the two other candidates
 
12:54 AM
Heh. Well I used to work with the guy who runs it, so that wouldn't be surprising.
@tereško Definitelyone of the things I love about working in this field. Those kind of instances aren't as rare as others.
Though there are some fairly lengthy formal interviews too.
Any of you play Go by any chance? AKA iGo, Baduk and WeiQI
 
I play SC2 ... badly
 
Compared to the Koreans, who doesn't?
 
@LeviMorrison how can you say so? :)
 
@hakre I really don't know firsthand, I've never been.
 
1:10 AM
@LeviMorrison if you're close to Europe mainland, why not come over to Fosdem next year so we can have some dirnks? :)
 
@hakre Problems:
1) I'm nowhere close to Europe mainland.
2) I don't drink
3) Where is Fosdem?
 
It's not on google maps. I know that much.
 
I should clarify: I definitely do drink, just not alcoholic beverages.
 
okay, I can't fix the drinking, Fosdem is in Brussels one of western Europe's capitals (share the NATO love ^^), it is also popular for Beer however it's not only drinking just good nightlife.
 
@LeviMorrison Are you certain?
 
1:14 AM
@LeviMorrison well .. look at it this way: it could be worse
you could live in North Carolina or Texas
 
I gotta visit Belgium one day. There and many places east of it.
"In Bruges" makes it look like a nice place.
 
or was it the South Carolina with all those crazy people
 
I live in Provo, Google Fiber City #3.
 
:( My building is old so best I can do is 5 down 1 up :(
 
"The South" is crazy in general.
 
1:17 AM
I know the reason!
nascar.
 
naah ... it's the combination of heat and bibles. I suspect they make the covers from some material, that in heat releases toxic fumes, which cause stupidity
and this counts here as "budget option"
 
I'm envious :(
 
I am tempted to learn golang
just because I don't like it
 
@Ocramius learn Erlang
 
I used a bit of erlang (far from "learning" though) and it was a bit of a mess <_<
 
1:24 AM
Oh yeah
 
well ... when you need to send a file, do it by sending a flashdrive
 
lol
 
heh
 
My wife and I both work from home. Occasionally she needs to upload videos, it's painful when I have to check if the server is slowing down or my connection.
Rather annoyingly BT Fibre has been installed a few buildings over. The only reason we can't get it is because our building is old and the wires are no good.
 
@Ocramius hu hu :D
 
1:33 AM
ohai @hakre
 
@Ocramius do you go to bbq?
would be fun to meet there.
 
@hakre I think I will, yes
 
ah cool.
 
gotta rsvp
also gotta return a book to Andreas :D
 
rsvp? like will be there and noted?
@Ocramius which one?
 
1:34 AM
"beautiful testing"
@hakre what's your email again?
ah, nvm, found it
afaik, you got to bring your own meat, but drinks are on the UG
 
Usually it's the other way around.
 
@Ocramius you can reach me spammy at:hanskrentel@yahoo.de
 
BYOB
 
@Ocramius yes hey said it's sponsored for the drinks.
:D
 
user895378
@Ocramius FYI apparently the v0.6.* line of Artax releases is not correctly closing keep-alive sockets after the keep-alive timeout expiration. This won't affect most people because the sockets are always closed when the client object is destroyed. Also the vast majority of HTTP servers will automatically close keep-alive connections after a brief period anyway to preserve their own resources.
 
user895378
1:39 AM
However, if you happened to be connecting to a server that didn't auto-close keep-alive sockets and you were using the async client to send a lot of requests in very long running processes it could cause problems like you described the other day.
 
@rdlowrey would a __destroy solve the problem or do I have to keep separate processes?
 
I guess in the end that means: bring in the drinks and the food and we take care of those who were not fully able to are actually happy as well sort of :D
 
haha
i'ts saturday, we'll find a rewe anyway ;)
 
user895378
@Ocramius Well me fixing the problem will solve the problem. But yes, if you periodically just destroyed the client instance and fired up a new one that would also solve it.
 
you filthy lazy frankfurtians with all you 24/7 REWEs
eh lass uns REWE gehen :D
 
user895378
1:41 AM
I can't definitively say that was the cause of your problem, but it's something I discovered and will push a backwards-compatible fix for in the coming days.
 
@rdlowrey cool! I'll give it a try tonight :)
(destroying the client)
 
user895378
Cool. I'll keep you updated should I encounter/fix anything else that might be related to the problem you had.
 
@hakre haha
@rdlowrey awesome :)
 
@Ocramius: You just have been booked for next PHPUG Rheinhessen Meeting to give a lightning talk about @rdlowrey's HTTP service library.
 
user895378
hehe
 
1:44 AM
@hakre ಠ_ಠ
@rdlowrey did you actually start doing talks about it? it's worth it...
the Amp concept is also really cool
 
user895378
No I haven't. I'm spending all my time working on the HTTP/websocket server at the moment.
 
@rdlowrey well, I suggest doing it. Having more eyes on it can only help you ;)
 
user895378
Maybe after I "finish" that and feel confident that the client and the amp stuff are where I want them.
 
rofl :D
well, the http client is already much better than Zend\Http\Client for sure ;)
 
Time for bed. Night all.
 
user895378
1:51 AM
@Fabien Have a good one.
 
2:04 AM
@rdlowrey Yes, it's worth to have a good bed. It's also worth to praise the inventor of the bed.
 
ಠ_ಠ
 
^ someone here is using it as nickname ... fyi
 
ಠ_ಠ ^ 2
ಠ_ಠ
|ಠ|
ಠ_ಠ
 
2:37 AM
@rdlowrey Since we're sort of on the topic, any luck investigating the issue Gordon was having?
 
3:08 AM
39
A: Which LOLCODE interpreter to use?

1800 INFORMATIONI think it would depend on your needs. Are you looking to use LOLCODE in the enterprise? Do you need integration with .NET? Web Services? Open Source? What OS are you targeting? A wide variety of ODBC drivers or integration with Eclipse? What about IntelliSense support or a decent Emacs lol-mode?...

probably the the best non-answer to a non-question on SO
 
 
2 hours later…
5:12 AM
moin
Do we know who Jonathon Lima is ?
 
user652649
morning
 
moin
wonder at what age humans become interested in staying in bed on sunday mornings ... its 6am ...
 
user652649
good question xD
 
0
Q: How does a checking for submit button is pressed in php work?

bpinhosilvaI'm curious about this kind of behavior, suppose the code below: <form name="myfrom" action="" method="post"> Username: <input type="text" name="user" id="username" /> <input type="submit" name="submit_form" value="Submit" /> </form> <?php if($_POST['submit_form'] == "Submit") { ec...

lol
 
 
1 hour later…
8:14 AM
@tereško The hell? Why?
It's a good question, I don't understand why you guys closed it..
Anyone else thinks like this?:
6
Q: Close reason emphasis is wrong

Madara UchihaCall me nitpicky, but I can't ignore the fact that the emphasis on the following close reason is misleading: Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See als...

 
8:35 AM
@MadaraUchiha because OP has not even tried to learn anything. He/she just copied code from web and now wants someone to explain it.
 
incoming PHP questions should be flagged per default as close-voted and only being reopened on community's attention
 
what is the function for this: i want to get only the positive value like -12 should return 12, and 12 should also return 12
 
unfortunately it's not a viable option
community cannot deal with amount of question that already have been marked for closing
 
@hek2mgl thanks a lot :)
 
8:48 AM
i remember when this have ~52k questions pending review (that was in winter)
 
@NokImchen no problem ;)
@tereško Yes, that's true... (And I must admit that I'm mostly too lazy to review that stuff.. Mostly reviewing pending edits)
 
@hek2mgl in actual maths, abs() is called mod. But i programming mod() is the remainder. So, i was so confused.
 
I spend most of my votes via this interface: cv-pls.com/backlog
 
@NokImchen I'm not a math expert but never heard that abs and mod are related
@tereško Nice app :)
 
it's where all the cv-pls tagged questions end up in
 
8:52 AM
@hek2mgl i think, in my school days, |-12| = 12, the pipes are called mod :/
 
in Germany it's "Betrag" don't know the name of this operation in English. thought it was "absolute" or abs
 
it's @crypticツ 's project, she made a GUI for the existing backlog
 
crypticツ is really a she? Thought he was a guy who is joking
 
@NokImchen , because mod in programing is used for modulo operation: en.wikipedia.org/wiki/Modulo_operation
yay for triple-ping
 
@tereško ?
(my chat and english knowledge is limited)
 
9:10 AM
@hek2mgl *sighs*
 
@crypticツ hi :)
 
anyways, anyone familiar with Doctrine? I'm getting an error in my Symfony app regarding 'default_metadata_driver' not being set. I put the config in but have no idea what goes in it. I did a Google for the option name and really nothing much comes up. =o(
@hek2mgl hello
 
@crypticツ use debugger, Luke
 
@crypticツ which version of doctrine are you using?
@crypticツ I've checked out the recent doctrine version and issued a
rgrep -i default_metadata_driver
 
@hek2mgl 2.2
 
9:16 AM
no results where found. So I expect it is a symphony related problem.. not doctrine
 
@tereško He's trying to learn, that's why he asked the question!
 
@crypticツ which symphony version are you using? :)
 
You know, at the end of the day, Stack Overflow is a source of info as well!
 
@hek2mgl 2.3.3
 
ok, will check
 
9:18 AM
@MadaraUchiha then why "how to make a forum" is considered to be a bad question? User wants to learn how to make a forum obviously. Or maybe "I get unexpected T_IF error, please help me"
 
@tereško Too broad, and too localized.
 
SO is a QA site, not a collection of manuals
 
@tereško And that question is perfectly answerable.
 
@crypticツ Hmmm. rgrep gave no results. even with symfony source code. Can you post the original error message?
 
@tereško I can say the exact same thing about your How should a Model be constructed answer.
Not all q/a should be considered too broad if it exceeds 20 lines, you know.
And so, I'll ask again.
 
9:22 AM
@hek2mgl If I remove the line from config.yml I get "InvalidArgumentException: The service definition "doctrine.orm.default_metadata_driver" does not exist." If I put that config so I have it under doctrine > orm > default_metadata_drive (fake value for it) I get "InvalidConfigurationException: Unrecognized options "default_metadata_driver" under "doctrine.orm""
 
@MadaraUchiha I don't like such questions
 
@hek2mgl Why's that?
 
mostly TL;TR
 
@hek2mgl It doesn't have to be too long.
 
9:25 AM
@MadaraUchiha I haven't read any questions just followed the discussion. Questions like 'How a model should be created' I don't like. How to answer them? Should I write a book?...
 
@hek2mgl Those informative answers are the best answers out there.
 
Hey - How would i get the rows of a "SELECT *" with PDO? when it includes variables to be assigned? Like "SELECT * FROM table WHERE test = :test".... I've searched around for quite a while, and I cannot figure it out
 
Mainly due to the fact that they contain the most information, and actually require an expert to write them.
@JesperJacobsen I don't understand the question.
 
@crypticツ Do you use any "plugins" or something like that?
 
@MadaraUchiha I want to get the rowsCount of a statement
 
9:26 AM
@crypticツ If you issue a rgrep -i default_metadata_driver PROJECT_HOME do you get results?
 
@hek2mgl I'm setting up HWIOAuthBundle with FOSUserBundle
 
@JesperJacobsen Why not SELECT COUNT(*)?
 
@MadaraUchiha I have tried with rowCount(), exec() and query() None of those would work...
@MadaraUchiha I have that
 
@JesperJacobsen .. And?
 
9:28 AM
@MadaraUchiha I could not get it to work - I am most likely doing something wrong, but for me it didn't work
 
@JesperJacobsen E_DOESN'T_WORK isn't a valid PHP error.
 
@MadaraUchiha I know, I just get server error 500 ^^
 
@crypticツ It's related to FOSUserBundle
@crypticツ FOSUserBundle/DependencyInjection/Compiler/RegisterMappingsPass.php:84
 
@JesperJacobsen then enable proper error reporting
 
@crypticツ debug the code around this line
 
9:30 AM
@JesperJacobsen Check your error logs, and if you're on a development environment, edit php.ini so that error_reporting would actually report errors.
 
@MadaraUchiha Okay
 
or use ini_set if you're not able to access php.ini
 
@SweetieBelle ini_set wouldn't work in the case of syntax errors.
 
@MadaraUchiha Really? How do you set error reporting on a per file basis then?
 
@SweetieBelle You don't have syntax errors.
The reason, by the way, is that ini_set is activated on run-time, while syntax errors are compile time. Meaning, that the line actually never gets run.
 
9:40 AM
I have not worked with php.ini before.... so i am just gonna leave that.... But i have display errors on now...
Also how do i bind params to the ->query?
 
@Orangepill DAFUQ?! That shit is just WRONG!
 
@MadaraUchiha To see if i can simplify it - I want to get a rowcount of a statement, that statement includes variables that i usually set with ->execute, but as i can't that here I am not sure how to do it
 
@dragon112 I eat dragon meat every breakfast.
@JesperJacobsen Why can't you?
 
Morning
 
@MadaraUchiha because ->query() wants a string, but bindParam() wants an object
 
9:49 AM
@JesperJacobsen bindParam wants an object? Since when?
PDO or mysqli?
 
PDO
Fatal error: Call to a member function bindParam() on a non-object on line 31
 
@JesperJacobsen OMG!
 
@hek2mgl What? Am i a complete moron?
 
@JesperJacobsen yes :)
 
@JesperJacobsen On a non-object, PDOStatement::bindParam() is an object's method.
 
9:51 AM
@hek2mgl Hah, Well do i then fix that? :P
 
Review the examples here to see how it's correctly used.
 
@MadaraUchiha Yes but I am not looking for ->execute() I am looking for exec() or query()
 
@JesperJacobsen I guess that $stmt = $pdo_connection->prepare() failed. Check the return value before using $stmt.. A general advice: Always check return values of functions
 
@JesperJacobsen What's your correct code look like?
 
@MadaraUchiha Gimme a sec, I will try something :P I will send the code in about a minute ^^
@hek2mgl Thanks ^^
 
9:57 AM
@hek2mgl No, in PDO's case, PDO::ATTR_ERRMODE should be set to PDO::ERRMODE_EXCEPTION
@JesperJacobsen And what does that say? non-object?
 
@MadaraUchiha Fatal error: Call to a member function rowCount() on a non-object in /Applications/MAMP/htdocs/Test/validate.php on line 34
 
@MadaraUchiha Yes, I missed that for a moment.
 
@JesperJacobsen please read the documentation
 
@JesperJacobsen "Medarbejder" sounds funny if you are from Germany :) It's a little bit like my grandpa has spoken... you see the languages are related ... :)
 
especially pay attention to what each of those methods returns
 
9:59 AM
@tereško I have tried - I am not sure what I am doing wrong ^
@hek2mgl Hah from Denmark :P
 
@JesperJacobsen execute does not return a PDOStatement object. Please read the documentation again.
 
@MadaraUchiha I can try - But i am not so great with all the object, string etc... It's kinda hard to explain :P
 
then maybe you should have started with the basics: amazon.com/dp/0470413964
instead of copy-pasting code and expecting that you miraculously will start to understand it
 
@JesperJacobsen @tereško's advice is good. Buy a book. (or download one) and start from scratch
 
@tereško Well I don't just copy-paste, I actually do code it, but i just moved from SQL... and I having a bit of a rough time getting the rowCount from PDO :)
 
10:04 AM
@JesperJacobsen Try to learn how PDO operates first.
It's quite a bit different from how mysql_* used to do things.
 
Yes - but i do that by playing around with it, I just don't know how to assign values to :this before an query();
 
@JesperJacobsen Learning by playing around will let you only learn expected things. If you buy a book new horizones may open for you. At least you should read the complete PDO related manual
 
I am considering rewriting a framework but I want two option - MVC and without MVC. I don't want to force myself to use MVC structure.
Any such opensource framework does that?
 
@hek2mgl Okay, Well I actually have bought a couple on Kickstarter which is to be released soon :)
 
10:07 AM
Like maybe some project, I can use MVC, and maybe in other project I can use without MVC however I can use use libs such authenication, session, etc.
 
@tereško Yes and it is all static values eg. SELECT * FROM table
I just want a rowCount of $sql which includes variables to be assigned.... But i cannot figure out how to do that :P
 
@JesperJacobsen Use this pastebin.com/GWxP2XFA
@JesperJacobsen You should just have read the manual
 
@hek2mgl Yes - Thanks, and i really did spend a lot of time looking around for it :/
 
@JesperJacobsen I'm not sure what you have doing during this lot of time but I would had at first a look at this manual page: php.net/manual/de/pdostatement.execute.php .. You see that the method will return a boolean value. So you cannot expect that this boolean value has a method rowCount()
 
@hek2mgl Okay :)
@hek2mgl Well that code is not completely correct, as it returns 1 if just the userName is correct, and disregards the password
 
10:26 AM
cannot believe that my code is wrong. maybe there is a user with an empty password. however, you should use crypted passwords!
 
@hek2mgl I have :) and so far there is only 1 user, and there is a password :)
 
what do others say?
 
What do you mean?
username: JJ Password: test = 1
username: JJ pasword: 1234 = 1 etc..
 
@JesperJacobsen remove that COUNT(*) by *
@JesperJacobsen Please buy a book and start from scratch!
 
@hek2mgl I have :) DW
 
@hek2mgl Yeah got it :) thanks a lot :P
 
well the first one is better, isn't it? :P
 
the second one is more portable, as rowCount isn't supported by every PDO driver
 
Okay ^^thanks so much ^^
 
10:43 AM
hi guys what's up? :D
 
@JesperJacobsen the next step should be to use crypted passwords
 
@hek2mgl I already am :P
 
@JesperJacobsen OK
 
@hek2mgl Salted and then hashed :)
 
@JesperJacobsen Ok, that's good. I've currently applied for a job at a big IT company and they really wrote me an email that they could send my password in plain in case I forgot that. And yes, I've tested that, they really sent it in plain text.. %)
 
10:48 AM
@hek2mgl Hahah :P
I have to go now, but sincerely thanks for the help :)
 
@JesperJacobsen Ok, have a nice day
 
11:31 AM
Afternoon
 
A good watch? I've only ever been to one conference and it was for Cassandra. It largely revolved around every speaker reiterating what the previous speaker had just said.
 
12:23 PM
mornig
 
Morning @PeeHaa
 
Anonymous
morning
 
Anonymous
Its weird, I'm really, genuinely starting to hate php.
 
How come?
 
Anonymous
I used to be cool, when I used to create simple CRUD scripts, but since joining SO, I have been trying to keep up with learning new terms, extension about php. I'just too tired.
 
Anonymous
12:37 PM
It never ends, pdo, oop, mvc, phpunit, doctrine, symfony,....
 
I hear that.
Hardest part is knowing what you'll even use or not.
 
Anonymous
Just the terms mind you, its like reading new definitions each day, and God knows how long it would take to master them.
 
Anonymous
Its frustrating.
 
Yeah, pretty sure it's never-ending.
 
Anonymous
12:40 PM
I worked as marketing manager once in a big company, every day was the same routine. Nothing different, just awesome.
 
Best case scenario, you get/have a job that allows you the time to learn those things.
How long did you work there?
 
Anonymous
2 years and half. I was so good at it in a short time, I went to China and Holland to do some big deals with big clients
 
Anonymous
I regret leaving the job now
 
You didn't mind the repetitiveness?
Why did you leave?
 
Anonymous
12:44 PM
I wanted to set up my own company, things didn't work out, then I came to Swiss. But, I'm deffinately going there.
 
Anonymous
Good thing about php is that, now I can set up my own website, for my future company
 
My last job was very cushy too. I was the development manager (somehow) at a scammy dating company. I spent most of my day browsing reddit. Was getting £32k per year, which was amazing, especially as I started 2 years earlier as a junior on £21k. I left because:

A) I hated the product, we were scamming people out of money
B) I wasn't learning anywhere near enough. Every day was just CRUD.
I took a new job with AudioLock.net and a huge paycut to invest in my own learning and work on something reputable. Now on £25k p/a. I sometimes regret not earning as much but I think it's a long-term investment.
Whether that is rewarded at this company or in myself for another.
If your ambition is to have your own company then you made the right choice. Even if it was fun at the big company, you wouldn't have as much opportunity to achieve your ambitions.
 
Anonymous
Yea. Specially, since I know the business and have potential clients everywhere
 
Anonymous
I am sure, if someone has a passion for php, that person can learn more about it, even if you have ordinary job, not even a job related with web design
 
Anonymous
Anyway, its tough to learn and master php, for me specially. Because, I started about a year ago
 
12:50 PM
Besides if you want your own company it's best to know programming principles, but it's unlikely you'd do much programming. I am generalizing, but you always aim to hire better programmers than yourself.
 
Anonymous
Most devs have like 5+ years of experience. Before two years, I didn't even have a PC
 
Anonymous
I may be way over my head if I though, I can get a decent job as a dev
 
Portfolio?
 
Anonymous
hmmm?
 
I find a lot of recruitment agents put the time requirements on jobs. Asking for 2 years of OOP experience and such.
Portfolios are way more important than awards and experience IMO.
Saying that my portfolio is terrible.
 
Anonymous
Portofolio... hmm. I created a quick, nasty site (that wok well obviously) for charitable sites, but I cant say I have a portofolio :/
 
Showing portfolio is hard when you did a lot of backend work (private). You can't really show that on the portfolio. But you write about on the CV
 
Yeah. Github is a good option
Doesn't have to be mind blowing or ingenious. Just something to demonstrate what you're capable of.
 
Github is better yea
and I don't even have one :/
 

« first day (1037 days earlier)      last day (3911 days later) »