Is it possible to set hotkey for specific file types in vim.
For example, if I am editing a .java file, I'd like vim to run javac .java when I press 5.
Is this possible?
Hi,
My webhost offers two different types of high availability options for dedicated servers:
Redundant hard disks (RAID1)
Redundant hard disks (RAID1) plus redundant power supply
How common is a power supply failure in comparison to hard disk failure? I know it's not possible to know the exact figures without knowing the exact hardware, but ballpark figures are good enough for me at the moment.
Thanks,
Adrian
Hi there. In OS X 10.6, Finder usually looks something like this:
The Finder window looks like that when you double-click on most folders or drives. However, whenever I mount a Truecrypt Volume and double-click that, it looks like this:
Is there any way to default to the first view option for all types of folders? I tried view options in Finder, but it didn't seem to work.
After updating MacOS to 10.6.3 the arrow keys do not work in MC anymore - instead of moving cursor it types, for instance, B for down key, C for right key. Although, if I quit MC and try it in terminal, then it works.
Has anyone experienced this problem? Is there any solution for this?
I have a directory like this
mkdir test
cd test
touch file{0,1}.txt otherfile{0,1}.txt stuff{0,1}.txt
I want to run some command such as ls on certain types of files in the directory and have the * (glob) expand to all possibilities for the filename.
echo 'file otherfile' | tr ' ' '\n' | xargs -I % ls %*.txt
This command does not expand the glob and tries to look for the literal 'file*.txt'
How do I write a similar command that expands the globs?
(I want to use xargs so the command can be run in parallel)
In using i see 2 types of code
#!/usr/bin/sh
and
#!/user/bin/bash
I have Googled this and the opinions vary a lot. The explanation I have seen on most websites is that sh is older than bash, and that there is no real difference.
Does someone know the difference between these and can give a practical example when to use either one of them.
I highly doubt that there is no real difference, because then having to things that do the exact same thing would be just
On Windows XP, you could go to Folder Options - File Types, select PNG, create a new action, such as this
Action: Crush
Application: "F:\Programs\PNGCrush\crush.bat" "%1"
So you can right click on a .png file and select Crush.
How do you do this on Windows 7? I assume through regedit or .reg file, but how?
EDIT: Thank you for all your replies... but I'd like to avoid "Open With" or 3rd party program if possible.
Somehow in trying to cleanup my computer's hard drive, I have inadvertently corrupted WordPad, which I have long used for viewing many types of files, including logs (i.e., log4j). Now when I right click one of these files and choose "open with" & WordPad, I get an error (fn is not a valid Win32 application). I've researched this issue, tried reinstalling wordpad.exe; bbut I still get the same error. Any suggestions would be appreciated.
Hello everyone,
I am using SharePoint Server Enterprise 2007 with Windows Server 2008 Enterprise. I have a site collection which is using 3 types of sites publishing portal/wiki/blog. I want to move the template (e.g. master pages) and data from one server to another. Server domain names and IP address are different.
What is the suggested way to do this task?
thanks in advance,
George
Right now, when I right-click on a PNG or JPG, I get the Edit context menu which takes me to MSPaint. How can I associate the Paint.NET with the Edit menu?
I've tried Tools/Folder Options/File Types, but I don't really see anything there.
I have VNS server running on MAC.
When i try to use VNC viewer , it says no matching security types.
Is there any other software which can coonect mac like RDP
I had an old site that was built with ASP, the homepage url looked like this "www.hifimaven.com/index.asp". But now the new site is built on top of RubyOnRails using nginx. and the new url to the homepage "www.hifimaven.com".
How can I tell nginx to redirect to the new homepage url if the user types the old url instead of showing a 404 page.
For SEO purposes, I need someone to modify my .htaccess file.
Here's what I need to do:
current URL: http://www.abc.com/index.php?page=show_type&ord=1
to
new URL: http://www.abc.com/amazing
Please note that that if someone types in http://www.abc.com/amazing, they must be served content from the current URL, but the new URL must stay in the address bar. I tried this and it didn't seem to work
RewriteEngine On
RewriteRule ^/?amazing/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/ /index.php?page=show_type&ord=1
I am listing a couple of stuff that I want people to download for my school and remembered that some sites had directory browsing done with cool little icons displaying the file types. I wanted to do this myself and felt that the default directory browsing of apache is just too plain and IndexOptions +FancyIndexing is a bit 'old'. Any nice jQuery based Web 2.0ish stuff out there for this particular purpose. The files are .debs, .exes, .iso, .zip etc. Thanks!
Hello,
I have a Windows 2008 Server running the File Server Role and I would like to use mount points for my volumes instead of drive letters. However, I need to use the quota and file screening features of File Server Resource Manager, and it seems that they do not apply correctly to mount point folders. I am able to upload oversized files and excluded file types without any warnings.
Could someone help me with a fix or workaround for this issue?
Thanks,
Jamie
Is there a script that will show memory usage as a graph, for example as a pie-chart, with each process being being a separate slice?
I'm not looking for something like Munin to graph memory usage over time, but rather show the memory usage per-process at a single point in time.
To make my request even more obscure, it is for a headless server (so no X applications). The simplest way would be to write a PNG file, or possibly an HTML file (which could use Javascript to allow the filtering of processes, changing between graph-types and so on)
In Windows XP we can search for files witch contains a defined keyword (inside all files types)
Windows 7 can look inside files for a keywords, okay, but only for text files. (*.doc,*.txt, *.inf, ...), not (*.conf, *.dat, *.*, ...)
Microsoft search filters don't contain any filter I can use for this.
Any idea?
I recently uninstalled GIMP on my Vista laptop, but there is still an Open with GIMP option on the context menu for most image file types, like JPEG and PNG. Clicking this option results in an error dialog.
Is there any way to remove it?
Since Exchange doesn't provide support for all calendar types in OWA, I need to create one, using Microsoft.Net's support of calendars, but where should I start?
I've recently discovered Shinken, which a new implementation of Nagios using python. Shinken "divides" Nagios in 5 different types of agents, each one performing separated tasks. I haven't tried it yet but for what I've seen the whole architecture idea seems great to me (it works the Unix way: one process, one task), but the project seems a little "green" yet.
So, has anyone tried Shinken? What's your opinion?
What exactly are in the packets that are sent via the ping command?
I was reading a Wikipedia article about magic numbers and saw this:
DHCP packets use a "magic cookie" value of '63 82 53 63' at the start of the options section of the packet. This value is included in all DHCP packet types.
so what else is in the packets?
I am using OSX 10.6 and want to have content searches in finder for the source code types i use. This suggests a (10.4 only?) solution, but although i have the developer tools installed i don't have /Library/Spotlight/SourceCode.mdimporter.
Is there a different procedure for Snow Leopard or did i miss something?
Hello everyone
I'm looking for a tool for linux which can segment a video file into multiple small .ts files. I know one for Mac OS X called media file segmenter which is a simple command line tool. I really appreciate if anyone can point me to an equivalent linux tool.
I don't know if these types of non-programming questions are allowed on this site. my apologies for that.
I want to embed my network connectivity application into a linux installed rack-mount server and sell it bundled. I googled some but couldn't figured out which it would be?
Do you have any experiences with these types of hardware and recommend some?
After updating Mac OS X to 10.6.3 the arrow keys do not work in MC anymore - instead of moving the cursor it types, for instance, B for down key, C for right key. Although, if I quit MC and try it in terminal, it works.
Has anyone experienced this problem? Is there any solution for this?