text stringlengths 8 267k | meta dict |
|---|---|
Q: How to get scientific results from non-experimental data (datamining?)
*
*I want to obtain maximum performance out of a process with many variables, many of which cannot be controlled.
*I cannot run thousands of experiments, so it'd be nice if I could run hundreds of experiments and
*
*vary many controllable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get the value of the jdbc.batch_size property at runtime for a Web application using Spring MVC and Hibernate? According to what I have found so far, I can use the following code:
LocalSessionFactoryBean sessionFactory = (LocalSessionFactoryBean)super.getApplicationContext().getBean("&sessionFactory");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/105998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which SharePoint 2007 features are not available to Office 2003 users? I have been tasked with coming up with a compatibility guide for SharePoint 2007 comparing Office 2003 and Office 2007. Does anyone know where to find such a list?
I have been searching for awhile but I cannot seem to find a comprehensive list.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Parameterized SQL Columns? I have some code which utilizes parameterized queries to prevent against injection, but I also need to be able to dynamically construct the query regardless of the structure of the table. What is the proper way to do this?
Here's an example, say I have a table with columns Name, Address, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I call a .NET assembly from C/C++? Suppose I am writing an application in C++ and C#. I want to write the low level parts in C++ and write the high level logic in C#. How can I load a .NET assembly from my C++ program and start calling methods and accessing the properties of my C# classes?
A: I would defin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How do I Yield to the UI thread to update the UI while doing batch processing in a WinForm app? I have a WinForms app written in C# with .NET 3.5. It runs a lengthy batch process. I want the app to update status of what the batch process is doing. What is the best way to update the UI?
A: The quick and dirty way i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: how can I debug exe with soem switch flags from command prompt for e.g from command prompt I need to launch the exe with some switch flags under debugger. How do I do it?
This is an exe from c/c++ and built using VS2005 environment that I need debug. I pass some flags to this exe to perform some stuff.
A: You'll n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best approach to web service powered by a daemon I am relatively new to web services and am wondering what the standard "best approach" is. Basically, the way things work is I need to have a task running the background constantly.
The the web service will connect to the daemon and return with an appropriate respons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I make a batch file to act like a simple grep using Perl? I already know the obvious answer to this question: "just download <insert favorite windows grep or grep-like tool here>". However, I work in an environment with strict controls by the local IT staff as to what we're allowed to have on our computers.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: QDrag destroyed while dragging I have a Windows/Linux Qt 4.3 application that uses drag and drop in a QTreeView. I have two very similar applications which use the same set of Qt libraries. Drag and drop works in both on Linux but in only in one on Windows.
In the application that does not work the QDrag ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Practical example of Lisp's flexibility? Someone is trying to sell Lisp to me, as a super powerful language that can do everything ever, and then some.
Is there a practical code example of Lisp's power?(Preferably alongside equivalent logic coded in a regular language.)
A: The thing that I like most about Lisp (and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: regular expression to replace two (or more) consecutive characters by only one? In java, which regular expression can be used to replace these,
for example:
before:
aaabbb
after:
ab
before:
14442345
after:
142345
thanks!
A: "14442345".replaceAll("(.)\\1+", "$1");
A: In perl
s/(.)\1+/$1/g;
Does the trick, I assu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to create an AxHost solely in code [C#] I'm using a COM Wrapper to interact with Windows Media Player.
The it is using an AxHost to somehow wrap the player, for me it's all just magic under the hood^^
The AxHost.AttachInterfaces looks like this
protected override void AttachInterfaces()
{
try
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In MATLAB, can a class method act as a uicontrol callback without being public? In MATLAB 2008a, is there a way to allow a class method to act as a uicontrol callback function without having to make the method public? Conceptually, the method should not be public because it should never be called by a user of the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's the Meaning of and Fix for the Error 'The Controls Collection cannot...' Using ASP.NET 2.0, I have a web app where I am trying to use JavaScript to make one tab in a tab-container the active tab.
The recommendations have been based on:
var mX=document.getElementById('<%= tc1.ClientID%>')
$find('<%= tc1.Clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Popup Window similar to Modal Window I need to open a popup Window to a cross domain content. I should not allow the user either to access or close the parent window, till i am done with Child window.
The main issue with Modal window is that stops any asynchrnous process running on the main window. For example, tim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GCC - "expected unqualified-id before ')' token" Please bear with me, I'm just learning C++.
I'm trying to write my header file (for class) and I'm running into an odd error.
cards.h:21: error: expected unqualified-id before ')' token
cards.h:22: error: expected `)' before "str"
cards.h:23: error: expected `)' befo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Tools to enable translation of A-Box ontology data Does anyone know of any tools capable of defining a declarative mapping from T-Box structures from one ontology to another, which when executed can effect translation of A-Box instance data from one ontology's form to another's?
I have recently written such a tool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where do you put your CSS Margins? When you want to add whitespace between HTML elements (using CSS), to which element do you attach it?
I'm regularly in situations along these lines:
<body>
<h1>This is the heading</h1>
<p>This is a paragraph</p>
<h1>Here's another heading</h1>
<div>This is a footer</div>
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: ClickOnce Online-Only Application as a TS RemoteApp I've attempted just about everything to get our ClickOnce VB.NET app to run under Terminal Services as a RemoteApp. I have a batch file that runs the .application file for the app.
This works fine via RDP desktop session on the terminal server. As a TS RemoteApp,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VB.NET - How to get the instance used by a With statement in the immediate window VB.NET has a very handy "with" statement, but it also lets you use it on an unnamed variable, like this:
With New FancyClass()
.Level = "SuperSpiffy"
.Style = Slimming
.Execute()
End With
Is there a way to get at the "hidd... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Regular expression to match DNS hostname or IP Address? Does anyone have a regular expression handy that will match any legal DNS hostname or IP address?
It's easy to write one that works 95% of the time, but I'm hoping to get something that's well tested to exactly match the latest RFC specs for DNS hostnames.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "400"
} |
Q: How can I run an OpenGL application installed on a linux machine from my windows machine? In the spirit of being helpful, this is a problem I had and solved, so I will answer the question here.
Problem
I have:
An application that has to be installed on on Redhat or SuSE enterprise.
It has huge system requirements ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Fastest way to remove non-numeric characters from a VARCHAR in SQL Server I'm writing an import utility that is using phone numbers as a unique key within the import.
I need to check that the phone number does not already exist in my DB. The problem is that phone numbers in the DB could have things like dashes and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: What does OSGi solve? I've read on Wikipedia and other sites about OSGi, but I don't really see the big picture. It says that it's a component-based platform, and that you can reload modules at runtime. Also the "practical example" given everywhere is the Eclipse Plugin Framework.
My questions are:
*
*What is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "294"
} |
Q: lsof survival guide lsof is an increadibly powerful command-line utility for unix systems. It lists open files, displaying information about them. And since most everything is a file on unix systems, lsof can give sysadmins a ton of useful diagnostic data.
What are some of the most common and useful ways of using ls... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "108"
} |
Q: Calculate the Hilbert value of a point for use in a Hilbert R-Tree? I have an application where a Hilbert R-Tree (wikipedia) (citeseer) would seem to be an appropriate data structure. Specifically, it requires reasonably fast spatial queries over a data set that will experience a lot of updates.
However, as far as ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I synchronize the address book in my app using MAPI? The system I'm working on contains an address book. I am looking for sample code that will synchronize addresses with the current users address book through MAPI. I need two-way sync.
If you know of any open-source library with easy to use functions for thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I write a custom validation method with parameters for my ActiveRecord model? In my model I have:
validate :my_custom_validation
def my_custom_validation
errors.add_to_base("error message") if condition.exists?
end
I would like to add some parameters to mycustomer vaildation like so:
validate :my_custom_va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to get a distinct list of words used in all Field Records using MS SQL? If I have a table field named 'description', what would be the SQL (using MS SQL) to get a list of records of all distinct words used in this field.
For example:
If the table contains the following for the 'description' field:
Record1 "The d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the most stable, least intrusive way to track web traffic between two sites? I need to track traffic between a specific set of web sites. I would then store the number of clicks in a database table with the fields fromSite, toSite, day, noOfClicks. The complete urls are unimportant - only web site identity i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is causing a stack overflow? You may think that this is a coincidence that the topic of my question is similar to the name of the forum but I actually got here by googling the term "stack overflow".
I use the OPNET network simulator in which I program using C. I think I am having a problem with big array sizes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I plan an enterprise level web application? I'm at a point in my freelance career where I've developed several web applications for small to medium sized businesses that support things such as project management, booking/reservations, and email management.
I like the work but find that eventually my applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I best connect Seam and GWT in a stateful web application? We have a web application that was implemented using GWT. What it presents is fetched from a Jboss/Seam server using the remoting mechanism, and this works fine. However, the application is now extended to support sessions and users. The Seam GWT ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQLPlus settings to generate tab-separated data file Anyone have a good set of sqlplus configuration directives to help transform a given sql query into nicely tab separated output for pulling into a spreadsheet or further processing?
A: As Justin pointed out in his link, using the set colsep function SQLPlus comma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is there a case where delegate syntax is preferred over lambda expression for anonymous methods? With the advent of new features like lambda expressions (inline code), does it mean we dont have to use delegates or anonymous methods anymore? In almost all the samples I have seen, it is for rewriting using the new syn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do you programmatically identify the number of references to a method with C# I've recently inherited C# console application that is in need of some pruning and clean up. Long story short, the app consists of a single class containing over 110,000 lines of code. Yup, over 110,000 lines in a single class. And,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I find out what type each object is in a ArrayList? I have a ArrayList made up of different elements imported from a db, made up of strings, numbers, doubles and ints. Is there a way to use a reflection type technique to find out what each type of data each element holds?
FYI: The reason that there is so ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "88"
} |
Q: Secure a DLL file with a license file What is the best way to secure the use/loading of a DLL with a license file?
A: A couple of things you might want to consider:
Check sum the DLL. Using a cryptographic hash function, you can store this inside the license file or inside the DLL. This provides a verification meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What tools do you use to monitor a web service? From basic things likes page views per second to more advanced stuff like cpu or memory usage. Any ideas?
A: I think someone has asked the same type of question before here? Though I'm not too sure how helpful it is.
For CPU usage, etc, I would try RRDTool, or maybe ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Add non-ASCII file names to zip in Java What is the best way to add non-ASCII file names to a zip file using Java, in such a way that the files can be properly read in both Windows and Linux?
Here is one attempt, adapted from https://truezip.dev.java.net/tutorial-6.html#Example, which works in Windows Vista but fail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Getting multiple UI threads in Windows Forms I'm trying to figure out a way to make user controls run in their own UI threads. Is this possible? I'm trying to prevent a module-based application from crashing due to a single module.
Any thoughts?
A: That's not possible. However, with some non-trivial code, you can h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106378",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: C# - Can publicly inherited methods be hidden (e.g. made private to derived class) Suppose I have BaseClass with public methods A and B, and I create DerivedClass through inheritance.
e.g.
public DerivedClass : BaseClass {}
Now I want to develop a method C in DerivedClass that uses A and B. Is there a way I can ov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Is it possible to detect 32 bit vs 64 bit in a bash script? I am writing a bash script to deal with some installations in an automated way... I have the possibility of getting one such program in 32 or 64 bit binary... is it possible to detect the machine architecture from bash so I can select the correct binary?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Flash toggle snapping long, long ago in a galaxy far far away, You used to be able to toggle snapping in Flash with the ctrl key. Let's say you were dragging the end of a line very close to another object. You could very easily hold the ctrl key down to shut off the snapping and get it in there nice and close wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing an image in the projects resources? How do I access an image during run time that I have added to the projects resources?
I would like to be able to do something like this:
if (value) {
picBox1.image = Resources.imageA;
}
else
{
picBox2.image = Resources.imageB;
}
A: something.Image = Namespace.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Fetch top X users, plus a specific user (if they're not in the top X) I have a list of ranked users, and would like to select the top 50. I also want to make sure one particular user is in this result set, even if they aren't in the top 50. Is there a sensible way to do this in a single mysql query? Or should I just... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Validate an incoming SOAP request to the WSDL in PHP The built-in PHP extension for SOAP doesn't validate everything in the incoming SOAP request against the XML Schema in the WSDL. It does check for the existence of basic entities, but when you have something complicated like simpleType restrictions the extension p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Can Spring Parse and Inject Properties Files? I already know how to:
Load properties files into my Spring configuration using:
<context:property-placeholder location="aaa/bbb/ccc/stuff.properties"/>
Build properties objects on the fly using:
<props><prop key="abc">some value</prop></props>
But what I cant do, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What is the recommended version of GNU autotools? We maintain a RPM based software distribution at work so that we have a common set of software across all the platforms that we support. As a result we have to build a lot of third party software, and frequently find situations where we need to run autoconf/automake... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a good general method for debugging C++ macros? In general, I occasionally have a chain of nested macros with a few preprocessor conditional elements in their definitions. These can be painful to debug since it's hard to directly see the actual code being executed.
A while ago I vaguely remember finding a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to refer to the path to an assembly in the GAC within registry entries added by a Windows Installer package? I have a .NET assembly that contains classes to be registered as ServicedComponent through EnterpriseServices (COM+) and invoked through COM RPC by a third-party application. Therefore, I need to both ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What's a good source code search engine? The codebase I work on is huge, and grepping it takes about 20 minutes. I'm looking for a good web-based source code search engine.. something like an intranet version of koders.com.
The only thing I've found is Krugle Enterprise Edition, which doesn't post its prices... and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Load external JS from bookmarklet? How can I load an external JavaScript file using a bookmarklet? This would overcome the URL length limitations of IE and generally keep things cleaner.
A: 2015 Update
Content security policy will prevent this from working in many sites now. For example, the code below won't work ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "75"
} |
Q: What makes Ometa special? Ometa is "a new object-oriented language for pattern matching." I've encountered pattern matching in languages like Oz tools to parse grammars like Lexx/Yacc or Pyparsing before. Despite looking at example code, reading discussions, and talking to a friend, I still am not able to get a rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: EJB3 Transaction Propagation I have a stateless bean something like:
@Stateless
public class MyStatelessBean implements MyStatelessLocal, MyStatelessRemote {
@PersistenceContext(unitName="myPC")
private EntityManager mgr;
@TransationAttribute(TransactionAttributeType.SUPPORTED)
public void processOb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Requiring users to update .NET I'm working on some production software, using C# on the .NET framework. I really would like to be able to use LINQ on the project. I believe it requires .NET version 3.5 (correct me if I'm wrong). This application is a commercial software app, required to run on a client's work PC. Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enabling editing of primary key field in ASP.NET Dynamic Data / LINQ to SQL If you have a table with a compound primary key that is composed of a foreign key and other table columns, how do you get ASP.NET Dynamic Data to allow the non-foreign primary key table columns to be editable?
A: LINQ to SQL does not suppor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: using JTables with netbeans 6.1 aka Matisse Before you answer: Yes I have read the jtable tutorial over at Sun. No, it did not help me. Yes, I am a dolt. Please don't answer with a reference to that document. What I am specifically interested in is how to dynamically add rows and columns to my Jtable via the Netbean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I redirect Tornado / VXWorks shell output? I've been working on an embedded C/C++ project recently using the shell in Tornado 2 as a way of debugging what's going on in our kit. The only problem with this approach is that it's a complicated system and as a result, has a fair bit of output. Tornado 'helpfully'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Changing the default settings for a console application I would prefer that a console app would default to
multithreaded debug.
warning level 4.
build browse information.
no resource folder.
Does anyone know of any technique that would allow me to create a console app, with my desired options, without manually sett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to debug stored procedures (and write sprocs that are easier to debug)? What are good methodologies for creating sprocs that reduce the pain of debugging? And what tools are out there for debugging stored procedures?
Perhaps most importantly, what are indications to look out for that errors are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Is there a way to debug Velocity templates in the traditional code debugging sense? We make heavy use of Velocity in our web application. While it is easy to debug the Java side of things and ensure the Velocity Context is populated correctly, it would be extremely valuable to be able to step through the parsing of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Possible to monitor processes another process launches via WMI? I have a setup executable that I need to install. When I run it, it launches a msi to do the actual install and then dies immediately. The side effect of this is it will return control back to any console you call it from before the install finishes. De... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106476",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript with embedded Ruby: How to safely assign a ruby value to a javascript variable I have this line in a javascript block in a page:
res = foo('<%= @ruby_var %>');
What is the best way to handle the case where @ruby_var has a single-quote in it? Else it will break the JavaScript code.
A: Rails has method s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: sorting hashes/arrays in awk Is there an easy way to do any of the following things in awk?
*
*Sorting array/hash by it's data
*Sorting a hash by it's string key
A: Here's someone else's answer to a very similar problem:
http://www.computing.net/answers/unix/urgent-help-with-sorting-in-awk/4442.html
Which is s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a smart pointer and when should I use one? What is a smart pointer and when should I use one?
A: http://en.wikipedia.org/wiki/Smart_pointer
In computer science, a smart pointer
is an abstract data type that
simulates a pointer while providing
additional features, such as automatic
garbage collectio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2119"
} |
Q: Disable button on form submission I have a button that I would like to disable when the form submits to prevent the user submitting multiple times.
I have tried naively disabling the button with javascript onclick but then if a client side validation that fails the button remains disabled.
How do I disable the butto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Adding HTML to my RSS/Atom feed in Rails The default rails XML builder escapes all HTML, so something like:
atom_feed do |feed|
@stories.each do |story|
feed.entry story do |entry|
entry.title story.title
entry.content "<b>foo</b>"
end
end
end
will produce the text:
<b>foo</b>
in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why do I need to SEM_PRIORITY_Q when using a VxWorks inversion safe mutex? In VxWorks, I am creating a mutex with the SEM_INVERSION_SAFE option, to protect against the priority inversion problem.
The manual says that I must also use the SEM_PRIORITY_Q option. Why is that?
A: When creating a mutex semaphore in VxWr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rsync on Windows - Socket operation on non-socket I get the following error when trying to run the latest Cygwin version of rsync in Windows XP SP2. The error occurs for attempts at both local syncs (that is: source and destination on the local harddisk only) and remote syncs (using "-e ssh" from the openssh package... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Performance of SOAP vs. XML-RPC or REST The arguments about the simplicity of solutions using XML-RPC or REST are easy to understand and hard to argue with.
I have often also heard arguments that the increased overhead of SOAP may significantly impact used bandwidth and possibly even latency. I would like to see th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: How do I get USB disk drive inserted and removed events in a service without hearing my hard drive being accessed repeatedly on some O/S's? I use this code in my Windows Service to be notified of USB disk drives being inserted and removed:
WqlEventQuery query = new WqlEventQuery("__InstanceOperationEvent",
"Tar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to find the amount of physical memory occupied by a hash in Perl? I have a Perl script where I maintain a very simple cache using a hash table. I would like to clear the hash once it occupies more than n bytes, to avoid Perl (32-bit) running out of memory and crashing.
I can do a check on the number of keys-val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Does the tee command always wait for EOF? I'd like to log the output of a command to stdout as well as to a log file. I've got Cygwin installed and I'm trying to use the tee command to accomplish this.
devenv mysolution.sln /build myproject "Release|Win32" | tee build.log
Trouble is that tee seems to insist on wait... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What's a good alternative to the included Terminal program on OS X? My keyboard acts flaky when I use a terminal session on OS X (another question?), so using the command line is often frustrating. Other native applications seem fine and don't suffer the same problem. Is there another terminal application that mig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Porting Windows software to Embedded/Realtime Operating Systems I have an existing codebase targeting a Windows environment and with an eye to the future, would like to make this as cross platform as possible.
I've had some sucess with standard Linux distributions by using cross platform libraries but would like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What are the principles guiding your exception handling policy? There is a lot of relativity involved in working with exceptions. Beyond low level APIs where exceptions cover errors raised from hardware and the OS there is a shady area where the programmer decides what constitutes an exception and what is a normal c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What is the volatile keyword useful for? At work today, I came across the volatile keyword in Java. Not being very familiar with it, I found this explanation.
Given the detail in which that article explains the keyword in question, do you ever use it or could you ever see a case in which you could use this keyword i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "788"
} |
Q: Why are fixnums in Emacs only 29 bits? And why don't they change it?
Edit:
The reason ask is because I'm new to emacs and I would like to use Emacs as a "programmer calculator". So, I can manipulate 32-bit & 64-bit integers and have them behave as they would on the native machine.
A: The remaining 3 bits are used ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the most flexible serialization for .NET objects, yet simple to implement? I would like to serialize and deserialize objects without having to worry about the entire class graph.
Flexibility is key. I would like to be able to serialize any object passed to me without complete attributes needed throughout th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Algorithm to blend gradient filled corners in image I need to put an alpha blended gradient border around an image. My problem is in blending the corners so they are smooth where the horizontal and vertical gradients meet. I believe there is a standard algorithm that solves this problem. I think I even encountered... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can Seam 2.0.2sp1 apps run on Tomcat 5.5.9 with JBoss Embedded? I'm trying to run the Tomcat with JBoss Embedded jpa booking example. I run the build and deploy the war. I then get the following error:
ERROR [catalina.core.ContainerBase.[Catalina].[localhost].[/jboss-seam-jpa]] Error configuring application liste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106622",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I give java.util.Random a specific seed in thirdparty classes? I have a Java program that loads thirdparty class files (classes I did not write) and executes them. These classes often use java.util.Random, which by default generates random starting seed values every time it gets instantiated. For reasons of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Memory Management in Objective-C
Possible Duplicates:
Learn Obj-C Memory Management
Where are the best explanations of memory management for iPhone?
I come from a C/C++ background and the dynamic nature of Objective-C is somewhat foreign to me, is there a good resource anyone can point me to for some basic memory... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Why unicode() uses str() on my object only with no encoding given? I start by creating a string variable with some non-ascii utf-8 encoded data on it:
>>> text = 'á'
>>> text
'\xc3\xa1'
>>> text.decode('utf-8')
u'\xe1'
Using unicode() on it raises errors...
>>> unicode(text)
Traceback (most recent call last):
Fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is it safe to use the Administrator Tasks in Central Administration? Strange question, but: Sharepoint 2007 greets you with the Administrator Tasks on the Central Administration after installation.
I just wonder if this list is "safe" to be used for my own Administration Tasks? The reason why i'm asking is because I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Web-page template where content takes full height of view-port if has 1 line minus footer I am looking for a CSS-based web page template where the main content div occupies the full height of the view port (minus header and footer heights) when its content has few lines. The footer should be at the bottom of the vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Simultaneously monitoring multiple log files (over ssh) on Windows? I've used poderosa(a .NET terminal app) to monitor logs on multiple linux/solaris servers. This application is NOT getting currently maintained and I've had several problems with it.
I'm wondering what other users do to simultaneously monitor severa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to create a new type of entity in Microsoft Robotics Studio 2.0? What I'm trying to do with MRS is to teach myself some basic AI; what I want to do is to make a rocket entity, with things such as vectored exhaust, and staging. Anyone have an idea on how to make an entity that can fly? Or do I just need to consta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to get PHPMyAdmin to show MySQL warnings? I use PHPMyAdmin for convenience in updating a remote database.
But it doesn't show warnings, by default, which recently got me into some embarrassing trouble where I was updating a SET field with string not on its list and not noticing the problem.
I'm using 2.11.9.1 (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: in Rails : Retrieve user input from a form that isn't associated with a Model, use the result within the controller Here's a simplified version of what I'm trying to do :
*
*Before any other actions are performed, present the user with a form to retrieve a string.
*Input the string, and then redirect to the defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make sure a font exists before using it with .NET I have a VB.NET Windows Forms project that at one point paints text directly to onto the form at runtime. Before I paint with the font though, I want to make sure that the font and font-size exists on the user's machine. If they don't, I'll try a few other sim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Anybody got an Actionscript 3 Youtube API / wrapper? Google / Youtube has an API for Youtube for javascript and Actionscript 2.
Unfortunately this API is not compatible with Actionscript 3 without a wrapper - which google does not themselves provide.
Has anybody got an actionscript 3 wrapper they can make available?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I bundle a Python application including dependencies into a Windows Installer package for distribution? I need to package my Python application, its dependencies, and Python itself into a single MSI installer for distribution to users. The end result should desirably be:
*
*Python is installed in the standa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: Most efficient way to programmatically determine if a web domain is available? I am writing some code to determine whether a network domain is registered. For example, I want to check if "Google123.com" is available. There are at least two ways I can do this programmatically, but I'm not sure which is more valid:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: I want my C# Windows Service to automatically update itself Is there a framework that can be used to enable a C# Windows Service to automatically check for a newer version and upgrade itself? I can certainly write code to accomplish this, but I am looking for a framework that has already been implemented and (most ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Unit Testing File Modifications A common task in programs I've been working on lately is modifying a text file in some way. (Hey, I'm on Linux. Everything's a file. And I do large-scale system admin.)
But the file the code modifies may not exist on my desktop box. And I probably don't want to modify it if it IS on m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Standard concise way to copy a file in Java? It has always bothered me that the only way to copy a file in Java involves opening streams, declaring a buffer, reading in one file, looping through it, and writing it out to the other steam. The web is littered with similar, yet still slightly different implementations... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "430"
} |
Q: What do you use to protect your .NET code from reverse engineering? For a while we were using a tool called CodeVeil. I'm just wondering if there are better alternatives out there.
Edit: Before more people misunderstand the question, I'm aware that a determined cracker would probably be able to defeat any of these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/106794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.