Monday, 7 July 2014

How to format an external drive to work seamlessly with Macs and PCs without third party software

External drives allow you to quickly moves large files between computers. If you want yours to seamlessly work with both Macs and PCs, your external drive needs to use a filesystem that is supported by both platforms. The problem is that by default Windows uses NFTS, and Macs use HFS. Out of the box, Windows can not read or write HFS drives, and Macs are unable to write to NTFS drives.

There are free and paid third party solutions to get Macs to work with NTFS, and Windows to understand HFS. But these often cost money, are slow/buggy, or you may simply not have permissions to install software on the computer. Below I’ve outlined how you can use FAT or exFAT filesystems to make your external drive is compatible with Macs and PCs out of the box, for free.

Warning: Following this guide includes re-formatting your external drive, this will erase the data from your drive. Make a backup copy of files you don’t want to lose before starting.

Option 1: FAT

Pros: Works natively with all Macs and all PCs.

Cons: Can’t handle files that are larger then 4GB in size.

How to format using FAT:

1. Open disk Utility on your Mac. (Find it quickly with Spotlight, click on Magnifying glass and start typing Disk Utility.)

2. Select the drive you wish to format.

3. Select the “Erase” tab in Disk Utility.

4. Select MS-DOS (FAT) from the drop down box.

5. Click Erase and follow the prompts.

6. Let it finish, and you’re done.

Option 2: exFAT

Pros: Can work with large files.

Cons: Not compatible with older operating systems. You must have Mac OS X 10.6.5 or newer, and PCs need to be Windows Vista SP1, Windows 7, or newer.

Although it is possible to format a drive as exFAT from Disk Utility on the Mac, that drive will not work with Windows PCs, and that’s not what we’re after. To format the drive to work with both platforms you will need use a Windows computer to format the disk as exFAT.

Update: At the time of the original posting in 2011, there were some problems getting a Mac formatted exFAT drive working with Windows, it had trouble recognizing those drives. It appears the issue has since been fixed and disks formatted exFAT on OS X 10.7 (Lion) and 10.8 (Mountain Lion) are working with Windows. Mac instructions above will now work for exFAT. I will leave Windows instructions below for the benefit of Windows users.

How to format using exFAT (on Windows):
  • Plug the disk into a Windows Vista SP1 or Windows 7 computer.
  • Open the Computer window.
  • Right click on the drive, and select Format.
  • Select exFAT from the drop down box, and click on Start.
  • Done! Now this drive will work with Macs and PCs.
  • Although FAT is more compatible with older systems, the maximum 4GB filesize is very limiting. You would not be able to use this disk for long HD videos and large disk images, for example. For this reason I would recommend exFAT. By this point in time, most computers you encounter will work fine with exFAT.

Original Source : mactip.net

Wednesday, 18 June 2014

Best 40 website programmings languages..

Hi friendz,

There is a lot web programming languages available. Based on some research, here we listed some top web programming languages. I got some information from other reference sources in searching and then i have made some list here..

This results are in no way definitive and may even be wrong, but the results are from HTTP Header information, Request for file types (.php for example), Searches on forums, presentations and Google Educated guesses ;)

It is purly the programming languages that are serving through HTML.

Results

– Website — Programming Language Used
————————————————————-

Google – C, C++, PHP*, Ajax

facebook.com — PHP

youtube.com — Python

yahoo.com — PHP*

live.com — ASP.NET
wikipedia.org — PHP

msn.com — ASP.NET
blogspot.com — Python*

baidu.com — PHP

microsoft.com — ASP.NET
qq.com — PHP

bing.com — ASP.NET
ask.com — SSI

taobao.com — PHP

twitter.com — Ruby on Rails

adobe.com — ColdFusion

youku.com — PHP

soso.com — CGI*

wordpress.com — PHP

sohu.com — PHP

163.com — JSP

windows.com — ASP.NET
hao123.com — PHP

amazon.com — CGI

tudou.com — PHP

apple.com — PHP

ebay.com — CGI

linkedin.com — Scala/Java

yahoo.co.jp — PHP*

sogou.com — PHP

go.com — CGI

4399.com — PHP

paypal.com — CGI

mozilla.com — PHP/Python

aol.com — JSP

about.com — unknown

xunlei.com — PHP

56.com — PHP

flickr.com — PHP

craigslist.org — Perl

tmall.com — PHP

*guesses

Notes,

Based on the above results we see that PHP is the dominant language claming 50% of the top 40 websites. Also, ASP.NET seems to be only used in Microsoft properties.

If you see an error in the results I would love to hear from you. please leave a comment stating the correction. Thanks for reading.

Sources : Google, Yahoo, rogchap.com etc.

