Edit Mimetypes.rdf - delphi

Are there any sources out there that show how to add an entry to the Mimetypes.rdf file that firefox uses. I want to associate a mime-type with my app that I have written in delphi and thought this would be the easiest way to do this.
Thanks,
Gail

No, the best way to do this is to register with the operating system and Firefox will pick that up.

Related

How to know which file an ActiveX wanted to find?

I have an ActiveX which seems to look for a file when starting. The problem is that the error doesn't give me any clue about which file it cannot access.
The msgbox is : The system cannot find the file specified
How can I know which file it wanted to access? Which tool can I use to know that?
Thanks
You can use Process Monitor from Sysinternals/Microsoft.

Easy way to find a view file in rails?

I develop rails applications with my designer who has minimum knowledge about rails.
She works on Windows through file-sharing from a Linux server.
She always has hard time finding view files to work on.
I usually use 'grep' to find a view file.
But she can't.
If you have a good suggestion, please share with me.
I have an idea which may be overkill.
Is there a way to automatically add comments around view files (including layouts and partials?) in html file?
Like this:
<!--Starting app/views/some_dir/some_file.html.erb-->
HTML here...
<!--Ending app/views/some_dir/some_file.html.erb-->
This way, my designer can find the file very easily.
Of course, this should be automatic and development environment only.
Thanks.
Sam
I use the Rails Footnotes gem (https://github.com/josevalim/rails-footnotes) in some of my projects which allows me to click a link in the footer of my app that opens the current view (also shows partials) in TextMate. Not sure if it could be customised to work with a Windows text editor but you could look at the URL to work out the file name.
I.e to open a file in MacVim, it creates the following link:
mvim://open?url=file:///Users/steveholt/Sites/foo/app/views/projects/log.html.haml
and for TextMate:
txmt://open?url=file:///Users/steveholt/Sites/foo/app/views/projects/log.html.haml

How Can I Automatically Execute A Link In Internet Explorer

I am trying to create an application to print documents over the web. I have created my document, and made a web page with a meta refresh tag, along the lines of this:
<meta http-equiv="refresh" content="3;http://example.com/download.epl2" />
I specify that the document has a content-type of application/x-epl2, and I have associated .epl2 files on my computer with a program that silently sends them to the printer.
I have put the website into my trusted sites zone.
Currently Internet Explorer pops up the "Open, Save, Cancel" dialog box with no option to automatically open the file.
Is there a setting in IE6/7/8 that I can use to have IE just open the file without prompting?
EDIT
The actual content of the file will differ based on the job, but essentially it is text that follows the Eltron Programming Language.
EDIT
I have accomplished this in both Chrome and Firefox by choosing "Automatically Open Files Of This Type From Now On"
EDIT
The machines this program will be used on will effectively be kiosks that are limited to only accessing my website from their web browsers, so I'm not worried about rogue websites sending documents to my printers.
EDIT
I am using PHP to generate the documents and HTML on the server side, though I expect the solution to be language agnostic.
I would expect that not to be possible, because then you could stumble onto a site that automatically loads and prints a 5000 page document or something, which would not be good.
If you always had a secret desire to develop a custom URL protocol (I know I do), this might be a good excuse to do it. ;-)
http://msdn.microsoft.com/en-us/library/aa767914%28VS.85%29.aspx
There are 1-2 prompts when opening such a link for the first time in IE, but you can choose to automatically open them after that.
I would use javascript to make this happen.
Javascript Window Open
EDIT
Since you have control of the windows box you could use an automate script process to interact with the print window.
autoit3: ControlClick
Write a small utility program that does nothing but send the file passed to it on the command-line to the default system printer.
Then, edit the registry under HKEY_CLASSES_ROOT to associate this program with the .epl2 filetype.
I don't have time to investigate it for You, but there were lots of exploits that could be helpful. Using ie6 without certain fixes seems helpful.
Also there should be an option called "Automatic prompting for file downloads". I use Linux nowadays so I can't chceck if it helps. I found it in some docs.
I'm on a Mac at the moment, but if this is possible in IE I would imagine this page holds the answer to it (or at least hints at it) http://support.microsoft.com/kb/883255
I believe what you're looking for is a setting in Windows, not IE:
Microsoft Support: Not Prompted to Specify Download Folder for File
Try using an older version of IE. Security was looser in the older versions and since it's a non-issue, this could be the quickest solution.

File System access from Firefox Extension

Is it possbile to create a firefox extendsion to write to files in a windows file system ?
Yes, see this page for examples.
Edit
XPCOM and so nsIFile are now legacy technologies :
Use of OS.File is preferred over the examples in this article. Only use these legacy interfaces if OS.File is not available to you.
You can find the new way to go here

XHTML/CSS editor for Windows with "FTP upload on save" function

Is there a non-bloated editor with this function?
THe Zeus editor has seamless ftp/sftp editing.
The file is not uploaded on save, but rather the file is loaded directly from the server and on save it is written back to the server
Try Notepad++ with the FTP_synchronize extension. It's small, fast and a pleasure to use. And it's both free and Free.
As I remember, WeBuilder has such a feature.
What I use for simple HTML, that has this feature, is EditPlus3. Whilst it is shareware, it's an excellent piece of software for hassle-free, non-bloated editing.
PhpED from NuSphere.
Not really an HTML editor. Not really small. But I really like it.
I feel your pain. What I like is to browse a remote FTP tree and edit the files as if they were local. You press CONTROL-S and it uploads your temp file. Seems simple, and lots of applications let you keep a list of files open in FTP.
If non-free is ok, Dreamweaver is actually a fantastic tool: just turn all the WYSIWYG stuff off and it's a beautiful and polished editor.
Otherwise, the kinda ageing and free HTML-Kit Build 292 does a pretty serviceable job.
http://www.htmlkit.com/download/
[www.blumentals.net/webuilder/][1]
[1]: http://www.blumentals.net/webuilder/ does exactly this.

Resources