search for: method_1

Displaying 8 results from an estimated 8 matches for "method_1".

Did you mean: method1
2009 Mar 17
11
Refactoring module
Dear all Please see the following module, In module SX3 SX4 and SX5 have similar class Tasklist, but inherit from different class. I will use the following code to connect to different data sources RemoteSX3Model.establish_connection sx3_hash RemoteSX4Model.establish_connection sx4_hash RemoteSX5Model.establish_connection sx5_hash How can I refactor my code in module to look simpler? Thank you
2008 Feb 03
1
Defer multiple methods within the same worker to the thread pool?
Within a threaded worker, I would like to have multiple methods. Will the following code work? def method_1(args) thread_pool.defer(args) do |args| #work end end def method_2(args) thread_pool.defer(args) do |args| #work end end . . . or, should I have one "meta"-method and pass which sub-method to perform via args? def meta_method(args) thread_pool.defer(arg...
2015 Apr 20
2
NSLCD works, do I need RFC2307 extensions enabled in AD as well?
...le? As I mentioned my PDC is a Windows box and this Samba server is a member server. I am trying to keep this as simple as possible. Since I am able to see UID/GID information via the method outlined on the Samba wiki https://wiki.samba.org/index.php/Local_user_management_and_authentication/nslcd#Method_1:_Connecting_to_AD_via_Bind_DN_and_password it seems like the missing part is getting winbind to use that information. Can you guide me on the proper approach? Thanks! John
2015 May 31
4
[LLVMdev] Hash Table Virtual Calls with Conflict Resolution Stubs
...caller side to a larger integer hash value (a large enough space in which collisions are assumed not to occur) and then generating a 'conflict resolution stub', which does something like: conflict_resolution_stub: cmp eax, <METHOD 1 HASH> jne .method_2 .method_1: jmp method_1 .method_2: jmp method_2 So in this case 'eax' is being used for conflict resolution and a simple comparison can distinguish the two methods. The nice aspect of this approach is that collisions aren't expected to occur in most cases so the method...
2015 Apr 20
0
NSLCD works, do I need RFC2307 extensions enabled in AD as well?
...a Windows box and this > Samba server is a member server. I am trying to keep this as simple as > possible. > > Since I am able to see UID/GID information via the method outlined on the > Samba wiki > https://wiki.samba.org/index.php/Local_user_management_and_authentication/nslcd#Method_1:_Connecting_to_AD_via_Bind_DN_and_password > > it seems like the missing part is getting winbind to use that information. > Can you guide me on the proper approach? > > Thanks! > > John OK, have a look here: https://wiki.samba.org/index.php/Setup_a_Samba_AD_Member_Server Tha...
2014 Jan 16
3
[LLVMdev] Do all user-written passes have to be run through a PassManager object (called from outside the LLVM infrastructure)?
...several passes that have no pre-requisites for any previous LLVM native passes prior to my own. For those passes, I have verified that at least the following two approaches are equivalent in terms of executing those self-written passes and getting the correct results: #if METHOD_1 PassManager PM; PM.add(new Analyzeind(F)); PM.run(*M); #else //METHOD_2 AnalyzeKind *abk = new AnalyzeKind(F); abk->runOnFuncti...
2015 Apr 17
5
NSLCD works, do I need RFC2307 extensions enabled in AD as well?
Hello all, I've just installed Samba 3.6.6 from the Debian Stable repo. I want to use this linux box as a smb file server for windows clients. I installed NSLCD to allow users in AD to authenticate against my linux server per https://wiki.samba.org/index.php/Local_user_management_and_authentication/nslcd getent passwd and getent group returns domain users with UID mappings like: tempuser
2011 Jul 30
22
Question about Helpers
Studying the RoR 3 Tutorial book by Michael Hartl and on page 345 there''s the code inside the SessionsHelper: _________________________________________________________ module SessionsHelper def sign_in(user) cookies.permanent.signed[:remember_token] = [user.id, user.sault] self.current_user = user end end __________________________________________________________ What is the purpose