Archive for the ‘Sharing’ Category

AIX command CheatSheet

★AIX compression with TAR, COMPRESS, GZIP, ZCAT
tar
tar in AIX by default does not support compression. You will need to incorporate with gzip command to have it

tar and compress at the same time.

$ tar cvf test.tar test                             # pure tar only
$ tar cvf - test | gzip > test.tar.gz        # tar and compress together

gzip / gunzip

$ gunzip -c test.tar.gz | tar tvf -           # list compress files
$ gunzip -c test.tar.gz | tar xvf -           # decompress files

★nmon command

nmon -fT -s DATAinterval(unit in seconds) -c NUMBERofExecutions

nmon -fT -s 1 -c 10800

→ Data will be recorded every 1 seconds
→ nmon data will be recorded : 1sec x 10800times = 3hours

★tcpdump

#Write an output file of tcpdump result

tcpdump -i en20 -w dumpfilename.out
tcpdump -w dumpfile

#Read the result of tcpdump

tcpdump -r dumpfilename.out
or
tcpdump -r dumpfilename.out > dumpfilename.out.result
more dumpfilename.out.result

★Check AIX Network Status
Network Interface

OVERVIEW and PROCEDURE

The task that is described in this procedure is performed in the AIX terminal window. If the terminal window

is not open at this time, you may do so by using the instructions in Hardware Management Console Overview.

After the terminal window is open, simply type

netstat -r

Where netstat = network status

-r = route

The primary information to check is located in the first entry in the top-left, “default”, and then the column

to the far right titled “If”. This column tells you what interface is being used.  For instance, “en0”.

Secondarily, you may run an additional command to

entstat -dt en0

Where entstat = network settings

-dt = display all statistics

en0 = The interface from the If column

As a result of this command, the  information that you should check is as follows:

Link Status : up  Tells you that the cable is attached and is connected to a switch. In other words, the cable

from the system to the network is functional. This is a good thing!

NOTE: If the status is down (Link Status : down), there is a problem with the cable, or the switch, or the

port.

Media Speed Selected  Should read “100 Mbps Full duplex”

Exception: If the machine has a gigabit card, it will read “Autonegotiate”

Media Speed Running   Should read “100 Mbps Full duplex”

IF your system has a NIC / NIB (network interface backup) as en20, you may try the below command to check the

status of each primary and secondary network condition.

entstat -dt en20 | egrep “(Link Status|Media Speed)”

command result (sample):
Link Status: Up
Media Speed Selected : Autonegotiation
Media Speed Running : 1000 Mbps Full Duplex
Link Status: Up
Media Speed Selected : Autonegotiation
Media Speed Running : 1000 Mbps Full Duplex

Lomba Inovasi Produk Enjinia Nusantara 2014

 LIPEN 2014
Enjinia Nusantara didukung oleh Kementrian Koperasi dan UKM Republik Indonesia dengan resmi membuka pendaftaran Lomba Inovasi Produk Enjinia Nusantara (LIPEN 2014) sejak awal Februari 2014.Link resmi: http://enjinianusantara.org/lipen-2014/
Sekilas tentang Lomba Inovasi Produk Enjinia Nusantara:
Lomba ini ditujukan untuk mencari bibit-bibit SDM unggul yang mampu melahirkan ide serta produk kreatif-inovatif buatan dalam negeri. Tema besar yang diangkat dalam perlombaan ini adalah “Dari Kita untuk Indonesia”, dengan menaruh harapan akan semakin banyaknya produk dalam negeri yang berkualitas tinggi dan mampu bersaing dalam kompetisi global. Hadiah yang ditawarkan sangat menarik dan bahkan ada kesempatan untuk jalan-jalan gratis ke Jepang sembari mempresentasikan produknya di depan para dewan juri dari Enjinia Nusantara.
Ada beberapa informasi penting terkait dengan teknis perlombaan yang bisadisimak sebagai berikut:
# Kategori yang Dilombakan:
1. Produk IT (Information Technology)
– Mobile application
– Internet of things
2. Produk hemat energi dan ramah lingkungan

3. Produk rumah tangga yang serba guna

