« first day (928 days earlier)      last day (4005 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
I should delete my answer.
 
hello all
 
@Bracketworks When you answer CV-able questions, make them CW, that way you don't get any rep to lose
 
anybody there who can help me with Doctrine
?
 
@DaveRandom Whether the question gets closed or not, I should delete my answer; but now that I think about it, it's a moot point because the damage is done, lol.
I just cv'd. Whatever.
 
user1642018
hi all,
 
4:15 PM
Quick AJAX question guys if anyone knows off the top of their heads - does AJAX have issues with returning data if any of it begins with a whitespace?
 
And AJAX is what exactly?
 
@webarto Asynchronous JavaScript and JSON
 
@igorw AJAJ :D
A2J
 
AJAX totally should be AJAJ
A2J2 - the new R2D2
 
I call it AC. Asynchronous Communication....
Hi all btw.
 
4:31 PM
I call it unreliable.
 
lol
The essence and challenge of internet is the same: unreliability.
 
Oh lawd
2
Q: Login keeps getting hacked

Pete NaylorI have the below login script which I believe is secure. However, someone keeps getting access to the administration section of the site and changing content. if(isset($_POST['submit'])) { $error = false; $user_login = stripslashes(strip_tags(htmlentities($_POST['user_login']))); $pass_login = s...

The essence and challenge of SO: how many times can you in an hour?
 
Hey all!
@Ihsan Yo! How are you doing?
 
hey errone
 
@Appu Fine and you?
 
4:38 PM
got a (hopefully) quick question about multiple upload inputs in a form
 
errone??
 
everyone. err'one.
 
@Ihsan I am good. Thanks.
OMG! Is it really a short cut? It gives other meaning too.
 
it was. not anymore :p. not sure what other meaning there is.
 
@Bracketworks lol
 
4:40 PM
Lol.. You too pinged a short cut first.
 
I think I can get the logic of handling stuff, but I'm having trouble right in getting the multiple inputs to show up in $_FILES. the last one selected is the only thing showing up. I've been reading through a few posts on here and elsewhere and can't see what I'm doing wrong—it seems to be one of those uber simple things that I'll facepalm about in a few minutes
 
inexact is the other meaning. That is why you might not need to use short cuts.
 
@JohnBlythe Search deep in SO. I remember the exact situation in a question. A bunch of files selected only lasst one pops up.
 
@appu like "lol"?
@ihsan mm, will continue to hunt then. thanks for that.
 
@JohnBlythe Wellcome
 
4:46 PM
@JohnBlythe I take it you already checked for duplicate name attributes in your html
 
sure did
twice now, ha
 
shot in the dark, but what about your max_file_uploads in your php.ini
 
correct me if i'm wrong , but one of project manager's responsibilities is to shield the developers from client and manage the workload so that developer do not start to see japanese work stabbing as a good alternative ?
 
@JohnBlythe Might be. I don't think it's really shortcut. :P
 
instead of promising deadline base on first guestimates of devs and then drive said developers up the tree to protect own ass
 
4:51 PM
@appu it wasn't for sake of shortcutting spelling it out, but for slang effect like "wutup", "erbody", "up in hur"
@moranjk will check into it
 
A preposterous shortcut that I have ever come across is this and that too he was asking me just today.
 
@JohnBlythe one example is an iteration problem here stackoverflow.com/questions/14920579/…
 
@appu lol, that's certainly not a legitimate shortcut. could be legitimate misspelling for sake of comedic value when time is right
 
@JohnBlythe SO search : [php] multiple file upload last ( have a look )
Have a nice time all, I have to go... bye.
 
user1642018
i have a query. regarding splitting the spent amount in 2 accounts in the mysql.
 
4:58 PM
@JohnBlythe No it wasn't for sake of hilarious. Actually he didn't know the real meaning of it and you will know if you check our conversation.
 
user1642018
i am doing like this ., but whenever script runs again, it updates the record, everytime.
 
user1642018
$spent=1;
$due1=0;//this comes from database

$spent1= ($spent+$due1)/2;
$spent= (int)($spent1);

$last_item=explode('.',$spent1);
if(isset($last_item[1]) && $last_item[1]== '5'){
$due2='1';
}else{$due2='0';}

echo $spent.':'.$due2;

//value of due2 gets updated in the databse at the place of due1
 
user1642018
so if i run this script twice the due1 value gets updated and then added in the next loop, giving wrong result
 
@NikiC @ircmaxell is stackoverflow.com/questions/16322157/… actually considered a bug or expected behavior?
 
user895378
5:25 PM
<--- just successfully used my php webserver to proxy requests to a backend apache instance running mod_php and return 3,500 responses per second on crap hardware. Epic woot!
 
 HAI
 CAN HAS STDIO?
 PLZ OPEN FILE "LOLCATS.TXT"?
     AWSUM THX
         VISIBLE FILE
     O NOES
         INVISIBLE "ERRROR!"
 KTHXBYE
7
just discovered LOLCODE.
 
@hakre Is pretty entertaining right :)
 
@rdlowrey me wants to beta-test this already ;)
 
