Pages

Motor kesayangan hamba

Motor kesayangan hamba

Thursday, 13 October 2011

TUGASAN 5(INSTALL UBUNTU)


Installing Ubuntu

Now that you have the Desktop CD, you'll need to reboot your computer to use Ubuntu.Your computer's BIOS must be set to boot from CD first; otherwise, Windows will just load up again. To get into the BIOS settings, you usually have to press one of these keys during boot-up: Escape, F1, F2, F12, or Delete. Usually your computer will tell you which key to use.

Once your BIOS is configured to boot from CD first, if you have Ubuntu in the drive, you should see this screen. Ubuntu will take a couple of minutes to load up. Just be patient.

Select your preferred language.
If you have at least 512 MB of RAM, you may want to select Try Ubuntu, as it will allow you to do other things (check your email, browse the web) while you're installing Ubuntu.
If you have only 256 MB or 384 MB of RAM, you should select Install Ubuntu. This will give you the same installation screens you see below, but you won't have the rest of the Ubuntu live session running as well.
If you have less than 256 MB of RAM, you should use the Alternate CD to install Ubuntu, or do a barebones installation.

If you choose to install Ubuntu directly, the installer will launch immediately. If you choose the Try Ubuntu option, you'll be in the Ubuntu live session. From there, click the Install Ubuntu icon on the desktop.
You may notice that this tutorial's screenshots are different from what you see. For example, in this tutorial, there are large icons that line the left side of the screen. You may see instead a more traditional toolbar on top and bottom (instead of the side). That's okay. Basically, there's a new user interface in Ubuntu 11.04 called Unitybut it has certain system requirements. If Ubuntu's installer detects your computer meets those requirements, you'll see the large icons on the left. If not, you'll see the more traditional user interface.


Select your language.

There is a new option in the Ubuntu 11.04 and 10.10 installers that asks if you want to install closed source third-party software for MP3 playback and Flash, for example. I would strongly suggest—unless you know who Richard Stallman is—that you check (or tick) this option.

If you want to install Ubuntu next to Windows so you can choose which operating system you want at boot-up, select the first option. As mentioned before, do this only if you don't anticipate even a small possiblity of returning exclusively to Windows. A traditional dual-boot can be undone but it's not easy.
If you want to erase Windows completely and install Ubuntu over it, select to replace Windows.
Select the third option if you know a lot about partitions and want to manually configure stuff yourself. If you know enough to select the third option, you don't need a tutorial telling you what to do.

If you selected a dual-boot, you can use your mouse to drag the slider in the middle and pick the relative sizes on your hard drive that Windows and Ubuntu will take up respectively.

This is the no-turning-back point. If you decide to do this, your hard drive will be repartitioned and part or all of it will be formatted. Before you click this button to continue, make sure you have everything backed up.
 
While Ubuntu is preparing files to copy over for installation, it'll ask you some questions. They're self-explanatory.
    
Eventually, the installation will finish (the whole thing can take anywhere between 15 minutes and an hour, depending on the speed of your computer). You can either Continue Testing if you want to shutdown your computer or Restart Now if you want to restart your computer.
Either way, Ubuntu will eject your CD (or prompt you for when to remove your USB stick, if you used UNetBootIn instead of a CD burning program). The next time you boot up, you should have a working Ubuntu installation.

TUGASAN 2

I/O MANAGEMENT

            Input/output, or I/O, refers to the communication between an information processing system (such as a computer), and the outside world, possibly a human, or another information processing system. Inputs are the signals or data received by the system, and outputs are the signals or data sent from it. The term can also be used as part of an action; to "perform I/O" is to perform an input or output operation. I/O devices are used by a person (or other system) to communicate with a computer. For instance, a keyboard or a mouse may be an input device for a computer, while monitors and printers are considered output devices for a computer. Devices for communication between computers, such as modems andnetwork cards, typically serve for both input and output.
