Halaman

Senin, 19 Juli 2010

DASHBOARD WIDGETS ON MY MAC OS X DESKTOP?

I've fallen in love with Dashboard on my new Mac OS X Tiger system, but I hate having to type f12 to get them to show up. Is it possible to have my dashboard widgets show up on my regular desktop?


Dave's Answer:

It's not only possible, but it's pretty easy and darn fun! Here's what you need to do...

First, open up Terminal (Applications --> Utilities --> Terminal) and type in the following, exactly as you see here:

defaults write com.apple.dashboard devmode YES

You can just copy and paste from this Web page if you're concerned that you might type in something incorrectly, of course.

You'll get another regular system prompt within Terminal if it works, there's no other output to the defaults program.

Now log out of your account by choosing Apple --> Log Out, and log in again (You need to restart Dashboard).

Ready for the fun now? Press f12 to bring Dashboard up, then drag one of your Dashboard widgets around. While you're still dragging it around (that's critical: keep that mouse button down!) press f12 again.

Poof! Your Dashboard vanishes, but the widget's still visible. Move it to where-ever you want on your screen and it's there, running, fully functional, without the rest of Dashboard around!

You'll notice that it lives above everything else on your screen (at least, I don't know how to push it behind other app windows) so I think you'll have the best results with small widgets that can be tucked into a corner or lined up neatly on an edge.

To move the widget back into the Dashboard world, reverse the trick: begin dragging the widget, then, while still keeping the mouse button down, press f12, then let go of the mouse button. The widget will be restored to its regular Dashboard layer.

dashboard widget on the Mac OS X desktop

In the screenshot above, you can see the dashboard Weather widget floating above Safari and adjacent to the little floating clock from the Date and Time System Preference.

This is a really cool little hack that I like a lot! My thanks to William Ayer for his help on this.

Rabu, 14 Juli 2010

Using SSI with WordPress





Server Side Includes (SSI) are a very powerful tool that can be
used to update multiple pages on a site quickly and with minimum fuss.


e.g. Imagine you had a site and you wanted to include a list of
recommended merchants at the bottom of every page.  What happens if one
of the merchants changes their affiliate link, or drops you as an
affiliate, or simply does not convert?  If you site had 100 pages, you
would have to manually update 100 pages and re-upload all 100 pages. 


With SSI, you would have this list of merchants in a single text
file.  You would then “include” that text file in all of the pages on
your site.


If you need to change a link, you simply change the link in the text
file and re-upload that one file.  The merchant list will then be
updated on every single page of your site.


Typically I’ll have 4 or 5 of these “merchant files” for any site I
build.  The list of merchants and ads shown in these files will be
geared towards the section on my site in which they will appear.  e.g.
on a contact lens site, I would probably have one merchant file for the
pages advertising prescription lenses, and another merchant file for
cosmetic lenses (those lenses that are just for appearance).  I might
even have a separate file for “halloween lenses”, and include photos of
vampire eyes, or cats eyes – whatever is hot at the moment.


By keeping my merchant lists to a few separate files, I can quickly
and easily swap out merchants, add in new promotions (e.g. at Halloween
there are always special offers, and these can be added to all
“Halloween” related pages in a few seconds) and have total control over
what ads are showing on the various sections of my website.  If changes
need to be made, I don’t need to edit every page on my site, just my
include files.


Do you see the power of this?


To help with SSI in WordPress sites, there is a plugin I recommend.  I
have it working on a WordPress 2.7.1. installation so can confirm it is
compatible with this version of WordPress.


WordPress Plugin: Include
It


Download and install it.


Now, in an HTML editor (or text editor if you prefer), create the
file that you want included in your pages.   Construct it in standard
HTML.  It can include a table, headers, affiliate links, text, images
etc.  When you have finished the include file, save it to the root
folder of your site.  You can give it any name you want, e.g.
merchants.txt, merchants.html etc.


