text stringlengths 8 267k | meta dict |
|---|---|
Q: Regex to match for zeros I am looking for a regex pattern that would match several different combinations of
zeros such as 00-00-0000 or 0 or 0.0 or 00000
Please help
Thanks!
EDIT:
Well, I have web service that returns me a result set, based on what it returns me I can decide if the result is worth displaying on t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In WIA, How can I add my program in the program list of acquiring images from a digital camera? When I connect my digital camera with my computer, a dialog box containing all the registered programs can be used to get images from the camera will appear. Now I want to add my own program in the list, so that when I cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What Open Source GIS tools do you use / recommend? I'm researching Open Source GIS resources - and wonder out of all the Open Source tools that are out there - what people are actually using / finding useful.
http://en.wikipedia.org/wiki/GIS_software
A: http://sharpmap.codeplex.com for the .Net world. We're not und... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I determine if an email is Base64 encoded? I am having difficulty determining if the body of a text email message is base64 encoded.
if it is then use this line of code;
making use of jython 2.2.1
dirty=base64.decodebytes(dirty)
else continue as normal.
This is the code I have atm. What line of code will all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: GDI handles with icons . l i have a winforms application. i have a user control with a lot of icons. the user can load this control on a form many times (in a tabbed layout). right now i am loading the icons each time the control is created (could be up to 50 times in teh app). is there any way to cache these ic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Passing a List from Silverlight using WCF I have my WCF service defined as follows
[ServiceContract]
public interface IService1
{
[OperationContract]
IList GetMyTable();
[OperationContract]
void SendMyTable(List<RatePositions> ratePositions);
[OperationContract]
void SendS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Call function with "this" I have an onclick handler for an <a> element (actually, it's a jQuery-created handler, but that's not important). It looks like this:
function handleOnClick() {
if(confirm("Are you sure?")) {
return handleOnClickConfirmed();
}
return false;
}
From this function, the th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: get users by group in sharepoint can anyone show me how to get the users within a certain group using sharepoint?
so i have a list that contains users and or groups. i want to retrieve all users in that list. is there a way to differentiate between whether the list item is a group or user. if its a group, i need to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to fill DataTable from an in-memory Excel Worksheet Our client gets Excel files in Excel's HTML format.(That's the way it arrives; nobody has any control over that.) We then need to run a report based on the data in the file. Using ADO.NET (OleDbReader) results in a "External file not in expected format" excepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaScriptSerializer C# and Generics (newbie mistakes I think!) WinForms C#.. am getting some JSON in the format below (bottom of message) and trying to deserialise using:
using System.Web.Script.Serialization;
When I had simply this json returned:
{
"objects": [
{
"categoryid": "1",
"name": "fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Accessing network shares I am currently trying to access a network share from my machine programaticaly using vc++ 6.0. I am using WNetAddConnection2 to connect to a share using my credentials.
I am facing the following problem:
Consider the case when there are 2 users trying to access the same remote share from sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there somethone wrong with my Object Scope? This is a program I'm writing (myself as opposed to copying someone else's and thus not learning) as part of the ObjectiveC and Cocoa learning curve. I want to draw simple shapes on a NSView (limiting it to ovals and rectangles for now). The idea is that I record each N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I need to store postal codes in a database. How big should the column be? I expect the column to be a VARCHAR2, in my Oracle Database.
US Zips are 9.
Canadian is 7.
I am thinking 32 characters would be reasonable upper limit
What am I missing?
[EDIT]
TIL: 12 is a reasonable answer to the question
Thanks to everyone ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: Trying to use Visual studio IDE (Find & Replace) as a quick & dirty regex tool but stucked I have a xml text file opened in VS2005 IDE.
It has 4 mocked up lines:
<mc id="dog" name="mydogBob"/>
<mc id="cat" name="katie"/>
<mc id="turtle" name="slow"/>
<mc id="fish" name="happy"/>
How do I use VS2005 Find/Replace fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to display an array to the user I'm trying to display the contents of an ordered array in something like a JTextField.
for (int i=0; i<array.length; i++) {
this.textField.setText(array[i]);
}
This won't work for two reasons. The first minor reason: if the array length is 4 then jtextfield is getting it's va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VSS History - Exclude Labels Within the GUI of VSS it is possible to view the history of an item 'including' or 'excluding' the labels.
I'm trying to do the same thing but from the command line but I just can't see which switch I need to use in order to 'exclude' labels (by default they are included).
e.g. I'm runn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to have multiple header rows in a virtual string tree? I have a need for multiple fixed rows for the header of a virtual string view - something that looks like the effect you get if you set a StringGrid's FixedRows property to a value greater than 1. Is there a way to achieve this?
Some searching on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I change RichTextBox paragraph spacing? I am using a RichTextBox in WPF, and am trying to set the default paragraph spacing to 0 (so that there is no paragraph spacing). While I could do this in XAML, I would like to achieve it programmatically if possible. Any ideas?
A: RichTextBox rtb = new RichTextBox()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: JSON WebService in ASP.NET How do I create an ASP.NET web service that returns JSON formatted data?
A: The most important thing to understand is to know how to represent data in JSON format.
Please refer http://www.json.org/ to know more about it.
Once you understand this, then the rest part is pretty straight for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I check from Ruby whether a process with a certain pid is running? If there is more than one way, please list them. I only know of one, but I'm wondering if there is a cleaner, in-Ruby way.
A: This is how I've been doing it:
def alive?(pid)
!!Process.kill(0, pid) rescue false
end
A: The difference betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: When to prefer JSON over XML? My requirement is just to display a set of values retrieved from database on a spread. I am using jquery.
A: JSON is always preferable in terms of the processing the client browser has to do for parsing the data. Also, JSON is light weight data exchange format.
XML parsing always consu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325085",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "150"
} |
Q: Java Stackoverflow Error Hi sometimes i encoutner this error after restarsting sun application server 8.2 domain anyone have any idea what could be the reason?
javax.servlet.ServletException at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:255) at
javax.servlet.http.HttpServlet.service(HttpSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Convert a jQuery set into HTML Given a jQuery result set, how do you convert that back into plain HTML?
<div class="abc">
foo <strong>FOO</strong>
</div>
<div class="def">
bar
</div>
--
var $mySet = $('div');
Given $mySet, how would you go about returning to the plain HTML above?
A: If your set consists o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Detect company names that are visiting my site I'd like to use visitor IP addresses into a company name. This will be used for displaying something like "Hello visitor from Apple Inc." . Note I am looking for the company name, not the domain name. Extra points for determining the originating country. The app is writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to do migration of reports from Crystal Reports to Business Objects Enterprise How can I migrate reports from Crystal Reports to Business Objects Enterprise?
Does anyone have any ideas, suggestions or advice?
A: It's not a migration as much as it is a deployment.
In Crystal Reports, select File | Save As..., cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accessing non top-level class without a top level class in Java I have a Java file TestThis.java like the following:
class A
{
public void foo()
{
System.out.println("Executing foo");
}
}
class B
{
public void bar()
{
System.out.println("Executing bar");
}
}
The above code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to convert imperial units of length into metric? Here I am faced with an issue that I believe(or at least hope) was solved 1 million times already.
What I got as the input is a string that represents a length of an object in imperial units. It can go like this:
$length = "3' 2 1/2\"";
or like this:
$length = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Posix Error 14 (bad address) on open read stream in Cocoa. Hints? I'm following the sample code in CFNetwork Programming Guide, specifically the section on Preventing Blocking When Working with Streams. my code is nearly identical to theirs (below) but, when I connect to my server, I get posix error 14 (bad address... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Storing a small number of images: blob or fs? I'm adding some functionality to my site so that users can upload their own profile pictures, so I was wondering about whether to store them in the database as a BLOB, or put them in the file system.
I found a question similar to this here: Storing images in DB: Yea or N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Calling generic method with a type argument known only at execution time Edit:
Of course my real code doesn't look exactly like this. I tried to write semi-pseudo code to make it more clear of whay I wanted to do.
Looks like it just messed things up instead.
So, what I actually would like to do is this:
Method<Inter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "132"
} |
Q: Does the pointer get from sqlite3_column_blob() method need to be delete? Like this: const void * test = sqlite3_column_blob(stat, 1);
Can I delete or delete[] test?
A: From the sqllite documentation:
The pointers returned are valid until a type conversion occurs or until sqlite3_step() or sqlite3_reset() or sqlit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a library that will detect the source code language of a block of code? Writing a python script and it needs to find out what language a block of code is written in. I could easily write this myself, but I'd like to know if a solution already exists.
Pygments is insufficient and unreliable.
A: I guess you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to load javascript files using google.load instead of directly using tag in freemarker template language? How to load javascript files using google.load instead of directly using tag in freemarker template language?
A: For loading common JavaScript Libraries like jQuery, Prototype, MooTools, Dojo... from the G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Overriding application server behaviour for loading jsp-api and servlet-api jars in a packaged web application I have a project built and packaged with a specific version of jsp-apiand servlet-api jar files. Now I want these jars to be loaded when deploying the web project on any application server for example tomca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there actually COBOL in .NET? I was checking Microsoft's Visual Studio page just now and in the advertisements sidebar I suddenly saw an incredible advertisement:
"Net Express is a COBOL development environment for extending core business processes to the .NET Framework and other distributed platforms."
Of cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: What are the benefits of R6RS Scheme's make-variable-transformer? While looking at the syntax-case section in R6RS, I saw the keyword make-variable-transformer, described as an identifier macro. The example given is very minimal, and I am not groking why it is necessary, or what use-cases require it. Finding additio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can you write info to a Windows "global (in-memory) variable" than can be shared by various applications, using Windows APIs? Maybe this cannot be done, but please help or suggest how this can be achieved without writing something to disk.
Lets suppose there are two string values that I want to share between two... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325190",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Visual Studio Tips on getting headers that are used in a given project? I have added all the header files from library in path how to get the headers that are only needed for the project
A: There's a compiler option that will produce a list of included files for a compilation unit in your Build Output window.
In th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to bind a click event on a recently added tag in jquery I have 6 links on a page to an mp3.
The plugin I installed replaces those links with a swf and plays that mp3 inline.
The problem I had was that it was possible to activate all 6 links and have all audio playing at once. I solved that problem (I feel in a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: java.util.zip.ZipException: error in opening zip file I have a Jar file, which contains other nested Jars. When I invoke the new JarFile() constructor on this file, I get an exception which says:
java.util.zip.ZipException: error in opening zip file
When I manually unzip the contents of this Jar file and zip it up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "89"
} |
Q: Why would I use InitializeLifetimeService on a WinForm Dialog? I'm refactoring some code I inherited from a long-gone developer, and I find this:
ImportExportForm l_Form = new ImportExportForm();
l_Form.InitializeLifetimeService();
l_Form.ShowDialog();
I've never seen or used the LifetimeService before, but from th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SVN backup all the repositories in one go I've seen lots of ways to backup a single repository in subversion. Is there any way to backup all the repositories in one go. I have lots of repositories for different projects and don't want to have to create a script every time.
A: A single repository in Subversion is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Apache Camel question on routing via javaDSL When using routing in a Camel context via RouteBuilder, What is the practical difference between:
1) from(A).to(B).to(C);
2) from(A).to(B); from(B).to(C)
A: 1) uses a single consumer from A then sends to B and sends the result of invoking B (if B returns some output) to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Which Java IDE is the most RAD in a Delphi-like way? I want to develop Java apps, real quick, what IDE should I choose?
A: IntelliJ IDEA. from JetBrains.
A: That depends on which type of developer you are. You the "emacs" (powerful tool) or the "vi" (get things done) type? I, for example, won't touch IntelliJ IDEA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Algorithmic sound and music generation I'm looking to use procedurally-generated sound and music in a Flash program I'm writing. I haven't found anything in the ActionScript 3.0 reference manual that shows how to do this. Is this possible? Have any third-party tools been developed that can do this? Or can Flash/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325223",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What's the easiest way to change the Windows proxy address using .NET code? I found a code samples here:
http://sturla.simnet.is/post/2008/09/22/Enable-proxy-in-IE.aspx
But it's very complex and involves manipulating the Windows registry.
Is there an easier and less error-prone way of changing the proxy server addre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325225",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding the selected item of list view I currently have a list view which has several rows of data and I have a contextmenustrip in C# .NET.
What I am having problems with is when you click on the menu strip item I want to know which row has been selected.
A: To get selected rows as sindre says you do like this:
fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rendering eye-candy bar charts with PHP: tools / best practices We are using Google Charts for render the chart images, but 500 requests/day became not enough. What PHP classes/frameworks are worth looking at?
A: The Google Chart API no longer has a 500 request/day limit. I recall this changed a couple of months ag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Using new[] I have a question about using new[].
Imagine this:
Object.SomeProperty = new[] {"string1", "string2"};
Where SomeProperty expects an array of strings.
I know this code snippet will work. But i want to know what it does under the hood. Does new[] makes an instance of the class object and in SomeProper... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Make Iframe to fit 100% of container's remaining height I want to design a web page with a banner and an iframe. I hope the iframe can fill all the remaining page height and be resized automatically as the browser is resizing. Is it possible to get it done without writing JavaScript code, only with CSS?
I tried to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "323"
} |
Q: In WCF, should you have large MaxBufferPoolSize value for large messages? For this WCF service I have developed, I have to set MaxReceivedMessageSize to 5MB. My current problem is figuring out whether it is better to have a larger MaxBufferPoolSize value, like 5MB, or retain the original 512KB value.
Does anyone kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Best way to display & program game board? What would be the best way to display & program simple game board (say chess, checkers and such) in C#? In terms of controls and underlying game logic.
An idea that came to my mind was to use Picture Box (or class inheriting from it) with Board & Field classes.
*
*Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Working with the task scheduler 1.0 COM API I'm trying to write a simple program in VC++ which will just initialize the task scheduler. I'm following the example suggested at the MSDN site, but I get unresolved symbol errors from the linker.
The error is on this line:
hr = CoCreateInstance(CLSID_CTaskScheduler,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross-platform way to open a file using Java 1.5 I'm using Java 1.5 and I'd like to launch the associated application to open the file. I know that Java 1.6 introduced the Desktop API, but I need a solution for Java 1.5.
So far I found a way to do it in Windows:
Runtime.getRuntime().exec(new String[]{ "rundll32",
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Optimizing Code You are given a heap of code in your favorite language which combines to form a rather complicated application. It runs rather slowly, and your boss has asked you to optimize it. What are the steps you follow to most efficiently optimize the code?
What strategies have you found to be unsuccessful wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: SSH Password/User problem with Cygwin sshd service I just set up SSHd through Cygwin on a Windows XP Pro box overseas using a RAT and discluded the openssh package from the install.
I ran the cywin shell (from c:\cywin) and ran
Now, It's under a port I know is safe and fowarded properly, but I won't share it's numbe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using RPX or similar openID selector in other languages than English When you login to Stackoverflow you see a button with the openID logo between the text input field and the submit button.
When you click this button you get a dropdown with the main openID providers. This is an integrated 3rd party service called '... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Multi Select combo box in dojo grid I've implemeneted customised single select combo box as a cell element in dojo grid. Can someone tell me how to implement multi select conbo box?
A: The best way to get your highly specific question answered is to go through official channels, like Dojox Grid Support.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/325321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there anyway to avoid this security issue in Lua? I was just working on a localizable Lua string solution, when I came up with this hack, problem is I don't know how to avoid getting hacked by it :)
So I was wondering if anyone, has done something similar and or knows how to protect from this kind of attack. (in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: EventLog Intermittent Exception I have an intermittent problem with some code that writes to a Windows Event Log, using C# and .Net's EventLog class.
Basically, this code works day-to-day perfectly, but very occasionally, we start getting errors like this:
"System.ArgumentException: Only the
first eight character... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Rules for using update sites in Eclipse? Do you know any documentation about the rules of using update sites? I have managed the last 2 and a half years the update site of our company, and these are the problems I have to address:
*
*Not all projects use the same eclipse version. We had projects that used eclipse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Visual Studio C#-settings and StyleCop (MS Source Analysis) Does anyone have settings for Visual Studio, in XML or a .vssettings-file, that is compatible with StyleCop?
I've used the book Framework Design Guidelines: Conventions, Idioms, and Patterns for Reusable .NET Libraries for guidance on what Microsoft finds t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best way to parse a dynamic text list in PHP I have below a list of text, it is from a popular online game called EVE Online and this basically gets mailed to you when you kill a person in-game. I'm building a tool to parse these using PHP to extract all relevant information. I will need all pieces of information sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325337",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to correctly draw a listbox and image in .net? protected override void OnPaint(PaintEventArgs e)
{
e.Graphics.DrawImage(render, 400, 400);
}
This is the OnPaint of the Form1 class. The form has a listbox. The problem is with the render only showing partially when doing a resize on the form. Is the listbox s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Validate text against mask value in C# I need to validate a certain property to one of my classes. When I set the property, the class should validate the input and if incorrect, set the object to an invalid state.
Question : The property value must be in a certain mask/format eg. &&&&-&&&&-&&&&. I cannot use regular... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Name for HTTP Request+Response There's one thing I haven't found in RFC 2616 ("Hypertext Transfer Protocol -- HTTP/1.1") and that's a "canonical" name for a request/response pair. Is there such thing?
4.1 Message Types:
4.1 Message Types
HTTP messages consist of requests from client to server and responses
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How to make each Treeview Node have a related TextBox I am trying to make a form in which the user fills in values. It is quite long. I wish to use an expandable tree to fit it into my one form. Is there any way to give each TreeView Node a TextBox by its side? Having the node text edited by itself is not enough.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to make http://my.domain.com start my ASP.NET application in http://my.domain.com/virtualdir I am having trouble getting my ASP.NET application to start an application. For example when I type:
http://my.domain.com/virtualdir or
http://my.domain.com/virtualdir/default.aspx
My application will start but I cann... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I filter out the rows which contain a particular column with null or empty data in SQL? In SQL, How we make a check to filter all row which contain a column data is null or empty ?
For examile
Select Name,Age from MEMBERS
We need a check Name should not equal to null or empty.
A: For DBMSs that treat '' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Dropdown items on a ToolstripmenuItem and seeing if their items are checked I'm building a small Winform in which I can view types of food in my kitchen.
My entire stock can be displayed by a datagrid view.
Now, I have a filtermenu which contains a dropdownlist of items that can be checked and unchecked.
Based on wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access: Runtime error 13 type mismatch I am getting a runtime error 13 at the end of the following code:
Sub plausibilitaet_check()
Dim rs As DAO.Recordset
Dim rs2 As ADODB.Recordset
Dim db As database
Dim strsql As String
Dim strsql2 As String
Dim tdf As TableDef
Set db = opendatabase("C:\Codebook.mdb")
Set rs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CodeWarrior xml project files schema? I am looking for a reference describing precisely the XML project file format used by CodeWarrior. I managed to find XSD files for recent versions of Visual C++ (here), could anyone point me to some equivalent for CodeWarrior?
A: As one of the engineers that worked on CodeWarri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery and Unicode characters I am calling a .txt file from a jquery ajax call. It has some special characters like ±. This ± is a delimiter for a set of array; data I want to split out and push into a JavaScript array.
It is not treated as ± symbol when interpreted like this.
How do I get that data as just like bro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does "Modify files with subversion/git" mean? % rails
...
General Options:
...
-c, --svn Modify files with subversion. (Note: svn must be in path)
-g, --git Modify files with git. (Note: git must be in path)
What do these "Modify files" options do for me?
Edit: It ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you organize your RPGLE subversion repository on IBM i? How do you organize your RPGLE subversion repository on IBM i ?
I'm currently working in a travel business company that has a vast amount (about 13k) of RPGLE - sources for their in-house application and finally they want to use version control and adopt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Assigning hostnames in umbraco I'm setting up af multi lingual page with the umbraco cms.
I have a content structure that looks like this:
*
*Content
*
*da
*
*danish subpage 1
*danish subpage 2
*en
*
*english subpage 1
*english subpage 2
I would like the routing to be something like:
http://mysit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: writing to a program into input stream I am using oracle wallet to store the oracle database passwords,
the batch file to create the wallet asks for password when you run it.
is there any way to modify the batch file , and provide the password before hand
so that i can avoid inputtting the password every time i run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I return an array back from a function from a LINQ anonymous list? Essentially i want to have a generic function which accepts a LINQ anonymous list and returns an array back. I was hoping to use generics but i just can seem to get it to work.
hopefully the example below helps
say i have a person object with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Table structure to produce reports To follow on from my question yesterday....
MySQL Table Design for a Questionnaire
I sat down with my boss yesterday afternoon to run through how I was proposing to design the database. However, now I am more confused than ever.
He has been using Access for many years, and h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Differences between matlab and comsol script? I find a lot of use for matlab, but my current employer don't have a matlab license: there is one for Comsol, which comes with comsol Script. On a first glance, comsol script is identical to matlab, but after awhile you find eerie differences. Many graphics graphics' fea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325416",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Visual Basic 6.0 form designer - cannot drag to move objects I am a newbie for Visual Basic 6 project. I downloaded some tutorials for testing; however, I am not able to drag, move, or edit the UI form designer objects in those projects.
Does anybody know there is an object lock function in VB6?
If there is, how ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MDI Child refresh/repaint problems (C#, Winforms, .NET 2.0, VS2005, DevExpress 8.2) Hiya - been pointed at you guys by a friend of mine.
I have an MDI application (C#, Winforms, .NET 2.0, VS2005, DevExpress 8.2) and one of my forms is behaving very strangely - not repainting itself properly where it overlaps with an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325421",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to warn for the use of unset variables in a KornShell script. Is there any way to throw errors or warnings in a KornShell (ksh) script to prevent the use of unset variables?
Let's assume I have a temporary folder that I want to remove.
TEMP_FILES_DIR='/app/myapp/tmp'
rm -Rf $TEMP_FILE_DIR #notice the misspellin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programmatic equivalent of default(Type) I'm using reflection to loop through a Type's properties and set certain types to their default. Now, I could do a switch on the type and set the default(Type) explicitly, but I'd rather do it in one line. Is there a programmatic equivalent of default?
A: You can use Prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "586"
} |
Q: Programatically opening an xml file in MS Word I'm opening an xml file in Microsoft Word 2007 using C#. I'm using an xsl file to define the layout which worked up to the point that I needed to include an image. I used the typical src html tag and the image displays when the xml is viewed in ie but not when it's open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Likelihood of collision using most significant bits of a UUID in Java If I'm using Long uuid = UUID.randomUUID().getMostSignificantBits() how likely is it to get a collision. It cuts off the least significant bits, so there is a possibility that you run into a collision, right?
A: Use Time YYYYDDDD (Year + Day of Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "244"
} |
Q: Visual basic 6.0 hash function In my application I need to hash a string before I save it to a text file. Does anyone know how to do that?
A: For what purpose are you using the hash? This matters because some hash algorithms such as MD5 are suitable for some purposes, but not others.
This link shows a VB6 implement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do you profile/optimize a simulation tool? In the past, and intermittently now, I've used simulation tools like Easy Java Simulations and NetLogo.
They are great tools for visually modeling various mathematical/comp-sci concepts because "all you have to do" is write the simulation loop - the graphics, etc are ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to write main() in an OOP way? When I first started programming, I wrote everything in main. But as I learned, I tried to do as little as possible in my main() methods.
But where do you decide to give the other Class/Method the responsibility to take over the program from main()? How do you do it?
I've seen many... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325453",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Sharepoint, ajax and page title I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed inside webpart. When partial postback occurs, page title gets missing.
We have found that temporary partial solution is to write title element into one line and not use any spaces or controls ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Launch a shell command with in a python script, wait for the termination and return to the script I've a python script that has to launch a shell command for every file in a dir:
import os
files = os.listdir(".")
for f in files:
os.execlp("myscript", "myscript", f)
This works fine for the first file, but after... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: Listing Files With CheckBoxes (C# / WinForms) I want a way to list files in a directory and putting a check box beside each one of them so I can select some of them and perform operations with each selected file, what's the best way to do this?
A: Drop a CheckedListBox control onto the form, then populate the conte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MaskedTextProvider c# What is the masked text provider used for? Why is it different from regex?
Is it possible to translate the regex format to mask or vise versa ?
Thanks
A: A masked edit area forces the user to fill the field in a certain way: e.g. a mask that looks like ### will only allow a maximum of 3 number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting unit testing code into XML Comment I am trying to comment an API (.Net) that I am exposing to a customer.
I am doing this by using XML comments, and extracting via SandCastle.
This is all fine and dandy, however I have unittesting for the API, and thought the code from these would be good to place in the exa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Element selection using variable Basically I have a small template that looks like:
<xsl:template name="templt">
<xsl:param name="filter" />
<xsl:variable name="numOrders" select="count(ORDERS/ORDER[$filter])" />
</xsl:template>
And I'm trying to call it using
<xsl:call-template name="templt">
<xsl:with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Where does Eclipse find javac to compile a project? Here is what I have:
JAVA_HOME=C:\Software\Java\jdk1.5.0_12 (points to JDK 5.0)
In Eclipse "Installed Runtimes" I have:
jre 1.5.0_12 (points to JRE 5.0)
jre 1.6.0_3 (points to JRE 6.0) (this one is default)
I do not have "javac" on my PATH (i.e. I cannot run javac ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Castle/ Active Records: How do you count objects? I'm trying to do a simple "Select Count(*) from PRODUCTS where date > xxx" with Castle on NHibernate.
If I was directly using NHibernate, I could reuse this question answers but unfortunately I see no easy way to access the Current NHibernate session from Castle Reco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: PL/SQL: Fetching from a Cursor that is passed between two functions I have a quick question about fetching results from a weakly typed cursor and was wondering if anyone had come across this problem before?
My set up is as follows;
Inner function;
create or replace FUNCTION A_CURSOR_TEST_INNER
(
varCursor OUT SYS_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Type-safe varargs method that initialises a Map I'm wanting to write a method that I can use to initialise a Map. First cut:
Map map(Object ... o) {for (int i = 0; i < o.length; i+=2){result.put(o[i], o[i+1])}}
Simple, but not type-safe. Using generics, maybe something like:
<TKey, TValue> HashMap<TKey, TValue> ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Enum struct? A Value object that behaves like a Enum I am wondering how you would approach this problem
I have two Taxrates that can apply to my products. I specifically want to avoid persisting the Taxrates into the database while still being able to change them in a central place (like Taxrate from 20% to 19% etc)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/325511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.