• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

GhazaliTajuddin.com

Another Kuantan Blogger

  • Home
  • Blog
    • Kuantan
    • Foods
    • Technology
    • Health
  • Stock Photography
    • Senarai Microstock Agency
    • Membuka akaun contributor Shutterstock.com
    • Tips untuk 10 keping gambar pertama Shutterstock.com
    • Mengapa Shutterstock.com reject gambar / submission
    • Model Release
    • Bagaimana withdraw earning daripada Fotolia
    • Bagaimana untuk mengisi keyword kepada imej dengan menggunakan Adobe Photoshop
You are here: Home / Blog

Blog

FTP Tutorial @ GhazaliTajuddin.com

April 3, 2012 by ghazalitajuddin 2 Comments

Mari2 belajar FTP!!! File Transfer Protocol!

Tak paham kasi komen ajer….

Filed Under: General, Technology Tagged With: Access, directory, File Transfer Protocol, folder, FTP, Host, Internet, Localhost, public_html, Remote, Server

Yii CGridView

March 30, 2012 by ghazalitajuddin Leave a Comment

Yii Framework
Yii Framework
  • CGridView is one of Zii Components
  • There is other than CGridView, CDetailView, CListView. Look here.
  • CGridView use DataProvider which define in controller
  • CGridView display data in tables.
  • Supports paginating, sorting, searching.
  • Also support view, update, delete method
Define our data provider in controller like this
[php]

/**
* Lists all models.
*/
public function actionIndex()
{
$dataProvider=new CActiveDataProvider(‘User’,
array(
‘pagination’=>array(
‘pageSize’=>10,
),
‘sort’=>array(
‘defaultOrder’=> array(‘id’=>false),
)
));

$this->render(‘index’,array(
‘dataProvider’=>$dataProvider,
));
}
[/php]

[Read more…] about Yii CGridView

Filed Under: General, Technology Tagged With: CGridView, CListView, Controller, Framework, Kuantan, kuantan programmer, kuantan web developer, kuantan webmaster, model, MVC, OOP, PHP, programmer, View, Widget, wordpress, yii, Yii Framework, Zii Component

Understand Yii Authentication Intermediate

March 30, 2012 by ghazalitajuddin 6 Comments

Yii Framework
Yii Framework

In this tutorial we will discuss about setting up our Yii application

  • Our Web Apps will have user registration page
  • Our Web Apps will varified user registration trough emails activation

The first thing is we need to look into our User table or our User model. Im setting up my tbl_user as below. Im also insert sample record :

[php]

—
— Table structure for table `tbl_user`
—

