Showing posts with label S2P. Show all posts
Showing posts with label S2P. Show all posts

Android Notification on Desktop

Missed your android device notifications because you were working on your desktop computer/PC? We all would have this problem. No need to worry anymore because we have got an application called Desktop Notifications for Android to solve this problem.

This application gets all your android notifications right on your desktop/PC instantaneously so that you will not miss any of them. This app works with all android application and also have lollipop support.
Desktop notification for android, android device notification, android notification on desktop, get android notifications on your desktop, android notifications on your desktop,

In order to use this extension you need to download and install a free app for your Android device as well as extension for your browser (it supports both chrome and Firefox).

Setting up Desktop Notifications for Android in your desktop/PC





  • Once you have added the extension to your browser, the browser will prompt you to sign in with your Google account.



  • As you get signed in the application will ask you to personalize some settings like notification display time and sound. That’s all for your desktop now head to your android device.



  • Setting up Desktop Notifications for Android in your android device.
  • Head to the play store from your android device and download the application by searching as “Desktop Notifications for Android”.



  • First thing that you have to do as you install and open the application is to enable the desktop notification by clicking the “open notification settings” tab and put a tick over the check box of “desktop notification”.


  •  Then Enable Desktop Notification to OK.


  •  Now you notification access is Enable.



  • Now sign in the application with your Google account.



  • Note: make sure you that use the same Google account for both the desktop and android application.



  • Creating test notification
  • You have finished setting up the application in both the android device and desktop. So let us test it!



  • Click on the create test notification on your android device. As you click it you will get a popup on the bottom right corner of your desktop.

Never miss your notifications again…‘-)
Read More

HTML5 vs. Native vs. Hybrid Mobile : Which Platform is Best

15 Comments
Should you construct mobile apps in native code on every single platform? Would it be a good idea for you to assemble them in hybrid code, like HTML5 application development?

Set in opposition the pros and cons of developing mobile apps natively or with web-based technologies may appear as a useless activity.

HTML5 vs. Native vs. Hybrid Mobile : Which Platform is Best,HTML5 vs. Native vs. Hybrid Mobile,HTML5 vs. Native,Native vs. Hybrid Mobile,Native vs. Hybrid Mobile

The scales measuring every single approach’s qualities and faults never fairly stable in an instantly recognizable way. The technical and operative contrasts between HTML5 application developments vs. Native mobile apps vs. Hybrid mobile application development must be looked wise against particular product objectives and accessible resources.

There are three key ways to develop an application- Native, html5 and hybrid:


  • Native mobile apps can build up using Objective- C for iOS, Java for Android or .NET for Windows for a specific platform.
  • Hybrid mobile application development utilizes HTML5, CSS3 and JavaScript, place in a native package that empowers it to access the device’s hardware. Applications can be constructed by making use tools like Xamarin, PhoneGap and Appcelerator Titanium.
  • Html5 application development/ Web Apps also constructed utilizing HTML5, CSS3 and JavaScript. Similar to mobile sites, it opens in the browsers of mobile. The client need internet availability to get access of the apps and such apps can't be sold on app stores.

How to choose an appropriate mobile Development Tactic?

Toward the day's end, each single business needs to hold the expenses down, without any kind of compromise in quality. To pick a suitable method, we have to recognize all the nitty-gritty concepts of each of them. If we talk about native applications it can deliver the finest work, however you need to construct isolated apps for isolated platforms, and it also cost a lot to develop.

  • If we discuss about hybrid apps VS native apps, hybrid apps cost fewer to develop and a single code performs across diverse platforms, but contact to native APIs can be restricted. Applications constructed by utilizing html5 are very stress-free to develop, but they can't be spread on app stores as well as can't access native APIs and features of device.

The important is to simply outline your potentials from the application you are constructing. The objective of the application, the financial plan, the focused crowd and accessibility of cutting-edge technology will determine your choice.

Go with native mobile app development when you are focusing on only one platform or have sufficient financial plan to construct and maintain applications on three diverse platforms, provide rights to use appropriate tech ability, feel that freely-flowing User Interface is necessary, Need presence on app store, need access to every single native APIs and features of device etc.

  • Follow hybrid apps VS native apps when you need cross platform tools for the app development and you are not able to spend much money on it. If you want to reach to maximum number of users than Hybrid development should be useful to you. If you are not worried about app store deployment than Hybrid app is the best choice. You can easily utilize the expertise of your developers through cross platform tools. App maintenance and support would be simplified with this platform.
  • Choose html5 VS native and hybrid mobile apps, when there is a need of high performance with a single code base to make simpler app maintenance and support. If you want to utilize your particular tech know-how and construct an app in a language of your selection, this platform is best suited to you. There is no requirement to access native APIs and don’t need offline abilities.

