MENCARI JATI DIRI ..
MENCARI ILMU DIMANA SAJA ..
KARNA NAMA BAIK LEBIH BERHARGA DARIPADA KEKAYAAN DUNIA ..

Monday, May 23, 2011

Learn to use SU

This homework is intended to get you familiar with creating a Unix shell program, storing it, and executing it. It will also get you familiar with several aspects of Seismic Unix itself. You will create some synthetic data and then migrate it, by simply following directions explicitly; then you will modify the model from which the data were created, and then you will modify the migration parameters. When you are done, you should feel pretty good about how straightforward this stuff is smile


You should have already looked at the SU User's Manual enough to have some familiarity with the programs, but also enough to be baffled by how it actually will work. Please read Chapter 1, Section 2.3, and skim Chapters 3 and 4 before attempting this homework.


1) Get Familiar with the directory system and the help files. Log into a Unix Machine. Open an x-term, and type seismicx . This will open another window, called SeismicX (the first time you do this, it will take a while, because you are creating a new area). Type pwd to see the directory in which you are now working; it should be in your home area, in a subdirectory called ge536. You can type ls to see a listing of the files or subdirectories in that directory, and you should see a subdirectory called demos. You can type cd demos to change directories to that subdirectory, and then type ls to see a listing within it. When you want to move back up one level of directory, you can type cd .. (yes, that is dot dot).

Type pwd to make sure you are in the ge536/demos subdirectory; use cd to move there if you aren't. At this point, let's impress your neighbors at the workstation by actually running a simple program. Type suplane | suxwigb & and you should get a nifty picture of some synthetic seismic data on your screen. (Act like you do this all the time, and your neighbors will in fact be very impressed.) You can get control back in your SeismicX window by hitting the return key, and you can delete the window with the seismograms by using the "KILL" command from the top left "button".

Repeatedly use cd to move throughout the ge536/demos subdirectory, making liberal use of ls and pwd to check where you are. You will want to look at a README file in the ge536/demos subdirectory that describes the use of the demo programs, and you can do this by typing more README when you are in that subdirectory. The text that appears on your screen can be advanced by hitting the spacebar to move to the next "page". You will probably want to print this file out, because it actually contains a lot of good hints. Type enscript README, and the file will magically appear at your default printer (usually geops). You may want to look at some of the demo subdirectories and files at this point, but they may prove a bit confusing .... don't worry about that (yet).


2) Enter a shell program, using a text editor. You will want to become good at creating what are called "shell" programs, and then running them. This is actually easy, and we will walk through an example right now. You will want to store all your shell scripts in a "bin" directory that has been created for you in your ge536 directory. cd to your ge536/bin subdirectory and get ready to type in a file. You can choose what text-editor you want to use, and you may already be familiar with vi or ed . If you aren't, I suggest using pico, because that is easy and gives you a list of commands at the bottom of the screen. To type in a file called "synmig" (because you will make some synthetic data and then migrate it), you would (using pico) type pico synmig . You should now be in the editor, and you should type in the following file (Note that all shell scripts should start and end with the lines that this one does):




#!/bin/sh

# shell synmig: make synthetic data and migrate it

n1=101

n2=101

#

# make synthetic data

susynlv nt=$n1 dt=0.04 ft=0.0 nxo=1 \

nxm=$n2 dxm=.05 fxm=0.0 er=0 ob=1 \

v00=1.0 dvdz=0 dvdx=0 smooth=1 \

ref="0,.5;1.0,.5;2.,.8;2.5,1.0;3.0,.8;4.0,.5;5.0,.5" |

sushw key=d2 a=.05 > junk.susyn

# show the synthetic data on the screen

suximage < junk.susyn label1="Time (sec)" label2="Distance (km)" \

title="Synthetic Data" &

# apply the Gazdag migration algorithm to the synthetic data

sugazmig < junk.susyn tmig=0.0 vmig=1.0 > junk.out

