« first day (574 days earlier)      last day (4389 days later) » 
00:00 - 17:0017:00 - 00:00

user895378
github being wonky for anyone else?
 
worksforme
 
user895378
grr
 
"looking for senior web developer with 1 year experience minimum"
 
5:14 PM
lol
 
Bosnia™
 
@webarto "I think he meant veteran developer"
 
only reasonable explanation hehe
I am agree
 
5:18 PM
New GitHub does not allow to look repo watchers.
I must add /watchers :(
 
user895378
Does anyone else find it exhausting to try to teach OOP? It seems to me that it's something you have to learn on your own with the aid of books and lots of experience. Case in point, there's so much background you'd have to cover just to answer this question
 
@rdlowrey you have to use a lot of hand suggestions hehe
using few classes is not OOP, someone should tell him...
 
I've a got a serious job offer this morning, better conditions and more money than my current one (probably I need to work harder), but regardless of that, I like my current company... any advices or previous experiences...
 
@webarto It never hurts to ask for a talk. And be honest upfront about the fact that you are not sure whether you want to make a switch.
Scratch that last part btw. Just get a talk and make a decision afterwards :)
 
user895378
5:25 PM
@webarto You should ask @tereško, he's The Most Advicer
 
user895378
22 hours ago, by gosto
the most advicer i knew here in chat its you @tereško
 
@james There is a difference between just asking or @-poking everbody who moved in the last minutes. A.k.a. Can you help me cleaning the kitchen?
 
i might need to change my nickname
 
user895378
too many unnecessary pings?
 
haha I am agree with you and I am asking the most advicer, too... @RepWhoringPeeHaa to redefine, we've talked, and they've put an offer on sie table, and they seem legit, I've googled them :P thanks
 
i was in the middle of breaking nuts an reading a book
 
I was peeling kiwi, and cut myself twice
 
@webarto You can also tell your current company that you want more money.
 
@webarto Which will you be happier at? Personally, happyness is more important than money (to most extent)
@webarto that would have killed me
 
user895378
5:30 PM
hemophilia FTW
 
not in the least. I have no problem with blood
I'm severely allergic to kiwi...
 
user895378
or kiwikiphobia (made that up)
 
user895378
the fear of wikipedia pages with kiwi jpegs
 
@hakre these guys offered 1.5x times as much, I can ask for 10%, they gave me that when I got offer from Facebook, which everyone got, hehe...
@ircmaxell the current one is less stressful, for sure, because I'm underpaid, they are not asking me to "kill" myself, you're right... better work 2 years semi-happy than 1 unhappy...
 
5:33 PM
ask them for more money, be straight and honest with them
 
it's like 2k at the moment, probably waitress (no disrespect) salary in USA :)
will ask for more, because you get what you negotiate, no fixed salaries...
 
yeah, just level.
 
:) what are average salaries for PHP developers (certified if does mean anything), in USA for example.
@Chorche NO
 
@webarto depends on a lot of factors. Can be anywhere from $40,000 to $250,000 per year.
 
I know, it sure does, I would be happy to level with USA minimum, 40k is very nice. Thanks @ircmaxell
 
user895378
5:44 PM
I've had it with the available php documentation generators. About to roll my own (w/ Reflection). Has anyone done this before?
 
@rdlowrey have you tried doxygen?
 
user895378
@ircmaxell no, that's the only one left I haven't.
 
;-)
and I've had good luck with PHP-UML in pear
@webarto cost of living factors into that
 
@rdlowrey You mean get_declared_* and reflection on results?
 
user895378
5:47 PM
@ircmaxell can I extend either of those with custom @attributes etc?
 
@rdlowrey don't remember, it's been a while
 
user895378
@Donut I mean parsing docblocks to generate API documentation
 
@rdlowrey I have, tried.
 
I don't believe in that sort of API docs
 
user895378
5:49 PM
I don't either, generally: The code should be the definitive documentation
 
user895378
Maybe I shouldn't worry about it for that reason. It's more of a "look ma, HTML docs!" sillyness.
 
