similar to: Prototype Hash#map & #each

Displaying 20 results from an estimated 5000 matches similar to: "Prototype Hash#map & #each"

2005 Dec 08
2
Prototype.js Hash Methods
Hi, Has anyone seen any documentation on the Hash Object defined in the prototype library? To be precise the following methods - 1. keys 2. values 3. toQueryString 4. inspect 5. Merge I am trying to play around with them and have come up with the following examples - var h = $H({name: "john doe", email: "john-Ch9RrZxMC0c@public.gmane.org", msg: "say hello to
2005 Dec 09
5
Prototype Enumerable, Array and Hash Documentation
Hey guys, I recently published an article documenting some of the more useful and interesting parts of Prototype''s Enumerable, Hash and Array objects. You can find it here: http://encytemedia.com/blog/articles/ 2005/12/07/prototype-meets-ruby-a-look-at-enumerable-array-and-hash If you have any feedback or suggestions, fire away. Cheers, -Justin Palmer
2006 Feb 14
7
onFailure fails?
Hi all, I have this code: new Ajax.Request(''non_existant.file'', { onSuccess:function(){alert("yay");}, onFailure:function(){alert("boo");} }); Why does the onFailure alert never get called? It works fine if I use a real file (onSuccess gets called). Thanks, Douglas
2006 Feb 02
3
dynamic addition of table rows
Hi, I have a table laid out something like this: <table> <thead> <tr> <th>col 1</th> <th>col 2</th> </tr> </thead> <tbody id="tablebody"> <tr> <td>moo</td> <td>moo</td> </tr> <tr> <td>moo</td> <td>moo</td> </tr>
2007 Dec 21
0
pretty neat Mash class (Magic Hash)
class Mash < Hash def method_missing(name, value=nil) key = name.to_s.sub(/[=?!]$/,'''').to_sym self[key] = value if name.to_s[-1,1] == "=" self[key] = Mash.new unless self[key] || value return self[key] end end Its like OpenStruct...so what can you do? require ''pp'' m = Mash.new m.first_name = "john" m.last_name =
2008 Feb 07
3
Adding my own extensions with Elements.addMethods()
When I add my own extensions to DOM elements, is there a way to only add my extensions to the specific types of DOM elements (e.g. SELECT) to which my extensions apply or are intended to operate? Based on the Prototype API documentation (http://prototypejs.org/learn/ extensions), it appears that anytime I extend an element, all the extensions (Prototype''s and my own) are copied to that
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone. I am not sure if this is the right place to post, please redirect me if there is a mailinglist more specifically dealing with prototype.js. After playing around with the very inspiring prototype library I have found a rather annoying thing, that makes the usefulness of the Enumerable mixin for Hashes questionable, if I am not totally wrong (again :-). Here an example:
2007 Apr 17
4
close a div when click out of the div
Hi. I have this question: I have a page with more ugual "GIF" (say ?/Help gif). When I click on one of this giv a "DIV" is showed (one for each gif). And when a div is showed the last div "showed" there must "hide". Ok, no problem. I have do it. My problem is that the div that is showed in this moment must to "hide" when I clink into the document
2006 Jun 20
4
Prototype Array bug??
function CreateTOC(){ var $aTOC = document.getElementsByClassName(''tocitem''); var $temp = ''''; if(isArray($aTOC)){ for($t in $aTOC){ $temp += ''t='' + $t + '', '' + $aTOC[$t].name + ''<BR>''; } $(''test1'').innerHTML = $temp; } } When I run this code
2006 Jul 10
11
prototype hash method
var v1 = { a: ''value for a'', b:''value for b'' } var v2 = { c: ''value for c'', d: function(){some code...} }; var v3 = v2.merge(v1); I''m getting an error doing this... what is wrong?
2007 Aug 21
2
userdb override?
Hi, I used to change the mailbox root for some users using a custom userdb file which contains lines like: doe::20000:200::/u/doe::userdb_mail=mbox:/u/doe/Mail:INBOX=/var/mail/%u The logfiles shows the mail location stays default ( rc15 worked ): --- dovecot: Aug 21 09:43:49 Info: auth(default): master out: USER 250 doe system_user=doe uid=20324 gid=200 home=/u/doe dovecot: Aug
2011 May 04
2
split character vector by multiple keywords simultaneously
Hi. I have a character vector that looks like this: > temp <- c("Company name: The first company General Manager: John Doe I > Managers: John Doe II, John Doe III","Company name: The second company > General Manager: Jane Doe I","Company name: The third company Managers: > Jane Doe II, Jane Doe III") > temp [1] "Company name: The first company
2013 Jul 16
1
2.2.4 - Some questions about and needing help with quota-status
Help! I'm stuck. :-( The config of my experimental setup appears at the end of this message; I'm providing hereafter some more info that may not be immediately obvious. This is dovecot 2.2.4 with changesets 9091d0f2d971 and 2be295a0b64f. All involved databases are sqlite ones. passdb and userdb are devised so as to change usernames. For example, I could have a user with addresses
2017 Jun 19
1
New AD user cannot access file share from member server
On Mon, 19 Jun 2017 15:08:45 +0200 Viktor Trojanovic <viktor at troja.ch> wrote: > Not sure if it matters but here is the AD object of a user with no > issues: > > [root at GJSERVER ~]# ldbsearch -H /var/lib/samba/private/sam.ldb -b > 'ou=office,dc=samdom,dc=example,dc=ch' -s sub > "(&(objectclass=person)(samaccountname=jd))" > # record 1 > dn:
2019 Mar 25
0
Panic
Dovecot-2.3.5, FreeBSD-12 (amd64), I will wait to see coredumps after setting up things to allow it. Mar 24 20:56:08 imap(john.doe at crownkenya.com)<82746><wg80zdqEy+eaTXHr>: Panic: file mempool-system.c: line 137 (pool_system_realloc): assertion failed: (old_size == (size_t)-1 || mem == NULL || old_size <= malloc_usable_size(mem)) Mar 24 20:56:08 imap(john.doe at
2005 Sep 27
0
SMB/LDAP: Confused...
Hi. I have an existing departmental network based on AFS, Kerberos 5 and LDAP. All unixes work nicely, logging in remotely. So, Samba acting as a PDC with OpenLDAP. Now I'd like to interoperate with all windows workstations. I chose the LDAP way, since it's the most flexible and secure way... or at least, it seems to me more flexible than using a single /etc/passwd file on a
2009 Jul 12
1
How to create managesieve core dumps
I've found this in my dovecot.log: ,--[ /path/to/dovecot.log ]-- | Jul 11 01:44:29 dovecot: Info: Dovecot v1.2.1 starting up | ... | Jul 11 01:50:21 auth(default): Info: client in: AUTH 1 PLAIN service=sieve lip=192.168.111.222 rip=192.168.111.122 lport=12000 rport=35084 resp=<hidden> | Jul 11 01:50:21 auth(default): Info: sql(j.doe at
2016 Aug 31
1
Sudden unexplained slowness on share (caused by duplicate UID?)
Hi, We have 5 Samba domain controllers, and 4 file servers. All are 4.2.10-Debian. Our file servers have been working fine until recently (on the 26th), when suddenly access to the \\users.store.example.com\user share (hostname p-cats) became extremely slow. Access to other shares on other machines is fine, and users is 128G total (smaller than other shares). The machine isn't under
2010 Mar 25
1
cmusieve auto-reply and quota
Hi there, I'm quite new to Dovecot, but already can tell that it is a really great work, congrats to the developers! But I'm having a little problem and couldn't figure it out how to solve. First, let me talk about my setup: I'm running Debian 5 (Lenny) with it's default Dovecot (common, pop3 and imap) packages (version 1:1.0.15-2.3+lenny1), I really would like to keep it
2014 Feb 10
0
shared folders
Hi, I can't access a shared folder , when I try to debug doveadm acl debug -u john.doe shared/ a_shared_mail /inbox I receive this message: doveadm acl debug -u john.doe shared/a_shared_mail/inbox doveadm(john.doe): Error: stat(/home/a_shared_mail/Maildir/.inbox) failed: Permission denied doveadm(john.doe): Error: stat(/home/a_shared_mail/Maildir/.inbox) failed: Permission denied