Comments for TangoRangers.com's Blog https://blog.tangorangers.com Misc crap and such Sun, 01 Mar 2015 16:52:14 +0000 hourly 1 https://wordpress.org/?v=6.4.3 Comment on How to use Redmine when your Ruby is too new by DaijoubuKun https://blog.tangorangers.com/2011/12/how-to-use-redmine-when-your-ruby-is-too-new/comment-page-1/#comment-10384 Sun, 01 Mar 2015 16:52:14 +0000 http://blog.tangorangers.com/?p=334#comment-10384 In reply to RedmineLover.

Thank you so much for commenting. I see some things didn’t come in correctly, like the Directory tag is missing in step 7. Sorry.

This is an old post, and unfortunately, I don’t think it is very relevant anymore. A while ago I found an amazing article written about how to use RVM. I like using RVM because it is much easier to keep my redmine install up to date with the latest ruby/rails and what not. Plus, I don’t often use sudo to install gems, so it is nice there too.

Check it out over at: http://martin-denizet.com/install-redmine-2-5-x-with-git-and-subversion-on-debian-with-apache2-rvm-and-passenger/

It is a very well written and easy to follow page. There were a few missing steps, and it was hard to get working in Slackware due to some missing perl libraries, but in Debian it was a breeze.

I’m planning on moving my redmine installation soon, so this post will get rewritten. It will be based off this other article, and I’ll include some of the missing information and things to clarify setup a little bit more.

Thanks again for the comment, good to see people actually read this. I hope the link provided will give people more help than I was able to here.

-DaijoubuKun

]]>
Comment on How to use Redmine when your Ruby is too new by RedmineLover https://blog.tangorangers.com/2011/12/how-to-use-redmine-when-your-ruby-is-too-new/comment-page-1/#comment-10380 Mon, 23 Feb 2015 20:24:55 +0000 http://blog.tangorangers.com/?p=334#comment-10380 I just wanted to give you a heads up on a couple items.

1. The website at the top doesn’t work anymore. https://rvm.beginrescueend.com/rvm/install/
2. The bash script to install doesn’t do anything. I used wget to get the file, then ran it with “bash rvm-installer”
3. I would install ruby 1.9.3 (or maybe newer, since 1.9.3 is not being updated anymore)
4. With redmine having bundle installers, I would skip the gems and just jump right into gem install bundler, then bundler install based on the steps from the redmine installer page.
5. “Uncomment NV[‘RAILS_ENV’] ||= ‘production’ in config/environment.rb” I couldn’t find this line.
6. Under Install Passenger. “wget http://rubyforge.org/frs/download.php/75548/passenger-3.0.11.tar.gz” failed, connection refused. I used http://s3.amazonaws.com/phusion-passenger/releases/passenger-4.0.59.tar.gz.
Then “./passenger-4.0.59/bin/passenger-install-apache2-module”
I would note that you should do this as the redmine user, and doing so after running the bundler install portion of the redmine setup.
7. Changes to apache config. I added:
LoadModule passenger_module /home/redmine/passenger-4.0.59/buildout/apache2/mod_passenger.so

PassengerRoot /home/redmine/passenger-4.0.59
PassengerDefaultRuby /home/redmine/.rvm/gems/ruby-1.9.3-p551/wrappers/ruby

ServerName redmine.domain.com
ServerAdmin webmaster@domain.com
DocumentRoot /srv/redmine/public/
ErrorLog /srv/redmine/log/redmine_error_log

Options +Indexes +ExecCGI +FollowSymLinks
Require all granted
AllowOverride
Options -MultiViews

PassengerMinInstances 1
RailsEnv production
RailsBaseURI /

I know that’s a lot… sorry.

8. I had to change dispatch.fcgi to dispatch.cgi, and add this line:
require “/home/redmine/passenger-4.0.59/test/stub/vendor_rails/minimal/railties/lib/dispatcher.rb”

Sorry, I know that is a lot to have in a single comment. I like where this started, but things have changed a lot in Redmine over the few years since this was written. I hope this will help others who want to do this. Let me know if you have any questions on this information. Thanks again for the awesome starter info.

]]>
Comment on Using Javascript to hide single/multiple div tags with the same name by panthitsar https://blog.tangorangers.com/2009/03/using-javascript-to-hide-singlemultiple-div-tags-with-the-same-name/comment-page-1/#comment-5746 Thu, 13 Sep 2012 06:57:18 +0000 http://blog.tangorangers.com/?p=104#comment-5746 Thanks alot!!!! Very useful when i need help!!!!!!!
:)

]]>
Comment on Using Javascript to hide single/multiple div tags with the same name Part 2 by Caieta https://blog.tangorangers.com/2009/08/using-javascript-to-hide-singlemultiple-div-tags-with-the-same-name-part-2/comment-page-1/#comment-5745 Sat, 14 Jul 2012 20:11:55 +0000 http://blog.tangorangers.com/?p=194#comment-5745 Thank you, this was exactly what I was looking for :)

]]>
Comment on How to use Redmine when your Ruby is too new by DaijoubuKun https://blog.tangorangers.com/2011/12/how-to-use-redmine-when-your-ruby-is-too-new/comment-page-1/#comment-5722 Wed, 14 Dec 2011 02:21:27 +0000 http://blog.tangorangers.com/?p=334#comment-5722 Well that figures, once I finally work out all my typos and such, get this posted, I see that Redmine 1.3.0 is out. Well if you followed this not realizing what was going on, I’m sorry.

