Displaying 2 results from an estimated 2 matches for "coder2".
Did you mean:
coder
2010 May 10
6
de-crypting Ruby password with php.
Hello all, I have a client with an older Rails 1.8 app (was recently
upgraded from 1.6) and I need to integrate a php site to use the same
user login creds.
I''m not very versed with Ruby but I think this is the code that
encrypts the password.
[code]
# Encrypts some data with the salt.
def self.encrypt(password, salt)
Digest::SHA1.hexdigest("--#{salt}--#{password}--")
2009 Jun 23
2
Long to wide format without time variable
...4 7
5 5 A05 A05 5 2
Here's the for-loop that's very slow (with or without the if-clauses activated):
ids<-unique(data$id)
ct<-length(ids)
codes<-matrix(0,ct,11)
colnames(codes)<-c("ID","ICD1","Coder1","ICD2","Coder2","ICD3","Coder3","ICD4","Coder4","ICD5","Coder5")
j<-0
for (i in 1:ct){
kkk <- ids[i]
rpt<-data[data$id==kkk,]
j<-max(j,nrow(rpt))
codes[i,1]<-kkk
codes[i,2]<-rpt$ICDCode[1]
codes[i,3]<-rpt$T_Physicia...