Tag Info

Hot answers tagged

9

Even though they type vi or call it vi it may still be vim. And at least vim can do all the "modern" features like auto-completion and syntax-highlighting, too. It can also mark/copy/paste text using the mouse if you wish. I however prefer vim and the console because I can do 100% of the work without ever taking one hand off the keyboard. Try that with a ...


7

For developing C/C++ you need the gcc compiler, which is included in most Linux distributions or can be easily installed. There is not a default IDE: most people use their favorite editor (vim, emacs, Geany etc...) and there are IDEs like Eclipse or KDevelop available. C# can be done with Mono, but it is not fully compatible with .NET: check the ...


6

SMART over USB is generally either not possible, or is done with (bridge) vendor-specific commands, so there's no one way to get things done. smartctl knows about a few specific bridge chips. Check the manpage for a list. This is horrible, but the only 100% reliable way to access SMART on a disk is to unplug it from the bridge and stick it on a proper host ...


6

I'm a pretty hard-core Emacs user but still, for developing C++ I prefer Qt-Creator (don't be afraid because of the name, it works well for non-QT-projects) as Emacs lacks good project support and stable code completion The pros: Can import CMakeFiles.txt into an automatically created project Best code completion you'll find on Linux, sometimes even ...


4

I don't think you're looking in the right place. The functionality you're asking about is primarily one that would be provided by version control software. Specifically, use distributed revision control software, such as Bazaar, Git or Mercurial. Keep a repository on your local machine and one on your server. When you're satisfied with the changes, commit to ...


4

There's the same type of problem for awesomewm and probably quite a few other window managers. The dmw wiki has a section on this: Fixing misbehaving Java applications. The solution proposed is to change the window manager name by installing wmname, and then running: $ wmname LG3D If that works, make sure that is called at every X session startup. The ...


4

You mentioned above that you're looking for "crash-proof-ness", and you said that Unity appears unstable. Don't confuse the stability of the window manager with the stability of the distribution or the kernel. Unity is a quite new window manager (some say it was released before it was ready for production use and still needs polishing), and it may take ...


3

A purpose-built IDE would sort of defeat the purpose of shell scripting, not to mention that it's nearly impossible to do, because most of what shell does is calling external commands - how do you debug that? Debugging with checkpoints is counterintuitive for a shell - shell scripts usually operate heavily on files and thus have destructive side-effects on ...


3

Stay with gcc compiler and Vim as an IDE. There are a lot of plugins for Vim that improves the experience in almost coding languages, but you should learn Vim first if you want to take advantage of that though. On the other side, I think just a few "firms" are naming "C#" and "Linux" in the same context.


3

There is a vendor independent SAT (SCSI/ATA transfer) standard, but AFAIK this is not widely supported on (cheaper) bridges. There are several vendor specific ATA pass-through commands that you can select with smartctl with the -d option: -d TYPE, --device=TYPE Specify device type to one of: ata, scsi, sat[,N][+TYPE], usbcypress[,X], ...


3

There isn't an appropriate value of -d. The problem is that you're using a SATA↔USB mass storage bridge, and USB mass storage doesn't have a standard way to request ATA/SATA SMART data. So instead the controller has either no way or some vendor-specific way to get the data. smartctl knows a few of these; examples include usbjmicron and usbsubplus. So, if ...


3

In the VM, is the pxaregsmodule.c at /home/user/Dropbox/pxaregsmodule.c or /home/dknapp/Dropbox/pxaregsmodule.c? It seems to me like the symbolic link pxaregsmodule.c in /projectroot/modules is broken since it points to the wrong directory. What happens if you: tail ~/projectroot/modules/pxaregsmodule.c Does any code show up? If this is the problem, you ...


3

Eclipse is a good choice, because one IDE to many language. In addition you can install vim plugin, etc. How to install c/c++: Menu: Help->Install New Software->Add http://download.eclipse.org/tools/cdt/releases/galileo http://www.eclipse.org/cdt/ In addition, you should see: http://www.eclipse.org/linuxtools/downloads.php


3

