You’re wasting your time and thousands of dollars building bunkers and stacking up on food. Instead, why not live your life to the fullest and spend your extra money helping the poor and hungry children? Why not use the last of your time volunteering? Don’t you think it’s a little too selfish to save yourself? Even if you do survive do you really want to live in absolute chaos where the world would be full of dead people, scorching fire and flood?
The bottom line is, if, rather when the world ends according to the bible, you’ll not going to survive no matter how well you prepare. Only God will decide your fate. If you truly believe that the world will end soon, then save yourself by sacrificing yourself for others.
wget http://pecl.php.net/get/APC-3.0.19.tgz tar -xvf APC-3.0.19.tgz cd APC-3.0.19 phpize ./configure --enable-apc --enable-apc-mmap --with-apxs2=/usr/sbin/apxs --with-php-config=$PHPPATH/bin/php-config make clean make && cp modules/*.so /home/#####/data/lib/php
6. Finally add the following code to your php.ini file (repace ##### with your domain ID):
Codeigniter: How to Cache Pages for Logged Out Users Only
There are many things you can do to optimize your application. One of the major improvement is to cache the most visited pages. Whether you choose to cache via disk or memory, you’ll reduce the server load dramatically.
Codeigniter comes with it’s own function to cache pages but it’s not very useful when you have a dynamic header displaying logged in user data because it caches the whole page whether the user is logged in or not.
The solution to this problem while still using Codeigniter’s cache function is to override some functions on Output.php. The following solution is best used for websites with the most traffic from logged out users. If logged in users generates more traffic to your site, partial caching would be a better solution.
Step 1: Create MY_Output.php under /core directory and copy and paste below.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class MY_Output extends CI_Output { private $cached = TRUE;
function _write_cache($output) { if ($this->cached) return parent::_write_cache($output);
return FALSE; }
function _display_cache(&$CFG, &$URI) { if ($this->cached) return parent::_display_cache($CFG, $URI);
return FALSE; } }
/* End of file MY_Output.php */ /* Location: ./application/libraries/MY_Output.php */ ?>
Step 2: On your authentication script, input the following code on the login function after verified login. The following function will trigger disable cache when user is logged in.
setcookie('cached', 0, time()+60*60*24*30, '/');
Step 3: On your authentication script, input the following code on the logout function. The following function will trigger enable cache when user is logged out.
setcookie('cached', 1, time()+60*60*24*30, '/');
It’s very simple yet most effective solution. We run many websites with a lot of traffic on a dedicated server with limited amount of resources. The best practice and a way to save money is to optimize as much as you can before you upgrade the server.
Great aggregation of articles on Feverbee about guide to online communities.
Expert’s Analysis (over 10 years of experience) on Why Pinterst is So Popular
With over 10 years of experience building websites and following the internet market trend, Jay knows why Pinterest, a fastest growing internet start-up is so damn popular.
First of all, what is Pinterest? Stacks of images with content that looks like bunch of playing cards spread all over your desktop, confusing and sometimes disturbing eventually hurts your eye looking at it for more than a minute? Correct. But there is more to it than that!… 99% of “Pins” on Pinterest are marketing someone or something? Bingo! Go see for yourself.
Jay states that Pinterest is popular because people like to market themselves, their businesses, products and services. With the least amount of marketing, Pinterest was able to shoot the rocket through the roof to become the fastest growing start-up of all time in very short period of time. There no secret to it for this type of website. A website that helps promote users in some way or another is bound to be popular as long as the website is not so crappy. Period.
GetLikesEasy, Digg, Reddit and the most useless, Stumbleupon are marketing tools for anyone using the internet. There are bunch of websites like them. In fact, most of them are doing well. They are doing so well that they beat the traffic ranking against start-ups that raises over $1 million dollar in funding! No joke!
As you well know, marketing is a bitch. It’s extremely hard and you need to spend thousands of dollars to get your product out there. Pinterest and website alike don’t need to do much marketing. It markets itself.
In conclusion. don’t hassle building a website that don’t market itself. It’s just too hard. Too damn hard to market. Most likely it’ll fail. Truejay Inc. will produce something like Pinterest. It’ll be better and one thing for sure, less buggy.
Amazing review of Samsung Galexy Nexus VS Samsung Galexy Note.
Apple’s Yet Another Publicity Stunt For The Brain Dead Masses
Yahoo - Police help Apple hunt for missing iPhone prototype - Really? No shit…
You people still can’t figure out what Apple is trying to do?!?!? They’re obviously pulling off a publicity stunt by purposely losing the prototype! Apple has history of creating HUGE hype over their crappy products! Why do you think Apple became so popular over period of 5 years? They do this sort of shit to gain a ton of public attention. Nice try Apple for pulling off yet another dirty publicity stunt for the brain dead masses.
Here is a spell I’d like for the brain dead Apple obsessed masses to listen in: “Hummm… Hummm… (chanting) Apple is trying to control you you you… (echoes). Apple is your enemy enemy enemy… Apple is not the best product product product… Try using some other better, faster product product product… Maybe android android android… (chanting ends)
I’m Braking Up with You Microsoft!
Damn you Microsoft! Why do you have to roll out garbage products? Why can’t you just admit that you’ve messed up and simply give it up? I hope you’re aware that you’ve made my life miserable including hundreds of thousands of web developers! I know you’re trying something decent by creating Bing and stuff but another crappy version of IE is just not right. Why can’t you just put it in the vault so we can all forget about it. You’re better than that.
You know… I used to really like you, Microsoft. But now our relationship is seriously in jeopardy. I’m thinking about switching my Windows Mobile phone to Android, and change my operating system to Linux (Why not Apple? I broke up with Apple looong time ago!).
What? You’re sorry? It’s too late! It’s over Microsoft! You were hot and sexy when we first met but now you’re no-good, mean old hag as far as I’m concerned!
Girl murdered, suspect spent less than a month in jail.
After victim’s mother wrote a heart breaking story on internet, Korean police is re-investigating the case after a year later.
This is so fucked up… I’ve heard too many of this kind of messed up news in Korea. I can’t believe the Korean government isn’t doing much about it. Thank God I’m a U.S. citizen. God bless America!