A room for Native VS Hybrid VS Html5 app development methodologies

Commonly, full native mobile applications are just inside of bigger associations that can finance early development and current support as well as porting maintenance. Organizations with littler budgets that still need to extend the high quality regarding performance and user experience will also select to go with native since native apps will constantly beat web or hybrid tactics in such manner.
Hybrid apps and Html5 have their own positions as well, VS native applications. They cost less as well as have broader distribution opportunities and are simpler to modify, which is significant benefit for companies that rely on their quickness in rapidly changing markets.

Summing Up

Definitely there is no necessity to go with a particular tactic to the rejection of the others. Compare the cutting-edge technology to the app and advertising necessities, both now and later on, and you would surely find the right fit. Be known for what you love.
Read More

Get Stock Data From Yahoo Finance in PHP

Welcome in s2ptech here i am giving you new web service for Yahoo Finance in php by which you can easily get stock quote data from Yahoo.
You need to follow some step:
  • Step 1: First of all i am giving you top tech companies data from Yahoo Finance.
  1. For eBay: http://finance.yahoo.com/q?s=EBAY
  2. For Amazon: http://finance.yahoo.com/q?s=AMZN
  3. For Apple: http://finance.yahoo.com/q?s=AAPL
  4. For Microsoft: http://finance.yahoo.com/q?s=MSFT
  5. For Yahoo: http://finance.yahoo.com/q?s=YHOO
You can use for more by finding stock ticker symbol like GOOG for Google, MSFT for Microsoft, APPL for Apple, etc.
  • Step 2: Now i am tell you How can you fetch data from giving url using PHP. You need to make two php file.

