Displaying 12 results from an estimated 12 matches for "open_tim".
Did you mean:
open_time
2006 Jun 14
2
setting selected option in select
...; ],
[ "11:15pm", "23:15" ],
[ "11:30pm", "23:30" ],
[ "11:45pm", "23:45" ]
].freeze
In my controller I set
<%time_choices = Storeday::TIME_TYPES%>
Then I have a select helper
<%=select("storeday", "open_time", time_choices, options =
{:selected => "1:00"})%>
Using this code I can''t get the selected to default to the time I want.
Any suggestions??
Thanks
Alex
--
Posted via http://www.ruby-forum.com/.
2016 Mar 21
0
[PATCH 0/1] ipconfig DHCP bug
...ev,
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
bootp.ciaddr = INADDR_ANY;
- bootp.yiaddr = dev->ip_addr;
+ bootp.yiaddr = INADDR_ANY;
+ bootp.flags = htons(0x800);
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
2019 Jan 18
0
[klibc:master] ipconfig: Set broadcast when sending DHCPREQUEST and DHCPDISCOVER
...ages we're likely
+ * to send as a DHCP client: DHCPDISCOVER, DHCPREQUEST, DHCPDECLINE,
+ * DHCPINFORM, DHCPRELEASE
+ * cf. RFC2131 section 4.1.1, table 5.
+ */
+ bootp.yiaddr = INADDR_ANY;
bootp.giaddr = INADDR_ANY;
+ bootp.flags = htons(0x8000);
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
2011 Jul 18
2
ipconfig:About the length of 'options' field of DHCP packet
...ff --git a/usr/kinit/ipconfig/bootp_proto.c b/usr/kinit/ipconfig/bootp_proto.c
index f2cc90c..19c61ef 100644
--- a/usr/kinit/ipconfig/bootp_proto.c
+++ b/usr/kinit/ipconfig/bootp_proto.c
@@ -212,5 +212,11 @@ int bootp_init_if(struct netdev *dev)
dev->bootp.xid = (uint32_t) lrand48();
dev->open_time = time(NULL);
+ /*
+ * 'process_timeout_event(main.c)' will increment 'fail_count'
+ * only once independent of a failure.
+ */
+ dev->bootp.fail_count = ~0;
+
return 0;
}
diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c
index afd2eca..91dd6...
2010 Mar 16
4
ipconfig: DHCP fixes
Hi,
Here are two fixes for ipconfig/dhcp, the second of them being required for my
dhcp3 server to accept ipconfig's requests.
Thanks,
Louis
Louis Rilling (2):
ipconfig: Fix missing dhcp_end field
ipconfig: Fix null ciaddr on DHCPREQUEST during SELECTING state
usr/kinit/ipconfig/dhcp_proto.c | 4 ++--
usr/kinit/ipconfig/packet.c | 2 +-
2 files changed, 3
2007 Dec 10
1
[git patch] m-i-t support, ipconfig fix
...hcp_proto.c
@@ -161,7 +161,7 @@ static int dhcp_send(struct netdev *dev, struct iovec *vec)
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
bootp.ciaddr = dev->ip_addr;
- bootp.giaddr = dev->bootp.gateway;
+ bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
commit fbf8aa559d25685eea12248c76bcc983c68306b2
Author: maximilian attems <max at stro.at>
Date: Sat Sep 22 23:06:05 2007 +0200
[klibc] remove local insmod.c copy
we want to compile latest module-init-tools against klibc.
i...
2018 Oct 16
2
high cpu load with share_conflict on browsing and opening files
...903)
open_persistent_id : 0x00000000b62ba247
(3056312903)
open_volatile_id : 0x00000000db0729c7
(3674679751)
open_owner :
S-1-5-21-717140398-4153742348-3969525143-1000
open_time : ven ott 12 12:05:10
2018 CEST
create_guid :
00000000-0000-0000-0000-000000000000
client_guid :
10c6dc16-cd61-11e8-8418-c85b76eb6959
app_instance_id :
00000000-0000-0000...
2008 Sep 05
0
initial mntent.h, mount features, ipconfig fixes
...uct netdev *dev, struct iovec *vec)
bootp.htype = dev->hwtype;
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
- bootp.ciaddr = dev->ip_addr;
+ bootp.ciaddr = INADDR_NONE;
+ bootp.yiaddr = dev->ip_addr;
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
commit 959ed5fced3403cba814c819146e8d8251c3d7b1
Author: maximilian attems <max at stro.at>
Date: Fri Sep 5 22:38:22 2008 +0200
[klibc] ipconfig: raise field length for rootpath DHCP option
ipconfig would cut off after 40 bytes, u...
2006 May 27
10
Displaying Hours
Here''s an intersting one:
I have a client who wants to store hours of operation of a business for
their RoR web app. I came up with a solution, but I really don''t like
it.
I have a MySQL table that has these fields
monday_start, monday_end, tuesday_start, tuesday_end, etc., all as time
fields.
That''s all find and dandy. The kicker is, the client wants the hours to
2008 Sep 07
1
[git pull v2] initial mntent.h, mount features, ipconfig fixes
...uct netdev *dev, struct iovec *vec)
bootp.htype = dev->hwtype;
bootp.hlen = dev->hwlen;
bootp.xid = dev->bootp.xid;
- bootp.ciaddr = dev->ip_addr;
+ bootp.ciaddr = INADDR_NONE;
+ bootp.yiaddr = dev->ip_addr;
bootp.giaddr = INADDR_ANY;
bootp.secs = htons(time(NULL) - dev->open_time);
memcpy(bootp.chaddr, dev->hwaddr, 16);
commit 848a8ce349331cd74021cc3b8ea43f9e47c14e50
Author: maximilian attems <max at stro.at>
Date: Fri Sep 5 22:38:22 2008 +0200
[klibc] ipconfig: raise field length for rootpath DHCP option
ipconfig would cut off after 40 bytes, u...
2017 Dec 31
4
[PATCH klibc 0/4] Fixes from Debian and Ubuntu
The following patches come from Debian and/or Ubuntu packages of
klibc.
Ben.
Ben Hutchings (1):
[klibc] run-init: Add dry-run mode
Jay Vosburgh (1):
[klibc] ipconfig: Use separate sockets for DHCP from multiple
interfaces
Mathieu Trudel-Lapierre (1):
[klibc] ipconfig: Set broadcast when sending DHCPREQUEST and
DHCPDISCOVER
YunQiang Su (1):
[klibc] mips: setjmp.S: don't
2003 Dec 01
0
No subject
...ruct *fsp, uint16 port, uint16 op_type)
{
share_mode_entry *e = (share_mode_entry *)p;
e->pid = sys_getpid();
e->share_mode = fsp->share_mode;
e->op_port = port;
e->op_type = op_type;
memcpy((char *)&e->time, (char *)&fsp->open_time, sizeof(struct timeval));
}
It looks like fill_share_mode is simply called with some structure
which is not 8 byte aligned, but only 4 byte aligned (at least the
code looks like that: struct locking_data contains just an int, so it
is 4 byte aligned and 4 byte in size, but fill_share_mode is call...