# show the resulting migrated data on the screen

suximage < junk.out label1="Migrated Time (sec)" \

label2="Midpoint (km)" title="Phase Shift Migration" &

# get out of this routine

exit


[Note: This example is taken from the class notes for Theory of Seismic Imaging by John Scales, available at Samizdat Press.]

After you have entered this and then saved it by using control-x, "y" and return (if you were in pico), you need to be able to execute it, so give yourself execute privileges by typing chmod +x synmig . In order to run this program, you simply type synmig at the Unix prompt. You should get first one screen displayed that has the synthetic data, then, after a few moments, another screen that has the migrated data. Hitting a return in the window where you were running this job returns the Unix prompt. Typing zap xmovie will remove all the display windows you have created.


3. Figuring out just what you have done. In order to understand the various parameters that you have typed in to your shell script synmig, you can use the SU help facility. Let's say you wonder how the synthetic seismogram package runs, so you type susynlv at the prompt, without including any arguments. SU interprets this as not knowing how to use susynlv, so it gives you the help file automatically. You see that the name stands for synthetic seismograms for linear v elocity function (all the Seismic Unix programs start with su) and that the various parameters describe things like the number of time samples and the velocity-depth function of the model. In order to make sure you understand what you have done, describe the velocity model used in this example, and sketch the locations of the reflectors in it (the reflections could have come from a density contrast rather than a velocity contrast). Look at more help files if you would like to; I encourage it.


4. Modifying and experimenting with this shell script. You will want to be able to print the images you have shown on your screen. This can be done by modifying the shell script so that the program supsimage (for seismic unix post-script image) is run rather than suxmovie. This program will create a postscript file as output rather than displaying it directly to the screen, and you can view the file with ghostview and print it directly to a postscript printer. Modify your script so that suxmovie is replaced with supsimage, and replace the & with the name of the output file, preceded by the output caret >. For example, the first suxmovie line becomes


supsimage < junk.susyn label1 = "Time (sec)" label2="Distance (km)" \

title="Synthetic Data" > synthetic_data.ps

You will want to change the second suxmovie call as well, perhaps naming its output file migrated_data.ps. After the new job (you can rename it if you want to when you leave the editor) has been executed, you should see two new .ps files in your subdirectory, and you can view them using ghostoview by typing

ghostview synthetic_data.ps

and you can print them to a postscript printer (your default, probably geops) by typing

lpr synthetic_data.ps

Print both the original shell script file and the modified one by using the enscript command (which is used to make a postscript file out of a regular text file and send it to the printer). Hand in all these printouts: two shell script files and two seismic displays.


5. Have some seismic fun and see what happens. You should have had some small familiarity with migration from earlier classes in seismology, but I'll bet it was all academic. You should have already figured out that the velocity used in this example (synmig) was a constant velocity field of one (arbitrary units), and that you used the exactly-correct velocity to migrate the seismic section. Try using different velocities (vmig) to over-migrate the data and to under-migrate it. Plot the results and hand them in as a way to show off your seismic-processing prowess.


Hints along the way:


For help on regular Unix commands, type man followed by the command you need help on. For example, if you wanted to learn how to remove a file you created, you could type

man rm

and get the help file on rm.


If, during the course, you make a mess of the demos subdirectory, you can simply remove it entirely and get a new one.


Useful Unix commands we have seen:

cd pwd ls chmod man rm lpr ghostview mkdir pico enscript | \ more



Congratulations: you are now a seismic unix user!

sumber:
READ MORE

Sunday, May 22, 2011

Cara Membuat Menu Bar Dengan Sub-Sub Menunya

Dikarenakan banyak yang nanya melalui kontak admin soal cara membuat menu bar horisontal dilengkapi sub-sub menunya yang seperti ical pakai di blog ini, mending ical posting aja tutorialnya. Sebenarnya ical sudah pernah posting tentang membuat menu bar tapi yang dulu tidak pakai sub-sub menu , hanya menu utama yang bisa, tapi langkahnya tidak repot, tinggal add element saja, kalau yang ini harus masuk di Edit HTML blog, tapi mudah juga koq

