General :: Emacs Equivalent Of Xcode's #pragma Mark?

Oct 4, 2010

I'm coming to emacs from Xcode. An Xcode feature I really like is the ability to type the lines#pragma mark -#pragma mark Section Heading Nameto mark the subsequent part of my code as belonging to a particular section. I can then jump to that section from a drop-down menu.Does a similar ability to break up code into named sections and to jump to a section by name exist in emacs?

View 2 Replies


ADVERTISEMENT

Networking :: Iptable Mark Packet And Use This Mark In Other Rule?

Apr 21, 2010

I'll like to mark all packet coming from and going to an ip adresse. And I'd like to match that mark packet in an other rule. Ex :

Rule 1 : Mark all packet coming from 192.168.2.0/25 with number 1

Rule 2 : Drop all packets which has been mark with number 1

View 3 Replies View Related

General :: Recognized Pragma - Insert At The Beginning Of A Text Document To Designate It To Be UTF-8 Encoded

Jun 4, 2011

Is there some kind of universally recognized pragma that one can insert at the beginning of a text document to designate it to be UTF-8 encoded (or any other encoding)? I've seen certain editors insert encoding comments, and one or two compilers that have an encoding pragma. But I was wondering if anyone has tried to establish some kind of universal tag format for text documents.

View 1 Replies View Related

Programming :: How To Use The #pragma

Jan 1, 2010

I know the #pragma pack(2); but how to use #pragma comment ,#pragma message , #pragma XXX .... etc..even only one example would be OK, well, let's assume the compiler is GCC, alright ? for that GCC is my favorite compiler, for a very little time i gonna use VC.

View 6 Replies View Related

Ubuntu :: Code In Emacs File To Start Emacs Maximized?

May 17, 2010

I was using the following code in my .emacs file to start emacs maximized:

Quote:
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32

[Code]...

View 2 Replies View Related

Programming :: When Pragma Pack Should Be Used

May 23, 2011

When should I use pragma pack? I found this code on some source files while other sources do not have the pragma pack()

Code:
#pragma pack (1)
typedef struct _net_ip_header_t {
uint8 hdr_len:4;// header length
uint8 version:4;// version
uint8 tos;// type of service
uint16 tot_len;// total length
uint16 id;// identification
uint16 flags_offset;// fragment offset field
uint8 ttl;// time to live
uint8 proto;// protocol
uint16 cksum;// checksum
ip_addr src_ip;// source ip address
ip_addr dst_ip;// destination ip address
} net_ip_header_t;
#pragma pack ()

View 1 Replies View Related

Fedora :: Install IOS Development Kit Xcode 3.2.5

Feb 17, 2011

how to install iOS development kit xcode 3.2.5 on fedora. It is a .dmg file.

View 5 Replies View Related

Ubuntu Installation :: XCode For New Release Of 10.04

Jun 15, 2010

Is there a functional equivalent to xcode for the new Lucid Lynx release of Ubuntu (10.04)? I'm just beginning to write a IPHONE app and require a proper IDE, but don't want to use mac os.

View 2 Replies View Related

Programming :: Pragma Pack - Local Variable Is Being Padded?

Jun 9, 2011

I am new to using 'pragma pack' and here is what I am running into :

Process A:
a.h -> defines a struct XYZ as PACKED and is of size 44bytes
a.c -> includes a.h and is able to print the size as 44 bytes.

Process B
b.c -> includes a.h,
b.c -> gets a message from process A, with struct XYZ in the message as data.
b.c -> After getting message, it is unable to print the elements of struct correctly. This is because the sizof (XYZ) in b.c is seen as 48 bytes.

I suspect, in b.c, the local variable of struct XYZ is being padded and not PACKED.

View 4 Replies View Related

Ubuntu Multimedia :: HP TV Tuner With A ViXS Xcode 2105 Chipset - Driver

May 30, 2011

I have a HP TV tuner with a ViXS Xcode 2105 chipset.. Dose anyone have any idea where I could find a driver for the card? Im running 10.04 32 bit OS

