search for: upto

Displaying 20 results from an estimated 742 matches for "upto".

2007 Jun 19
3
another issue with highlighting
...quot;z").to_a + ("0".."9").to_a chars2.concat(["-", "_", " "]) chars3 << " " chars4 << "-" chars5 = chars6 = ("0".."9").to_a chars6 << "." 500.times do z={} t="" 1.upto(15+rand(10)) { |i| t << chars4[rand(chars4.size-1)] } z[:un] = t t="" 1.upto(40+rand(40)) { |i| t << chars2[rand(chars2.size-1)] } z[:deux] = t t="" 1.upto(30+rand(10)) { |i| t << chars4[rand(chars4.size-1)] } z[:trois] = t t="" 1.upto(30+ran...
2006 Jun 04
5
Creating pulldowns using loops
Creating looped pulldowns in PHP is simple so I can''t figure out why it seems to elude me in RoR. I want to create a simple pulldown list with the options and values "1" through "14." I have been trying to accomplish this with the .upto method like so: --START RHTML CODE-- <% options_array = [ 1.upto(14) {|i| print "[" i "," i "]"} ] %> <%= select(''radical'', ''strokes'', options_array) %> --END CODE-- I have tried variations of parenthesis and quotatio...
2006 Jan 20
2
select_time issue: how to get hours only upto 12 along with AM/PM
My code is like this: <%= select_time () %> 1) I would like to pass more options so that the a blank value is at the top. I tried ":include_blank => true" but it didn''t work. 2) I would like to limit the number of hours to only upto 12. With the current code the hours has value rangin from ''00'' to ''23'' 3) Would like to have another drop down for AM/PM. What''s the best approach? Thanks. -=- Neeraj -------------- next part -------------- An HTML attachment was scrubbed... URL: http:...
2007 Sep 20
3
Bug? in wxSugar enumerable_controls.rb
...end end The problem I had is that checked_items raises an exception. In fact, the find_all method uses the each method defined in ''wx_sugar/wx_classes/enumerable_controls.rb'' as following : def each(&block) last = get_count - 1 case block.arity when 1 0.upto(last) { | i | yield i } when 2 0.upto(last) { | i | yield i, get_string(i) } when 3 0.upto(last) { | i | yield i, get_string(i), get_item_data(i) } else raise ArgumentError, "Invalid number of block parameters" end end This method works well if used di...
2012 Aug 01
2
How to increase lenght of axis according input data?
Hi, I am working on barplot. I need to plot x-axis but scale on x axis is very upto 15 while my data is upto 19. pdf("image.pdf", width=10 , height =13) par(mar=c(5,22.5,2,2)) barplot(t(data[,2:3]), beside=TRUE, col=c(rgb(.537, .769, .933),rgb(.059, .412, .659)), width = 1, horiz=TRUE,cex.names=.9, border ="white",las=1, cex.axis= 1, cex.lab=1.2) legend(&quo...
2006 Aug 02
0
[PATCH] xenstore-chmod
...ode [modes...]>", progname); #endif } @@ -78,10 +80,61 @@ do_rm(char *path, struct xs_handle *xsh, } #endif +#if defined(CLIENT_chmod) +#define PATH_SEP ''/'' +#define MAX_PATH_LEN 256 + +static void +do_chmod(char *path, struct xs_permissions *perms, int nperms, int upto, + int recurse, struct xs_handle *xsh, xs_transaction_t xth) +{ + int ret; + + if (!path[0]) + return; + + ret = xs_set_permissions(xsh, xth, path, perms, nperms); + if (!ret) + err(1, "Error occurred setting permissions on ''%s''", path); + + if (upto) { +...
2003 Jun 24
3
Greetings I'm trying to install FreeBSD on a HP Cluster Server. But when I boot with the CD's ( 4.4, 4.8 & 5.0 ), it will boot all the way upto "Wait 15 seconds for SCSI devices to settle" and then it immedialty give the following message:
Greetings I'm trying to install FreeBSD on a HP Cluster Server. But when I boot with the CD's ( 4.4, 4.8 & 5.0 ), it will boot all the way upto "Wait 15 seconds for SCSI devices to settle" and then it immedialty give the following message: (noperiph:sym0:0:-1:-1):SCSI BUS reset delivered. (noperiph:sym1:0:-1:-1):SCSI BUS reset delivered. After this the machine is basically unresponsive/dead. Any idea what could be causing th...
2006 Jun 21
4
Yet another data structure + pack/unpack question (win32-service)
...handle_scm, SC_ENUM_PROCESS_INFO, SERVICE_WIN32 | SERVICE_DRIVER, SERVICE_STATE_ALL, service_buf, service_buf.size, bytes_needed, services_returned, resume_handle, group ) if bool num_services = services_returned.unpack(''L'').first index = 0 1.upto(num_services){ |num| info = service_buf[index, enum_service.size-1] service_name = info[0,4].pack(''p'') # boom! index += enum_service.size } end Regards, Dan
2019 Feb 16
0
[PATCH] VMCI: Support upto 64-bit PPNs
On Fri, Feb 15, 2019 at 04:32:47PM +0000, Vishnu DASA wrote: > diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h > index b724ef7005de..eaa1e762bf06 100644 > --- a/include/linux/vmw_vmci_defs.h > +++ b/include/linux/vmw_vmci_defs.h > @@ -45,6 +45,7 @@ > #define VMCI_CAPS_GUESTCALL 0x2 > #define VMCI_CAPS_DATAGRAM 0x4 > #define
2019 Feb 21
0
[PATCH] VMCI: Support upto 64-bit PPNs
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Thu, Feb 21, 2019 at 07:26:29PM +0000, Vishnu DASA wrote: > Hi Greg, > Sounds like a good idea to use the BIT() macro but
2009 Apr 01
1
SAS Institute to invest upto $20 m with R Project
A SAS spokesperson has confirmed to this blog that they have invested in the R ?Core project to help build next generation algorithms . Details are sketchy but indications of some shift on cloud hosted SAS ,called SaaS are emerging.Also includes some details on Jim Davis ,SVP SAS marketing's statement on BI and Anne Milley having a new assignment within SAS Institute. Read more here -
2005 Jun 09
3
Understanding of HTB classes
Hi all, I have configured HTB classes on my public interface. I have split the bandwidth among two subclasses say 1:2 and 1:3. Lets say if I configure the rate limit of say 1:2 as 250kbps with a ceil setting of 1000kbps, I presume it means that the class can have bandwidth upto 1000kbps, provided the bandwidth is unused, if not it is assured a bandwidth of 250kbps. Is my understanding correct in this regards when it comes to unbounded classes? Please let me know, Thanks and Regards, Vinod C
2008 Feb 15
0
Apache2 crashes, MySQL uses upto 90% CPU
Hi everyone, I am running CentOS 4.6 and use the centosplus repo. Apache version 2.0.59 and MySQL 5.0.54 and for the past few days Apache 2 has been crashing randomly. The CPU usage has been maxing out (The machine has 2 x Xeon processors, with 4Gb RAM) and there are many httpd processes that appear to be defunct. I read around and found that logrotate may be crashing Apache if it doesn't
2002 Aug 08
0
RE: rmultinom
...orst problems. As a suggestion, I've included code for a hybrid. Underscore-haters may wish to stop reading here :) # first, two standard functions of mine: these could go inside or be coded explicitly, of course # Avoid unintended behaviour with : when 2nd arg is lower than 1st assign( '%upto%', function( from, to) if( from <= to) from:to else numeric( 0)) # Trim tail of vector clip_ function( x, n=1) x[ 1 %upto% ( length( x) - n)] rmultinom_ function( n, size, prob, method=if(k>size) "tabulate" else "sucbin") { # returns a n X length( prob) matrix of i...
2006 Nov 12
7
I think a simple question
I have index ( of a vector ) values of say tempin<-c(1 31 61 91 121 all the way upto 1411) What I want is a function that takes in a number say, x = 5, and gives me an new vector of tempout<-1 6 31 36 91 96 121 126 .......... 1411 1416 This can't be so hard but I can't get it and I've honestly tried. Obviously, tempin + 5 gives me the missing values but I...
2006 Jun 06
4
pls help me regarding Maths round up function.....
Hi, I have some values on my webpage displaying like 1.22333333333 2.33333344444 2.33377777777 etc. Here I want to display values upto 2 decimal places correct. i.e, 1.22333333333 should be dislayed as 1.22 2.33333344444 should be dislayed as 2.33 2.33777777777 should be dislayed as 2.34 & so on.... How to do this in ruby????? Is there any function??? Thanx in advance. Prash -- Posted via http://www.ruby-forum.c...
2007 Dec 18
1
How To increase RAMDISK in CENTOS 4
Hi All, I am using Centos4.0 and running Squid Reverse Proxy for image caching , i have configured RAMDISK of 265 MB for one cache folder in preproduction environment for testing now i have upgraded RAM upto 8GB, but when i change ramdisk_size parameter in grub.conf and rebooted the server when i tried to format and mount it doesn't work. Can anyone please help me how to increase RAMDISK size upto 6GB. Thanks Abhishek Chat on a cool, new interface. No download required. Go to http://...
2006 Apr 10
9
Pagination with letter (A B C D ... Z)
Hi there, Is there a neat and easy way to implement pagination with letters rather than numbers eg : A B C D ... Z Rob
2002 Aug 08
0
RE: rmultinom
...gestion, I've included code for a hybrid. Underscore-haters may wish >to stop reading here :) > ># first, two standard functions of mine: these could go inside or be coded >explicitly, of course ># Avoid unintended behaviour with : when 2nd arg is lower than 1st >assign( '%upto%', function( from, to) if( from <= to) from:to else numeric( >0)) > ># Trim tail of vector >clip_ function( x, n=1) x[ 1 %upto% ( length( x) - n)] > >rmultinom_ function( n, size, prob, method=if(k>size) "tabulate" else >"sucbin") { > # returns...
2007 May 07
1
Signaling tones in Speex
In case a system is incapable of fax relay or if it is disabled, one of the easiest and safest options is to go for 40 kbps ADPCM compression (for fax upto 14.4 kbps)..even am new to this problem and the fair bit of seraching which i've done seems to suggest that the standard sloutions are to simply 'bypass' it else compress using ADPCM (40 k for fax upto 14.4 k, 32 k for fax upto 9.6 k and so on), both of which eat up a lot of bandwidth....