user895378
@hakre I need to polish up the reverse proxy functionality but after that I'm going to enlist your help. Expect to be recruited at the first of next week.
 
user895378
5:35 PM
I know I've been saying that for months but I mean it this time :)
 
morning
cough
 
@rdlowrey sounds great! I will now fix all open bugs in other projects so I can concentrate on that one :)
@Ocramius a very fine good morning sir :)
 
Oh, there's still light outside, so I might not have overslept too much >.<
 
@Ocramius not still. again. at least now we know why you haven't been here all week.
 
@Ocramius In April, in Iceland, its still light outside at 3am...I know this because I just got back from there. Amazing place...
 
5:41 PM
@Pheagey awesome :O
 
@Ocramius The English language lacks the scope to adequately describe just how unbelievable that place is. Unfortunately it is one of the colder settled places and snows; means I will not live there :/.
 
@Pheagey can that be compensated by fiber connection? Or is it unavailable? :P
 
6:12 PM
@NullPointer Thanks! Fixed conf, that should be on laserinterceptor.li :) Thanks for reminding me I should fix homepage :P
 
6:46 PM
@Ocramius I know the capital has pretty fast interwebz. But when you face freezes walking from your car to the store, in April; I'm not sure it compensates enough.
 
7:25 PM
Monring @Ocramius
 
anyone know if it's bad practice to include javascript as echo'd strings?
 
@TheSnooker it is a bad practice usually
@TheSnooker consider instead exposing those vars from a small json/jsonp script
 
@Gordon: Now I found out about the missing delete links: meta.stackoverflow.com/a/177675/147909
 
7:42 PM
norming
 
@Ocramius I'm writting a widget system for a homegrown CMS and for certain things it makes more sense to me to include short snipets of JS in the Ajax response's .. things that only happen inside the widget.. things like button clicks or special none global functions.
 
@TheSnooker you just mentioned two things that are just a no-go nowadays
"button clicks" -> onClick? Seriously?
global functions -> also meh
 
@Ocramius I was over simplifying
 
Find a better example :)
 
@Ocramius a more practical example would be running a loop to find data on new elements that were just added to the DOM via AJAX and then do something with that data.. but these elements may not be in the DOM all the time.. only if that "object/widget" is loaded.
so I don't want to add the logic to the main JS backbone
only want to inject it in those special cases where it's needed
is that bad?
 
7:50 PM
Have a question i have a web site with a lot of sql requests and had many online users as the no of quires is more mysql crashes how can i overcome this problem , Most quires are insert , update and unique selects so have limitation on using cache
 
@Aneesv Lots of ways, Index the tables, use more effcient queries, give mysql more access to more memory, use the mySQLi or PDO libraries and multi-query methods.
 
@Gordon Totally expected behavior, the user's specified format asked very expressly for a four digit year and only a four digit year. Posted an answer.
 
@Aneesv have you tried running EXPLAIN on your queries?
 
@TheSnooker maybe acceptable for simpler things, yes
 
no
 
7:54 PM
now that I think of it, my extjs bootstrapper is echoed JS in the template
 
you guys are really bad at JS
 
@Ocramius I go a little cross eye'd when I echo JS which is just an AJAX back to the same PHP script that just echo'd the JS :D
 
@TheSnooker
Can you please tell me more on it or may be any links which helps
 
try running your queries from the console with EXPLAIN keyword. It will show you how the query breaks down and where it might be slowing down.
http://dev.mysql.com/doc/refman/5.0/en/explain.html
Also this helps improve performance as well but use it with care because too much memory can actually slow down your query speed.
http://stackoverflow.com/questions/1178736/mysql-maximum-memory-usage
 
for me now due to over load on mysql mysql_connect is returning false most time for about 60% of quires
And top command shows mysql uses more cpu (100-500+%) (memory seems to be ok 1-3%)
 
8:00 PM
@Aneesv how many concurrent connections do you allow?
 
Will be having about 1000+ online users each of them with 5-10 quires
 
@Aneesv you can increase the connection limit that may help.. becauseif mysql_connect() is returning false.. that means it can't get a resource ID.. which normally means either wrong password/user.. or number of connections is hit.
you can try increasing connection limit.
 
How can increase connection limit
?
Sorry
 