Note that the designation of a device as either input or output depends on the perspective. Mouse and keyboards take as input physical movement that the human user outputs and convert it into signals that a computer can understand. The output from these devices is input for the computer. Similarly, printers and monitors take as input signals that a computer outputs. They then convert these signals into representations that human users can see or read. For a human user the process of reading or seeing these representations is receiving input. These interactions between computers and humans is studied in a field called human–computer interaction.
In computer architecture, the combination of the CPU and main memory (i.e. memory that the CPU can read and write to directly, with individual instructions) is considered the brain of a computer, and from that point of view any transfer of information from or to that combination, for example to or from a disk drive, is considered I/O. The CPU and its supporting circuitry provide memory-mapped I/O that is used in low-level computer programming in the implementation of device drivers. An I/O algorithm is one designed to exploit locality and perform efficiently when data reside on secondary storage, such as a disk drive.

CONCEPT OF BUFFERING


In computer science, a buffer is a region of a physical memory storage used to temporarily hold data while it is being moved from one place to another. Typically, the data is stored in a buffer as it is retrieved from an input device (such as a mouse) or just before it is sent to an output device (such as speakers). However, a buffer may be used when moving data between processes within a computer. This is comparable to buffers in telecommunication. Buffers can be implemented in a fixed memory location in hardware - or by using a virtual data buffer in software, pointing at a location in the physical memory. In all cases, the data stored in a data buffer, are stored on a physical storage media. A majority of buffers are implemented in software, which typically use the faster RAM memory to store temporary data, due to the much faster access time compared with Hard Disk Drives. Buffers are typically used when there is a difference between the rate at which data is received and the rate at which it can be processed, or in the case that these rates are variable, for example in a printer spooler or in online video streaming.

SPOOLING TECHNIQUE

 Spool refers to the process of placing data in a temporary working area for another program to process. The most common use is in writing files on a magnetic tape or disk and entering them in the work queue (possibly just linking it to a designated folder in the file system) for another process. Spooling is useful because devices access data at different rates. Spooling allows one program to assign work to another without directly communicating with it.

TUGASAN 1

MEMORY MANAGEMENT
Memory management is the act of managing computer memory. In its simpler forms, this involves providing ways to allocate portions of memory to programs at their request, and freeing it for reuse when no longer needed. The management of main memory is critical to the computer system.
Virtual memory systems separate the memory addresses used by a process from actual physical addresses, allowing separation of processes and increasing the effectively available amount of RAM using paging or swapping to secondary storage. The quality of the virtual memory manager can have a big impact on overall system performance.
Garbage collection is the automated deallocation of computer memory resources for a program. This is generally implemented at the programming language level and is in opposition tomanual memory management, the explicit allocation and deallocation of computer memory resources. Region-based memory management is an efficient variant of explicit memory management that can deallocate large groups of objects simultaneously.

OBJECTIVE OF MEMORY MANAGEMENT

  • Memory management allows you to make sure that precious memory space isn't taken up by objects that no longer have a purpose in your application, and that objects that are still needed continue to exist. After an object has been created and you finish using it, it will need to be disposed of so that memory isn't taken up needlessly.
  • When an object becomes detached from an application's control without being "de-allocated," memory is wasted.
  • To provide a detailed description of the Intel Pentium, which supports both pure segmentation and segmentation with paging.
  •   Register access in one CPU clock (or less).
  •   Main memory can take many cycles.
  •   Cache sits between main memory and CPU registers.
  •    Protection of memory required to ensure correct operation.


VIRTUAL MEMORY IMPLEMENTATION

In computing, virtual memory is a memory management technique developed for multitasking kernels. This technique virtualizes acomputer architecture's various forms of computer data storage (such as random-access memory and disk storage), allowing a program to be designed as though there is only one kind of memory, "virtual" memory, which behaves like directly addressable read/write memory (RAM).
Most modern operating systems that support virtual memory also run each process in its own dedicated address space, allowing a program to be designed as though it has sole access to the virtual memory. However, some older operating systems (such as OS/VS1and OS/VS2 SVS) and even modern ones (such as IBM i) are single address space operating systems that run all processes in a single address space composed of virtualized memory.
Systems that employ virtual memory:
  • use hardware memory more efficiently than do systems without virtual memory.
  • make the programming of applications easier:
    • by hiding fragmentation,
    • by delegating to the kernel the burden of managing the memory hierarchy (there is no need for the program to handle overlay sexplicitly),
    • and, when each process is run in its own dedicated address space, by obviating the need to relocate program code or to access memory with relative addressing..
