Creating CSS3 Gradients for All Browsers

To add a gradient to an element using CSS, just add the following code to your CSS

[cc lang=”css”]
background: #dcd9d1; /* for non-css3 browsers */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#dbd8d0′, endColorstr=’#f4f3f1′); /* for IE */
background: -webkit-gradient(linear, left top, left bottom, from(#dbd8d0), to(#f4f3f1)); /* for webkit browsers */
background: -moz-linear-gradient(top, #dbd8d0, #f4f3f1); /* for firefox 3.6+ */
[/cc]

If a browser doesn’t support gradients, it will just display the background color.

To change the direction and other values of the gradient, check out http://webdesignerwall.com/tutorials/cross-browser-css-gradient.

Creating CSS3 Rounded Corners For All Browsers

To add rounded corners to an element using CSS, just add the following code to your CSS
[cc lang=”css”]/* 4 rounded corners */
-webkit-border-radius: 10px; // for Safari and Chrome browsers
-khtml-border-radius: 10px; // for Konqueror browser
-moz-border-radius: 10px; // for Firefox browser
border-radius: 10px; // for browsers that support CSS 3
[/cc]
Of course, change the values (10px) to whatever value you want to change the corner radius.

If a browser doesn’t support rounded corners, it will just show square corners.

For more information, visit http://www.css3.info/preview/rounded-border/

Free Tech & Business Books

Borders Books has gone out of business. The ebook revolution is here. If you read technology and business books like myself, you’ll be happy to know that you can access a lot of free, new books online at Safari / ProQuest. The catch is you need to access the site as a member of your local library.

For the San Francisco Public Library, the link is at

http://sfpl.org/index.php?pg=2000005001

 

Continue reading Free Tech & Business Books

eBay Tricks for Success

Yesterday I got a call from eBay’s Seller Outreach department. They gave me some useful tips on improving my sales. Here they are:

  • Optimized Title 
    Put keywords closer to the beginning of your listing titles than at the end. e.g.
    BAD:  8GB RAM Quad Core Processor T420 Thinkpad Laptop by Lenovo
    GOOD: Lenovo T420 Thinkpad Laptop Quad Processor, 8GB RAM, other selling points
  • Offer FREE Shipping
    You can price an item $5.00 and charge $2.50 for shipping or you can price the item $7.50 with FREE shipping. By offering FREE shipping, eBay will automatically give you 5 stars for your shipping and handling rating category. Plus, people like “free”. Of course, free could just be for the cheapest shipping. You can charge extra for priority or overnight shipping.
  •  Custom Fields
    When creating a listing you can add many custom fields  like Condition: New, Material: Wood. Adding custom fields will help you get found.
  • Put Links To Your Website From Your “About Me” Page
    eBay doesn’t allow external links in product listings. But, you can put external links in your “About Me” page.
  • Offer Discounts
    Create a Facebook Fan page and link to it from your “About Me” page. In your product listings, tell customers they can get 10% off by going to your “About Me” page and “fanning” you. Then, they can notify you when that’s done so you can apply the discount before they pay.
  • Use 30-Day Good Till Canceled and Don’t Let Listings Expire
    Each listing shows the number sold. The larger this number, the higher the listing gets in search results. Don’t let listings expire so that this number continues to grow.
  • eBays Apps
    Browse eBay Apps and use some apps like the “Analytics” app to help you manage.
  • eBay Advanced Seller Guide
If you sell at least $3000 worth of items in a 12 month period and have an overall rating of no lower than 4.6, you will automatically get “Top Rated Seller” status which pushes your listings to the top of search results. This will obviously lead to increase visibility and potentially more sales.

Batch Processing / Automation Tips

Text Processing

Dreamweaver Find and Replace (w/ Regular Expressions)

Finding and replacing text is pretty straightforward. For example, you can find all text matching “car” and replace them with “cars”. Other types of find and replace are not so obvious. Here are some examples.

  • Replace “x” with “x followed by a tab”
    This is useful when you want the text to be tab delimited so you can copy and paste it all into Excel so that each column (separated by a tab) will appear in its own column for further processing.
    FIND: x
    REPLACE: xt
    REGEX: checked
  •  Replace new lines with “x newline”
    This is useful if you need to edit text that appears at the end of a line.
    FIND: n
    REPLACE: xn
    REGEX: checked
  • Wrap multiple values (one on each line) with single quotes (‘x’)
    This is useful when you’re building a long drop down list of options in the format
    <option value=’a’>a</option>
    <option value=’b’>b</option>
    <option value=’c’>c</option>

    FIND: n
    REPLACE: ‘n’
    REGEX: checked

Continue reading Batch Processing / Automation Tips

Windows Command Prompt Shortcuts

Recently I had to do some Recently I had to do some stuff in Windows Command prompt. I got tired of having to type everything out letter by letter so I found these shortcuts.

Copy Text To Clipboard

Highlight  the text you want to. It will be copied to your clipboard.

Paste Text Within Windows Command Shell

Right-click your mouse to paste

Auto-Complete Entering Commands

Type the first few letters of a command or file / folder path and then hit TAB

Cancel The Currently-Running Program

Hit CTRL+C