Posts

ruby on rails - Sending a signup confirmation email with having to confirm using Devise -

I am planning to handle user authentication with my rail app. I sign up my users and log in immediately Would like to allow these to be received and received confirmation emails. The division has a confirmable module that sends an email, but the user needs to open his mail application, find the email and click on the link that takes them to the site again . I just want to email a confirmation email to the user on which they signed up and so on. Is there a way to do this or I need to resolve myself to deal with ActionMailer (if so, what is a quick and non-complicated example)? Many thanks! - Tony I am very new to planning and railing, but I have given it all the app ) Is set to 2.3.5) and it is working in its original functionality. I'm guessing that some advanced devices can teach you a trick to run it, but I'm going to say That you can easily handle it in any controller's action easily, some Using plain rail action mailer coding ... Here is a link I took...

oop - What's the recommended way to declare fields of a class in JavaScript? -

Is it better to declare fields of a class like this: function myclass () {This.aMethod =} function () {// code}} or such a way: function myClass () {} MyClass .prototype Prototype method, because it is more efficient because it adds function for prototype, which means that the constructor Any object created with it automatically gets that method While the methods of pre / first way should be prepared for every little thing that you do different. Although in reality it depends on the method that you are doing with the law. If you do not need this public method, you can choose options from the this.method or function statement.

session - Sharepoint UserProfileService -

मेरे पास Windows प्रमाणीकरण के अंतर्गत एक शेयरपॉइंट साइट और कस्टम एएसपीएक्स पोर्टल है उसी मशीन के साथ, ऐसा होता है कि मेरा शेयरपॉइंट साइट मुझे अपना चालू लॉगिन लौटा लेता है, जबकि मेरा कस्टम एएसपीएक्स मुझे अपने डोमेन व्यवस्थापक खाते को बदले में लौटाता है। क्या वैसे भी क्या मैं यह सुनिश्चित कर सकता हूं कि दोनों लॉगिन समान हैं? अन्यथा, क्या एक कस्टम एसएसपीएक्स पोर्टल से SPUserProfileService का उपभोग करने के लिए कोई रास्ता नहीं है? मुख्यतः, मुझे कस्टम एस्पक्स पोर्टल की ज़रूरत है ताकि शेयरपॉइंट लॉगऑन आईडी प्राप्त हो सके। फिर भी, मैं अभी भी प्रवेश के लिए संकेतक में AccessDenied.aspx ट्रिगर कर सकता हूं। जब आप कहते हैं "कस्टम एएसपीएक्स पोर्टल ", क्या यह अभी भी SharePoint साइट पर होस्ट किया गया है? उस स्थिति में, आप उपयोगकर्ता कैसे प्राप्त करते हैं? आप उपयोगकर्ता प्राप्त करने के लिए SPContext.Current.Web.CurrentUser का उपयोग कर सकते हैं।

asp.net mvc - Why would I select Moles as my mocking framework? -

I'm looking at several scaffolding structures for ASP.NET and came to Microsoft Moles. It is a part of the Microsoft Research team and was wondering if anyone has chosen a mall such as the other mature mocking framework as Muk. I actually use the Moq and moles in the same testing project I have strength in both and where I use every suitable. Generally, I use MUK for the standard type of AAA testing with validation, and moles is otherwise a 'big cannon' for unknowable things, such as extension method call etc. I love this system, because each test can be as simple and intelligent as possible, even if the funny setup can change a lot from testing to testing.

ssh - Can connect to EC2 as ubuntu user but not as the user i created -

I created a new EBS supported EC2-example and essential key-pair. I am now able to connect with this example as the Ubuntu user. Once I did this, I created another user and added it to the sudoers list, but I am unable to join the example that I created the new user I get the following error I am using the same key to connect with the new user I created. Can anyone help me, am I missing something here? Permission denied (publisher) " OK I think that I have come to know this. The first technique is login by password. It is a thought that log in as Ubuntu user or as root user and go to / etc / ssh / sshd_config Turn on password authentication in Ya and reload /etc/init.d/ssh If you try to connect now, then you have ec2 with that user It is actually not safe. Secondly, you make a key pair and copy the id-rsa.pub file to / home / New-user / .ssh / authorized_keys file and change the permissions for 600 and assign the appropriate user (new user in this case). I f...

Group by SQL with count -

We say we have rows: MyTable ID Name Products ------------------ 1 Adam X2 Adam Y3 Adam J4 Peter A5 Peter B. query Use: eg name, calculation (product) from the Meritable group by name: will be the result: Adam 3 Peter 2 But I would like the result like: 1 Adam x 3 2 Adam y 3 3 Adam J3 4 Peter A2 5 Peter B2 I hope that Ypu knows what I mean, can you help me with that question, thanks for the help, bye You can join the table with a subdirectory run on the table to select the numbers: SELECT a.ID as the id, as the name Name. , a. The product as a product, from ISUNLL (BCCT, 0) Mitebab, a left zone (SELECT Name, COUNT (*) as CNT by name as MyTable GROUP BY) b on.Name = b.Name

sql - How to retrieve large data from oracle database using vbscript -

Now I am working on VBScript to perform some tests. In fact, I want to get a large amount of data from an Oracle database, so I will write the code like this: select from CORE_DB * where MC = '' & amp; Mstr & amp; "Set Mys" = db_execute_query (curconnection, sql) Then I count the rows in myrs , there are 248 rows Then I loop a to retrieve some areas of each line. For from k = 0 to db_get_rows_count (myrs) But then I found that the content of the line k was always equal to k> 133 k = 133 . This creates an error. The db_execute_query function is like function db_execute_query (byRef curSession, SQL) set rs = curSession.Execute ( SQL) db_execute_query = rs end function db_get_rows_count is like function function db_get_rows_count (byRef currS) dim lines Rows = 0 db_get_rows_count = rows cursor Go ahead first. EOP rows = rows + 1 curl. Next front loop db_get_rows_count = end function of rows Like I think, strong> mir...