Embedded systems and other special-purpose computer systems that require very fast and/or very consistent response times may opt not to use virtual memory due to decreased determinism; virtual memory systems trigger unpredictable interrupts that may produce unwanted "jitter" during I/O operations. This is because embedded hardware costs are often kept low by implementing all such operations with software (a technique called bit-banging) rather than with dedicated hardware. In any case, embedded systems usually have little use for complicated memory hierarchies.




























PAGING


In computer operating systems, paging is one of the memory-management schemes by which a computer can store and retrieve data from secondary storage for use in main memory. In the paging memory-management scheme, the operating system retrieves data from secondary storage in same-size blocks called pages. The main advantage of paging is that it allows the physical address space of a process to be noncontiguous. Before the time paging was used, systems had to fit whole programs into storage contiguously, which caused various storage and fragmentation problems.
Paging is an important part of virtual memory implementation in most contemporary general-purpose operating systems, allowing them to use disk storage for data that does not fit into physical random-access memory (RAM).

Paging supervisor

This part of the operating system creates and manages page tables. If the hardware raises a page fault exception, the paging supervisor accesses secondary storage, returns the page that has the virtual address that resulted in the page fault, updates the page tables to reflect the physical location of the virtual address and tells the translation mechanism to restart the request.
When all physical memory is already in use, the paging supervisor must free a page in primary storage to hold the swapped-in page. The supervisor uses one of a variety of page replacement algorithms such as least recently used to determine which page to free.

MEMORY SEGMENTATION

Memory segmentation is one of the most common ways to achieve memory protection, another common one is paging, and both methods can be combined. The size of memory segments is generally not fixed and is usually less than any limitation imposed by the computer, otherwise segmentation could be treated the same as paging. Also segmentation is generally more visible than paging because the programmer or compiler has to define the segments.
A segment has a set of permissions, and a length, associated with it. A process is only allowed to make a reference into a segment if the type of reference is allowed by the permissions, and the offset within the segment is within the range specified by the length of the segment. Otherwise, a hardware exception such as a segmentation fault is raised.
As well as its set of permissions and length, a segment also has associated with it information indicating where the segment is located in memory. It may also have a flag indicating whether the segment is present in main memory or not; if a segment is accessed that is not present in main memory, an exception is raised, and the operating system will read the segment into memory from secondary storage. The information indicating where the segment is located in memory might be the address of the first location in the segment, or might be the address of a page table for the segment, if the segmentation is implemented with paging. In the first case, if a reference to a location within a segment is made, the offset within the segment will be added to address of the first location in the segment to give the address in memory of the referred-to item; in the second case, the offset of the segment is translated to a memory address using the page table.
When a segment does not have a page table associated with it, the address of the first location in the segment is usually an address in main memory; in those situations, no paging is done. In the Intel 80386 and later, that address can either be an address in main memory, if paging is not enabled, or an address in a paged address space, if paging is enabled.
A memory management unit (MMU) is responsible for translating a segment and offset within that segment into a memory address, and for performing checks to make sure the translation can be done and that the reference to that segment and offset is permitted.

MEMORY RELOCATION POLICY

In systems with virtual memory, programs in memory must be able to reside in different parts of the memory at different times. This is because there is often not enough free space in one location of memory to fit the entire program. The virtual memory management unit must also deal with concurrency. Memory management in the operating system should therefore be able to relocate programs in memory and handle memory references and addresses in the code of the program so that they always point to the right location in memory.





Sunday, 11 September 2011

MAKANAN MELAYU
Penduduk Melayu, Cina dan pelbagai kaum etnik yang lain telah hidup bersama sejak beberapa generasi yang lalu. Pelbagai budaya yang berbeza ini telah saling mempengaruhi antara satu sama lain, menghasilkan gabungan budaya Malaysia yang unik. Jumlah kaum terbesar di Malaysia adalah kaum Melayu, Cina dan India. Negeri Sabah dan Sarawak juga mempunyai pelbagai kumpulan etnik peribumi, masing-masing dengan budaya serta warisan yang unik dan tersendiri.

