search for: my_id

Displaying 20 results from an estimated 24 matches for "my_id".

Did you mean: mb_id
2009 Mar 18
3
[LLVMdev] Status of LLVM's atomic intrinsics
...#include <stdio.h> #include <stdlib.h> #define NUM_THREADS 9 #define TCOUNT (1 << 23) #define COUNT_LIMIT (1 << 25) volatile int count = 0; pthread_mutex_t count_mutex; pthread_cond_t count_threshold_cv; void *inc_count(void *t) { int j,i; double result=0.0; long my_id = (long)t; for (i=0; i<TCOUNT; i++) { //void *data = malloc(1); int count2 = __sync_add_and_fetch(&count, 1); /* Check the value of count and signal waiting thread when condition is reached. Note that this occurs while mutex is locked. */ if (count2 == COUN...
2007 Nov 16
3
Route Information
Is there a method to return a hash of the route configuration based on a path? For example: magic_method(''/my_controller/my_action/my_id'') => {:controller => ''my_controller'', :action => ''my_action'', :id => ''my_id''} Thanks! Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &quot...
2006 May 25
1
Question regarding reading arrayvision files in limma
...en I type RG , I get, > RG An object of class "RGList" $R [1] 3 $Rb [1] 6 $G [1] 10 $Gb [1] 14 $targets FileName ndd1_1 ndd1_1.txt ndd1_2 ndd1_2.txt ndd1_3 ndd1_3.txt $source [1] "arrayvision" $genes Block Row Column ID Name 1 1 1 1 my_ID my_Description 2 1 1 2 my_ID my_Description 3 1 1 3 my_ID my_Description 4 1 1 4 my_ID my_Description 5 1 1 5 my_ID my_Description 7195 more rows ... Thus, its not reading the data in the 2 forground and background channels, just the column indices. Co...
2009 Mar 18
0
[LLVMdev] Status of LLVM's atomic intrinsics
...NUM_THREADS 9 > #define TCOUNT (1 << 23) > #define COUNT_LIMIT (1 << 25) > > volatile int count = 0; > pthread_mutex_t count_mutex; > pthread_cond_t count_threshold_cv; > > void *inc_count(void *t) > { > int j,i; > double result=0.0; > long my_id = (long)t; > > for (i=0; i<TCOUNT; i++) { > //void *data = malloc(1); > int count2 = __sync_add_and_fetch(&count, 1); > > /* > Check the value of count and signal waiting thread when condition is > reached. Note that this occurs while mutex i...
2008 Mar 29
3
primary key?
can you use 2 pirmary keys. the standard user_id key exists but i would also like to use another key for my links. i am not sure how to implement this. also i don''t want any auto incrementing of this second primary key that i would like to use for my relationships. if there is a good db, model, relationship tutorial out there i would love to know about it.
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
...config.cache_classes in production.rb, it works fine. The first time you hit the page, it works fine. Upon refresh, it returns that error. This happens with both webbrick and litespeed. The controller code is: def new store_location if request.env["HTTP_REFERER"] params[:my_id] = "survey" if request.env["HTTP_REFERER"].include? "survey" end @question = Question.new @question.answers_container = Array.new(2, "") @question.creator_message = current_user[:note] if logged_in? end In my model, I define the serialized...
2006 Feb 26
1
Help with ruby=>html
Hi! I''m new to ruby and rails and got problems with using basic methods like form_tag or link_to etc to create what i need, i.e. to specify css class or id or name of html elements. I have problem with understanding rails api (it''s just as an example): form_tag(url_for_options = {}, options = {}, *parameters_for_url) what parameters can i pass to form_tag? How to specify
2010 Jun 02
0
Multiple threads writing to the same Starling queue doesn't work?
...39;t find a clear answer to this: is it possible/correct to have several threads write to the same Starling queue at the "same time"? It doesn''t seem reliable according to my tests - but maybe I am doing something wrong. If I do: def test_starling FooWorker.asynch_foo_test(:my_id => ''foo'') temp = [] for i in 1..1000 temp << Thread.new(i) {|random_value| do_stuff(random_value)} end temp.each do |t| t.join end end def do_stuff(lvalue) starling = Starling.new(''localhost:22122'') starling.set(''foo'...
2006 Feb 22
8
filtering "tags" via checkboxes - HABTM
...ght would be very appreciated. Code below: Don Here''s an excerpt of the error that might helpful. Parameters: {"commit"=>"Show Tracks", "moods"=>["1", "2"]} MOODS_CONTROLLER.RB def results params[:moods].each do #@my_id=mood end mood = Mood.find(4) # hard coded for a single query. @tracks_by_mood = mood.tracks end LIST.RHTML <h1>Moods</h1> <p>Select a mood or moods below to see a list of track with those moods</p> <ul> <%= start_form_tag :action => ''...
2009 Jul 27
1
[PATCH] mboot using module path
...irName resb FILENAME_MAX + diff -u -r -X nodiff syslinux-3.82-orig/core/extlinux.asm syslinux-3.82/core/extlinux.asm --- syslinux-3.82-orig/core/extlinux.asm 2009-06-09 10:19:25.000000000 -0700 +++ syslinux-3.82/core/extlinux.asm 2009-07-24 12:19:45.000000000 -0700 @@ -25,6 +25,8 @@ ; my_id equ extlinux_id ; NASM 0.98.38 croaks if these are equ's rather than macros... +DIRNAME_MAX_LG2 equ 8 ; log2(Max dirname size Including final null) +DIRNAME_MAX equ (1 << DIRNAME_MAX_LG2) FILENAME_MAX_LG2 equ 8 ; log2(Max filename size Including final nul...
2006 May 06
1
IPsec with racoon2
..._auth_alg { hmac_sha1; hmac_md5; }; }; sa esp_01 { sa_protocol esp; esp_enc_alg { aes128_cbc; 3des_cbc; }; esp_auth_alg { hmac_sha1; hmac_md5; }; }; # biosa-vm1.ch.genedata.com remote biosa-vm1.nowhere.com { acceptable_kmp { ikev2; }; ikev2 { my_id fqdn "biosa-vm4.nowhere.com"; peers_id fqdn "biosa-vm1.nowhere.com"; peers_ipaddr 172.20.36.52 port 500; kmp_enc_alg { aes256_cbc; aes192_cbc; 3des_cbc; }; kmp_prf_alg { hmac_md5; hmac_sha1; aes128_cbc; };...
2006 Feb 14
1
Firefox java script error in prototype.js
..."slave_id_list"> <%= select("slave", "id", @slave) %> </div> <%= observe_field("master[id]", :frequency => 0.25, :update => "slave_id_list", :url => {:action => :update_slave_select}, :with => "''my_id=''+value") %> also I made: def index @master = ... @slave= ... end def update_slave_select @slave= .... render(:partial => ''select'') end and in _select.rhtml: <%= select("slave", "id", @slave) %> This works fine in intern...
2011 Apr 22
0
ActionMailer : Not able to send out mails
Hello, I have the following code in my environment/development.rb config.action_mailer.raise_delivery_errors = true; config.action_mailer.delivery_method = :smtp; config.action_mailer.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "my_id-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org", :password => "secret", :authentication => :plain, :enable_starttls_auto => true, :domain => "localhost", } An email is being generated by the call to the mailer model from one of my controllers. However, i am...
2006 Apr 06
0
Using insertion.after w/builder
...); $("my_groupbox").appendChild(groupbox); } </script> I would like to use insertion.after instead of "$("my_groupbox").appendChild(groupbox);" to insert the DOM fragment I created w/builder. I''ve tried "new Insertion.After("my_id", groupbox);", but it doesn''t work. I''ve also tried to use groupbox.innerHTML and while I do get the innerHTML of the fragment to appear, I really need the whole DOM fragment. Any ideas on how to do this? Thanks, Jeff
2006 Feb 12
6
Including another helper
I need to include another helper module apart from the normal two (ApplicationHelper and [controllername]Helper). The inclusion needs to be dynamic and based on external parameters (ie what helper that get included differ from request to request). Is it possible? How? /Marcus
2011 Mar 26
2
How to deserialize an array from XML
Hi, to serialize an array to xml we can use: an_array = [ 1, 2, 3] an_array.to_xml But to I can''t find a way to convert back XML to array. I didn''t find a method Array.from_xml like Hash.from_xml. Any ideas? Thanks, Gustavo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email
2012 Sep 26
0
[LLVMdev] Modifying address-sanitizer to prevent threads from sharing memory
...tiples of 8, quicker/smaller == > > shadow byte = short-id: 0 = main id > 1-254: short-ids > 255: unallocated > > ShadowAddr = (Addr >> 3) + offset; > k = *ShadowAddr; > > * Thread/plugin code: > > if (k != my_id) // allocated/set from different thread > ReportAndCrash(Addr); > > > * Main code: > > if (k != 0xFF) // unallocated memory > ReportAndCrash(Addr); > > > === Stack part === > > This part would be different depending on whether there's a 1-to-1 &...
2008 Jul 21
6
form_for and select ( => f.select)
Hi All I''m trying to combine the from_for and select helpers Right now I have form_for :service, :url => ...... do |f| select("abc", "xyz_id", @my_arr.collect {|item| [ item, "bla" ] }, {:prompt => "opt1"} ) .... end What I want to do is something like .... f.select("abc", "xyz_id", @my_arr.collect {|item|
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware to address Greg's and all other's code review comments. Summary of changes: - Rebase our linux kernel tree from v3.5 to v3.7. - Fix all checkpatch warnings and errors. Fix some checkpatch with -strict errors. This addresses Greg's comment: On 15 Nov 2012
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware to address Greg's and all other's code review comments. Summary of changes: - Rebase our linux kernel tree from v3.5 to v3.7. - Fix all checkpatch warnings and errors. Fix some checkpatch with -strict errors. This addresses Greg's comment: On 15 Nov 2012