similar to: RE: Applying list-item format depending on action (Diego Scataglini)

Displaying 20 results from an estimated 1000 matches similar to: "RE: Applying list-item format depending on action (Diego Scataglini)"

2006 May 05
1
Sorting a hash
Quick Prototype.js hash question. Given: MyHash = {"Alpha" : {name:"Foo",val:3}, "Delta" : {name:"Bar",val:2}, "Beta" : {name:"Baz",val:4} } I want to display this set ordered by key - Alpha,Beta,Delta and by val - 2,3,4 Prototype.js helps with the hash: $H(MyHash).keys().sort() will give me Alpha, Beta, Delta but I''ve not
2016 Dec 01
0
clang error: static_assert failed "Cache the hash code or make functors involved in hash code and bucket index computation default constructible"
Hi, Consider below test case: 1 #include <unordered_map> 2 3 using key=const int; 4 struct Myhash { 5 Myhash() = default; 6 std::hash<int> hash_int_t; 7 inline size_t operator()(const key& x) const throw() { 8 return hash_int_t(x); 9 } 10 }; 11
2006 Feb 15
3
Applying list-item format depending on action
What would be the best way to do this? I have a list and I want one item to be underlined (depending on the action that I am on). Do I?: Have a bunch of if statements: if :controller => ''admin'', :action => ''list'' <li id="current">Pages</li> else <li>Pages</li> end What do you think? Is there a
2006 Apr 09
1
http request, hash table
Hello, My problem is that I cannot figure out how to format data in the http post request using external C++ application, so then I could write in my controller: @myHash = params[:person] print ''Name: '', @myHash[:name] or @name = params[:person][:name] Thanks in advance! -- Jakub P. Nowak
2011 Feb 27
10
How to store the same key multi times in a Hash ?
given an Arra tags[] I need to produce a resulting Hash as following .. { "$in" => [tags[0]], "$in" =>[tags[1], ...} in which the key should be always the same and the value being an Array I tried this : myHash = {} tags.each do |tag| h = {"$in" => [tag]} myHash.merge!(h) end but the merge! is only
2007 Aug 14
0
Does anybody know why activeRecord is not built on top of ruby-dbi?
I am curious about the opinionated opinion behind the decision.Was it performance? Complexity? Databases support or something else. I recently used Ruby:dbi and liked all the metadata that comes with the data. Performance looked good but I didn''t benchmark it so I don''t know which one execute faster. If I am not wrong Ruby:dbi offers true parameters binding which would be nice
2006 Apr 19
2
how to pass a hash as a parameter in link_to_remote
When using link_to_remote, I''d like to pass along some auxiliary data in the request. It''s a hash of dynamic data that can change with each request. But I get an error when rails trying to "stringify" the hash. For the regular link_to, it works because it turns the hash into a regular GET-like query string. I''m expecting to be able to get my hash as
2003 Apr 08
0
Re: WinXP DFS problems in samba 2.2.8
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 8 Apr 2003, werner maes wrote: > Can you tell me where to find the change that is necessary to enable dfs > on xp clients in samba 2.2.8? Has this fix been introduced in the latest > 2.2.8a? Here's the patch to fix msdfs & WinXP clients. This was not included in 2.2.8a (only security fixes there), but is already checked
2023 Mar 17
1
Custom SASL authentication
Hello, I'm looking for a good way to apply a custom hash to passwords.? My hope is to add passwords to a (MySQL) database: INSERT INTO users (user='joblo', pass=MYHASH('plain-password').. For SASL authentication, my thought first was to apply the same hash to the issued password and compare it with the hashed password in the database.? I soon discovered the sql driver
2013 Oct 14
1
Samba is still crashing
I have had a problem for a couple of weeks now. I get very regular crashes on two of my three Domain Controllers. I just updated to 4.1.0 and I am still getting the same problem. I have added panic action = /bin/sleep 99999 to my config. Here is a back trace for the crash. (gdb) bt #0 0x003c3424 in __kernel_vsyscall () #1 0xb76fa363 in __waitpid_nocancel () at
2006 May 29
0
smbd hanging at BDC
Hi all I have a samba pdc(master LDAP Server) with 1 BDC(slave ldap server), the version of Samba at PDC and BDC is samba 3.0.21c. At BDC , there are some shares declared. The shares are used to store Fox pro files. The client uses foxpro and opens DBF file in the share declared. and also Roaming profiles is also used at BDC. The problem is samba hangs frequently. Once rebooted works for some
2010 Jul 12
13
ANNOUNCE: Puppet 2.6.0 - Release Candidate 2 available!
Welcome back again to the Puppet release cycle with the long-awaited eleventy times better RC2 release. The 2.6.0 release is a major feature release and includes a huge variety of new features, fixes, updates and enhancements. These include the complete cut-over from XMLRPC to the REST API, numerous language enhancements, a complete rewrite of the events and reporting system, an internal Ruby
2006 Apr 03
0
Samba Process Getting Hanged
Hi all I have a samba pdc with ldap backend (Samba 3.0.21c with openldap 2.3.19). We have Another Linux System as Domain Member Server which we use as file server (samba 3.0.21c) . The Operating System is Redhat Enterprise Linux 4 with kernel 2.6.9-5 smp kernel. The Hardware Architecture of our file server is Inter Xseries 226, 32-bit , 3.GHz Processor 1Gb RAM 72-GB Scsi Hard-disk We have 1) Too
2006 Mar 03
0
Schedule and Conference Highlights for San Diego Data Mining Conference, March 30-31, San Diego, CA
DATA MINING 2006 CONFERENCE sponsored by Salford Systems San Diego, California: March 30 - March 31, 2006 (with a Welcome Reception on March 29th at 6PM) Two Full Days of Real-World Case Study Presentations Schedule: www.salforddatamining.com/docs/schedule06.pdf <http://www.salforddatamining.com/docs/schedule06.pdf> *Conference Highlights:* * State-of-the-Art Research from Leading
2010 May 12
1
Rails 3: perform controller action upon selecting menu item (UJS?)
In Rails 3, I have a form that has a menu on it. I would like to render an area containing text fields within the form differently depending on what''s selected in the menu. Prior to Rails 3, one way it appears I could do this is by using observe_field on the menu and call an action in my controller that renders the appropriate partial which could then be swapped into a div in my form.
2005 Oct 14
7
validates_confirmation_of not working
Hello, I''m having a weird problem in my user model. For the change_password method I have the following: def change_password(oldpass, newpass, confirmation) oldpass = self.class.myhash(oldpass) reload passhash = self.password self.password = newpass self.password_confirmation = confirmation if valid? and oldpass == passhash save! else # valid?
2006 Apr 04
1
San Diego Rails Group?
Anyone in San Diego interested in organizing one?
2006 Apr 21
0
Rails Develper Available, San Diego or Telecommute
Hello I am somewhat new to rails but not new to web development -- I have over 10 years in software devlopment and web development.... I''m looking to do my first commercial project in rails and I am availble for telecommute or onsite assignments (onsite if they are in San Diego) If interested please email for more info Jordan
2012 Aug 24
0
San Diego, CentOS Drinks : Aug 30th at 6:30pm
hi Guys, I'm going to be in San Diego next week for a few days ( at LinuxCon 2012 ). And we've managed to get an evening drinks session organised on the 30th Aug evening from 6:30pm onward. And the beer is sponsored by the guys at Expensify.com! Also, I will have some CentOS Stickers and some CentOS T-Shirts to give away. We need to know numbers and confirm details, so please make sure
2012 May 16
0
[LLVMdev] announce: The C Conference; San Diego, CA; August 28th
The first C Conference is happening in San Diego, CA on August 28th 2012. It is focused on the C programming language and modern developments in that ecosystem. The conference is co-located with LinuxCon and Linux Plumbers Conference. http://www.cconf.org/ The "Reverse CFP" is open now and tickets are available. Let us know what you want to see at the conference.