Friday, July 3, 2015

what big data & why big data

Standard
Data:,Everyone has talking about  data  today than years ago, past year (before come large ware house).people they doesn't have about any idea  how can use people behaviors in to business decision & How can you make money with it? While the...

Email templat engine_laravel 5

Standard
this is the way end mail with Email Template Engine .save templates in database and replace some fields and send mail frist confige your laravel email config file mail.php return [ 'driver' => env('MAIL_DRIVER', 'smtp'), 'host' => env('MAIL_HOST', 'smtp.gmail.com'), 'port' =>...

Wednesday, June 24, 2015

laravel 5 ajax POST

Standard
hi guys here is basic AJAX POST on laravel 5 i hope this will help for your advance project  thank you Route::group(['prefix' => 'ajax'], function() { Route::get('/ajax', 'AjaxController@ajax'); Route::post('/ajaxpost', 'AjaxController@ajaxpost'); }); <pre class="java"...

Thursday, March 5, 2015

print div contain using JS

Standard
function printsmcs() { var printsmcs = window.open('','','width=1500,height=1000'); printsmcs.document.open("text/html"); printsmcs.document.write(document.getElementById('printArea').innerHTML); printsmcs.document.close(); printsmcs.print(); } text area for prin...

Wednesday, March 4, 2015

calculate the difference between two dates using PHP?

Standard
You can use strtotime() to convert two dates to unix time and then calculate the number of seconds between them. From this it's rather easy to calculate different time periods $date1 = "2015-03-08"; $date2 = date("Y-m-d"); $diff = abs(strtotime($date2) - strtotime($date1)); ...

Tuesday, February 24, 2015

mouseover popup box YII griview

Standard
YII Drid cell with a javascript/css content box that pops up upon mouseover. <! --- Style ------- > .NameHighlights { position:relative; } .NameHighlights div { display: none; } .NameHighlightsHover { position:relative; } .NameHighlightsHover div { display: block; ...

Wednesday, February 18, 2015

Tuesday, February 10, 2015

Get a Facebook API Access Token That Never Expires

Standard
I’ve been working on a few scripts that performed some minor data collection using the Facebook Graph API as a data source. Ideally, I wanted this script to be able to run several times a day automatically, however Facebook grants access tokens that expire after 1-2 hours. Since I’m the only one that...

Thursday, February 5, 2015

Tuesday, January 27, 2015

change the color of scrollbars

Standard
add this in your style .css  to change the color of the scrollbars on my pages in Internet Explorer and Firefox ::-webkit-scrollbar { width: 12px; height: 4px; background: rgba(111, 78, 78, 0.35); } ::-webkit-scrollbar-thumb { background-color: rgba(145, 36, 66, 0.99); -webkit-border-radius:...

Wednesday, January 21, 2015

Tuesday, December 30, 2014

Remove index.php from url YII

Standard
create .htaccess under www-->yiisitename  add following code on .htaccess Options +FollowSymLinks IndexIgnore */* 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...

Wednesday, December 17, 2014

Tuesday, December 16, 2014

create CSV report in DB data YII

Standard
hi guys this is my testing code about yii  CSV report i created data table name as deal  and i created Deal control & crud this is my data table CREATE TABLE IF NOT EXISTS `deals` ( `DealId` int(11) NOT NULL AUTO_INCREMENT, `DealName` varchar(255) NOT NULL, `Dealdescription`...

Monday, December 8, 2014

YII ACCESS RULES from data base

Standard
this is represent haw add user access for specific users in to page i have 2 table  1.user table 2.user level table user table CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(20) NOT NULL, `password` varchar(128) NOT NULL, `email`...

Friday, December 5, 2014

Yii User access rules

Standard
this for YII USER MODULE Load and store the user's data every time a page is requested. To do this, modify the Controller class as follows: i added this on  compound controller becouse  All controller classes for this application should extend from this base class. public...

Thursday, December 4, 2014

YII Send Email & get Template content from database Part -2

Standard
see part-1 i created template folder on view & create file name as user_registation.php sample email template by channa smcs add add this site controll In code comment u can get basic undestand about what i did public function actionEmail() { // echo ''.(print_r($_POST,1)).' '; ...

YII Send Email & get Template content from database Part -1

Standard
in priviouse blog  make send user email & admin email . in this blog i coding sent email using email template  & get email content from data base . 1.create email template table to insert email data CREATE TABLE IF NOT EXISTS `emailtemplate` ( `id` int(11) unsigned...

Monday, December 1, 2014

Thursday, November 27, 2014

Yii Gridview CButton style

Standard
This  code shows about how to add a custom button with your own icon for your CGridView of Yii framework.“view”, “update”, “delete” button and it have corresponding actions. We can change it using CButtonColumn properties. widget('zii.widgets.grid.CGridView', array( ...

Sharp AQUOS Android Smartphone

Standard
Sharp Corporation collaborated with frog's team of designers and technologists to create “Feel UX”, a new Android smartphone experience that is easy to use, highly personalized, and visually stunning. STUNNING 3D REALISM ON SCREENThe AQUOS Phone's parallax barrier system—which imitates...

Get Country of IP Address with PHP

Standard
I'm trying to put together a PHP script that I can query from any web browser and it returns the Country of the IP address that accessed the PHP script There are various web APIs that will do this for you. Here's an example using http://ipinfo.io: $ip = $_SERVER['REMOTE_ADDR']; $details...

Wednesday, November 26, 2014

create div stick to top when scrolled

Standard
There are times when you would want to display a DIV bar at the top of the page when your scrolls on the page top or down  and it should go back to its original position when the user scrolls back up. jQuery code: / executed when the viewr scrolls the page. $(window).scroll(function(e) { // Get the position of the location where the scroller starts. var scroller_anchor = $(".scroller_anchor").offset().top; ...