similar to: autolog: easily debug-like logging on the fly in your Rails app

Displaying 20 results from an estimated 500 matches similar to: "autolog: easily debug-like logging on the fly in your Rails app"

2012 Oct 17
2
autolog: set_trace_func without all the typing
If it helps anyone developing Rails, apps, or gems, I wrote a shortcut for set_trace_func, so next time you want to just add a line before and after some function you are trying to debug you can have Ruby temporarily output every line, method, etc. executed. Also, it lets you define the format, use other loggers, etc. via a proc/lambda define, since you might not like the default format.
2012 Sep 18
4
"best practices" for Rails serving RESTful JSON services for use by AngularJS, Ember.js, etc.
I''ve been writing a gem to implement and extend common controller functionality so that Rails can be used with Javascript frameworks like AngularJS (which we are using), Ember.js, etc. in such a way that the user doesn''t have to tweak a a bunch of rails g controller boilerplate code to provide services for use in these frameworks that in turn would require various changes to
2013 May 22
2
Creating nested hash from nested active record results
Hello, I''m trying to find a very abstract and "one size fits all" for converting nested active record results to nested hashes. It''s easy, to do one level deep as such: [code] results_to_hash = Hash[ found_categories.map{ |c| [c.id, c.title]}] [/code] But, when I try to add another collection to the mix, it completely borks and the results_to_hash only returns an
2010 Mar 23
1
:has_many and :controller specified in routes.rb
Have an app using older version of Rails (2.3.2) that I need some routing assistance with if anyone has a minute. The app was originally designed to be purely html view, and an xml and json api was hacked on. To keep it clean, we are now moving the first version of the api (v1) under its own directory (v1) under app/ controllers but still responding to the old paths. One of the parts of the new
2008 Sep 12
1
SCCP - max lines per phone limit
I'm setting up a 7921 and now want to add a second line to the phone. In my SCCP.conf file I have: autologin = 235,299 However, on reloading SCCP the phone fails to login to the second line with this error: [Sep 12 12:46:49] WARNING[12224]: sccp_actions.c:185 sccp_handle_register: SEP001BD457F8B1: Failed to autolog into 299: Max available lines phone limit reached 299 Is there a
2012 Sep 19
7
Renaming Journey and avoiding libraries with common noun names
Hi all, I know this is a long shot, but could renaming the "Journey" module please be considered by those in a position to support it? I''ve written an issue on this in the journey repo also: https://github.com/rails/journey/issues/49 Essentially our project has a model named Journey, the same as Rails 3.2''s new routing driver. As a consequence we can no longer
2012 Oct 01
12
Can I have Ruby on Rails without json
Hello, On my Chakra linux machine the json gem would not get compiled, I already made a issue for that. But for continuing my project can I have ruby on rails without the json gem ? And if so, how can I do this ? Roelof -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2013 Oct 02
2
Problem with squid+ntlm+samba
Hello, I'm having a little problem after logging into domain via samba, after a few minutes the squid no longer authenticates the users through single sign on and keeps asking for authentication in the browser without stopping. below is my settings and error logs. smb.conf [global]workgroup = SALEnetbios name = utmadmserver string = PROXY SERVERload printers = nolog file =
2006 Jul 05
2
Rails debugging - a (slightly) better approach?
Hi all, First up hello everybody, I''m new to this forum. I am also new to Ruby and Rails. One thing that struck me as very inconvenient for someone just learning the Rails ropes is that (apart from Arachno and Komodo, which at the moment I cannot afford - and don''t particularly like) there is no reasonable debugging support for Rails. I know about breakpointer which - while
2012 Dec 21
5
Security Expose: Assume folks have seen this -
http://www.reddit.com/r/netsec/comments/158g8s/hijacking_ruby_on_rails_apps_through_exposed/ FYI -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options,
2004 Apr 20
1
A question on idletimeout for OpenSSH
Hello.. I would like to know if there is a keyword in OpenSSH analogous to IdleTimeout for SSH1. Is there the ability to configure an idle timeout in OpenSSH? Thanks in advance for your response Amba Giri Symbol Technologies, San Jose P: 408-528-2721 E:agiri at sj.symbol.com Symbol. The Enterprise Mobility Company.
2009 May 27
0
idle timeouts
I need to implement idle timeouts, based on user input. Our users connect through a gateway host to access other machines. Using the "autolog" package on the gateway seems to work fine for shell sessions. Keyboard input from users updates the utmp file on the gateway. However, we have users who use port forwarding to run GUI apps such as VNC. User input from these apps don't
2003 Jun 25
0
Rcmd SHLIB on Windows
Hi all, I would like to preform an autologistic regression analysis on my thesis data. This is a form of logistic regression that accounts for spatial autocorrelation within and between predictor variables. To this end I have received some script from Dr. Fred Huffer which will allow for the analysis in R. It consists of an R script (autolog.R) that calls a compiled Fortran script (combo.o).
2016 Feb 25
0
tinc - logging
Hi How do I enable logging in tincd to autolog to syslog file. I know how to run it from runtime by using this command. tincd -n mynet --logfile=/var/log/tinc.mynet.log But how do I include in startup script? This is the default startup script which was created and I believe it reads the "nets.boot" file. "Output Omitted" root at ubuntusrv:~# cat /etc/init.d/tinc #!
2013 Apr 02
10
Suggested strategies for testing a gem against Rails 3.x and Rails 4?
I''ve seen a few examples of dummy Rails apps (for testing, so they live under test or spec dirs, typically) for use with the Appraisals gem that supposedly work with both Rails 3.x and Rails 4, but they seem hackish and not fully functional. It is somewhat expected, as it is a stripped down Frankenstein monster that is trying to be compatible with various versions of Rails 3 as well
2012 Sep 28
1
How to Include Associations in #as_json
Hi, Does anyone know how to include nested associations when overriding a model''s #as_json method? Below is my attempt to include direct and nested associations. NOTE: "office" is a direct association, "company" is nested association via "office". I''d like both included in the generated json output. def as_json(options={}) super(:include
2012 Oct 01
1
active_model_serializers, more than one level deep of associations, specifying serializers per association
I am assuming this an appropriate place to discuss this, but if it isn''t my apologies- just let me know. Just a Rails 4-ish thing. Am attempting to pull AMS (active_model_serializers), strong_parameters, and the "permitter" strategy that Adam Hawkins is using: http://broadcastingadam.com/2012/07/parameter_authorization_in_rails_apis/ Code so far is here (in the
2004 Oct 07
5
'with' usage question
Default arguments are evaluated in the function frame, not in the calling environment (nor in the same place as explicit arguments). > Which to me reads that a with statement as above is equivalent to > > > attach(data) ; aov.SS1(y=Obs) ; detach(data) > > Or is that just wishful thinking?? The latter. On Thu, 7 Oct 2004, RenE J.V. Bertin wrote: > Hello, > >
2006 Oct 13
4
Broken installation of mongrel 0.3.13.4 on Sun OS 5.9
Hi, Anyone succeeded in installing Mongrel on Sun Solaris? It looks like the installation is broken. I have started using Mongrel recently and not sure where to look when something is missing. First the file http11.so was not installed in /usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib I''ve resolved that and when tried to start mongrel from the command line I received the
2012 Mar 08
0
Safari Version 5.1.3 (7534.53.10) Browser problem --- removing cookie on OS X Lion 10.7.3 (11D50b) when still valid
Hi All, Hope this note helps the newbies to Rails As I''m new to Rails, I''d like to share how I tracked down Safari''s dropping of my cookie. My Applebug no: 11003492 registered 7 March/2012 My development platform: MacPro running rails 3.1.1 on OS X Lion 10.7.3 (11D50b) Problem: Firefox worked as programmed but switching to Safari my current_user_token kept in the