Ini langkahnya ical paparkan sedemikian detail.

1. Login ke blog
2. Pilih blog yang ingin di tambahkan menu bar
3. Pilih Template/Layout -> Edit Html (jangan lupa ceklist expand widget template)
4. Cari kode yang mirip ini :
body {
margin: 0;
text-align: center;
min-width: 900px;
background: #000000) repeat-x $startSide top;
color: $textColor;
font-size: small;
}

yang penting ada kode body nya

5. Tempat kode dibawah ini pas dibawah kode langkah 4

#navbar-iframe{display:none;height:0;visibility:hidden;}


#NavbarMenu{background:black; width:950px; height:40px; color:white; margin:0 auto; padding:0; font:bold 8px Arial,Tahoma,Verdana; text-decoration:none}

#NavbarMenuleft{width:950px; float:$startSide; margin:0; padding:0; text-decoration:none}

#nav{margin:0; padding-top:3px; padding-left:3px}

#nav ul{float:$startSide; list-style:none; margin:0; padding:0; text-decoration:none}

#nav li{list-style:none; margin:0; padding:0; text-decoration:none}

#nav li a, #nav li a:link, #nav li a:visited{color:green; display:block; text-transform:uppercase; margin-left:0; padding:9px 15px 8px; font:bold 12px Arial,Times New Roman; text-decoration:none}

#nav li a:hover, #nav li a:active{background:pink; color:green; margin:0; padding:9px 15px 8px; text-decoration:none}

#nav li li a, #nav li li a:link, #nav li li a:visited{background:white; width:150px; color:#6699ff; text-transform:lowercase; float:none; margin:0; padding:7px 10px; border-bottom:1px solid #6699ff; border-left:1px solid #6699ff; border-right:1px solid #6699ff; font:normal 14px Georgia,Times New Roman; text-decoration:none}

#nav li li a:hover, #nav li li a:active{background:#6699ff; color:#fff; padding:7px 10px; text-decoration:none}

#nav li{float:$startSide; padding:0; text-decoration:none}

#nav li ul{z-index:9999; position:absolute; left:-999em; height:auto; width:170px; margin:0; padding:0; text-decoration:none}

#nav li ul a{width:140px; text-decoration:none}

#nav li ul ul{margin:-32px 0 0 171px}

#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul{left:-999em}

#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul{left:auto}

#nav li:hover, #nav li.sfhover{position:static}


6. Setelah itu cari kode seperti ini:

7. Tempatkan kode dibawah ini, tepat dibawah kode langkah 6


Setelah itu preview, setelah tampilan bagus baru di save.

NB:
Untuk penyesuaian dengan warna template yang kamu gunakan silahkan edit kode pada langkah 5.
Untuk mengedit Menu-menu dan sudmenu apa saja yang ingin ditampilkan silahkan edit kode pada langkah 7





sumber:
READ MORE

Trik Internet Gratis Indosat

Baru tau ternyata isat jebol lagi, wkwkwk…
maklum gan baru eksis lagi di dunia blogging langsung aja lah ga perlu basa – basi lagi.


Setelah masa wap3g dan mms berakhir tidak ada lagi trik yang keluar, jadi males buat oprek isat tapi ternyata ada yang baru, ane ketinggalan jaman..hhehe…
Pertama – tama untuk yang memakai perdana lama harus daftar fb gratisan
dulu caranya ke *777*1*7#, lalu tes dulu di browser bawaan hape dengan masuk ke alamat http://www.0.facebook.com, kalau gratis berarti tinggal set di hapenya
Settingan di hape ;
APN : indosatgprs
Proxy : 195.189.142.132
Port : 80
Untuk setting opmin handler :
Http server : http://login.facebook.com@
axis.javajazz.festival.co.id
Socket server : socket://
server4.operamini.com:1080
Proxy type : HTTP
Proxy server : 0.facebook.com
Nb : Trik diatas tidak sepenuhnya gratis, tapi sangat murah kalau di bandingkan dengan tarif normal.
Untuk Nokia S40 butuh file .prov, jika ada yang perlu cukup request saja ntar ane bkinin.

