I'm using clearance (http://wiki.github.com/thoughtbot/clearance) for authentication in my rails app. But I'm trying to figure out how to grab the user's ID in a view after logging in.
Any ideas?
How i can check if user has input null/empty string in classic-asp? Right now i am doing this.
If Request.Form("productId") == "" Then
'my code here
End If
But its not working.
Hi there,
I'm seeing web apps implementing limitations for user login attempts.
Is it a security necessity and, if so, why?
For example: you had three failed login attempts, let's try again in 10 minutes!!
thanks :)
I'm attempting to log a user out of facebook with the Facebook JS SDK, however calling:
FB.logout(function(response){
console.log(response);
});
returns:
response.status == "connected"
And only after refreshing the page does the SDK realize that the session has ended. Anyone know what could be causing this behavior? This code previously worked in my application and has recently started behaving this way.
Another example using FireBug:
Hello All,
I am very new to the Mac platform and Objective-C in general and in my application I would like to know how to determine that a user is logging out and perform some actions prior to this. Any info or pointers for this will be greatly appreciated.
Regards,
-Jim
Hi folks
I'm attempting to get a timezone of a user based on area code information that they provided. I discovered the following resource on maxmind:
http://geolite.maxmind.com/download/geoip/api/php/timezone/
I suspect that I could use this with another api that provides the state that an area code belongs to. I'm looking for a simple REST API that provides this info - or a robust scraping routine that achieve the same results.
Thanks in advance!
Hi all
I have a program that creates a small file in the Bin directory for the purpose of tracking a license (that's the intention), all works fine when debugging but I've just realized that when I run it on a IIS server under the anonymous user account (IUSR) the file isn't created as IUSR only has read permission (I know this is correct but drat!).
Can I write to another location under IUSR account or can I run my code under 'Local Service' account?
Thanks
I noticed that programs like Report Builder allow user to set property value or an expression determining property value. I want to the add same functionality to my application. So is there any simple way to do so or do i have to redefine all type converters so that they allow to set expression in addition to their original functionality.
http://img204.imageshack.us/img204/7934/48707358.jpg
I am writing a tomcat app, and have a need to do authentication within the URL like this:
https://user:[email protected]
Except for the life of me i'm not sure how to set it up or able to find the docs to read up on it, clearly my google skills need work.
Can anyone tell me where i should be looking for this kind of info or where to start?
Cheers
Andy
I am writing a user manual and I have come to a discussion with a colleague. He says I cannot use the word "you" anywhere in the manual. Now I remember something about this at school but that was not for writing procedures. Also, doing some googling I observed that most tutorials where using it a lot. I would prefer using it but only if this is considered good practice. what do you think?
Hi There,
I am developing an iPhone application that will send sms the logged in user friends'. I am using FacebookConnect for the same. The problem is I am getting the uid of all friends but what is the way to send SMS to these uids(friends UID).
Thanks,
UPT
how to allow user to edit their information after registration. And moreover how add new fields during editing information.
for ex: my primary registration holds name,email,picture(optional). I want to get additional information like state,city,... when they wants some customized service.
May any one suggest me a solution .
Hi,
I'm using Flash HSlider component.
I used a slider with several thumbs. I'd like to prevent the user from draging just the middle thumb, but can drag other thumbs. I don't know how to do it. Could any one can give me some tips?
Thanks.
Yuan
For a user in active directory, the properties hold values for lastlogontime & lastlogontimestamp but the logoncount is 0. I am having only one domain controller in that domain.
I found from surfing, that logonCount value of 0 indicates that the value is unknown. But I am totally confused with why it is unknown. Is that an issue with AD.
I'm having trouble implementing this step:
Given "I am logged in as a Facebook user" do
end
The best suggestions I can find on the web (http://opensoul.org/2009/3/6/testing-facebook-with-cucumber) do not seem to be using Authlogic for authentication.
Can someone with the Cucumber/Authlogic_facebook_connect/Authlogic combo post their step for testing facebook logins?
Thank you very much.
We are getting quite a few errors in our logs where the user agent is DavCInt and verb is OPTIONS. Does anyone know who/what might be making this type of request?
We are using ASP.NET MVC and all of our controller actions are decorated with HttpGet or HttpPost as appropriate so a controller supporting the request is of course not found.
I know I can deny verbs in the web.config but I am looking for any insight before I do so.
Hi,
I have a generic user control which will be used twice in a page. There is a javascript asscoiated with it which also needs to be added. How can I add this to a page since the javascript will be added multiple times.
What are the dangerous characters that should be replaced in user input when the users' input will be inserted in a MySQL query? I know about quotes, double quotes, \r and \n. Are there others?(I don't have the option of using a smart connector that accepts parameters so I have to build the query myself and this will be implemented in multiple programming languages, including some obscure ones so solutions such as mysql_real_escape_string in PHP are not valid)
here my code-
create function dbo.emptable()
returns Table
as
return (select id, name, salary from employee)
go
select dbo.emptable()
error: Msg 4121, Level 16, State 1, Line 1
Cannot find either column "dbo" or the user-defined function or aggregate "dbo.emptable", or the name is ambiguous.
while when I run
sp_helptext emptable
it shows-
create function dbo.emptable()
returns Table
as
return (select id, name, salary from employee)
it means function exists in database then why it is giving such error?
I've implemented a ReloadableResourceBundleMessageSource in my Spring MVC application which I use to display prettier error messages for binding exceptions. The problem I'm having is that, due to a company policy, these errors must be displayed in the following format:
[inputData] is not a valid [fieldName].
The field name is accessible by default in my message properties file (as the {0} argument), but I can't figure out a way to display the invalid user input. Is this possible?
As per how StackOverflow does it when you are adding a question or replying to a question;
I'd like to prompt the user with a;
"Are you sure you want to navigate away from this page"
"Press OK to continue or Cancel to stay on this page"
I've tried a couple of js snippets i've found on ze internet, but nothing quite cuts the mustard.
hi everyone,
I work on inheritence with GUI (graphical user interfaces)
let me explain for example I made super class which is vehicle and the subclass is car, so the code to make inheritence will be
public class Car extends Vehicle
then I want to build the class Car as JFrame like
public class Car JFrame implements ActionListener {
so the problem is that I couldn't put both codes in the same class, and I need to do that.
anyone help me. thanks in advance
I wish that the question would be clear