HN user

surki

460 karma

surkii gmail

Posts24
Comments77
View on HN
www.thinq.co.uk 15y ago

Texas Instruments unveils quad-core OMAP 5 SoC

surki
2pts0
elpa.gnu.org 15y ago

GNU Emacs Theme Generator (beta)

surki
62pts22
www.marieclaire.com 15y ago

When the Suicide Bomber Is a Woman

surki
19pts2
gizmodo.com 15y ago

Xbox Live on Windows Phone 7 Hands On: Mobile Levels Up

surki
1pts0
www.linuxfordevices.com 15y ago

E Ink touts e-readers with color, capacitive touch

surki
22pts3
blogs.adobe.com 15y ago

Solving Different Problems (Flash video, HTML5 video...)

surki
1pts0
www.jwz.org 16y ago

The Lemacs/FSFmacs Schism

surki
2pts0
jon.oberheide.org 16y ago

Android Hax

surki
1pts0
www.linuxfordevices.com 16y ago

MeeGo for Netbooks released -- and it's fast

surki
1pts0
ccan.ozlabs.org 16y ago

Comprehensive C Archive Network

surki
7pts0
www.freethought-forum.com 16y ago

Nihilism vs. Existentialism

surki
1pts0
www.ft.com 16y ago

YouTube live sports streaming deal (IPL cricket)

surki
2pts0
www.slashgear.com 16y ago

Notion Ink Tegra Android smartpad

surki
3pts2
emacs-fu.blogspot.com 16y ago

Writing presentations with org-mode and beamer

surki
16pts1
news.bbc.co.uk 16y ago

Internet addresses set for change (DNS)

surki
2pts0
developer.txtr.org 16y ago

Txtr reader - an open ebook reader(Kindle alternative?)

surki
7pts4
symbian.org 16y ago

Symbian kernel Open Source release

surki
2pts0
www.albartlett.org 16y ago

Arithmetic, Population and Energy - a talk by Prof. Al Bartlett

surki
2pts0
developer.txtr.org 16y ago

Txtr ebook reader (hardware architecture)

surki
1pts0
box.matto.nl 16y ago

Emacs with Wanderlust and GMail

surki
2pts0
blogs.adobe.com 16y ago

Flash Uses The GPU

surki
1pts0
www.theregister.co.uk 17y ago

To the Moon - with extreme engineering

surki
1pts0
www.linusakesson.net 17y ago

The TTY demystified

surki
93pts13
news.bbc.co.uk 17y ago

No IE onboard Windows 7 in Europe

surki
22pts34

I have been using Global for about 6 years now. Mostly I use it in emacs (though at times I use the CLI version).

I use it in Linux and Windows. I mostly work on C/C++ (Linux kernel, Windows drivers etc) and also have used it for few C# projects (via exuberant ctags backend).

One real advantage I get: I switch platforms between Linux and Windows (the place I work for has both). So I use emacs in both platforms and same gtags customization works out of box in both platforms. This relieves me in learning/using new editor/tagging system for each platform.

FWIW: my dot emacs https://github.com/surki/dotemacs/blob/master/init.org

Doing it in C with mixed assembly

  [surki@linux-vrse tt]$ cat | gcc -nostdlib -x c - -o helloworld
  #define SYS_exit  1
  #define SYS_write 4
  #define stdout    1
  
  int strlen(const char *str)
  {
    long len = 0;
    while (str && *str++)
    {
        len++;
    }
  
    return len;
  }
  
  
  void print(const char *str) 
  {
      int len = strlen(str);
  
      long ret;
  
      /* Can't touch ebx directly, PIC uses it */
      __asm__ __volatile__ ("pushl %%ebx\n"
                            "movl  %%esi, %%ebx\n"
                            "int   $0x80\n;"
                            "popl  %%ebx"
                            
                            "a" (SYS_write),
                              "S" ((long) stdout),
                              "c" ((long) str),
                              "d" ((long) len));
      return;
  }
  
  void _start()
  {
    main();
  
    __asm__ __volatile__ (
         "xorl %%ebx, %%ebx\n"
         "int $0x80\n"
         
         "a" (SYS_exit));
  }
  
  int main()
  {
    print("Hello World\n");
    return 0;
  }

  [surki@linux-vrse tt]$ strip -R .comment -R .comment.SUSE.OPTs -R .note.gnu.build-id helloworld
  [surki@linux-vrse tt]$ ll helloworld 
  -rwxr-xr-x 1 suresh users 540 2010-07-21 13:19 helloworld
  
  [surki@linux-vrse tt]$ ./helloworld 
  Hello World

