The daily ramblings …

Akamal is back!

Posted in Ramblings by akamal on March 12, 2010

I’ve been very quite the last few years in respect to maintaining this blog. Mainly because I had no direction to the articles presented, or it could be that I am just one lazy writer. Whatever the reason is,  I think now is the best time to jump ship, joining a fray of other bloggers who loves spilling out what they do with their so called boring life, filling in pages of self indulging I’ve been here, did that, wanting this, wishing that, and stuff.

So, what will my new concept be? I guess it’ll be a combination of bits and pieces of ramblings, seriously serious postings, or it could just be rubbish!

Advertisements

Baisn Analysis – So what’s with Sequence Stratigraphy?

Posted in Geology by akamal on May 16, 2009

Q – The main question always comes up first, what is sequence stratigraphy?

A – Well, I can tell you that it actually deals a lot with the examination and interpretation of sedimentary strata, with several implications as below:

  • Based on Vertical and lateral facies relationship. [KW]:- Facies
  • Subdivision of sedimentary basin fill into Genetic Packages, bounded by time significant surfaces. [KW]:- Genetic Packages
  • Units and bounding surfaces controlled by changes in Relative Sea Level and Sediment Influx. [KW]:- Controls, Sea Level, Sediment Influx
  • Provides a time framework for the correlation, mapping and preiction of stratigraphy from basin to field scale. [KW]:- Time Framework

Q – Advantages of Seq Strat includes among all:

A –

  • Provide a process based interpretation. [KW]:- Process based interpretation
  • Predictive (Spatial and temporal relationship of facies). [KW]:- Well, Predictive
  • Applies to seismic, log, core and outcrop. [KW]:- Applies to data
  • Common language between discipline. [KW]:-language

Q – Difference between Lithostratigraphic Correlation and Seq Strat Correlation:

A –

  • Lithostratigraphic correclation differentiate between lithology of rock types. The latter deals with changes dealing with sea level.

My learning style?

Posted in Ramblings by akamal on February 19, 2009

It’s been a few weeks since the start of semester 2 for my postgrad course, and like any other course, time has taken a burden on its toll. Assignments now come in heavy volumes, just to be worked on and submitted. Field trips are, like usual, scheduled at very inconvenient times ahead of coursework deadlines. If there’s one thing I am sorely missing, it’s the free times that I get to spend with my family, or maybe more that I get to spend with the TV. Muahaha.

The other day, a communication skill class was conducted on us students, being a first of its kind in this course. One particular activity stood out compared to the rest for that day. It was something to do with getting to know your prefered learning style. Basically, according to these guys handling the course, backed by countless researches that claim on such accuracy, there are 4 disciplines of styles in learning:

ACTIVISTS (one who learns by actually doing the stuff)

REFLECTIVE (takes time by reviewing the experience)

PRAGMATIST (seeking and tryiing out new ideas)

THEORIST (well as the name suggests, one who likes to play with logic, bwah!)

As it turns out, I scored equally high on both ACTIVIST and RELFECTOR part, affirming my concern of being unable to sip on theories all these while. Majority of the class scored on REFLECTOR and THEORIST. Blow me away, I guess that’s why it has been very slow for me to link up what I’ve been studying in geology with my understanding. It proves to be disheartening, but if there’s something that needs to be done, I’ve got to use the just proven styles to cope up with my studies, and it has got to start now.

Linux HOWTO : How to recover lost password

Posted in Linux / Unix by akamal on March 2, 2007

Why am writing things like this again? Well, I encountered another problem here at work, seems that I forgot my root password. After 5 minutes search of solution, found it, and posting it here.

You can’t recover the password you have forgotten, but you’re able to reset to a new password. Here are the steps you should do:
(more…)

CyGwin Installation FAQ

Posted in Linux / Unix by akamal on March 1, 2007

To anyone wondering why this faq is so short, I am just lazy to type the whole installation thing. You can instead read the install manual accompanying the cygwin setup program.

I wrote this simply because I was stuck trying to reinstall cygwin as previously the program corrupted.

(more…)

HOWTO install Qt and Coin3D on Win32

Posted in Programming by akamal on February 13, 2007

Merging C++ with 3D visualization is always a big issue to most people, especially because standards don’t simply exist, and no single GUI library that corresponds seamlessly with 3D library. Some might prefer open source solution, but this usually requires him (or her) to put up with cumbersome tasks of compiling, building, error detection, never-ending problems with no solution.

I deal with lots of 3D development especially since I am required to come up with scientific visualization and interpretation of data. I had all sorts of trouble initially when trying to build one integrated approach. Well, I am going to write here a one in all documentation on how to install QT, Coin3D using only free software, yes you heard me, you don’t have to fork out a single cent, save your monthly internet bill.

So, if you’re interested on development of QT and 3D graphics, open inventor-like approach, this is the right place for you to start!