What I would recommend is that you don't stick to any IDE's per say. Let your code stay as flat files in the filesystem, and use independent tools (Emacs, the GCC toolchain, Ctags, etc) you have to for implementing the operations you have to implement. That will keep your codebase IDE-independant and free of clutter that surrounds it (like .project files, ...


2

I use a vim that has Python interpreter compiled in. I source a python file that has this function: def pyterm(filename="", interactive=1): cmd = "%s %s %s " % (PYTHON, "-i" if interactive else "", filename) if "DISPLAY" in os.environ: return run_config(os.environ.get("XTERM"), cmd) else: return os.system(cmd) And map it to a ...


2

Try the quickrun plugin for Vim. The page includes a link to github, which is the latest version and which is what I use. The advantage in using this plugin as opposed to doing :!, the output from the command will be collected and shown in a split window. Also, by default that plugin will hang your vim instance when you ask it to execute a command, but it ...


2

I'm currently running CentOS on some old hardware and using a USB interface to a hot swap bay for testing these, but it's not really an ideal solution. A USB-to-SATA adapter probably won't work for this, because they usually don't allow you to run SMART commands. I'd use SATA directly for this. If that's not an option, you will need a USB-to-SATA ...


2

I believe the whole idea about editors is kinda warped. I won't claim, that only I know what editor to use when. But we are forced to use editors that we aren't particularly fond of, usually. When using IDE's, we're all forced to use the editor that comes with it. Even though those editors can be tailored a bit, it's not that we can plug-in vim as IDE ...


2

Yes I think it's worth it. For instance what if you were creating/editing a bash script? Or peeking inside a text file and making a single-character change, an IDE might not be suitable or be overkill for such simple tasks. vi/vim will fire up almost instantaneously. Also, when accessing a system remotely having a text based editor available is useful. vi ...


2

Apart from vim with visual basic highlighting as Evan indicated, there is also a visual basic mode for Emacs. I have not used it extensively as I seldom work with VBA. You would have to follow the installations instruction in the file the link points to. Emacs is not a lightweight editor like Gedit is, it is well worth learning to use something as ...


2

I usually use vim or gvim, Eclipse, or IntelliJ. Eclipse works surprisingly well for other languages, it's primarily suited to Java but through the use of plugins can be adapted to suite other languages too. Eclipse CDT (C/C++ Development Tooling) excerpt The CDT Project provides a fully functional C and C++ Integrated Development Environment based ...


1

I wouldn't say it is either well known or well used but you might have a look to basheclipse: I must admit I have no experience with basheclipse and even failed to install it due to an eclipse version mismatch. On the other hand, I'm using bash and ksh93 specific debugging features, especially the trap ERR and trap DEBUG ones but not the debuggers based ...


1

There is no real answer to this question, just personal preference. Many projects will include build scripts for a certain IDE (like the *.pro files you mentioned) but most often[citation needed] you will just pick the one that you like best. Most IDE's provide easy methods for setting up projects for existing code, and many integrate with autotools quite ...


1

As mentioned in Alko's answer, use the Eclipse Color Theme Plugin to theme the main text field. In order to theme all the other views (package explorer, console and so on), you need to use an Eclipse Theme. Go to Window -> Preferences -> Appearance. There you can select an Eclipse Theme. I personally use the Dark Juno theme. Finally, you may see some ...


1

You can install Aptana on Ubuntu (try those instructions). However, for a general-purpose IDE, I like Geany. Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has ...


1

For my own personal and professional development, I've found that BSD has worked better, was more reliable, and would just do what you wanted over linux. Most of the tasks that I asked it to do though were of the server variety, such as running LAMP stacks or application servers. Never used a front end GUI on it at all.


1

FreeBSD is not the kernel alone while Linux is only the kernel with many variations ("distros"). Each distro has some variation. Linux also tends to make changes such as the recent systemd and Wayland while FreeBSD prefers "steady as she goes". In that case, FreeBSD is less likely to change its core infrastructure while, in Linux, there may be required ...


1

Personally I think they are equal although in the web hosting world I would venture a guess that Linux is used much more than FreeBSD. As a developer I have found it much easier to develop in an environment that is as similar to the production environment as possible. On that basis alone, I would go with Linux over FreeBSD for what you have detailed as ...


1

the debugging features provided by gdb are based on the set of symbols that comes with your compiled code. Actually there isn't a debug version available for the STL, but there are at least 2 portings that can add debug symbols to your code: http://www.stlport.org/ http://code.google.com/p/stl-debug/ gdb without debugging symbols is useless, so you have ...


1

the \ is the default <leader> key, used to prefix commands. You have to type the entire cvim command pretty quickly, otherwise it times out and thinks you want to type something. Press \, then type the rest of the cvim command. For instance, the \ct command should insert the current date & time into your document. No, I don't use this plugin. Good ...



Only top voted, non community-wiki answers of a minimum length are eligible