Probably you are using x selection buffer for copy/paste. But if you want to pick up stuff from X "clipboard" buffer, you would need xsel or something like that.

Wanderlust is quite usable now. I use it everyday(I have my gmail and exchange server(imap) accounts managed in it). You should give it another try sometime.

I use a similar setup with urxvt and stumpwm. In stumpwm I have

    ;; Launch emacs
    (defcommand emacs () ()
       (run-or-raise
        "urxvt -title emacs -e screen -U -dRR -S emacs -c ~/.screenrc.emacs"
      '(:title "emacs" :instance "urxvt" :class "URxvt")))
which will launch emacs (or raise it if it was already launched).

Some of the thing you might want to consider when doing "emacs -nw"

  - Make sure your TERM is exported appropriatly.
    Otherwise you may end up with less colors (M-x list-colors-display).
    Screen fiddles with TERM and emacs may end up supporting less colors.

  - Copy/Paste between regular X apps and the emacs will not work.
    You would need to use something like "xsel". See here [1]

  - Some of the keys may not work as expected. This will be 
    apparent especially when using orgmode. You may want to 
    remap them appropriately
And also I suggest you use Emacs + Wanderlust setup for email (and put it in a screen session as well).

[1] http://hugoheden.wordpress.com/2009/03/08/copypaste-with-ema...

Well, the example(at least the first one) in that video is bit skewed. First, he runs gzip and then immediately runs 'parallel gzip' without dropping disk caches. So in the later case the bottleneck would be CPU rather than disk IO(everything read from disk cache in the RAM). IMO I expect for the work that is IO bound we won't see any significant improvement using parallel or anything similar.

  > Not perfect, but I find it's more natural to write in org-mode 
Do you have any specifics on the problems you faced? I produced my master thesis entirely using orgmode without any problem. (defined custom latex class, with different kind of ToC etc, not that difficult)
  Got a computer behind a firewall whose configuration 
  you don’t have access to? It’s pretty easy to get the 
  computer behind the firewall to poke out to another 
  server.

  (step 1, from the computer you wish to access)
  derwiki@firewalledcomputer:~$ ssh -R   localhost:2002:localhost:22 mypublicserver.com

  (step 2, from any computer than can access  
   mypublicserver.com)
  derwiki@mylaptopontheinternet:~$ ssh mypublicserver.com -p 2002
  (authenticate)
  derwiki@firewalledcomputer:~$
If you want to keep it running always, you may want to consider "autossh" (restarts ssh connections if they ever exit/disconnect)

OK, didn't see that one. But technically it should be possible to do that(i.e., pure web rendering through JS) for TS as well.

What I meant to ask was - how does it compare using VNC against RDP. Probably you have through and rejected RDP, so was curious to know the technical details. (xrdp for Linux exists as well)

For the people out there who live in Emacs - Give Emacs + Wanderlust a try. It has a nice imap implementation, you can prefetch the mail, work offline, have multiple imap accounts etc.

Previously I was using Mutt + offlineimap

I use wget for the same. I usually call it from gnu screen, to update the status line with the no. of unread mails

  unread="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
  https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom |
  sed -n "s/<fullcount>\(.*\)<\/fullcount>/\1/p")"

  unread=${unread:-0}

  echo $unread
And also worth checking out http://groups.google.com/group/emacs-g-client?pli=1 if you are into emacs side of the things.