Tuesday, 17 June 2014

jQuery Validation submitHandler issue in Safari and Chrome

There is an odd issue with the jQuery Validation plugin’s submitHandler callback with Chrome. To validate the form I had my function setup as follows:


$("#signup_form").validate({
submitHandler: function(form) {
alert("Test");
form.submit();
}
});


The alert box and form submitted correctly in Firefox. However in Chrome, the alert box worked, but after that the form refused to submit. I narrowed down the issue to be with the actual name of the submit input on the form. I had named the submit input “submit”, which had some sort of conflict with the plugin. Renaming the submit input to anything else, like “newname” fixes the issue.
In short, to fix this, change:


<input type="submit" name="submit" value="Sign Up" />


to


<input type="submit" name="newname" value="Sign Up" />x

Thursday, 12 June 2014

5 Must Have Free WordPress Plugins for WordPress Website

WordPress is undoubtedly one of the best publishing platforms available on the web today. The best part about WordPress -its ability to customize websites through plugins.


WordPress currently lists more than 30,000 plugins in its directory and for a novice WordPress user, it’s a bit hard to determine which of these 30k+ plugins they need. Here is a list of 5 must have, well-build WordPress plugins every WordPress website could use. These are extremely helpful if you are planning for a long-healthy-fast site administration.


Jetpack by WordPress.com


Jetpack is a free bundle from worpress community.More than 30 tools which are extremely helpful for every WordPress website out there.


Installing and configuring Jetpack is a simple process. You will have to connect with your WordPress.com account and you are ready to use all the tools. Some tools are activated by default and you can activate the rest as per your choice.


jetpack-wordpress


Some Jetpack inbuild options are:


WordPress.com Stats, Jetpack Comments, Contact Form, Publicize etc..


Akismet


Akismet is your ultimate spam assassin. Spam comments will be your greatest head-ache once you start running a WordPresss website. Akismet is a one stop solution to spam handling, It is developed by Automattic as well.

Saturday, 24 May 2014

USB drive don't show your files

Hi friendz, my pen drive was affected by virus, then i cleared the virus using anti virus program. After that my usb files do not show to me when i try to load. But which gives the properties and sizes of the files.

Then i googled and find out the followin solution,

open command prompt and type the following

attrib -s -h -r G:*.* /s /d

Above I used G drive as my pen drive location. Change according yours.

try the trick buddies...

Saturday, 17 May 2014

Linux Web Server - Putty Commands

Hi Friendz, As we all know max. php web applications are run on Linux based web servers online. Putty tool does important role on connecting the web and do things very quickly.

So, have a look at the following commands for instant doings through putty tool in windows..

MySQL restart

#service mysqld stop

#service mysqld start

#service mysqld restart

Apache restart

#service httpd stop

#service httpd start

#service httpd restart

Other Basic Commands

listing Folders....

use "ls" instead of "dir"

For Entering into Directory..

cd folder_name

deleting Directory

rm folder_name

Friday, 9 May 2014

How to send emails from localhost in Xampp / Wamp / Lamp (PHP)

Hi friendz,

PHP mail function is very important one in project development. When we go to use and test this mail(), it would be working great in web servers but in localhost we may face more problems, ok we will test, how to solve this,

here we go,

First in your appache installation folder, check your php folder and inside open php.ini file.

search for a word (sendmail_path) and then you can see like below line code,

;sendmail_path = "\"E:\xampp\sendmail\sendmail.exe\" -t"

make a uncomment that file like below

sendmail_path = "\"E:\xampp\sendmail\sendmail.exe\" -t"

and you can see one more file

;sendmail_path="E:\xampp\mailtodisk\mailtodisk.exe"

dont uncomment the above one, let it be same like this

and then go to sendmail folder in your xampp path and open that folder
inside open that sendmail.ini file

here we use Gmail email configuration for our setup.

in smtp_server set up make it like below

smtp_server=smtp.gmail.com

and smtp_port make it like below

smtp_port=587

and finally one more thing

auth_username=your gmail username
auth_password=your gmail password

that is it guys. restart your apache and mysql, then it will be working sweetly.

Hope you guys get it easily.

 

 

 

Thursday, 8 May 2014

rmdir (Remove directory) in php

rmdir (Remove directory) is a  function in php. which is very useful in projects. sometimes when we try to remove files from server and localhost somewhat issues will be occurred even though we pass correct values with right functions, This things major on making directories and deleting directories.

so use the following simple php script for remove directories.
<?php
function rrmdir($dir){if(is_dir($dir)){
$objects
= scandir($dir);foreach($objects as $object){if($object !="."&& $object !=".."){if(filetype($dir."/".$object)=="dir")
rrmdir
($dir."/".$object);else unlink ($dir."/".$object);}}
reset
($objects);
rmdir
($dir);}}
?>