View 6 Replies View Related

General :: Mark A Portion Of The Screen As Unusable

Dec 12, 2010

I have a laptop of which a large part of the screen is broken (shows garbage). Fortunately the broken area is a clean rectangle, the bottom 1/3 of the screen or so.

The laptop is running Ubuntu 8.04, but I plan to reinstall it with 10.10. The graphics are provided by an Intel 915GM or something in that direction.

Knowing this, do you know of a way to tell the system about the broken part of the screen, so it will simply not use it? I don't really care whether it's done at the hardware, X or window manager level, though as low as possible is preferred.

View 1 Replies View Related

General :: Only Case Sensitive Is Available To Mark/unselect?

Jun 28, 2010

my ubuntu 8.04 is GNOME based.I am using kpdf 0.5.10 (using kde 3.5.10)

In find dialog box > options
only case sensitive is available to mark/unselect while
find backwards ,

[code]....

View 5 Replies View Related

General :: Mark Mplayer For Non-installation With Apt-get/ Aptitude/ Dpkg?

Apr 10, 2011

I uninstalled mplayer w/ apt-get (and with it mplayerthumbs + mozilla-mplayer) for the purpose of running a 'make install' on an SVN version I compiled - that worked out fine. Now I want to reinstate mplayerthumbs + mozilla-mplayer, but of course in doing so, mplayer is marked as a dep. How then do I mark mplayer to be ignored using the aforementioned package managers? Additionally, why isn't dpkg referencing my sources list?

Code:

[stuart8.5@mepis1 ~]$ sudo dpkg -i --ignore-depends=mplayer install mplayerthumbs mozilla-mplayer
[sudo] password for stuart8.5:
dpkg: error processing install (--install):
cannot access archive: No such file or directory

[code]....

View 5 Replies View Related

General :: Equivalent Of Gnu `sort -R` On OSX?

Sep 11, 2011

The GNU sort text utility features a non-standard -R option to randomize input lines (presumably by sorting on a hash).

OSX sort does not have this extension. Is there similar functionality available in another text filter?

View 1 Replies View Related

General :: Run Emacs In CLI Inside Of GUI?

Jul 29, 2011

I tried Google search and reading man page options for emacs but couldn't find... If I run emacs in GUI, it starts GUI for emacs. I want to run it in CLI in rxvt. How do I do it?

View 1 Replies View Related

General :: Osx - What's The Equivalent Of Updatedb Command For The Mac

Feb 16, 2010

If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the corresponding updatedb for the mac?

View 2 Replies View Related

General :: Equivalent Of Solaris's Cu Command?

Aug 19, 2010

What is the equivalent of Solaris's cu command in Linux?

View 2 Replies View Related

General :: X Equivalent Of 'screen' Utility?

Jun 2, 2011

Under unix/linux, there is this extremely useful program screen: it's for bash, text-only, and I can detach a session, log out (the session is still running though), log in later (even from a different computer) and resume the session exactly as I left it. My question is, is there an equivalent to screen for X? So what I want to do is: work remotely with ssh -X in an X-session on a remote linux machine, log out, then later log in from a different computer again with ssh -X and then re-attach the X-session; practically resuming work from the moment when I logged out before. Is this possible?

View 4 Replies View Related

General :: Windows - An Equivalent Of .lnk In System?

Jul 14, 2011

When creating a shortcut in windows it makes a .lnk file.

I have researched and it seems these are openable in linux(with some tweaking). Does Linux have an equivalent? If so, whats the extension?

View 2 Replies View Related

General :: Equivalent Of Tail/less - Follow-name Under OS X

Jul 28, 2011

I need to tail -f a log file that is rotated.

This is the exact same issue as the one here, but on OS X:

Why does less tail mode stop working?

So how can I constantly track a file whose inode might change under OS X?

View 1 Replies View Related

General :: Is There A Konsole Equivalent For Gnome?

Aug 20, 2011

I'm looking for a Konsole equivalent for Gnome.I don't want a Quake-style dropdown console. I like tabs and the ability to send a command to all tabs.

