Joining another field

Just made the stupidest (is there even a word?) decision of my life a week ago.

Construction

Putting my shoes into what my father likes to do most – Construction. Though I am not the one who working the labor jobs, but I have pressure everywhere since a week ago. There are still lack of ceiling, outdoor chair cushions, glass door and some floor tiles.

Each time my phone ring, I will get panic, even my father call me. Wonder when I got this kind of nerves-system.

I practically running 2 things, one at home, which I now work at evening and night; another one is at the site, which I need to make sure they work. You know those guys, onces you step a mile away from the site, they slow down already.

Lesson of the day: Do you work, don’t be stupid!

Keep an author signature

Some bloggers like to invite others to be a guest authors on their blog. Mostly, they will have a short author description at the end of an entry. However, some blogger like to have a signature as well, and the signature may be only for the main author, just to make it more porminent when viewing on the front page.

Blog like eczema treatment or some news related articles like to have multiple authors but still keep a main author.

Signature

That is where get_the_author() comes in.

When an entry is published, get_the_author() will look and display the author name. In order to only display a certain author’s name, we need to tell it by:

<?php
$author = get_the_author(); // Check author
if($author == 'Andrew') // Check if the author name is "Andrew"
{ ?>
<div class="post-signature">Andrew</div> // Show this if it is "Andrew"
<?php } else { //No signature for others } ?> // Show nothing if it is guest author

There you have it…

My CSS revisited

After a short jogging in the park and had the best protein powders, I think it does make a mind clearer and easier to think. Once I came back home, the first work I started is to re-write / correcting my framework’s CSS.

CSS

One CSS file

I find it quite troublesome sometimes when I need to edit some CSS and it happen to be on another file. The solution, to compress all I can on space and tab, minimal the need of ID or CLASS if possible.

Unique ID and CLASS

Previously I thought to have a hierarchy by doing like this:

#content {}
#content .post {}
#content .post .post-title {}

When the list going long, it’s getting more complicate to even look at it. I re-write most CLASS so they are unique in the style sheet.

Get rid of !important rewrite

I use Erik Meyer CSS reset. Somehow, it reset the background to white, while I’m working with 2 CSS files, I would just use the rewrite rule instead of open the reset style sheet and edit it :P Too lazy I guess, and that’s why one CSS is enough.

I’m still looking into the style sheet to see if there is anything I can do. Working too much with CSS, so it has to be so damn easy for me to edit next!

Office and productivity

Recently addicted to Design*Sponge office design with my wife.

Office

Those are serious furniture compare to what I have currently like a preschool furniture.

Workstation

We always believe that clean environment can boost our productivity. Once I know a designer, who told “I’m designer, my workstation suppose to be mess, and this mess helps my creativity, don’t you?“. I’m not so sure it’s an attitude or profession need for the messy room.

  • Clean environment
    A clean environment is easier to find anything on the table. Everything are visible on eyes.
  • Keep files clean
    Desktop icons is where people often forgotten to clean up. Do you ever go click here and there just to find the file you just saved?
  • A white board / calendar
    I can’t find a desktop calendar in this town. So I got a small white board from Popular and hang just beside my desk, so I can refer to it from time to time

Some other small thing like notification, time table is also an essential thing to do. However, the last thing I want is a better workstation that’s all… There is no IKEA here!!!

Define SPAM

Spam is the use of electronic messaging systems (including most broadcast media, digital delivery systems) to send unsolicited bulk messages indiscriminately. Read more

SPAM

With email and blog getting widen nowadays, we need to really pin point what SPAM is all about. Some say, insurance quotation or herbal diet supplements or even real estate related are all spamming the internet.

Insurance agent goes blogging, does the agent become a spammer? A corporate supplying diet pills blog about their product, does the corporate be regards a spammer?

Well, nowadays with all those whatever-security email and anti-spam has, SPAM is not actually a big problem, at least to me. I’m not so sure how to really define a SPAM message or email, but I definitely know how to define a scam email and message.

The biggest deal beside SPAM is SCAM. People often forgot about how email scam works and how much they’ve conned for just a few emails, or probably a few phone calls after that.