text stringlengths 8 267k | meta dict |
|---|---|
Q: RoR: How do I ensure only one object is assigned to my object? In my Ruby on Rails app, I have a User table and a Foo table. I also have a User_Foo table that stores the cross reference data.
I have everything wired up for my views to work as I want, however, now I need to make sure that the same Foo doesn't get ass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's the best operating system for a Microsoft developer? This has been troubling me for a few years, and was recently exacerbated by the introduction of Windows Vista (driver requirements & UAC restrictions being major factors).
There are many different flavours of Windows Vista (compared here), and there are al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Extract C++ template parameters Although I'm doubtful, I'm curious as to whether it's possible to extract primitive-type template parameters from an existing type, perhaps using RTTI.
For example:
typedef std::bitset<16> WordSet;
Would it be possible to extract the number 16 in the above code without hard-coding it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Getting desktop background on Mac How do I get the current wallpaper on a Mac? Just point me to an API function so I can Google more.
Edit: I think I found it. [NSUserDefaults standardUserDefaults] mentioned at http://lists.apple.com/archives/student-dev/2004/Aug/msg00140.html
Also possible from shell:
defaults read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I read stderr when a command execution fails in Perl? I am executing a diff command in perl.
my @lines = `/usr/local/bin/diff -udr \"$expected_file\" \"$gen_file\"`;
if ($? != 0)
{
print ERRFILE "Diff between $expected_file and $gen_file failed\n";
return $diff_err;
}
Here the diff might have faile... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Web Browser as a Thin Client to Access certain applications on Server I have an ASP.NET MVC application, when a user clicks on the submit button of that application, the server should capture all the information in the form, and call a local windows application ( located at "c:\Program Files..." and do some pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using the greedy route parameter in the middle of a route definition I'm trying to create routes which follow the structure of a tree navigation system, i.e I want to include the entire path in the tree in my route. So if I had a tree which looked like this
*
*Computers
*
*Software
*
*Development
*Graphics... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing Controller data member in Model class I am using Xcode to develop a GUI application. I have a model class and a controller class. I have a NSTextView data member in my controller class. How do I access this variable from the model class?
A: First of all, a model class shall not talk to a view class. A Tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Update function in PostgreSQL I have a question regarding an update function I created...
CREATE OR REPLACE FUNCTION rm_category_update(icompany bpchar, iraw_mat_cat_code bpchar, iraw_mat_cat_desc bpchar)
RETURNS character AS
$BODY$
DECLARE
loc_result CHAR(50);
BEGIN
UPDATE rm_category
SET
raw_mat_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: loadComponentFromURL falls over and dies, howto do CPR? Well I testing my jython program, that does some neat [".xls", ".doc", ".rtf", ".tif", ".tiff", ".pdf" files] -> pdf (intermediary file) -> tif (final output) conversion using Open Office. We moved away from MS Office due to the problems we had with automation... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's a PHP framework and what's a good one? I am running a site about PHP Frameworks, but I can't find a exact definition for it, and I am always thinking a question, how to make out a good PHP framework? Features? Manual? Efficiency? Or something?
A: A PHP Framework in my eyes is a collection of classes which he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: paste on site, syntax highlighting I am getting a web host and i have projects with teammats. I thought it be a nice idea to have my own paste site that has no expiry date on paste (i know http://pastie.org/ exist) and other things. i wanted to know. Whats a simple highlight lib i can use on code? i would be only u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Counterpart of .NETs NetworkStream / SslStream in Delphi 7 I have written a secure TCP server in .NET. This was basically as simple as creating a TcpListener instance and wrapping the connected client's NetworkStreams with SslStreams.
Now I need to access this TCP server with Delphi 7 (alternatively: Delphi 2007).
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Files being used by a unix process The fuser command lets me know which processes are using a file or directory.
I'm looking for command that does the opposite: lets me know which files are being used by a process.
Update
Forgot to mention that it's for a Solaris system.
A: lsof -p <pid>
From here
lsof stands f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Third Party Controls for ASP.NET with Ajax Support Ours is an upcoming company, so we cannot buy two three third party controls and find out by ourselves which the best one is.(One of the better solutions)
We have a budget to buy just one.
So we would like to know which is third party control is the best to use in A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using ruby to convert unsigned integers stored as signed back to the original value A C-program is placing what it considers to be 64-bit unsigned integers into a column in a Postgres database that is typed as int8.
To Postgres, int8 is always 'signed int8' (no such thing to it as 'unsigned int8').
So the Ruby progr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I implement simple copy/paste functionality in an mfc CListCtrl? Is this really the easiest way to do this?
http://simplesamples.info/MFC/Clipboard.php
A: Is your list the source or destination? Do you need to copy/paste to or from something else like Excel? Do you expect some specific formatting? It all dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Netbeans and external configuration files I am developing a Java desktop application and would like to have an external configuration.xml.
I am developing the application using Netbeans and tried to add the configuration.xml file in the dist directory so that it resides in the application work folder. But when Netbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Will a script in html's script tag with extension php be cached? I have example of code below.
<script type="text/javascript" src="assets/scripts/somescript.php">.
</script>
So, will my browser still cache this just by not setting this scripts headers meta tag cache to must-revalidate?
A: Some browsers are more ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OLAP Cubes: Compatibility between Analysis Services 2005 and 2008 I'm working with Analysis Services and I have run into a compatibility issue. Here is my situation. I have 3 machines:
*
*Server2005: This machine has SQL Server, Analysis Services and Visual Studio, all in 2005 versions.
*Client2008: This machin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I/O priority of a process be increased? I want to increase the I/O priority of a process. Answers for both .NET and Windows Vista would be nice. processexplorer is ok as well.
A: The proper way to do this is to call SetProcessPriorityClass with PROCESS_BACKGROUND_MODE_BEGIN to initiate a background mode. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Does RSA Private key always contain the Public key, or is it just .NET? I'm using RSACryptoServiceProvider in .NET 2 and it seems that the Private part of a Public/Private key pair always contains the Public part as well.
I need to encrypt some info using my Public key, and allow the other party to ONLY DECRYPT what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MDI child form maximize problem on Vista I have a problem with a Winforms application written in Visual Studio 2005 (C#). It has a MDI main form with one maximized mdi child form. In Windows XP the child form is perfectly resized and maximized with the MDI Parent.
With Windows Vista (Enterprise and Business) resizin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JDBC built in functions and prepared statements Is there a way to execute a query(containing built in DB function) using PreparedStatement?
Example:
insert into foo (location) values (pointfromtext('12.56666 13.67777',4130))
Here pointfromtext is a built in function.
A: Sure, that should work.
If not, what is your... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XSL(like) declarative language as MVC view over strongtyped model? As a huge XSL fan, I am very happy to use xsl as the view in our proprietary MVC framework on ASP.NET. Objects in the model are serialized under the hood using .NET's xml serializer, and we use quite atomic xsl templates to declare how each object or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: System Requirements for E-Commerce Application with SSL bigger than 40 bits I need to define the system requirements hardware and software for building a E-Commerce Web application with SSL (more than 40 bits). I have no experience with SSL, so i have no idea how to configure or what apache version do i need. This a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301317",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modifying Memory In An Assembly Application I'm studying assembly language from the book "art of x86 assembly" and I have a question I couldn't figure the answer.
the program goes like this:
"in this exercise you will start a program running that examines and operates on values found in memory. then you will switch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replacing numbers with hashes in WPF when the text is too large I'm looking for a simple, idiomatic method of replicating Excel's visual cue that a number is too large to be displayed in a column. I've got the following xaml:
<ListView.View>
<GridView>
<GridViewColumn ... />
</GridView>
<ListView.Vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Determine if Type is a pointer in a template function If I have a template function, for example like this:
template<typename T>
void func(const std::vector<T>& v)
Is there any way I can determine within the function whether T is a pointer, or would I have to use another template function for this, ie:
template<typ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: How can I frame an interface with modules in Access? I have written a few modules of code in Access vba. Each code runs for various purpose and performs various actions on the database.
I am not too much experinced in vba. I am planning to build an 'interface' or a 'form' so that a user can select which operation he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is .NET MailMessage class injection-safe? I wonder if MailMessage class is protected from e-mail injection. For example, should I check values before passing them to its constructor:
MailMessage message = new MailMessage(fromTextBox.Text, toTextBox.Text);
A: The MailAddress class checks its addresses against the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Vanishing scroll bar when using Autocomplete extender I use the Autocomplete extender feature to get the list of suggestions from my database. There is no scroll bar for this control, so I have added a scroll bar in a panel (MS .net 2.0) which i attach to my autocomplete extender.Now the issue is with the srcoll bar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why LocalTime displays server time and not browser time? I am probably doing something wrong -- but cant figure why.
I have a DateTime field in my DB keeping a UTC time
My server is in the US, and the browser is in Europe.
The PageLoad Code is as follow:
DateTime t = DateTime.SpecifyKind((DateTime)rdr["startTime"]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between ComponentModel reflection (e.g PropertyDescriptor) and standard reflection (e.g PropertyInfo)? There is a distinct overlap between what u can do with both of them. Is the ComponentModel reflection stuff just a little friendlier layer on top of System.Reflection?
A: No - there is more. ComponentMo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: delete and delete [] the same in Visual C++? I know that I am supposed to use delete [] after I use new [], so using auto_ptr with new [] is not such a bright idea.
However, while debugging delete [] (using Visual Studio 2005), I noticed that the call went into a function that looked like this:
void operator delete[... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301357",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Deploy ASP.NET MVC on IIS 5.1 (Windows XP) OK, deploying ASP.NET MVC seems to be painful. I want to deploy my ASP.NET MVC application on Windows XP (IIS 5.1), but can't seem to find how to do it. When I type the application name into the web browser address bar I get a "website not available" message.
There are wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Regular expression library for vc6 Cstring? Is there any regular expression library that i can use with CString of vc6?
Opensource/Free library is needed
A: Version 3.1.3 of the Regular Expression Component Library based on boost regex supports VC6 and even version below than that.
A: Boost has some support for VC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301363",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Automatically Unit Test Example Code My team is responsible for the development of an API for a large system that we also write. We need to provide example code so that other developers using our API can learn how to use it. We have been documenting the code using the xml document comments.
eg.
/// <summary>Summary ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to read the parameters of URL in oracle form I am using Oracle form 10
I want to know how can I access the parameters of URL in oracle form
Ex:
whenever I run the form it opens in a browser and the URL for the same is
http://112.10.0.10:7778/forms/frmservlet?config=pkamble
I just want to know how can I access t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PL/SQL: How do I declare session variables? How do I declare a session variable in PL/SQL - one that will persist for the duration of the session only, without me having to store it in the database itself?
A: You can use a 'user-created context' to store data shared across multiple units within a session.
First, cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Why is Dictionary preferred over Hashtable in C#? In most programming languages, dictionaries are preferred over hashtables.
What are the reasons behind that?
A: FYI: In .NET, Hashtable is thread safe for use by multiple reader threads and a single writing thread, while in Dictionary public static members are threa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1548"
} |
Q: Uniform error handling of large interfaces Suppose I have a .NET assembly, A, which uses reflection to load assemblies B and C (also .NET). These two assemblies both implement a number of large interfaces (the same for both). When a method is called in A it tries to make B do the work. However, B is unreliable and m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OpenID Consumer error During integration Zend OpenID Server into MVC I have problem with Consumers answer (at Livejournal). It says:
"naive_verify_failed_return: Provider says signature is invalid".
Does anyone have any ideas why it can appears? Thanks
A: This error happens when the consumer is running in statel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to handle mixed HTML and in user input? In a PHP application I am writing, I would like to have users enter in text a mix of HTML and text with pointed-brackets, but when I display this text, I want to let the HTML tags be rendered by the non-HTML tags be shown literary, e.g. a user should be able to enter:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Find elements that do not contain I have the following markup for buttons (can be changed, but I really don't want to):
<a href="#" class="button">
Button text
<img src="someimage.png" />
</a>
This is styled using CSS to become a rather neat button with an icon on it. I am using jQuery to round the leftmost s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I use Trim function everytime when I insert data from webpage to database? Should I use textbox.text.Trim() function every time when I insert any data from web page to database.
I just have a habit of using the trim function? Does it effect the performance any way? Should I use everytime or just when needed?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Directory Traversal in C# How do you traverse a folder structure using C# without falling into the trap of junction points?
A: For those that don't know: A junction point behaves similarly to a symbolic link for a folder on linux. The trap that is mentioned happens when you set up a recursive folder structure, lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Can I (and do I ever want to) set the maximum heap size in .net? Coming from a java background, one of the things I am used to is telling the JVM what the maximum heap size should be. If the running program tries to swallow more than is allowed, and the garbage collector cannot free any more resources, then OutOfMe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: how to place YAML inside a YAML document I am working with Rails fixtures for testing my rails application. It is all good except one of my database columns is supposed to hold YAML content. But, I am sure how to put the YAML markup I want to load into my database inside the YAML file. Here is an example:
mvnforu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Eclipse features in VisualStudio This might of been asked elsewhere (seems like a useful topic) but searches turned up nothing.
One feature I love in Eclipse when programming Java is that I don't have to worry about putting in the import statements and any missed functions from interfaces that I am implementing them... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the code and data footprints of the leading javascript engines? (V8, Squirrelfish, TraceMonkey..) Since the speed of the top Javascript engines seems to be on par, the next criteria is footprint. What are the code and data footprints of the leading javascript engines?
A: squirrelfish should have the small... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possbile to bind a PagedDataSource to a generic list? I have a method to return a group of objects as a generic list which I then bind to a Repeater. I want to implement paging on the repeater using the PagedDataSource class but I'm not sure that this is possible as it doesn't seem to work.
Will I have to chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I debug JS code in CSSEdit? Yeah, sounds silly but I'm a designers and the site I'm working on is not working in CSSEdit. Which is bad for me, very bad. The site has a massive JS/Ajax client and works in all browsers, IE, Firefox and Safari that uses the same browser engine as CSSEdit!
Since MacRabbit has no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VBA Access 2003 table with a variable number of Columns I have a table in Access 2003 VBA with 164 columns but the data I get has 181 column and it is possible that it will get bigger in the future.
I need to know how to resize my table an to add extra colums during the runtime
I know how to check how many colums I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301429",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using extension methods within inline databinding context I'm trying to use some extension methods that I use to apply consistent formatting to DateTime and Int32 - which works absolutely fine in code behind, but I'm having issues with databinding.
I get:
'System.DateTime' does not contain a definition for 'ToCustom... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Updating different divs from AJAX depending on validation errors I have a form I am submitting via AJAX (using prototype and the built-in rails 'form_remote_tag' helper).
What I would like is to update one div (a status area) if there are form validation errors but a different div (the div where the form lives) if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a .NET Library or API to interact with/Edit the IIS Metabase? ...or am I stuck rolling my own "XML chopping" functions. I'd like to create a small tasktray app so I can quickly re-point a Virual Directory to one of several of folders on my harddisk.
Bit of background:
I have 3 different svn branches of our... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I concatenate JavaScript files into one file? I want to create a compiled JavaScript file for my website. For development I would prefer to keep the JavaScript in separate files and just as part of my automated scripts concatenate the files into one and run the compressor over it.
My problem is that if I us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301442",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Optimizing windows XP for Visual Studio I have a relatively powerful dev workstation - 8 cores and 3 Gig of Ram. However, Visual Studio 2008 does not seem to take full advantage, especially during large builds.
Are there any tweaks to be performed on XP VM settings etc to increase performance? I remember back in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fastest way to calculate file hash? A lot of files will be stored in the DB and I need file hashes to unique identify that the file was not changed.
(In general, will be used as the Windows Personal Firewall part)
A: This is, of course, not possible in general. Many people still use hashing for this purpose, and MD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301450",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Listbox in ItemTemplate I have a listbox control. I have created an ItemTemplate for this listbox which has two controls within it.
*
*Toggle Button
*Listbox Control
Structure
<Listbox x:Key="Listbox1" ItemTemplate={StaticResource ListBox1ParentItemTemplate}>
</Listbox>
<Datatemplate x:Key="ListBox1Par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Remote Unix Terminal Key Mapping This has always bugged me. When I ssh or telnet to a Unix server (whatever flavour) it always manages to guess correctly the terminal type I am logging in from and so the keyboard always acts 'normally' ... i.e. the backspace key works.
But then when I have successfully logged in, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Classic ASP On Server 2008 & SQL 2008 I am currently migrating one of my clients sites to a windows server 2008 and SQL 2008 setup, but I am having massive problems with connecting to the database from the site.
I have restored the database from a SQL 2k backup into the SQL 2008 server, I have setup the user correct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET inject javascript in user control nested in update panel I'm trying to load javascript code with a user web control into a page via a the Page.LoadControl method during an asyncron post back of an update panel.
I've tried the specially for that scenario designed methods of the scriptmanager, but the javascri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rebinding events in jQuery after Ajax update (updatepanel) I have several input and option elements on my page, each (well almost) have an event attached to update some text on the page once they change. I use jQuery which is really really cool :)
I also use Microsofts Ajax framework, utilizing the UpdatePanel. The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Show me the way to use new "dynamic" keyword in C# 4.0 Here is new C# future in version 4.0 known as dynamic. Show me the way i can use it in my code and how this future can help me?
Related questions:
*
*Does the new ‘dynamic’ C# 4.0 keyword deprecate the ‘var’ keyword ?
*What do you think of the new C# 4.0 ‘d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to change ListBox selection to be a toggle selection I have a ListBox control that I want to change into having a toggle selection. i.e. Click once on an item selects it, click again it deselects it. Also, clicking another item in the list should do the default action of deselecting the previous item and se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with HTML Parser in IE I am trying to create a dialog box that will appear only if the browser selected is IE (any version) however I get this error:
Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
That's all in "Line/Char/Code" 0 so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Can (or should) I mock methods on the object being tested other than the method being tested? I have a class like so:
public class ClassA
{
public bool MethodA()
{
//do something complicated to test requiring a lot of setup
}
public bool MethodB()
{
if (MethodA())
//do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which language is easiest and fastest to work with XML content? We have developers with knowledge of these languages - Ruby , Python, .Net or Java. We are developing an application which will mainly handle XML documents. Most of the work is to convert predefined XML files into database tables, providing mapping betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Opera in a C# application I have a C# application for on a pocket pc. It looks as a browser but some underlaying extra things. Currently im using the webbrowser of .net but I want to use the Opera browser due functionality. Is it possible to add a opera item on my form? And how do I do that?
A: To my knowledge, Ope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to detect image format in a stream I need to detect Image format to save a image like image1.jpg, image2.gif, but i only have a stream, and i do not know the image format(gif, jpeg, png, etc)
Is there a way to detect imageformat from a stream?
A: Use Image.FromStream to load the image, then you can see what the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Error with ASPNET RoleProvider I just installed an application on a win2003 server and I'm getting this error:
Line 149: <roleManager>
Line 150: <providers>
Line 151: <add name="AspNetSqlRoleProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Security.SqlRoleProvider, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you return a variable in a C -> ruby interface? A follow up to an earlier question, showing the part that fails when I try to get the error message from my target library:
require 'gt4r'
@@test_environment = "INCLUDE=C:\\graphtalk\\env\\aiadev\\config\\aiadev.ini"
@@normal_user = "BMCHARGUE"
describe Gt4r d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: More than 1 facade class in 'facade design pattern'? Is it acceptable to make more than 1 facade class (not instance) in a facade design pattern?
I mean, is it formally forbidden ?
Will it inhibit the 'facade design pattern' advantage itself?
A: A facade is basically a convenient grouping of functionality. If mult... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the easiest way to convert a simple form into an exe file? I have an offline paper based form. I need to convert it into a software that people can use on their computers to fill and submit information. Since the form (it is a tax return) requires considerable time in filling, it is not convenient to have i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unit Testing SiteMapNode Does anyone know how to unit test SiteMapNode? We’re building some custom navigation controls, which renders unordered html lists from Site Maps with custom attributes.
I’m trying to follow a test first approach but am finding that SiteMapNode has internal dependencies on HttpContext. To tra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What are your best debugging hints? What are the expert debugging hints for your favourite language, you think everyone should use?
As an example, I'll provide my C++ debugging hints, that between them help me shake out most of the bugs I come across, in this often hard-to-debug language.
C++
*
*Increase the warn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Ant -> Nant -> Visual Studio 2005 Build I am working on a big C++ project. It is building using single Ant script which makes possible to compile the same source targeting more than one platform and compiler.
But, I have to work only for Windows platform and Visual Studio 2005 C++ compiler. It would be really nice i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert a string with date and time to a date I've got this date time string:
post["date"] = "2007-07-18 10:03:19"
I'd like to extract just "2007-07-18" as a date. I've seen some reference to strptime but I'm not sure how to use it. How can I extract the date from this string?
A: In your case, just use split:
>>>... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How can I simulate additional mice in Windows? I'm using the MultiPoint SDK to create a collaborative educational application for children in less affluent countries, where there is not one computer for each student in the classroom.
Because we need to support up to 40 mice connected to one computer, we need an auto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the Java equivalent of PHP var_dump? PHP has a var_dump() function which outputs the internal contents of an object, showing an object's type and content.
For example:
class Person {
private $firstName;
private $lastName;
public function __construct($firstName, $lastName) {
$this->firstName = $fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "138"
} |
Q: Is there a more efficient way to do this SQL Select? I have this SQL query:
SELECT * FROM IMAGES WHERE
IMAGENAME in ('IMG1', 'IMG2', 'IMG3', 'IMG4', 'IMG5', 'IMG6')
ORDER BY CASE IMAGENAME
WHEN 'IMG1' THEN 1
WHEN 'IMG2' THEN 2
WHEN 'IMG3' THEN 3
WHEN 'IMG4' THEN 4
WHEN 'IMG5' THEN 5
WHEN 'IMG6' THEN 6
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the simplest way to call Http GET url using Delphi? There's a web services I want to call in my application, I can use it with importing the WSDL or by just use "HTTP GET" with the URL and parameters, so I prefer the later because it's simple thing.
I know I can use indy idhttp.get, to do the job, but this is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Does a call to a threadsafe function need to be syncronized too? If I'm using ConcurrentHashMap (where the put is thread safe) , and I supply a public function myPut that uses the ConcurrentHashMap put - do I need to synchronize my function?
meaning : should this be synchronized?
ConcurrentHashMap map;
public voi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: c# Treeview Node with formatted text e.g. tabs & new lines Is it possible (by using the stock c# TreeView) to have Multiline TreeNodes?
Also, is it possible to add control characters to TreeNode's text e.g. '\t'? This same effect could also be achieved by adding columns to the TreeNode. is this possible?
A: I do n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Returning a value from a method in an ActiveX control I'm creating an ActiveX control that will be used in web pages to query the current installed version of a 3rd party software on the client machine. The control only needs to expose a single method - GetVersion - that returns the version as an integer. I'm very i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to attach to process using VC6 on win 2003? The 'attach to process' dialogue box on VC6 running on win 2003 (I believe vista as well) has no processes to attach to in it... I've tried logging on as an administrator and running as an administrator but no luck. Any other ideas?
A: Installing the latest service pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating unmodifiable files I want to be able to create a file, distribute it to an end-user, but prevent them from making modifications to the file.
Now, obviously, I can't actually stop anybody from modifying the file - so my approach is to detect and reject the file if it's modified.
My intention is to generate a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: difference fn(String... args) vs fn(String[] args) Whats this syntax useful for :
function(String... args)
Is this same as writing
function(String[] args)
with difference only while invoking this method or is there any other feature involved with it ?
A: The only difference between the two is the way y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: How to update turbogears application production database I am having a postgres production database in production (which contains a lot of Data). now I need to modify the model of the tg-app to add couple of new tables to the database.
How do i do this? I am using sqlAlchemy.
A: The simplest approach is to simply ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I tell valgrind to memcheck forked processes? I have a process x that I want to check for leaks with valgrind. The problem is that x is run by y, and y in turn is run by z. I can't run x standalone because y and z setup the environment for x, such as environment variables, command line switches, files neede... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301576",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Why does Visual Studio 2008 forget where to dock my add-in's window pane? I wrote a simple add-in for Visual Studio 2008 that opens a dockable window pane.
You can download the source and a binary installer by clicking here.
The nature of the add-in means that it is ideally going to stay docked next to where you ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: MSI produces question for installers I have created a windows installer for a windows forms app as an MSI.
I have published this and put it in a zip file and sent it to the client.
When they try to run the installer they get the message
'The publisher could not be verified. Are you sure you want to run this softwar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Difference between using #include and #include in C++ What is the difference between using #include<filename> and #include<filename.h> in C++? Which of the two is used and why is it is used?
A: The old standard used the #include <filename.h> syntax. When namespaces and templates were added to the language, the stan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Latex: hyperref to individual longtable rows I have a few longtables that stretch several pages and I want to use pageref and hyperref to link to these rows.
But whatever I try, the links always refer to the start of the table.
When I look into the aux file, the labels all seem to be re-defined into table.[number of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ParentRelations don't work in generated DataSets? I created two tables:
Publisher
*
*PK, PublisherId, int, not null, indentity +1
*PublisherName, varchar(50), not null
Product
*
*PK, ProductId, int, not null, identity +1
*ProductName, varchar(50), not null
*PublisherId, int, not null
Then I created a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating WCF applications without svcutil.exe? How to create a WCF application without using the svcutil.exe tool?
A: One way to build your WCF client without using svcutil.exe is to use ChannelFactory. What you would need to do is build the WCF service interface in a separate assembly from the service implementat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Automate Visual Studio Setup Project I'm using Visual Studio 2008 and I want to automate the process of building the installer by running a batch file.
The batch file should first sign the assemblies and than start the building of the installer. After the installer is created the batch file should sign the .msi file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301613",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# and CLR features confusion, what feature deserves to be described strictly as C# feature? I've got to write few words about C#, generally piece of cake? No!
I've searched through various internet resources and books and what i got is kind of headache. For example Garbage Collector some sources says that this is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/301618",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.