Hope it will be helpful for you guys.

Tuesday, 6 May 2014

Redirect Methods

Redirecting is very important method in web programming. Yes, Now we gonna see how to use Jquery & PHP default redirect functions in development.

Method 1: Redirection using Javascript
For any reason if you want to implement Redirection in your web application using Javascript. Then use this method. Jquery is not necessary to implement this way.

// It work same as HTTP redirect
window.location.replace("http://webexpertlabs.com");

// work same as above as it works for every browser
window.location.href = "http://webexpertlabs.com";

// alternative way and sometimes not compatible to some browser
window.location = "http://webexpertlabs.com";

Method 2: Redirection using Jquery
If you want to redirect your webpage using Jquery then you can follow this way.
Jquery library is needed to implement this feature.

var url = "http://webexpertlabs.com";
$(location).attr('href',url);

Method 3: Redirection using PHP
If you need to implement server side redirection in your Web application then you can use this way. Jquery has nothing to do in this method to Redirect Webpage using PHP

<!--?php
header("location:http://webexpertlabs.com");
?>
Enjoy!!! Hopefully this simple script helped you with your web development.
Source : webexpertlabs

 

Wednesday, 9 April 2014

How to Fix PHP Notice: Undefined index?

In PHP, we lot of time face the "Warning: Undefined index", when the ‘Undefined index’ notice occurs, most of the time it is a good practice to fix this than ignoring.


By doing simple thing we can resolve this issue, so lets fix it.


One simple answer – isset() !


eg:
<!--?php
$notify = "";
$uName = $_POST['username'];
$eMail = $_POST['email'];
$comment= $_POST['comment'];
if(isset($_POST['notify_box'])){ $notify = $_POST['notify_box']; }
// send the data to the database
?>


The same fix can be used for the above warning when working with $_SESSION, $_POST arrays.
But, there instances where harmless notices can be ignored.


We can fix this using the isset() function too. But on this instance, we can just ignore it by hiding the notices like this.

error_reporting(E_ALL ^ E_NOTICE);


You can also turn off error reporting in your php.ini file or .htaccess file, but it is not considered as a wise move if you are still in the testing stage.
This is another simple solution in PHP for a common complex problem. Hope it is useful.


Refer Help : siliconstation.com

Thursday, 6 March 2014

Background resize fix : IE8

Hi Fiendz,


Its been a headache when we think about to fix css in Internet explorer. Now i sort out a solution for resize background image issue in ie8.


I was googled for this more time, mmmmm, finally i came out with the solution of followin by one of forum friend,


To do this , Add the following style in your style property,


###########


filter: progid:DXImageTransform.Microsoft.AlphaImageLoader


(src='http://localhost/myproject/images/test.jpg',sizingMethod='scale');


###########


Note : It should be passed the full url for your images.


Try.

Wednesday, 5 March 2014

Jquery Snippet to hide some div by clicking outside

If we want apply something to hide by clicking outside the div or another div, use the following jquery code to do that.

which will be quite usefull often.

$(document).click(function(){
$("#div1").hide();
});

$("#div2,#div3").click(function(e){
e.stopPropagation();
});

in this example i use first div to hide, then i use div areas to leave the click.

Saturday, 1 March 2014

MYSQL Trick – ORDER STRING AS NUMBER

Sometimes you have to store numbers in text format. This is not a good practice, but sometimes there is no other option.

When you perform an “order by” this field,you can get something like this:

1 1
2 10
3 11
4 111
5 12
6 2
7 20
8 3

try the below query

select field from table order by field+0 asc

Thursday, 13 February 2014

WordPress Solution : Jetpack could not connected to WordPress.com

imagesHello Friendz,


I have JetPack Plugin and activate it for my own use only. But, I've got this message when try to connect to WordPress.com:


Error Details: The Jetpack server could not communicate with your site's XML-RPC URL. Please check to make sure http://bisneshost.my/xmlrpc.php is working properly. It should show 'XML?RPC server accepts POST requests only.' on a line by itself when viewed in a browser and should not have any blank links or extra output anywhere.


Are some of you who have experienced it and know how to solve it?


What I did for this issue,


I have suggested to re-edit for this load file...


so i have gone through to wp-includes/load.php file...


..I find this line: ini_set( 'display_errors', 0 );


..I changed the line to: @ini_set( 'display_errors', 0 );


Then I tried to reconnect my WordPress site with WordPress.com, and boom! It was successful! A miracle!


Its working.


Referral Source : http://premium.wpmudev.org/forums/topic/jetpack-could-not-connected-to-wordpresscom#