Wednesday, April 6, 2011

960 Fluid Grid System Bake Templates

(This article is by tom_m from the bakery of CakePHP) - Really useful tutorial for fast bakers.
Want to use 960 grid system in your baked app? Ever see this "fluid" template that uses it? http://www.designinfluences.com/fluid960gs - I put it into some bake templates.
It's not that I don't like the default baked views, but I wanted something more generic and flexible. This template is extremely fast to work with too. You can add more boxes and other content very easily as opposed to the default bake templates.

If you are unfamiliar with the 960 Fluid Grid System template created by Stephen Bau, then check out the link in the intro. It's a very clean and basic gray/black/white layout with some nice collapsible divs and accordions and such. The page even says, "templates for rapid interactive prototyping." Sounds like a perfect match for a rapid framework like CakePHP.

You can download the file from my server: http://www.shift8creative.com/files/960-fluid-cakephp-bake-template.tar.gz

Not to take you away from the Bakery or anything, but if you were so inclined, you can see some screenshots on my site: http://www.shift8creative.com/project/960-fluid-grid-system-cakephp-bake-templates

How do you use it? Look at the README in the zip file, but basically you'll want to copy/merge the files in the same structure to your app. Then when you go to bake your view templates you should have a numbered option with "default" and "960grid" to choose from. Maybe others too if you have more bake templates. Anyway, choose "960grid" and that's it. You should be set.

Check out the manual for more information: http://book.cakephp.org/view/789/Modify-default-HTML-produced-by-baked-templates

How to Quit Facebook - by wikiHow

I took this information from here. The credits belongs to them. Good Job, since I quit my FACEBOOK!!! LoL...

  1. Admit you might have an addiction to Facebook. and keep track of what you actually do on Facebook. After every Facebook session, ask yourself: "What did I just accomplish by checking Facebook?" Odds are, you're probably just logging in to see if you've been poked, or for updates of when your friends change their profile image, write a new note, add a new song to their favorite music, and do other little things that you can really live without knowing. But those might be the little things that keep you on a very short leash. At first you're confirming a new friend, and next thing you know, you've spent an hour looking at all the new people you're connected to. Recording your Facebook activities can help you realize how much time you actually spend getting nothing constructive done.
  2. Define your goals on Facebook. Make a list of what you really want from it. Why did you originally sign up? So you could remember friends' birthdays? Find and keep old friends? Meet people with similar interests? Whatever your goals may be on Facebook, you need to make sure that you devote your time there to accomplishing those goals, instead of going off track with activities that get you nowhere. If you have no goals (i.e. if you signed up just because you had nothing better to do), skip the next step.
  3. Make and follow a Facebook schedule. After each Facebook goal, write down how much time and at what frequency you'll need to be on Facebook to achieve that goal. Then write down the total number of hours, per week, that you should be spending on Facebook. If it seems like too much time, adjust your activity times accordingly. Following this schedule might bring your Facebook addiction under control without requiring you to quit altogether. Some examples:

    • Stay in touch with college friends - Check every other day, spend no more than 15 minutes responding to messages only from college friends. (1 hour per week)
    • Maintain my group - Check every morning and evening for 10 minutes each, only to remove any spam or junk. Note to self: do not respond to posts, comments or messages during this time. (2 hours, 20 minutes per week)
    • Keep my group interesting - Spend 30 minutes every other day reading all of the comments and responding. (2 hours per week)
    • Finding new friends - Browse profiles for 30 minutes, twice a week. (1 hour per week)
    • Total maximum time I plan to spend on Facebook: 6 hours, 20 minutes.
  4. Think of other things you could be doing with your time spent on Facebook. If you find yourself spending, say, 10 hours a week on Facebook, make a list of all the other things you could accomplish in that time. You could:

  5. Block the time you spend on Facebook. You can use a free self control program called ColdTurkey to temporarily disable your access to popular social media websites. Parental control programs such as EzInternetTimer or TimeUpKidz can also help.
  6. Goodbye, Facebook account
    Goodbye, Facebook account
    Leave Facebook. If you've created a schedule and couldn't stick to it, or if you've decided that any time spent on Facebook is wasted, then you may need to quit cold turkey. This is a last resort, and is easier said than done. There are two options here. You can deactivate your account or delete your account:
    • Deactivate your facebook Account - this lets you take a breather without losing the information; or
    • Permanently delete your Facebook account - this is the real end, everything will go!
    • If you've started any groups, transfer admin rights to someone you trust.
    • Clear every last bit of information from your profile. Don't forget to remove your photo!
    • Send an email to your Facebook contacts explaining your decision to leave. Include your current contact information so they can get in touch with you without Facebook.
  7. Find alternatives to using Facebook. If you've gotten into the habit of using Facebook messages instead of email, update your email address book so you can get in touch with your friends next week and continue your correspondence outside of Facebook.
  8. Turn your profile into a pile of useless data! This is another way to "delete" a Facebook account, and you might have fun doing it. When you wake up the next day, your profile is gone. For good. Amen.
    • Delete all your "friends" - unless you want to show the World you're quitting for good.
    • Change the profile’s name - you can do that. Be sure to choose something really lousy.
    • Fill it up with offensive content - texts, dubious pics and all.
    • State clearly that Facebook employees are just a bunch of - beep - beep - beep - fill in the beeps with the most politically incorrect insults.
    • Invite lots of randomly picked people to become your “friends”.
  9. Find a Facebook substitute. A lot of people get addicted to Facebook because they check it when there's nothing else to do, like in between classes, or during a lunch break; then the curiosity spills over into time that should be spent doing other things, like studying or working. You need to find something to do during those little windows of time in order to prevent relapse. There are several ways to give yourself a "Facebook patch":

    • Stay away from the computer as much as you can. For many of us, getting in front of a monitor is a default activity. Try to find other things to do that'll keep you away from the computer and therefore, Facebook. Keep a notebook. Meditate. Finger weave. Learn to do impressive tricks with a tech deck. Call your friends on the phone or do something fun with them in person. Anything that you can do anywhere and for short periods of time is good.
    • If you're at a computer during critical relapse times, find another website to log onto and read instead of Facebook. Yes, you may get addicted to that instead, so try to find something that's actually a constructive pursuit, like checking news websites, learning a new word each day, sharpening your mental skills by solving a sudoku, practicing that foreign language you decided to learn, or contributing to the How-to Manual Anyone Can Edit.

Have you ever wondered what webserver is a site is using??? Now, wonder no more!!!

Ini adalah add-on untuk Mozilla Firefox. Yes, another super-cool-useful addon for Firefox Web Browser. Server Spy indicates what brand of HTTP server (e.g. Apache, IIS, etc.) runs on the visited sites. When a tab is selected, the corresponding server name is shown on the right-hand side of the browser's status bar.

(Aku pun baru tau yang google pakai customized web server called GWS for their main page and GSE for their mail server.)

Image Gallery