« first day (691 days earlier)      last day (4271 days later) » 

12:23 AM
Hello AFKVille, question. When a user submits from a POST form in HTML, does it get the 'name' of the textbox from the name tag or the id tag? For example $_POST['username'] . Which attribute would it get the username from?
 
@Alec name.
 
@Alec From the name attribute
 
Thanks.
 
Anyone notice that the $ key is inbetween the J and K keys, as in joking?
 
12:32 AM
@Alec ?
 
@PeeHaa Do you have Adblock on?
 
@Alec ofc I have
 
Shame on you, blocking off StackOverflow's revenue haha.
That's the image I was talking about.
Hopefully you can see it now, re-uploaded to imgur.
 
terrible i know
 
2:28 AM
Has anyone personally read this book?
 
 
2 hours later…
4:21 AM
@Alec Reading... Something I would love to do (Only if these books didn't send me to sleep)
 
@ShyamK you get some toothpicks and use them to prop your eyes open
thats the only way
 
As long as you don't pop your eyes with the toothpicks, it will work fine.
 
^ protip
 
aah... but won't toothpicks be painful?
hope the pain helps :D
 
Sam
@ShyamK hi
 
4:35 AM
@Sam late?
hi @Sam
 
Sam
@ShyamK late? to where?
 
ur usually already here when I arrive...
@Sam here... duh!!!
 
Sam
lol.....guess my car broke down on the way here
had to hitchhike all the way to SO
 
:D
 
Sam
how r u doing?
 
4:39 AM
was fidgeting with Python yesterday...
and u?
 
Sam
cool......was playing with it in class, while instructor was teaching Java...:-P
how was it?
 
Python is always cool (pity I can't do much with it)
 
Sam
let me see.....wrote a batch file to copy a folder content into another......got Python program to send an email
currently working on making it send an email everytime I open my computer
I might turn into a little cracker soon.....:-P
 
everything gotta happen when you open your computer. Doesn't it? :P
 
Sam
lol......gotta try, right?
 
4:45 AM
yep :)
 
Sam
everytime I watch movies, and I see those tech guys do crazy stuff via the command line, I get jealous
:-P
do you too?
 
hacker movies(I think Swordfish) did the same for me... command line magic...
I would like take command prompt in windows and type random stuff just to see if anything would happen
 
Sam
lol....Swordfish......Jack Hughman was a badass
there hasn't been a hacker movie of recent
:(
 
ya... thing is now every bad guy has an arsenal of hackers (or he is a hacker)... its almost essential to the plot of a techy sort of movie
Live Free or Die Hard <-- sorta a hacker movie (just a teeny weeny bit)
 
Sam
Die Hard 4?
 
Sam
lol.....I'm checking it out now
I haven't seen it
 
^Watched it with Englsih subtitles (they remade the movie in English later)
 
Sam
I think I've seen it before
 
which one?
 
Sam
was it the same as the one where some parole officer was blackmailing her to have sex with her?
 
5:02 AM
yup...
 
Sam
there wasn't much hacking in it, was it?
have you watched the "Social Network"?
 
@Sam ya.. not so much hacking in it... just the fact tat the girl is a hacker
@Sam yeah... the origin of Facebook...
 
Sam
lol....I don't wanna see hackers.....I wanna see hacking
 
correction... the origin of "the Facebook" :P
 
Sam
my most favorite part was when he was hacking the other fraternities' facebooks
oh.....and the hacking in the CS lab too
 
5:07 AM
^ tat too while he was drunk...
 
Sam
lol
 
@Sam I was going to say that :D
 
Sam
u must be very good to hack drunk
 
yep... super hacker :D
 
Sam
how's your work?
still got nothing to do?
 
5:13 AM
ya... all the more Me time...
 
Sam
lol
does Nick still come here?
 
haven't seen him for some time
then again... I usually hang out here only during my mornings...
 
Sam
lol....u don't come here once you go home?
 
someone say my name 0_o
 
Sam
lol.....speak of the devil
 
5:22 AM
okay... he is here :D
 
hacker movies eh..
 
Sam
how have you been, buddy?
 
nottt baddd and yourself ?
 
@Sam I hardly go home... usually hang out late with buds... returning home only to sleep
 
Sam
lol.....I'm great, @Nick ....you go home just to sleep? :-P @ShyamK
 
5:25 AM
ya... food and then sleep...
Pain and Naruto...
@Nick what have you been up to lately?
 
Sam
usually get home drunk?
whose database r u cracking up, @Nick?
 
@ShyamK Right now just doing the same ol' same ol' .. working for the man. Trying to fix my media servers right now.. I suck at linux :(
 
@Sam high... not drunk... mom knows the smell of booze...
 
Sam
lol.....what happened to your i-products?
 
@Sam i-products ?
 
Sam
5:30 AM
yup......you are an apple fanboy, aren't you? :-P
 
@Sam lol yeah but I don't sell em, I buy em
 
Sam
lol.....I just lump them all together into i-stuff
 
I believe the correct way of saying it is iProducts
 
Sam
lol....@Phelios; iStuff then
 
iStuff uStuff
lol looks like im going to watch Swordfish tonight ;)
 
5:32 AM
 
Sam
you aren't one of those guys who sells their kidneys to buy an iPhone, are you? Got any recent hacker movie to watch?
 
@Sam lol @ShyamK said Live Free Die Hard, which is the last "hacker" movie I've seen
@Sam no lol
 
Sam
@Nick, @ShyamK, a little bird told me you are both members of Anonymous
 
well the little bird has had too much to drink :P
I wish I was a member though... (skill wise at least)
 
5:35 AM
@Sam yeah ^^ little birdy got it wrong, were from lulzsec duhhh
 
Sam
@ShyamK, I've seen many of them....will check out the rest
nice.....seems Lulzsec is the crazy arm of Anonymous
 
did you guys hear about the Mitt Romney tax hack haha
 
Sam
lol....so far, we aren't sure if it's true
but I already knew that it's just a matter of time
you heard about the FBI vs Lulzsec hacking a few days ago?
 
@Sam This is true, but it was confirmed that both parties received flash drives that were taken by some agency
 
Sam
over 12M apple user information retrieved
the guy wanted $1M to keep the information secret
 
5:42 AM
or $1M to release, race to the finish.
 
silly amount... should've asked for more
 
hahaha, reminds me of dr. evil
 
Sam
well, if you've got some information like that too, you would wanna make money off it too
especially since your ass will be hauled off to jail
if caught
 
what is life if not without any risks?
 
Sam
@ShyamK Untraceable is very good too
lol.....rewards must be higher than risks for the risks to be worth it
 
5:49 AM
@Sam videos of her front porch and all pop up on some site(I think)... Is that the movie?
 
Sam
a guy kidnaps people, and murders them slowly while the audience watches live
brb
 
@Sam ya... I've seen it...
 
Hey Hello
 
@JDev Hi Hey
 
5:55 AM
@Nick - Hello
 
hey @JDev
 
@ShyamK nice
 
@Shyam K hi
 
@ShyamK watched the trailer, looks like they use metasploit
 
@Nick check the comments :)
 
6:04 AM
@ShyamK lol alright backtrack with metasploit lol
 
hi
 
speaking of metasploit, that new java 0day got patched eh
 
I wan to fetch "2008" from "Aug 2008" field is varchar
 
whats up guys . .
 
which method is good explode or substring ??
 
6:16 AM
@Nick not sure... why did you give it a shot?
 
@ShyamK I was playing around with it but I think it got pached not too long ago
 
:D
 
6:33 AM
Anyone know how the Gmail spam filter works?
 
@ShyamK , 80% of messages in my spam folder has a dollar or pound sign fo money, maybe that's how it woks :D
 
Sem
Good day fellow nerds
 
@tomexsans LOL... maybe that is one of the criteria
hey @Sem
 
6:53 AM
@sem , howdie
@ShyamK , that's one
 
Sem
Well @ShyamK focussing on the from field mostly works :) Which is in the header
If you press the arrow in the reply button you can use show original to see the real message with the headers. Sometimes your server sends something with in the from field. And the Authentication-Results can be helpfull to.
 
