« first day (862 days earlier)      last day (4086 days later) » 

12:09 PM
@Nitin not really, im more interested on the GPIO side right now. I'm looking at building a home automation system. I was wondering if I could recycle my psp memory stick pro duo cards as a substitute for the RPi's memory card
 
damn query doing nothing and also there is no error in code
 
@NullPointer Then the query is empty? :)
 
12:31 PM
Monrings
 
Morning @DaveRandom
 
Not a big fan of sunday
 
@Jack i am doing something like
@DaveRandom morning
 
@NullPointer Can you echo out the query string?
 
@DaveRandom working now just forget one field
thank you
 
12:37 PM
 
@DaveRandom Never gets old :)
 
There definitely needs to be a rubberduck.SE, a staging area for SO where your question has to sit for 15 mins before it gets posted to the main site
 
dudessss
i'm on mysql db
do you now how to select all field where datetime = today date ?
SELECT * FROM (table) WHERE insert_datetime = NOW()
is this correct?
 
@donotusetabtodigitthisnick dev.mysql.com/doc/refman/5.5/en/…
Is it really a DATETIME type?
 
yep 0000-00-00 00:00:00
so WHERE insert_datetime = CURDATE()
should work !?
 
12:44 PM
OK and you want anything that matches "today", rather than the exact time with seconds?
 
sure, right!
no matter time just needed to match day and month and year
 
Right well you need WHERE DATE(insert_datetime) = CURDATE(), which makes it quite a bit less efficient
Ideally you could do with just storing the data in a DATE type
 
oh understood
i'm testing out thx
 
Is the time actually pertinent to your application anywhere?
 
12:46 PM
Right, just use a DATE column then
Then you can just do WHERE insert_datetime = CURDATE()
 
right ok
thank yu man
 
0
Q: Is this the safest way to handle a form PHP

Curtis CreweI was just wondering if this is the safest and best way to handle a form submission, i am trying to find the most "safest" and presented for my coding views, PHP <?php if(isset($_POST['submit'])) { //Handle the form here with many $_POST['namehere'] } ?> HTML <form action="<?php...

Asks whether something is the safest ... uses unsafe PHP_SELF
 
@Jack I think that the behaviour of empty action="" attributes is technically undefined, even though every reasonable browser does treat it as a self reference. Really the advice should be "submit the form to a known and absolute URI" I think.
 
@DaveRandom I believe it's defined actually ... but I would have to find the right document :)
 
> action %URI; #REQUIRED -- server-side form handler --
> User agent behavior for a value other than an HTTP URI is undefined.
Oh wait
> In other words, an empty URI reference within a document is interpreted as a reference to the start of that document, and a reference containing only a fragment identifier is a reference to the identified fragment of that document.
 
Ah, that's it I guess
@Jack that article you linked, it's incorrect. You can't do that with a properly configured php installation with POST. — markus 8 mins ago
 
I still do like the idea of a self reference for a form submission 99% of the time anyway, certainly not a POST method
 
1:11 PM
I wonder whether PHP is properly configured by default.
 
*don't like
ffs I make that typo a lot
@markus Care to elaborate on "properly configured"? — DaveRandom 25 secs ago
I have no idea what configuration he is referring to there
 
OP accepted the answer that discusses CSRF ... like .. gahhh.
That's it. I'm voting to close as NC.
 
@Jack Actually I prefer to use a URL fragment and JS to fill the form fields for that if I'm being RESTful, but again it's a fair point
 
URL fragment to fill form fields? like /path/to/page#field1=123&field2=456 ?
 
Yes, not subject to URI length and not sending the data back to the server in the GET
 
1:24 PM
That's actually quite interesting :)
Thanks!
 
I mean obviously you could just use a query string but I personally prefer the fragment approach because of those two reasons, also it doesn't really matter if the user disables JS because it doesn't kill functionality, it just means they don't get form filled out again
 
Yeah, of course ... it's nice because you can still do PRG without having to abuse sessions.
In fact, sessions might be harder ... I can imagine a situation whereby the same user has two pages open at the same time.
 
user895378
@DaveRandom Lazy question: is the FIN bit set on websocket control frames (close/ping/pong)?
 
user895378
Feel free to tell me to RTFR (read the ... RFC) if you don't know right off the top of your head.
 
@rdlowrey Could be theoretically on a close but probably not, I mean the FIN bit indicates the end of the stream so it would only make sense on a close
Ow wait
you mean the websocket FIN bit
well yes
 
user895378
1:35 PM
Yes :)
 
I was thinking TCP
Yes the spec says somewhere that control frames cannot have continuations
 
Anonymous
there any difference b/n referencing array keys with $foo[1] or $foo['1'] ?? They both work, but I don't know which one is chuck norris
 
@PHPNooB Use an int, not a string
 
Anonymous
done
 
> All control frames MUST have a payload length of 125 bytes or less and MUST NOT be fragmented.
 
user895378
1:40 PM
Winner.
 
