search for: secretcod

Displaying 2 results from an estimated 2 matches for "secretcod".

Did you mean: secretcode
2012 Oct 17
1
generate 10 UUID records and save it it database in rails
...e database. Now I am generating only one unique id. Can this be done in the model in this way. Or do I need to write a helper file for that?? def generate_unique_token=(value) self.secret = Base64.encode64(UUIDTools::UUID.random_create)[0..8] end In my controller........... def create @secretcode= Secretcode.new(params[:secretcode]) @user= User.new(params[:user]) @secretcode.user_id=@user @secretcode.generate_unique_token=params[:secretcode][:secret] if @secretcode.valid? @secretcode.save redirect_to secretcodes_path else render ''new'...
2007 Aug 23
1
Hints & examples for content creators & packagers
...finest, along with technical details of how the speex files were created? eg: # interview recorded in an igloo # using builtin mic on a microsoft xpod at 48kHz # processed using sux 5.5: sux -l3 -m300 -r -nfg talk48kHz.wav talk4kHz.wav # encoded using speex 3.0: speexenc --vad --vbr --secretcode talk4kHz.wav talk.spx ... and then attach those details to the spx file as comments. Wouldn't it be worth creating even 1 good example to replace what's being distributed by the millions in Ubuntu? -- screech squawk wail