The rails gem better provides a nice interface to debug rails web applications. Clicking on file names should open your preferred text editor e.g. TextMate. With Sublime however, nothing happens.
How is it possible to register a url scheme handler for subl:// ?
Had the same problem. After some searching I found the subl-handler on github.
You need to setup your sublime so you can use the subl-command in your terminal. Look for this guide.
Installing solved the problem.
Related
I am trying to customize the default UI of open edX. But I am not getting far enough. I am new to this. I am getting confused reading the docs. In the documentation it is telling me to place my theme in the '/opt/bitnami/edx/var/themes/edx-platform' directory. But there is not any such directory. So should I make my own directory in the default location of my remote server? Again I found a directory that has path like this '/opt/bitnami/edx/app/edxapp/edx-platform/themes'. So do I put my custom theme here or create my own directory? Also can anyone provide me clear steps which I can follow. Thanks in advance!
I think Open edX documentation is very clear, relevant, and concise. Of course, we can argue but that's how I feel.
Its not a good idea to make changes in '/opt/bitnami/edx/app/edxapp/edx-platform/themes'.
Use the comprehensive theming method for custom themeing, you can find more here.
First, you need to develop your own theme, theme development guide here.
Thene make these changes to your 'lms.yml' and 'studio.yml' in '/opt/bitnami/edx/etc/'.
COMPREHENSIVE_THEME_DIRS:
- /path/to/edx-platform/themes
ENABLE_COMPREHENSIVE_THEMING: true,
DEFAULT_SITE_THEME: 'your theme name'
And restart the LMS, CMS service, and compile assets.
You can use open edX native installations also. More info here.
I am working on a NopCommerce website and have quite a bit of site-wide customization so I have created a plugin to handle it all but not sure on how to handle the localization. I see there are a couple of ways of updating the Localization strings, one way I have found is in the Plugin's Install() method:
this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalStandard.Fields.AdditionalFee", "Additional fee");
This looks like it only adds new resource strings for the plugin, is there a similar way to update the other resources via the Install() method like:
Admin.Catalog.Products.List.DownloadPDF
I found that there is a way to export the entire language to a language_pack.xml file, would it be better to just create an entire language pack instead? Is there a way to add a new language pack from the plugins Install() method?
I guess I could simply open the language_pack.xml file and add each resource found using the AddOrUpdatePluginLocaleResource, I was hoping that there was a built-in way of doing this using NopCommernce functionality.
Thanks!
As #Raphael suggested in a comment, provide a language pack along with plugin file to the end users, and give an option to upload required resource file within your plugin configuration page.
As per as I know, there is no inbuilt way to add language pack on plugin installation, but you can do some code on plugin install method to find language pack file(s) from plugin folder and install it, not quite sure, you can take reference of inbuilt methods.
I came upon this problem before, but only now it really renders awesome desktop manager useless.
I was searching how to connect to Wifi with awesome. Found Gigamo Wifi Widget. Cool, how do I eat it?
The awesome wiki entry on widgets does not really answer this question.
I know my question is very stupid and the answer is somewhere in the documentation but I have no idea how to read it. How and where do I add widgets I find on the Net to my awesome lua files?
EDIT:
when searching where is the rc.lua file henfiber mentioned, I came upon Archlinux wiki on Awesome, which put most important things in one page.
You can always use NetworkManager which is available for installation in most official repos. It contains an applet which creates an icon at your system tray. You can launch the applet at start-up, placing this line in your rc.lua file:
awful.util.spawn("nm-applet")
or you can start it manually from your terminal, writing:
$ nm-applet &
Then you can left-click at the NetworkManager Applet icon at the system tray and select from the list of available wifi access points. Additionally, the Network manager applet allows you to perform more advanced functions, like connecting to VPN.
Also, it is quite easy to use 3rd-party widgets you find in the wiki or in github. It requires these steps:
Download the widget .lua file - let's say it is called
cool_widget.lua
move it in ~/.config/awesome/ so it is :
~/.config/awesome/cool_widget.lua
An alternative is to use the structure
~/.config/awesome/cool_widget/init.lua
it is better when your widget requires more than one files.
Load the widget at the top of your rc.lua file:
cool_widget = require("cool_widget")
Add the widget in a wibox (toolbar) in the same way you add built-in
ones
I have a Rails 3 installation running on a remote development server. Is it possible to make the exception lines clickable and open in an editor like textmate on my local maschine? I would save a lot of time if I did not have to manually open textmate, find file and line number.
NoMethodError in Arts#index
Showing /home/demo1/app/widgets/art_widgets/list/display.html.erb where line #9 raised:
Best regards.
Asbjørn Morell
Just found a great plugin that does exactly this! rails-stacktrace-textmate-linker-greasemonkey-script
Install greasemonkey from here: http://addons.mozilla.org/en-US/firefox/addon/748
Install rails-stacktrace-textmate-linker by clicking the link in the install section: https://github.com/ryankshaw/rails-stacktrace-textmate-linker-greasemonkey-script This will load the greasemonkey-script.
Go to Add-ons -> User Scripts -> Right click the Rails Stacktrace Linker and click edit.
Edit line 37 and 49. You will need to add the path to your rails Application.
... href='txmt://open?url=file:///Users/atmorell/Dropbox/MorellusWallace/", ...
Reload your application in firefox and enjoy nice clickable stacktrace that opens in textmate :)
WINNING!
Not in a simple way.
You'd need a software running in the background that would interpret the exception page to put links in it, and then open the software, file and find the line specified. As far as I know, there's no first-party solution.
I also wanted textmate link(txmt://) in Rails Error Page. But until now no success.
rails-footnotes has similar feature. It insert txmt link to every page. But not in Error page.
someone on rails-talk mailing list asked same question. and said merb had that feature.
Adding the rails footnotes gem will give you clickable file references in your application trace.
https://github.com/josevalim/rails-footnotes
I found this gem slowed my dev environment down a little so disabled it's main functionality, I only needed it purely for the clickable file references. You can do this by adding the following line in the .rails_footnotes file in the root of your app.
Footnotes::Filter.notes = []
I'm working on a Sproutcore UI for a project called "BWUnit". When using sc-gen to create models, etc it converts "BWUnit" to "BwUnit" in the generated files. Is there a way to prevent this from happening so I don't have to manually edit the files, replacing "BwUnit" with "BWUnit"?
so SproutCore unfortunately doesn't support what you want out of the box. This is their naming convention: http://wiki.sproutcore.com/w/page/27759680/FiedNotes-Suggestions%20on%20running%20the%20Sproutcore%20framework%20on%20a%20Windows%20(7)%20computer%20using%20a%20specific
If you are brave, however, you can edit the built tools and change the behavior of how the project and app names are prepared:
https://github.com/sproutcore/abbot/blob/master/lib/sproutcore/models/generator.rb#L462
If this is a feature you want and need, please open an issue here:
https://github.com/sproutcore/sproutcore/issues
Cheers,
Johannes