Monday, 13 January 2014

Unable to connect to internet via wifi after upgrading to mavericks - Solution

After Apple released mavericks as a free upgrade; out of a lot of excitement I have upgraded my mac to this new OS. I enjoyed it a  lot but disappointed with one problem ie. I was able to connect to internet with a lan cable but not with a wifi network. Since the upgrade was new I couldnt figure out the exact problem nor able to google it. After few days of research, got the solution from one of the mac experts. Follow these steps to get your internet connection back via wifi. 

1. Backup these 2 files:
/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
/Library/Preferences/SystemConfiguration/preferences.plist
(ie. Copy these two files into some safe place)
 2. Delete these 2 files and reboot the system.
 3. Reconnect to internet with wifi. 


 If there are no hardware problems and if proper internet settings are persisted, above steps would solve your connectivity problems. A detailed screenshot of the files is as shown .


Sunday, 22 September 2013

Tweak to configure yii to enable gii module and logger issues

In Yii, we frequently use the 'GII' module to generate different framework. When we first create our yii application and try to use the functionality of gii module , it throws an error that it is not able to create the requested files.

The similar issues holds for logging in yii. Even though all the configurations are correct , yii will not be able to log the things to file.
The main root cause for this is the permissions problem. To solve both the problems all we need to do is to give write permission to the yii application folder.
The below command does that in an mac /linux system

sudo chmod -R 777 THE/PATH/TO/APPLICATION


Make urls in path format in YII framework

This post lets you configure your php application built on top of yii framework to had the urls in path format. Follow these steps to get the things confired in just 5minutes.

1. Uncomment the below lines in main.php(under protected/config/main.php) and add the red color line  as a parameter as shown below
'urlManager'=>array(
   'urlFormat'=>'path',
 'rules'=>array('<controller:\w+>/<id:\d+>'=>'<controller>/view',                          '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
   ),
'showScriptName'=>false
  ),
2. Create a file called .htaccess in the root path ie. the path in which the folder named 'protected' is present. Paste the below content in .htaccess file and save it.
RewriteEngine On
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php

3. If the above doesnt yield the required path format change the content in the .htaccess file to
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
This will make you access the web content in path format as
www.example.com/controllername/actionname/parameters.




Wednesday, 9 May 2012

Get Email Alerts on Mobile for free via "Sms"



                      Just imagine yourself having an Sms alert whenever you receive a new mail into your gmail/yahoo/other inbox without even having an internet connection!!. In this Exciting world around us, Where Email is the primary source of communication, it's important to keep ourselves updated with Emails!!! So let's explore the way to get 'free' Email alerts on our Mobiles via "Sms".... There are many ways where you can get Free Email alerts for your phone. Lets see some of the selected and best methods to create your Email alerts for free.. Both the tweaks jotted below requires you to forward your email (let it be from gmail/yahoo or any other) to one of these services.


Tweak 1: Using the most famous Hotmail/Live service. 


Hotmail/ Windows live offers a free service that sends an sms alert to your phone when you receive a mail into your live/hotmail inbox. So we can use this service to get your personal email alerts just by auto forwarding your personal email to hotmail inbox. The steps to setup the service is as follows.

Step 1: Create a windows live or hotmail account which just takes few seconds.
Step 2: Navigate to this link https://devices.live.com/Devices/Mobile to configure your mobile number for receiving alerts by clicking on the "Add a phone" link present on the page. Go on with the instructions present later.
Step 3: Forward your gmail/yahoo or any of your personal mail to the email created in Step 1  to receive instant alerts. The forwarding instructions can be found in this page.

Tweak 2: Our friendly way2sms.com


Way2sms is yet an other service that offers the same functionality as hotmail.all you need to do is create an account with www.way2sms.com , register your mobile for "Mail Alerts" and follow the instructions present in the "Mail Alerts" tab.
The only disadvantage with way2sms is that you need to renew the subscription for every 14days. So I would personally recommend to go with hotmail.com to get your email alerts.

Hide your personal files/folders from others (Mac Users)


Did you ever feel like hiding your personal files or folders from your friends or others atleast in  one or other situation!!. I would say 95% of the users say yes and here is the answer..
There are lot of softwares/ tools on the internet that will hide/unhide your files. But there may not be a possibility to have a software in your system every time. So lets see the unique way to hide your files/folders.

Step 1: Open your terminal from the applications folder or from the Launch.
Step 2: Browse to the location where your file/folder is present on the local drive. You can use different command prompt commands like "cd"(change directory) , cd.. and so on to reach your final destination.
Step 3: Use this command to hide your files
mv [file or folder name] .[file or folder name] without the square [] brackets
eg: mv blog.doc .blog.doc
                 or 
      mv Folder/ .Folder/

To unhide the file/folder you have hidden

All the above steps are same.
In Step 3 instead of the above command use this
mv .[file or folder name] [file or folder name] without the square [] brackets

The basic mechanism thats happening here is that it renames the file appending a  dot (.) at the beginning of the file name which makes the file to be hidden. Removing the dot unhides the file.

Locating your file in Library/System will increase the hiding capacity of the file.
You are done!! you files can be hidden just in a second without any software.. 
Windows users!! don't worry here is the post for you to hide/unhide files/folders in Windows..

Hide your personal files/folders from others (Windows Users)

Did you ever feel like hiding your personal files or folders from your friends or others atleast in  one or other situation!!. I would say 95% of the users say yes and here is the answer..
There are lot of softwares/ tools on the internet that will hide/unhide your files. But there may not be a possibility to have a software in your system every time. So lets see the unique way to hide your files/folders.

What ever may be the windows version you use, the basic command prompt is common thing in all. So lets tweak around the command prompt to hide your personal files. Here are the steps..
Step 1: Open your command prompt either from start-> run->type cmd or by simply pressing "windows key + r" and typing cmd.
Step 2: Browse to the location where your file/folder is present on the local drive. You can use different command prompt commands like "cd"(change directory) , cd.. and so on to reach your final destination.
Step 3: Use this command to hide your files

     attrib +h +s +r +a [filename] or [foldername] without the square [] brackets


Don't worry much about it ..
+h makes the file/folder as hidden
+s makes the file/folder as system file
+r makes the file/folder as read only file
+a makes the file/folder as archive file.. 
+ adds those attributes to the given file/folder

To unhide the file/folder you have hidden

All the above steps are same.
In Step 3 instead of the above command use this

    attrib -h -s -r -a [filename] or [foldername] without the square [] brackets

You are done!! you files can be hidden just in a second without any software.. 
Mac users!! don't worry here is the post for you to hide/unhide files/folders in macintosh..

Auto Forward your Mails from Gmail to other Emails.


To auto forward your gmail inbox to other email ids, follow these instructions

Step 1: Just go to "Mail Settings" link present at the top right corner of your Gmail page.

Step 2: In the "Settings" page, click on the link "Forwarding and POP/IMAP". Under the "Forwarding"      section click on "Add a forwarding Address" button and enter your Email address for which the mail has to be forwarded. Gmail sends the "Verification Instructions" to the entered Email.

Step 3: Click on the confirmation link in the entered email address.

Step 4:
Go to Original "Email " address redo steps 1,2. and click to forward the mail..