Showing posts with label unfinished. Show all posts
Showing posts with label unfinished. Show all posts

Sunday, 19 September 2021

request headers in http options (angular)

 https://stackoverflow.com/questions/53980413/angular-common-http-has-no-exported-member-requestoptions

Friday, 17 March 2017

Amazon Web Service (AWS)

Basically AWS is a secure cloud services platform, offering compute power, database storage, content delivery and other functionality to help business and technology growth.

Amazon Web Service also is comprehensive and evolving cloud computing platform provided by Amazon.com. Web Services are sometimes called cloud services.


What is Cloud Computing?

Cloud computing is a general term for the delivery of hosted services over the internet.
Cloud computing enables companies to consume a compute resource, such as a virtual machine (VMs), storage or an application, as a utility -- just like electricity -- rather than having to build and maintain computing infrastructures in house.

The services provided by the Amazon Web Service are :
  • CloudDrive - allow users to uplaod files, important documents , videos , music , photos from web-connected devices. The service also enable users to stream music to their database,
  • CloudSearch
  • Dynamo Database ( also known as Dynamo DB)
  • Elastic Compute Cloud
  • ElastiCache
  • Mechanical Turk
  • Redshift (Data Warehouse)
  • Simple Storage Service (S3)


Reference
http://whatis.techtarget.com/definition/Amazon-Web-Services-AWS

Monday, 6 March 2017

Topic 9 - jQuery Datatables and Laravel

Topic 8 - Database Migration and Seeding

Migrations


Today we are going to learn to migrate to some of our database fields that we create inside database/migrations folder into or local database. Please follow these steps :

1: Php Artisan Command Migrate

php artisan make:migration alumnis



2: Migration Structure

class CreateAlumnisTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
      Schema::create('alumnis', function (Blueprint $table) {
          $table->increments('id');
          $table->string('name');
          $table->string('icno');
          $table->string('matrixno');
          $table->string('email');
          $table->timestamps();
          $table->softDeletes();
          $table->integer('created_by')->nullable();
          $table->integer('updated_by')->nullable();
          $table->integer('deleted_by')->nullable();
      });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
     public function down()
    {
        Schema::dropIfExists('alumni');
    }
}

3. Run Migration 

php artisan migrate 











4. Check Status Migrate

php artisan migrate:status














Seedings


However , after we migrate our migration file into our local database we cant leave them empty without example data. Seeding is more like initial data where we can insert dummies data to test with. Please follow these steps for better understanding :


1: Php Artisan Command Seeder


php artisan make:seeder AlumniSeeder
php artisan make:seeder -----> php artisan command
AlumniSeeder ----> table seeder



2: Class Seeder Structure


<?php

use Illuminate\Database\Seeder;

class AlumniSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      DB::table('alumnis')->insert([
           'name' => str_random(10),
           'icno' => str_random(10),
           'matrixno' => str_random(10),
           'email' => str_random(10),
       ]);
    }
}
3: Run Seeders File

By default , db:seed command runs all seeder files inside database/seeds folder. However we can specify seeder class by putting --class option to run individually.
php artisan db:seed
php artisan db:seed --class:AlumniSeeder


References 

https://laravel.com/docs/5.4/migrations#creating-tables
https://laravel.com/docs/5.4/seeding

Topic 7 - Query & Schema Builder

Wednesday, 1 March 2017

Learn Basic Bootstrap

Definition


So what is Bootstrap? Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web. Bootstrap is an open-source CSS, JavaScript framework that was originally developed for twitter application by twitter's team of designers and developers


Going Further

bootstrap.css - This is the main bootstrap.css file we'll use in our HTML pages. It will save us from needing to write a bunch of CSS. 

Topic 6 - Bootstrap a Larave Framework

Laravel Constant variable configuration can be done through creating a php file in config/YourConstant.php.

<?php

return [
    'display' => 25,
];
In example above, a php file contain a constant integer number which can be use anywhere in project folder. Thus to invoke the calling method, we can write like this :

@section('page-content')

     Config::get('columns.display');

@endsection

Wednesday, 22 February 2017

Working with Git

Terminology

Here’s the git terminology:
  • Master - the repository’s main branch. Depending on the work flow it is the one people work on or the one where the integration happens
  • Clone - copies an existing git repository, normally from some remote location to your local environment.
  • Commit - submitting files to the repository (the local one); in other VCS it is often referred to as “checkin”
  • Fetch or Pull - is like “update” or “get latest” in other VCS. The difference between fetch and pull is that pull combines both, fetching the latest code from a remote repo as well as performs the merging.
  • Push - is used to submit the code to a remote repository
  • Remote - these are “remote” locations of your repository, normally on some central server.
  • SHA - every commit or node in the Git tree is identified by a unique SHA key. You can use them in various commands in order to manipulate a specific node.
  • Head - is a reference to the node to which our working space of the repository currently points.
  • Branch - is just like in other VCS with the difference that a branch in Git is actually nothing more special than a particular label on a given node. It is not a physical copy of the files as in other popular VCS.

Example Cloning and Fetch from remote repository


Topic 4 - CRUD In Laravel Project

Git & GitLab Repository

What is Git?


Git is a version control system (VCS) for tracking changes in computer files and coordinating work on those files among multiple people. It us primarily used for software development, however it can also be used in tracking changes in any files. Git also one if the most widely used VCS in developer world. Git is a mature, actively maintained open source project originally developed in 2005 by Linus Torvalds, the famous creator of the Linux operating system kernel. A staggering number of software projects rely on Git for version control, including commercial projects as well as open source. Developers who have worked with Git are well represented in the pool of available software development talent and it works well on a wide range of operating systems and IDEs (Integrated Development Environments). Git has the functionality, performance, security and flexibility that most teams and individual developers need. These attributes of Git are detailed above. In side-by-side comparisons with most other alternatives, many teams find that Git is very favorable.


Git as Open Source Project


Git is a very well supported open source project with over a decade of solid stewardship. The project maintainers have shown balanced judgment and a mature approach to meeting the long term needs of its users with regular releases that improve usability and functionality. The quality of the open source software is easily scrutinized and countless businesses rely heavily on that quality. Being open source lowers the cost for hobbyist developers as they can use Git without paying a fee. For use in open-source projects, Git is undoubtedly the successor to the previous generations of successful open source version control systems, SVN and CVS.



How to clone a git repository using CMD?


1. Install Git Bash in your pc. 

2. Open Git Bash.

3. Change the current working directory to the location where you want the cloned directory to be  made.  Type git clone, and then paste the URL you copied in Step 2.


git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY

4. Enter. Your local clone will be created.
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
Cloning into `Spoon-Knife`...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (8/8), done.
remove: Total 10 (delta 1), reused 10 (delta 1)
Unpacking objects: 100% (10/10), done.