yahoofinance.php
<?php
class YahooStock {
     private $stocks = array();
     private $format;
     public function addStock($stock)
    {
        $this->stocks[] = $stock;
    }
     public function addFormat($format)
    {
        $this->format = $format;
    }
     public function getQuotes()
    {      
        $result = array();    
        $format = $this->format;
        
        foreach ($this->stocks as $stock)
        {          
           $s = file_get_contents("http://finance.yahoo.com/d/quotes.csv?s=$stock&f=$format&e=.csv");
                 $data = explode( ',', $s);
                 $result[$stock] = $data;
        }
        return $result;
    }
  • Step 3: Now make another php file


index.php (main php file)
<?php
include_once('yahoofinance.php ');

$objYahooStock = new YahooStock;

/**
    Add format/parameters to be fetched
    
    s = Symbol
    n = Name
    l1 = Last Trade (Price Only)
    d1 = Last Trade Date
    t1 = Last Trade Time
    c = Change and Percent Change
    v = Volume
 */
$objYahooStock->addFormat("snl1d1t1cv");

/**
    Add company stock code to be fetched
    
    msft = Microsoft
    amzn = Amazon
    yhoo = Yahoo
    goog = Google
    aapl = Apple  
 */
$objYahooStock->addStock("msft");
$objYahooStock->addStock("amzn");
$objYahooStock->addStock("yhoo");
$objYahooStock->addStock("goog");
$objYahooStock->addStock("vgz");

/**
 * Printing out the data
 */
foreach( $objYahooStock->getQuotes() as $code => $stock)
{
    ?>
    Code: <?php echo $stock[0]; ?> <br />
    Name: <?php echo $stock[1]; ?> <br />
    Last Trade Price: <?php echo $stock[2]; ?> <br />
    Last Trade Date: <?php echo $stock[3]; ?> <br />
    Last Trade Time: <?php echo $stock[4]; ?> <br />
    Change and Percent Change: <?php echo $stock[5]; ?> <br />
    Volume: <?php echo $stock[6]; ?> <br /><br />
    <?php
}
?>
  •  Step 4: Just run index.php file and thats it.

Note: If you think it is valuable post then please give some time to comment and feel free to give suggestion.
Read More

MDU BTECH Result Announces 2013

Hello Frnds,
Best of Luck for your results In April BTech Result also come soon.
MDU BE/B.Tech/MBA/M.Tech/BBA/BCA/MA/MCA/BA All semester results 2013- MDU (Maharshi Dayanand University), Rohtak will soon decleared the examination results of courses like MBA, MCA, B.tech, B.E, BBA, MA, BA etc on its official wesite portal
 http://result.mdurohtak.ac.in/resultsearch.aspx

Outcomes Results:
  • ADV. Post Graduate
  • Bach. of Computer Application
  • Bach. of Art in Yoga
  • Bach. of Business Admi.
  • Bach. of Hotel Mgmt
  • Master of Business Admi.
  • Master of Computer App.
  • Master of Hotel Mgmt
  • MSC (Computer Sc)
  • Diploma in Yoga
  • BA(Honors)
  • B. Pharmacy
and many more .....

Incoming Results:
  • BA (Honors)
  • Bach. of Technology
  • Bach. of Engineering
  • Bach. of Journalism
  • Bach. of Journalism & Mass Com.
  • Bach. of Tourist Mgmt
  • Bach in Social Work
  • Bach. of Science
  • Bach. of Pharmacy
and many more....

Read More

How to Control DC Motor using Bluetooth

In this project we will control a DC motor with a smartphone via bluetooth. This project is great to learn more about:
  1. DC motor
  2. Interfacing Arduino with your smartphone
  3. Bluetooth module
  4. L293D
6bluethumb.JPG 
  •  Step 1: Parts Required

IMG_0244.JPG
  1. 1x Arduino Uno
  2. 1x Bluetooth Module (for example: HC-05)
  3. 1x Smartphone (any Android will work)
  4. BlueTerm application
  5. 1x L293D IC
  6. 1x DC motor
  7. 1x Breadboard
  8. Jumper Cables
  • Step 2: Schematics and common mistakes
Screenshot from 2013-02-23 17:15:28.png
Two common mistakes:
-You need to remove the RX and TX cables when you’re uploading the sketch to your Arduino.
-Sometimes people connect the TX from the bluetooth module to the TX of the Arduino… that’s wrong and it won’t work. Make sure you connect it properly, the TX into RX and the RX into the TX.
Note:
If the HC-05 Bluetooth Module asks for a password, It's '1234'.
  • Step 3:  Now Audrino Coding
/*
* created by Rui Santos, http://randomnerdtutorials.wordpress.com
* Control DC motor with Smartphone via bluetooth
* 2013
*/
int motorPin1 = 3; // pin 2 on L293D IC
int motorPin2 = 4; // pin 7 on L293D IC
int enablePin = 5; // pin 1 on L293D IC
int state;
int flag=0; //makes sure that the serial only prints once the state

void setup() {
// sets the pins as outputs:
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(enablePin, OUTPUT);
// sets enablePin high so that motor can turn on:
digitalWrite(enablePin, HIGH);
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}

void loop() {
//if some date is sent, reads it and saves in state
if(Serial.available() > 0){
state = Serial.read();
flag=0;
}
// if the state is '0' the DC motor will turn off
if (state == '0') {
digitalWrite(motorPin1, LOW); // set pin 2 on L293D low
digitalWrite(motorPin2, LOW); // set pin 7 on L293D low
if(flag == 0){
Serial.println("Motor: off");
flag=1;
}
}
// if the state is '1' the motor will turn right
else if (state == '1') {
digitalWrite(motorPin1, LOW); // set pin 2 on L293D low
digitalWrite(motorPin2, HIGH); // set pin 7 on L293D high
if(flag == 0){
Serial.println("Motor: right");
flag=1;
}
}
// if the state is '2' the motor will turn left
else if (state == '2') {
digitalWrite(motorPin1, HIGH); // set pin 2 on L293D high
digitalWrite(motorPin2, LOW); // set pin 7 on L293D low
if(flag == 0){
Serial.println("Motor: left");
flag=1;
}
}
}
For the android communication with our bluetooth module I’ve used the BlueTerm app, It’s completely free, so you just need to go to “Play store” and download it. Then you just need to connect your smarthphone with the bluetooth module. Remember to remove the TX and RX cables. (you can see in youtube video below how that’s done).
  • Step 4: Now Connect all Products
IMG_0232.JPG 
I've only set 3 commands to control the DC motor:

    ’0′ – Turns off the DC motor
    ’1′ – DC motor rotates to right
    ’2′ – DC motor rotates to left

Demo:
Read More

Improve Wordpress page load using 3 Best Free Services

Most of people make a website but not take care about their page load and lose their visitors time by time.
Everyone knows that the speed of the blog is taken into account when ranking pages in the SERPs.
In this post, I will be discussing 3 best free services that you can use easily to speed up your WordPress blog.

You must read : Blogger V/s Wordpress
  • Google Speed Service:
 It is the simplest to configure. All you have to do is add the domain in Google Page Speed Service and it provide you with a CNAME which you have to add in the DNS settings of your WWW subdomain.

free services
Detailed data about the bandwidth, requests, traffic is shown in the Console API itself.You can also check out the official guide on how to use the pagespeed service here.

free services
It is provided for free but Google has plans to make this a premium service. So, you can still use it as long as it’s free.
  • CloudFlare:
Cloudflare is one of the best CDN services that you can use for free. You can also create a premium account but for normal blogs the free account is enough. Apart from CDN services, it also provides Security and Analytics Details. Now, let’s take a look at all the features of Cloudflare.
Cloudflare’s web content optimization is one of the best. It has loads of features like AutoMinify CSS and Javascript, Javascript Bundling, Asynchronous Loading, Local Storage Caching etc.
free services
AutoMinifying CSS and Javascript will compress your site’s Javascript and CSS files and results in faster loading. Javascript bundling makes sure multiple javascript requests are converted into a single request instead of multiple ones which results in faster page loading. Asynchronous loading enables your HTML part of the site to load fast without being delayed by slow loading widgets or scripts.
  • Incapsula
Like Cloudflare, Incapsula has identical features. It’s security features include protection against scraping, spam and preventing unauthorized access to both the backend and frontend of your site. It also has a premium plan which you can use if you’re looking to equip your site with more security.

free services
For a free plan, Incapsula offers more security than Cloudflare. It has a running Web Application Firewall which protects your site from SQL injections and other online threats. Another feature it has is DDoS protection which basically protects your site from Network and Application level threats.
It also consists of a CDN and an Optimizer which accelerates your site and makes loading atleast 40% faster. Like Cloudflare, it also has Analytics which monitors real time traffic and suspicious bots and sends you a detailed e-mail about the threats it has encountered.
Read More

Add Thumb Up and Down in Blogger

Thumbs up and Thumbs Down is a process to elaborate the visitors view on your post and it give an new look to your website.
Very interesting widget for your blogger which give you a professional look.
If your visitors feel good your article they will thumb up your post or if they do not get impressed , they simply thumb down.
You need to follow some step to add Thumbs Up and Thumbs Down Widget.
Step 1: First of all go to Blogger > Design > Edit HTML.
Step 2: Click the box "Expand Widget Templates" and Search
<data:post.body/>
Step 3: Paste the below code just after above code.
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div class='js-kit-rating' expr:path='data:post.url' expr:permalink='data:post.url' expr:title='data:post.title' view='score'> </div> </b:if>
Note:
If you paste the code before <data:post.body/> your thumb up and thumb down widget can be showed just after the post title if you paste the code just after <data:post.body/> The widget can be displayed at the last of the entire post only at post pages and not on homepage.
Step 4: Now search for <body>  Just above it paste the following code:
<script src="https://sites.google.com/site/funwithcomputer/linktohow/ratings.js"></script>
Step 5: Now save the template and view your blog.

You feel this post is helpful for you then give your precious time for comment and feel free to give suggestion if any.

Read More

How to make adsense ads responsive

Google is supporting the revolutionary responsive web-design technology it was important to allow compatible ads according website need. Till now it was very confusing to adopt the responsive ads due to no clear stand responsive AdSense code modification.

You must read : How to make Responsive web design.

On one hand Google was promoting responsive web design, on another hand there was no easy way to implement AdSense on such site without modifying the code. This is why they allowed to modify AdSense code in certain way (This is a really good news. Isn’t it?)

How to make adsense ads responsive,Google allows responsive AdSense officially,AdSense and Responsive Design Google AdSense,responsive ads,responsive google adsense

Now i'll tell you how can you do that
<script type="text/javascript">
google_ad_client = "ca-publisher-id",
if (window. innerWidth> = 800) {
google_ad_slot = " ad-unit-1 ";
google_ad_width = 728;
google_ad_height = 90;
} Else if (window.innerWidth <400) {
google_ad_slot = " ad-unit-2 ";
google_ad_width = 300;
google_ad_height = 250;
Else {}
google_ad_slot = " ad-unit-3 ";
google_ad_width = 468;
google_ad_height = 60;
}
</ script>
<script type = "text / javascript"
src = " http://pagead2.googlesyndication.com/pagead/show_ads.js ">
</ script>
Note:
  1. If you're using blogger then you need to parsing this code before implementing
  2. Above code is not work in Internet Explorer 8.
If you think this post is useful for you then give some time to comment and feel free for suggestion if any.
Read More

How to make Responsive Web Design

Responsive web design (RWD) is a web design approach aimed at crafting sites to provide an optimal viewing experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from desktop computer monitors to mobile phones).
Now everyone want to make their website responsive but they don't want to switch to new theme or templates. Then don't take problem just follow some step and you can make your current theme or template responsive easily.

You must read: Make Responsive adsense ads

How to make Responsive Web Design,responsive web design,responsive,What The Heck Is Responsive Web Design,What is responsive design,