Now, with the plugin active, simply add the following code in the
position of your WordPress post that you want the merchant list to
appear:



[include file=merchant.txt]


Save your post, and you are finished.


The contents of the merchant.txt file should display in the post.


Add this line to every post you want the list to appear in.  When you
need to change the merchant list, simply edit the merchant.txt file,
and upload it.  The merchant list will be updated on every page that you
added it to.


Do you have any other uses of SSI that you think readers of this blog
would be interested in?  Please feel free to leave comments on this
article below.  You do not need to register to leave a comment.

Sky Drive Attachment WLW Plugin 1.0

Windows Live SkyDrive is a special service that is
provided by Microsoft
for free. It allows you to store and access your personal files from
anywhere online & it gives you an enormous 25GB space. If you are a
blogger and use Windows Live SkyDrive as your online storage then Sky Drive
Attachment WLW Plugin 1.0 is a must for you. As the name says this
plugin is compatible with all the versions of Windows
Live Writer
and is supported on Microsoft Windows XP and Windows
Vista. This plugin is pretty simple to use. It allows you to access and
manage your Windows Live SkyDrive
account right from Windows Live Writer interface. You can use Windows
Live SkyDrive Attachment
Plugin to upload, and use your file within your blog posts as
attachments. All you have to do is insert your login details and all the
files are shown, now you can select the files which you want to use as
an attachment. For easier access this plugin can
also be used from the sidebar of Windows Live Writer. It is an essential
plugin for Windows
Live
Skydrive user, go and download it now!
Sky Drive Attachment WLW Plugin 1.0 in sidebar
Sky Drive Attachment WLW Plugin 1.0 in WLW Plugin ListSky Drive Attachment WLW Plugin 1.0 Asking for Login Details

Selasa, 13 Juli 2010

Cara Mengubah Tampilan iklan kumpulblogger

