Sunday, October 27, 2013

How to create google app engine

Go to the link https://code.google.com/apis/console
 Login with your gamil account
 Click on create project
 Select following services
Google calendar API, google+ API
 Rename your project to PWAME
 Click on API Access from left panel
 Create an OAuth client ID
 Give your site information.

Use app ID and app secret in your APP.

Wednesday, October 23, 2013

Face book developer: How to get permanent Access Token

Hit to this URL and get Access token.

https://graph.facebook.com/oauth/access_token?client_id=YOUR_APP_ID&client_secret=YOUR_APP_SECRET&grant_type=client_credentials

Sunday, October 13, 2013

How to remove index.php? from url in Codeigniter 2 or upper version

Go to system->config file
Line # 207(site url method )
change '?' to only ' '

and Null index file of config.

Wednesday, July 3, 2013

How to make your laptop as a hotspot (Wireless router)

 Before we begin, you should make sure that you've got a laptop or desktop with a wireless card that isn't currently connected—if your laptop is connected to the wired network, your wireless card should be free, and we can use it to allow access to the internet. Note that you have to be plugged into a wired connection in order to share the connection wirelessly with others, or have a second wireless card. Readers should also note that this won't work on (some) work networks that use group policies to enforce TPS report cover sheet boredom and prevent you from having any fun at all.
Turn Your Windows PC Into a Wireless Hotspot
You'll want to start out by heading into the Network and Sharing Center through the Control Panel, or you can quickly get to it by right-clicking on the network icon in the system tray. Once you are there, find the link for "Set up a new connection or network".
You'll be prompted with a wizard that allows you to connect to VPNs, dial-up, or create a new ad hoc wireless network, which is what we want to do. You can easily use an ad hoc network to share files back and forth between two computers, but today we'll be using it for sharing the internet connection.
Turn Your Windows PC Into a Wireless Hotspot
You'll need to give your network a name and choose some security options—remember that WEP is extremely easy to crack—and you'll want to make sure to use at least a decent sized key even for WPA2. The really important option on this page is to remember to check the box for "Save this network".
Turn Your Windows PC Into a Wireless Hotspot
At this point your ad hoc network should be running and ready to start connecting your devices, but you'll want to hold off just a minute.
Turn Your Windows PC Into a Wireless Hotspot
You'll notice that the ad hoc networks that you create get added to the quick-select wireless network list—when you disconnect from your ad hoc network, it's the same as stopping it. Connecting to the network is the same as starting it back up; this way you can quickly switch back and forth between connections with just a few clicks.
Turn Your Windows PC Into a Wireless Hotspot
The last step is enabling connection sharing through your regular network card, which will allow anybody connected to your ad hoc wireless to use your internet connection. To do so, you'll want to head into the Network and Sharing Center, click the "Change adapter settings" link on the left, and then find your network connection in the list—it's very important that you only enable internet connection sharing on the adapter that is actually connected to the internet. In this case, my internet access at work goes through my Local Area Connection, so I've enabled it there.
At this point, you should be able to connect any wireless device to your new ad hoc network and access the internet, or even share files directly with your laptop.

Roundcube Mail: How to redirect to an URL after logout

Open roundcubemail/index.php file and edit following code:

