last day (15 days later) » 

6:39 PM
i agree with him that g would be proper if the date method was used, but quite simply this method treats both as the same. i don't see why it's an argument :p
perhaps out of standardizing what you expect in your mind? but idk it works either way
 
Totally agreed. h and g are exactly the same in this context.
But I don't understand why you're talking about date()?
 
He brought up the date method in a previous comment, it was deleted or something
Or no, he linked the documentation for date method
that's what it wqas
 
PHP does not have a separate manual page that lists the format characters. It is in the documentation for date(), which is why he linked to that.
 
oh right on.
i must have misunderstood that point then, i thought he was using the date method's documentation to argue that the DateTime's createFromFormat method expected a g to work properly
 
g, h, H and any other formatting character works the same everywhere (in all PHP date/time functions)
But I don't know why they chose to put in date()'s documentation, though.
 
6:44 PM
the issue was with OP's capitalized H in createFromFormat - he had a 1-digit date but used the 2-digit formatting character, so his object was coming back false
at least that's what I'm assuming, i saw someone else say something about a trailing space too
either way, thanks for clearing things up
 
H - 24 hours format
h - 12-hour format of an hour with leading zeros
g - 12-hour format of an hour without leading zeros
 
ya, that even. idk why i'm calling it 2-digit
 
The only difference between h and g is the difference in leading zeroes. It doesn't matter.
 
how long have you been on stackoverflow, you have so many points :o
 
a few months
actually, 298 days.
 
6:48 PM
that's still quite a lot in that time
you're good
 
no, i'm not :P
not that good anyway
But rep is pointless anyway, you can't get anything with it :D
396 days, 298 consecutive. :D Shows how addicted I am
 
yeah
it's like karma on reddit
but we compete here at my office
 
Cool. It's fun.
But I think my productivity went down after I joined SO :p
 
haha mine certainly has
i generally work and try to help when i get at points i need to think about my own problems
 
but i learn a lot when I research for questions
 
6:55 PM
it just sucks because every time i have a question, about 50% of the time I end up answering it for myself. most of the questions are either a) on google already or b) complex and something generally unique to a project
yeah, agreed
 
Interestingly, my answer here received a downvote.
Oh, it was removed.
 
oh what question?
 
The same
 
oh i thought you were a moderator or something and were just sorting out the feud between me and that other guy
didn't know you answered too
 
ROFL
Moderators have a diamond before their name.
 
7:00 PM
i just assume anyone with 30k+ karma probably has abilities i don't :p
 
@skrilled: This answer is by me: stackoverflow.com/a/23066390
 
TIL stackoverflow has chats though
 
Yeah, right. 30K users can do a lot more. They can review edits, cast close-votes, cast delete-votes, edit tag-wiki's etc.
 
if i wasn't productive already...
 
haha
@skrilled I upvoted your answer too, because it's also correct :)
 
7:03 PM
i upvoted yours earlier but im getting one of my coworkers to throw you some xtra karma
ugh this issue with symfony2 is going to kill me
 
i already hit the repcap for the day :P
in case you didn't know about it: you can only earn a maximum of 200 reputation from upvotes.
 
TIL there's a daily cap too
yeah no idea
i only answer about 2-3 questions in a day usually, then i go back to my stuff
 
i see
how do you check for new questions?
 
i click on "php" and go to newest usually
 
same here. I always have one php - Newest tag open on my browser
oh lol, i didn't think this answer would get 14 upvotes
14
A: Is it okay to report classmates cheating on exams?

Amal MuraliHonor is doing what’s right when no one is looking. If your institution's Honor Code requires you to report cheating, I'd suggest you report the action to your professor or a higher authority. This is good for multiple reasons: You can prevent the cheating student from gaining an unfair advanta...

i only joined there day before yesterday. i have so much free time! :D
 
7:09 PM
hahaha
if i could figure out this issue with symfony the rest of my day would be free
also good answer
 
what issue?
I haven't used Symfony before, but I could try to help
 
[Semantical Error] The annotation "@ORM\Table" in class MainBundle\Repository\EmailActionsRepository was never imported. Did you maybe forget to add a "use" statement for this annotation?
use Doctrine\ORM\Mapping as ORM;
and i use this class on plenty of stuff without the same issue
 
Where exactly do you get this error?
Oh you already added the ORM prefix
 
in notifications class it loads EmailActions repository
oh there we go
me saying that out loud made me realize it
the entity itself was using ORM but i wasn't loading the entity i was loading the repository
all done now
 
yay!
talking to me fixes problems :D
 
