similar to: How to fake composite primary keys?

Displaying 20 results from an estimated 100 matches similar to: "How to fake composite primary keys?"

2012 Mar 07
1
Anyone recognize "www-mysql"?
I'm transitioning someone's quite old server [Debian] to a new CentOS6 host. All going pretty well. But they server up some functionality using CGI scripts via Apache that use something referred to on the Debian box as the www-mysql package? This a binary that executes HTML pages containing embedded SQL statements. Anyone know where the source for this can be found or if it has a more
2011 Apr 12
1
Vpopmail and lastauth
Hello, I'm migrating many accounts to a new server with vpopmail 5.4.33 and dovecot 2.0.11. I've already vpopmail 5.4.32 and dovecot 1.2.16 on others servers running without problems. With dovecot 2.0.11 my lastauth file is not updated. This file usually is update on any access (smtp, pop3, imap) with the client's IP, for every mailbox. Now it's updated only when a client
2006 Aug 13
14
undefined method `each'' for #<Mysql:0x3874b20>
Running on XP, Rails v1.1.6, Ruby 1.8.4, mysql 5.0.24, WEBrick 1.3.1 just doing a basic ''scaffold'' against a table in mysql, I originally got the "undefined method ''each''" error at all times then saw something advising to uninstall the gem mysql package, which I did. then it seemed to work! - but only the first ''list'' call to the
2014 Mar 31
1
C API to get numrow of data frame
Hi , Is there any C API to the R API nrow of dataframe ? x<- data.frame() n<- nrow(x) print(n) 0 Example : My C function which deals with data frame looks like and I don't to send the number of rows of data frame .I want to detect it from the function itself, my function take data frame as argument and do some on it. I want API equivalent to nrow. I tried Rf_nrows,Rf_ncols . No
1998 Oct 19
1
dynamically loading C++
Is there a function ".C++(...)" for R, or does anybody know how to dynamically load C++ functions into R? lg at -- Adrian Trapletti, Vienna University of Economics and Business Administration, Augasse 2-6, A-1090 Vienna, Austria Phone: ++43 1 31336 4561, Fax: ++43 1 31336 708, Email: adrian.trapletti at wu-wien.ac.at
2011 Sep 13
3
Accessing Rails helper method with_output_buffer
Hi all, I cannot figure out how to correctly use the with_output_buffer helper method (located in ActionView::Helpers::CaptureHelper) inside a custom FormBuilder. Below follows a simplified example. I''m trying to achieve the following behavior in an ERB as suggested in the form_for helper docs in the Rails source: ========== <%= form_for @object, :builder => MyFormBuilder do
2009 Aug 29
2
Users, Roles and Permissions
Hello, I''m currently working on a text-based roleplay browser game, and i''m trying to figure out what the best approach would be in order to create a system that allows me to assign roles to a user, and permissions based upon the role a user has. I''ve been thinking about creating a model User, which has_many :roles, and with the Role model which has_many :permissions.
2008 Feb 01
2
Facebooker interfering with existing application
Hi! I have an existing application, basically a very simple Hobo app. It works... When I install the Facebooker plugin and create the facebooker.yml file (with valid or fake content, doesn''t matter), the original app starts behaving strangely. The controller and view logic keeps working, but several static files stop being served from http://localhost:3000/javascripts and start being
2011 Aug 23
2
Where is WillPaginate::Finders ???
Hi All! It''s been a while since I had to ask for help, but I''m back! I''ve finished beta testing my big app and started the transition to production. Everything went fine and the production version was working till I was asked to add another model :-( (Almost a year of beta testing and they only come up with it after moving to production :-D ) I successfully
2007 Aug 26
4
howto regressions on environment.rb in Rails projects
How would one write a spec on environment.rb in a rails app? I was requiring a gem in environment.rb, but received a "MissingSourceError". Generally, ruby raises a LoadError when it can''t find a gem, but rails overrides this to raise a MissingSourceError (since rails is expecting a required file to be in lib/...). How would I write a spec to override this behavior,
2003 May 15
9
big file server
Hi I plan to set up a big file server, something like motherboard with 4 ide ports and an additional 4 ide daughter card, a PIV proc and 512 or 1024 MB ram, a 100 or 1000 MB NIC, with 6 or 7 200 GB ide HDDs in a sigle box. I don't need lightning performance, just disk space. Of course this would be served by some linux os and samba questions (relative to samba configuration and behaviour) :
2008 Apr 02
18
Setting up PuppetShow - Puppet's Web Interface
Hello puppeters; I want to set/test the PuppetShow "Puppet''s Web Interface" with Ruby on Rails (ROR). If somebody has setup such show, please share your experiece with EXAMPLES...I''m not the programmer.so please share your STEPS....I have setup the ROR environment, currently learning Rails with different frameworks....HOBO (http://hobocentral.net/) is great for starter
2009 Nov 13
3
Encoding::UTF_8 missing?
I''ve just done a fresh reinstall of OS X Snow Leopard on my mac, and I''m having all kinds of problems with Rails, but the latest problem has me stumped. Whenever I run rake db:seed to populate my database I hit the following error: ** Invoke db:seed (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:seed rake aborted! uninitialized constant
2013 May 17
5
Active Admin with Ajax call
Hello everyone. I''m begining with Ruby on Rails, and i''m facing some trouble with "ActiveAdmin with ajax." Here''s the situation: It''s a Kennel''s web site, so, while i''m creating a new dog, i have one select/options for the dog''s father, dog''s mother, and dog''s race. After select the dog''s
2007 Sep 29
2
Typo3 5.0 Framework
Hi guys, for about one and half a year I am involved in RoR Development. I like the framework very much! But more and more I have my doubts, that this framework will succeed, I think Ruby on Rails succeed only, if some powers from community will be concentrated on a target-oriented development of the Framework. Since the approach of a pragmatic way of programming isn''t new anymore, more
2018 Jun 07
2
dovecot-pigeonhole Missing sieve_imapsieve Plugin?
Hi Folks, I am having a problem configuring imapsieve via dovecot-pidgeonhole on CentOS7. After following the docs here: https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPSieve I get: dovecot[22026]: managesieve: Fatal: Plugin 'sieve_imapsieve' not found from directory /usr/lib64/dovecot/sieve dovecot[22026]: doveconf: Error: managesieve-login: dump-capability process returned 89
2010 Jan 16
0
Converting snmpset() and snmpget() functions of php in rails
hello, I am trying to convert a php script into a rails script. I came accross snmpset() and snmpget() functions and I am stuck here. Here is a part of the php script. Please help me in converting these two functions. $oid = ''1.3.6.1.4.1.318.1.1.12.3.3.1.1.4''; $toret = false; if($pdb->connected) { $query = "SELECT snmp_community_str, address, reset_port FROM
2008 May 20
2
rspec fails at first run -- no such file to load -- spec/rails
Hi, I newly downloaded rspec, rspec_on_rails and ran the command ruby script/generate rspec from the instructions http://rspec.info/documentation/rails/install.html I then created the directories in spec: controllers, fixtures, helpers, models, views I then created the file spec/models/user_spec.rb as a spec for my model User. (Is the convention to name the model''s spec
2006 Nov 28
8
how to update index from a script
Hello all, I''m using AAF right now to index my ~3million db records. However, any additions to these records are added to the database through an external script so the aaf activerecord hooks will not catch any updates. Since new records are only added rarely, I figured I could just add the new records manually in ferret from some type of script. I''ve been looking at the
2009 Dec 07
1
problem starting rails (hobo) app with passenger
Dear All! I''ve set up my apache, passenger and configs, the passenger works, but the app can''t be started. the erros are the following These are the possible causes: * There may be a syntax error in the application''s code. Please check for such errors and fix them. * A required library may not installed. Please install all libraries that this