Berkeley CSUA MOTD:Search
Berkeley CSUA MOTD
Results 1 - 28 of 28  
2008/12/2-9 [Academia/Berkeley/CSUA/Motd] UID:52145 Activity:low
12/2	Would people be in favor/opposed to a Web interface to MOTD in
	the hope that it might allow more new people to use it?  It
	would be authenticated against Soda but anonymized (to prevent
	spam).  Thoughts?  --steven
	\_ I think its a good idea and one I've wanted to look into for a
	   long time but what I think makes the motd so ... interesting.. is
	   the anonymity aspect to it.  I think that having webforums that
	   aren't anonymous and moderated would be of great benefit (job
	... line 51 ...
	   \_ real men use emacs:
	... line 72 ...
	      alumni can troll stupidly and argue about how to indent the text,
	... total 123 lines ...
2008/11/27-12/4 [Academia/Berkeley/CSUA/Motd] UID:52119 Activity:moderate
11/27   Hey, I'm new to motd...Are there any general rules/habits I should follo
        P.S. The office has actually been in 337 Soda, not 343 Soda, for the
	past year and a half or so. Speaking of which, the
	wiki doesn't look editable, whereas there is in fact an official CSUA
	wiki that authenticates to our LDAP backend (i.e. CSUA members can
	edit it). It's located at wiki.csua. I'd appreciate it if you guys
	could help add stuff to it. :)
	\_ For starters, 80 char per column. I fixed it for you this time.
	... line 16 ...
	   vi or emacs, or expect some of your edits to be lost. Some people
	... line 35 ...
		   \_ Replies are better if the indent is minimal, not a full
	... line 40 ...
                        tabs so I switched to indenting with them. I'm
	... total 183 lines ...
2006/8/22-23 [Computer/SW/Editors/Emacs] UID:44095 Activity:low
8/22	In emacs21, is there a way to change the number of spaces that emacs
	indents my C code at each level when I press the <TAB> key?  Thx.
 	\_ (c-basic-offset . 2)
	... total 4 lines ...
2005/4/19-21 [Reference/History/WW2] UID:37273 Activity:high
4/19	Related to the poll below re which era you would like to visit.
	If you could go back in time and witness one battle which one
	would you pick?  Personally I'd choose the Battle of Marathon.
		  \- i assume you have read your herodotus. you might
		     read s. pressfield: gates of fire if you have not
		     already. in a different time, if interested in battle
		     details and a story better than da vinci code, see
		     e.g. "the archers tale" by bernard cornwell. decent quick
	... line 51 ...
		 \_ Why the FUCK is it so hard for you to indent like a normal
	... line 53 ...
		    \_ emacs is lame.
	... total 72 lines ...
2005/2/16-17 [Computer/SW/Editors/IDE, Computer/SW/Languages/Java] UID:36206 Activity:moderate
2/16    I just downloaded IntelliJ IDEA and they don't have a friggin
        tutorial on their web site and I can't find any decent non-J2EE
        tutorial on Google. Need pointer, thanks.                   -dumb
	\_ i use idea but not for j2ee crap. here's my quick guide:
		cmd-N: open class
		cntrl-space: autocomplete name
		cntrl-J: javadoc
		cmd-B: jump to defn
	... line 14 ...
           \_ in emacs I can press TAB and it'll auto indent, how do I do that
	... line 18 ...
	      \_ I use the some customizations on the emacs keymap (which is
	... line 22 ...
		 the Indent Selection setting under Editor Actions. Lines are
	... line 25 ...
		 IDEA converted me from emacs/vi for Java (not J2EE) dev. -gm
	... total 38 lines ...
2004/9/16 [Computer/SW/Editors/Emacs] UID:33555 Activity:high
9/15    Spaces or tabs?  I was almost converted to the tab true religion,
        and then I tried to actually set this up in emacs.  I find code with
        eight character wide tabs to be less readable.  This is totally a
        personal preference, if you like reading code with eight character
        wide tabs, more power to you.  Simple enough to fix, right, just:
        (setq tab-width 4)
        and, voila, my eyes stop bleeding from overexposure to white space.
        Not so fast!  Suppose you're editing in cc-mode with a style that
	... line 12 ...
        for a discussion of this on the emacs-devel list.  Note RMS smacking
	... line 19 ...
           \_ Sounds similar to gnu indent.  I was kind of hoping for
	... line 33 ...
           saving.  Too bad jove (ancient, I know) doesn't do all this, emacs
	... total 38 lines ...
2004/7/15-16 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Emacs] UID:32311 Activity:low
7/15	In emacs20, how do I set indent-tabs-mode to nil using ~/.emacs such
	that emacs will use spaces instead of tabs to indent in all my C files?
	I tried "(setq indent-tabs-mode nil)", but the value is still t.
	--- yuen
	\_ use setq-default, or look up hooks in the emacs manual.
	   \_ I see.  Now c-mode-common-hook does the trick.  Thx.  -- yuen
	... total 7 lines ...
