Is there any way to access my asp.net dev server (launched from visual studio) from an outside connection? It seems to be filtered to only allow localhost
i am using Visual C# 2010 express and i need the most reliable way (on button click) and in .NET 2.0 framework to detect if windows is currently x86 or x64 in a message box.. up till now i have been using this code but i need to know if there is a more accurate way?
string target = @"C:\Windows\SysWow64";
{
if (Directory.Exists(target))
{
MessageBox.Show("x64");
}
else
{
MessageBox.Show("x86");
}
In method overloading, is it possible to have different return types for a overloaded method?
for example,
void foo(int x) ;
int foo(int x,int y);
double foo(String str);
in general object oriented programming, is it possible?
Possible Duplicate:
A puzzle - a program printing its own source
In your favorite programming language, write a program that, when run, will print out its own source code!
Sounds interesting, now let's go!
ps: Literally, there is "NO" use case for this, just plain curiosity!
My C# application has several background workers. Sometimes one background worker will fire off another. When the first background worker completes and the RunWorkerCompleted event is fired, on which thread will that event fire, the UI or the first background worker from which RunWorkerAsync was called? I am using Microsoft Visual C# 2008 Express Edition. Any thoughts or suggestions you may have would be appreciated. Thanks.
I know what algorithms are, but I have never consciously used or created one for any of the programming that I have done. So I'd like to get a book about the subject - I'd prefer if it was in python but that's not a strict requirement. What book about algorithms helped you most to understand, use, and create algorithms?
One book per answer so they can be voted on...
What are the best practices on writing a cross platform library in C++?
My development environment is Eclipse CDT on Linux, but my library should have the possibility to compile natively on Windows either (from Visual C++ for example).
Guys I study C++ for a second year. Till now I was doing only console app but I think it's a time to start programming in Windows. There are few alternatives and Qt is one of them but I'm also drawn towards pure Windows API - for more power of course. What would you suggest?
I am planning to create a web app that allows users to downgrade their visual studio project files. However, It seems Google App Engine accepts files uploading and flat file storing on the Google Server through db.TextProperty and db.BlobProperty.
I'll be glad anyone can provide code sample ( both the client and the server side) on how this can be done, thanks
Hello,
does anyone know how to load contents of a file into a multilined TextBox in net 2.0 compact framework and, after editing save it back to a file (the same or with changed name)?
I'm a newbee in C# programming :(
Greetings
Will software ever be considered "antique"?
In other words, is a stack of punch cards worth anything? (Perhaps if they were made by someone special, or the program on them was some type of programming milestone?)
What about modern software?
Is there any way to use MySQL without install? I am making an desctop application using Visual studio and C# that uses MySQL.I will use this program on another computer.if this computer has no MySQL installation my program will also work? Can I move my data base with my application?
This question is, as indicated, for those who use Emacs.
When you do, do you rebind the caps-lock key to CTRL, or do you use the "normal" ctrl key?
I've recently learned some Emacs commands and was using the Visual Studio 2008 emacs commands for a while, and of course I used a caps-rebind tool, but I'm curious how many other people do.
On a side note, the emacs bindings for VS are severely incomplete :(
Currently I've finish studying the book name "beginning javascript 3rd edition",so i just wonder what should be my next step in order to strengthen myself on using and manipulating this language?Besides,how to improve myself in programming in javascript??Is it by thinking something cool myself,and start coding it??Or googling around the internet to find some task and question offered??Besides,is there any book that teaches the correct method of coding??
Thanks you
hi all,
i am new to Iphone programming.
I want to copy a folder(which contains subfolder hierearchy and files) from resourse folder to application folder. i have no idea about this.
Please suggest how can i do this task?
Thanks
Hi.,
I have a web-page application already created, but when I open it in visual studio 2008, it says there that:
ASP.NET 2.0 has not been registered on the Web Server. You need to
manually configure you Web server for ASP.NET 2.0 in order for your
site to run correctly.
I'm using asp.net 2.0, IIS7 and running on vista home premium.
How to register ASP.NET 2.0 to my web server(IIS7)?
Hi all,
I am using Visual C++ 6.0. I have a static library containing a set of C functions. To create the .lib file, I need .obj of some .C files. Some such files are contained within the same static library project but some are to be stored in some othr project due to separate flags, etc.
How can I include those .objs to create this library file..?
I am coding in Visual Basic. I am using a checkbox control. Now depending on its checked property I need to set/unset a bit column in a SQL Server database. Here's the code:
Try
conSQL.Open()
Dim cmd As New SqlCommand("update Student set send_mail = " + _
sendemailCheckBox.Checked.ToString + " where student_id = '" _
+ sidnolabel.Text + "'", conSQL)
cmd.ExecuteNonQuery()
Finally
conSQL.Close()
End Try
The send_mail attribute is of bit datatype. This code is not working.
How do I go about it?
Since naming is a so important thing in programming, I would like to start a thread for giving help to all those that have same problems as I sometimes.
Rules: Set a post with the description of the form||control||class or whatever you need to find a good name for. Get name hints in the answers.
.NET 4 includes new concurrent data structures. The Bag and Dictionary collections have obvious applications but I cannot see any use for the Queue and Stack data structures. What are people using these for?
Also, I've noticed that the design based upon linked lists incurs a lot of allocation and that destroys scalability. This is surprising given that the sole purpose of these collections is multicore programming. Is this an inherent limitation or are they just badly implemented?
I am new to c# programming and I want to ask a question.
How can I get the value in () and store it in another string. example:
I have string
s1="here there (hi)";
How can I get
s2="hi";
the () will always be at the end of the sentence (never at first or in between).
Hello there, I have just started to learn the very basics of Java programming. Using a book entitled "Programming Video Games for the Evil Genius".
I have had an Illegal Start of Expression error that I can't for the life of me get rid of. I have checked the sample code from the book and mine is identical.
The error is coming from the for(int i = difficulty; i = 0; i- - ) line.
Thanks for helping a newbie out.
import javax.swing.*;
public class S1P4
{public static void main(String[] args) throws Exception {
int difficulty;
difficulty = Integer.parseInt(JOptionPane.showInputDialog("How good are you?\n"+
"1 = Great\n"+"10 = Terrible"));
boolean cont = false;
do
{
cont = false;
double num1 = (int)(Math.round(Math.random()*10));
double num2;
do
{
num2 = (int)(Math.round(Math.random()*10));
}
while(num2==0.0);
int sign = (int)(Math.round(Math.random()*3));
double answer;
System.out.println("\n\n*****");
if(sign==0)
{
System.out.println(num1+" times "+num2);
answer = num1*num2;
}
else if(sign==1)
{
System.out.println(num1+" divided by"+num2);
answer = num1/num2;
}
else if(sign==1)
{
System.out.println(num1+" plus "+num2);
answer = num1+num2;
}
else if(sign==1)
{
System.out.println(num1+" minus "+num2);
answer = num1-num2;
}
else
{
System.out.println(num1+" % "+num2);
answer = num1%num2;
}
System.out.println("*****\n");
for(int i = difficulty; i >= 0; i- - )
{
System.out.println(i+"...");
Thread.sleep(500);
}
System.out.println("ANSWER: "+answer);
String again;
again = JOptionPane.showInputDialog("Play again?");
if(again.equals("yes"))
cont = true;
}
while(cont);
}
}
GTK how to remove scroll bar from GtkScrolledWindow.
I want to keep scrolling but don't want the visual scrolling bar on right side i just want to hide it. using GTK + C.
I Tried
gtk_widget_hide_all(gtk_scrolled_window_get_vscrollbar(GTK_SCROLLED_WINDOW(scrolled_window)));
but it does not work.
Looking to do iphone, android, and possibly windows phone development on a Mac Pro. What are the pluses and minuses of using a Mac Pro and a dual boot. Unlike most, Windows 7 will be the primary OS since most supporting software will be done with Visual Studio 08/10 over the next year. I have found driver issues from a few years ago. Do any of these issues still exist?
Akamai is way too expensive. Photobucket is not reliable. Is there a great content delivery network that I can use just to host my images?
We deploy images programmatically via FTP, so there is some programming behind the scenes.
Having some sort of reporting about the reliability of the service, whether it's raw logs files or a web-based admin screen that shows http errors, would also be important.
Has anyone worked with edgecast?