Cocoa : Get String Value of Textbox

August 9th, 2009

// txtname is textBox

NsString *myTextValue ;

myTextValue = [txtname stringValue] ;

Cocoa : Check A String Is Null or Not

August 9th, 2009

Code: How to Check if a String is blank

NsString  *mystring ;

if ([mystring isEqualToString:@”"]    )
{

// Return True ;

}

Promt a Message Box

August 9th, 2009

 Its Very Simple Like

NSRunAlertPanel(@”Your Heading”, @”Your Message”, @”Your Button1″,@”Your Button2″, return);

Convert Your http to https

June 6th, 2008

 Create a .htaccess file and copy the code from below as it is , and upload the folder you want to convirt http to https .

Be if you have .htaccess file in that perticuler folder . If yes donwload the file and add the below code

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Joomla

March 13th, 2008

Hi ,

You can customise your joomla module, component anytime .
Write us to know more about this

Customise your wordpress blog

March 13th, 2008

You can customise your WordPress Template .
please give a look

Custom WodPress Blog Template

.htaccess redirect url

March 13th, 2008

You can rediret your url .
edit your .htaccess file and replace the file names
Redirect oldfile.html newdomain/newfile.html

.htaccess allow single file

March 13th, 2008

You can allow single file unprotected and rest of others can be protected
just about to replace your file name and password file

<FilesMatch [^sample.php]>
AuthUserFile /fulladdress of your password file/filename
AuthGroupFile /dev/null
AuthName ‘Members Only’
AuthType Basic
require valid-user

</FilesMatch>

.htaccess protect single file to perticuler folder

March 13th, 2008

In order to protect a file, just replace Directory directive with Files:

<Files sample.cgi>
AuthType Basic
AuthName "Protected Access"
AuthUserFile /usr/local/apache/passwd
Require valid-user </Files>

How do I protect a directory with .htaccess?

March 13th, 2008

If you have a folder on your website that contains sensitive or restricted information, you can password-protect it to prevent unauthorized visitors from seeing its contents using what’s called “HTTP authentication” . There are two ways to password protect folders/directories on your website.

 The .htaccess file should contain the following 4 lines:
AuthType Basic
AuthName “Some Description”
AuthUserFile /[home dir full path]/[passwordfile]
Require valid-user