user895378
Although, I find myself doing Anti-DRY with documentation for the prose bits. I think I just need to write something simple to pull the markdown text from file and class level docblocks to generate HTML instead of having multiple concurrent copies of documentation.
 
user895378
Unrelated: does the SO API allow you to aggregate things like total # of questions in a date range with upvote and downvote totals? I have a sudden itch to aggregate this type of information to determine what days and time ranges have higher/lower question/answer quality.
 
user895378
5:53 PM
Run some linear regressions and what not.
 
user895378
Quantify question quality by
 
user895378
Would be interesting ... to me anyway.
 
hi , i have dates in database exemple >(2012-04-01) and (2012-04-35) and (2012-02-01) how can i select those dates who have the month 04.?
 
user895378
@gosto Assuming MySQL, MONTH()
 
user895378
Or, if the same year is relevant just use BETWEEN
 
5:58 PM
how can i select then using subst ?
 
user895378
?
 
@rdlowrey if not dates , if they were normal strings . (gggg-jhmm) and (yyyy-jhbb) how to select those who have same (jh)
 
user895378
These are basic MySQL operations. I suggest you actually learn SQL if you're going to use it. Don't try to skate by with what you're trying to do by asking someone else for the few things you need SQL for. Read some tutorials. Try for yourself. Consult the documentation.
 
Sam
those are all the mysql functions you'll need for date-related issues; gobble it up
 
i tried subst but i couldnt make it to work
SUBST
 
user895378
6:03 PM
Then post a question on the main site with the code you tried. If you write a coherent question that hasn't been answered 50 times previously you'll get good help.
 
user895378
There are myriad tutorials on the internet to assist you.
 
@Sam (WHERE menucompare = (SELECT SUBSTR(menucompare,12,4))) is it true this sam
 
Sam
I don't know what you need, but whatever you need that's time/date related, that link I sent you contains all the functions you'll need; take time to go through them, understand them, and apply them to your work as needed
 
i was just on that page
will this give one year ago?
UNIX_TIMESTAMP()-(365 * 24 * 60 * 60)
 
Sam
use this instead
that's the date_add/date_sub functions
 
6:13 PM
ok, looking at it , thanks
 
@tree No
 
6:26 PM
DATE_SUB(NOW(),INTERVAL 1 YEAR) does not work on my db as the fields im comparing are in unix timestamp
 
Are you storing them as ints?
Or as timestamps?
 
it's int
 
Let me put that another way. What is the column type for the column you store the timestamp data in when you do a DESCRIBE TABLE?
It's int?
 
yes int
 
Then it's your own damn fault for using the wrong datatype.
If you're storing time information, then you should use a temporal data type. A database isn't just a box you toss bits into, the type of the column describes what it means.
 
6:29 PM
i hate db, there are not interesting
 
That's a great attitude to have if you're learning to be a web developer :)
 
im not learning
 
Sam
you should not store date/time as integers; you'll be creating nightmares for future programmers who'll manage the code
use datetime
 
Then you're beyond my ability to help you.
 
Sam
oh.....and never try to store month, yr, and day in 3 different columns......that's kinda a programming felony..:D
 
6:33 PM
what has world come to , when to get a crap-ware free version of a free (but discontinued) applications , you have to look in torrents
 
I'm all for trying to help out newbies, but newbies that aren't interested in learning what they need to learn are just a waste of effort. Have you considered taking up basket weaving?
 
Sam
hey....don't diss basket weaving.......it's a stress-reliever......:P
 
No insult against basket weavers intended. :)
 
announcement : please dont use mysql_* functions
 
Sam
why not? :)
 
6:38 PM
so you dont know??
 
Sam
maybe I don't......mind telling me why it shouldn't be used? :)
 
@Sam look at the right (starred messages)
 
they are or will be deprecated
so using PDO is imposible to sql inject?
 
Sam
I understand (and do not use mysql); I'm just trying to verify if @tree understands the reason they shouldn't be used.......
 
@Sam do you code in C ?
 
Sam
6:42 PM
no
 
Too tanned for SQL
 
user895378
@tree If you use prepared statements, proper charset and turn off prepared statement emulation you can feel very good about your protection from SQL injection.
 