# Bagi para Pemenang akan mendapatkan hadiah sebagai berikut:
Juara 1 : Uang tunai sebesar 10 juta rupiah dan sertifikat
Juara 2 : Uang tunai sebesar 5 juta rupiah dan sertifikat
Juara 3 : Uang tunai sebesar 2.5 juta rupiah dan sertifikat
Perwakilan dari team yang berhasil lolos ke babak final, akan diundang ke Jepang* untuk mempresentasikan produknya. Selain itu, juga akan diberikan bantuan dana sebesar 4 juta rupiah utk merealisasikan produk yang dilombakan.
(*dalam konfirmasi)
# Tata Cara Partisipasi
1. Cara Pendaftaran
Silakan mendaftarkan timnya melalui website Enjinia Nusantara, http://www.enjinianusantara.org
*Pendaftaran dilakukan secara online.
2. Persyaratan Peserta yang Mengikuti LIPEN
Peserta adalah Warga Negara Indonesia yang terdaftar sebagai mahasiswa S1
atau D3 yang sedang melakukan studi di suatu perguruan tinggi di Indonesia.
Peserta adalah tim yang terdiri dari maksimal 5 orang dan dosen pembimbing.
Ide produk boleh bersifat mengembangkan produk yang saat ini sudah ada.
Ide produk harus mencakup atau sesuai dengan kategori yang sedang

dilombakan.

# Teknis Perlombaan
Perlombaan terdiri dari 3 tahap yaitu sebagai berikut :
Tahap ke-1 (Tahap Seleksi: Kompetisi Ide)
Tahap ke-2 (Tahap Seleksi: Kompetisi Produk, Teleconference)

Tahap ke-3 (Tahap Grand-final : Presentasi di Jepang (dalam konfirmasi))

Tunggu apa lagi…ayo ikut lomba bergengsi ini..!!
Tim Publikasi dan Media LIPEN 2014
Dzulfahmi
Teaser video by fahmifahim

LaTex Thesis Template

Special thanks for Stefan Schaeckeler who shared a very nice article about the LaTex template for Master or Ph.D Thesis. Please visit his page for detail information: http://students.engr.scu.edu/~sschaeck/latexforthesis/

The content of the template is explained below ( I just copy and past Stefan’s web page).

##### copy from Stefan Schaeckeler’s web page #####

The template holds dummy text with examples for creating tables, figures, index and glossary.

Download

Usage

The template includes a Makefile that creates three files:

  • thesis.dvi for fast previewing with hyperlinks in b/w
  • thesis.ps for printing in b/w (without any hyperlinks)
  • thesis.pdf for online viewing with hyperlinks in color

Organization of the Template

  • Makefile governs the compiliation; target: dvi, ps and pdf
  • thesis.tex holds everything together and includes
    • titlepage.tex
    • abstract.tex
    • acknowledge.tex
    • body.tex
  • thesis-man.ist for custom formatting of index (letter heading, dots)
  • references.bib for the bibtex bibliography

Features

  • the dvi and pdf files are fully hyperlinked
    • table of contents to chapters in the text
    • list of figures to figures in the text
    • list of tables to tables in the text
    • text to floats (figures and tables)
    • text to bibliograpy
    • bibliograpy to page in the text (not dvi version)
    • index to page in the text
    • glossary to page in the text
  • acrobat general information (pdf version, only)
    • thesis title
    • thesis subject
    • thesis author
    • thesis keyword
  • acrobat reader features (pdf version, only)
    • preview images are included
    • bookmarks: the bookmark includes not only links to numbered chapters, but also to unnumbered chapters (title, table of contents, list of figures, list of tables, acknowledgement, abstract, bibliograpy, index and glossary)
  • small pdf file size

Anti-Features

I changed (but not necessarily improved) the standard latex layout by using bars over chapter titles etc. This can be easily undone by deleting thesis.cls and changing in thesis.tex style thesis to style report.

Required Software

  • a flavor of unix for the makefile may be helpful
  • latex and pdflatex
  • non-standard packages: glossary.sty may need to be installed on teTeX, but comes with TexLive
  • make
  • ghostscript (thumbpdf)
  • optional: zip and ps2ascii

Bugs

  • 2, 3 mm less top-margin on the index page (I recommend not creating an index page, anway. that is too much work)
  • before compiling dvi, ps or pdf, sometimes a make clean may be necessary

Contact

You are welcome to send me comments – Stefan Schaeckeler <sschaeck (at) engr.scu.edu>.

[ffmpeg] How can I combine hundreds of images into a movie

FFmpeg is a light and complete, cross-platform solution to record, convert and stream audio and video. This software is free and and powerful to use especially when you are about to work with images and videos. There are tons of tutorial you may find on the internet (here, or may be here). As a FFmpeg-beginner I would love to share my experience on combining numerous images in one folder to be compiled into a movie (for example “.avi” format video, etc).

Source of images:

You only need to type this script:

ffmpeg -r 25 -i "imagePath.jpg" -vcodec mjpeg -sameq out.avi

in my case, I execute this script:

ffmpeg -r 25 -i "conditionA_conditionH_%04d.png" -vcodec mjpeg -sameq SURFresult.avi

Video result:

Other script:
Movie ⇒ Image frames †

