similar to: How access to the tables whitout a model

Displaying 20 results from an estimated 8000 matches similar to: "How access to the tables whitout a model"

2013 Apr 24
19
Hardware virtualization
Hi It''s my first experience with xen I would like to use a OS linux create by buildroot like a guest. I have a PC whit virtualizatin whit debian distribution and I install xen-linux-sysem on the PC. In this PC a VM doesn''t work correctly. I would like to know if exist a simple tutorial to configure PC and VM . Thanks in advance Luisa
2008 Oct 29
1
builtin to filter a list?
I know it's easy to write a simple loop to do this, but in the spirit of lapply, I thought I would ask if there is a builtin to filter or take a subset of a list based on a predicate in a similar way to the Erlang lists:filter/2 function: http://www.erlang.org/doc/man/lists.html#filter-2 filter(Pred, List1) -> List2 Types: Pred = fun(Elem) -> bool() Elem = term() List1 = List2 =
2008 May 26
2
RcppTemplate find example C++ souce code without Rtools ??
Dear R users, I would like to call R from C++ and Rcpp class library already compiled are a big advantage !! I have already read the doc/PDF in the installed package 5.0 and all the posts in this forum It's possible to get the source code (RcppExample.cpp) whitout Rtools ?? (i'm not familiar whit Rtools) many thanks in advance Roberto Iacopetti win XP sp 2.2600 Dev-C++ 4.9.9.2 R
2003 Apr 03
1
wine: lsta /some/directory/wine/conf/wineserver-tux/socket : No such file or directory
Hi, i try to install MusicMatch JukeBox 1.43 in my RedHat Linux 8.0. Ussualy i work whit RedHat 7.3 whitout problems, everything is ok. But whit RedHat 8.0 display the nex problem: [rodox@tux rodox]$ mmjb/mmjb wine: lstat /home/rodox/mmjb/wine/conf/wineserver-tux/socket : No such file or directory I search in google, and http://www.winehq.org whitout good results... i don't understand
2006 Jan 08
2
sorting issue
I''ve got the following setup: category (hm) <-> (bt) activity An activity has an amount, date, location, note, and category. I''m sorting my activities table by category_id (foreign key in activity), but how do I sort it by category_name instead? Basically I just need category_name in the result set. Here''s what I have now: @all = Activity.find(:all, :order
2006 Jul 07
9
Search on data accross many tables, linked by belongs_to
I am using Ferret and acts_as_ferret, as my search back-end for my Rails project. I have a question about using acts_as_ferret on a main table that is linked to other tables by foreign keys. Is there a way to include the information linked by the belongs_to keyword in the search results ? As an example, let''s say I have a main table ''posts'':
2006 Jul 28
11
Forum
Im making forum and i have problem with paths. Here is code: http://pastie.caboo.se/6389 With this code, it works. But its a bit weird to use so many paths function. For every path i need to make new function. So can you suggest me something. Tables are like here: http://wiki.rubyonrails.com/rails/pages/ForumExample -- Posted via http://www.ruby-forum.com/.
2006 Jun 29
1
can i update the page whitout reload it?
hello everybody my name is reynaldo and my question es the next: i have a form whit a combobox and a textbox the combobox have the number of days: 1,2,3,4,etc and i want show in the texbox the result of the number of days for a number for example: when de user choice 1 day, show in the box $200 when de user choice 2 day, show in the box $400 when de user choice 3 day, show in the box $600 when
2020 Mar 17
3
new bquote feature splice does not address a common LISP @ use case?
Dear R-devel, There is a new feature in R-devel, which explicitly refers to LISP @ operator for splicing. > The backquote function bquote() has a new argument splice to enable splicing a computed list of values into an expression, like ,@ in LISP's backquote. Although the most upvoted SO question asking for exactly LISP's @ functionality in R doesn't seems to be addressed by this
2016 Feb 22
2
Windows 10 - samba domain
Hi I have set up a domain using samba-tool on debian jessie. It seems to work, i cant administrate from terminal whit samba-tool and from winxp, but if i join whit win10 i have much trouble. I cant change password, i cant add users.... Someone knows whats the problem? /etc/samba/smb.conf [global] workgroup = LAN realm = lan.local netbios name = C3PO server role =
2009 Apr 23
2
CDR issue
Hello! I?ve an issue whit CDR using asterisk 1.4.23.1. I?ve configured mysql to store cdr information, but, while I put into cdr_mysql.conf the field ?userfield=1? and doing a query I found that this field is empty in the cdr table. On the other hand I can?t find records in the cdr table that show me calls generated through AMI using Originate Action, that?s calls are not stored in the CDR, but I
2006 May 11
3
Find By ID
Hi folks, Newbie with ruby on rails but very excited by the features provided by the framework ;) Suppose I''ve got a table ''Company'' and a table ''Category'' Company belongs to a category but I will retrieve the Catagory in the Company list? It seems that I don''t have the basic ruby wau of thinking to get this easily. Can someone help?
2006 Mar 12
11
HABTM selection conditions
Hi, I am currently trying to learn RoR and there is something I cannot figure out. I have two models: Article and Category, that are HABTM-linked. Everything works fine if I want to select all articles corresponding to a category, with something like @articles = @category.find(@params[:id]).articles However, I have a ''published'' field in my ''articles''
2006 Jun 19
10
Trying to delete from a unordered list using ajax
I have a controller method as such: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end (For the purpose of this exercise, category names are unique) I have the corresponding delete.rjs file: if @element_id page.remove :id => @element_id page.visual_effect :highlight,
2010 May 13
1
Routing - newbie question about shorting the url
Hi Right now I have my url showing as the following: http://localhost/categories/italian/recipes/special-pasta-sauce I would like it to be: http://localhost/categories/italian/special-pasta-sauce (or even http://localhost/italian/special-pasta-sauce) my category model has_many :recipes and my recipes model belongs_to :category (for the purposes of my test project a recipe can only belong to one
2007 Dec 13
3
Realise a web service with ruby on rails.
Hi , I want realize a web service with rails, but it''s the response it''s very slow. I want only saw all element present in my base. I did a base Customers (with element like id, name, phone,...). I added two elements. I did a model customer, a web_service customer. In the file /app/apis/customer_api.rb class CustomerApi < ActionWebService::API::Base api_method :listid,
2014 Dec 19
0
EATON 9SX not display battery.charge
On Dec 17, 2014, at 6:58 AM, ??????? ??????? <freemgm at gmail.com> wrote: > OS version: FreeBSD 8.4-RELEASE-p19 > NUT version: nut-2.7.2_6 > NUT installation method: from freebsd pkg system > Device info: EATON 9SX 5000i, manufacturing date: 05.09.2014 > ups.firmware: 9SX5Ki ... > there're lot of data in output, if it needed i can attach in file... Not sure why it
2010 Feb 26
3
Preserving lists in a function
Dear R users, A co-worker and I are writing a function to facilitate graph plotting in R. The function makes use of a lot of lists in its defaults. However, we discovered that R does not necessarily preserve the defaults if we were to input them in the form of list() when initializing the function. For example, if you feed the function codes below into R: myfunction=function( list1=list
2005 Sep 23
1
Sortable list with Ajax and delete function - working example
Hi. I read most of the postings here but unfortunately I didin''t found a complete example which could be used. Of cource the ones who are professionals in javascript could implement the missing peaces from the puzzle. What I''m required to do is a tree (sortable list) where items can also be deleted and at each modification a function (ajax) is called to save the changes. For
2012 Nov 20
1
tcl/tk problem with tklistbox,the " " character and Rcmdr.
I everyone, i have a little problem with tklistbox,the " " character and Rcmdr. Please look at this code require(tcltk) tt<-tktoplevel() levels.list2 <-tklistbox(tt,selectmode="multiple",exportselection="FALSE", height=4, yscrollcommand=function(...)tkset(levels.list2.scroll,...))