Dynamic Float top positions

No Comments

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {

counter = $("#container > div").size(); // count total immidiate children of container
columns = 3;

leftpos = 0;
var myarray = [];
var temp = [];
temp[0] =temp[1] = temp[2] =0;
j=0;

for(i=1;i<=counter;i++)
{

width = $("#div"+i).width();

$("#div"+i).css('left',leftpos+'px');
$("#div"+i).css('top',temp[j]+'px');

$("#div"+i).css('display','block');

leftpos = leftpos + width;
myarray[j] = $("#div"+i).height();

temp[j] = temp[j] + myarray[j]

j++;
if(i%columns==0) {leftpos =0; var myarray = []; j=0;}

}// end of for loop

});

</script>
More

Poedit – Useful tool for multilingual sites

1 Comment

Poedit is cross-platform gettext catalogs (.po files) editor. It is built with wxWidgets toolkit and can run on any platform supported by it (although it was only tested on Unix with GTK+ and Windows). It aims to provide more convenient approach to editing catalogs than launching vi and editing the file by hand.

Features

Here is a brief features list:

  • Unlike other catalogs editors, Poedit shows data in very compact way. Entries are aranged in a list, so that you can easily navigate large catalogs and immediately get an idea about how big part of the catalog is already translated, what needs translating and which parts are only translated in a “fuzzy” way.
  • Runs on Unix and Windows systems.
  • Plural forms support. [1.3.0] More

Connectivity & Accessibility among Windows, Linux & Mac

No Comments

Connect from Host MAC to Virtual Guest Windows using SSH & HTTP

Background Information.
SSH runs on port 22
HTTP runs on port 80

SSH command can be used many useful keywords such as
-l is for specificing login
-v is to run the command in debug mode. Its always nice to know what is happening behind the scene

Example comand.
>ssh -v -l LoginNameOfGuestMachine IPofGuestMachine

More

How to Install and configure a Hosting Linux Suse Server 11.1

No Comments

This is a detailed description about how to set up an OpenSUSE 11.1 server that offers all services needed by ISPs and hosters: Apache web server (SSL-capable), Postfix mail server with SMTP-AUTH and TLS, BIND DNS server, Proftpd FTP server, MySQL server, Dovecot POP3/IMAP, Quota, Firewall, etc. This tutorial is written for the 32-bit version of OpenSUSE 11.1, but should apply to the 64-bit version with very little modifications as well.

I will use the following software:
More

Setting up a development server for testing purposes

No Comments


Setting up a development server for testing purposes.

Most web developers will use a web hosting company to host their websites. It makes perfect sense to outsource the most critical aspect of your web presence to professionals. Web hosting is one area where you can not make do with good, it has to be great.

With that said it can sometimes be very beneficial to have a test bed where you can develop your site locally without having to actually upload your work to your web host. If your site is simply a static site written in html then there really is no need to use anything more than a web browser and place your files in a folder on your computer. But what if you want to be able to test new code and scripts before they are sent to the server. You could simply create a new directory on your web host and use that for development, but then you need to spend time uploading, testing, editing then uploading again, it can be a very time consuming process. More

How to add Video uploading, converting and playing facility using php

No Comments

There are number ways to add support of Video uploading, converting and playing facility using php.
Uploading be achieved using Jquery Uploadify plugin. Its really nice. but make sure that you have set the PHP max UPload size and file size, you might also increase your script execution time if you are dealing with heavy files. More

Older Entries