Add a Calendar Date Picker to a Form with jQuery
Target form/input elements by CSS
Need to target the submit button of your form without adding a class or an id to it? This might come up if you don’t have access to the actual form code for some reason. Luckily CSS can be used to take care of this situation. It may not work in all version of Internet Explorer, but who cares, nobody should be using that browser anyway.
Here’s the magic CSS:
input[type="submit"] {color:#eee}
ميزه جديده للفورم فى HTML5 – “form”
السلام عليكم ,
هناك ميزه جديده فى HTML5
تسمح لك بوضع عناصر الفورم خارج تاج
<form>
مع امكانيه الإشاره إلى ان هذا العنصر ينتمى إلى فورم معين
تابع الكود التالى :
<form id=”contact_form” method=”get”>
<label>Name:</label>
<input type=”text” id=”name” name=”name”><label>Email:</label>
<input type=”email” id=”email” name=”email”><input type=”submit” id=”submit” value=”SEND”>
</form>
<textarea id=”comments” form=”contact_form”></textarea>
لاحظ ان العنصر <textarea>
يقع خارج الفورم و لكن تم الاشاره إلى انه يتبع الفورم عن طريق إضافه الميزه
form=”form_id”
مع مراعات إعطاء أى دى للفورم الرئيسى لتتمكن من الاشاره إليه
المتصفحات الداعمه :
- Opera 9.5+
- Safari 5.1+
- Firefox 4+
- Chrome 10+
Recovering a cPanel Server From a Crashed Hard Disk using rSync
Rsync is another very powerful command that is used to synchronize 2 directories between servers and only transfer the new files to the server. This is a great method for backing up data as it is low on bandwidth and it is also commonly used to keep clustered servers working together. The ending slashes are very important when using rsync. If you are not familiar with how it works, always make sure to have an ending slash on both the source and the destination and it should be fine.
In case we fail or accidentally destroy our HDD then we can get a new HDD and operating system from the datacentre and restore the data on a new drive. This concept can be used to migrate cPanel Servers from one server to another without loosing any data or creating any sort of downtime for websites hosted on the server.
This is how it will work:
1) Get the partitions from both the drives with:
# fdisk -l
2) Check to see if there are any drives mounted with:
# df -h

3) Let us assume that /dev/hdb3 is our CRASHED old drive and it is mounted as /mnt/old (yours can be different), but keep in mind that you need to know the mount point of the backup drive before we proceed further with the steps below.
Let us mount the CRASHED HDD if not already mounted with:
# mount /dev/hdb3 /oldHD
4) Now that the drive is mounted you can browse any files with:
# ls /oldHD/home
5) We are all set to move our data over to the new drive:
Run these rSync commands to move everything over:
rsync -vrplogDtH /oldHD/usr/local/apache/conf /usr/local/apache
rsync -vrplogDtH /oldHD/var/named /var
rsync -vrplogDtH /oldHD/home/* /home
rsync -vrplogDtH /oldHD/usr/local/cpanel /usr/local
rsync -vrplogDtH /oldHD/var/lib/mysql /var/lib
rsync -vrplogDtH /oldHD/var/cpanel /var
rsync -vrplogDtH /oldHD/usr/share/ssl /usr/share
rsync -vrplogDtH /oldHD/var/ssl /var
rsync -vrplogDtH /oldHD/usr/local/cpanel/3rdparty/mailman /usr/local/cpanel/3rdparty
rsync -vrplogDtH /oldHD/var/log/bandwidth /var/log
rsync -vrplogDtH /oldHD/usr/local/frontpage /usr/local
rsync -vrplogDtH /oldHD/var/spool/cron /var/spool
rsync -vrplogDtH /oldHD/root/.my.cnf /root
rsync -vrplogDtH /oldHD/etc/httpd/conf/httpd.conf /etc/httpd/conf
cd to the old etc directory:
#cd /oldHD/etc
And copy some files from here:
#rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc
6) We are done with the copying of all the files and cPanel should start recognizing all the old users and their files, but after we do all this it is highly suggested that you run all updates, and run the cPanel fix scripts i.e:
Updating software and restarting services:
#/scripts/upcp
#/usr/local/cpanel/cpkeyclt
#/scripts/sysup
#/scripts/exim4
#/scripts/easyapache (or apply this from WHM – search for easy apache)
#/scripts/securetmp
# /scripts/fixeverything
7) This is needed to update cpanel information. Please note, sshd might fail and not start after running fix everything. You have to login to whm, and go to the rpm installer and “FORCE” install opensshd-server, opensshd, opensshd-client and then restart sshd from whm.
Restarting services as:
#/scripts/restartsrv httpd
#/etc/init.d/mysql restart
#/scripts/restartsrv named
#/scripts/restartsrv exim
That is all we need to recover data from a CRASHED HDD.
Source : http://blog.eukhost.com/webhosting/restoring-cpanel-server-from-crashed-harddisk-or-migrating-cpanel-servers/
Force the Backup System on cPanel server now
use this command to force the backup system on the server right now .
#/scripts/cpbackup -force
or : –force
how to generate backup for all cPanel users in one step
Using SSH :
#for i in `ls /var/cpanel/users`;do /scripts/pkgacct $i ; done
How to Update cPanel License file
Using SSH :
#/usr/local/cpanel/cpkeyclt
افضل خطوط جربتها اثناء كتابه البرامج
Courier New
Consolas
و هذه بعض الخطوط الاخرى التى يمكن ان يفضلها البعض اثناء كتابه البرامج و الاكواد
طريقه اغلاق الكمبيوتر بعد وقت معين windows xp , vista , 7
Start -> RUN
Type : shutdown -s -t 3600
3600 = time in seconds !
———
للتراجع عن الامر , فى نفس النافذه اكتب :
shutdown -a
Reset Photoshop settings | طريقه اعاده اعدادات الفوتوشوب للاصليه
السلام عليكم ,
اولا قم بإغلاق برنامج الفوتوشوب .
اضغط و استمر فى الضغط على زرار CTRL + ALT + SHIFT
إذهب لفتح الفوتوشوب عن طريق كليك يمين و Open
تابع الفيديو لتفاصيل أكثر :
