text string | meta dict |
|---|---|
Q: What is the Best Way to Perform Timestamp Comparison in Bash I have an alert script that I am trying to keep from spamming me so I'd like to place a condition that if an alert has been sent within, say the last hour, to not send another alert. Now I have a cron job that checks the condition every minute because I n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: Copying file security permissions I'm copying a file from folder A to folder B and then trying to copy the file permissions. Here are the basic steps I'm using:
*
*CopyFile(source, target)
*GetNamedSecurityInfo(source, GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION)
*Print source SD using ConvertSecurit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Having trouble getting MSBuild and MSBuildCommunityTasks (VSS) to work together I am trying to learn how to do certain source control tasks with VSS and MSBuildCommunityTasks, like how to use tasks like GetVSS and VssLabel? Docs don't make this clear. And when I poke a stick at it to see if the error messages can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205676",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JavaScript Exception Handling What is the best technique for catching ALL exceptions thrown within JavaScript?
Obviously, the best technique is to use try...catch. But with ansynchronous callbacks and so forth, that can get tricky.
I know IE and Gecko browsers support window.onerror, but what about Opera and Safari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "82"
} |
Q: Class with single method -- best approach? Say I have a class that's meant to perform a single function. After performing the function, it can be destroyed. Is there any reason to prefer one of these approaches?
// Initialize arguments in constructor
MyClass myObject = new MyClass(arg1, arg2, arg3);
myObject.myMetho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "186"
} |
Q: New automatic properties in c# 3.0, what's the benefit? Whats the benefit of:
public string User {get; set;}
over
public string User;
Since you can't access the private member in the first case, how is it any different that just making your property public?
A: The second example is making the field public, not a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matching values in two tables query (SQL and ColdFusion) I have a query that has a list of base values and a list of language values. Each value has a key that matches to the other. The base values are stored in one table and the language values in another. My problem is that I need to get all matching base value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I check the syntax of Python code in Emacs without actually executing it? Python's IDLE has 'Check Module' (Alt-X) to check the syntax which can be called without needing to run the code. Is there an equivalent way to do this in Emacs instead of running and executing the code?
A: You can use Pyflakes togeth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: LINQ External Mapping to Class Library I've been struggling with a problem for the past couple days and haven't found a solution.
I have an Visual Studio solution with 2 projects, the first one is a DLL with my business objects and logic, the other project is my WinForm application, and a reference dependency on the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Ext JS in ASP.NET I don’t have advanced knowledge in JavaScript, and I am trying to learn how to use Ext JS framework in ASP.NET (C# or VB.NET) environment. I’ve got couple of samples, but was unable get the project working. Is there such as website or book so I can go a read up about Ext JS in more details an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What are the key use cases for use of virtualization in software development? What are the key use cases for the use of virtualization -- that is, running one or more "virtual PCs" using software such as VMWare and Microsoft Virtual PC -- for software development?
Also -- are there other instances/uses of virtualiza... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I populate the selected value of drop down lists with Mysql data? I need the values of form inputs to be populated by the sql database. My code works great for all text and textarea inputs but I can't figure out how to assign the database value to the drop down lists eg. 'Type of property' below. It revolves ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: asp.net hyperlnk control Is it possible to call a class's static property to set the navigateurl property?
<asp:HyperLink ID="hlRegister" NavigateUrl="<%= SomeClass.Property %>" runat="server" />
without using codebehind ofcourse!
A: You don't need code behind. You can just try it, like i just did. I created ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Read and write from/to a binary file in Matlab My knowledge of matlab is merely on a need to know basis, so this is probably an elementary question. Nevertheless here it comes:
I have got a file containing data (16-bit integers) stored in binary format. How do I read it into a vector /an array in matlab? How do I wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Get list of all tables in Oracle? How do I query an Oracle database to display the names of all tables in it?
A: With any of those, you can select:
SELECT DISTINCT OWNER, OBJECT_NAME
FROM DBA_OBJECTS
WHERE OBJECT_TYPE = 'TABLE' AND OWNER='SOME_SCHEMA_NAME';
SELECT DISTINCT OWNER, OBJECT_NAME
FROM AL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1190"
} |
Q: Java XML Binding What are you using for binding XML to Java? JAXB, Castor, and XMLBeans are some of the available choices. The comparisons that I've seen are all three or four years old. I'm open to other suggestions. Marshalling / unmarshalling performance and ease of use are of particular interest.
Clarification: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205749",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to add XAML storyboard animation to a full blown WPF Custom Control in an XBAP? We are creating custom WPF controls (not user controls) for an XBAP application and we would like to add a storyboard animation to scale the control to be 110% of its original size when the mouse hovers over it. We've used Blend to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I implement an address location bar (bread crumb control) similar to that in Windows Vista's File Explorer? The explorer control in Windows Vista is very handy and I would like to be able to incorporate it in an application written in WPF. I've been unable to find a stock control that is part of the Framework... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to fix code-complete in Visual Studio 2008 The code-complete feature in Visual Studio is very useful, and it still works for C# and C++ code - but no longer works for XAML (XML) editing.
Is there a setting somewhere that can re-enable this? My co-workers still have it working.
A: I think this post on the MSDN ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: YUI DataTable .NET webservice Does anyone have an example of using of populating a YUI DataTable with a .NET webservice?
Thanks in advance.
:)
A: I tried this a while back:
http://mattberseth.com/blog/2008/09/dynamic_data_experimenting_wit.html
However, you will need control over the webservice so that you can tu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rails: Best way to make changes to a production database I need to make changes to an in-use production database. Just adding a few columns. I've made the changes to the dev database with migrations. What is the best way to update the production database while preserving the existing data and not disrupting opera... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to move scroll bar up by one line? (In C# RichTextBox) For my C# RichTextBox, I want to programmatically do the same thing as clicking the up arrow at the top of a vertical scroll bar, which moves the RichTextBox display up by one line. What is the code for this? Thanks!
A: Here's what I do:
using System.Runt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert a SqlServer DateTime to universal time using SQL I have a database with DateTime fields that are currently stored in local time. An upcoming project will require all these dates to be converted to universal time. Rather than writing a c# app to convert these times to universal time, I'd rather use a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are there any recommendations for tools for remote collaboration on Windows? The company I work for currently uses "Go To Meeting" to share our desktops but it's quite expensive for what we use it for and we are looking for cheaper (or even free) alternatives.
We have evaluated yuuguu and yugma but they aren't up to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Phalanger with cakephp Has anybody been able to use CakePHP in Visual Studio using Phalanger
A: I've just tried. Using Phalanger 2.1 (march 2011) and CakePHP 2.0, there are just missing SplFileInfo and RuntimeException classes, that should be implemented soon hopefully.
I've used following command to compile the we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How does sharepoint recognize a file type? How does sharepoint identify a file type? For example, SharePoint will not allow you to upload executable files. Suppose if i rename a file extension from .exe to say, .doc, will the sharepoint allow the upload of this file?
A: Sharepoint recognize file types using their ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Odd permissions on file modified by PHP move_uploaded_file() I'm running PHP 5.2.6 on a Windows Server 2003 Enterprise box. IIS is set to deny anonymous access and use Integrated Windows authentication.
I'm using a PHP script to save a file uploaded from a web form. The file is uploaded to a temp folder, the script... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: windows automatic software updates What are some good solutions for handling automatic web based software updates for windows forms projects? I am aware of microsoft one-click, but am not interested in it at this time.
A: Not to get too spammy, but our company offers an automatic updating solution. It comes in 3 pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Integrated Security for multiple domains? Is there a way to connect to a db with Integrated Security from multiple domains?
A: yes, you have to set up the active directory domains to handle a restricted trust. Then sql server can use the credentials from both domains.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/205840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: OS X keybindings in AIR app When used in an AIR app, some standard keystrokes in OS X are either ignored or produce "mystery" characters rather than behaving as expected. Examples:
*
*option + left arrow should move the caret one word backward, it prints a mystery character
*ctrl + h should delete one character ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why would a JavaScript variable start with a dollar sign? I quite often see JavaScript with variables that start with a dollar sign. When/why would you choose to prefix a variable in this way?
(I'm not asking about $('p.foo') syntax that you see in jQuery and others, but normal variables like $name and $order)
A: T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1120"
} |
Q: Tool to save a larger clipboard Are there any tools to have a more robust clipboard type feature in windows?
I am using vs.net 2008 (if it has it built-in and I don't know about it?)
I used to have this tool where I created lots of items in my clipboard that I could access using short-cuts, but I forgot that name of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Find out which keyboard layout is used, using ruby How can I find out, which keyboard layout the user of my ruby application is using?
My aim is to have a game, where you can move the player on a map. To go one step down and one step left you press "Y" on a german keyboard. On an American keyboard, you would press "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Combining resources into a single binary file How does one combine several resources for an application (images, sounds, scripts, xmls, etc.) into a single/multiple binary file so that they're protected from user's hands? What are the typical steps (organizing, loading, encryption, etc...)?
This is particularly comm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do I need to develop on Vista to write to the wmdc (windows mobile device center) API? Can I write and compile code for this on XP? We have utilities for our apps that use activesync and now will be adding Vista/WMDC - and I was hoping I don't have to have another development OS (Vista) to develop and compile on. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Postback Security I've been working with jQuery and *.asmx web services lately, and I'm trying to be security-conscious in doing so.
I figure it would be possible to submit an AJAX request -- even when logged-out -- to a resource that should only be accessible while logged-in.
Thus, I include special keys and hashes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UserControl that embeds another user control, how to access embedded form fields? I have a long form that the user has to fill out.
So I broke the form into logical units and created another user control for some elements (they will be reused elsewhere).
So say the form has these fields:
UserControl3.ascx
Username
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SharePoint interview questions Let's have a list of some good interview questions for SharePoint developers. Please provide one question per entry, and if possible, the answers.
Also, please feel free to suggest corrections if the provided answers are wrong.
I will go first:
Q: How does SharePoint store pages?
A: H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: How do I add a 'Choose One' option to a combobox selector and then validate it in CakePHP? I am a Cake PHP novice.
I want to edit the table "Issue". This table contains a field "priority_id" related to another table called "Priority" by an foreign key. This table contains three values "Severe", "Disaster", "ToDo". U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any Tools to Catch Silly Mistakes in C Code? I had a nasty typo that wasted my time and my colleague's time, it was something like this:
for (i = 0; i < blah; i++); // <- I had a semi-colon here, that's the bug!
{
// Some awesome logic here
}
First of all, it's very embarrassing, second thing, I should never repe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Data disappearing after ItemUpdate in Sharepoint with Office 2007 documents I have a simple event handler with a ItemAdding event that changes a column value that I need in the ItemUpdated method. After uploading a word 2007 document (*.docx, *.pptx or xlsx) the value of the column is changed, but when I protect the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to handle security and avoid XSS with user entered URLs We have a high security application and we want to allow users to enter URLs that other users will see.
This introduces a high risk of XSS hacks - a user could potentially enter javascript that another user ends up executing. Since we hold sensitive da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: How to make windows form UI responsive? This is a common problem for all developers, I am looking for the best solution to make windows forms UI responsive.
I have an animated GIF file to show progress of my calcuation on windows form. I took a picture box control and placed animated gif into that. now when my calc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What user context do SharePoint timer jobs run under? What user context do SharePoint timer jobs run under? The farm account?
I'm going to be accessing some external resources (network share) via the timer job, so I need to know which SharePoint service account to grant permissions.
A: The windows identity will be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why does the C++ STL not provide any "tree" containers? Why does the C++ STL not provide any "tree" containers, and what's the best thing to use instead?
I want to store a hierarchy of objects as a tree, rather than use a tree as a performance enhancement...
A: All STL container are externally represented as "seque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "426"
} |
Q: Dynamically look up column names for a table while in an sql query I'm writing SQL (for Oracle) like:
INSERT INTO Schema1.tableA SELECT * FROM Schema2.tableA;
where Schema1.tableA and Schema2.tableA have the same columns. However, it seems like this is unsafe, since the order of the columns coming back in the SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I move files from one machine to another using ASP.NET? Let's say that I have a site where once the user selects a few options, the following (should) happen:
*
*Grabs files (in a directory) off of the local machine - works fine so far
*Moves them to a remote server - this is where I need help
Details:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL date format issue in select query I have an ASP page which will fetch records from a SQL server DB table. The table "order_master" has a field called order_date. I want to frame a select query to fetch order date > a date entered by user(ex : 07/01/2008)
I tried with convert and cast, but both are not working. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET Page Validation Related Article
On a similar topic to the above article, but of a more specific note. How exactly do you handle items that are in the viewstate (so they are included on submit), but can also be changed via AJAX. For instance, say we had a dropdown list that was populated through an AJAX web s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I get the index of an object in a For Each...Next loop? I'm using the following syntax to loop through a list collection:
For Each PropertyActor As JCPropertyActor In MyProperty.PropertyActors
i = IndexOf(PropertyActor)
Next
How do I get the index of the current object within the loop? I'm using IndexOf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/205986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL LEFT OUTER JOIN subquery I have SQL data that looks like this:
events
id name capacity
1 Cooking 10
2 Swimming 20
3 Archery 15
registrants
id name
1 Jimmy
2 Billy
3 Sally
registrant_event
registrant_id event_id
1 3
2 3
3 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any caveats to generating unique filenames for random images by running MD5 over the image contents? I want to generate unique filenames per image so I'm using MD5 to make filenames.Since two of the same image could come from different locations, I'd like to actually base the hash on the image contents. What caveats... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I clear the previous selection when an asp:TreeView is in an UpdatePanel? I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains a TreeView. The second panel contains a label and is triggered by a selection in the tree. When I select a node the label gets updated as expected and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Any good team-chat websites? Are there any good team-chat websites, preferably in Python, ideally with CherryPy or Trac?
This is similar to https://stackoverflow.com/questions/46612/whats-a-good-freeware-collaborative-ie-multiuser-instant-messenger#46660, but a few primary differences:
1) I very much want to host th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you mark a struct template as friend? I have code like this:
template <typename T, typename U> struct MyStruct {
T aType;
U anotherType;
};
class IWantToBeFriendsWithMyStruct
{
friend struct MyStruct; //what is the correct syntax here ?
};
What is the correct syntax to give friendship to the tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Oracle ORA-12154: TNS: Could not resolve service name Error? I am a SQL Server user .
I am on a project that is using oracle (which I rarely use)
I need to create an ODBC connection so I can access the some data via MS Access
I have a application on my machine called oraHome90. It seems to allow a configuration of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: PHP validation/regex for URL I've been looking for a simple regex for URLs, does anybody have one handy that works well? I didn't find one with the zend framework validation classes and have seen several implementations.
A: I used this on a few projects, I don't believe I've run into issues, but I'm sure it's not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "134"
} |
Q: MySQL: View with Subquery in the FROM Clause Limitation In MySQL 5.0 why does the following error occur when trying to create a view with a subquery in the FROM clause?
ERROR 1349 (HY000): View's SELECT contains a subquery in the FROM clause
If this is a limitation of the MySQL engine, then why haven't they implem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Visio database diagrams, associating columns I'm trying to be a good developer and create some documentation before I start programming my next project.
I have created a database schema diagram in Visio and created relationships between columns.
However, I am looking for a way to make the relationships between colum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best GUI control(s) to describe a time range I need to let end users specify a time range, to be stored and used internally as a starting date/time and ending date/time. The range could be minutes or it could be days.
Has anyone discovered an interactive control that can handle this elegantly?
Most GUI toolkits hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Recursion and Big O I've been working through a recent Computer Science homework involving recursion and big-O notation. I believe I understand this pretty well (certainly not perfectly, though!) But there is one question in particular that is giving me the most problems. The odd thing is that by looking it, it look... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Allow multi-select in a .NET TreeView I'm stuck in .NET 2.0 Windows Forms.
It doesn't look like the ability to select multiple nodes exists in the standard TreeView control.
I'm trying to do this for a context menu selection. So check boxes aren't an acceptable UI paradigm here.
What's the best way to provide that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Is !! a safe way to convert to bool in C++? [This question is related to but not the same as this one.]
If I try to use values of certain types as boolean expressions, I get a warning. Rather than suppress the warning, I sometimes use the ternary operator (?:) to convert to a bool. Using two not operators (!!) see... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: You Log to Your DB, Where Do You Log When Your DB is Down? I'm working with logging in PHP with Pear, and I get into a standard problem: can I use file-based logging when the DB is not available? I don't mind if it's slow due to concurrency issues, but it cannot fail to work due to multiple, simultaneous hits.
I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Are modal dialogs a good practice for the web? Are modal windows/dialogs considered a good practice for websites? One of the things that concerns me about using a modal window is that it is so much like a pop-up window and it could cause user frustration or cause users to simply close it because it's intrusive. Do ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Batch files: How to read a file? How you can read a file (text or binary) from a batch file? There is a way to read it in a binary mode or text mode?
A: Under NT-style cmd.exe, you can loop through the lines of a text file with
FOR /F %%i IN (file.txt) DO @echo %%i
Type "help for" on the command prompt for more in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "116"
} |
Q: How do I configure IIS to handle really large file uploads? Platform: IIS 6, ASP.Net 2.0 (.Net 3.5), Server 2003.
I'm building an application that accepts files from a user, processes them, and returns a result. The file is uploaded using HTTP POST to an ASP.Net web form. The application is expecting some large file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I use full text search across multiple tables, SQL Server 2005 I have a full text catalog with two tables in it.
tableA has 4 columns (a1, a2, a3, a4) of which 3 are indexed in the catalog, a2,a3,a4.
a1 is the primary key.
tableB has 3 columns (b1, b2, b3, b4), two of which are indexed in the catalog, b3 and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What SOAP client libraries exist for Python, and where is the documentation for them? I've never used SOAP before and I'm sort of new to Python. I'm doing this to get myself acquainted with both technologies. I've installed SOAPlib and I've tried to read their Client documentation, but I don't understand it too we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "344"
} |
Q: Is there any way to manually fold code in Eclipse? Is there any way to manually create fold points in code in Eclipse? I know how to enable folding and how to set the auto preferences, but i like being able to set my own fold points so I can ignore certain parts of my code. Think regions in VS.
I know there is in V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do you get the length of a list in the JSF expression language? How would I get the length of an ArrayList using a JSF EL expression?
#{MyBean.somelist.length}
does not work.
A: <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<h:outputText value="Table Size = #{fn:length(SystemBean.list... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: Are Microsoft's Own Implementations of Their OpenSource Counterparts Better, and Why? Microsoft like implementing their own versions of popular open-source frameworks and assemblies, for example:
*
*Microsoft's MVC Framework vs MonoRail
*Microsoft's Unity IoC container vs Castle Windsor / Spring.net / Ninject et... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I use the Twitter Search API to return all tweets that match my search query, posted only within the last five seconds? I would like to use the API to return all tweets that match my search query, but only tweets posted within the last five seconds.
With Twitter's Search API, I can use the since_id to grab a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you programmatically determine whether a Windows computer is a member of a domain? I need a way to determine whether the computer running my program is joined to any domain. It doesn't matter what specific domain it is part of, just whether it is connected to anything. I'm coding in vc++ against the Win32 API... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I force subversion to commit an unchanged file? I want subversion to commit a file even if it's unchanged. Is there a way to do this?
A: If you want the file contents to remain unchanged (meaning that you can't merely change whitespace as johnstok suggested) you can always change one of the properties on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Move/copy SQL Server 2005 full text index We are moving our database server to a bigger box. I have several databases with full text indexes. What is the best way to move the full text indexes?
A: I find backup and restore is the only reliable way to move databases. The FTS should move with it when you do that. Det... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Converting double array to IComparable array I'm trying to create a Quicksort base class using VB.NET, taking it an array of IComparable elements. The signature looks like this:
public shared sub Sort(ByVal values() as IComparable)
However, when I pass in an array of doubles, the compiler is giving me errors.
Di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best free ORM tools to use with .NET 2.0/3.5 I'm interested in using an Object-Relational Mapping package for an upcoming project. This project will begin as an ASP.NET application but will have lots of functionality that will eventually be shared with WinForms applications. Can anyone suggest some good, free ORM ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: PropertyInfo.GetValue(null, null) returns null i have a class with a static public property called "Info".
via reflection i want to get this properties value, so i call:
PropertyInfo pi myType.GetProperty("Info");
string info = (string) pi.GetValue(null, null);
this works fine as long as the property is of type st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LINQ to SQL: Setting ObjectTrackingEnabled to false breaks lazy loading of child entities? Is there a way to disable LINQ's object tracking features, without also disabling lazy-loaded child associations?
I'm using LINQ2SQL in a set of integration tests. I'm only using LINQ to verify changes in the database, so I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Explanation of SendMessage message numbers? I've successfully used the Windows SendMessage method to help me do various things in my text editor, but each time I am just copying and pasting code suggested by others, and I don't really know what it means. There is always a cryptic message number that is a parameter.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Oracle - Best SELECT statement for getting the difference in minutes between two DateTime columns? I'm attempting to fulfill a rather difficult reporting request from a client, and I need to find away to get the difference between two DateTime columns in minutes. I've attempted to use trunc and round with various f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Grails File Upload Problems I'm trying to emulate the file upload code from the grails website, and I'm running into some problems. I'm using the same code as found here. Here is my code:
<g:form action="upload" method="post" enctype="multipart/form-data">
<input type="file" name="myFile" />
<i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: returning data via webservice c# i know this is an age old question, but this is my scenario
This is in C# 2.0
Have a windows application which has a datagridview control. This needs to be populates by making a webservice call.
I want to achive the same functionality on the data if i were to use a direct connection ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: variables as parameters in field options I want to create a model, that will set editable=False on creation, and editable=True on editing item. I thought it should be something like this:
home = models.ForeignKey(Team, editable=lambda self: True if self.id else False)
But it doesn't work. Maybe something with ove... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you programmatically eject an USB mass storage device? How do you programmatically eject(safely remove) an USB mass storage device in Windows (XP)?
A: In autoit, you have a script which does just that.
It basically comes from this Microsoft article and uses kernel32.dll DeviceIoControl function
Of course, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why does the Store Procedure I'm calling over ODBC fail at the same location? I'm using the freeodbc++ library to access data on a MS SQL Server 2000 database (SP3? SP4?). In particular, I'm running a particularly long and nasty stored procedure. I can watch the procedure execute in SQL Profiler, however, it tends... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Freeing memory allocated to an array of void pointers I am declaring an array of void pointers. Each of which points to a value of arbitary type.
void **values; // Array of void pointers to each value of arbitary type
Initializing values as follows:
values = (void**)calloc(3,sizeof(void*));
//can ini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Well explained algorithms for indexing and searching in metric spaces I need to implement some kind of metric space search in Postgres(*) (PL or PL/Python). So, I'm looking for good sources (or papers) with a very clear and crisp explanation of the machinery behind these ideas, in such way that I can implement it my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hiding private data members? (C++) Is there a way to hide private data members of a C++ class away from its users, in the cpp file? I think of the private members as part of the implementation and it seems a little backwards to declare them in the header file.
A: See Pimpl Idiom
A: The "pimpl" idiom is how this i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Best way to ensure page-level security I wish to ensure a user has access to an aspx page by 'Zone'. For example, "Financials" is a Security Zone which some users should not have access to.
The result should not involve patterns such as MVP, MVC, MVVM, etc. I'm looking for something that's light and quick to do.
To ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206276",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Object(Output|Input)Stream binary protocol I was wondering if anyone had some resources that describe the binary protocol used by ObjectOutputStream. I realize of course that objects themselves can specify what their data by implementing the Externalizable interface, so I guess I'm looking more toward the structure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you tell someone they're writing bad code? I've been working with a small group of people on a coding project for fun. It's an organized and fairly cohesive group. The people I work with all have various skill sets related to programming, but some of them use older or outright wrong methods, such as excessi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "217"
} |
Q: Are there any HTTP/HTTPS interception tools other than Fiddler, Charles, Poster, and Achilles? I'm in the process of testing my application with respect to security.
Aside from Fiddler, Charles and Poster (Firefox plug in). Are there any other free to use https interception (and editing) applications out there? E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do I distinguish a file from a directory in Perl? I'm trying to traverse through all the subdirectories of the current directory in Perl, and get data from those files. I'm using grep to get a list of all files and folders in the given directory, but I don't know which of the values returned is a folder name and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How To: Execute command line in C#, get STD OUT results How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are programmatically selected and write the results to a text box.
A: You will need to use ProcessStartInfo with RedirectSt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "523"
} |
Q: How to check for empty array in vba macro I want to check for empty arrays. Google gave me varied solutions but nothing worked. Maybe I am not applying them correctly.
Function GetBoiler(ByVal sFile As String) As String
'Email Signature
Dim fso As Object
Dim ts As Object
Set fso = CreateObject("Scripting... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Exchange Web Services, try to use ExchangeImpersonationType I am trying to use EWS, first time trying to use the ExchangeServiceBinding. The code I am using is below:
_service = new ExchangeServiceBinding();
//_service.Credentials = new NetworkCredential(userName, userPassword, this.Domain);
_service.Credentials = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Raw Java 2D implementation of a scrollbar How would I go about writing my own scrollbar using standard Java 2D.
I really don't want to use swing, and I've already made up my own component parts for everything else such as buttons etc.
I'm not really looking for code, rather the math involved in the event changes and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Print JPEG File Using JSP Is there a JSP script I can run to point to a JPEG file on the local filesystem to be printed to the Windows default printer? Thanks.
Edit:
I have the file on my server already.
How would I load the file into a browser to run window.print()?
Thanks
A: You will need a java applet if you do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/206349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |