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

Tek
12:09 AM
How can I make DateTime() to allow zeros in dates?
 
 
2 hours later…
2:01 AM
Word
 
user895378
phpdocumentor2's lack of documentation makes me want to punch a baby.
 
lol
 
user895378
 
I'm happy, I've got an inline markdown parser running. So I embed markdown into my HTML, and it's formatted at render time
            <div class="markdown title">
                Don't Be STUPID
                ===============
                Grasp SOLID
                ===========

                ##### And Other Principles of
                ##### Object Oriented Design
            </div>
 
user895378
Might you be open-sourcing that for others? Or is that the third-party lib you linked to before?
 
user895378
2:07 AM
I've started using markdown for everything, even word processing
 
it's a simple wrapper around the library
    $('.markdown').each(function() {
        var html = converter.makeHtml(normalize($(this).text())).replace(/>\s+</g, "><");
        $(this).html(html).removeClass('markdown');
    });
function normalize(str) {
    var arr = str.replace("\r", "").split("\n");
    var minChars = str.length;
    var re1 = /^\s*/;
    var re2 = /^\s*$/;
    for (var i = 0; i < arr.length; i++) {
        if (arr[i] == '' || re2.test(arr[i])) {
            arr[i] = '';
        } else {
            arr[i] = arr[i].replace("\t", "    ");
            minChars=Math.min(re1.exec(arr[i])[0].length, minChars);
        }
    }
    var re3 = new RegExp('^\\\s{' + minChars + '}');
    for (i = 0; i < arr.length; i++) {
 
user895378
/me bookmarks that
 
I'm going to release the code for this slide deck on github (the entire thing) once I do the talk (prob a few hours beforehand)
 
user895378
Is that webcast live or will it be on later?
 
it's live
and recorded
I've got 9 slides done
 
user895378
2:20 AM
9 of ?
 
Prob 40 or 50
it's going to be 90 to 120 minutes
 
user895378
Sometime if you get a chance it'd be awesome if you'd look over my newly pushed logging framework and share any feedback (or not). Low priority, of course. You know how it is when you've just put something out there: you want people to check it out ...
 
Sure...
nice
 
user895378
I do a lot of automated remote data retrieval and parsing and I need to know ASAP if things are fishy. Powerful, flexible logging is a big part of my daily operations but there wasn't anything out there in PHP land that didn't force me to use static or singletons, so I had to spend some time and roll my own.
 
user895378
I've still got to add rotating file handlers (file-size and time based) as well as an http handler for logging to a web server or rest api, but it's mostly ready to go at this point.
 
2:33 AM
nice
 
2:46 AM
Up to 37 slides (only 9 are done)
 
user895378
How did the values get into the array? Why not check them with a simple equality as they're shifted onto the array and obviate the need for any ex post facto checking (and thereby, this question). — rdlowrey 58 secs ago
 
3:30 AM
Anyone here know PHPUnit well? I need some advise here: github.com/nb/wordpress-tests/issues/16#issuecomment-5664826
 
3:50 AM
Question asked: Help me clean my code. Question they should have asked: Why shouldn't I store passwords in cookies?
 
anyone here worked with dynamic sql queries?
as in conditionally constructing the query
not WHERE and LIKE clauses, but constructing the string prior to running query
 
4:30 AM
What webhost do you guys use?
 
5:25 AM
my nephew knows php
 
6:05 AM
@kayue The fact that everything is built under wordpress, which is badly built in the back end, makes unit testing hard
 
user895378
WordPress ===
 
user895378
I'm still angling for a badge if anyone wants to help get me to -3 on this answer:
 
user895378
-1
A: Any way to know if user has touchscreen?

rdlowreyIs there any way to use the search box at top-right? Detecting touch screen devices with Javascript What's the best way to detect a 'touch screen' device using JavaScript?

 
0
Q: Allow users to nominate their own question for reopening after being closed

TruthI've seen many cases where a user asks a vague question, and within 3 minutes, the question is already closed, without giving the OP much of a margin to correct his mistake. Then what would he do? Open it again, with the correction he made, and in case the correction isn't good enough, that new q...

@rdlowrey Gave you one
 
user895378
6:16 AM
woot! thanks
 
user895378
One more downvote please :)
 
@Truth @rdlowrey hi
 
user895378
I need to rep-whore up to 10k so I can cast delete votes
 
user895378
hello
 
6:19 AM
can anyone help me
i am new to the codeigniter
@Truth @rdlowrey
 
@857628 Please read the room topic.
 
i am unable to dispaly the data from database using codeigniter @Truth
 
user895378
If only you had enough rep to downvote answers I could help. Unfortunately you don't. Sorry.
 
user895378
But seriously I don't know the first thing about CI.
 
@rdlowrey ok
 
6:26 AM
@rdlowrey You have -4 now. Delete it before someone flags it and it will be deleted for you.
 
user895378
@Truth winner! thanks for your help :)
 
woah, people are back
what webhosts does everyone use?
 
@Walkerneo I use Zymic for free projects and test environments
 
user895378
I've used mediatemple for a couple of years. I haven't ever had any issues. Seems to work well enough. I know my way around a linux box, though.
 
They have a great uptime and their support is often more useful than paid support.
 
6:35 AM
@Truth, now that I'm using paid hosting, I can't really go back :(
 
7:10 AM
@rdlowrey , you mean "continuous integration" , right ?
morning people
 
user895378
@tereško where I find the continuous_integration.php file in the code igniter install? please help. urgent.
 
=/
still looping that eulogy song
 
user895378
nice
 
user895378
stupid stack overflow questions are making me a bitter person
 
user895378
On the bright side, I finally earned my peer pressure badge.
 
7:13 AM
 
user895378
Yeah, just what I need in my life: more mind-numbing stupidity.
 
user895378
I mean this in the least offensive way possible ... but ... do only the worst programmers from India use Stack Overflow?
 
user895378
(honest question)
 
user895378
7:33 AM
An "IoC" container that uses static + singletons. Nice.
 
user895378
"IoC means that you'll rarely ever need to bootstrap any external libraries." ... ohhh THAT'S what it means (source)
 
hipsters
 
8:00 AM
sad , but nothing special
 
torrent 98.9%, no seeds, fml
 
happens
did you try finding the same thing on rapidshare ?
it helps to me , when i am hunting down albums from obscure bands
 
unfortunately, uploaders avoid rapidshare now for some reason :\
thanks for reminding me, hehe
 
8:19 AM
i find it a nice backup solution .. and if you need something especially strange and rare, you can find it on DC++
oh my . i managed to spell "especially" on the first try .. i might be even learning here
 
8:58 AM
Good morning.
 
a happy new day!
 
Indeed!
 
can anyone help me with HTML5 audio player visualization?
 
@Chorche i guess there is an app on git repository like that you ae talking about
 
mhm?
 
9:07 AM
@Chorche ??mhm??
 
can you please tell me more :D
 
@Chorche are you aware of backbone.js
 
do i have to pay for it?
 
i don't think so.. try yourself.. you'll know more.. i just saw it anyway
 
it costs 20$
 
ha
wtf..
 
??
 
i cant load gmail.com :D It says there is an security error
 
you must be on a public hot sopt
 
nope
i'm home, and it worked before
 
9:27 AM
you've got that downloaded... right??
 
yes
hmm, there is no audio visualization in the example
i need an audio visualization, umm sound waves or whatever it's called
 
sorry then
are you aware of backbone.js
 
is it actualy called audio visualization?
 
well i don't know anything about that.. just saw the description so gave you the link
 
oh
 
9:33 AM
now tell me if you can help me with backbone.js
 
no, i see it first time :S
 
11:11 AM
hi
 
@gosto Hello
 
@Donut ok thx
 
I would like to but I think I won't be able to.
 
How to export data to PDF file
 
what mean this error (Operand should contain 1 column(s))
 
@857628 Ask Google.
 
ok thx
 
@Donut i didn't get the clearly
 
11:47 AM
What don't you get clearly?
 
means how to proced
 
what best site to learn mysql ?
 
12:10 PM
@gosto dev.mysql.com ?
the manual is usually a good place to start :)
 
this is just articles
no tutorials
and exemples
 
Can anyone recommend a good book about unit testing?
 
@gosto Manual + Experience = Happy face.
6
 
Hell yeah
 
12:21 PM
@Truth I found this one useful, but heavy going.
 
I hate the new notification thing on github after you updates a dev branch
updated*
Your recently pushed branches:
Pull Request

Compare
dev (less than a minute ago)
that thing
 
12:58 PM
Good Morning
 
just had a really good chat with an old buddy about the really interesting similarities between OOP and functional paradigms, and how the cause of most of the pain in either is due to a leaky abstraction...
 
SIGH
I hate non-deterministic browsers
I'm trying to do a sliding model, where I stack divs to the right of each other, and change the margin of the wrapper to slide the proper frame into view
some page loads the divs stack properly, others stack vertically (leading to a jump in the animation)
I wish I knew why
 
1:20 PM
@ircmaxell code?
 
<body>
    <div class="window">
        <div class="slider">
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
</body>
div.slider div {
    background-image: url("../images/blackboard-backgrounds-wallpapers.jpg");
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    color: #ffffff;
    overflow: hidden;
    float: left;
}

div.window {
    overflow: hidden;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

div.slider {
    position: absolute;
    width: auto;
    display: inline;
    white-space: nowrap;
}
and in JS I force the div.slider div and div.slider to have the same dimensions
 
morning
 
gday all
I reckon I have the best answer to this question, but according to the votes I don't. Am I deluding myself?
4
Q: Error logging, in a smooth way

JohnI've been reading on in particular 'error logging' And I have come up with the function 'error_log' which seem to be a good tool to use to handle the error logging. But how is the smoothest and best way to use it? If I have a try { //try a database connection... } catch (PDOException $e)...

 
@Paul +1
 
1:37 PM
I wonder if people just liked the logging package that was mentioned and upvoted it for that. Yay, singleton repository logger +1.
 
@Paul Let's see, a 250 bounty has just been placed ;)
 
@hakre oh wow, thanks, there is room still for a better answer than mine too.
 
jsfiddle.net/ZHaf6 <-- that's the code (basics). Sometimes it stacks horizontally like that, sometimes not...
just a page load away
jsfiddle.net/ZHaf6/2 for a better illustration
 
is it possible to make this kind of request?
$q0=mysql_query("select rooms_reservation_Night, rooms_reservation_RoomName from rooms_reservation where rooms_reservation_RoomName='".$room."' and ".date("m",." rooms_reservation_Night ".)."='".$month."' and
".date("Y", ." rooms_reservation_Night ".)."='".$year."' ");
 
1:44 PM
@ircmaxell why do you need two event handlers?
Or is it a simplified example
 
I'll put a bit more effort in on my answer. The idea of spreading error logging throughout the code seems like a bad practice to me. Especially with a singleton logger. I guess in a week the votes will be in and I'll hopefully be happier with the decision.
 
@ircmaxell is there a video somewhere about your recent talk? Link pls :-)
 
"Facebook is down for required maintenance right now, but you should be able to get back on within a few hours." - lol?
 
@RepWhoringPeeHaa how would I do it with one?
@RepWhoringPeeHaa It's in 1.5 weeks
 
1:48 PM
time travel is not an option it seems
 
and yes, it is a very simplified example
var slideshow = function(slides) {
    var currentPage = 1,
        self = this,
        pages = slides.length;
    $('body').click(function(e) {
        e.preventDefault();
        self.next();
    });
    $.extend(this, {
        goToPage: function(page) {
            if (page < 1 || page > pages) return;
            var offset = -1 * $('div.slider div').width() * (page - 1);
            $('div.slider').animate({left: offset}, 1000);
            currentPage = page;
            window.location.hash = currentPage;
 
@ircmaxell ah k
 
@RepWhoringPeeHaa I could do that, but in the live presentation, there are no previous and next buttons. Just a body click handler, and a keypress binding to left and right arrows
 
@ircmaxell kk
 
but it's still sometimes stacks vertically
I don't know why
 
1:54 PM
@ircmaxell What do you mean. It doesn't do that here. Can you post a screenshot so I can look into it?
 
The test code isn't doing it
 
:P
So what you are saying is it is hard to reproduce?
 
which is what's driving me nuts.
 
that sucks
 
yeah, and it's non-deterministic
if I reload the page, about 30% of the time it works, and 60% it doesn't
 
@ircmaxell It isn't some weird caching problem?
 
posted on May 12, 2012 by Lukas Smith

So this topic has been going back and forth in my head a lot over the last months: how do we best handle query parameters in Symfony2? Obviously you can already access query parameters today already but it could be easier. Essentially what I want is a way for developers to easily configure what query parameters they expect and what values they expect. This is useful for several things like easi

 
2:14 PM
@RepWhoringPeeHaa it's local
 
whats all
Hey i got a question
 
solved in a back-ass way: $('div.slider').css({'width': width * pages});
 
@ircmaxell still it is strange
 
very
 
I have a form and one of the inputs is called choice_name[] and when its submitted it becomes $_POST["choice_name"] now the problem is that If choice_name[] is empty and I do an if($_POST["choice_name"] it returns True how can I check and make if False so It don't run the error checking on that input?
 
2:19 PM
<div class="slider" style="left: 0px; width: 45584px; "> <-- :-D
 
anyone?
 
@orourkek that js post you made last night. can you please read my comments and correct your solution. it is incorrect :S
 
:-D, just swiched off of jquery animations in favor of CSS3 transitions. So much faster
and smoother
 
the only problem with CSS3 is it's not supported in all the browsers as of yet and IE it's non existant
stupid ash IE should be just trashed
give it up microshaft! IT'S SUCKS!
so would I use empty() on my $var["choice_name"] ?
 
2:28 PM
hi, guys. completely stack in my project. anyone flexible to join me in java chat room(j2me actually)
 
@Manvaril I couldn't care less about IE
 
@RepWhoringPeeHaa IDK what that is suppost to do for me, doesn't even relate to my problem
 
@RepWhoringPeeHaa
 
@Manvaril did I mention you anywhere?
 
@RepWhoringPeeHaa IDK did you?
 
2:31 PM
@ircmaxell I always thought zerkms knew what he was talking about :(
@Manvaril nope :-)
 
@RepWhoringPeeHaa he usually does. Not in that case
 
@RepWhoringPeeHaa you know those little @ signs work pretty good, seems you know how to use them but didn't
I like pie, anyone else like pie?
 
@tnx for the love @ircmaxell
 
:-D
 
3:34 PM
In case you're working with Phing and have some pearls or whole deployment scripts you'd like to share with other devs, you could submit pull requests here, I'm trying to start a copy/paste Phing script collection github.com/markushausammann/Phing-Blueprints
 
posted on May 12, 2012 by Mayflower Blog - PHP

[This blog post is also available in German.]   Yesterday, it was the news of the day: Magento CE 1.7 was forked on GitHub by some community people. After the spectacular departure of Yoav Kutner, then-CTO at Magento (TechCrunch reported), it was just a matter of time until Magento was forked. Indeed, as Vinai Kopp pointed out on twitter, there have been some forks of Magento already

 
3:49 PM
@RepWhoringPeeHaa Hmm. Even if one had the answer, would he/she share it?
 
Hey Guys :)
how you all doin'
@hakre can you help me please?
or @markus
you?
How can i create a dynamic Drop down menu while i am getting values from data base
 
Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will.
 
ops ok :/
 
@james do you have a specific question about the topic?
 
i just asked
How can i create a dynamic Drop down menu while i am getting values from data base
How can i create a dynamic Drop down menu while i am getting values from data base?
 
4:00 PM
That's as specific as asking how the earth works :P
:)
 
how can you even say that i was not specific ... he explained everything twice
 
<?php
$sql = "SELECT u_name FROM $tb1_name";
echo "<select>";
while($rows=mysql_fetch_array($sql))
{
echo "<option value='$rows['u_name']'></option>";
}
echo "</select>";
?>
 
yesterday, by tereško
Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
damn beat me
Second thing @james you should concatenate the string you are echoing with the array
 
he actually wont understand what you are telling him
 
4:05 PM
yeah exactly :p
 
that code looks copy-pasted together
 
what?!
 
@james , it means that you do not have even the basic knowledge of the language
 
you can say that
 
4:07 PM
if you want people to write code for you , hire a developer
 
i wrote this piece of code by mysellf
just needed help...
 
@james Ever heard of SQL injection?
 
I remember the injections of my childhood. they were really scary
:p
yeah i have heard
@donu
 
Okay.
 
can't anyone help me with the code???
 
4:10 PM
@james I believe I just gave you a link
5 mins ago, by RepWhoringPeeHaa
http://php.net/manual/en/language.operators.string.php
 
<?php
$sql = "SELECT u_name FROM $tb1_name";
echo "<select>";
while($rows=mysql_fetch_array($sql))
{
echo "<option value=.'$rows[u_name]'>$rows[u_name]</option>";
}
echo "</select>";
?>
 
@RepWhoringPeeHaa But he needs answer, not tips!
 
@james Well, besides using an outdated, deprecated MySQL extension you aren't ever actually calling the query. I suggest you learn more about the language at www.php.net
 
21 hours ago, by gosto
i thought i can find answer here quickly , but its the opposite , only advices
 
@james please no msql_* functions
(let's get into the bandwagon)
 
4:14 PM
@james Wanna some advices?
I think he is no more here.
 
i am here for advice's :)
@tree then wot's an alternative???
 
14 mins ago, by tereško
yesterday, by tereško
Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
1 min ago, by RepWhoringPeeHaa
14 mins ago, by tereško
yesterday, by tereško
Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
yesterday, by tereško
Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
@tree Just paste the perma link for message
 
4:20 PM
@Donut hehe
 
Also, I think PHP.net's search box is rather small.
 
@james mysqli_* is easier
 
ok
 
@james it can look just like mysql_*
@Donut indeed
 
<?php
$sql = "SELECT u_name FROM $tb1_name";
$sq = mysql_query($sql);
$html = "<select>";
while($rows=mysqli_fetch_array($sq))
{
$html += "<option value=.'$rows[u_name]'>$rows[u_name]</option>";
}
$html+= "</select>";

echo $html;
?>
i have tried this
 
4:27 PM
@james don't use mysql_* functions!
 
<?php
$sql = "SELECT u_name FROM $tb1_name";
$sq = mysqli_query($sql);
$html = "<select>";
while($rows=mysqli_fetch_array($sq))
{
$html += "<option value=.'$rows[u_name]'>$rows[u_name]</option>";
}
$html+= "</select>";

echo $html;
?>
now happy??
 
@james not really
 
stop acting like nazis
 
@james What is the error you're getting?
@tree There's still plenty of problems with that code like SQL injection and XSS
 
i cant see any drop down list and values there?
@CharlesSprayberry
 
4:30 PM
@tree Nobody is acting like a nazi. If you can't handle criticism about your shitty code then don't ask for advice
 
@james Care to look into page sauce?
 
@james Well, you're using the wrong operator for string concatenation
 
@james how do you concatenate strings in PHP?
 
using period operator
 
@james Then why are you using +=?
 
4:32 PM
@CharlesSprayberry He's migrating from Java I think.
 
yesterday, by tereško
Please stop writing new code with the ancient mysql_* functions. They are no longer maintained and community has begun the deprecation process . Instead you should learn about prepared statements and use either PDO or MySQLi. If you cannot decide, this article will help to choose. If you care to learn, here is a quite good PDO-related tutorial.
 
@james Just replace all + with .
 
@Donut @CharlesSprayberry @markustharkun Thanks all it worked.
 
4:49 PM
hello nolife fellows
 
00:00 - 17:0017:00 - 00:00

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