similar to: Reading MySQL rows

Displaying 20 results from an estimated 10000 matches similar to: "Reading MySQL rows"

2006 Mar 06
5
Rails MySQL query
Hi, I?m following the Depot tutorial in Agile Web Development with Rails. I need some help to display products thats in one specific category. mysql> select * from products where category = "jackets" does what I want, but I?m not sure how to make a list and display it in rails? This code displays every product with some of its fields, but I want it to only display the products
2006 May 09
2
User.new doesn´t capture all of the parameters
Hi, I have a page where I can add new users to the database, but it only sees whats in the name and passord field. add_user.rhtml: <%= form_tag %> <%= form_tag :action => ''add_user'' %> <td>User name:</td> <td><%= text_field("user", "name") %></td> </tr> <tr> <td>Password:</td>
2006 Apr 24
1
Including an extra variable
Hi, I?m adding numbers to a database from fields in a form, but I want to include some information I have in a variable not generated in this form. The variable user.company exists in the same class as create(), and I want to include the value of this variable when I add new numbers to the database. The form looks like this: <p><label
2006 Mar 29
4
Collecting data from forms
Hi, I?m having some problems collecting the content of some forms. This is whats in list.rhtml: <%= form_tag :action => ''send_message'' %> From: <%= text_field ''message'', ''from''%> <br>Message: <%= text_area ''message'', ''text'', :rows => 6 %> <tr> <td></td>
2019 Feb 12
1
Sama + Windows Shadow Copies
Hello, i installed zfs-auto-snapshot with Samba/Windows Shadow Copy. If the share contains "path = /srv/userdata/" it runs for me. But if I use "path = /srv/userdata/%U" I get no "Previous Versions" on my Win10 Client. I think the problem is the variable "shadow: snapdir = .zfs/snapshot". I tried with "shadow: snapdir = ../.zfs/snapshot" and
2006 Jul 29
3
Validating two models
Hi, I have a model Account wich "has_one" model called UserData. Both models use validation. # Model contains user name, email etc. class Account < ActiveRecord::Base has_one :user_data, :foreign_key => "user_id" validates_presence_of :email end # Model contains firstname, lastname etc. class UserData < ActiveRecord::Base
2006 Jul 30
3
Accessing @org.id yields internal number, not record id
With apologies, I can''t figure out the simplest thing: How to reference a record id instead of the internal memory location of that value. I''m new to Ruby but otherwise a veteran VB6/SQL programmer. My code: <snip> sSQL = "SELECT id, org_name FROM organizations WHERE user_id = ''#{sUserId}'' AND user_password =
2010 Mar 15
1
Windows Vista and option in smb.conf
Hello, I have a difficulty with the option 'hide unreadable' in the smb.conf regarding to it's effect on my Vista machines. In the smb.conf I have declared the following share: [userdata] path = /data/userdata admin users = domain+adminuser browseable = yes writeable = yes hide unreadable = yes csc policy = disable The
2011 Mar 27
1
Roaming Profiles Configuration
Hello all! I am new to the mailing lists, as well as Samba. I was looking for an Active Directory alternative for linux, and finally landed on Samba4. My installation is alpha12, installed via apt on Ubuntu 10.10. I am trying to create roaming profiles, however, if "path = /UserData" then the profiles are viewable from every user account by simple accessing "
2003 Mar 22
5
CYGWIN Rsync exclude/include problem
I'm having troubles with getting rsync 2.5.5 (CYGWIN version) to include/exclude files they way I expect it to. I have mulled over the list postings and man pages regarding this and I am either missing something or ... well I don' know. I have a drive with 12 folders in the root however, I only want to rsync 5 of them (the ones marked with an *) and in those 4 I want to exclude certain
2006 May 02
4
ordering after a inject
Hi, My results are getting out of order after I do the following command: count = result.inject({}) { |hsh, row| hsh[row[''name'']] = row[''count''].to_i; hsh } Why? Here are more specifics: My complete method is this (based off of acts_as_taggable code - not'' DHHs, but the original one): def self.sql_to_count_plays(lookback) sql =
2006 Jan 28
1
like clause for find
I''ve done a bit of searching, but got too much noise and no perceivable signal. So, I apologize if I''m just missing this in the docs, seems like it should be easy. I''d like to provide some basic search functionality in my app by allowing the user to enter in some text and generating a query like so: SELECT * FROM things WHERE field LIKE ''%input''%;
2009 Oct 19
1
local copy microsoft/credentials directory profile redirection
hello, i've set up a domain controller to replace a production server. both servers use profile redirection for all user environment directories. my problem is that when logging onto the new domain and server, windows will create in the %userprofile% local directory an Application Directory containing Microsoft/Credentials/*SID*, although a copy exists on the server. this directory is used
2006 Feb 09
17
complicated finds are eating my sole
I abandoned ruby way for find_by_sql and still can''t get this... @myplacement = Placement.find_by_sql( "select * from placement where :intake_date >= beg_intake_date and :intake_date <= end_intake_date") just a simple date range...it''s killing me - If I knew how to load placement controller into irb, I could probably try out finds interactive mode... Thanks
2016 Nov 20
2
[PATCH 0/2] improve Lua API for files and initramfs objects
hpa at zytor.com writes: > On November 19, 2016 6:06:43 AM PST, wferi at niif.hu wrote: > >>"H. Peter Anvin" <hpa at zytor.com> writes: >> >>> On 11/10/16 04:38, Paul Emmerich via Syslinux wrote: >>> >>>> Ferenc W?gner <wferi at niif.hu>: >>>> >>>>> for reading configuration files from disk. Does it
2014 Oct 13
2
[PATCH][git-pull] lua: fix broken bindings, switch to using methods, document things
The following changes since commit 81ad566f155fac31089fde69c87059b217e7e9b6: NEWS: Update for 6.03 release (2014-10-06 09:27:44 -0700) are available in the git repository at: https://github.com/wferi/syslinux/ pub for you to fetch changes up to 68cb978ab7e692d772e4d62d3585b8f7bac43b4b: lua: simplify the function/value handling in the automenu test (2014-10-13 12:44:15 +0200)
2005 Jul 08
1
Printer dialogue box slow to pop up
Hi, we're in the process of rolling out Samba on Suse Enterprise Server v 9 in an environment of Windows 98, 2000, and XP computers (samba v 3.0.14a). The samba server is replacing a Windows 2000 domain controller. The computers switched over to using the samba server as the domain controller are not experiencing any issues logging onto the domain, initializing their logon batch script, or
2006 Jun 16
2
smpasswd
Hi, I have just installed samba-3.0.22 and copied my smb.conf across from my previous version on the same machine. With my previous version I never had to run smbpasswd -a username. It would do the authentication from /etc/passwd. ie when I added someone as a user with useradd they would automatically be able to mount samab shares. I am now having to add all my users with smbpasswd. I
2008 Jun 26
9
find_by_sql + Join + Rails 2
Hello I have write a code to select data from two tables (T1,T2) but the problem is @tables= T1.find_by_sql("select T1.*,T2.* from T1inner join T2on T1.followup_id = T2.id where followups.userid = ''41'' ") THe problem all values that is returned from running only T1 variables,why? Where are T2 variables?? -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
3
Howto set a global parameter
Hi, In my login_controller I get the usename of the person logging in. @username = @user.name puts " DEBUG: #{@username} just logged in\n" # This works But @username seems empty when accessed from numbers_controller.rb , how to I set it to be accessible global? Or at least move the content of that variable over to another controller. Best regards, Martin