View 3 Replies View Related

General :: Vim: An Equivalent Two-keystroke Sequence For The <Esc> Key

Jun 24, 2011

The <Esc> key has an equivalent two-keystroke sequence within vim, I think I remember.

View 8 Replies View Related

General :: Can't Seem To Find KDE Equivalent Of GNOME's

Sep 14, 2010

I can't seem to find the KDE equivalent of GNOME's (or Xfce's, or Windows') ALT-spacebar keystroke combination that brings up the window context menu.

View 4 Replies View Related

General :: Unicore Or Equivalent - Link PC's?

Dec 2, 2010

i want to start a project in my spare time. Starting with 2 PC's and expanding to a few more in the future how can I create my own GRID? I was pointed in the location of Uni-core which i have just started having a look at. Anyway could any offer any advice if you have tried soemthing similar. If I could host my own Virtual Environment using the processors/memory of more than 1 pc ill be a happy chappy. Let me know if it isn't worth the hastle, feel free to suggest something else to try

View 2 Replies View Related

General :: USB Equivalent Of The Bootable Slackware CD/DVD?

Mar 23, 2010

I want to create a bootable flash drive that will boot and install the slackware 13.0 distro, except that I need to be able to do it from a Windows system for a Linux install. Here's what the Linux version does(from a web page written by Eric Hameleers, who also wrote the script):

"This directory contains a script (create_multipartboot.sh) and several other files that will transform your USB stick into a bootable Slackware installer. The script creates an multi-partition image file (hence the script's filename), which you need to copy onto a USB stick.A (small) FAT partition contains the slackware setup program and the bootable code, while the rest of the available space will be used up by a 'ext2' formatted partition in which as much Slackware packages are stored as can fit."

View 3 Replies View Related

Programming :: UNIX Ostringstream Compilation Using Xcode On OS X: Ostringstream Cmd

Jul 24, 2011

The following declaration is presenting a compilation problem using Xcode on OS X: ostringstream cmd; The error is as follow: Implicit instantiation of undefined template 'std::basic_ostringstream<char, std::char_traits<char>,std::allocator<char> >; The exact same code will compile and run on Linux - same imports and everything. What could be causing the issue?

View 2 Replies View Related

General :: How To Get A Decent Emacs Setup

Mar 11, 2011

I am currently interested in switching from vim to emacs.One of the more compelling reasons for this is the smooth integration with a unix environment. The most experienced emacs users I have seen have a bash prompt at the bottom of their window, with stdout going to a buffer right above it. They then interact with the output of programs such as grep in interesting ways.I am on Ubuntu 10.04 and the default emacs environment does not seem to do much for me in the way of integration. For example, in the M-x shell mode, output from basic commands like ls produce lots of strange characters and hitting the up arrow does not go to previous commands.

View 4 Replies View Related

General :: How To Open Emacs In Its Own Window

Aug 20, 2010

I am doing some project work and for that using the server at college with ssh connection. Every time I try to open emacs on the terminal after connecting, it opens emacs in the terminal itself i.e. not its own window. On my laptop on which ubuntu is installed, emacs always opens up in its own window an thats how I am used to it. There are several problems when it opens in the terminal like when I try to use commands such as M-V, actually terminal's view menu opens up, its very frustrating. Also I am pretty sure that the college server runs on red hat and has X installed on it. So what do I need to do to get my emacs window back.

View 4 Replies View Related

General :: Emacs Is How Much More Than Text Editor?

May 30, 2011

I was reading how you could browse the net with Emacs but then it was stated that it was done with another application like Firefox so this would imply that Emacs is an interpreter would it not? What is Emacs capable of? Is it an interpreter that runs a text editor?

View 11 Replies View Related

General :: Set Ispell Language In Emacs?

Mar 16, 2011

I'm using emacs to write documents in latex. But, I would like to set the spell checker to use english or portuguese language. I've installed the ispell package for english and for portuguese. Now, I would like to set the emacs to use the english or the portuguese language. I can I do that?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved