Displaying 20 results from an estimated 4000 matches similar to: ":include => :works, :select => ..."
2005 Oct 17
8
Using active record for SELECT MAX(column) FROM ...
Hi,
Is there an easy way of querying an active record for a maximum column
value? I need to do queries like:
SELECT MAX(salary) FROM employees
TIA,
Jeroen
2013 Jun 21
3
[LLVMdev] Compiling llvm and Clang in solaris 10
I run configure in a build folder using
CC=gcc CXX=g++ ../configure --prefix=/project/scratch/packages2/clang \
--enable-targets=host --enable-shared
The configure runs fine but when I type make I get the error:
make[1]: Entering directory
`/project/scratch/tmp/llvm-3.3/build/lib/Support'
llvm[1]: Compiling APFloat.cpp for Release+Asserts build
In file included from
2013 Jun 24
4
[LLVMdev] Compiling llvm and Clang in solaris 10
On Mon, Jun 24, 2013 at 6:17 PM, Jorge Rodrigues <skeept at gmail.com> wrote:
> Norm,
>
> thanks for the help. Applying the fix solves the issue I mentioned but now I
> have more issues.
>
> I can install clang, but when running I cannot compile and link files.
> If I compile with -c flag it works but compiling the following x.c file
> gives an error:
>
2013 Jun 24
0
[LLVMdev] Compiling llvm and Clang in solaris 10
On Jun 24, 2013, at 4:18 PM, Stefan Teleman <stefan.teleman at gmail.com> wrote:
> I'll file the bug about the endian stuff, but we'll also have to have
> an <endian.h> in Solaris as well.
Do you still have issues after r182419?
commit 01ef4f6982451e6a7c00a713d9ae677d3a15d042
Author: Jakob Stoklund Olesen <stoklund at 2pi.dk>
Date: Tue May 21 13:36:13 2013
2008 May 13
6
Testing that named_scope is defined
Hi guys,
I''m just beginning to use RSpec and I ran into the issue of testing a
named_scope. I''m not actually trying to test its behavior, as it''s not
my code, but I wanted to test at least that it''s defined. I tried
doing this:
describe Post, ".most_recent" do
it "should be defined" do
Post.method_defined?(:most_recent).should be_true
2014 Apr 11
2
[LLVMdev] llvm cse optimization
I'm working on the across the subprogram call optimization, and let's say the following llvm IR,
@ng0 = internal global [2 x i32] [i32 2, i32 0], align 4
%t7 = alloca [16 x i8], align 16
%add.ptr = getelementptr inbounds i8* %t1, i64 40
%call = call i8* @handle_value(i8* %add.ptr, i32 3) #3
%arraydecay = getelementptr inbounds [8 x i8]* %t3, i64 0, i64 0
%arraydecay1 =
2005 Jan 03
6
SipSak: error: this FQDN or IP is not valid: voicegw
Hi,
I've tried to use SIPSAK to understand the troubles i'm having about sending my voice to the person I've called (extension), after doing this tests below I always got this error "error: this FQDN or IP is not valid: voicegw".
This could cause problems (namely audio problems)?
Best regards,
Helder
voicegw:~# sipsak -C empty -a password -s
2013 Jun 24
0
[LLVMdev] Compiling llvm and Clang in solaris 10
Norm,
thanks for the help. Applying the fix solves the issue I mentioned but now
I have more issues.
I can install clang, but when running I cannot compile and link files.
If I compile with -c flag it works but compiling the following x.c file
gives an error:
x.c:
int main(void)
{
return 0;
}
> ./clang x.c
/project/helder/scratch/packages2/bin/ld: unrecognized option '-C'
2005 Dec 30
9
SELECT MAX
How does one do a SELECT MAX query in rails? I''ve searched and searched and
tried lots of things with no luck.
I want to implement "SELECT MAX(column_name) from table_name
and have it return the maximum value from column_name. I just need to get
that one value, not the whole object...
Thanks for any ideas...
Shelby
_______________________________________________
Rails mailing
2006 Sep 04
6
How to Networking Bridge?
Hi,
I''ve a working xen 3.0.2 booting a gentoo linux on Dom0.
I have setup a Windows XP in a DomU OK with no problems except the
network!!
My problem is that I wanted to give a working network interface on the
DomU and the best I could. making the windows detect an network adapter,
was putting:
vif = [''type=ioemu'']
I also tryied:
vif = [''type=ioemu,
2001 Dec 31
4
Memory leak with XP Clients
Hello,
I am having a serious problem with clients that are connecting to our
Mandrake 8.1 server that is using the Samba 2.2.2 RPM. After a few days of
having the computers on they will start to take up 200M of ram as reported
by top. I don't have this problem with any of the other clients, Win2k, ME,
98 or 95.
Is there a setting I need to change on the client side? The only way to
2004 Dec 30
2
IAX hardware
Hi,
I've been loosing my mind with NAT and read that IAX doesn't have problems about nat.
Does anyone knows about hadware (routers and etc) support IAX?
Best regards
helder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041230/f689bdde/attachment.htm
2002 Sep 14
2
smbmount and WindowsXP
Hello!
Im trying to mount the ADMIN$ share of my windows XP and i cant!
I can mount other shares.
I do
./smbclient -L 192.168.0.18
added interface ip=192.168.0.1 bcast=192.168.0.255 nmask=255.255.255.0
session request to 192.168.0.18 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN
2006 May 15
8
set_table_name and self.table_name
I have some legacy tables that I used set_table_name on, I''m attempting
to write a method that will get key value from a sequence table and then
update it and return a value. I''m hoping to put this in the base
ActiveRecord method so I would like to reference the table name with
self.table_name or something...
class Contacts < ActiveRecord::Base
set_table_name
2004 Dec 02
4
Codec Conversion
Hello,
Is there an utility for asterisk for codec conversion? I tried google but i haven' got anything.
I am trying to initiate a call with G711 codec to asterisk and i would like asterisk to call a gateway with an g729 codec, therefore making a codec conversion from g711 to g729. I know chan_oh323 does it by specifying the OUT_CODEC variable, but chan_h323 does not. And i was wondering is
2005 Jan 19
1
Troubles with Broadvoice (register)
Hi!
Are you also getting in trouble while trying to register in Broadvoice?
Cumprimentos / Best regards,
Helder Rog?rio
__________________________________________
Microrede - Tecnologias de Informa??o, Ltd.
http://www.microrede.pt
***
? There are only two types of people in the world, those who have lost data
and those who will. ?
-- Richard Nixon
2006 Apr 30
4
Adding values from a db the rails way?
I have a log table which has a column recording the number of hours
worked on a task. So there''ll be multiple lines for a particular task.
I want to retrieve the total number of hours worked on a task, so that I
can include the information when one views the task details.
I can write a sql query to do this easily enough, like "SELECT
SUM(hours) AS total FROM tasklog WHERE
2016 Mar 12
2
The sad state of samba 4 adaption for home/small business routers.
Jeremy Allison <jra <at> samba.org> writes:
>
> On Sat, Mar 12, 2016 at 11:16:36AM +0000, Andy Walsh wrote:
> >
> > Also keep in mind that samba3.6 was successfully adopted on any device that
> > had a usb2.0 port in the past. So slapping a usbstick/sdcard/hdd on a cheap
> > router is already a common scenario.
>
> Yes, and I'd like to help
2006 Jan 07
8
Using find_by_sql to get the sum of a column
Hello,
I was wondering if there was a method in Rails that returns the sum of a
column. For example, I have a column called ''score'' and writing a SQL
statement such a ''select sum(score) from table_name'' does return the sum
of the values in the column. In the past (not too long ago being a
newbie), I defined all sorts of methods only to discover that Rails
2006 Jan 02
5
How to use MySQL sum() to get total of column?
Easy one: Let''s say I have a table called ''employees'' with a column
called salaries, how can I add Employee.salaries_total to the model?
Thanks!
--
Posted via http://www.ruby-forum.com/.