user895378
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);
$pdo->query("SET CHARACTER SET utf8");
 
cool ,thanks.
 
user895378
Too tanned for Saturday tech-support when the Internet is full of tutorials
 
6:47 PM
lol
@rdlowrey Does PDO not guarantee you're using the charset you specified in the constructor?
 
user895378
@GordonM The constructor is actually the better place to do it. It's my understanding that making an explicit SET CHARACTER SET query after you've connected is the same thing. It just carries the possibility that you could forget to do it or run a dangerous query before doing so.
 
Also, isn't it SET NAMES? Or did I miss something? I probably missed something :P
 
Evening guys.
 
user895378
@GordonM Interesting. I had thought SET NAMES and SET CHARACTER SET were essentially equivalent but the MySQL manual says the following:
 
user895378
A SET CHARACTER SET x statement is equivalent to these three statements:

SET character_set_client = x;
SET character_set_results = x;
SET collation_connection = @@collation_database;
 
user895378
6:54 PM
A SET NAMES 'x' statement is equivalent to these three statements:

SET character_set_client = x;
SET character_set_results = x;
SET character_set_connection = x;
 
hmm
I suspect that might lead to a world of hurt at some point
 
nice stuff
 
user895378
Further it says: Setting character_set_connection to x also implicitly sets collation_connection
 
and free!
 
user895378
So it appears the the preferred method is, in fact, SET NAMES as it will implicitly perform the third operation that the SET CHARACTER SET would execute.
 
6:57 PM
That would suggest that SET NAMES is safer than SET CHARACTER SET because it causes more stuff to be set.
 
user895378
<--- Just got smarter
 
Hmmm. Added html block ( that has buttons ) with jQuery, but when I try to click a button in added block, then there is no reaction. Expected, that jQuery would do something as it is told by starting some event.
 
user895378
I'm no longer too tanned for SET NAMES
 
@rdlowrey Level up!
 
user895378
Defense Upgrade! ++ Injection Shield - Level 42!
 
6:59 PM
@Eugene looks like a jquery problem
 
A comment on php.net suggests the following as constructor arguments for PDO that also switches the charset. Looks reasonable to me. $db = new PDO('mysql:host=myhost;dbname=mydb', 'login', 'password', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''));
 
utf without byte order mark
 
user895378
@GordonM Noted and bookmarked.
 
@rdlowrey , actually in 5.3.6+ the charset is part of DSN
 
Also want to do the EMULATE_PREPARES thing as well is connecting to mysql.
 
user895378
7:08 PM
So it is.
 
There's a bigass warning about it in the PHP manual.
Prior to PHP 5.3.6, this element was silently ignored. The same behaviour can be partly replicated with the PDO::MYSQL_ATTR_INIT_COMMAND driver option, as the following example shows.
Silent ignore for epic fail!
Though using the other method isn't problem free either according to the same warning
The method in the below example can only be used with character sets that share the same lower 7 bit representation as ASCII, such as ISO-8859-1 and UTF-8. Users using character sets that have different representations (such as UTF-16 or Big5) must use the charset option provided in PHP 5.3.6 and later versions.
So if you're using < PHP 5.3.6 with a UTF16 database you're screwed.
Of course if everyone just did what I suggested and used 3 different versions of EBCDIC in the same database, there'd be no problem!
 
user895378
Given PHP's known limitations with handling internationalization I wonder how many people were attempting UTF-16 apps in PHP < 5.3.6 :)
 
True
 
user895378
Doesn't excuse it, of course.
 
Nope
Wow. Just started thinking about internationalization and localization in Reefknot. Had a couple of validator props that were really country specific, so I moved them to a different namespace. It took all of 10 seconds to adapt my use case demo to work again after doing that (add the new namespace to the Use clause and change the new to address the additional namespace). Namespaces FTW
 
user895378
7:18 PM
loose coupling FTW
 
Indeed
I'm so freaking glad the EU ruled against this kind of nonsense and declared APIs as not copyrightable. programmers.stackexchange.com/a/148362/28718
 
user895378
@GordonM Yeah ... a fractal of stupidity.
 
