search for: hashbang

Displaying 19 results from an estimated 19 matches for "hashbang".

2006 Feb 01
4
Where is the send() function?
...tegory.send(column.name) %></td> | <% end %> `---- Apparently, the send() function returns the column value by name, but where does this function comes from? Unfortunately, neither the tutorial nor the API documentation tell it. -- \ / vlad@hashbang.de \/lad http://www.hashbang.de
2006 Jun 08
5
Field names in validators
...ssage like "E-Mail Address can''t be blank" instead of "Email can''t be blank"? I can override the "can''t be blank" part by using the :message parameter, but not the "Email" part. -- \ / vlad@hashbang.de \/lad http://www.hashbang.de
2006 Jul 12
3
How to get the current URL?
...cessful authenfication. But how do I get the current URL? I could store controller_name, action_name and params[] in the session, and then construct the URL by calling url_for. But has it really to be that complicated? All I need is the full URL. -- \ / vlad@hashbang.de \/lad http://www.hashbang.de
2011 Mar 14
1
Rscript, hashbang, and arguments
Hi, I have a bunch of R scripts which have the hash bang !/usr/bin/env Rscript and I typically run these scripts by passing in some parameters like this: ./nameOfRScript arg1 arg2 ... I know Rscript has the option to run in --vanilla. Where exactly do I insert the --vanilla option? When I do something like this: ./nameOfRScript --vanilla arg1 arg2 ... And I try to access the commandArgs,
2006 Mar 12
2
Strange error: undefined method `rewrite''
...nd(options, *parameters_for_method_reference) | when Hash then @url.rewrite(rewrite_options(options)) | end | end `---- Where is this ''rewrite'' method supposed to be and why can''t it be found? -- \ / vlad@hashbang.de \/lad http://www.hashbang.de
2000 Jul 05
0
smbclient -p <port> worked in samba 1.19.18p10, not in samba 2.x
...to port 139 on my Linux machine or my NT machine respectively. Here are two tests from the same Solaris machine, first with the current Samba and second with the 1.19.18p10 version. -------------------- seadog> echo 'some message to home machine' | /opt/samba/bin/smbclient -p $LINPOP -I hashbang.dhs.org -M petep timeout connecting to 24.147.30.33:139 Connection to petep failed -------------------- Note that smbclient tried to connect to port 139, not port $LINPOP. With the old Samba, it works as advertised in the man page: -------------------- seadog> echo 'other message to my home...
2000 Jul 16
1
"smbclient -p <port>" appears to be broken in Samba 2.x
...o port 139 on my Linux machine or my NT machine respectively. Here are two tests from the same Solaris machine, first with the current Samba and second with the 1.19.18p10 version. -------------------- seadog> echo 'some message to home machine' | /opt/samba/bin/smbclient -p $LINPO P -I hashbang.dhs.org -M petep timeout connecting to 24.147.30.33:139 Connection to petep failed -------------------- Note that smbclient tried to connect to port 139, not port $LINPOP. With the old Samba, it works as advertised in the man page: -------------------- seadog> echo 'other message to my hom...
2006 Apr 21
9
Capistrano, OS X
If you installed your copy of ruby via DarwinPorts, the hashbang lines at the top of your dispatch.* scripts says "#!/opt/local/bin/ruby". This is a problem, if you''re deployin via Capistrano to a host with a different path to ruby (which would be practially all of them:-) Here''s a fix. Add this "fix_hashbangs.rb" script...
2006 Feb 15
5
dispatch.cgi error affecting specific browsers
...) The actual error reported in the browser is: Application error Rails application failed to start properly And in the apache error log: Premature end of script headers: dispatch.cgi I have read numerous postings about this error and have made sure that: -permissions on my app are set correctly -hashbang line is correct in dispatch.cgi -line endings are correct in dispatch.cgi What seems to be different than most other reports of this problem is the fact that it works on some browsers but not others. Any ideas? Thanks -- Posted via http://www.ruby-forum.com/.
2011 Mar 22
2
Problems with SQLite3
Hi! I''ve got a very strange problem. Suddenly the SQLite3 Backend stopped working. Example 1: > rake db:rollback == CreateProducts: reverting ================================================= -- drop_table(:products) rake aborted! An error has occurred, this and all later migrations canceled: SQLite3::SQLException: near "CASCADE": syntax error: DROP TABLE
2006 Jul 15
5
Textmate command to display Active Record object attributes
I hacked together a command for textmate that displays Active Record object attributes in a tooltip. Just thought others might find it useful. Chris [1] http://blog.seagul.co.uk/articles/2006/07/14/textmate-command-to-display-active-record-column-attributes
2009 Jul 13
2
how to run a R program with input arguments
I am a beginner in R and know only a little about it yet. I have a script written in R language, named as "a.txt" for example. I am using a Linux machine, at present I only know that I can type "R" in the terminal and then copy-paste the content in "a.txt" to the R's interface to execute the program. However, I want to know if there is any method that allows me to
2006 May 09
7
FCGI and the never ending saga of deploying on Dreamhost
I''m trying to setup an app on Dreamhost and running into no end of problems. The app is running with edge rails and I''m currently getting the dreaded ''Rails application failed to start'' white screen when trying to access it. I''ve gone through all the ''gotchas'' and troubleshooting docs at Dreamhost and the rails wiki to no avail.
2006 Apr 21
4
Bus error in ./script/console with postgres (ext. library)
Is there some special magic that needs to be performed so that the C-based postgres extension library works with the Rails console? I have installed the postgres extension library (replacing the pure Ruby version: postgres-pr) from <http://ruby.scripting.ca/postgres/> Everything works great from WEBrick, but as soon as I fire up the console and try to use it, I get a bus error:
2003 Jun 09
4
executable R scripts
Hi, I'm a newbie trying to make an R program executable on UNIX, just like one would write an executable perl script by putting "#!/usr/bin/perl" in the first line, and so on. It seems, though, that this would only work if I use the "BATCH" command to tell R to execute the program in its first argument. This would have the unfortunately side-effect of dumping all
2006 Oct 31
3
Forcing FCGI at dreamhost
Greetings all, I''ve got an app in production at dreamhost, but I can''t seem to force FCGI on it. I have it enabled for the domain in the admin panel, have checked the file permissions in my public folder, and tried firing the scripts from the command line. When firing either dispatch.cgi, or dispatch.fcgi from the command line, I get a 500 internal server error on BOTH.
2010 Feb 05
3
open script file from command line
Hi all, Is there a function to open a script file from the command line? I have several students who are Mac users and when they open up a script file it does not send commands to the console, and unfortunately I don't know how to solve this problem since I am not a Mac user. I have looked over the FAQ for Mac users, but didn't see a reference to the problem. I think they are both
2006 Jul 14
14
[URGENT] Need help getting rails app back up desperately
I''m desperate. A few hours ago I was checking my server because we are running a survey for a new client and everything looked good for that app but I noticed another Rails app was quite large (twice as normal) so I decided it was time for a restart. Big mistake. Upon restart the application gave me a 500 error. Checking the logs I found a stack level too deep error that after hours I
2006 Jul 16
14
Rails, FCGI, DreamHost, and endless frustrations
Hi all! I''m trying to deploy an application out to a subdomain at dreamhost. I am getting the dreaded "Rails application failed to start properly" error. The logs for my app are empty. In the DreamHost FTP app, when I look in the error.log file (I''m guessing this the Apache error log file) I see the following for each of my attempts: [Sun Jul 16 12:36:32 2006]