2009/04/13

swape09 theme

Filed under: themes — Tags: — admin @ 7:36 pm

screenshot

Here is my “swape09″ wordpress theme.

 

850px width and centered. jQuery Ready, simple and easy. Right side menu.

download.

2009/03/01

rsync

Filed under: Tips & Tricks — Tags: , , — admin @ 10:09 pm

I sync my picture folders and my music and documents to my backup server via rsync.
I use ssh on my server. Rsync is fast way of syncing my files.

Here is the commend line

  1. rsync -vrutzp –exclude=.DS_Store -e "ssh -p 22" /Users/swape/Sites me@myserver.com:/home/mysite

I use:

  • (–exclude=.DS_Store) to exclude the mac files
  • (-e “ssh -p 22″) to use SSH port 22
  • (/Users/swape/Sites) my local directory
  • (me@myserver.com:/home/mysite) my server
  • (-v) verbose mode to see the output
  • (-r) recursive into directories
  • (-u) using update mode
  • (-t) preserve modification times
  • (-z) compress file data during the transfer
  • (-p) preserve permissions

After writing this to my console I enter the password for my server and its done!

This is the fastest way of updating my site from my local disk.
The good thing about this that I use -u so it does not upload the files that have not been changed on my local disk. You can also drop the -v and make an Automator app but then you have to make the public key for your ssh connection so you don’t have to enter the password each time you running the app.

Here is a link to manual on how to make public key http://sial.org/howto/openssh/publickey-auth/

And this is the rsync manual http://samba.anu.edu.au/ftp/rsync/rsync.html

2008/05/12

Horizontal menu

Filed under: Tips & Tricks — Tags: — admin @ 9:04 pm

Here is an old trick to make horizontal menu with CSS.

First you have to make a list with UL and LI tags.

  1.  
  2. <ul class="menu">
  3.     <li><a href="http://swape.net">My homepage</a></li>
  4.     <li><a href="http://linux.org">Linux.org</a></li>
  5.     <li><a href="http://google.com">Link to google</a></li>
  6. </ul>
  7.  

Ok here is a list. Now we must make the list items to be horizontal and not vertical. So we must use CSS to set the float to be left and make the list-style: none;

  1. .menu li{ float: left; list-style: none; }

Then we must make them look like a buttons. So we add some borders and padding and margins. Then the whole CSS code look like this:

  1. .menu li{
  2. float: left;
  3. list-style: none;
  4. font: 10px Verdana, Arial, Helvetica, sans-serif;
  5. }
  6. .menu li a {
  7. display:block;
  8. padding:3px;
  9. margin:1px;
  10. border:1px solid #ccc;
  11. text-decoration:none;
  12. color:#332;
  13. background-color: #EEE;
  14. }
  15. .menu li a:hover{
  16. color:#EEE;
  17. background-color: #331;
  18. }

You can download the example file here: Horizontal CSS menu

2008/04/24

VolumeSize

Filed under: Apps — Tags: , — admin @ 9:51 am


VolumeSize is a free small mac app that shows size of all your disks that are attached to your mac. (including the internal hard drives)

Works on PPCs and Intel Macs.

VolumeSize-app

SwapeStarter

Filed under: Apps — Tags: , — admin @ 9:49 am

This free windows program is very useful to make a startup menu from an autorun CD/DVD under windows env. Or just a menu to run a command or program.

You can list 6 different programs to start from.

All the text, heading image and titles are configurable from an ini file.

my_starter

PassKeeper

Filed under: Apps — Tags: , — admin @ 9:47 am

Sometimes it is hard to remember many passwords. PassKeeper is password manager program to stores all your password.
You can export passwords to xml file. PassKeeper dose also generate random passwords so you can have a strong and random made passwords that is hard to crack.

passKeeper

© Alireza Balouch 2012 .