ya apparently when you send a mail from localhost it sends really less stuff(headers). But I was checking the headers sent by Gmail, and damn, that is a lot
@Sem I just did that :D
 
0
Q: How to access my post from a adjacent page in tumblr

Giovanni Di ToroOK, so I've created an adjacent page in tumblr for my blog (in customize -> Pages -> add page), but It seems that I can't use any varibles to get my posts such as in {block:Post} {block:Audio} <div class="audio"> {AudioPlayerBlack} </div> {/block:Audio} {...

 
Sem
@ShyamK The e-mail protocol is a mess :)
 
@GiovanniDiToro This is in the JS room too... what is it?
@Sem ya... it is a mess... I changed the from address and then gmail automatically assumed that it was from the other person.. added his image and all... Shouldn't there be more stringent checks?
 
Sem
7:09 AM
@ShyamK Well you have the from field for display and another one that apache uses to send. Which you should be able to edit on your server itself. Not in PHP.
 
what exactly the use of anonymous function in php
 
@blackbee google.com
 
i read the manual, but its not helping me the basic....
 
So you don't understand how callbacks work? (picking one use of closures)
 
@Sem was using Python :) but ya... secretty stuff about my system was also being sent in the email... stuff that I thought that I had changed... better find out how to change that
 
7:13 AM
no
this whole concept is a little new to me
 
Sem
@ShyamK Do you use a linux server to send mail?
 
the array_map preg_replace_callback anonymous function namespace
 
Sem
@Leigh google.com/… look even I can give a better answer than that :D
 
I dislike hand-holding people who just can't be bothered
 
Sem
@Leigh I'm just kidding :) I completely understand. However isn't not answering the question the best way in that case?
 
7:19 AM
@Sem I wanted to suggest even a basic amount of research would give him a more complete foundation than anyone here could write in a couple of lines of chat
 
@Sem well ya... I'm trying things out locally... cos I got nothing better to do (boo hoo)
 
Sem
@ShyamK Then you might want to look at what email your apache user account uses :) don't know exactly how to fix that though.
 
@Charles I have to physically restrain myself daily from responding with "Lester, this is INTERNALS, your tears are not welcome here" type mails. I think he accounts for more than 90% of my daily sighing now.
@Gordon looking at the activity on both accounts, he also upvoted himself
 
@Sem hmm...
@Leigh ppl can upvote themselves? why is that allowed?
 
7:28 AM
@ShyamK 2 accounts
 
oh...
 
7:45 AM
@Leigh flag him :)
@Leigh I've removed the dupe. It's the same code but a different problem. Still too localized though.
 
Sem
Guys, howsecureismypassword.net is this legit?
 
Good morning, chaps.
 
@Sem why shouldnt it be?
@salathe morning
 
@Gordon It worries me that none of the "answers" point out the fact the OP is trying to execute code within the class definition.
 
@salathe yes. I thought about explaining it, but I think fixing syntax errors is in most cases too localized and the OP has made a new account after the Qs on his previous account all got dv'ed and closed, so I figured I wont.
 
Morning
 
Sem
@Gordon Wel to calculate the estimated time of a brute force attack seems to be difficult, not?
 
8:11 AM
@Sem hmm. not that much. you just have to look at the algorithms used to crack a password. you can derive their cost and then base the time it will take to create a certain output for a certain input based on average cpu power
 
Morning all
 
Sem
@Gordon Ah well, happy to hear the password I use mostly takes 26 milion years to crack then
 
> It would take a desktop PC about 44 billion years to crack your password
:-D
 
Thank god they aren't silently uploading our keystrokes somewhere and building a database of it. That way, I guess it'd take lot less time to crack your password :D
me paranoid me didn't test my real password \m/
 
Sem
8:27 AM
@DaveRandom a hash or what? :P
 
@Gordon I probably got the users backwards, and thought the old one was active after the new one posted the question. (coupled with: why would anyone upvote this = jump to conclusion)
@Sem No network activity when it calculates, so looks fine.
I discovered this the other day, very helpful: chrome://net-internals/#events
 
