Entries Tagged as ''

Tips and Tricks: WordPress Fix For Directory Creation and Updates

So I ran into an issue with one of my sites not being able to upgrade WordPress except for via manual ssh. And that’s extremely annoying. It was the only one that was on a VPS, so I was curious why the VPS was set up so differently than most of the other shared accounts on the same host.

Here’s the reasoning. The difference is whether or not your Apache is running DSO, or SuPHP.

The Apache HTTP Server is a modular program where the administrator can choose the functionality to include in the server by selecting a set of modules. The modules can be statically compiled into the httpd binary when the server is built. Alternatively, modules can be compiled as Dynamic Shared Objects (DSOs) that exist separately from the main httpd binary file. DSO modules may be compiled at the time the server is built, or they may be compiled and added at a later time using the Apache Extension Tool (apxs).

suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter.

So how do you fix it? Are you getting the WordPress error that refuses to create directories in plugins and upgrade? Having issues where the whole chmod 777 solution (which btw, is a completely stupid solution since it opens you up to all sorts of bad things) isn’t working?

I finally ran across this fix, where for SuPHP configurations, all you have to do is edit your wp-config.php and add:


putenv('TMPDIR=' . ini_get('upload_tmp_dir'));
define('FS_CHMOD_DIR', (0755 & ~ umask()));
define('FS_CHMOD_FILE', (0644 & ~ umask()));

This will fix the entire issue because it basically defines your environment and forces the masking to be correct. Ahhh.. phew. Another fix.

Why CDMA iPhone Will Be So Much Better

Image representing iPhone as depicted in Crunc...

I always have to laugh when I read garbage printed about telecommunications when people don’t actually talk to those inside the industry first. Such as this TechCrunch article that basically talks about how Verizon’s network is slower, older, and would suffer the same capacity issues that AT&T did and that there wouldn’t be any other differences outside of the CDMA vs GSM.

Alas, my poor deluded journalist, you are so incorrect. There is a huge difference due to protocol and company culture. And you would know this if you were speaking to people within the telecommunications infrastructure industry (just as I have been working in it for the better half of a decade).

Let’s talk about the corporate culture for a second. Hypothetically, if Apple had chosen Sprint for their network, then I would say that they would have the same issues as AT&T has had with their iPhone coverage. Sprint in the past is known to overload their networks with other products. Boost was one of the first, but there are many others that also use the same network but branded under a different name. But Verizon has had management that has always been a stickler for building out for capacity. They keep building out their networks regardless of economy and the last I’ve heard, they’re perfectly capable of handling any sort of traffic that iPhone sales would generate without even blinking an eye.

While I have never worked on any of the Vegas markets myself, I do know that for events most carriers bring in mobile base station units to help accommodate the traffic for conventions, ball games, and the like. If AT&T couldn’t handle the traffic at CES, there’s a reason for it but I doubt that Verizon would be in the same boat there.

Second, you don’t need more cell sites to gain capacity. Capacity is driven by what we call in the industry: carriers. Each carrier can carry so much capacity and depending on the cell site, you can install so many carriers. It depends on the spectrum and how tall the tower itself is, and if you’re using that tower with other providers. But overall, capacity really is less about physical footprints.

Will data carriers be overloaded? Perhaps. I leave that in the capable hands of the Verizon capacity planners, which I would say have been working on this issue for the better part of a year or two. Will CDMA iPhones experience similar data problems as current GSM ones? Perhaps. I doubt it. If they do experience difficulties, they’ll be different due to the way the protocols handle data.

Now here’s the big, huge difference that CDMA will win over GSM. GSM (circa 1981) is older than CDMA (circa 1993). In my many years of on performance of cellular networks, two major problems plague GSM carriers that do not happen no where near as often on CDMA carriers. The first is ghosting. This is where you’ll be talking to someone and suddenly you’ll hear someone else’s conversation. At times you’ll basically be swapped, but sometimes it doesn’t happen. I’m not saying that it happens on AT&T itself, but that’s something that drives GSM consumers mad. The other is one of the channels dropping off. In CDMA, if you drop a call, you usually drop the entire call itself. Both forward and reverse channels disconnect. However, the competition has a tendency of dropping either channel while keeping the call up which basically provides you a call where one person can talk but can’t hear, or vice versa. That goes away when you switch to a CDMA iPhone.

Now the last part is: what phone do I carry? I personally carry a Droid. Are there GSM carriers I like? Sure. But I can’t stand buying into a network I do dislike just for the iPhone. It’s like driving a Mercedes that has had its engine replaced with a Yugo. It just won’t do. And now that Verizon is going to carry the iPhone, I have a feeling that it’s just about the time to make the switch.

Enhanced by Zemanta

The “Skills” of Young Gamers and Understanding Ping

A Big Daddy defends a Little Sister from two S...

It’s interesting that I’m an avid fan of online gaming from time to time, and I noticed that younger and younger gamers talked a lot of trash talk, but didn’t understand the basic concepts of how their online infrastructure works.   If you can’t back up your skills then don’t bother trash talking.

So there’s this gal in Japan that loves to talk down on how she’s amazing in Bioshock 2.   And she is.  But it’s only because she can shoot you before your connection processes a kill.  Basically, she would pull the trigger, and in the US, you’d suddenly die without actually seeing the shot pulled.  That’s a ping issue.   For the most part, it goes back to the broadband connections on how they are implemented in each country.

In both Japan and South Korea, it’s pretty common place now to run fiber optics to all housing complexes.   That means that you’re running at least 100-150mbit into the house.  Back in the day, when I was in Ministry of Pain back in the day, we had a sniper that was so good, he could snipe people with a 150+ ping while others were on a 15-30 ping.  That meant that when he got on his school network of 15-30 ping (that’s in ms), he was unstoppable.   He was also part of the [3e] guild (Third eye) which made sense.

These days, these newer gamers don’t understand that cable connections still don’t outweigh fiber.   That extra faster timing for those packets to travel means that you have just a bit more time to pull the trigger.   And that makes a huge difference when it comes to any sort of online game play, especially the ones that have great snipers.   Ever notice that the best snipers seem to all sit on university networks?   There’s a reason for that.

In any case, the moment you realize that ping can play a major part in your gaming, you’ll start designing ways to depend around the timing situation.  Circling around the peripherals and the back, strafing, and other methods.

Enhanced by Zemanta