Hari ini, kaum Melayu, kumpulan etnik terbesar di Malaysia iaitu merangkumi lebih 50 peratus penduduk negara ini. Di Malaysia, jika merujuk kepada orang Melayu menunjukkan orang itu beragama Islam dan mengamalkan kebudayaan Melayu, berbahasa Melayu dan mempunyai keturunan Melayu. Pada asalnya mereka penganut Theravada Buddha dan Hindu pada kurun ke 1400-an, dan dengan pengaruh Istana Melaka ketika itu mereka menganut Islam. Orang Melayu terkenal kerana peramah dan budaya seni mereka yang sangat kaya.
antara Makanan traditional melayu ialah:
Botok-botok
Botok- botok sejenis makanan tradisi orang Johor. Seperti juga telur pindang yang hanya boleh disediakan dengan baik oleh orang lama di Johor sahaja. Ianya berbungkus didalam daun pisang dan apabila dibuka kita akan dapati beberapa potong ikan yang diselaputi dengan banyak rempah ratus. Ikan yang selalu digunakan untuk masakan ini ialah ikan tenggiri atau ikan merah. Rempahnya yang istimewa khabarnya terdiri dari berbagai herba termasuk beberapa jenis daun pokok bunga puding.
Cencalok
Masyarakat Melayu di Melaka memang terkenal dengan pelbagai makanan tradisionalnya, yang memang cukup popular, bukan sahaja di tempat asalnya, malahan sudah melangkaui sempadan Malaysia. Selera Melaka sudah menjadi santapan lazim masyarakat Malaysia. Salah satu makanan yang menjadi kegemaran masyarakat Melayu Melaka ialah cencalok. Cencalok ialah sejenis lauk dalam hidangan makanan nasi. Cencaluk dibuat daripada udang halus yang lebih dikenali sebagai udang geragau. Udang geragau akan dicampurkan dengan air dan akan dicampurkan dengan sedikit nasi. Setelah ketiga-tiga bahan tadi sudah menjadi sebati, seterusnya akan dimasukkan ke dalam sebuah bekas iaitu pasu atau tempayan kecil dan ditutup rapat-rapat dengan menggunakan kain bersih untuk diperam dan disimpan selama 3 hari. Untuk menyedapkan rasanya lagi bolehlah dimasukkan sedikit air didih nasi. Untuk menyedapkan lagi apabila dimakan dengan nasi, hendaklah dicampurkan dengan lada basah dan bawang besar yang dihiris kemudian diperahkan dengan limau nipis atau limau kasturi atau juga dicampurkan sedikit lada basah dan sehiris halia kemudian digoreng dengan telur.
Gula Melaka







Gula Melaka atau dikenali juga dengan nama Gula Tuak banyak terdapat di Melaka. Gula Melaka diperbuat daripada air nira kelapa. Kemanisan dan kehalusan Gula Melaka ini berbeza dengan gula tiruan yang berada di pasaran kini.
Proses membuat Gula Melaka bukanlah satu pekerjaan yang mudah kerana ia terpaksa melalui tiga peringkat pemprosesan. Seseorag yang pakar dalam membuat Gula Melaka dapat mengenal pasti kelapa yang dapat menghasilkan air nira yang baik. Ini penting bagi mendapatkan Gula Melaka yang bermutu tinggi.
Peringkat pertama dalam menghasilkan Gula Melaka ialah dengan menggunakan buluh dan pengikatnya serta pisau yang dikenali sebagai ‘penyadap’ untuk mengambil nira kelapa. Setelah itu, mayang kelapa dilenturkan dengan membalutnya pada daun kelapa muda. Ianya dilenturkan sedikit demi sedikit dan proses ini berterusan sehingga seminggu bagi mengelakkan tangkai mayang itu patah. Mayang yang dilentur dibuang seludangnya dan dihiris sedikit demi sedikit dan air nira ditakung ke dalam buluh yang sepanjang 1 kaki. Di dalam tabung tersebut diletakkan sedikit kapur untuk mencegah air nira daripda menjadi masam. Air nira ini dikenali sebagai air tuak.
Pada peringkat kedua proses memasak Gula Melaka selama empat jam. Pada peringkat ini pengawasan dan pengalaman penting bagi mneghasilkan gula yang baik. Tempat memasak gula Melaka dikenali sebagai sebagai ‘sabak’. Api sabak mesti dijaga agar tidak terlalu besar ketika gula mulai pekat dan mengeluarkan buih yang berwap panas. Nyalaan api tidak boleh dibesarkan lagi di peringkat ‘bunga sena’ di mana keadaan gula telah menjadi agak pekat dan mengeluarkan banyak buih dan mula dikacau perlahan-lahan. Beberapa minit kemudian, kancah diturunkan dan terus dikacau bagi menghasilkan gula yang halus.
Peringkat terakhir ialah bagi memastikan setelah cukup ukuran kepekatannya dan gula masih panas dituangkan ke dalam acuan yang diperbuat daripada buluh setinggi 3 inci, tidak tertutup di kedua-dua hujungnya dan tabung tersebut diletakkan di atas lantai khas. Setelah beku, gula tersebut dikeluarkan daripada bekas tersebut.