You need to forget the HTML properties like px(pixels) and use em or %(percentage).
Example:
Before responsive we use
<div style="margin-left:25px;">S2P Tech</div>
But after that you need to use
<div style="margin-left:10%">S2PTech</div>
You can see DEMO for better understanding.
Here in this demo i use only % or em. I provide you full coding for you.
<html>
<title>Responsive Tutorial By S2P Tech</title>
<head>
</head>
<body>
<div style=" border:solid; height:20%; background-color:#75A772;">
<center><strong >Header</strong></center>
</div>
<div style=" border:solid; float:left; height:60%;width:20%; background-color:#FF8080;">
<strong ><center>Left SideBar</center></strong>
</div>
<div style=" border:solid; float:right; height:60%; width:20%; background-color:#FF8080;">
<strong ><center>Right SideBar</center></strong>
</div>
<div style=" border:solid; height:60%; background-color:#C2DDE0;">
<strong ><center>Body</center></strong>
</div>
<div style=" border:solid; height:20%; margin-top:0.01em; background-color:#579841;">
<strong ><center>Footer</center></strong>
</div>
</body>
</html>
Read More

Top 10 Useful Website for SEO

Now I'll tell you top 15 useful website for seo -2013 and provide you a useful list of that website which get really improve their service.
Here you'll get all best resource for Search Engine Optimization.


1,400,000 - Estimated Unique Monthly Visitors
1,534 - Compete Rank
4,005 - Quantcast Rank
1,036 - Alexa Rank.
 
 700,000 - Estimated Unique Monthly Visitors
 2,034 - Compete Rank
10,100 - Quantcast Rank
1,946 - Alexa Rank.
 
650,000 - Estimated Unique Monthly Visitors
2,479 - Compete Rank
9,274 - Quantcast Rank
2,485 - Alexa Rank

645,000 - Estimated Unique Monthly Visitors
3,479 - Compete Rank
10,620 - Quantcast Rank
3,022 - Alexa Rank

550,000 - Estimated Unique Monthly Visitors
3,462 - Compete Rank
11,900 - Quantcast Rank
3,275 - Alexa Rank

500,000 - Estimated Unique Monthly Visitors
6,634 - Compete Rank
10,300* - Quantcast Rank
2,235 - Alexa Rank

440,000 - Estimated Unique Monthly Visitors
5,788 - Compete Rank
12,400 - Quantcast Rank
4,524 - Alexa Rank

 410,000 - Estimated Unique Monthly Visitors
13,105 - Compete Rank
10,409 - Quantcast Rank
1,003 - Alexa Rank

400,000 - Estimated Unique Monthly Visitors
6,794 - Compete Rank
13,500* - Quantcast Rank
5,815 - Alexa Rank
SubmitExpress

390,000 - Estimated Unique Monthly Visitors
12,313 - Compete Rank
11,000* - Quantcast Rank
2,834 - Alexa Rank

If you got this post is useful for you then please feel free to comment/suggestion.
Read More

Blogger Or Wordpress is better ?

Blogger and WordPress are best and popular blogging platforms today. More and more Internet users are going to use it. But the most confusing part is what to choose and why. So, here’s full comparison of Blogger and WordPress with all pros and cons.



Blogger :

  • Blogger is free blogging platform owned by Google. And the best part of Blogger is it’s completely free. As Well, it also provides free domain with extension blogspot.com. And you can also use your own custom domain with it. It’s extremely easy to setup and manage blogspot blog.
  • Publishing content is really easy with blogger. And you don’t need to backup database or anything. Allow you to display ads like Google Adsense and amazon, etc. As well as it’s completely ad free.
  • There are also some cons of blogger. Like, Maximum of 1GB Storage, No FTP support, Limitation of designing compared to WordPress and many more.

WordPress :

  • WordPress is Most Powerful and popular CMS (Content Management System) of all time. It’s divided in 2 parts : WordPress.com and WordPress.org self-hosted. WordPress.com is a hosted version of WordPress.org Providing free platform with limited features as well paid with premium features. I personally not recommended WordPress.com because most of the themes and plugins not working with free version.
  • WordPress.org is open source free software. Anyone can download WordPress software from wordpress.org and install on their server. It’s completely free and no limitation to use it. But you need to pay your hosting fees to your hosting provider.
  • Self hosted WordPress is very flexible since it’s open source. You can customize it as you want. You own it on your server so you have full control over it. You can use and install any free or premium themes and plugins on it. There are tons of themes and plugins available on web. It’s fully search engine friendly and you can also define your own custom meta tags. And it’s take less than 5 minutes to install it on your server.
Read More

Hack Saved Password Using Google Chrome without Software

Here I am telling you how can you know the save password of any login system website like Facebook,Gmail,Google plus etc.

Steps you need to follow:


1. Open any website where password is saved by user. Here i will demonstrate with facebook but it will work on any website.
2. Right click on password(Dots or asterisks) as shown in below image.
3.Then click on Inspect element.

4.Then change Password to text as shown in below picture.

  • Before changing it will look like below:


  •  After changing it will look like below:


