2008/11/7 Yohanes Nugroho [EMAIL PROTECTED]:
2008/11/7 net [EMAIL PROTECTED]:
misal saya punya fie list.txt
yang isinya
MIS_ACVW_ALL_AC_ENTRIES
LDMVW_TXNCODE_MASTER
cat list.txt | while read wiuw ; do echo $wiuw ; done
Ini penggunaan cat yg tak berguna, redirection lebih efisien:
while
---BEGIN ORIGINAL MESSAGE---
Yohanes Nugroho wrote:
satu lagi: dan letaknya berdekatan, kalau sampai salah ketik,
akibatnya bisa fatal.
Mengubah penggunaan cat dengan redirection menurut saya adalah
premature optimization.
END ORIGINAL MESSAGE
Kalau masalah berdekatan atau tidak ya
---BEGIN ORIGINAL MESSAGE---
Yohanes Nugroho wrote:
Catatan: saya sudah coba
cat/tanpa catdengan file teks puluhan megabyte, dan perbedaanya tidak
bisa dirasakan, dengan time-pun perbedaannya kurang dari 0.5 detik.
END ORIGINAL MESSAGE
Pernah mencoba dengan sistem yang heavily loaded
2008/11/9 Yohanes Nugroho [EMAIL PROTECTED]:
On Sun, Nov 9, 2008 at 1:11 PM, Budy Wuysang [EMAIL PROTECTED] wrote:
Pernah mencoba dengan sistem yang heavily loaded atau embedded device dengan
kemampuan terbatas?
sudah, perbedaannya tidak lebih dari 1 detik. Silakan baca posting saya di
---BEGIN ORIGINAL MESSAGE---
Yohanes Nugroho wrote:
Saya lebih suka emacs jika lingkungan memungkinkan, meski startup
time-nya bisa puluhan kali dibanding vi, karena saya merasa lebih
produktif di emacs. Tapi saya sadar, di lingkungan embedded, emacs ini
hampir tidak mungkin digunakan, di sini vi
2009/2/10 net netzerosp...@gmail.com:
saya ngga tau cara supaya skrip yg ada di mesin lokal bisa dieksekusi
di mesin sebelah tanpa harus menyalinnya terlebih dahulu.
justru maksud saya ini .. hehe
mengeksekusi tanpa meyalin terlebih dahulu file tersebut.
menyimpan hasil nya tanpa harus
2009/6/25 net netzerosp...@gmail.com
yang udah gw coba sebagai berikut
#!/bin/bash
export IFS=,
paste -d, file1 file2 |
while read f1a f1b f1c f1d f1e f2a f2b f2r; do
[ x$f1b = x$f2b ] echo $f1a, $f2a, $f1b, $f1c, $f1d, $f1e ||
echo $f1a, $f1b, $f1c, $f1d, $f1e
done
--
2010/1/6 Yohanes Nugroho yoha...@gmail.com:
---pemaparan lengkap dipotong---
Jadi isi file 1.txt itu adalah 2008-01-12? lalu mau rename 1.xls ke
2008-01-12?
misalnya X adalah nama file (1.txt):
bash$ X=1.txt
bash$ mv $(echo $X|sed -e 's/.txt/.xls/') $(cat $X|sed -e 's/$/.xls/')
$(xxx)
2010/1/9 Eko Prasetya eprase...@gmail.com:
Di real world, kita menggunakan python atau high-level language lainnya :D
Tentu saja dengan syarat system yg digunakan sanggup
dan punya resource untuk python language lainnya.
Kalau sudah masuk ke system embedded atau small
memory system maka sangat
in lagi :)
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes |+
-BEGIN GEEK CODE BLO
masih tergantung X x Y
pixel resolution dengan asumsi 1 warna per 1 pixel...
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http
10), kalau masih terganggu coba
1024 atau 2048...
Kernel Linux standard bukan RT...
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+
| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes |+
-BEGIN GEEK CODE BLOCK-
Versio
anda, tapi shell/interpreter.
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes |
ngrepotin.
-- snip ---
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/person
top="`date +%s`"
elapsed="$[$stop - $start]" # in seconds
# formatting selanjutnya terserah anda :)
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext
1.so.x.y.z tersebut ada di disana.
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/person
shmparam.h
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/person
; /* legal */
a = p; /* illegal */
contoh function:
#include unistd.h
int main(void)
{
int (*f)(), (*g)();
f = sync; /* man 2 syscall */
sync = g; /* illegal */
f();
return 0;
}
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang
\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes |+
Utk berhenti
Andy wrote:
On Thu, Oct 19, 2000 at 11:08:22AM +0700, Agus Budy Wuysang wrote:
si andy tidak memakai konstruk "coba++" jadi kalam konteksnya
tak ada beda... note: local char pointer ie. strz != coba
while (++*strz) stop saat *strz = '\0' (strlen(strz) = 9) i=0...8
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/us
Yohanes Nugroho wrote:
On Thu, 19 Oct 2000, Agus Budy Wuysang wrote:
artinya compiler akan menyediakan suatu tempat dimemori (dan tidak ada
^
jaminan bahwa lokasinya dapat ditulisi) yang berisi string tersebut
da prinsipnya:
coba = strdup("teststring");
coba3 = ("teststring");
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-81
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes
meminta inputan file yang akan dicompile
Expl. gcc file.c
Kalo ada mohon petunjuknya donk, soalnya aku perlu nich untuk teleneting
dengan hanya 1 command line sending, jadi 1 line itu isinya termasuk inputan
buat programnya.
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.
Benny Prijono wrote:
Agus Budy Wuysang wrote:
mmm, itu "constant string" apa maksudnya bukan 'const char *s[]' dan
s[] == *s == constant pointer == array of char
s == normal double pointer != constant
$ cdecl explain 'const char *argv[]'
declare argv as array
Oops ketinggalan :) coba anda lihat man 2 execve
yang mana merupakan 'first entry point execution semua executable'
di Linux
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext
unction1(x, str);
seharusnya tidak error...
kompile, tetapi ke function kedua (yg katanya Traditional C), tdk error
kompile kenapa demikian?
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-2
:
head -50 file.teks | tail -1
--
+---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes
Samuel Prakoso wrote:
Apakah ada yang tahu dimana mencari editor khusus untuk gcc?
vi + ctags ?
:gcc
--
+-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62
?
--
+-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes |+
--
Utk berhenti langganan
low level, coba baca ioctl lihat2
source code linux; driver untuk paraport.
--
+-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http
\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.rad.net.id/users/personal/s/supes |+
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id
2, since bash 2 drops privileges
~~
on startup. (Debian uses a modified bash which does not
~~~
do this when invoked as sh.)
...
--
+-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang
:1
Month :0
Year :70
Kok ngaco gitu yah?
--
+-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-856-1072-847 |
+| http://www.fasw.co.id/person
/kata_tertentu//g' infile outfile
Kalau mau reinvent the wheel, silakan periksa source
code masing2 prog di atas.
--
+-R-| Mozilla 1.0rc3 Gecko/2002 |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-856
! Gecko/200206 |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-856-1072-847 |
+| http://www.fasw.co.id/person/supes/ |-+
--
Utk berhenti langganan, kirim email ke [EMAIL
tertentu
?
printf misalnya.
Kalau anda pakai Vim bisa pakai 'K' (shift-k), command mode
saat posisi cursor di kata/function name.
--
+-R-| Mozilla 1.1! Gecko/200208 |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316
\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.fasw.co.id/person/supes/ |-+
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id
done data-file.ascii
--
+-R-| Mozilla 1.0.1 Gecko/2002 |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 |
+| http://www.fasw.co.id/person/supes
beda dia kasih tau
bedanya di mana (at least utk file text, bukan binary).
cmp bisa keduanya handle binary :)
--
+-R-| Mozilla 1.4 Gecko20030703 |-H-| Powered by Linux 2.4.x |-7-+
|/v\ Agus Budy Wuysang MIS Department |
| | Phone: +62-21-344-1316 ext 317 GSM: +62-816
program yang akan diexecute:
int main(int argc, char *argv[], char *envp[])
bisa diabaikan kalau tidak dipakai:
int main(void)
int main(int argc)
int main(int argc, char *argv[])
Penjelasannya: man 2 execve
--
+-R-| Mozilla 1.5 Gecko20031016 |-H-| Powered by Linux 2.4.x |-9-+
|/v\ Agus Budy Wuysang
statement sbb: printf(%I64d, variable);
man 3 printf - printf(%lld %llu\n, LL, uLL);
--
+-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+
|/v\ Agus Budy WuysangMIS Department |
| | Phone: +62-21-344-1316 ext 317Mobile: +62-816-1972-051
ada
nama file yang dimulai dengan '-', scriptnya bisa break
karena dianggap option switch...
mv ${mv_opts} -- $old $new
Terutama buat kolektor ogg mp3 files...
--
+-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+
| Agus Budy Wuysang
1.7 Gecko20040922 |-C-| Powered by Linux 2.6.x |-2-+
| Agus Budy Wuysang Mobile: +62-819-423-7172 |
| Phone: +62-411-321016 Mobile: +62-816-1972-051 |
+---| http://supes.agreatserver.com/ |---+
--
Berhenti langganan: [EMAIL PROTECTED]
Arsip
mungkin di Linux ada fasilitas yang bisa lebih membantu.
$ man 3 syslog
... dengan asumsi kejadian penting = menyangkut system,
kalau sekedar debugging program, lihat saran Pak Ivo Setyadi.
--
+-F-| Mozilla 1.7 Gecko20040922 |-C-| Powered by Linux 2.6.x |-2-+
| Agus Budy Wuysang Mobile
xdos kalau dari X?
--
+---F-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+
| Agus Budy Wuysang Mobile: +62-819-423-7172 |
| Phone: +62-411-321016 Mobile: +62-816-1972-051 |
+---| http://www.geocities.com/supeskrim
-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+
| Agus Budy Wuysang Mobile: +62-819-423-7172 |
| Phone: +62-411-321016 Mobile: +62-816-1972-051 |
+---| http://www.geocities.com/supeskrim/ |+
--
Berhenti langganan
-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+
| Agus Budy Wuysang Mobile: +62-819-423-7172 |
| Phone: +62-411-321016 Mobile: +62-816-1972-051 |
+---| http://www.geocities.com/supeskrim/ |+
--
Berhenti langganan: [EMAIL
+
| Agus Budy WuysangGSM (Mks): +62-819-423-7172 |
| Phone: +62-411-321016GSM (Jkt): +62-816-1972-051 |
+---| http://www.geocities.com/supeskrim/ |+
--
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id
://ariya.pandu.org/articles/swap.htm
--
+---F-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+
| Agus Budy WuysangGSM (Mks): +62-819-423-7172 |
| Phone: +62-411-321016|
+---| http://www.geocities.com
spasinya (field ke 2), saya ingin agar
baris ini tidak ikut terhitung. caranya bagaimana ya ?
$ grep -vc '^x, ' test.txt
--
+---C-| Mozilla 1.7.x |-4-| Linux 2.6.x |-2+
| Agus Budy WuysangGSM (Mks): +62-819-423-7172 |
| CDMA: +62-21-9292-7215
,
gunakan assignment function:
int **cm(int m, int n)
{
int **la, i;
la = (int **) malloc ...
for ...
mm[i] = ...
return la;
}
matrix = cm (x,y);
--
+--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+
| Agus Budy Wuysang
pinguin wrote:
On 2/28/07, Agus Budy Wuysang [EMAIL PROTECTED] wrote:
(2):
Apakah para programmer C selalu menggunakan pointer 2 kali (misal **a)
untuk menyimpan array 2D dan pointer 1x (misal *b) untuk menyimpan
array 1D?
Tidak selalu, kan bisa declare sebagai array (static pointer):
int
.
--
+--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+
| Agus Budy WuysangGSM (Mks): +62-819-423-7172 |
| GSM (Mks): +62-813-42--72CDMA: +62-411-527-27-72 |
+---| http://www.geocities.com/supeskrim
printer client lewat telnet(bukan print screen lho),
gimana ya caranya?
http://vtprint.sourceforge.net/
--
+--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+
| Agus Budy WuysangGSM (Mks): +62-819-423-7172 |
| GSM (Mks): +62-813-42--72
, kalau mau maksa alokasi pointer pakai stack: alloca()
--
+--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+
| Agus Budy WuysangGSM (Mks): +62-819-423-7172 |
| GSM (Mks): +62-813-42--72CDMA: +62-411-527-27-72 |
+---| http
58 matches
Mail list logo