ManiacDan
Staff Alumni-
Posts
2,604 -
Joined
-
Last visited
-
Days Won
10
Everything posted by ManiacDan
-
I was in the right folder, ls wouldn't have helped me at all.
-
LOL. *NIX needs a, "are you sure you want to execute this command that is about to pwn your server?" confirmation. Well that's what sudo is for!
-
If they typo'd DNS A records and then they propagated out before the fix went through, you have to wait for the fix to propagate as well. A typo in a cli command could also delete something important (including an entire server) and it could take a day to get that restored from backup. Another fun typo from my past: cd /usr/local/apache/web3 sudo chmod -R 744 / That took out an entire server permanently, it had to be wiped and restored.
-
Interesting, I wonder if someone needs to start looking for a new job. Either way it's going to cost gdaddy some customers. It brought sopa to light for those who didn't know gdaddy's stance on this issue and it also brought other gdaddy performance issues to light. Firing the sysadmin depends on the severity of the error. I once typed > instead of >> in a cronjob and we lost about $4,000,000. We had another guy make a router route to itself (he thought he was logged in to the one in the other room) and that took down a whole datacenter for a few minutes. Sometimes shit happens. It probably wasn't malicious, like the press release said, I bet they had a typo in the routing table. Remember when Google went down for an hour because someone had disallowed their entire database with a typo?
-
I believe it was incompetence rather than an attack. I've worked for a hosting company before, and one drowsy sysadmin is capable of bringing the whole datacenter offline. A misconfigured network simply doesn't work.
-
Maybe he'll come back.
-
Another reason I wanted to close this thread is because of this. While this code does something, we have no way of knowing if it's what OP wanted. the "problem" you solved was someone's random guess as to what OP could possibly have meant.
-
Unlocked on the off chance OP has something to say, and because Jesi's had a bad day.
-
Based on OP's only other post, we're not going to get a better explanation out of them, so I'm going to close this thread before it turns into a meme contest.
-
That was a different poster. OP still hasn't told us what he means, we're all just guessing.
-
Divided into what? Show a before and after.
-
Get the email body without the email footer
ManiacDan replied to son.of.the.morning's topic in PHP Coding Help
My friend Eirikr replies at the bottom of the thread instead of the top. Game over. -
Get the email body without the email footer
ManiacDan replied to son.of.the.morning's topic in PHP Coding Help
Multiple personalities ftl. Seriously, no wonder they're having the same problem, they're the same person -
You can't simply subtract two strings and hope for the best. At the very least, you have to use the dateTime::diff function to calculate the difference. You could also convert them to timestamps and subtract them, but you can't subtract strings.
-
Get the email body without the email footer
ManiacDan replied to son.of.the.morning's topic in PHP Coding Help
What you guys consider the email "body" is only the top part of the body. All the reply information is still part of the body. It's up to you to parse it and hide it properly. son.of.moroning, please actually form a coherent question with maybe some example data or something other than "a problem exists." -
Access denied for user in mysql_real_escape_string()
ManiacDan replied to mdvignesh's topic in PHP Coding Help
Also, change your root database password to something that isn't a 4 letter english word. edit: and don't use the root user for your website in the first place. -
Need to grab incremental value if 2 OR MORE rows exist
ManiacDan replied to Monkuar's topic in PHP Coding Help
You don't store a last_access time in your in_forum table. if I log in, view the VIP forum, and then don't come back for 6 months, what's to stop me from being counted in the stats forever? Also, research JOIN conditions. You'll need them to be a decent developer. -
So a vehicle with two modes of operation is a bad analogy when compared to a language with two modes of operation, but a college which lets in drug using dropouts is an alright analogy? As many people have asked you before: Justify your abject hatred of procedural code. Why are perl, bash, and PHP inherently inferior to languages in which you cannot slap together a quick script?
-
Why? Go ahead, tell us why the ability to program with or without objects is a drawback, instead of a feature. My car isn't fully a forward-moving car, it has reverse. major drawback? This analogy made my head explode It was supposed to. I cannot understand why "it has the ability to do something else in addition to what I think is the most important thing" could possibly be a drawback.
-
Why? Go ahead, tell us why the ability to program with or without objects is a drawback, instead of a feature. My car isn't fully a forward-moving car, it has reverse. major drawback?
-
Are you on crack? I second this question. Unless you're somehow posting these inane messages using smoke signals, you're using a C-based operating system which uses objects.
-
What he really means is "I hate PHP and anyone who uses PHP is a moron, how come nobody works with me on awesome PHP projects?" It's like a racist saying he rarely sees successful black-owned businesses.
-
Yes. I even asked him directly. We'll see what he says today when the thread unlocks.
-
For those that are interested, the author himself personally replied to my devshed thread on the subject. His arguments are more of the same, but I deconstructed them anyway. His core argument still seems to be "loosely typed languages are confusing to me and that makes me sad."
-
Yeah, I glossed over the first bit. The last bit...was a brain fart. No idea why I put -1. Whoops, removed. I thought I got the two devshed references, there were 3. You're right, I misspoke. Not completely true, but true enough to refute someone who doesn't even know what a reference is, like this author. Good read though, I didn't know they went so deep into it. Been a very long time since I've written an object that extends arrayObject, I got the interface wrong. Which is it? ArrayIterator? Poor Rasmus, he gets so much flack for letter-by-letter reproducing someone else's work.