Getting to grips with Visual Studio 2010,
This compiles:
var x = System.Web.Security.Membership.GetUser();
And runs, however VS2010 gives no intellisense for x and reports it just as a 'local variable'.
Has anyone got any ideas?
I am trying to write a file to a network drive from my asp.Net application and i get this error - Logon failure: unknown user name or bad password. Any ideas?
I am able to write to a local drive line C:/temp
But when I try to save the file to a network drive such as \Server\Folder, I get the error mentioned above.
Any ideas people?
Hi,
On my Windows machine, my main hard drive has the letter C: and the name "Local disk".
To list the drive letters in Java on Windows, the File object has the static listRoots() method. But I can't find a way to acquire the drive names (as opposed to the drive letters) on Windows.
Has anyone tried this before?
Thanks,
Mattijs
Hi, in Mac or Linux, we can simply define IP and hostname in /etc/hosts. Then we can call another local computer with hostname (not with IP) we defined. But in windows, How can I do that? Where can I edit such configuration?
hey guys
I searched for a while on how to find a benchmarking software that can simulate crowd website with more than 1000 users online to find out leaks in my php/mysql script .
as long as i ran my script for a huge community and it wasn't successful enough and lots of RAM usage happened , now I need a way to simulate that much usage to benchmark my script and optimize it .
I am using XAMMP Local Server and my project written in PHP&MYSQL.
thanks in advance
Okay, so I've figured out how to get my external ip using wget:
wget -q -O - http://whatismyip.com/automation/n09230945.asp
that outputs the ip to the command console. adding currentip.txt to the end will write it to a text file. But what I want to do is use
netsh interface ip set address name="Local Area Connection 2" source=static addr=[WHAT DO I PUT HERE]
Also, a way to make the command prompt not flash would be nice too :)
Iam working on Ubuntu.(Linux)
I want to redirect from the page one.php to two.php, which are in a folder 'test'
How can i do this, using .htaccess file?
Any other setting is needed for this?
Ur .htaccess redirection will not work for local system
Hello all,
I have a form that has text boxes, buttons on it for the user to sign up and sign in. I need to store the entered sign up credentials in any database(Oracle, Service based database, local database). Then when he tries to sign in, entered credentials should be compared with stored sign up values for authentication.
This is done in visual studio, c#.
Can anyone please give me hints or any references?
Thank you
When I ran the Inline and Extract Local Variable refactorings, Eclipse saved my file immediately after. Also, Undoing/Redoing these refactorings resaved the file each time. How can I disable this behavior?
Secondary question: Running Extract Method didn’t automatically save the file. Why the inconsistent behavior?
I have a UserControl which has a style, that i would like to be influenced by a settings checkbox on the main window hosting my user control
so myControl.xaml has a Style which i would like to have a trigger, that should observe a CheckBox inside MainWindow.xaml
i know one way to do this, would be to create a local property in myControl.cs which would look at the property in MainWindow.cs which would in turn return state of that cheeckbox.. but maybe there is a way to do this w/out writing any c# code ?
Hi all,
In my local machine i have a scaffold that uses Jquery Validation plugin for the field's validation.
Now i want to add that to a fbml facebook application, but i'm haven't been able to load the jquery javascript and the jquery Validation plugin into the app, does anybody now how to do that? or maybe someone could suggest me a better way of doing validation inside a facebook application.
Thanks in Advance
Ernesto Carrión
Note that you can specify a port
number with "port=####", but this port
number will be ignored if the host is
localhost. If you want to connect to
a local port other than the default,
use host=127.0.0.1 instead of
localhost.
Quoted from this page,has anyone verified if it has been fixed?
I have done the following steps:
Added to gemfile:
gem "recaptcha"
Added to config/initializers/recaptcha.rb
Recaptcha.configure do |config|
config.public_key = 'MyKeyHere'
config.private_key = 'MyKeyHere'
end
Added to view:
= raw recaptcha_tags
Ran:
bundle install
...then restarted server. The result?
undefined local variable or method `recaptcha_tags' for #<#<Class:0x1053baaa0>:0x1053b69c8>
I'm running the latest Mercurial and Python 2.6; IIS6 is using the wildcard ISAPI method to attach the site to the Mecurial hgwebdir_wsgi
[paths]
\ = \\COMP3254\TestRepo\*
[web]
baseurl = /
allow_push = *
push_ssl = false
style = monoblue
The setup works perfectly if I reference the local drive E:\repo* but doesnt work if I specify the network as above; I've given the server (MERCDEV01$) full permissions on the shared folder on COMP3254, I can't think of any other reason it wouldn't work.
Any ideas?
Hello,
I have a local sql express server with DB A and remote server uXXX.mssql.domainname.com with DB B.
using sql mangament studio 2008, I want to move copy DB A to DB B with all tables, data, dependencies and stored procedures.
how to figure out this problem? I only had understood table and table data copying(using Tasks-Import Data).
I want to open any file type by using the code below:
System.Diagnostics.Process.Start(pathFile);
Is there a way to check if system application not exist?
for example: pdf, the local machine has no acrobat reader.
When accessing a webdav using Windows Explorer (Not IE), the call is redirected thru the svchost.exe process (with webclnt.dll).
When i check get the pid of the process that is connected to the local port, i get the pid of the svchost.exe process.
How can i get the user account that the call was associated to?
While implementing a custom authentication type in a wcf service, I'm trying to read the property
IIdentity.AuthenticationType using the call Thread.CurrentPrincipal.Identity.AuthenticationType.
Unless the account running the service is local administrator, UnauthorizedAccessException is thrown when accessing this property, much like described in this support thread. I can however reset the Thread.CurrentPrincipalobject without hassle, thus altering the Authentication Type - But read it, I cannot.
Is running as an administrator the only way here or is there some trick to let the user running the service "just" access this property?
I have winforms project that references many third party controls but when i go to the Application Files under Settings - publish - Application Files..they are not listed! I have the the reference set to Copy Local=True but still no luck..has been working fine for years untill now...its laso happening to another project. Any suuggestion?
We are using VC++ to connect to the SQl2005 Express in my local machine.
But we are able to access when there is network connectivity to my system.
But we are not able to access when we are removed the network connectivity.
Please help me out if any one faced with this scenario.
I am trying to build a google app engine app in Java. The app is trying to get information from another site. On my computer I am behind a firewall and need to connect to the site through a proxy. Google app engine does not allow the use of java.net.proxy. Is there a way to configure eclipse so it knows that when I use URL.getContent() my local host will connect to that url through a proxy??
Does anybody know a clean PHP-based solution that can backup remote web sites using FTP?
Must haves:
Recursive FTP backups
Possible to run through a cron job
Easy to configure (easy adding of multiple sites)
Local storage of backup files is sufficient
Would be nice:
Backed up sites are stored as zip files
A nice interface to manage things
Provides notification when backup has succeeded or failed
Does incremental backups
Does MySQL Database backups
I need this to be PHP (or Perl) based because it's going to be used on shared hosting packages that do not allow usage of the standard GNU/Linux tools available.
I thought I read that when a Ruby on Rails server is running in production mode, it won't say so much about an error (the details, showing the code)... but I just try to run the server using
ruby script/server -e production
and add a <%= x %> with the local variable x undefined. It showed a lot of error details including the code... is there a way to make it look better?