5. Done now asterisk or dots will changed to text. Still confused or did not got any steps then watch video below but make sure to watch it in high defination. If you like it then like the video.
Read More

Make own Android PS3 / Xbox360 Controller Mount

I go though how to Make own Android PS3 / Xbox360 Controller Mount. It's light, cheap, and does what it is designed to do really well. Basically, BEST. ANDROID. ACCESSORY. EVER.
This can also be adapted to fit other controllers and other Android devices.
Step 1
Materials
  • Nexus 7 Tablet - $200 
  • PS3 / Xbox controller - $50
  •  For the Mount
  •  1/8" dia x 48" Mild Steel Rod -$3 (OR 1/8" dia x 48" Copper Rod)
  •  48" of 1/8" MDPC Expandable Tubing - Comes in packs of 20' rolls for $7
ps3Parts.JPG

This is the stuff that people use to manage cables inside of computers. But you want to have a flexible tube that won't scratch your device.
  •  1/8" Heat Shrink Tubing - $2
For some grippy stuff and to clean up the ends.
 Tools:
  1. A big vice
  2.  bending tools
  3.  measuring tape
 Step 2
Bending for the Controller
IMG_0897.JPG

 The idea is to work from the middle out. Pick the shape that will work best with the controller and the device.
 As far as I can thing of there are two ways to attach the controller. By making a clamping U shape to across the back, facing up and across the front, facing toward the device. I'm doing the latter.
  1.  Bend in half with the end having a small radius. 0.5 to 1"
  2.   Create a V shape, this will act as a lock for the controller later. (This can be tricky)
  3.   Bend around the end of the controller and back to the front.
  4.   Create the opposite V at the end of that. (This V is slighter than the first one)
  5.   Position the end to be out of the way of the middle buttons on the controller and at the correct angle for the device.
 Step 3
Bending for the Device
 Starting from the two ends sticking out parallel from the controller part;
  1.  Bend outwards to make a BIG V
  2.  Measure the correct angle and distance to put the corners of the device inline with that V.
  3.   Bend up at those points to make the back.
  4.   Bend forward across the device.
  5.   Bend down to complete the mount
 At this point you should have a lot of extra metal rod. Just cut that off at the proper location and call it good.
 Step 4
Soft goods
 This is just a wire frame. You don't want to scratch your stuff. So take the MDPC tube and cover the entire length with it.
 Then add the heat shrink.
IMG_0907.JPG
 Good locations include:
  • -The bottom of the controller
  • -The bottom of the device
  • -The top of the device
 Then use a little bit of heat shrink to close off the metal ends showing.
 And your done! You might want to do a little manual bending to get it just right though. 
 In order to actually play games using the PS3 controller though, you will either have to play games that already are built for wired gamepads and then use a OTG usb cable
 OR
 Download the Sixaxis app from the app store and emulate the touch controls. This method really opens up gaming options!
 Go Play!
Read More

How to create Login System with php


Create a simple login system with php + mysql script,
Follow these following steps:
Overview
In this tutorial, we create 3 php files for testing our code.
1. main_login.php
2. checklogin.php
3. login_success.php

Steps
1. Create table "members" in database "test".
2. Create file main_login.php.
3. Create file checklogin.php.
4. Create file login_success.php.
5. Create file logout.php

If you don't know how to create database, click here
STEP1: Create table "members"
For testing this code, we need to create database "test" and create table "members".

login form with php
CREATE TABLE 'members' (
'id' int(4) NOT NULL auto_increment,
'username' varchar(65) NOT NULL default '',
'password' varchar(65) NOT NULL default '',
PRIMARY KEY ('id')
) TYPE=MyISAM AUTO_INCREMENT=2 ;
-- 
-- Dumping data for table 'members'
--
INSERT INTO `members` VALUES (1, 'john', '1234');


STEP2: Create file main_login.php
The first file we need to create is "main_login.php" which is a login form.

Member login in PHP
Add caption
############### Code
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="checklogin.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Member Login </strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="mypassword" type="text" id="mypassword"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Login"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>


STEP3: Create file checklogin.php
We have a login form in step 2, when a user submit their username and password, PHP code in checklogin.php will check that this user exist in our database or not.

If user has the right username and password, then the code will register username and password in the session and redirect to "login_success.php". If username or password is wrong the system will show "Wrong Username or Password".

############### Code

<?php


$host="localhost"; // Host name 
$username=""; // Mysql username 
$password=""; // Mysql password 
$db_name="test"; // Database name 
$tbl_name="members"; // Table name 


// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");


// username and password sent from form 
$myusername=$_POST['myusername']; 
$mypassword=$_POST['mypassword']; 


// To protect MySQL injection (more detail about MySQL injection)
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);
$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql);


