Which is the "One-Click Ruby Installer"? - ruby-on-rails

I have a hard time reading open source file download pages like this http://rubyforge.org/frs/?group_id=167 . I click the "One-Click Ruby Installer" link on this page http://wiki.rubyonrails.org/getting-started/installation/windows and it takes me there.
I understand most of it like the versions for mac, win and source, version numbers etc. But I just don't know which is the actual one click installer. This is something I've always overlooked with pages like this and I usually just gestimate which I needed. This process is really intimidating.
Which of the many links is the "One-Click Ruby Installer"?
Can you offer any advice on reading pages like these?

I usually have trouble locating the right download to sometimes, best to just try and find the actual home page and go from there.
http://rubyinstaller.org/downloads/
This is the web page for the Ruby Installer, there's three links right at the top that are for the most recent versions of the installer.
Edit: With regards to the gems+rails you have to install them individually after you install ruby. Depending on the gem you may need to download and install the development kit which is also on the page I linked above. The install for that is simple you just need to copy the files into the folder you installed rails.

Here's the correct link:
http://rubyforge.org/frs/download.php/71078/rubyinstaller-1.9.1-p378.exe
It was the last link under "Final" in the first list. If you look at the section to the right, you can see the file type and the intended OS. The last link in a section of the list is the newest.

Related

Embed PDF in a website, allow user to modify editable fields in PDF, and save back to the server

I am writing a Program in Rub On Rails 4.x and I have to take PDF files with defined fields that can be filled out, fill in data from a form submission(This part is DONE!), and lastly allow the user to modify the saved PDF file on the server and overwrite said PDF after making their modifications.
Like I said I have already gotten the PDF files filled out with what has been submitted in the form through pdftk . What I now need to do is provide a server side editing capability to the said PDF files on server generated from the first step of the process.
I have seen similar posts but none wanting to do the same thing I do. If I am wrong links would be great. Thanks in advance for all your help!
After lots of digging and research here is what I have found to be the facts surrounding this issue and implementing a program to allow embedding the PDF file, editing it, and saving it back to the server. This process would be great however from what I can tell there is nothing out there that really does this for Ruby On Rails. To quote #Nick Veys
Seems like you need to find a Javascript PDF editor you can load your PDF into, allow the user to modify it, and ultimately submit it back to the server. Seems like they exist, here's one for ASP projects
You are correct but still wrong in the sense that yes there is one for ASP projects however that is Microsoft Based, yes I know that it can run on Linux environments through Mono. However to the point it would appear in this instance that a Ruby On Rails specific solution is indeed needed.
The solution that we have come up with is as follows
1. Use a PDF editing package in the linux repositories like PDFtk
2. You then render a page with the PDF embeded on one side and a form representing the live fields in the PDF to take input.
3. Once submitted you use PDFtk to write the values into a new template PDF file and overwrite what was previously stored.
This requires a few additional steps to process the data than I really care for myself. However it is the best solution that our team could come up with, without bleeding the project budget dry for just 1 piece of functionality.
I hope this helps anyone else looking to do the same thing in Ruby On Rails.
I have done something like this using my company's .NET product. It can also be done using its Java version too.
http://www.gnostice.com/nl_article.asp?id=255&t=Save_Form_Submit_Data_Back_To_Original_PDF_Document_In_NET

RubyMine searching with find usages

I have just bought a license to use Ruby Mine and am really struggling to learn how to use it. I keep having to go back to Text Mate to do simple things like searching.
I'm trying to find where i have defined a css div (called "category title"). From what I can gather, I need to use 'Find Usages' in Ruby Mine. Most times when I go to the edit/find menu, 'find usages' is greyed out. Then, if I click on the uppermost 'app' folder, and click find usages, it searches for 'app'. It doesn't recognise the search in the search bar. If i type the div name in the code and click alt/F7, it gives me a typo warning rather than a search option.
Does anyone know how to search the entire app (not just the specific file of the app) in RubyMine? I'm finding this incredibly frustrating.
Thank you
The command you need is Find in Path which will search your entire project, set of projects if they are open together, a specific director, etc. It has a bunch of options, including a regex search. For Mac, it is Command+Shift+f, for windows Ctrl+Shift+f
Checkout this site for keyboard reference.
https://www.jetbrains.com/ruby/documentation/index.html
You might also try shift+shift which is search everywhere, files, classes, symbols.

OpenLayers that is not minified?

I'm trying to find an OpenLayers3.js file that is not minifed, it is a pain debugging stuff that is minified, can anyone help me find it?
Im using this address now: http://openlayers.org/en/v3.0.0/build/ol.js
By the way, it is a special thingy at the top. See the website: http://ol3.js.org/ ? Made me laugh.
Help?
If you need the unminified ol, you can use the one from ol:
http://openlayers.org/en/v3.0.0/build/ol-debug.js
It's a file of 3.5M so don't use this in production ;)
Have you tried the Download link on the main page?
https://github.com/openlayers/ol3/releases/download/v3.0.0/v3.0.0.zip
If you want a hosted version, upload one here:
https://cdnjs.com
Yes, http://openlayers.org/en/v3.0.0/examples/loader.js will load all the raw files -- basically by writing out a bunch of script tags. As #lexicore has already said, you can get the source from github, though this involves setting up nodejs locally to run (which actually isn't that painful, but more so than just debugging from a hosted source). Take a look at package.json to get a feel for how much has gone into OpenLayers 3.
If you go to the OpenLayers 3 examples, for example animation, change production to development in the drop down, and then do view source, you will get the link above. You can also see all the raw js files in the Javascript console.
EDIT: I put some instructions, following the official OL dev page, on how to build/run locally, which will also get you the unminified OL source code

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

Install Search Engine plugin to FireFox from Extension

I am developing a Firefox extension. I would like to install new search plugin to the firefox search bar. I tried 2 ways, but none of them seems to work 100%.
AddSearchEngineProvider works,
but it displays "fail to install
message" if the the search engine
with the same name already exist. I
dont see any API that enables me to
query existing search engines.
In Mozilla Firefox\searchplugins
I see xml files that represent the
actual search plugins. I was able to
add my search engine manually, but I
dont really know how to add the xml
file during the installation. I have
XPI file, which has very limited
abilities to access IO.
Any suggestions? Thanks.
Search engines should be put into the searchplugins/ directory of your extension. They will be added automatically when your extension is installed - and removed again when it is uninstalled. See https://developer.mozilla.org/en/Bundles.

Resources