Sem
Netbeans SVN; Can't commit because of conflicts. Press resolve confilcts... No conflitcs found!.
 
@Sem Almost as fun as when you do a checkout in Eclipse, if you go and do command line SVN stuff, Eclipse will not recognise the repo anymore
 
Sem
@Leigh :( Guess I'm going back to tortoiseSVN.
 
8:38 AM
G'dmorning.
 
Sem
@Sommer Good day sir :)
 
Have you tried running an SVN cleanup?
 
Sem
Aye, nothing happening there.
 
@Sem Just non-repeated non-alphanum padding. Looks horrible written down but based on location patterns on the keyboard.
 
Sem
@DaveRandom Is that your definition of SVN?
 
8:48 AM
@Sem No lol password strength
 
Ahh, procedural MySQL.
That takes me back.
I've noticed that being startlingly common in major frameworks. This is going to be a problem very soon. Just think of how many webshops are running on OpenCart and how many hosting services blindly update to the most recent version for the sake of being up to date. Then consider that procedural MySQL is getting kicked out come PHP6.
Come to think of it, the release date hadn't been moved to december 12th by any chance, right?
 
Sem
@Sommer Everyone here hates mysql_* functions, no worries :P
 
POST is a subset of GET
 
Well sure Sem, but I'm anticipating lots of outage. And lots of work for us >:D
 
Sem
8:59 AM
I tought the idea for a pure OO PHP 6 was dropped..
 
Not to my knowledge. When'd you hear that?
 
@Sommer For what?
 
Sem
Long time ago from some classmates. Couldn't find any recent posts/news on PHP 6 so assumed it to be right.
 
> Then consider that procedural MySQL is getting kicked out come PHP6.
Whaaaa?
 
Nobody is even working on 6
 
9:02 AM
 
@S
 
php6 should never exist, it would create too much confusion with all of the PHP 6 books out in the wild.
 
Whoops, still getting used to the Stack syntax. @salathe Last time I checked the planned updates in PHP6, all mysql_ functions were getting stripped to enforce OO syntax and for security purposes
 
Sem
@Paul Who cares about books when we're talking about technology! >:D
 
9:06 AM
@Paul Meh, the language evolves and that's a good thing. @Leigh what was your question?
 
We need to skip straight to PHP7 once we are done with 5.x, seriously.
 
@Paul You mean like the whole ECMA4 fiasco? Probably a good shout.
 
@Sommer It was about your question.
 
Oh, no I remarked on the question posted.
 
"the release date for what?"
 
Sem
9:08 AM
@Leigh PHP6 aka I have an OO dream
 
@Sommer where did you read that?
 
@Paul Where's the fun in that? There's so much misinformation about PHP6 already, and I need to rep-whore ;)
 
@salathe probably PHPClasses :D or w3schools
 
@Leigh Yeh, right, that's what we need, an SO with more nonsense questions and misinformation...
 
One day everyone will get too confused and it will become PHP2012 etc.
 
9:10 AM
@Paul more like 2017 ;)
 
@Paul PHP Millenium Edition has a nice ring to it...
 
@salathe, I picked it up in PHP related news. After some googling I found the original message from one of the core developers to the PHP mailing that sparked the debate, news.php.net/php.internals/53799
 
Sem
@Leigh We're going back to 2000?
 
Evidently they're considering just throwing "deprecated" errors at first.
 
9:13 AM
@Leigh I like it, retro is still in? Either that or it will be coming back for sure.
 
@Paul Sure, just need to apply a mosaic filter to the PHP logo and make it all pixelly, and we're golden
 
Personally I'm all in favor of phasing it out and molding the language to a more sophisticated form. It's not a bad idea to set a threshold.
PHP as it is is too "easy" and it reflects in a lot of professional use, mostly due to the lack of adequate formal training, clients' frequent inability to gauge skillsets properly and the high accessibility of the language.
I actually got to see the sourcecode for the website that the Sony leak came from about two years back. I was surprised it took them that long to dump Sony NL's database using facile SQL injection.
 
@Sommer So your saying the language should be made less accessible?
 