UPDATE 3/3/2007
I have included installation guide on qwt (QT widgets for Technical Application), especially for those of you who wants to use qt for scientific applications. So far, I have also modified this article, where the previous ones did not include things like set up of environment variable QMAKESPEC. So, happy installing!

BASIC REQUIREMENTS

What you need to download are listed below:

Software Library Version File Name Website URL
Qt 4.2.2 (source) qt-win-opensource-src-4.2.2.zip http://www.trolltech.com/developer/downloads/qt/windows
Coin 3D 2.4.5 (source) Coin-2.4.5.zip http://www.coin3d.org/lib/coin/releases
SoQt 1.4.1 (source) SoQt-1.4.1.zip http://www.coin3d.org/lib/soqt/releases
Q../Free 4.2.2 acs-4.2.2-patch1.zip http://sourceforge.net/project/showfiles.php?group_id=49109
Visual C++ 2005 Express Edition 2005 msvc2005.exe http://msdn.microsoft.com/vstudio/express/visualc/download/
Microsoft Platform SDK 2003 SP1 PSDK-X.cab (around 13 files) http://www.microsoft.com/downloads/details.aspx?
familyid=EBA0128F-A770-45F1-86F3-7AB010B398A3&displaylang=en
QWT 5.0.1 qwt-5.0.1.zip http://sourceforge.net/project/showfiles.php?group_id=13693&release_id=489512

GENERAL INFORMATION

First make sure everything is installed / unzipped under 1 directory, e.g: D:\devel\. So you will deal with stuff under one roof. It’s not really necessary, but I find it rather easy to manage.

d:\devel\coin-2.4.5
d:\devel\qt-4.2.2
d:\devel\soqt-1.4.1
d:\devel\msdk
d:\devel\vc_express

Use the Visual C++ 2005 command prompt; instead of the normal command window cmd.exe (This will be available once you install Visual C++ 2005). Reason for this? We want to use the nmake feature.

All the steps listed below MUST be strictly performed in its outmost respect! Do not miss even 1 step, as failure to do so will cause you headache and tendency to throw things to the front yard! You’ve been warned!

STEP 1 : INSTALLATION OF VISUAL C++ EXPRESS EDITION & MS PLATFORM SDK

Install Visual C++ Express Edition first. Just normally follow through the steps and there’ll be downloads to be done while installing.

When the VC Express setup is complete, install Microsoft platform SDK next. Depending on the file type you download, you will either have lots of .cabs file with extract.exe, or simply just an ISO file. I recommend downloading the one with lots of .cabs file (Make sure you download everything listed in that webpage).

If you download the .cabs files, then open up msvc2005 command prompt and type

>> Psdk-full d:\devel\msdk

Note: You must set Internet Explorer to default web browser as the installation requires activeX.
Read the instruction provided by Microsoft Platform SDK readme website, and install all SDK! That means when the setup page asks you what to install, just click Windows SDK, by default, all SDK will be installed.

After installation of MSDK is completed, you’re required to tweak a little on msvc2005 settings. Read through below:

Launch Microsoft Visual C++ Express Edition.
Click Options > Projects and Solutions > Visual C++ Directories:
Add the lines below:
Executable files: d:\devel\msdk\Bin
Include files: d:\devel\mdsk\Include
Library files: d:\devel\msdk\Lib

Update the corewin_express.vsprops file based on instruction below:

Open the file which resides in d:\devel\vc_express\VC\VCProjectDefaults\ corewin_express.vsprops
Change the string that reads:
AdditionalDependancies=”kernel32.lib” to
AdditionalDependancies=”kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib”

STEP 2 : INSTALLATION OF QT 4.2.2 AND ITS QT PATCH

Unpack / unzip the qt-4.2.2-src file to a directory, e.g d:\devel\ so it will become d:\devel\qt-4.2.2 .

Then unzip the qt patch file (acs-4.2.2-patch1.zip) and put all the content inside qt-4.2.2 folder.

Run installpatch42.bat by clicking on it, or typing it at the command line.

Now inside folder qt-4.2.2, from the vc2005 command prompt, type qconfigure.bat msvc2005 (DO NOT use the provided configure.exe file at all)

Just press yes to everything, sit back and relax while the installation proceeds.

STEP 3 : ENVIRONMENT CONFIGURATION

Right click at My Computer > Properties > Advanced > Environment Variables

Add new variables QTDIR and QMAKESPEC under user variables:

Variable name : QTDIR
Variable value : d:\devel\qt-4.2.2

Variable name : QMAKESPEC
Variable value : win32-msvc2005

Edit path variable by adding below value:
%QTDIR%\bin

Configure msvc2005 settings, by aunching msvc2005, then click Option Tools > Options dialog box.

Add all directories listed under QTDIR\include to Include files. (YES, ALL!)

d:\devel\qt-4.2.2\include\ActiveQt
d:\devel\qt-4.2.2\include\Qt
…. and so on