@Aneesv I should say that I'm not a DBA so these are all guesses.. I would do any testing on a non-production server..
 
ok you know command to view no of current connections
 
8:04 PM
Welcome to this week's Did You Know #JavaScript? hoisting: when var declarations are moved to the top of a function scope. let: lexical block scoping from ES6. and last but not least, the with statement! making DSLs a breeze!
 
@igorw Brendan Eich is going to kill you in your sleep.
 
@Aneesv I don't know the command off the top of my head. I know there is a command line query you can do to see the current connections.
 
I got one
 
@Charles I ain't scared
 
@Aneesv Just tested it out SHOW PROCESSLIST; seems to work
gives me back a list of active connections
However.. if you're doing this from a website... then that site is probably using the same user..
I think what you're looking for is Queries per second.
 
8:13 PM
yes
 
hmm
 
m59
I'm trying to work out the flow of a content manager... let's say I'm on a page to edit an article. It needs to have something like ?page=article&id=15&action=edit right?
I'm going to ask it all in case anyone wants to help :)
 
@TheSnooker The problem was less max_user_connections it was set to 25 , had fix that for now
Thanks for info
 
m59
I have been taking the url params and getting the article content from the database to display
when I actually save the edit, that is handled from js. That being, js needs certain information from the params (like the id and the action).
 
@Aneesv no problem... glad I could help
 
m59
8:24 PM
I am thinking of letting js parse the url for params and ajax even for the initial content of the page. Any thoughts on all of this?
 
You could have a dedicated controller to handle all ajax requests, and then parse it properly in PHP?
 
m59
not sure what that means lol. I'm a noob. Can you give me a little detail so I can get the idea?
 
8:50 PM
hey everyone,
 
m59
@TheSnooker do you have any thoughts on my predicament?
Hi, John
 
i came in here earlier to poke around after looking around SO for a while. Kept looking after a brief discussion w/ two people. Still no luck 4 hours later. Super frustrated to be stuck where I'm at. Appreciate anyone who would check this post out: stackoverflow.com/questions/16326266/…
summary: only the last input for uploading files is showing up in $_FILES. can't find any rhyme or reason for it.
 
m59
Man, I have no idea :(
 
sadpanda.jpg
 
@JohnBlythe it's because the 2nd one rewrites the first, you need name="files[]"
 
8:56 PM
i thought that was only when you want them to be in the same array within $_FILES
so $_FILES[0], $_FILES[1], etc.
 
not sure what you're doing, you have a comment asking for your html there
 
@JohnBlythe when you ask a question on SO, also provide your code and the data of your findings (e.g. print_r output).
 
normally i do, but there isn't anything wrong with what's produced, just what's missing from it
about to update
 
@JohnBlythe No $_FILES is a special array in PHP. php.net/_files
@JohnBlythe the code of the form is missing ... :)
 
@Charles we could argue about that. the Manual says "Returns new DateTime object formatted according to the specified format." and Y is "A full numeric representation of a year, 4 digits" and that could very well mean 0080. After all, the method is called createFromFormat and the formatted output of Y 80 is 0080 and not 80 only.
 
9:05 PM
@Gordon Oh, you meant the zeros. Yeah. Dunno about that. I guess it kinda makes sense in the literal sprintf with a %04d way...
 
@Charles the OP's whole problem is that he expect the format to be enforced
 
@Gordon Ehhh. On one hand, I might agree with that expectation, but then we have to remember that this is PHP.
 
9:27 PM
@tereško You suck
 
naah .. it's my life that sucks ATM
 
@ircmaxell lol, butterfly labs sent out a mail right now for the shipping of their stuff - cloudfare is reporting their site is down xD
 
@JohnBlythe you might want to look into your ajax file uploader
 
@Ocramius same here, just tried
 
9:42 PM
looks like I opened some kind of can:
-21
Q: Is this pattern "Lazy" Moderator Attitude?

hakreSure it is not, right. But why are so many of these flags accepted as helpful? (Or why are so few declined?) So I run about this: I get for some of the flags I raise on VLQ questions declined (but only for a very little fraction of the VLQs in this same-nature question I flag, to the largest ext...

Even though this caught quite some attention, I still yet do not really know if flagging questions VLQ is actually wanted or not by moderators.
 
Hello everyone
 
hi!
 
wow why the downvote :O
 
@HamZaDzCyberDeV I was told the original wording was "borderline insulting" or something similar.
 
Sigh. ..
 
9:48 PM
Also it seems that many users found it insulting that I VLQ'ed downvoted, unanswered, closed questions.
 
Same problem here, I'm flagging for low quality posts and it is almost always declined with the following argument:
declined - flags should not be used to indicate technical inaccuracies, or an altogether wrong answer
 
@moran
@moranjk boom. nailed it. only grabs one. thanks!
 
@HamZaDzCyberDeV I do not have that problem. Most of the VLQs I did were helpful.
I just wondered about the very little that were declined because they were actually like the other "helpful" ones.
Not actual about them alone but compared to the general flagging acceptance for the same kind of questions (and flag reason).
 
lazy is a clear factor
 
Ah ok ...
Well, give me your opinion on this answer:
http://stackoverflow.com/a/15405259/
Should I flag it or not ?
ps: i did as low quality
 
9:57 PM
it's vlq, but an answer..
'borderline' vlq as it has a shred of on-topic info
 
ok, what is VLQ ?
Vote Low Quality ?
 
yeah, acronym
 
Ah it's Very Low Quality xD
 
exactly, looks more like a comment shaped like an answer ^ your flagged one
 
yup
@kaᵠ I participated in an online CTF competition (catch the flag hacking competition). There was a challenge to bypass a simple captcha (image) within 2seconds. So basically I had to download the image, flip it/manipulate it and read it.
The read part can be done with OCR, since I don't know how to achieve that I downloaded a .exe and it did the job.
Do you know a good article to implement OCR in a program ? Do you think that PHP may be too slow for this ?
 
10:10 PM
i worked with ocr from php, used exec and tesseract and a few others iirc
 
hahaha exactly. I used tesseract :p
 
cool :)
images are memory hogs, not sure if it's wise to manipulate them in php
 
Hmmm yeah, just though of re-inventing the wheel, but that would take some time to achieve ...
 
reinvent! it's a great learning experience, you'd get the limitations and other stuff
@HamZaDzCyberDeV link? prize?
 
Hmmm well, someone just couldn't bypass it and heard that I may succeed. So contacted me and I helped him out. Further I helped them on hacking a website (legal), I've found a LFI exploit and they further exploited it with some SQLinjection, htaccesss bypasss ...
Aaaaand it's just the preliminary ! We placed 3rd. The final is held far away from me, and they asked me to help them out xD.
The link is taken down ...
but I still have the script which I should clean up a bit :p
 
10:31 PM
some users are pretty clever: they ask a question where they say what they need. if then the user(s) who answer can't be convinced to change the result to the need, they just ask a new question and paste the others answer code in ;)
0
Q: Script to rename the first 6 files in a folder

SuperMar1oI am looking for a script that can rename the first 6 files in a folder. I have a folder of files and I would like those renamed to 1-6 for another script I made. Is there a way to do this? The only caveat is the files are named using a timestamp so they are somewhat random so I need a way to re...

0
Q: Script to rename the files with sequential numbers

SuperMar1oI am trying to add in a script to the below script to rename the files .txt sequentially from their current names to 1.txt through 6.txt. I can not figure out how to implement renaming with the current setup <?php $folderpath = 'test'; if($handle = opendir($folderpath)) { $cnt = 0; w...

 
english clever or german clever?
:P
 
@hakre that's a clear example of SODD = StackOverflow Driven Development :(
 
@Ocramius my english is too rusty for the diff
@kaᵠ SAD : Stackoverflow Advancing Development
 
@hakre lol
 
HVS = Help Vampiring Stackoverflow
 
10:35 PM
@Ocramius same same? dict.leo.org/#/…
@Ocramius a smart-ass - ah no, that's not fitting.
 
well, I guess that's fitting imo :D
ok, trying nvidia-drivers-current-updates again @_@
 
For those who are running windows, I tend to download Driver Pack Solution and save it on a DVD. It's a standalone offline driver pack with a lot of drivers ~4.4gb !
and it scans and installs/updates the needed drivers.
 
It's really getting better and better:
> I think the question is repeated but I'm not satisfied with the previous answers.
User with 1 rep
 
Just be sure to not install the programs that are delivered with it, this may install a russian version of it xD
 
@Ocramius farking magento
 
10:44 PM
ok guys, good night !
 
@PeeHaa埽 .. this is kinda a "follow-up": did you ended up switching to sumatra as your primary pdf reader ?
 
user652649
@HamZaDzCyberDeV looks very shitware. are you sure it is fine?
 
11:22 PM
@tereško that website sucks big time not offering anything if js is off.
 
the reader itself too looks like crap , but that's not why one uses it
 
I meant to aquire the download link, you need to read JS files if you have it disabled.
 
then make a better site for that guy , you damned barefooted shoemaker wait , no .. you actually have a blog
 
00:00 - 16:0016:00 - 00:00

« first day (928 days earlier)      last day (4005 days later) »