2009/1/20-26 [Computer/SW/Languages/Java, Computer/SW/Languages/Misc] UID:52425 Activity:nil | 1/20 I've been using tcsh as shell program tool (i know, bad shell to
do scripting). One thing I've noticed when I extract xml file
is that the variable type automatically change from
integer/string to... almost an array-like data structure when
the output of the xml key/value is more than one (it's more
like a string separated by space, but I was very impressed as
...
|
2008/11/3 [Computer/SW/OS/OsX] UID:51794 Activity:nil | 11/3 Anyone point me to a solution for OSX mac printing to a windows domain\
based computer that requires authorising. All the syntax that I have seen in var\
ious posts does not work (e.g. smb://username:password@machine/queue ). I was wo\
ndering if I should just accept it and wait until smbpool is fixed? Connecting\
via smbclient works just fine.
...
|
2008/7/14-16 [Computer/SW/Languages/Perl, Computer/SW/Unix] UID:50557 Activity:moderate | 7/14 Shell Programming question: I want to call a script with 1 arg
and have it figure out whether $1 is a MAC address or an IP address
and then do call the appropriate function. What is the best way
to do this, given that sh/bash/ksh do not have something like
the =~ in perl. Check for exit status of grep, or is there a
a better way? For the moment, let's just say the two tests are:
...
|
2008/4/2-6 [Computer/SW/Languages/C_Cplusplus] UID:49645 Activity:moderate | 4/2 Is there an interpreted version of C or C++ that can be used for
educational purposes? It doesn't have to be full-featured or
strictly adhere to the standards, but it's painful for students
to change a variable in a for loop and then wait for a compile
to see how it changes the result. Something really lightweight
would encourage them to play around a lot more and learn more in
...
|
2007/11/6-9 [Computer/Companies/Google] UID:48562 Activity:low | 11/6 GOOG's P/E ratio is approaching 60. Hmmmmm...
\_ Short Google At 100^w200^w300^w400^w500^w635 Guy returns!
\_ Your replacement syntax doesn't actually work.
\_ neither does shorting GOOG
\_ because shorting anything is risky and stupid. you might
as well invest in pork bellies.
...
|
2007/3/7-11 [Computer/SW/Editors/Emacs] UID:45897 Activity:moderate | 3/7 In emacs 21, is there a way in Emacs-Lisp to detect whether emacs was
started with the "-r" switch? In C mode, the syntax colors are
different when I start emasc with and without "-r". I want to do the
same in my elisp code, but I can't find how this is done in cc-mode.el.
Thanks. -- yuen
\- are you sure what you are talking about is being done by the cc*.el
...
|
|