Add all directories listed under QTDIR\lib to Library files.

STEP 4 : INSTALLATION OF COIN 3D

Unzip Coin-2.4.5.zip to let’s say, d:\devel\Coin-2.4.5 .

Create an environment variable COINDIR with value d:\devel\Coin-2.4.5 (similar to method in STEP 3).

Now go to d:\devel\Coin-2.4.5\build\msvc8, and launch Coin2.sln (a vc solution file). Visual C++ 2005
will be launched with the solution / project opened.

Click Build > Configuration Manager under the toolbar. Then change the value in Active Solution Configuration to DLL (RELEASE).

Now click on Build > Build Solution. Just wait for it to compile and complete.

STEP 5 : INSTALLATION OF SOQT

Unzip SoQt-1.4.1 to let’s say d:\devel\SoQt-1.4.1 .

Inside folder SoQt-1.4.1, go to \build\msvc8\ and launch soqt1.sln (a vc solution file). Visual C++ 2005 will be launched with the solution / project opened.

Click Build > Configuration Manager under the toolbar. Then change the value in Active Solution Configuration to DLL (RELEASE).

Now click on Build > Build Solution. Just wait for it to compile and complete.

STEP 6 : INSTALLATION OF QWT

Extract qwt.zip.

Use msvc2005-command prompt to create project qwt file. Do this by typing :
>> // Change directory to qwt dir
>> qmake qwt.pro
>> nmake

If you followed everything correctly up till now, then you should not have any problem. Notice that several files will be built under qwtdir\lib, namely qwt.dll and qwt.lib.

STEP 7 : HOW TO USE QT IN MSVC2005

Here are the basic steps listed below:

Create a qt file, maybe named qt_test.cpp and then store it in a newly created project directory, let’s say directory qt_test.

Next, launch msvc2005-command-prompt, go to the directory which contains the file.

>> qmake -project -t vcapp
>> qmake

This will generate a .vcproj file, which is a project file for msvc2005. You can then open it, and run and work in msvc2005.

STEP 8 : HOW TO USE QWT IN MSVC2005

If you have built it, then proceed with adding qwt path for /lib and /src to msvc2005.

To do that, in msvc2005, click Tools > Options > Projects and Solution > VC++ Project Directories and add below values:

Include Files : qwtdir\src
Library Files : qwtdir\lib

Now create or load a qwt based project, and when you already done that, add preprocessor definition QWT_DLL to your project’s preprocessor list. To do that, follow below:

Click Project > project properties > Configuration Properties > C/C++ > Preprocessor. Add QWT_DLL to the list of Preprocessor Definitions.

C++ : I/O Streams – Output Formatting

Posted in C++ General by akamal on February 12, 2007

Creating a clean formatted data output is a common programming requirement. Take note however that output formatting requires the use of iomanip.h file, so don’t forget to include it. Anyway, listed below is a collection of tricks to use in C++.

(more…)

Linux HOWTO : Thumbdrive in Linux

Posted in Linux / Unix by akamal on January 30, 2007

If your machine’s preinstalled with the latest LINUX OS, then you probably won’t encounter problems with reading USB thumbdrive. On the contrary, you’re right on the spot if thumbdrive’s the issue you need to solve. This articles describes more.

(more…)

Linux HOWTO : Configuring RSH (Remote Shell)

Posted in Linux / Unix by akamal on January 30, 2007

The following tutorial requires editing of files in linux, and in this case I use vim program as an example. Refer to this blog here on how to edit a file, using vim. (vi is a program to edit file, so vi file means that I am editing the file using vim program)

 

First, edit /etc/hosts to add the list of hosts and their IP address.

>vi /etc/hosts/

add:

[ip address] [domain] [machine name]

10.x.x.x local@local.com machine001

 

To enable hosts the use of INETD
services, edit /etc/hosts/allow

> vi/etc/hosts/allow

add to file >>

10.1.1.1

machine001

 

Edit /root/.rhosts to add lists
of hosts that can access without password. This is extensively used by rlogin.

> vi/root/.rhosts

add to file (the machine ip or name) >>

clsn01

machine001

 

Edit the following files listed below:

> vi/etc/xinetd.d/rsh

> vi/etc/xinetd.d/rlogin

> vi/etc/xinetd.d/rexec

find the disable value and set to no.

 

If you want to disable login (usually for quick access), edit the following files below:

> vi/etc/pam.d/rsh

> vi/etc/pam.d/rlogin

add to the end of line, values below (for both files above):

no_login.so

securetty.so

rhosts_auth.so

 

Now restart xinetd to enable changes, by typing:

>/etc/init.d/xinetd.d/xinetd restart

Linux HOWTO : Command line based FTP

Posted in Linux / Unix by akamal on January 30, 2007

The general guide below caters for the case of Windows machine accessing a remote linux machine. Initial assumption is that you must have an account accessible to the linux machine.
(more…)