is any solution to mark method like this
[IsAuthenticated(true)]
public ActionResult Profile()
{
return View();
}
not call if (request.IsAuthenticated) ?
How can i implement message security in WCF with custom attributes,
One way of doing this by UserNamePasswordValidator which accepts user name and password
but in my case I have to pass 2 more attribute that is company and region to authenticate the user.
Please suggest the solution for achieving this.
hello Friends ,
I am getting error while developing Pdf in java
error is=
net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: Document root element "property", must match DOCTYPE root "jasperReport".
if you have solution then reply
vipul
Hi,
I'm using libcurl in a Win32 C++ application.
I have the curllib.vcproj project added to my solution and set my other projects to depend on it.
How do I build it with SSL support enabled?
Soon I could use a SIP to GSM gateway, because I'll need to make phone calls from Germany to a mobile phone in Czech Republik. Hence, I thought about implementing one.
Now, the questions are:
Does such a solution already exist (for a reasonable price)?
Is it possible to redirect a (voice) stream to a GSM connection with the available Android APIs (SDK or NDK)?
Ideas, suggestions, comments are highly welcome.
Hi css experts
I'm having a problem with my site http://artygirl.co.uk/pixie/about/ I can't seem to get the footer to automatically stick to the bottom of the browser, and show the rest of my background.
Is there a solution better than using position:fixed or absolute?
I think there are possibly other styles over-riding some tests I do in firebug.
Thanks for your help
Regards
Judi
Hello
I have jsp page with text field and button. Also i have jar of another project.
When i click on the button the MAIN.class of the jar is called and program is running in independent window(JFrame).
After user is finished with the program and exits, I need to get the String of program that is generated on exit and paste it into the textbox (The String is HTML code)
Is anyone else having this problem and has a solution?
Thanks
Alex
The gravity Vector2 in my physics world is (0; 0.1).
The number 0.1 is known to be problematic, since "it cannot be represented exactly, but is approximately 1.10011001100110011001101 × 2-4".
Having this value for the gravity gives me problems with collisions and creates quite nasty bugs. Changing the value to 0.11 solves these problems.
Is there a more elegant solution that doesn't require changing the value at all?
Hello,
I am looking for ways to protect my product images and I don't know if there's anything out there better than what I've already found: disable right click, use a transparent image in front of your picture and watermarking. Obviously none of them is perfect but I was curious if someone came up with a better solution to this problem.
Also is there any rails plugin to aid with that ?
Thanks
I am using a ServerSocket port to run one instance only of my Java Swing application, so if a user tries to open another instance of the program, i show him a warning that "Another instance is already open". This works fine, but instead of showing this message i want to set focus on the running application itself, like some programs does (MSN Messenger), even if it was minimized.
Is there a solution for this for various operating systems ?
Which solution is easier to maintain: The Multi-Tenant Plugin (http://www.grails.org/plugin/multi-tenant), or creating a different environment (http://grails.org/doc/latest/guide/3.%20Configuration.html#3.2%20Environments) for each instance of an application which is essentially the same (with minor changes) for each company?
Hello,
is there any ready to go solution within the microsoft framework, regarding conversion of date to day?
For example, i would like to convert this string 21/03/2010 (dd/mm/yyyy) to Sunday
With the following CSS, anchor links end up being hidden by the navigation bar.
What solution would you proposed to have the anchor link text being shown just under it?
/* style and size the navigation bar */
table.navigation#top
{
position: fixed;
margin-top: 0;
margin-bottom: 0;
top: 0;
left: 0;
z-index: 10;
}
thanks
Hi,
I want a solution to validate only domain names not full urls, The following example is what i'm looking for:
domain.com -> true
domain.net/org/biz... -> true
domain.co.uk -> true
sub.domain.com -> true
domain.com/folder -> false
domµ*$ain.com -> false
Thank you
Dear Experts,
Since Django is a web development framework and Django is a CMS.
Is it possible to use them both together instead of a preferred database on Django like apache?
Maybe that question isn't clear enough.
Is it possible to use Django and Drupal simultaneously on the server side to provide a better web development solution?
This below output come from php json_encode.What we see here is 0849 is twice.Since javascript only use sn to get value why we need the "0" value.The main problem is speed execution. If 800 kb data might can be reduce to 400 kb
{"success":"true","total":968,"data":[{"0":"0849","sn":"0849" }]
If no solution i have to make a script to filter in json_encode so no need twice data transter.
I have small application which catches Network Availability change and its working very fine in client Desktop m/c (which is having XP) But when I tested the same in Vista by disabling the network and enabling it again..the event is not getting triggered.
NetworkChange.NetworkAvailabilityChanged += new NetworkAvailabilityChangedEventHandler(NetworkChange_NetworkAvailabilityChanged);
private void NetworkChange_NetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e)
{.....}
Does .Net framework 3.5 got any new solution introduced ...
I'm looking for the most suitable tool for generating dynamic geographical maps in Java (with styles based on custom business data: colors, labels etc. will be dynamically set). After some searching, only GeoServer (and the underlying GeoTools library) seems to fit.
Although I'm really happy with this solution, I'm afraid I might miss something and make some decision based on incomplete input. Any suggestion ? Any viable alternative to compare against ?
hi , i have three tables say city,state and road
1) city - city_id(PK),name
2) state- Stt_id(PK),name
3) Road- Edge_id(PK), Admin_id(FK)
where Admin_id refers to city_id and Stt_id both.
This is done because the tables are too huge.
say city_id contains 1,2,3
and Stt_id contains 4,5,6
now if i am inserting 1,2,3,4,5,6 in admin_id it is throuing an error .. what is the solution of my problem,
regards
sanjay
Hi,
I'd like to find out a way to enumerate all available wifi networks using Java 6.0 and any third-party API.
Unfortunately, I'm not able to find a solution to this problem, all I got is a library that I can't use because I don't have any example.
I'll be very pleased if someone could help me.
The target platform is Win XP/7.
Edit: the library I found is named jwlanscan
Rob
Hey,
I have a problem with moving a MovieClip to front in actionscript3. The main problem is, everytime I try to move it to front, using setChildIndex() I get an error message witch tells me, that the movieclip (that I named my_tofront) cannot converted to a flash.display.DisplayObject
full error message:
TypeError: Error #1034: Type Coercion failed: cannot convert my_tofront$ to flash.display.DisplayObject.
Why is this happening, and whats the solution for this problem?
I am creating a secure document portal for a client. One of the things that they are worried about is having someone upload a document with a virus. One solution that might work is to enforce that they only upload pdf files.
My question is two fold:
Most importantly, is a pdf document virus proof?
How can you determine in a *nix environment that a file is a pdf, besides just looking at the extension.
Thanks!
Jonathan
Hello,guys! I am trying to run the following test
self.assertRaises(Exception,lambda:
unit_test.testBasic())
where
test.testBasic()
is
class IsPrimeTest(unittest.TestCase):
def assertRaises(self,exception,callable,*args,**kwargs):
print('dfdf')
temp = callable
super().assertRaises(exception,temp,*args,**kwargs)
def testBasic_helper(self):
self.failIf(is_prime(2))
self.assertTrue(is_prime(1))
where prime is a function,and
but in
self.assertRaises(Exception,lambda:
unit_test.testBasic())
the lambda function doesnt throws an exception after
the test
def testBasic_helper(self):
self.failIf(is_prime(2))
self.assertTrue(is_prime(1))
fails
Can somebody offers a solution to the problem?