// Mysql_num_row is counting table row
$count=mysql_num_rows($result);


// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){


// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword"); 
header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}
?>
STEP4: Create file login_success.php
User can't view this page if the session is not registered.

############### Code


// Check if session is not registered, redirect back to main page. 
// Put this code in first line of web page. 
<?php
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
?>


<html>
<body>
Login Successful
</body>
</html>

STEP5: Create file Logout.php
If you want to logout, create this file. The code in this file will destroy the session.

// Put this code in first line of web page. 
<?php 
session_start();
session_destroy();
?>


For PHP5 User - checklogin.php
############### Code


<?php


ob_start();
$host="localhost"; // Host name 
$username=""; // Mysql username 
$password=""; // Mysql password 
$db_name="test"; // Database name 
$tbl_name="members"; // Table name 


// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");


// Define $myusername and $mypassword 
$myusername=$_POST['myusername']; 
$mypassword=$_POST['mypassword']; 


// To protect MySQL injection (more detail about MySQL injection)
$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);
$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";
$result=mysql_query($sql);


// Mysql_num_row is counting table row
$count=mysql_num_rows($result);


// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){


// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword"); 
header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}
ob_end_flush();
?>


Encrypting Password - Make your Login More Secure

Encrypt password for Login form in PHP

Using md5(); function to make your login system more secure.
Syntax
$password="123456";
md5($password);

Use md5(); to encrypts password to make it more secure
Overview
Look at these two databases, it's the same person and same info, the first one we don't encrypt his password, but the second one we encrypted his password.

When you encryte "john856" using this code, you'll see the result
"ad65d5054042fda44ba3fdc97cee80c6"

This is not a random result, everytime you encrypt the same password you will get the same result.

$password="john856";
$encrypt_password=md5($password);
echo $encrypt_password; 

Example - Login

This is an example Login with encrypted password, but don't forget to encrypt password and insert into database when your user sign up.

// username and password sent from form 
$myusername=$_POST['myusername']; 
$mypassword=$_POST['mypassword']; 


// encrypt password 
$encrypted_mypassword=md5($mypassword);
$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and password='$encrypted_mypassword'";
$result=mysql_query($sql);

Thats it. Enjoy php.

Read More

Make your Blogger Templates : Chapter-4

There are many different tags you can use to include specific pieces of data in your template. They will all be formatted as<data:name/> or <data:name1.name2/>, where name is the name of the particular piece of data you want to use. In the name1.name2 example, name2 is a particular item within a set of data called name1, e.g. photo.url.

This is a master list of all such available data. It is divided into sections by page element, because different types of widgets use different data.

Blogger Design

Globally Available Data
This information applies to the entire page, so you can use it anywhere, unlike other data which can only be used in a specific widget. These should be referenced as part of the overall "blog" data, e.g. as <data:blog.title/>, etc.

  • title: The blog's title.
  • pageType: The type of the current page. One of 'item', 'archive', or 'index'.
  • url: The URL of the current page.
  • homepageUrl: The homepage of the blog.
  • pageTitle: The title of the current page. This is often the blog title, but may contain additional information on archive or post pages.
  • encoding: The encoding to use for the blog, e.g. UTF-8.
  • languageDirection: Either "ltr" or "rtl" for left-to-right and right-to-left languages, respectively.
  • feedLinks: The autodiscovery feed links for the page header.

Page Header
This is a simple widget with just two pieces of data. They can be referenced simply as<data:title/> and <data:description/>.

  • title: The blog's title.
  • description: The blog's description.

Blog Posts
This is the central part of any blog, and the most complex. You should definitely consider simply making modifications to one of the default templates before writing a blog posts widget from scratch. But however you want to do it, here's all the data available in this widget.
feedLinks: A list of feeds for this page. On the main page, this will contain the main blog feeds; on item pages, this will also contain comments feeds. Each item in this list contains the following:
        o  url: The feed URL.
        o  name: The feed name (i.e. 'Posts' or 'Comments').
        o  feedType: The type of feed (Atom or RSS).
        o  mimeType: The mime type of the feed.
