May 202013
 

more informations read here.

Available installation media

Mageia has two distinct installation media types:

  • DVD ISO and Dual-arch CD ISO, which use the drakx traditional installer and
  • Live DVD/CD ISO, a live ISO which can be used to preview the distribution and also later be used to install Mageia on your hard drive.

For more information have a look at the installation media page.

You will always find the download info on the Mageia download page; direct (ftp and http) and BitTorrent downloads are available.

The Mageia online repositories

The Mageia software sits in three different repositories/media, depending on the type of license applied to each package. Here’s an overview of those repositories:

  • Core: The Core repository includes packages with free-open-source software, i.e. packages licensed under a free-open-source license, the set of the “Core” media along with “Core Release” and “Core Updates” are available by default.
  • Nonfree: The Nonfree repository includes packages that are free-of-charge, i.e. Mageia may redistribute them, but they contain closed-source software (hence the name – Nonfree). For example this repository includes nVidia and ATI graphics card proprietary drivers, firmware for various WiFi cards, etc.
    The Nonfree media set is added by default but not enabled by default.
  • Tainted: The Tainted repository includes packages released under a free license. The main criteria for placing packages in this repository is that they may infringe on patents and copyright laws in some countries, e.g. multimedia codecs needed to play various audio/video files; packages needed to play commercial video DVD, etc.
    The Tainted media set is added by default but not enabled by default, i.e. it’s completely opt-in; so check your local laws before using packages from this repository.
    This repository is only added for the convenience of the users. This repository is to Mageia what PLF is to Mandriva users or RPM Fusion is to Fedora users.
 Posted by at 00:20
May 192013
 

From this web page, I learned some concepts of Joomla:

  • Component: mini-application to render the main page body
  • Module: renders small html blocks on any page
  • Plugin: changes code behavior dynamically (renamed from mambot in Joomla! 1.0.x)
  • Template: provides the site’s design (layout, colours, images etc.)
  • Language: provides language translation

The Component, Module concept is different from Drupal or WordPress.

In wordpress, you have to write plugin to change code behavior dynamically, render anything via template, but in joomla, you must understand that if you want to render something like a banner, a box, need to build a component.

The Module is more like widget in wordpress.

 Posted by at 23:20
May 192013
 
  • What do you want to accomplish with your website?
  • What is the nature and quantity of content you wish to present?
  • Who is your audience, and how do you want to interact with them?
  • What types of budgets or timetables are you working within?

From this article ‘Planning Your Website‘, I learned the four items. It’s very important to write the answer down, check it day and day, then refactor when it’s necessary.

May 192013
 

Object is one of the types of PHP Language, like String, Float, Integer.Unlike Python, everything is object, in PHP, at the moment PHP5.4, need more time to learn what is object.

Under PHP5.4:

 
Let me show you some code:

<?php
$arr = array('foo'=>'foo value','bar'=>'bar value');
$obj = (object)$arr;
echo $obj->foo; // we get 'foo value'
echo $obj->bar; // we get 'bar value'

Now what about this one?

<?php
$arr = array('foo'=>'foo value',
             'bar'=>'bar value',
             'foobar');
$obj = (object)$arr;
echo $obj->foo;
echo $obj->bar;
print_r($obj);

this line print_r($obj); will show you the following result:

stdClass Object
(
    [foo] => foo value
    [bar] => bar value
    [0] => foobar
)

You must remember that:

  • you can not use $obj->0 to get value, even $obj->{0} does not work.
  • at the moment, you can not instance a general object via $obj = new object() or $obj = new Ojbect()

Why you can’t instance an object via $obj = new object()? That’s because object is object, a general object need to be instanced via a class, try this one: $ojb = new stdClass();, it works.

<?php
$obj = new stdClass();
var_dump($obj); // it works

At last, you can instance an object without a declared construct function. Try is:

<?php
class MyClass
{
    public function getName()
    {
        return 'MyClass';
    }

    public static function getValue()
    {
        return 'ValueIsMyClass';
    }
}

$myClass = new MyClass;
print $myClass->getName(); //it works
print MyClass::getValue(); //it works

 Posted by at 19:31