Hello , Today I am writing some mistakes we have done for my Event module Details…
Author: akash073
Angular 6 project basic to advance commands
01. Install angular CLI npm -g install @angular/cli npm install -g @angular/cli@latest 02. Check angular Details…
Create role based authentication in Laravel
01.Create a laravel 5.4 projects composer create-project laravel/laravel AuthenticationLaravel “5.4.*” We can use larave 5.5 Details…
Add hamburger menu in CSS bootstrap 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
<div class="container"> <div class="row"> <!-- <nav class="navbar navbar-inverse navbar-static-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li><a href="index.php">Home</a></li> <li><a href="about.php">About</a></li> <li><a href="#portfolio">Portfolio</a></li> <li><a href="#">Blog</a></li> <li><a href="contact.php">Contact</a></li> </ul> </div> </div> </nav>--> <!-- <div class="col-xs-6">--> <!-- </div>--> <!-- <div class="col-xs-6">--> <!--<div class="socialSection clearfix"> <ul class="nav nav-pills pull-right"> <li class="backToHome"><a href="http://www.nascenia.com/">BACK TO HOME</a></li> <li><a href="http://www.facebook.com/nascenia"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> <li><a href="https://twitter.com/nasceniaIT"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> <li><a href="http://www.linkedin.com/company/1132301"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> <li><a href="http://www.youtube.com/user/Nascenia"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li> <li><a href="https://www.behance.net/Nascenia"><i class="fa fa-behance" aria-hidden="true"></i></a></li> <li><a href="http://www.pinterest.com/nascenia/"><i class="fa fa-pinterest" aria-hidden="true"></i></a></li> <li><a href="https://github.com/nascenia"><i class="fa fa-github" aria-hidden="true"></i></a></li> </ul> </div>--> <nav class="navbar navbar-inverse navbar-static-top" role="navigation"> <div class="navbar-header"> <a class="logo" href="http://www.nascenia.com/"> <img class="img-responsive" src="img/logo.png" alt=""> </a> <button id="hamburger-btn" type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <!-- <ul class="nav navbar-nav "> <li><a href="index.php">Home</a></li> <li><a href="about.php">About</a></li> <li><a href="#portfolio">Portfolio</a></li> <li><a href="#">Blog</a></li> <li><a href="contact.php">Contact</a></li> </ul>--> <div class=""> <ul class="nav navbar-nav "> <li class="backToHome"><a href="http://www.nascenia.com/">BACK TO HOME</a></li> <li><a href="http://www.facebook.com/nascenia"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> <li><a href="https://twitter.com/nasceniaIT"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> <li><a href="http://www.linkedin.com/company/1132301"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> <li><a href="http://www.youtube.com/user/Nascenia"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li> <li><a href="https://www.behance.net/Nascenia"><i class="fa fa-behance" aria-hidden="true"></i></a></li> <li><a href="http://www.pinterest.com/nascenia/"><i class="fa fa-pinterest" aria-hidden="true"></i></a></li> <li><a href="https://github.com/nascenia"><i class="fa fa-github" aria-hidden="true"></i></a></li> </ul> </div> </div> </nav> </div> <!--</div>--> </div> |
Enable Cors in laravel 5
01.Create a laravel project
1 |
composer create-project laravel/laravel myapp |
02.Create middleware
1 |
php artisan make:middleware Cors |
03.Cors file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
public function handle($request, Closure $next) { // return $next($request); // ALLOW OPTIONS METHOD $headers = [ 'Access-Control-Allow-Origin' => '*', 'Access-Control-Allow-Methods' => 'POST, GET, OPTIONS, PUT, DELETE', 'Access-Control-Allow-Headers' => 'Content-Type, X-Auth-Token, Origin, Authorization' ]; if ($request->getMethod() == "OPTIONS") { // The client-side application can set only headers allowed in Access-Control-Allow-Headers return \Response::make('OK', 200, $headers); } $response = $next($request); foreach ($headers as $key => $value) $response->header($key, $value); return $response; } |
04.In kernel.php add in Details…
read contracts from android phone
//http://www.technotalkative.com/android-fetch-inbox-sms/ //Code Cursor phones = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,null,null, null); while (phones.moveToNext()) { String name=phones.getString(phones.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME)); String phoneNumber Details…
UI design in Ios swift 4
*Tab bar navigaTION CONTROLER https://www.youtube.com/user/webdevilsvideos/playlists https://mrfu.me/2017/09/05/AutoLayout_for_a_Calculator/
Table view in iOS
*Dynamic label problem solved by only a margin from trailing *Dynamic Row Height Drag and Details…
IOS learning material
Swift 4 (first learn limitation of ios .because there is lot of limitation ) *With Details…
Add a user and grant privilege in mysql
1 |
CREATE USER 'mcp'@'localhost' IDENTIFIED BY 'password'; |
1 |
GRANT ALL PRIVILEGES ON * . * TO 'mcp'@'localhost'; |
1 |
FLUSH PRIVILEGES; |
for more information https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql
1 |
mysql -u root -pabc |
create database #Export
1 |
mysqldump -u [uname] -p[pass] db_name > db_backup.sql |
#import
1 |
mysql -u username -p -h localhost DATA-BASE-NAME < data.sql |