Otak-otak



Otak-otak adalah sejenis makanan tradisional di perkampungan nelayan. Kebiasaannya dimakan sebagai makanan ringan di jamuan petang. Terdapat dua jenis otak-otak di Malaysia iaitu “Otak-otak Terengganu” dan “Otak-otak Johor.”

Pada lazimnya ia dibungkus dengan daun kelapa atau daun nipah tetapi kini ianya boleh dibungkus dengan kulit popia dan dikenali sebagai ‘spring roll’. Kebiasaan otak-otak diperbuat daripada isi ikan laut. Bagi ikan air tawar yang sesuai untuk dibuat otak-otak ialah ikan tilapia merah, patin dan keli. Otak-otak yang dibungkus dengan daun kelapa atau daun nipah perlu dibakar di atas dapur arang atau dapur biasa. Ia lebih enak dimakan ketika masih panas.
Tapai

Tapai ialah sejenis penganan yang dibuat daripada pulut. Terdapat 2 jenis tapai iaitu tapai ubi dan tapai pulut. Biasanya tapai pulut lebih popular jika dibandingkan dengan tapai ubi. Tapai pulut rasanya lebih sedap kerana itulah tapai ubi tidak dapat menandingi tapai pulut.
Bahan-bahan untuk membuat tapai tidaklah terlalu rumit. Tapai pulut memerlukan bahan seperti pulut, ragi dan sedikit gula. Ketiga-tiga bahan ini hendaklah dicampurkan sehingga sebati. Kemudiannya akan dibungkus sedikit-sedikit dengan menggunakan daun yang disebut sebagai daun tapai. Tetapi pada zaman ini, daun tapai semakin sukar didapati dan kebanyakan tapai dibungkus dengan menggunakan daun pisang. Terdapat sedikit perbezaan rasa antara tapai yang dibungkus dengan daun tapai dan tapai yang dibungkus dengan daun pisang.
Tapai yang telah siap dibungkus dimasukkan ke dalam pasu tempayan yang besar dan ditutup dengan kain. Setelah diperam dan disimpan selama 3 hari, tapai itu akan masak dan barulah boleh dimakan. Tapai yang telah masak mengeluarkan air yang sangat manis. Air tapai ini boleh diminum dan juga boleh dijadikan sebagai ubat tradisional.
Orang tua zaman dahulu juga mempunyai pantang larang apabila hendak membuat tapai. Apabila tapai sedang dibungkus, seseorang itu tidak boleh memakan sirih atau mendekatkan dengan benda-benda yang berwarna merah. Jika pantang larang ini dilanggar, tapai tersebut akan berwarna merah dan rasanya tidak sedap. Seseorang itu juga tidak boleh memakan benda yang masam ketika membungkus tapai kerana ia akan menyebabkan tapai menjadi masam.
Tapai yang telah masak juga tidak boleh disimpan lama, masanya adalah lebih kurang dalam 2 hari sahaja dan kerana rasanya yang terlalu manis biasanya sesuai dimakan pada waktu tengah hari sebagai pencuci mulut, dan sekiranya mahu menambahkan lagi kesedapan tapai, tapai itu boleh dicampurkan dengan santan kelapa dan dimasukkan sedikit ais.




dodol



Dodol adalah sejenis makanan yang boleh dikategorikan dalam kumpulan yang manis. Dodol buatan Melaka amat terkenal dan ia dikatakan rumit untuk dibuat. Biasanya mereka yang mahir membuat dodol ini terdiri daripada mereka yang telah berusia. Bahan-bahan yang diperlukan untuk membuat dodol terdiri daripada santan kelapa; tepung beras; gula pasir; gula melaka dan garam. Bahan yang senang didapati namun sukar dihasilkan.





Twitter Delicious Facebook Digg Stumbleupon Favorites More