Judge hasn't made a final ruling yet so maybe there's still hope. Seemed to be asking sensible questions like "If you wrote a function that returned the cosine of a number, could you copyright it?"
 
0
Q: select data who have same letters

gostoim having trouble with this sql ? $sql = mysql_query("SELECT $menucompare , (COUNT($menucompare ) * 100 / (SELECT COUNT( $menucompare ) FROM data WHERE $ww = $button )) AS percentday FROM data WHERE $ww >0 "); $menucompare : is table fields names what ever field is selected and contains...

 
user895378
Yeah, I keep thinking Google has enough $$$ to work it out. That's the good thing about America ... If you throw enough $$$ at a problem it usually goes away.
 
7:27 PM
Kinda leaves the little guys screwed though if Google buys their way out of it but the statute ends up saying that APIs can be copyrighted.
 
user895378
yeah ...
 
user895378
OMG I'M GETTING LCD BURN-IN ON MY EYES. Been at the computer way too much this week.
 
anyone can tell me waht this timestamp equals 1305314872
 
user895378
no, but date('Y-m-d H:i:s', $timestamp); can
 
I'm sure I could tell you if I cared.
 
7:29 PM
@GordonM too tanned to care
 
But as you can't be bothered to make any effort, neither can I.
 
Hey guys
0
Q: How do I pass GMT timezones to PHP DateTime object?

TruthThe PHP DateTime object (and more specifically, the DateTimeZone object), supports many time zones. That is all nice and well, but is there a way to pass in a GMT offset as a time zone? I know it's possible to simply add or subtract hours and apply some math, but I was wondering whether there wa...

In case anyone's interested.
 
Not really looked at DateTime in any great detail I'm afraid.
 
hold it... @Truth he asks for something without jQuery explicitly, we might want to keep that :p
 
7:42 PM
@sg3s hehe
 
8:01 PM
@Truth Apart from interest, is there some substance with your question?
 
@hakre Mostly interest, But I was thinking on making a time fiddling tool
It's often that I need to see the time in different places, and sometimes all I get is the GMT+N time
 
@Truth If you have the offset + the base datetime you can search for matching timezones.
 
How so?
 
By iterating the timezones.
pecl.php.net/package/timezonedb - untar and see the timezonedb.h file.
I'm too tanned for my shorts ;)
 
user895378
I'm not. I stayed inside on the computer all afternoon and didn't get to the beach :/
 
8:08 PM
oh
 
nice tan from LCD
 
user895378
yeah, +1 for LCD tan :)
 
:) I still have my winter avatar
 
user895378
@hakre & @webarto Either of you guys on twitter? I just decided to start using it (I know). Trying to find people to follow.
 
user895378
8:11 PM
Squeezed twitter handles out of a few people yesterday ...
 
@rdlowrey No, my twitter was away: twitter.com/#!/hakre
But you can cross publish via facebook and follow me there.
 
user895378
Too tanned for FB ... :)
 
you can never be too tanned for FB :D
I'm curious how dumb chicks react when you say you are brogrammer... wuts dat?
 
Yeah mega tanned for FB.
 
user895378
Nah, I usually tell dumb chicks I'm a lottery winner.
 
8:14 PM
FB is the home of the tann you can say.
 
Hi, is there anyway to be able to post again after i get this message saying that StackOverflow is no longer accepting questions from my account?
 
/ban Kurty
 
?
 
user895378
92
Q: What can I do when getting "Sorry, we are no longer accepting questions/answers from this account"?

ArjanWhile trying to ask a question, one could get: Oops! Your question couldn't be submitted because: Sorry, we are no longer accepting questions from this account. See http://goo.gl/C1Kwu to learn more. Likewise, for answers: Oops! Your answer couldn't be submitted because: ...

 
rdlowery is short for "real dump lottery winnery"
 
8:16 PM
@tree nope. Needed to use live call.
 
thanks rdlowrey!
 
user895378
@Kurty I'm so good at google.
 
@hakre a winrar is you
 
lol maybe thats one of the reasons y i can't post on stackoverflow anymore -.-
 
You can't post because you are an idiot.
 