2004/5/17-18 [Computer/SW/Editors/Emacs] UID:30262 Activity:high
5/17	emacsexpert:  I am using emacs in text mode.  When I use tab to indent
	(only) the the first line of a new paragraph, it always uses the first
	space (i.e. the beginning of the 2nd word) on the last line of the
	last paragraph as the tab stop, even though that is not what the
	manual say about indent-relative.  I have the same behavior even in
	Parindent mode.  I can turn this off only by going into fundamental
	mode, but then I lose the other feature of text mode and this also
	... line 8 ...
	seems contrary to what the Emacs manual say about the various text
	... line 13 ...
	   for tab-to-tab-stop and use that for indenting.
	... total 13 lines ...
2004/4/20 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:13283 Activity:nil
4/20	How does on change the indention level for Java Mode in emacs?
	I understand the C variable is c-basic-offset, but what's the
	Java variable?  (Hint: It's not java-basic-offset) Help?
	\_ Dude this has been posted like, the 10th time this year.
	   Use the force, just f****** search!!!
	   \_ Wow, you're a freaking genius.  That tells me exactly
	      how to NOT do what I want.  THANKS!
	... line 13 ...
       c-indent-level 4
	... line 16 ...
       indent-tabs-mode nil
	... total 18 lines ...
2004/4/2-4 [Computer/SW/Editors/Emacs] UID:12982 Activity:moderate
4/2	problem with emacs. After I use it for a while (2-3 hours), the
	indentation went from 4 (default that I set and prefer) to 2.
	I have no idea why this is happening. Can someone tell me how
	to fix it? I tried M-x load-file .emacs but indentation sticks at
	2. Thanks.
	\_ this question was answered already. search the archives.
	\_ (setq-default c-basic-offset 4)  At least, that's what's in
	   the archives.
	... line 11 ...
		(setq         indent-level 2)
	... line 17 ...
		(setq         java-indent-level 4)
	... line 23 ...
		\_ so, in another word, emacs only allows 1 indentation
	... total 41 lines ...
2004/3/4-5 [Computer/SW/Editors/Emacs] UID:12521 Activity:nil
4/3	(setq indent-tabs-mode nil)
	in .emacs has been the best thing I ever did in my 10 years as an
	emacs user. The tabification is just wayyyy annoying. Spaces rule.
	Fuck tabs go space!
	\_ doesn't work for me. When I save I still get tabs. How do I make
	   it untabify automatically? Thanks.
	\_ what's wrong with tabs?  do you know using spaces is so annoying!?
	   especially when I want to format my code, I have to hit space
	... line 14 ...
	      lets you hit the TAB key to indent, but it insert spaces instead
	... line 26 ...
                      have something like the mode-dependent indents in emacs.
	... line 36 ...
		 does in emacs.
	... line 38 ...
	            environment (i.e., not everyone using emacs).
	... total 41 lines ...
2004/3/3-4 [Computer/SW/Editors/Emacs, Computer/SW/OS/VM] UID:12509 Activity:nil
3/3	/usr/bin/ld: cannot find -lX11
	What is wrong? I've included /usr/X11R6/lib and still no luck...
	\_ if you included the actual command line and OS details, maybe
	   someone could give a more helpful response.
	gcc -nostdlib `./prefix-args -Xlinker  -R/usr/X11R6/lib -z nocombreloc -L/usr/X
	\_ various "maybes": try -lx11; are you getting the error at compile
	   time or runtime (if latter, man ldconfig); reduce it to a
	   a smaller testcase (find some small source file that uses X
	... total 11 lines ...
2004/3/2 [Computer/SW/Editors/Emacs] UID:12484 Activity:kinda low
3/2     How do I disable tab in emacs and make it output space only
        automatically (without doing "untabify" manually)? Thanks.
	\_ Why don't emacs users just mail directly to psb?  He's the only
	   one here who knows anything about it.
	   \_ on the contrary. (setq indent-tabs-mode nil). but since that
	      only does it for the current buffer, you may want to do
	      (setq-default indent-tabs-mode nil) in .emacs.el
	      or whatever.
	... total 14 lines ...
2004/1/11-14 [Recreation/Pets] UID:11749 Activity:nil
1/10	How do I get emacs to do nice indenting on html files? Thx.
	\_ meta-x left-shift-control-hst (at the same time)-html-indent-style-
	   number-XYZ (where xyz is a number from 3 to 628) -fix-indent while
	   singing dixie and dancing nude upon your desktop while swinging a
	   black cat three times around the room praying to the moon goddess
	   just moments before you toss the cat in a boiling cauldron (other
	   black cat three times around the room praying to the mooon goddess
	   just moment before you toss the cat in a boiling cauldron (other
	... line 9 ...
	   contents are in the emacs faq) and you jump into the roaring fire.
	... total 9 lines ...
2003/12/19-21 [Computer/SW/OS/Linux] UID:11543 Activity:low
12/19	screen help request.  After a few days(3-20?), my screen just goes
        to shit.  Tab's don't indent right, editing anything requiring
        left-right placement, cursor movement, or backspace  becomes hell
        (editor, emacs).  Any idea why? If I kill the screen, then restart
        it, everything's fine again.  -nivra
	\_ what screen version, os?
	   \_ Screen version 3.09.08 (FAU) 1-Sep-00
	      Linux 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686
	... total 23 lines ...
2003/2/14 [Computer/SW/Editors/Emacs, Computer/SW/Unix] UID:27409 Activity:low
2/13	People who intentionally write obfuscated code for contests
	use formatting to confuse you.  What tools/programs takes
	obfuscated code, and at least makes it readable in terms of
	lining up parens and so forth.
	\_ Apparently, duct tape and plastic bags work wonders for
	   chemical weapons. Maybe you should try that.
	\_ indent
	... line 8 ...
           \_ to be more precise, GNU indent, which has a bazillion options
	... line 11 ...
	      \_ is this a default part of emacs?
	... total 14 lines ...
2002/2/5 [Computer/SW/Languages/Misc] UID:23776 Activity:nil
2/3	I'm working with xml (my resume), but I can't get emacs to
	correctly indent with open and closing tags.  I have psgml, xml,
	and html -mode at my disposal, but I don't know how to make it
	format correctly.  Any hints?
	... total 4 lines ...
2002/1/17-18 [Computer/SW/Editors/Emacs] UID:23586 Activity:nil
1/17	How do I force emacs to tab indent 8 spaces?
	\_ Meta-x set-variable, tab-width, 8
	... total 2 lines ...
2001/12/7 [Computer/SW/Editors/Emacs] UID:23172 Activity:high
12/6	An idiot (who happens to be the architect) in our group keeps using
	PC for development and it appears that every single indentation is
	tabs (probably a VisualJ or JDeveloper guy). How do I make my emacs
	recognize tabs so that emacs will display them correctly ? Thanks.
	\_ add (setq default-tab-width 4) to your .emacs file to set tab stops
	   to every 4 spaces, or better yet, read the help for the "untabify"
	\_ The coding standard for your project should define how wide a
	... line 10 ...
	   the use of tabs for indentation will allow you to easily view
	... line 17 ...
	   right -- Indenting with 8-character-wide tabs to a maximum of
	... line 22 ...
              via CVS.  Eventually we decided to indent with spaces,
	... total 28 lines ...
2001/8/10 [Computer/SW/Editors/Emacs] UID:22067 Activity:kinda low
8/9	Any way to save emacs macros that I've defined so that I can some-
	how load then when I restart emacs?
	\_ You can put them into your .emacs file with fset.
	   (fset 'macro_name "keystrokes")
	   Try M-x apropos on fset to get more information.        -mice
	   \_ boy that's a bad way to get help on a function.
	      either do m-x describe-function or c-h f
	      \- you can "compile" a macro into a elisp function. I wrote the
	... line 9 ...
	      emacs 18/early 19 macro2el "compiler" but that is superceeded
	... line 12 ...
	      power-macros also. ok tnx. --mr emacs.
	... total 14 lines ...
2001/6/26-27 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Emacs] UID:21639 Activity:moderate
6/26	In emacs20 c-mode, how do I tell it to indent with an amount other than
	two columns?
        \_ M-x apropos indent
	   \_ Yeah I did that, but I couldn't find anything that I could set
	      to tell it to indent by every four columns when I press the
	      <TAB> key.  Any more hint?
		\_ c-set-offset.  read:
	... line 8 ...
		   info emacs/ccmode/Customizing Indentation
	... total 8 lines ...
2001/6/22 [Computer/SW/Editors/Vi] UID:21597 Activity:moderate
6/21    How do I make Emacs format a block of text to fit within a certain
        number of columns (by inserting newlines, etc)?
	\_ M-x set-goal-column 70, M-x fill-paragraph.  See C-x C-n and M-q.
	   --- yuen
	\_ ^X^Cvi !$^M!}fmt 70 75^M
	   \_ How do I get vi to automatically color code and indent C
	      files without using the default 8 position tabs? How do
	      I load up multiple files under vi so that I can juxtapose
	... line 14 ...
	      \_ color, autoindent: vim
	... total 19 lines ...
2000/7/28-29 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Unix] UID:18798 Activity:high
7/27	I love GNU indent as a code beautifier.  Is there anything
	better? or perhaps for C++?
	\_ heresy, but what about Visual C++?
	   \_ Alt-F8?  It pales compared to GNU indent.
	\_ emacs --batch --exec '(indent-region (point-min) (point-max))' FILE
	   \_ Is this better than GNU indent?
	      \_ That was only one of the questions.
	\_ Vim = cmd.  use: vim -c "norm 1GvG$" -c wq yourfilehere.cpp
	... total 8 lines ...
2000/6/13-14 [Computer/SW/Editors/Emacs] UID:18463 Activity:very high
6/14	I have the following in my .emacs:
	(setq load-path (cons "$HOME/html-helper-mode" load-path))
	But when I try to enter that mode, I get a file not found error.
	(the .el IS there).  Is there any way I can change this without
	hardcoding my home directory?
	\-use ~ or         (defvar HOME    (concat (getenv "HOME") "/")) --psb
	\_ Works perfect, thank you much.  Do you know how to get
	... line 8 ...
	html-helper-mode to indent properly?
	... line 12 ...
		\- M-x bite-me --mr-emacs
	... total 12 lines ...
2000/4/5-6 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Editors/Vi] UID:17930 Activity:very high
4/5     I want to improve my C coding skill. Would it help my
        understanding to read the spec or is there something better to
        increase my understanding and use of C?
        \_ download the cs61c assignments and do them.
        \_ practice with it and give yourself projects to motivate you to
        \_ Take 164, 170, 172, 174. Read the Art of Computer Programming.
           A good algorithm will beat any C and compiler optimizer trick.
	... line 25 ...
              tabs to indent.  8 is more standard than 4, but yes, 4
	... line 36 ...
                    vi, emacs, notepad, etc.  Each one treats tab a certain
	... line 41 ...
                    emacs, for example, has a special mode which works
	... line 48 ...
                       indenting/hilighting, etc.  Of course, I don't use emacs.
	... line 53 ...
                           probably not emacs users.
	... line 58 ...
                                   emacs, with some companies favoring one
	... line 61 ...
                                   its recommended that you use emacs (lots
	... line 63 ...
          \_ Just use C-Mode in emacs. It does all the indenting correctly,
	... line 65 ...
             source files since the indenting will be off.
	... total 86 lines ...
2000/2/3-5 [Computer/SW/Languages/Perl, Academia/Berkeley/CSUA/Troll] UID:17420 Activity:high
2/3     Does emacs automagically understand lines like the following or
        do I have to do something special in .emacs? How can I get emacs
        to automagically insert these lines at the start of all my
        c and tcl files?
     /*-*-Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t-*-*/
What is the difference between flamebait and a troll?
	... total 29 lines ...
1999/12/1 [Transportation/Car, Computer/SW/Editors/Emacs] UID:16984 Activity:moderate
11/30	How do I auto-indent/tab a block in emacs?
	Esc, ctrl-\
	\_ Thanks.  This entry will be deleted shortly...
	\_ Meta-Control-Right-Shift-NumPad9-auto-indent-and-tab-level8
	... total 4 lines ...
1998/6/25-27 [Computer/SW/Languages/Perl] UID:14249 Activity:moderate
6/25	how do you make emacs auto-indent after pressing "ENTER" in
	perl/cc-mode?  What do I need to add in my .emacs file? TIA
						- clueless emacs user
	\_ M-X vi-mode; set ai
	\_ In your .emacs, add:  (add-hook 'c-mode-common-hook
	     (function (lambda ()
		(define-key c-mode-map "\C-m" 'newline-and-indent) ) ) )
	   ... And a similar thing for your perl mode.  --sowings
	... line 11 ...
                (define-key perl-mode-map "\C-m" 'newline-and-indent) ) ))
	... total 14 lines ...
Results 1 - 28 of 28