user895378
I was trying to decide if a frame that arrived with a control opcode but didn't have that bit set should be treated as an error.
 
@PHPNooB codepad.org/xgGNw3kZ - you can see that both methods of accessing the values work, and that even if the array is associative then any key that looks like an int is stored as an int
So use ints if possible because there will be one less type conversion to do
 
That reminds me of the issue of super large integers in strings messing stuff up.
 
user895378
Yes, I think you're definitely handling it correctly there.
 
1:50 PM
Hmm, was there a time whereby you could inspect another user's reputation board to see if they downvoted an answer? :)
 
Hi!
Does anyone here use Xdebug?
 
@Jack I don't think so
 
Anonymous
yea, never thought about the conversion part.
 
Preferably on Unix machine
 
@PHPNooB It's a micro-optimisation, I wouldn't worry about it too much
 
1:53 PM
@DaveRandom Pity :)
 
Anonymous
@Jack yes
 
@Eugene A more pertinent question would be "does anyone here not use Xdebug"
 
@PHPNooB Yes what?
 
@DaveRandom why? For example as I know most developers are so pro., that they think they don't any debuger at all.
 
can anyone help me with mod rewrite?
http://pastebin.com/J33s3aej

I want to redirect everything to index.php?l=$ but not the links already added in htaccess. I added flag [L] but it doesn't work. what am i doing wrong?
 
1:54 PM
@Eugene :-P
So to you, "Pro" means "Full of youself"? :-P
 
@DaveRandom full of ...
 
Although as we all know, I never make mistakes
/hides
 
@DaveRandom so I assume you use Xdebug
 
It's been known, certainly
 
Do you use it on Windows machine?
 
Anonymous
1:57 PM
@DaveRandom No one says no micro-optimization when you page is going to be visited by 56 kbps
 
@UchihaObito Add RewriteCond %{REQUEST_FILENAME} !-f before the last rule
@Eugene Usually yes
@Eugene What's your actual question/problem (see room description :-P)
 
@DaveRandom thank you, it worked. !
 
@PHPNooB Actually that's irrelevant, the bottleneck is bandwidth, not server processing time, which is what you are optimising there
 
@DaveRandom I'm well aware about this room :)
 
@DaveRandom I share that sentiment, I compile all my code in my head first; it's flawless!
 
2:02 PM
@DaveRandom but you spend time in JS too! that means you must really love me
 
@Eugene I suggest you use this to find the right xdebug install instructions, there are many variables involved in what you need to do for a specific system (I also suggest you remove the version you have just installed before you do it
@rlemon How could anyone not?
 
i know right
 
Honestly, sometimes it's a real struggle to get up in the morning just knowing that I have to spend another day not being you.
 
somedays it is a struggle getting up knowing that there is only one of me
I'm working on cloning myself
 
@rlemon Using Object.create() or the new operator?
 
2:06 PM
And sending yourself to little kids in packages?
 
I've always thought of you as being quite classy
Right, I really must go get on with some RL things
Man, I hate RL
catch y'all later
 
sya
 
yea irl sucks
@Eugene I must say, you have so far had the best side-face moustache
 
I know. Loving it.
 
it's still off, but the rest of the side face gravatars are like WAY off or it puts it at an insane angle
 
2:25 PM
75
A: Why is this program erroneously rejected by three C++ compilers?

JerryThis program is valid -- I can find no errors. My guess is you have a virus on your machine. It would be best if you reformat your drive, and reinstall the operating system. Let us know how that works out, or if you need help with the reinstall. I hate viruses.

@DaveRandom remind me what's the limit on API calls?
 
3:02 PM
Hello I had an idea on mind, would like some feedback from everybody. What do you think of PDF generation cloud service that allows you to design your PDF in browser, and lets you merge data through API?
 
3:13 PM
@rdlowrey are you proud of me now?
 
user895378
Would be more proud if I didn't see "Ephedra Free" on your stimulant bottle :)
 
user895378
Is ephedra illegal in the EU as well? That stuff is the only reason I made it through university back in the day before they outlawed it here.
 
user895378
It was awesome.
 
@rdlowrey It's from 'merica, I'll try to get ephedra moar supplement :) Legal? Pffft. :)
 
user895378
Yeah, just don't take it too late in the day or you'll never be able to sleep :)
 
3:17 PM
@Nitin I noticed it in the generated source. I highly doubt there's any entities in the DB
 
user895378
@webarto lol I may or may not have returned from Mexico with about four bottles of the stuff.
 
@rdlowrey :) Shit about to go down. Lost 10lbs of fat in 10 days, about 20lbs more and I'll be good, then, chicken filet om nom nom. Any diet recommendations?
 
@webarto 4.54kg not bad
 
@NullPointer More or less :P
 
@webarto how much is your total weight ?
 
3:23 PM
@NullPointer was 115kg, 110kg now.
 
@webarto after hard work in jim i just loose 8kg in a month .. what are you doing to lose weight ?
 
@webarto may i ask about height ?
 
@NullPointer That is just fat (in my case), when I come down to 100kg, then it will be hard. (It's exponential)
 
user895378
@webarto My entire diet is based on this book ... it's relatively easy to find in ebook format on the interwebs.
 
3:24 PM
@NullPointer 193mm
@rdlowrey Thank you very much.
 
@webarto mm? or cm ?
 
@NullPointer LOL, cm. Steroids are messing with my brain :P
 
@webarto whoa fet is bad ... once(just before 1.5 year) i was 75kg with 182mm .. with 17inch biceps now i am 90kg may be 95 ... with 16inch biceps ... and its bad
 
Hello everybody
 
why did i even open /r/PHP
 
3:29 PM
@webarto can you do chin up and dips ?
@tereško habit ? :P:P
 
i think i was somewhat bored
 
I'll drop right in. I wanted to know how to upload data and files using jquery, found this thread stackoverflow.com/questions/10899384/… which answered it (haven't tried it yet but positive it works) and this thread stackoverflow.com/questions/4545081/… which says it can't be done, but it's wrong. I need someone with more points linking the later to the first post.
First one is '12, later '10.
 
Is doing drugs wrong ?
 
php question are bore ... all question are suited for cv ....
@Mhjr which drugs ?
 
meth
I have tested positive for the warrior gene
 
3:31 PM
depends if you think a healthy body is important
if it's not important for you drugs isn't wrong.
 
ok
 
But hey I'm Dutch so the rest of the world is a right-winged republican to me. I might not be the right one to ask.
 
well i take some time aspirin when i feel pain (more than usual )
 
you know i can do an amazon like website for 200$ in one week
did you know that ?
 
@Mhjr what is mean by "i can you do amazon ?"
 
3:33 PM
lol
it means a person can do the amazonian tribal human adult females
 
never tried
 
oh god, I'm in the wrong side of ze internets again :D
 
@Ocramius you mean you are in freelancer.com ?
please elaborate
 
@NullPointer Yeah, I'm just trying to get back to 92kg and 6 pack. Was like that 3-4 years ago. Sitting kills.
 
I am 182.55cm and wigh 233lbs
 
3:37 PM
feet can not compute.
 
go work at Google, free massages, free sportschool, you can even sleep while working in a sleeping pod
they also have inhouse docters for fat people with heartconditions.
 
well .. /r/PHP just loves me
 
that's almost 39lbs/feet
Which basically means:
 
that's basic math
 
Lovely.
@tereško That's your home :P
 
3:39 PM
@tereško is redid good ? it always annoying
 
I have zero motivation to learn
less than zero maybe
 
Morning all
 
but rofl
@PeeHaa morning ...:)
 
3:45 PM
lol@NullPointer
 
4:22 PM
@PeeHaa morning
 
MOnring Mr Marjanovic
 
^ punctuation taking a day off too
 
4:37 PM
I think the weekend ate parts of his keyboard. Specifically the keys with punctuation
 
@PeeHaa cv.webarto.com make sure you fulfill your duty, click on Load and then Submit :P
 
@webarto it shows error on question on which i voted cv but not closed
 
Some #fail though
 
@NullPointer Yup, (parallel) request has been fired in 3s interval, gotta solve that.
 
4:45 PM
4
Q: Should we focus the moderator flag queue?

Madara UchihaBasically, after reading through (again) the Theory of Moderation post, it got me thinking. A lot of flags that reach moderators (as well as 10k users, but not enough users actually do something about it). Let's have some data: Do all these flags belong? Now, a good (great) deal of those ca...

Interested in hearing your opinion guys
 
@MadaraUchiha +1 nice diagram
 
@NullPointer Thanks :D
 
@MadaraUchiha nothing for 10K user ?
 
@NullPointer What do you mean?
 
4:49 PM
you mean close question flag should move to 3k review queue ... and not answer flag will be move for 20k users
 
Don't like it purely because of the fact the community only has a limited number of votes
Not if this would mean we would get more votes to accommodate this I havr to think about it agan
 
@MadaraUchiha in review queue there is always like >45k question so its i think not much helpful
 
@NullPointer I countered that by proposing that those questions would be at the top of the queue by default
(I called that "giving it a boost")
@PeeHaa The community has plenty of total votes to deal with all of those flags, daily.
The community deals with much much more than that every day.
 
@MadaraUchiha In the weekend I run out of (cv/delv)votes every day
 
4:53 PM
Sometimes the same during the week
Not to mention when doing tag cleanups
 
@NullPointer not an answer, purely because converting to a comment is considered "more powerful" than delete privilege.
@NullPointer there are also considerably less not an answer flags daily than "close this".
 
@MadaraUchiha depends ... but i think that is really good in most of switchwation
this is probably comment
 
Wrote a blog post about the "Roadblock Architecture" Antipattern: http://bit.ly/15H24Qm
and good evening
 

« first day (862 days earlier)      last day (4086 days later) »