else if ($RCMAIL->task == 'logout' && isset($_SESSION['user_id']) && (!$RCMAIL->config->get('referer_check') || rcmail::check_referer())) {
  $userdata = array(
    'user' => $_SESSION['username'],
    'host' => $_SESSION['storage_host'],
    'lang' => $RCMAIL->user->language,
  );
  $OUTPUT->show_message('loggedout');
  header('location: https://redirect URL/'); die();
//  $RCMAIL->logout_actions();
//  $RCMAIL->kill_session();
//  $RCMAIL->plugins->exec_h

Tuesday, July 2, 2013

Roundecube Mail: How to change logo, favicon etc

search $rcmail_config['skin'] = 'currentSkin'; in main.inc.php file so that you can understand which skin is used. then Goto: rcmail root folder/skins/currentSkin/images and use your logo and favicon.

Monday, May 20, 2013

Zend Framework Installation Step by Step [Verified]

1. Download Zend skeleton app from GitHub and unzip.
2. Put into your server directory e.g. www for wamp, htdocs for xamp etc.
3. Set php path - Right click on My Computer->properties->Advanced system settings->environmet variable->select path from system variable box->edit.
4. Add your php.exe file location with existing line e.g %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\wamp\bin\php\php5.4.3;
5. now open command prompt write command "php composer.phar self-update"
6. write command "php composer.phar install" and wait until auto generating.....completed.
7. Make virtual host by puting some code in to your host config file e.g C:\wamp\bin\apache\apache2.2.22\conf\httpd.conf


NameVirtualHost *:80
<VirtualHost *:80>
ServerName zendApp.localhost
DocumentRoot "C:/wamp/www/zendApp/public"
SetEnv APPLICATION_ENV "development"
<Directory "C:/wamp/www/zendApp/public">
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

8. Find #LoadModule rewrite_module modules/mod_rewrite.so in the same file and remove #
9. save file and restart your server.
10. write localhost on address bar of your browser and get explore yourself in zend world.


More Help: 

https://github.com/zendframework/ZendSkeletonApplication
http://stackoverflow.com/questions/11855067/zend-framework-500-internal-server-error
http://bigemployee.com/zend-framework-2-simple-web-application-crud-using-ajax-tutorial/

Wednesday, May 15, 2013

WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this


Change the file content of c:\wamp\alias\phpmyadmin.conf to the following.
<Directory "c:/wamp/apps/phpmyadmin3.4.5/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
        Allow from all
</Directory>

Wednesday, April 17, 2013

Complete List of MIME file type

File Extension
MIME Type
323
text/h323
*
application/octet-stream
acx
application/internet-property-stream
ai
application/postscript
aif
audio/x-aiff
aifc
audio/x-aiff
aiff
audio/x-aiff
asf
video/x-ms-asf
asr
video/x-ms-asf
asx
video/x-ms-asf
au
audio/basic
avi
video/x-msvideo
axs
application/olescript
bas
text/plain
bcpio
application/x-bcpio
bin
application/octet-stream
bmp
image/bmp
c
text/plain
cat
application/vnd.ms-pkiseccat
cdf
application/x-cdf
cdf
application/x-netcdf
cer
application/x-x509-ca-cert
class
application/octet-stream
clp
application/x-msclip
cmx
image/x-cmx
cod
image/cis-cod
cpio
application/x-cpio
crd
application/x-mscardfile
crl
application/pkix-crl
crt
application/x-x509-ca-cert
csh
application/x-csh
css
text/css
dcr
application/x-director
der
application/x-x509-ca-cert
dir
application/x-director
dll
application/x-msdownload
dms
application/octet-stream
doc
application/msword
dot
application/msword
dvi
application/x-dvi
dxr
application/x-director
eps
application/postscript
etx
text/x-setext
evy
application/envoy
exe
application/octet-stream
fif
application/fractals
flr
x-world/x-vrml
gif
image/gif
gtar
application/x-gtar
gz
application/x-gzip
h
text/plain
hdf
application/x-hdf
hlp
application/winhlp
hqx
application/mac-binhex40
hta
application/hta
htc
text/x-component
htm
text/html
html
text/html
htt
text/webviewhtml
ico
image/x-icon
ief
image/ief
iii
application/x-iphone
ins
application/x-internet-signup
isp
application/x-internet-signup
jfif
image/pipeg
jpe
image/jpeg
jpeg
image/jpeg
jpg
image/jpeg
js
application/x-javascript
latex
application/x-latex
lha
application/octet-stream
lsf
video/x-la-asf
lsx
video/x-la-asf
lzh
application/octet-stream
m13
application/x-msmediaview
m14
application/x-msmediaview
m3u
audio/x-mpegurl
man
application/x-troff-man
mdb
application/x-msaccess
me
application/x-troff-me
mht
message/rfc822
mhtml
message/rfc822
mid
audio/mid
mny
application/x-msmoney
mov
video/quicktime
movie
video/x-sgi-movie
mp2
video/mpeg
mp3
audio/mpeg
mpa
video/mpeg
mpe
video/mpeg
mpeg
video/mpeg
mpg
video/mpeg
mpp
application/vnd.ms-project
mpv2
video/mpeg
ms
application/x-troff-ms
msg
application/vnd.ms-outlook
mvb
application/x-msmediaview
nc
application/x-netcdf
nws
message/rfc822
oda
application/oda
p10
application/pkcs10
p12
application/x-pkcs12
p7b
application/x-pkcs7-certificates
p7c
application/x-pkcs7-mime
p7m
application/x-pkcs7-mime
p7r
application/x-pkcs7-certreqresp
p7s
application/x-pkcs7-signature
pbm
image/x-portable-bitmap
pdf
application/pdf
pfx
application/x-pkcs12
pgm
image/x-portable-graymap
pko
application/ynd.ms-pkipko
pma
application/x-perfmon
pmc
application/x-perfmon
pml
application/x-perfmon
pmr
application/x-perfmon
pmw
application/x-perfmon
pnm
image/x-portable-anymap
pot
application/vnd.ms-powerpoint
ppm
image/x-portable-pixmap
pps
application/vnd.ms-powerpoint
ppt
application/vnd.ms-powerpoint
prf
application/pics-rules
ps
application/postscript
pub
application/x-mspublisher
qt
video/quicktime
ra
audio/x-pn-realaudio
ram
audio/x-pn-realaudio
ras
image/x-cmu-raster
rgb
image/x-rgb
rmi
audio/mid
roff
application/x-troff
rtf
application/rtf
rtx
text/richtext
scd
application/x-msschedule
sct
text/scriptlet
setpay
application/set-payment-initiation
setreg
application/set-registration-initiation
sh
application/x-sh
shar
application/x-shar
sit
application/x-stuffit
snd
audio/basic
spc
application/x-pkcs7-certificates
spl
application/futuresplash
src
application/x-wais-source
sst
application/vnd.ms-pkicertstore
stl
application/vnd.ms-pkistl
stm
text/html
sv4cpio
application/x-sv4cpio
sv4crc
application/x-sv4crc
svg
image/svg+xml
swf
application/x-shockwave-flash
t
application/x-troff
tar
application/x-tar
tcl
application/x-tcl
tex
application/x-tex
texi
application/x-texinfo
texinfo
application/x-texinfo
tgz
application/x-compressed
tif
image/tiff
tiff
image/tiff
tr
application/x-troff
trm
application/x-msterminal
tsv
text/tab-separated-values
txt
text/plain
uls
text/iuls
ustar
application/x-ustar
vcf
text/x-vcard
vrml
x-world/x-vrml
wav
audio/x-wav
wcm
application/vnd.ms-works
wdb
application/vnd.ms-works
wks
application/vnd.ms-works
wmf
application/x-msmetafile
wps
application/vnd.ms-works
wri
application/x-mswrite
wrl
x-world/x-vrml
wrz
x-world/x-vrml
xaf
x-world/x-vrml
xbm
image/x-xbitmap
xla
application/vnd.ms-excel
xlc
application/vnd.ms-excel
xlm
application/vnd.ms-excel
xls
application/vnd.ms-excel
xlt
application/vnd.ms-excel
xlw
application/vnd.ms-excel
xof
x-world/x-vrml
xpm
image/x-xpixmap
xwd
image/x-xwindowdump
z
application/x-compress
zip
application/zip

More
File extension
MIME type
.asf
video/x-ms-asf
.asx
video/x-ms-asf
.wma
audio/x-ms-wma
.wax
audio/x-ms-wax
.wmv
audio/x-ms-wmv
.wvx
video/x-ms-wvx
.wm
video/x-ms-wm
.wmx
video/x-ms-wmx
.wmz
application/x-ms-wmz
.wmd
application/x-ms-wmd