7:17 PM
hahahah
rubber duck method
Rubber duck debugging, rubber ducking, and the rubber duckie test are informal terms used in software engineering to refer to a method of debugging code. The name is a reference to a story in the book The Pragmatic Programmer in which a programmer would carry around a rubber duck and debug his code by forcing himself to explain it, line-by-line, to the duck. Many programmers have had the experience of explaining a programming problem to someone else, possibly even to someone who knows nothing about programming, and then hitting upon the solution in the process of explaining the problem. I...
read about it a few weeks ago, thought it was funny and i use this method more often than i'd like to admit
 
This one's interesting too (from SO founder):
 
there have been plenty of times i go to start asking a question and the physical act of asking the question answers it, so i never post
i get really sad when somebody is like $val = false; $if($val) echo "ok";
and then is like "why isn't this working?"
 
lol. they need to try HARDER!
 
like you can tell a lot of people don't even read their own code; i've seen a few homework assignments too
 
yeah, i know. it happens every day (every minute, even) on the PHP tag
Wait what. Who joined just now?
 
7:23 PM
hahaha, yeah there was one yesterday - the assignment was to "explain why the script had errors" and the guy clearly wrote out the professor's question... then follows it up with "it seems like these errors are on purpose or something? i'm not sure what i'm supposed to do"
 
roflmao
a few minutes ago, this was posted "how can i be a great hacker? i already spent a lot of money on hacking books but still I can't hack" lol
 
LOL
 
@skrilled How old are you, btw?
 
28
how about you?
 
7:28 PM
if i knew as much as i know now when I was your age...
:'(
 
seriously, I don't know much. I don't have any experience with frameworks or stuff
I only know some basic PHP. Not good with OOP
 
you know enough to get there though, and at the end of the day once you learn how OOP works you pretty much can learn anything
every framework i learned... i learned in the past 2 years
 
i'm not sure if I know OOP :P
 
i learned the cakephp framework before i figured out OOP
it helped me a lot... it forces you to use objects
but it's really easy
great first framework too
 
i was thinking to start with CI, but not sure if that's the best idea
 
7:30 PM
i like CI but i only use it for ajax-intensive applications/json-api-interface type stuff now
 
oh, and I don't know jQuery :/
 
i work for an adult company so all we make is porn mostly lol.... but i built a tube site and a dating site in cakephp
 
haha :D
 
we have a live streaming cam site built in symfony2, that's what i was working on :/
 
i see
i wish I had a mentor
 
7:33 PM
you and me both man :'( - most of what I've learned has sadly always been on my own
i keep getting jobs where i'm the best programmer in the room and yet
i'm not that great either
 
of course you are. you know a lot of stuff.
at least, a lot better than me anyway. i don't have much practical experience
 
but you got time on your side
as much as you know already you could easily get a well paying job
when i was 19 i was busing tables at a mexican buffet ;x
 
job where?
 
internet companies, you live in the US?
 
nah, India. :P
it's on my profile :D
 
7:35 PM
:'( there are more tech jobs than skilled people over here, i get bombarded with recruiters constantly
 
where do you live?
 
i wouldn't know the first thing about what it's like in any country but ours sadly :/
california, united states
 
i'm a student, so I can't do that yet
but I can do freelancing. I'm just lazy :/
 
haha i feel you and i'm the same way
i constantly want to do freelance but then I get off work and am lazy
 
most of my time is wasted spent on SE, reading books, Wikipedia, watching TV series and so on,
how did you learn OOP?
 
7:40 PM
just keep learning and one day you'll get paid to be on SE kinda like me right now :p
 
from just php.net, or some books?
 
i got a subscription to safari books online
 
Wait what? you're paid to get on SE? :O
 
it's like $20/month but you get access to like every book about anything IT-related
i'm at work right now haha
 
7:40 PM
so yeah I'm paid to be here so to speak, my boss knows I use the site and give back on occasion
so they don't mind at all
 
cool
 
you've helped my day fly by just chatting
 
which book(s) did you use?
sorry about that. :P
 
but i didn't buy any books, that safari service is just monthly
about the cost of 1 book = 2-3 months of membership
 
oh, that's cool
 
7:43 PM
one thing you'll realize in IT job-wise, at least in my opinion, down the road
is that it's not what you know
it's how fast you can learn what you don't know
we made a mobile version of our cam site using backboneJS and Silex, two things i'd never touched in my life. silex is a php framework based on symfony
i learned both in about 2 weeks, spent countless hours reading and practicing
made work let me stay home and read in bed some days
but yeah at the end of the day we did it, project completed, took things nobody knew and made it happen in under a couple months
 
nice.
 
when they hired me i had never set up a load balancer or a firewall before, or racked servers even :/
i read an article the other week that India has more people with college degrees than our country has total people
 
that's true
haha
 
scary
what time is it there?
 
1:23 AM
afternoon there?
 
7:54 PM
ya almost 1pm
 
@skrilled: There's also a PHP chat room if you're interested: chat.stackoverflow.com/rooms/11/php
 

last day (15 days later) »