ffmpeg -i input.mpg -f image2 -vcodec mjpeg (-qscale 1 -qmin 1 -qmax 1) (-ss 1.5 -t 10.5) "imgFrame%06d.jpg"

Movie ⇒ Sound †

ffmpeg -i input.mpg -vn (-ac1) music.wav

Image capture †

ffmpeg -f x11grab -s xga -r 30 -qscale 1 -i :0.0 out.mpg

[Books] What I Wish I Knew When I Was 20

Recently, I stumbled upon an interesting book on the topic of entrepreneur and creativity. Without thinking too much, I just went to Amazon and purchased the book. The tittle is “What I Wish I Knew When I Was 20: A Crash Course on Making Your Place in the World” by Tina Seelig.


Buy from Amazon.co.jp
Buy from Amazon.com

Yet, I am still on the way reading the entire stories. They are interesting to read because Tina Seelig points out each sections by telling about her experience during her class at Stanford University or stories about her family.

There are some quotes that might be interesting:

1. Buy One, Get Two Free
– Story on the “Five-Dollars Challenge”, a success way in teaching students about having an entrepreneurial mind-set. The mission is about to multiply a 5 dollars envelope to be as much profit as possible within a very limited time. The much money they get, the better they accomplish the mission. Yet, Tina also quoted that sometime the Value is not always measured in terms of financial rewards.
– The points are: identifying opportunities, challenging assumptions, leveraging the limited resources.
– Inspiration from a story about Kyle MacDonald, who started with one red paper clip and traded up until he had a house. Check the details on www.oneredpaperclip.com
– “The bigger the problem, the bigger the opportunity. Nobody will pay you to solve a non-problem.” Vinod Khosla, co-founder of Sun Microsystem.

2. The Upside-Down Circus
– We can challenge ourselves every single day. That is, we can choose to view the world through different lenses– lenses that allow us to see problems in a new light. The more we take on problems, the more confident and proficient we become at solving them. And the better able we are to see them as opportunities.
– The more experience you have tackling problems, the more confident you become that you can find a solution.

3. Bikini or Die
– One of the biggest obstacles to taking on “impossible tasks” is that others are often quick to tell you they can’t be accomplished. It is arguably tough to address a grand problem. But once you decide to take it on, it is equally hard to break out of traditional approaches to solving it. This is another place where it is helpful to break a few rules. In other words, we need to “BREAK THE RULES!”.

4. Please Take Out Your Wallets
– The world is divided into people who wait for others to give them permission to do the things they want to do and people who grant them selves permission. Some look inside themselves for motivation and others wait to be pushed forward by outside forces.
– Ideas just waiting for someone to exploit them.
– Story of Michael Dearing that implemented the new method on selling products in eBay. He introduced the idea to put photos in eBay. He found that products with accompanying photos sold faster and at a higher price than products without photos.
– People who get to the top work harder than those around them, they have more energy that propels them forward, and they’re markedly more driven to get there.
– “The biggest ally of super-achievers is the inertia of others” –David Rothkopf
– If you want a leadership role, then take on leadership roles. Just give yourself permission to do so. Look around for holes in your organization, ask for what you want, find ways to leverage your skills and experiences, be willing to make the first move, and stretch beyond what you’ve done before.
– There are always opportunities waiting to be exploited. Instead of waiting to be asked and tiptoeing around an opportunity, seize it! It takes hard work, energy, and drive –but these are the assets that set leaders apart from who wait for others to anoint them.

5. The Secret Sauce of Silicon Valley

6. No Way… Engineering Is for Girls

7. Turn Lemonade into Helicopters

8. Paint the Target around the Arrow

9. Will This Be on the Exam?

10. Experimental Artifacts
Continue reading

[Books] Brain Rules by John Medina

In this post I would like to write a summary about a book currently I am reading. The purpose is simple, I just want to point out what ideas that are important I got from the book.


“Brain Rules”
12 Principles for Surviving and Thriving at Work, Home, and School

by John Medina (official website, or order from Amazon.com)

exercise
Rule #1: Exercise boosts brain power.

survival
Rule #2: The human brain evolved, too.

wiring
Rule #3: Every brain is wired differently.

attention
Rule #4: We don’t pay attention to boring things.

short-term memory
Rule #5: Repeat to remember.

long-term memory
Rule #6: Repeat to remember.

sleep
Rule #7: Sleep well, think well.
In one research, a 26-minutes nap in the afternoon improved NASA pilot’s performance by 34 percent.

stress
Rule #8: Stressed brains don’t learn the same way.

sensory integration
Rule #9: Stimulate more of the senses.

vision
Rule #10: Vision trumps all other senses.

gender
Rule #11: Male and female brains are different

exploration
Rule #12: We are powerful and natural explorers.

%d bloggers like this: