Displaying 20 results from an estimated 300 matches similar to: "Accessing @org.id yields internal number, not record id"
2010 Sep 22
1
agregar valores a una tablea de SQL
Hola a todos
Estoy aprendiendo a trabajar con el paquete de RMySQL, y a la vez con bases SQL,
así que a lo mejor no es tan complicado.
Quiero agregar valores, que genero en R, a una tabla de SQL más o menos la idea
es:
> ssql<-"INSERT INTO tabla1 (variableA, variableB) VALUES
(''valor1'',''valor2'')"
> dbSendQuery(conec, ssql)
pero
2008 Aug 12
1
[RODBC] date attribute in sqlQuery
Hello R users,
I would like to use an integer and a date as attributes in sqlQuery,
and these arguments
are defined in my function.
Here is my function:
GetReturn<-function(code,date)
{
channel<-odbcConnect("db","user1","password")
ssql<-paste("select * from TABLE Where PF_CODE =",code,"and PF_DATE=",date)
2006 Aug 02
1
Object is populated but attributes are unavailable
Will someone please tell me why this code...
--------------------------------------------
def test
org = Organization.find(1)
write_log("Org: #{org.inspect}")
write_log("Org name: #{org.org_name}")
end
----------------------------------------------
...is returning the blank org_name below?
Am I accessing the object''s attribute wrong?
2014 Aug 22
2
Yum update changes inode of file
Hi folks,
on CentOS 6.5 I run tripwire software which verifies data integrity. My
system is automatically updated by yum (as far as I understand the
/etc/cron.daily/0yum.cron is responsible for the regular system
updates). After a system update I'm then notified by tripwire about the
changes on the file system.
By browsing those tripwire reports I found that there are files which
did
2005 Sep 21
0
HOWTO: A simple AGI application to modify incomi ng CallerID on the fly using SQL Server and *not* UnixODBC
Requirements:
1. http://sourceforge.net/projects/odbcsock
2. The SQL server must be in the same subnet as your * server
Howto:
1. Install ODBCSocketServer on your SQL server and verify connection with
the included VB COM app from a Windows box.
2. Decide how you want to transform the Caller ID. In my case, I want to do
a lookup of the CallerID number in SQL server and prepend the Caller ID
2005 Sep 22
0
AGI Script to interact with ACCESS Databse a nd Set CID info on the fly.
lol just posted this yesterday, it's for any ODBC DSN so Access or SQL or an
Excel spreadsheet, as long as it's set as a DSN. This will work with
outgoing Caller ID as well, it's just how you set it up in your dialplan. If
you want I can email you the .agi since email will undoubtedly mangle the
script. hth.
HOWTO: A simple AGI application to modify incoming CallerID on the fly using
2007 Aug 31
2
Give focus to an input field of a form
Hi,
I am new to rails and I have setup Typo on my site. One little
thing bugs me, the login page doesn''t give focus to the "user_login"
field. I was wondering what do I need to do to make rails help with
this? I have seen some simple inline javascript to set the focus,
sort of like:
document.<form_name>.user_login.focus()
However the rails view doesn''t
2004 Aug 06
5
Missing headers in Icecast2
Hi Karl,
Thanks for your help,
About the "Connection:" header, you are right, it's:
"Connection: close" and NOT "Connection: keep-alive". The protocol when the
SERVER sends the data is http 1.0. It's http 1.1 when the browser requests
the data.
I don't understand the "Content-Length: 54000000" header either. Also I
noticed the flash player on
2006 Mar 03
5
Quick question about @params
I was looking through the loginGenerator code and noticed the following:
Login:
User.authenticate(@params[:user_login], @params[:user_password])
Signup
User.authenticate(@user.login, @params[:user][:password])
The syntax of the call in the signup code confused me...what exactly
does @params[:user][:password] this return to me? Is the params
structure a multi-dimensional array? I would have
2007 Apr 16
6
How to use a form.check_box ?
Hey guys,
I''m trying to have a simple webform in my administration section to
add a user. I have the text_fields for adding the user''s name,
password, and password confirmation, but cannot seem to figure out the
checkbox. I want it to be a single checkbox, that if clicked, will set
the database column "access" to be "admin" and if its unchecked, set
it to be
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi,
I''m having a problem trying to get a login controller working. When I
try and post to my login controller I get the following error:
ActionController::InvalidAuthenticityToken in LoginController#login
login_controller:
class LoginController < ApplicationController
def login
case request.method
when :post
if @session[''user''] =
2008 Feb 14
4
How do I access this parameter?
Hi,
I have a form for creating users ...
<% form_tag ''userconfirm'' do -%>
<!-- more code -->
<p><label for="user_login">Username</label><br/>
<%= text_field ''user'', ''login'' %></p>
<p><label for="user_password">Password</label><br/>
<%=
2010 Aug 17
2
[Form] Method POST & PUT problem
Hello,
I have a form that should be a POST method, but Rails insist to put a
hidden field "_method" that has the value "put" does anyone knows why?
Thanks,
David Sousa
Controller: -------------------------------
def new
@user = @current_user
end
-------------------------------------------
View: -------------------------------------
<% semantic_form_for @user,
2007 Jul 31
2
merb speed
Hi,
We have a rails app which is essentially a web UI to a unix
filesystem, and which has been performing rather slowly. I''ve been
looking at rewriting it in merb, so I did a quick spike where I ported
over all the rails code necessary to log in as a user, and generate
the same file list page that rails was serving up. However, the
numbers appear quite bad (twice as slow as rails, for a
2004 Aug 06
2
Transparent Proxy
Hi,
The only need I have for icecast is as a transparent proxy. The problem
is I can't get it to work as one, is this feature implemented?
When I setup XMMS with a proxy of the computer running icecast (1.3.11)
I get this in the logs when trying to connect to a stream:
[16/Sep/2001:23:59:31] [9:Connection Handler] Accepted encoder on
mountpoint 205.188.234.34:8004/ from
2006 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my
SQL:
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`user_name` varchar(80) default NULL,
`login` varchar(120) NOT NULL default '''',
`last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'',
`last_attack` timestamp NOT NULL default ''0000-00-00
2005 Sep 02
7
Form to update two tables
Hello there,
this is probably a very simple problem but I''m stuck.
I''m following the Login generator tutorial from rubyonrails. It''s all
worked fine so far. But I want to add a bit more functionality so that
when a user signs up in addition to chosing a login name and password
they type in a company name which is added to a seperate table called
COMPANIES. The id
2011 Jan 24
11
Can't get login to work
Hi, could anybody help me try to get a login function working, I have
created a database for users called user1, I have the login screen set
up but when i hit login with a correct username and password, nothing
happens
I am expecting the lgin button to direct the user to the main page and
show the user as logged on, but nothing happens! Thanks!
Controller
class User1Controller <
2006 Jun 06
1
Redirect\Cookie bug with MSIE 5.5sp2
Hello all,
There seems to be a bug in internet explorer 5 where a redirect
causes the session to be lost.
A controller says....
def login
case @request.method
when :post
if @session[:user] = User.authenticate(@params
[:user_login], @params[:user_password])
return redirect_to(:action=>''send_confirmation'') unless
2006 Jul 06
1
Problem implementing password and password confirmation
Hi,
I''m trying to implement password confirmation, based on the Agile
example, but just can''t make any progress.
User DB has these fields:
=========================
t.column :name, :string, :limit => 40
t.column :hashed_password, :string
t.column :salt, :string
User model has:
===============
attr_accessor :password_confirmation