search for: message_typ

Displaying 20 results from an estimated 30 matches for "message_typ".

Did you mean: message_type
2006 Aug 10
4
Speeding up ActiveRecord creation?
My completely empty model (no validation callbacks etc etc) takes an average of 0.05 seconds to create, at least according to Benchmark.realtime{200.times{Message.create(:from => "me@here.com", :message_type => ''email'', :subject => "hello", :body => "goodbye", :sent_at => Time.now)}}/200 That''s a little slower than I''m comfortable with for our needs. Is there anything I can do to improve this? I''m running Edge Rails, my...
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
...ivate_messages.id and mu.to_status = ''unread'') or (priv ate_messages.user_id = 1061 and private_messages.user_status = ''unread''))) SQL (0.5ms) SELECT COUNT(*) AS count_id FROM "private_messages" WHERE ("private_messages".user_id = 1061 AND (message_type = ''draft'')) SQL (0.6ms) BEGIN Person Load (0.9ms) SELECT "people"."id", "people"."first", "people"."last", "people"."entity_id", "people"."user_id" FROM "people" WH...
2012 Feb 14
2
Model with 2 foreign keys
Hi All, I''d like to integrate a simple user-oriented messaging system into my app. I have a Message model, with :from_user_id, and :to_user_id (for the user that sent and the user that recieved the message). Obivously, (User) has_many :messages will fetch the messages that a certain user has created, but not the ones that they have been sent. Currently, I have this: has_many :messages,
2011 Aug 15
9
[PATCH 0/8] Staging: hv: vmbus: Driver cleanup
Further cleanup of the vmbus driver: 1) Cleanup the interrupt handler by inlining some code. 2) Ensure message handling is performed on the same CPU that takes the vmbus interrupt. 3) Check for events before messages (from the host). 4) Disable auto eoi for the vmbus interrupt since Linux will eoi the interrupt anyway. 5) Some general cleanup. Regards, K. Y
2011 Aug 15
9
[PATCH 0/8] Staging: hv: vmbus: Driver cleanup
Further cleanup of the vmbus driver: 1) Cleanup the interrupt handler by inlining some code. 2) Ensure message handling is performed on the same CPU that takes the vmbus interrupt. 3) Check for events before messages (from the host). 4) Disable auto eoi for the vmbus interrupt since Linux will eoi the interrupt anyway. 5) Some general cleanup. Regards, K. Y
2007 Dec 13
16
"Tricks" for testing after_create callback???
...'s saved. Spec::Mocks::MockExpectationError in ''Message from anyone should be sent on save'' Mock ''Class'' expected :deliver_secret_santa with (#<Message id: nil, subject: "Subj", body: "hi", sender_id: 343839476, recipient_id: 21341157, message_type: nil, created_at: nil, updated_at: nil>) but received it with (#<Message id: 1, subject: "Subj", body: "hi", sender_id: 343839476, recipient_id: 21341157, message_type: nil, created_at: "2007-12-12 21:53:16", updated_at: "2007-12-12 21:53:16">) I f...
2009 Feb 19
4
[Bug 1558] New: Sftp client does not correctly process server response messages after write error
...99% 199MB 6.7MB/s 00:00 ETACouldn't write to remote file "/bigfile": Permission denied ID mismatch (6404 != 3) As can be seen from my server log the permission denied error is returned to message id 6403 Got message_type SSH2_FXP_WRITE write id 6403 handle 1 off 209715200 len 32768 ERROR: Attempt to write greater than Max file size, offset: 209715200, data length:32809 Message id 3 is a close request Got message_type SSH2_FXP_CLOSE close id 3 handle 1 However there are several write requests (id 6404...
2017 Feb 01
15
[PATCH 00/14] hyperv: vmbus related patches
This is a rebase/resend of earlier patches. I skipped the pure cosmetic patches for now. Mostly this is consolidation earlier changes, removing dead code etc. The important part is the change for allowing a vmbus channel to get callback directly in interrupt mode; this is necessary for NAPI support. Stephen Hemminger (14): vmbus: use kernel bitops for traversing interrupt mask vmbus: drop
2017 Feb 01
15
[PATCH 00/14] hyperv: vmbus related patches
This is a rebase/resend of earlier patches. I skipped the pure cosmetic patches for now. Mostly this is consolidation earlier changes, removing dead code etc. The important part is the change for allowing a vmbus channel to get callback directly in interrupt mode; this is necessary for NAPI support. Stephen Hemminger (14): vmbus: use kernel bitops for traversing interrupt mask vmbus: drop
2001 Feb 13
1
X11 device doesn't handle destroy events correcly (PR#848)
...ic int numX11Devices = 0; /********************************************************/ --- 146,151 ---- *************** *** 619,632 **** xd->windowHeight = event.xconfigure.height; xd->resize = 1; } else if ((event.type == ClientMessage) && ! (event.xclient.message_type == _XA_WM_PROTOCOLS)) ! if (!inclose && event.xclient.data.l[0] == protocol) { ! XFindContext(display, event.xclient.window, devPtrContext, &temp); dd = (DevDesc *) temp; ! KillDevice(dd); } } static void R_ProcessEvents(void *data) --- 619,652 ----...
2011 Feb 22
4
[PATCH 1/6] Staging: hv: vmbus_drv.c Replaced DPRINT with native pr_XXX
...707..a560a80 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -279,22 +279,16 @@ static int vmbus_on_isr(struct hv_driver *drv) msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT; /* Check if there are actual msgs to be process */ - if (msg->header.message_type != HVMSG_NONE) { - DPRINT_DBG(VMBUS, "received msg type %d size %d", - msg->header.message_type, - msg->header.payload_size); + if (msg->header.message_type != HVMSG_NONE) ret |= 0x1; - } /* TODO: Check if there are events to be process */ page_addr = hv_context....
2011 Feb 22
4
[PATCH 1/6] Staging: hv: vmbus_drv.c Replaced DPRINT with native pr_XXX
...707..a560a80 100644 --- a/drivers/staging/hv/vmbus_drv.c +++ b/drivers/staging/hv/vmbus_drv.c @@ -279,22 +279,16 @@ static int vmbus_on_isr(struct hv_driver *drv) msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT; /* Check if there are actual msgs to be process */ - if (msg->header.message_type != HVMSG_NONE) { - DPRINT_DBG(VMBUS, "received msg type %d size %d", - msg->header.message_type, - msg->header.payload_size); + if (msg->header.message_type != HVMSG_NONE) ret |= 0x1; - } /* TODO: Check if there are events to be process */ page_addr = hv_context....
2013 Jul 02
0
[LLVMdev] clang static analyzer annotations
...d the code might look like this: protobuf_AddDesc_manifest_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "manifest.proto"); GOOGLE_CHECK(file != NULL); Affine3f_descriptor_ = file->message_type(0); Resulting in a warning from the analyzer on the last line that file could be NULL. Is there a way to annotate these macros so that the analyzer doesn't flag the code? I realize that's not strictly correct, since the macros don't exit, but, for better or for worse, the code is che...
2006 Jul 04
0
Best way of storing and recalling data for display?
...ay can get extra messages added to it following an ajax call. The set up looks something like this: <script type="text/javascript" charset="utf-8"> <% @messages.each do |msg| html_insert = escape_javascript( "<span class=\"messageType\">#{msg.message_type}</span> <span class=\"messageFieldLabel\">From:</span><span class= \"messageField\">#{h msg.from}</span> <span class=\"messageFieldLabel\">Subject:</span><span class= \"messageField\"><strong>#{h...
2008 Jul 29
1
closing View windows after multiple View(x) crashes
> sessionInfo() R version 2.8.0 Under development (unstable) (2008-07-07 r46046) i686-pc-linux-gnu locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils
2012 Sep 20
17
[PATCH 0/4] Add V4V to Xen (v6)
...do_v4v_op - Add padding to make sure all the structures are 64 bits aligned - Replace [0] with [] v4 changes: - Stop using ssize_t, use long instead - Return -MSGSIZE for message bigger than 2GB - Fixup size handling - Rename protocol with message_type to avoid the confusion with the IP protocol flag - Replaced V4V_DOMID_ANY value with DOMID_INVALID - Replaced v4v_pfn_t with xen_pfn_t - Add padding to struct v4v_info - Fixup hypercall documentation - Move V4V_ROUNDUP to v4v.c - Remove v4v...
2006 Nov 07
2
Crash when embedding R X11 windows
...devPtrContext, &temp)) return; dd = (NewDevDesc *) temp; xd = (newX11Desc *) dd->deviceSpecific; if (xd->windowWidth != event.xconfigure.width || @@ -614,8 +614,8 @@ else if ((event.type == ClientMessage) && (event.xclient.message_type == _XA_WM_PROTOCOLS)) if (!inclose && event.xclient.data.l[0] == protocol) { - XFindContext(display, event.xclient.window, - devPtrContext, &temp); + if (XFindContext(display, event.xclient.window, + devPtrContex...
2010 Nov 01
24
[PATCH 01/10] staging: hv: Convert camel cased struct fields in channel_mgmt.h to lower cases
...(channel); } else { if (!start) diff --git a/drivers/staging/hv/channel_mgmt.h b/drivers/staging/hv/channel_mgmt.h index d16cc08..12f30af 100644 --- a/drivers/staging/hv/channel_mgmt.h +++ b/drivers/staging/hv/channel_mgmt.h @@ -33,60 +33,60 @@ /* Version 1 messages */ enum vmbus_channel_message_type { - ChannelMessageInvalid = 0, - ChannelMessageOfferChannel = 1, - ChannelMessageRescindChannelOffer = 2, - ChannelMessageRequestOffers = 3, - ChannelMessageAllOffersDelivered = 4, - ChannelMessageOpenChannel = 5, - ChannelMessageOpenChannelResult = 6, - ChannelMessageCloseChannel =...
2010 Nov 01
24
[PATCH 01/10] staging: hv: Convert camel cased struct fields in channel_mgmt.h to lower cases
...(channel); } else { if (!start) diff --git a/drivers/staging/hv/channel_mgmt.h b/drivers/staging/hv/channel_mgmt.h index d16cc08..12f30af 100644 --- a/drivers/staging/hv/channel_mgmt.h +++ b/drivers/staging/hv/channel_mgmt.h @@ -33,60 +33,60 @@ /* Version 1 messages */ enum vmbus_channel_message_type { - ChannelMessageInvalid = 0, - ChannelMessageOfferChannel = 1, - ChannelMessageRescindChannelOffer = 2, - ChannelMessageRequestOffers = 3, - ChannelMessageAllOffersDelivered = 4, - ChannelMessageOpenChannel = 5, - ChannelMessageOpenChannelResult = 6, - ChannelMessageCloseChannel =...
2010 Nov 01
5
[PATCH 03/10] staging: hv: Convert camel cased struct fields in hv.h to lower cases
From: Haiyang Zhang <haiyangz at microsoft.com> Convert camel cased struct fields in hv.h to lower cases Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com> Signed-off-by: Hank Janssen <hjanssen at microsoft.com> --- drivers/staging/hv/hv.c | 95 +++++++++++++++++++++++--------------------- drivers/staging/hv/hv.h | 20 +++++----- drivers/staging/hv/vmbus.c |