similar to: select in form - best practice?

Displaying 20 results from an estimated 100 matches similar to: "select in form - best practice?"

2006 Aug 06
2
[LLVMdev] JIT and garbage collection
If I recall correctly, the garbage collector interface consists mostly of some fuctions that one calls during execution to notify the collector about a GC root. There's one othr thing that's needed if you do JIT compilation: you have to garbage-collect the generated code. This means that the collector must be able to find where the pointers are in the generated code together with
2006 Aug 06
0
[LLVMdev] JIT and garbage collection
Yes, the JIT implementation was recently improved to add support for this. There's nothing you need to do (or emit). The JIT implementation will automatically collect memory that is not being used. See the JITMemoryManager in lib/ExecutionEngine/JIT/JITEmitter.cpp for details. Reid. On Sun, 2006-08-06 at 14:30 -0400, Hendrik Boom wrote: > If I recall correctly, the garbage collector
2011 Sep 27
0
has_many with :finder_sql returns [nil]?
Is it supposed to do that? I find it very confusing. AR 3.0.10 class Unit has_many :units, :finder_sql => proc { "SELECT * FROM `#{table_name}` WHERE `location_id`=#{id} AND `location_type`=#{Location::UNIT}" } end Both should return []. However... >> Unit.first.units.find([1000000]) [2011-09-27 10:05:11|main|debug] Unit Load (4.0ms) SELECT `units`.* FROM `units`
2008 Jun 12
1
unidirectional belongs_to polymorphic
The setup: class Location::Base < ActiveRecord::Base set_table_name :locations ... end class Location::Address < Location::Base ... end class Location::Airport < Location::Base ... end class Person < ActiveRecord::Base belongs_to :location, :polymorphic => true, :class_name => "Location::Base" ... end I want a unidirectional belongs_to relationship. That
2006 Feb 09
0
pass values with autocomplete textfield
Hi all, I have a simple app that has an autocomplete textfield in my view. I now want to be able to pass the value of a select to my controller when my auto_complete_for_location_name is called. My goal is to be able to filter the autocomplete results by the value of the select. My view code looks like this: <%= form_remote_tag :update => "search_results", :url => {
2014 Feb 06
0
Array Confusion
I have the following instruction that returns an array that I'm quite confused about. I can't even read it. Can someone shed some light as to how to reach into this array of hashes (that's what I can see) to get the location lat and lon? res = Geocoder.search(addy1) This is the res: [#<Geocoder::Result::Google:0x007fb46c345e18
1998 Aug 21
0
tcpdump:libpcap:compilation problem
Dagmar d'Surreal wrote: > Original text cut My fault is that the instructions were for SlackwareLinux 3.3 andI *did not* mention that! Please, accept my appologies ... But also you can read from the INSTALL of tcpdump, that *if* you want you can leave it under the structure of tcpdump source tree, especially if you have any problems. On my system it wouldn't want to compile
2006 Aug 06
2
[LLVMdev] JIT and garbage collection
On Sun, 6 Aug 2006, Reid Spencer wrote: > Yes, the JIT implementation was recently improved to add support for > this. There's nothing you need to do (or emit). The JIT implementation > will automatically collect memory that is not being used. See the > JITMemoryManager in lib/ExecutionEngine/JIT/JITEmitter.cpp for details. The JIT doesn't automatically do this. I don't
2007 Jun 27
3
Missing 'init keys' command
Hi, I have two new Asterisk installations (1.4.4 and 1.4.5) and I have created rsa keys and they can now see each other as online peers: moe*CLI> iax2 show peers Name/Username Host Mask Port Status bart 192.168.2.201 (S) 255.255.255.255 4569 OK (48 ms) 1 iax2 peers [1 online, 0 offline, 0 unmonitored] but on the 1.4.5
2011 Apr 29
1
qemu-kvm update from 0.12.5 to 0.14 on centos 5.6
Hi all I just update the package above. on 0.12 my qemu window opened on my X server as a window. Now it starting in a VNC session. How do I get it back to opening in a window on the X screen as the default? Thanks, Jerry
2006 Mar 09
2
nut on Mac OS X. Where to put upsdrvctl shutdown?
I've installed nut on a Mac OS X machine (XServe running Mac OS X 10.3.9). It all seems to work fine except..... I can't figure out where to put the upsdrvctl shutdown command in order to get the ups to cut power after the computer shuts down. There doesn't seem to be any sort of script that gets run at shutdown time. Has anyone successful done this under Mac OS X? Can you
2010 Aug 20
5
paired samples, matching rows, merge()
Hi everyone! I'm matching two samples to create one sample that have pairs of observations equal for the k1 variable. Merge() doesn't work because I dont't want to recycle the values. x <- data.frame(k1=c(1,1,2,3,3,5), k2=c(20,21,22,23,24,25)) x y <- data.frame(k1=c(1,1,2,2,3,4,5,5), k2=c(10,11,12,13,14,15,16,17)) y merge(x,y,by="k1") k1 k2.x k2.y 1 1 20
2009 May 21
0
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On Wed, May 20, 2009 at 4:55 PM, Dan Gohman <gohman at apple.com> wrote: > Can you explain why you chose the approach of using a new pass? > I pictured removing LegalizeDAG's type legalization code would > mostly consist of finding all the places that use TLI.getTypeAction > and just deleting code for handling its Expand and Promote. Are you > anticipating something more
2009 May 20
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On May 20, 2009, at 1:34 PM, Eli Friedman wrote: > On Wed, May 20, 2009 at 1:19 PM, Eli Friedman > <eli.friedman at gmail.com> wrote: > >> Per subject, this patch adding an additional pass to handle vector >> >> operations; the idea is that this allows removing the code from >> >> LegalizeDAG that handles illegal types, which should be a significant
2011 Sep 15
1
Can't get installing a package source (.tar.gz) from a web page to work...
I have created an R-package with datasets which I want my students to install (the package is not on CRAN). 1) I've put the package on the web in a directory called 'data' and I thought I could do: > install.packages("http://gbi.agrsci.dk/statistics/courses/2011-ISMLS-course/data/LiSciData_0.0-03.tar.gz",repos=NULL,type="source") Warning: invalid package
2007 Nov 07
5
Unexplainable failure...at least for me
I have an address model with country_id and province_id fields There is also a full_address method that returns an address that is in a format that the google maps api will be able to return a long-lat coords. Within the full_address method there is a call to obtain the province/state and country name. --------- def full_address ... full_address = [city, self.province.name,
2003 Mar 30
2
R-devel (1.7 to be) on windows XP
Hola! I'm trying to make r-devel on windows XP. I downloaded an hour ago R-1.7.0beta_2003-03-30.tar.gz make terminates without any error messages, with make check I get error messages from tests of internet and socket functions, surely because my modem was not connected (It doesn't say in the documentation (file INSTALL) that internet must be connected under make check.) But the file
2020 Jun 09
0
Samba AD-DC on FreeBSD-12.1 Jail
On Mon, June 8, 2020 14:56, Rowland penny wrote: > On 08/06/2020 19:47, James B. Byrne via samba wrote: >> Failed nsupdate: A SMB4-1.brockley.harte-lyne.ca 192.168.216.166 : [Errno 2] >> No such file or directory: '/usr/bin/nsupdate': '/usr/bin/nsupdate' >> Failed update of 1 entries > > You need to install the freebsd package that contains
2011 Aug 03
0
can't recover LVM volume: Please specify a *single* volume group to restore
Hi everyone, I'm trying to recover a deleted LVM volume but can't see to get the syntax right. Running the following command gives me a list of backed up LVM volumes: root at usaxen02:[~]$ vgcfgrestore -l fluidVG_125094317679 ------- snip --------- File: /etc/lvm/archive/fluidVG_125094317679_00126-1479850541.vg VG name: fluidVG_125094317679 Description: Created
2020 Jul 02
0
samab-4.10 nsupdate
On Thu, July 2, 2020 14:47:42 UTC, Rowland penny wrote: > Looks like you need to recompile nsupdate, you need GSSAPI. > > Failing that, try adding: > > dns update command = /usr/sbin/samba_dnsupdate --use-samba-tool > > To your DC's smb.conf Further investigation has uncovered (for me) the cause of this error: /usr/local/bin/samba-nsupdate: cannot specify -g or -o,