olderPageUrl: If there are older posts than the ones on the current page, this is a URL to those posts. Context-sensitive for page type. (Not all pages will have this link.)
olderPageTitle: Title of the link to the older page of posts.
newerPageUrl: The newer equivalent of olderPageUrl.
newerPageTitle: The newer equivalent of olderPageTitle.
commentLabel: The phrase to use to show the number of comments, e.g. "comments."
authorLabel: The phrase to use to indicate who wrote the post, e.g. "posted by."
timestampLabel: The phrase to use to indicate when the post was written, e.g. "posted at."
postLabelsLabel: Phrase to introduce the list of post labels, e.g. "labels for this post."
backlinksLabel: Phrase to describe backlinks to this post, e.g. "links to this post."
posts: A list of all posts for this page. Each post contains the following:
       o  dateHeader: The date of this post, only present if this is the first post in the list that was posted on this day.
       o  id: The numeric post ID.
       o  title: The post's title.
       o  body: The content of the post.
       o  author: The display name of the post author.
       o  url: The permalink of this post.
       o  timestamp: The post's timestamp. Unlike dateHeader, this exists for every post.
       o  labels: The list of the post's labels. Each label contains the following:
           name: The label text.
           url: The URL of the page that lists all posts in this blog with this label.
           isLast: True or false. Whether this label is the last one in the list (useful for placing commas).
      o  allowComments: 'True' if this post allows comments.
      o  numComments: The number of comments on this post.
      o  showBacklinks: Whether to show backlinks for this post.
      o  numBacklinks: Number of backlinks for this post.
      o  addCommentUrl: The URL of the 'add a comment' form for this post.
      o  emailPostUrl: The URL of the 'email this post' form for this post.
      o  editUrl: The URL of the edit form for this post.
      o  feedLinks: A list of feeds specific to this post. (This is different from the overall blog feedLinks, as it may contain a feed for the post's comments, for instance.) Each contains the following:
          url: The feed URL.
          name: The feed name (e.g. 'Posts' or 'Comments').
          feedType: The type of feed (Atom or RSS).
         mimeType: The mime type of the feed.
     o  comments: A list of all comments for this post (on item pages only). Each contains the following:
         id: The numeric ID of the comment.
         body: The body of the comment.
         timestamp: The time the comment was created.
         author: The display name of the comment's author, or 'Anonymous'.
         authorUrl: URL of the comment author's profile, if the comment is not anonymous.
         deleteUrl: The URL for deleting this comment.
         isDeleted: Whether this comment has been deleted. (The text of deleted comments is replaced with a placeholder.)
.
Blog Archives
The different styles provided here are for the different default options on the Page Elements tab. If you're designing a new version, it's easiest to use 'FLAT' as the style, and then manipulate the rest of the data as desired.
title: The title of the widget.
style: One of 'MENU', 'FLAT', or 'HIERARCHY'.
data: A list of each archive unit, each of which contains:
       o  name: The name of this archive interval, e.g. "August 2006."
       o  url: The link to the page containing posts from this interval.
       o  post-count: How many posts there are in this interval.
.
Profile Widget
For a blog with a single author, the profile widget contains the following information. Note that to access different parts of the photo data, you'll use notation such as<data:photo.url/>.
title: The title of the widget.
userUrl: The author's profile URL.
location: The location from the author's profile.
aboutme: The "About Me" information from the profile.
displayname: The author's display name.
photo: The user's profile photo, made up of the following:
        o  url: The photo URL.
        o  width: The photo's width, in pixels.
        o  height: The photo's height, in pixels.
        o  alt: The "alt" text for the photo.
On team blogs, the profile widget contains less information about more authors, as follows.
title: The title of the widget.
authors: The list of all authors, each of which contains the following:
        o  displayname: The author's display name.
        o  userURL: The author's profile URL.
If you want to design your template to handle both single- and multiple-author blogs, you can use the data:team variable to distinguish between the two cases. E.g. <b:if cond='data:team=="true"'> (display multiple authors) </b:if>
.
Text / HTML / JavaScript Widget
The Text widget and the HTML/JavaScript widget work the same way and have the same two pieces of data.
title: The widget's title.
content: The content of the widget.
.
Feed Widget
A feed widget's content is dynamically loaded using Google AJAX API after blog is rendered in a browser. It can be styled only using CSS.
title: The widget's title.
feedUrl: The URL of the feed.
.
Picture Widget
A picture widget contains a single image, and provides all the relevant data for that image.
title: The title of the widget.
sourceUrl: The URL of the image.
width: The image's width, in pixels.
height: The image's height, in pixels.
caption: The image caption.
.
Labels Widget
The labels widget includes a list of all labels that are in use on the blog.
title: The widget title.
labels: The list of labels, each of which contains:
        o  name: The text of the label.
        o  count: How many posts have this label.
        o  url: A link to a page displaying posts with this label.
.
List Widget
The simplest form of a list. Each item is just a single piece of text, without any different types of data within it.
title: The widget title.
items: The list of items.
.
Link List Widget
A slightly fancier list, where each item has two parts to it: the text and the link.
title: The widget title.
links: The list of links, each of which contains:
        o  name: The link's text.
        o  target: The link's URL.
.
Logo Widget
It doesn't get any simpler than this one. Just one piece of data here.
fullButton: The URL of the Blogger button you've selected


Read More