CREATE TABLE IF NOT EXISTS `tbl_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`salt` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`joined` date NOT NULL,
`activationcode` int(11) NOT NULL,
`activationstatus` int(11) NOT NULL,
`profile` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=11 ;

—
— Dumping data for table `tbl_user`
—

INSERT INTO `tbl_user` (`id`, `username`, `password`, `salt`, `email`, `joined`, `activationcode`, `activationstatus`, `profile`) VALUES
(1, ‘demo’, ‘2e5c7db760a33498023813489cfadc0b’, ’28b206548469ce62182048fd9cf91760′, ‘webmaster@example.com’, ‘0000-00-00’, 0, 0, NULL);

[/php]

[Read more…] about Understand Yii Authentication Intermediate

Filed Under: General, Technology Tagged With: Authentication, Controller, Framework, Kuantan, kuantan programmer, kuantan software developer, kuantan webmaster, Login, model, MVC, OOP, PHP, RBAC, View, Widget, wordpress, yii, Yii Framework

Understanding Yii Basic User Authentication

March 26, 2012 by ghazalitajuddin 1 Comment

Yii Framework
Yii Framework

Basicly, Yii basic skeleton already come with aunthentication system which is very simple by checking username and password both admin or demo.

The default authentication files is

  1. UserIdentity.php
  2. LoginForm.php
  3. SiteController.php
  4. Login.php
[Read more…] about Understanding Yii Basic User Authentication

Filed Under: General, Technology Tagged With: Authentication, CakePHP, Controller, Framework, Kuantan, kuantan programmer, kuantan software developer, kuantan webmaster, Login, model, MVC, OOP, PHP, View, wordpress, yii, Yii Framework

Understanding Yii CFORM

March 24, 2012 by ghazalitajuddin 5 Comments

Yii Framework
Yii Framework

In this tutorial we discuss about the basic principal of MVC using Yii Framework. How to create Model extends from CFormModel which we collect data from it, to create related Controller and finishing at View.

1. Generate webapp from Command Prompt

yiic webapp myapps

2. Uncomment gii on myapps/protected/config/main.php. Set your prefered password. This allow us to use scaffolding modules provided by Yii Framework. Please remove this when you ready to deploy your application for security reason.

3. Access your gii module at your browser

http://localhost/myapps/index.php?r=gii.

4. Using gii module online forms, create a Controller, name it MyData, it should generate MyDataController.php. You can access it at root/myapps/controllers/MyDataController.php

5. Duplicate myapps/models/ContactForm.php, rename it as MyDataForm.php. This will act as your model. This model extends CFormModel class as we dont use Active Records.

6. Clean up MyDataForm.php like this

[php]
/**
* ContactForm class.
* ContactForm is the data structure for keeping
* contact form data. It is used by the ‘contact’ action of ‘SiteController’.
*/
class MyDataForm extends CFormModel
{
public $name;
public $email;
public $subject;

/**
* Declares the validation rules.
*/
public function rules()
{
return array(
// name, email, subject and body are required
array(‘name, email, subject’,’required’),
);
}

}[/php]

[Read more…] about Understanding Yii CFORM

Filed Under: General, Technology Tagged With: CakePHP, Controller, Framework, model, MVC, OOP, PHP, View, wordpress, yii, Yii Framework

My new toys, Sony Nex-5n with Nikkor Lenses

February 6, 2012 by ghazalitajuddin 15 Comments

Super sharp.

99% Accurate WB.

Super ISO.

Terbaekkkkk. Itulah yang aku nak sebut pasal Nex5n ni. Actually aku memang sedang mencari sebuah travel camera yang kecil, compact yang mudah diusung kemana-mana. DSLR juga sesuai, tetapi saiznya terlalu besar, dan berat menjadikan ia satu beban pula bila nak kemana-mana. DSLR juga menyebabkan kita kelihatan “PRO”  atau terlalu sirius dimana ada sesetengah keadaan kita mahu kelihatan “Newbie” atau hobby photographer. Lebih2 lagi jika kita ada intention untuk membawa masuk kamera ini ketempat2 sulit seperti sesetengah pasaraya ekslusif, bangunan komersil atau kilang2 industri yang tidak membenarkan kamera besar gabak seperti DSLR.

Submit Photos to Shutterstock and make $$$!

APSC, atau Advanced Photo System type-C (APS-C) merupakan teknologi sensor yang  digunapakai oleh Nex5n ini. Saiznya hampir sama besar dengan sensor yang digunakan oleh sesetengah Nikon DSLR yang menyebabkan Nex5n ini lebih menonjol berbanding kompetitornya Nikon 1 atau Panasonic GF3.  Selain itu kawalan ISOnya juga sangat baik, dengan ISO setinggi 6400, output yang terhasil masih menunjukkan detail yang masih jelas.

Perbandingan saiz sensor (Wikipedia)
Perbandingan saiz sensor (Wikipedia)

Dengan menggunakan adapter ring, kamera ini membolehkan lense2 lain digunakan bersama Nex5n ini. Ini memberi kelebihan kepada pengguna2 DSLR yang mempunya koleksi lense seperti Nikon atau Canon untuk menggunakannya bersama Nex5n ini. Cuma kita kehilangan autofocust lah, namun ia tidak menjadi masalah kerana Sony memperkenalkan satu fungsi dipanggil Peeking yang sangat membantu dalam manual focusing.

Namun, kelemahan ketara Nex5n ini adalah Hot Shoe. Yerp, Nex5n ni takde hot shoe. So bila takde hot shoe maka tak boleh nak pasang remote trigger bagi kegunaan studio photography. Memang boleh guna optical light sensor, tapi tak lah best seperti menggunakan trigger. Selain tu, maximum speed dia 1/4000 jer, ok lah. Bracketing pom 3 exposure jer. Lain2 belom explore abis lagi.

Aku ni nak borak lebih2 pasal teknikal ni malas lah, janji boleh hasil gambo berkualiti sudaaaa….. ok? Berikut adalah testimonial aku on Sony Nex-5n dengan Nikkor lense dan juga Sony lense. Harap dapat membantu.

Sony Nex-5n with Nikkor 35mm F1.8
Sony Nex-5n with Nikkor 50mm F1.4
Sony Nex-5n with Nikkor 50mm F1.4
Sony Nex-5n with Sony 18-55mm F3.5-5.6
Sony Nex-5n with Sony 18-55mm F3.5-5.6
Sony Nex-5n with Nikkor 50mm F1.4

Submit Photos to Shutterstock and make $$$!

Sony Nex-5n with Nikkor 50mm F1.4
Sony Nex-5n with Nikkor 50mm F1.4
Sony Nex-5n with Sony 18-55mm F3.5-5.6
Sony Nex-5n with Sony 18-55mm F3.5-5.6
Sony Nex-5n with Sony 18-55mm F3.5-5.6
Sony Nex-5n with Sony 18-55mm F3.5-5.6

 

Sony Nex-5n with Nikkor 35mm F1.8 G from Ahmad Ghazali Ahmad Tajuddin on Vimeo.

Submit Photos to Shutterstock and make $$$!

Filed Under: General, Photography Tagged With: alpha, malaysian, nex-5n, nikon, sony, stock photo, stock photography

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 39
  • Page 40
  • Page 41
  • Page 42
  • Page 43
  • Interim pages omitted …
  • Page 57
  • Go to Next Page »

Primary Sidebar

“Solat. Sabar. Syukur. Senyum. Sedekah.”

For Collaboration, Events & Review, kindly contact me at +6016[-]9212092 or click Whatsapp button on this page.

Sponsor

Recent Posts

BadMethodCallException Method Illuminate\Database\Eloquent\Collection::roles does not exist.

User Roles And Permissions Without Package Laravel 10

Laravel Many To Many Relationship

Makan malam bersama keluarga di Awangan Palace

Sarapan pagi di Warung Gulai Kawah

Recent Comments

  • helmi on Personal Tips Berhenti Merokok
  • ghazalitajuddin on Personal Tips Berhenti Merokok
  • helmi on Personal Tips Berhenti Merokok
  • ghazalitajuddin on Nasi Lemak Kukus Restoran Zaman. Otai masih berbisa.
  • ghazalitajuddin on Air tangki radiator Proton Exora cepat kering? Cuba tukar penutup radiator!
  • Mal on Nasi Lemak Kukus Restoran Zaman. Otai masih berbisa.
  • Firdaus on Air tangki radiator Proton Exora cepat kering? Cuba tukar penutup radiator!

My Link

  • Takaful Insurance Web

JJCM

Kuih Akok Kedut Kelantan

Aneka Kuih Tradisional

Lain macam Nasi Kerabu Mekla ni

Nasi Lemak Kukus Restoran Zaman. Otai masih berbisa.

Nasi Ayam Papa ~ Best Hainan Chicken Rice In Town

Tags

bebas rokok berhenti merokok breakfast Controller Framework Gezzeg Photography & Design health jalan-jalan cari makan jalan-jalan cari makan kuantan jjcm jjcm kuantan Jurufoto Kuantan Kuantan Kuantan Photographer kuantan programmer kuantan web developer kuantan webmaster laravel merokok merbahayakan kesihatan model MVC nikmat rokok OOP Pahang Pahangtourism pahang tourism Photo Manipulation PHP rajalanun retired smoking revisit pahang 2018 shutterstock stop smoking stop smoking tips stop smoking withdrawal symptom tips tips berhenti merokok View visit malaysia 2020 visit pahang visitpahang white wordpress yii Yii Framework

Recent Posts

  • BadMethodCallException Method Illuminate\Database\Eloquent\Collection::roles does not exist.
  • User Roles And Permissions Without Package Laravel 10
  • Laravel Many To Many Relationship
  • Makan malam bersama keluarga di Awangan Palace
  • Sarapan pagi di Warung Gulai Kawah

Copyright © 2025 — Ghazali Tajuddin • All rights reserved. •