8:19 PM
There should be a StackOverflow for kids/teens who program
StackOverflow Youth :D
 
There is an upcommong site called NoobOverflow.com
 
user895378
Seriously?
 
No just joking,
 
aw...
 
user895378
lol I should've known better
 
8:22 PM
but you could grab the domain
 
Hey guys
 
user895378
because if it were legit it would be n00b0verl0w.com
 
Is there any sublime text like color scheme for, Netbeans?
 
user895378
@Chris Nah it'd just be a bunch of dudes with chicks for avatar pics
 
you mean l33t4ce.com
 
8:23 PM
@rdlowrey Or that
 
but i think StackOverflow Youth would be a great idea! simple, educational, and fun for youth
 
@Kurty What would be the topic for the QA? Youth seems overly broad
 
are you insinuating that we are old, or youth === noobs
 
both
 
youth = uneducated programmers who want to learn
like me
lol
 
8:31 PM
:)
 
StackOverflow Youth could be like StackOverflow but much simpler. I guess you could be limited to the amount of questions asked, you get strikes and warnings that could lead to some sort of penalty or like a temporary ban. different reward system., ect..
 
can anyone send me a php programming project?
i want to increase my php experience
 
user895378
Youth !== Not good at programming
 
or if your given a website il work on it free
 
@rdlowrey Not not good?
 
user895378
8:33 PM
Youth "does not equal" Not good at programming
 
!== : is not
== maybe is
=== totally is
 
@Chris do you have any php projects?
 
yes
 
user895378
I understand what the operator means. I'm objecting to the assumption that just because someone is young they're necessarily a poor programmer.
 
every php guy has
 
8:34 PM
@Chris can you send me one
 
@rdlowrey I know. I'm just messing with ya
@SoroushAtarod Make your own projects.
 
user895378
/me ignore button
 
@Chris i want something new
 
@Chris not like a normal website such as real estate or car show room
 
8:36 PM
@SoroushAtarod dafuuuuq
 
@Chris why ?
 
user895378
@GordonM "I am actually working on a Wordpress admin panel" ... of course he is
 
help me?
 
user895378
@Chris (ignore)
 
user895378
it's very helpful
 
8:37 PM
@rdlowrey Oh, right.
 
@rdlowrey Wordpress, eval(), already asked a similar question, spaghetti code that makes no sense without picking it apart forensically, AND a low accept rate! I think we have a royal flush!
 
user895378
lol
 
Well maybe the spaghetti code comment is a bit harsh... but that would ruin the joke.
 
user895378
no, WP by definition is spaghetti code. No way around it.
 
user895378
allright, time to watch last sunday's game of thrones episode. catch you guys later.
 
8:40 PM
Have fun!
 
 
2 hours later…
How do I know when a non-blocking FTP file download has finished?
My PHP script is running as a server...it's not supposed to stop, so I can kind of monitor things...
On the other hand, the rest of the FTP system blocks the whole server while it finishes (since the server is just one thread).
Maybe I should abstract my streamwrappers (FTP, DB, GD, FS...) to somehow offload operations to a secondary thread?
 
I have no idea how to comment this question anymore.
I'm out of words.
Tryed to make it better, but I think it is going nowhere.
 
Well, if you feel particularly adventurous... you could try my question above :)
 
@Christian :)
 
10:33 PM
On the bright side, asynchronous operations are not particularly bad for websocket servers.
 
David Sylvian is awesome. Pure music.
 
11:03 PM
Anyone good with JavaScript regular expressions?
 
Hmmm no,
Hey @Sam
 
Sam
hola @Nick; quite a time
 
@Sam yeah how's it going?
 
Sam
good....
how's the day going?
what do you need, @Eugene?
 
@Sam nothing already.
 
Sam
11:14 PM
ok....I know a little JS...:)
 
Hey everyone
 
Sam
hi Mittchel
 
CLojure is 1 bad language lol
How can I add a block of code in a stackoverflow question lol
nevermind
 
11:58 PM
hiu
 
00:00 - 17:0017:00 - 00:00

« first day (574 days earlier)      last day (4389 days later) »