If you already followed this before seeing this comment, I have a simple fix. It’s quick and dirty (which is the way I like it).

First, download the new version. You can get 1.2.3 or 1.3.0.

Next, make a backup! Then go to where you extracted redmine and rename it to redmine-1.2.3 or redmine-1.3.0 depending on the version you are upgrading to.

Extract the new tar.gz file. It will overwrite many files, but not the ones you renamed from .example to … well, removed the .example from. The only difference is config/environment.rb. You will still need to uncomment the line listed above.

Rename the redmine folder to redmine/ and change ownership of all files to the redmine user (just like before).

Next, su to the redmine user: su – redmine

If you can not login as the remine user, change your /etc/passwd file! Did you remember from what we did above?

type gem install rails -v=2.3.14 only if you are running Redmine 1.3.0. Otherwise you are all done.

Login to Redmine and go to Administration –> Information. If you do not see the new version listed you need to restart Rails. Try killing the process and then access Redmine. It will fire right back up.

EDIT: I should have read the upgrade information on Redmine’s website. I missed a couple steps: http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

]]>
Comment on ShopSavvy, Compare Everywhere, and SnapTell for Android by DaijoubuKun https://blog.tangorangers.com/2009/10/shopsavvy-compare-everywhere-and-snaptell-for-android/comment-page-1/#comment-5704 Tue, 16 Aug 2011 06:33:09 +0000 http://blog.tangorangers.com/?p=219#comment-5704 Update as of Aug. 16th, 2011. Compare Everywhere no longer appears in my market place. It may be gone. Shop Savvy, my previous favorite, has turned to the dark side. With version 4.5.0 it wants access to your contacts. The about page says this is to pre-populate shipping data. I call BS on it. Until it is fixed, if it ever is, I will go back to SnapTell and one I didn’t mention here (I wrote this a long time ago), barcode scanner.

UPDATE! Aug. 24th, 2001. Shop Savvy has removed the request for contact data as per the request and feedback from many many users. Good job guys! We all appreciate it and look forward to using your product again.

]]>
Comment on Hacking moviebeam by DaijoubuKun https://blog.tangorangers.com/2008/11/hacking-moviebeam/comment-page-1/#comment-5521 Tue, 19 Apr 2011 05:13:55 +0000 http://blog.tangorangers.com/?p=8#comment-5521 In reply to vick.

Unfortunately it seems that the hardware itself can not take any video in, and the antenna is designed for their system and not the current ATSC signals. Your best bet it to either buy a DVR (TiVo, a DVD burner with built in tuner, or something like that) or you can build one out of an old computer.

]]>
Comment on Hacking moviebeam by vick https://blog.tangorangers.com/2008/11/hacking-moviebeam/comment-page-1/#comment-5502 Sun, 17 Apr 2011 22:08:23 +0000 http://blog.tangorangers.com/?p=8#comment-5502 anyone figure out how to use it as dvr?

]]>
Comment on Dynamically add form fields using javascript and DOM with dynamic post method by jcode https://blog.tangorangers.com/2009/05/dynamically-add-form-fields-using-javascript-and-dom-with-dynamic-post-method/comment-page-1/#comment-4916 Wed, 02 Mar 2011 19:13:57 +0000 http://blog.tangorangers.com/?p=120#comment-4916 Hey I was wondering if you could help me out. I am creating a form where people can add more crates to their order by clicking the “add” button. When they click it, I would like it to return my unique_input field. Any thoughts?

Crate

Next Crate (Width x Height x Depth):

function add(type) {

//Create an input type dynamically.
var element = document.createElement("input");

//Assign different attributes to the element.
element.setAttribute("type", type);
element.setAttribute("value", type);
element.setAttribute("name", type);

var foo = document.getElementById("unique_input");

//Append the element in page (in span).
foo.appendChild(element);

}

]]>
Comment on Samba (cifs) through SSH by cynyr https://blog.tangorangers.com/2010/04/samba-cifs-through-ssh/comment-page-1/#comment-3808 Tue, 18 Jan 2011 15:46:04 +0000 http://blog.tangorangers.com/?p=234#comment-3808 add “user” or “users” to the options in your fstab and it should let your users mount it as well.

]]>