sumber:
READ MORE

Wednesday, May 18, 2011

Menghilangkan Tulisan "Langgan: Entri (Atom)"

Menghilangkan Tulisan
Kadang blog kita ingin terlihat rapi, tentu saja begitu bukan? Ada yang merasa kerapian blog kita terganggu dengan adanya tulisan di "Langgan: Entri (Atom)"? Mungkin itu yang pernah kita alami, dengan tulisan itu yang menurut kita tidak penting adan tempatnya juga kurang sesuai, maka kita bisa hilangkan atau kita ganti tempatnya gar lebih rapi.

Blog yang rapi, dengan tampilan yang sederhana, tidak terlau banyak tulisan atau lebar, mungkin sampai ke bawah banget Kita akan belajar bagaimana cara menghilangkan tulisan "Langgan: Entri (Atom)". Sehingga blog kita diharapkan bisa lebih rapi lagi, dan menarik pengunjung untuk berlama-lama di blog kita

Cara Menghilangkan Tulisan "Langgan: Entri (Atom)"
1. Login ke Blogger.
2. Di halaman Dasbor, kita pilih Tata Letak.
3. Kemudian pilih Edit HTML
4. Beri tanda centang pada Expand Template Widget
5. Cari kode berikut ini


6. Hapus (delete) kode tersebut.
7. Simpan template jika sudah selesai.




sumber:
READ MORE

Tuesday, May 10, 2011

Duel Anak Usia 9 Tahun

Arief kecil yang baru berusia 9 tahun pulang ke rumah dengan hidung berdarah, mata lebam, dan baju sobek. Jelas sekali ia habis berkelahi dan kalah. Ayahnya mengobati luka-lukanya sambil bertanya apa yang terjadi.

“Yah,” kata Arief, “Aku tadi menantang David berduel. Dan, Ayah tahu, aku membiarkan dia memilih sendiri senjatanya.”

“Oh ya?” sahut Ayah, “Cukup adil juga.”

“Ya, tapi aku tidak tahu bahwa ia akan memilih kakak laki lakinya!”

sumber:
READ MORE

Peta Allah untuk Kesuksesan Anda

Sesungguhnya kita adalah orang-orang yang sangat beruntung, karena kita adalah anak-anak Allah yang hidup dalam kasih perlindunganNya bahkan Allah sendiri telah menyediakan sebuah peta untuk kesuksesan kita sehingga kita dapat berhasil mencapai tujuan hidup kita.

Namun sungguh disayangkan, terkadang kita tidak mengikuti peta tersebut. Kita menganggap diri kita telah melihat semua yang Allah sediakan dan inginkan untuk kita miliki, padahal itu hanya sebagian kecil saja dari keseluruhan hal yang Ia berikan kepada kita.

Saya selalu memiliki kerinduan agar setiap kita sepenuhnya memahami bahwa Allah menginginkan kita semua hidup dalam segala kelimpahan kasih karunia dan berkat yang memang telah Ia sediakan bagi kita. Allah rindu kita mengetahui setiap rancangan yang telah Ia buat untuk masing-masing kita. Karena itu marilah kita bersama-sama belajar mengerti apa sebenarnya rancangan Allah bagi kita, dan bersama-sama juga kita akan menikmati hidup yang berkelimpahan dalam keluarga, pekerjaan, dan pelayanan kita. Tuhan Yesus memberkati.

sumber:
READ MORE

Admin Cikadut's Blog