What are Rubles and what is their purpose? I am developing using Aptana Studio, when I create a new project it asks if I want to use a template from a Ruble. But I do not know what a Ruble is.
Ruble (a sort of contraction of RUby BundLE) are mostly TextMate bundles (collections of snippets, commands, templates, etc, for various coding languages created for the popular TextMate text editor). While TextMate, itself is a commercial Mac application, the bundles are community contributed and the great number of bundles added to its popularity and then to other editors (e.g. the E editor for Windows) to attempt to replicate their support. Since these require Ruby, they can be a bit more powerful than the Textmate bundles. If you need support for a language not already included as a "bundle" option in Aptana Studio, you can almost certainly download a TextMate bundle and then use the "Convert Textmate Bundle" feature in Aptana (Commands > Bundle Development > Convert TextMate Bundle) to create a new Ruble.
By the way, Aptana stores rubles in a directory called "Aptana Rubles", which you'll find in your user Documents directory (on Mac or Linux) or in your "User" directory (Windows). When you download a Ruble it uses Git to check out to this location, but if you find other Rubles which are not known to Aptana, you can simply add them to this folder to get the same effect.
Note: You will only see the ability to use the Rubles if you are active in an editor provided by Aptana Studio (i.e. if using Eclipse IDE with Aptana Studio plugin, there are non-Aptana editors available where you will be able to see the commands, but not be able to use them). Most of the Aptana-provided editors have the word "Source" in their name (e.g. PHP Source Editor).
Rubles are used to extend functionality of Aptana Studio 3. You can add shortcuts for snippets and other custom commands that you want. You will find a more detailed description of what a ruble is and how to develop rubles here:
http://wiki.appcelerator.org/display/tis/Rubles
They appear to be bundles (directories containing a standardized file structuere, meant to act as a single item) for Aptana Studio. Like this: https://github.com/aptana/ruby.ruble
Related
I am making an extension for both VS2010 and VS2012 that has a toolbar command.
Given the change in icon style between them, I want to provide a separate icon for each.
How do I specify that in .vsct? I assume I might be able to use Condition, but I am not sure if there is already a pre-defined value with VS version.
It seems it is not possible without using an MSI, see "VS Package (VSIX): Having two different toolbar icons for VS2010/VS2012" on MSDN forums.
Ryan Molden (MSFT):
I do not believe you can use VSIX to install or specify target specific resources. VSIX is intended as a very simplistic deployment mechanism, it is in fact just a renamed ZIP file plus an installer with a small amount of logic to process pkgdef files. If you want more complex installs (like laying down different dlls based on your install target) I believe you would need to create an MSI.
im newbie with tk gui programming and i've searched for TK gui builders FOR WINDOWS platform,
the most new program that i've found is "Visual TCL",
but after installing it ON WINDOWS i get a folder full of tcl files...but any exe of the program...
So what i need to do now to run it???
I've readed the readme file and it says something about need to associate the tcl files with the "Wish" application...¿?
i've searched about this "wish" app on google but...nothing.
by the way, if you can recommend me a good gui builder for tk 8.5 (for Ruby, on Windows) then please...
but the question is that i want a powerfull new editor to start with this, that's the reason why i choosed by the moment "Visual TCL" (last updated on 2012), I don't want an old and desfased application for example like "guibuilder" from "active state"...or tkbuilder...
Thankyou for read.
PS: sorry for my english
For windows, install ActiveTcl from http://www.activestate.com/activetcl
You should go for vTcl_1.6.1a1 here..
http://sourceforge.net/projects/vtcl/files/vtcl/1.6.1.a1/
and download the package.
Although it is in .tar.gz , which is a Linux understood package file, you can open it using WinZip. If you've installed WinZip, try opening this file using WinZip (it will ask you to open through its Classic View - click OK) and Extract its contents into your desired folder.
vtcl.tcl file in the root folder is the main file that you need to run.
But before that you should have installed Tcl/Tk latest version some where from ActiveState Tcl. This will automatically associate all .tcl file extensions with Wish Application.
Before clicking vtcl.tcl, go into the folder named lib and open the file tkcon.tcl using any text editor. Replace the line (present in the very 1st if condition)
package require -exact Tk $tcl_version
to
package require Tk $tcl_version
save it and close it.
Now run vtcl.tcl and enjoy using this powerful string based scripting language.
I need to create a custom installer that supports French, German, Spanish, Italian, Polish, Russian, English, chinese (mandarin script), more languages to be added for a .net based application.
This installer also needs to be able to check whether the target system has got adobe installed or not. If the target system doesnt have adobe or is a lower version than required then it should install from the CD. if it does then bypass that step.
The installer also needs to prompt the user to browse to any location on the system to pick up a file which will be place in the installation folder.
The installer also need to register this program in the add remove programs list.
Is there a custom installer that can do all of these tasks or do I need to build an application from scratch for it?
Thoughts... ideas???
Thanks for your time...
Short answer : Yes, all those things can be done, most of them easily.
WiX or NSIS are probably your two best free options. NSIS uses a plugin architecture for most of it's functionality, but the plugins are text-files, so you should have no problems downloading them. However, if your company is "funny" about licensing, then check the relevant licenses for each plugin early on - most are completely free to use, but Legal can fail to understand this sometimes...
Please find below pointers to the relevant sections of the documentation, so you can get it downloaded (I feel your pain by the way!)
Language Support
See Docs
Allow user to select a file and copy it
You will need the InstallOptions plugin. This allows you to create an extra page in your install wizard which can prompt for information. It allows various controls, one of which is a file explorer control (search for FileRequest in the link).
To copy the file, you cannot simply use the File instruction, as that extracts and copies files from the installation media, and will not act on files on the target computer.
Instead, you will need a plugin - e.g. this wrapper around the WinAPI. Alternatively, use the CopyFiles instruction.
Register program in Add/Remove programs
This is standard in both WiX and NSIS.
Detect Adobe is installed.
NSIS has the ability to check if registry keys exist, or named files exist, which are the two normal methods of detecting installed programs.
I need to add a C# solution with examples that would be distributed as part of a software library installer. This solution would have various examples on how to use the product's API.
I want to be able to display a simple "quick start" file explaining how to run the examples when the solution is opened in Visual Studio.
Is there a way to tell Visual Studio to open a specific text file when the solution/project opens?
It sounds like a solution or project template would be the best option. This would let you create an entry in the user's File - New dialog (Similar to 'New Class Library" etc). In VS 2008, these are easier to create - File -> Export Template. The template is just a zip of the project(s) with an xml manifest file you can modify. Part of the manifest schema allows you to specify files to open as HTML or text. The templates can be installed relatively easily as part of a installer package.
Here's more on the general concept:
http://msdn.microsoft.com/en-us/library/6db0hwky.aspx
And schema reference about how to open files in various modes on startup:
http://msdn.microsoft.com/en-us/library/ys81cc94.aspx
If you need to provide more guidance/wizards, consider Guidance Automation Toolkit.
What Will said.
The UI state of the solution (e.g. which files are open for editing) is stored in one of the solution files of which there's supposed to be a separate copy for each user, and which therefore isn't usually checked-in to the shared version control: i.e. not the *.sln file but instead I think the *.suo file (but beware, this is a binary file which won't 'merge').
I don't think it is possible to have a solution file open specific content or even script actions, actually.
Perhaps you could create an MSI setup for your library (if you haven't already) and not deliver a solution with example code, but a project template that is installed by the MSI in the right place to be instantly available as a template in VisualStudio? Then someone can easily do "New Project", select the demonstration template and get a project preset with your example code.
Just make a .bat file (using the VS env) with that calls devenv /useenv yoursolution.sln - this way you can make things a bit fancy if you want to ;)
How can I run my Carpet applications directly from Aptana Studio with RadRails? Setting the shoes.exe as VM/Interpreter won't work.
If you have the file in a Ruby project, you can do the following:
Go to Run -> External Tools -> External Tools...
Create a new tool, name it something (like, say, "Shoes")
Set Location to the Shoes binary, for example, on my system it's C:\Program Files\Common Files\Shoes\0.r1134\shoes.exe
Set Working Directory to ${workspace_loc}${project_loc} (You can change this to fit your needs, but I'd assume the project's base directory is as good a place as any to set as the working directory)
Set Arguments to "${workspace_loc}${resource_path}" The double quotes should be included, otherwise any spaces in your path will muck things up.
That's it. Now you can run it by going to Run -> External Tools -> Shoes, or using the External Tools icon on the toolbar.