@Sommer Nothing stopping you coding your own fcgi server in assembly if you fancy something a bit more low level :)
 
@DaveRandom I'm saying it's okay to impose restrictions if it enforces good form and better security. Or else we need some centralized, authoritative institutions. PHP is a wild west, and how many "programmers" have you seen advertising their skills who started their career buying a "PHP for dummies" book six weeks ago or who just discovered Wordpress generators?
A huge segment of the small business market is undermined by people who claim to provide PHP services and in fact just run some CMS installation and leave it at that.
I'm not saying it needs to be as stringent as regulating tab usage in Python, but for example the introduction of namespaces is a good one.
I'd also like to see explicit variable declaration make an entrance at some point.
 
9:26 AM
@Sommer You will remain dissapointed
 
@Sommer But the problem is backwards compatibility. If you start imposing more restrictions on the way the language works, entire codebases will have to be examined to ensure they are compatible before server admins are able to upgrade. What you are really talking about is an entire new language.
 
And any new language, will never overtake PHP
 
@DaveRandom I completely agree, but frankly I'd be glad to see such a ripple incur drastic change on the market. For us it would be good for business.
 
@Sommer Where does that mention dropping the procedural stuff?
 
Sommer, as seen with the advent of PHP 5.3+, the market refuses change
 
9:28 AM
I don't disagree with you over the issue of the market being flooded by idiots and people who think that just because they made a site for their granny they can do anything, but the situation would be made worse by introducing drastic changes in the language, not better
 
@DaveRandom Fortunately, those idiots are often filtered out by recruitment processes :)
 
What needs to be done is to make prospective clients aware of the number of idiots in the marketplace, but this would probably have the side effect of sending them down non-PHP avenues to get their products built.
 
@salathe There are various blog posts who phrase it as killing off Mysql. The actual plan and how to go about it has been up for debate for a while. I think I recall seeing removal on a changeset, but I might be remembering wrong or I might've interpreted "deprecated" as such.
 
@Leigh Granted, if you work for a company worth their salt. Unfortunately there's a lot of companies who aren't.
 
@DaveRandom And those would be put through the gaunlet by such a move. There would be a lot of problems, but short-lived ones that in the end benefit everybody. And could be very lucrative for us.
 
9:32 AM
@Sommer I think you're just confused about what is being "removed" or "deprecated". We're only talking about the ext/mysql stuff (the mysql_*) functions. Other extensions are preferred now, and will be preferred for a long time, even with a procedural interface (MySQLi).
 
@Sommer deprecated means the feature has been superseded by something better. It's like ereg functions still being there, but you shouldn't use them.
 
The mysql_* functions will get removed at some point in the future, but that's not "procedural MySQL" at all.
 
@salathe Righto. And how's that?
 
@Sommer How's what?
 
ext/mysql doesn't support OOP. How's it not procedural?
 
9:35 AM
@Sommer I didn't say that.
 
Indeed, please define the term "procedural MySQL". I guess what you really mean is "procedural functions to allow access to libmysql", which would still exist if ext/mysql were removed.
 
My point is we're not deprecating "procedural MySQL"... we're deprecating mysql_* functions.
 
@DaveRandom I get you, MySQLi allows for procedural programming too. But if you're already using MySQLi it's easier to just go for the OOP approach.
 
@Sommer Easier? I wouldn't say so.
 
@Sommer Depends what your doing. And for the record MySQLi is ridiculous, PDO is the only sane interface to MySQL. IMHO.
 
9:37 AM
Anyway, yes, I did mean ext/mysql
 
@Sommer Great, just don't interpret that as dropping procedural in favour of OO. :)
 
Sem
C'mon guys, we're all hating mysql_* and we want it to be gone. But it won't in short term because of backwards compatibility. We also want everyone to write applications so logically structured that documentation isn't needed etc. etc. No need to argue about that :)
 
> We also want everyone to write applications so logically structured that documentation isn't needed
We do?
 
@Sem Fight, fight, fight... :-P
 
9:41 AM
morning
 
sup
 
Sem
@salathe $user->getUsername(); // returns the username <-- Do you like this so much?
 
@Sem No because the comment is incorrect
 
Sem
@salathe Well then, tell me what else I need to know about getUsername() :).
 
@tereško ahoy
 
9:45 AM
@Sem What kind of question is that?
 
@salathe Elaborate.
 
Sem
@salathe Trololololol.
 
@Sommer On what?
 
We will add your paradigms and syntactical distinctiveness to our own.
@salathe, on how it was incorrect. Were you referring to your earlier comment?
 
Just a quick question... can i use cron to edit a html page from a php page ?
 
9:48 AM
maybe
 
Was going to but actually it's quite interesting. A terribly written question, but still interesting: stackoverflow.com/q/12297239/889949
2
Q: Array reference confusion in PHP

Soumya Biswas$arr = array(1); $a = & $arr[0]; $arr2 = $arr; $arr2[0]++; echo $arr[0],$arr2[0]; // Output 2,2 Can you please help me how is it possible?

 
@Sommer likely because there was no return
 
@dskanth Sure why not.
 
@dskanth you could use a shell to output your result to the file, via "wget address.here"; or "file.htm < php -f yourscript.php"
 
@Sommer The comment was unclear, it either said the line of code returned the username (which it didn't) or that the method returned the username (well, duh). Either way, it's a bad comment.
 
9:49 AM
@dskanth Otherwise you'll have to do it from PHP using fwrite() or something to that effect.
 
Sem
@Gordon syntax !== principles
 
Is it just me, or are people in here speaking in riddles today?
 
@salanthe Well, since you're pressing on the issue of semantics, let me point out that you inferred the comment referring to the line vs. the method whereas it specified neither :P
 
@Sommer I'm not pressing anything, you're probably reading too much into what I'm saying. :)
 
Sem
@Gordon If you name your methods, classes and variables perfect no documentation is required period
 
9:51 AM
@Sem Bull.
 
@Sem i'm all for self-documenting code, but you have to take into account that even if you name your methods properly, you will need documentation to convey information about the system as a whole. i agree about comments to be superfluous most of the time though.
 
Well no not pressing but correcting. And again with the semantics :P
 
I really, really, really pity anyone working on your projects without any documentation.
 
@DaveRandom The answer actually doesn't make it very clear that the element that has a reference is copied along with the reference.
 
Sem
@salathe Oh you flaming all day long.
 
9:53 AM
@Sem Sorry? I haven't even started flaming today.
Perhaps you're being a little narrow in what you consider as "documentation"? What kind of documentation do you feel that "good code" should eradicate?
 
Sem
@Gordon That but of course. Although you would be ending up making a manual instead of documentation in code :)
 
(or perhaps I'm being a little too broad in what I consider as documentation)
I'm also of the opinion that inline comments in code can be useful too, like anything they're tools to be used appropriately.
 
Sem
@salathe What I meant was documentation in code. A nice big paragraph above every little method. I don't like that :)
 
// The following line may look weird, but must be done this way due to bug #4712 is useful to the person reading the code, for example.
@Sem I'm not a fan of verbose comments either.
 
Sem
@salathe Of course there are exceptions! But I mean as a standard. Like the java documentation standard and such.
 
9:58 AM
@Sem So you really mean, "useless comments are useless"?
 
@Sem a problem with self documenting code is that many developers simply suck at naming or expressing the code's intent in code. I've worked with developers claiming they'd use self documenting code but it only made sense to them because they failed to convey the implicit knowledge they had in their heads about the context
 
Sem
@Gordon Back to the first comment where I said it's what everyone would like to see. But is extremely hard if not the most hard thing in programming IMO :)
@salathe I do, yes.
 
how about a hot brewed coffee, anyone .
 
@tomexsans I'll take one, please
 
@Gordon, offer has already expired :D
 
10:04 AM
@tomexsans pfff, I'll get my own
 
10:50 AM
its been a slow week for rep whoring....
 
@Petah Must be doing it wrong. :)
 
probably
got any good stuff going on atm @salathe
 
Sem
@Petah Less I wanna haz CRM for 10k more Using a $ will help you with your problem ;)
 

« first day (691 days earlier)      last day (4271 days later) »