Aduuh bingung juga ya ama iklan kumpulblogger,tidak dapat disesuaikan
dengan template blog kita,lihatlah template blogku ini yang serba
gelap,sedangkan script dari iklan kumpul blogger hanya menampilkan putih
saja dan gak ada menu untuk mengubahnya sesuai dengan template
kita,tapi jangan takut deh...mungkin dengan tutorial yang satu ini
kalian bisa tersenyum kembali,cos tampilan iklan kumpul blogger akan
bisa kamu sesuaikan dengan template blog kamu.ni jalan alternatif juga
agar blog kamu tetep terlihat bagus,ha ha ha.....
Caranya
mudah kok,lihat langkah2 dibawah ini:
  • Login Ke blogger
  • Masuk
    ke Dasbor,
  • klik Tata Letak.
  • klik Edit HTML.
  • Pilih
    atau beri tanda cek pada "Expand Template Widget" download dulu
    template kamu untuk keamanan.
  • Cari kode <b:skin><![CDATA[
  • Kalo sudah
    ketemu letakkan kode dibawah ini tepat setelah kode <b:skin><![CDATA[

    .garping,.garpinghor
    {

    border: none
    !important;

    }
    .garping table,.garpinghor table {
    border:#FFFFFF solid 1px !important;
    background-color:#FFFFFF !important;
    }
    .garping td,.garpinghor td{
    color:#000000 !important;
    background-color:#FFFFFF !important;
    font-family:arial !important;
    font-weight: !important;
    font-style: !important;
    }
    .garping a,.garpinghor a{
    color:#000080 !important;
    font-family:arial !important;
    font-weight: !important;
    font-style: !important;
    }
    .garping a:hover,.garpinghor a:hover{
    color:#FF0000 !important;
    }
  • Sehingga akan menjadi seperti dibawah ini:

    <b:skin><![CDATA[.garping,.garpinghor {
    border: none !important;
    }
    .garping table,.garpinghor table {
    border:#FFFFFF solid 1px !important;
    background-color:#FFFFFF
    !important;

    }
    .garping td,.garpinghor td{
    color:#000000 !important;
    background-color:#FFFFFF
    !important;

    font-family:arial
    !important;

    font-weight:
    !important;

    font-style:
    !important;

    }
    .garping a,.garpinghor a{
    color:#000080 !important;
    font-family:arial !important;
    font-weight: !important;
    font-style: !important;
    }
    .garping a:hover,.garpinghor a:hover{
    color:#FF0000 !important;
    }
  • Simpan
    template.
  • Untuk meletakkan iklanya terserah kamu, bisa di
    sidebar seperti saya misalnya,tapi kamu letakkan script seperti berikut
    dibawah ini:

    <div style="overflow:hidden;width:430px;height:250px;padding:10px"> kode iklan kumpul blogger di sini
    </div>

  • Dan
    untuk ukuran kamu bisa ganti yang berwarna merah itu sesuai ukuran yang kamu kehendaki.ok,semoga
    bermanfaat!

Using server-side includes (SSIs) to add content to your web pages

What is an SSI?

A server-side include is code in a web page that tells the
server to add some specified information at that point in the page. It's
a way to extend the content of your page in some useful ways.


Caution: SSIs don't work on every web
server, and the details vary from one to another. This page describes
features which I know work on Apache and Microsoft IIS servers, and are
probably applicable to others.


Ask your web hosting company if (a) you can use SSIs, (b) what file
naming conventions you have to use for them to work, and (c) where you
should keep the files that use them. Then, as long as the answer to (a)
is yes, you can get started.


How do they work?


Unless otherwise instructed, a web server just sends the content of a
web page to the client, your browser. But for an SSI to work, the
server must parse (read) the file, find all the SSIs, and process them
before sending the content to the browser.


The web server can be set up to parse all files (not usual), in which
case, you can name your files with the usual .htm
or .html extensions. However, the usual case is
to have a specific extension set up for parsed files - usually .stm, .php or .asp.
If you use the wrong extension, the SSIs will just be ignored. The
folder that holds them must have appropriate execute or scripting
permissions too, or they will not work.


What can they do?


There are three main uses: to take standard text from another file
and insert it into the page (include files), to insert the value of a
variable quantity into the page, or to run a CGI script other than as
the action of a form.


I'm going to cover the basics here: include files, and some
variables. Many ISPs forbid the running of executables this way because
it can be a security risk, so I'm not going to discuss them here. If you
want detailed information on everything that can be done, a useful
starting point is the link to external site Apache site, or if you have a commercial web
server, the manufacturer's site or the online help should have details
of which directives and variables are available for its product.


Including files


To include some standard text (for example, a disclaimer or
copyright), put one of these lines in your parsed web page where you
want it to appear:


<!--#include file="<em>filename.ext</em>" -->
<!--#include virtual="<em>/path/filename.ext</em>" -->

Note that although this looks like an HTML comment, you must put a
space before the closing -->. Use the first
form if the file is in the same directory or you are specifying a
relative pathname (e.g. ../../copy.inc); the
second for an absolute path (e.g. in another virtual directory - /includes/footer.inc), but never a full HTTP URL. The
file should contain either plain text or HTML markup (inbcluding scripts
of couurse), and can have any name you like, though a .inc
extension is conventional.


Example:


If the file copy.inc includes this text:


<p>The complete contents of this site are copyright <br />&copy; Lois Wakeman 1999-2008 except as expressly noted.</p>

then, if you have this code in your web page:


<!--#include file="copy.inc" -->

you will see this in the browser:


The complete contents of this site are
copyright © Lois Wakeman 1999-2008 except as expressly
noted.


Adding variables to the page


The web server has access to certain standard variables and file
information, which you can put in your page. The most useful for the web
page author are probably:


  • <!--#flastmod virtual="/path/filename.ext"
    -->
    , and its file equivalent, which return the last modified
    date for the specified file.
  • <!--#fsize virtual="/path/filename.ext"
    -->
    , and its file equivalent, which return the size of the
    specified file.

    For example, on a downloads page, it might be useful to have this
    code:


    <a href="/help/styles.zip">Download</a> this file,<br />size <span class="highlight"><!--#fsize virtual="/help/styles.zip" --></span><br />(last updated on <span class="highlight"><!--#flastmod virtual="/help/styles.zip" --></span>).

    which appears in the browser like:


    Download
    this file, size Kb
    (last updated on ).


  • <!--#echo var="variable" -->,
    which returns one of a number of variables concerning the web server's
    environment, the current page, how it was fetched, by whom, etc. Some
    variables that may be useful for web pages are DOCUMENT_URI,
    DATE_GMT, DATE_LOCAL,
    and LAST_MODIFIED, for example:
    • This document can be found at http:/
      - variable DOCUMENT_URI
    • It's
      in Uplyme - variable DATE_LOCAL
    • The page was last modified on
      - variable LAST_MODIFIED


Pros and cons


If you have a large site with a lot of common page elements, include
files can make a big difference to how easy it is to maintain the site.
Instead of updating, say, 50 pages with the same menu or navigation bar,
you can just update the include file once.


Because all the processing is done at the server, you do not
introduce any browser compatibility problems using them. For example,
you can insert the last modified date using JavaScript, but that won't
work for everyone.


Because a page containing SSIs must be parsed, there is a small
processing overhead, but this is not generally significant in my
experience - though a very long page might be noticeably slower to load,
I guess. (But you don't have any of those, do you?)


If you have made a mistake on a parsed page (for example, an include
file cannot be found because the path is wrong), users will get a
message different from the familiar 404 error, which may confuse them
(for example, error processing test.asp file).
This is only a problem if you don't test your pages properly before
publishing them!


So, on balance, if you need the facilities offered by them, I'd say
they were worth the trouble of learning and using.

JavaScript "document.write"

One of the most basic JavaScript commands is document.write.
This simply prints the specified text to the page. To print text
literally, enter the text in single quote marks inside parentheses like
so:


	document.write('Hello World!');

The code above will cause the phrase "Hello World!" to appear on the
page.


You can also use document.write to print
variables. Enter the variable name without quotes, like so:


	var mytext = "Hello again";<br />	document.write(mytext);<br />

Note that if quote marks are placed around the variable name, the
variable name itself will be printed (instead of the variable value).
You can also combine variable values and text strings by using the +
sign:


	var colour1 = "purple";<br />	var colour2 = "pink";<br />	document.write('<p>colour1: ' + colour1 + '<br>colour2: ' + colour2 + '</p>');<br />

Notice the way the variable names are used literally as well as for
passing the values. This will print the following:



colour1: purple
colour2: pink



Remember, text inside quotes will be printed literally, text with no
quotes is assumed to be a variable.

colour1: purple
colour2: pink

How to Update Multiple Web Pages Using JavaScript

Using JavaScript, you can create a separate file which contains
content for your web page. To update all the pages simultaneously,
simply update the JavaScript file.

Pros:


  • Easy to implement.
  • Does not rely on any special HTML extension or server configuration.


Cons:


  • Relies on the user having JavaScript enabled.
  • Updates are more tricky than other methods.



Step 1: Create JavaScript File


Create a plain text document and name it with a .js
extension, for example masterscript.js.
Using the JavaScript document.write
method
, enter the content you want to be displayed on every page
like so:



document.write("<div style='color:blue; font-size:12pt;'>");

document.write("© Copyright Myname 2004");

document.write("</div>");


Note: You don't need to include script tags in this file.


Step 2: Add JavaScript Code to Pages


On every page where you want the content to appear, insert the
following code:


<script language="JavaScript" type="text/javascript"
src="masterscript.js">

</script>


To change the content on every page, edit the contents of the masterscript.js file.