text stringlengths 8 267k | meta dict |
|---|---|
Q: Fast word count function in Vim I am trying to display a live word count in the vim statusline. I do this by setting my status line in my .vimrc and inserting a function into it. The idea of this function is to return the number of words in the current buffer. This number is then displayed on the status line. This s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Consequences of running a Java Class file on different JREs? What are the consequences of running a Java class file compiled in JDK 1.4.2 on JRE 1.6 or 1.5?
A: The Java SE 6 Compatibility page lists the compatibility of Jave SE 6 to Java SE 5.0. Furthermore, there is a link to Incompatibilities in J2SE 5.0 (since 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Upgrade MSDE to SQL Server 2008 I am trying to upgrade an named instance of MSDE to SQL Server 2008 Express. When I get to the "Select Features" page of the 2008 installer there are no instances listed. The upgrade to SQL Server 2005 Express (on the same VM image) however works fine.
It seems to be a supported sce... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you create a custom attribute for MS Test? If you want to create a custom attribute for MS test (say [Repeat(3)]
how would you do that?
A: I don't think you will like the answer: there is no supported way. However, there is a codeplex project MSTestExtensions implementing a work around and a blog post about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Determine the number of rows in a range I know the range name of the start of a list - 1 column wide and x rows deep.
How do I calculate x?
There is more data in the column than just this list. However, this list is contiguous - there is nothing in any of the cells above or below or either side beside it.
A: Why no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to set the background-position to an absolute distance, starting from right? I want to set a background image for a div, in a way that it is in the upper RIGHT of the div, but with a fixed 10px distance from top and right.
Here is how I would do that if wanted it in the upper LEFT of the div:
background: url(ima... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Is it possible to send a collection of ID's as a ADO.NET SQL parameter? Eg. can I write something like this code:
public void InactiveCustomers(IEnumerable<Guid> customerIDs)
{
//...
myAdoCommand.CommandText =
"UPDATE Customer SET Active = 0 WHERE CustomerID in (@CustomerIDs)";
myAdoCommand.Param... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Hide a gridView row in asp.net I am creating a gridView that allows adding new rows by adding the controls necessary for the insert into the FooterTemplate, but when the ObjectDataSource has no records, I add a dummy row as the FooterTemplate is only displayed when there is data.
How can I hide this dummy row? I hav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The difference between the two functions? ("function x" vs "var x = function")
Possible Duplicate:
JavaScript: var functionName = function() {} vs function functionName() {}
What's the difference between:
function sum(x, y) {
return x+y;
}
// and
var sum = function (x, y) {
return x+y;
}
Why is one used... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "56"
} |
Q: Simplest way to have a configuration file in a Windows Forms C# application I'm really new to .NET, and I still didn't get the hang about how configuration files work.
Every time I search on Google about it I get results about web.config, but I'm writing a Windows Forms application.
I figured out that I need to use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "95"
} |
Q: Visually designing a database structure I am quite happy to code out tables by hand when making a database but it's not the easiest way to convey information about a database to someone else, especially someone that's not so comfortable coding the tables via a script and would instead use something such at phpMyAdmi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I access (listen for) the multimedia keys (play/pause) in Mac OS X? I want to write a Songbird extension binds the multimedia keys available on all Apple Mac OS X platforms. Unfortunately this isn't an easy google search and I can't find any docs.
Can anyone point me resources on accessing these keys or tell... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I horizontally center an element? How can I horizontally center a <div> within another <div> using CSS?
<div id="outer">
<div id="inner">Foo foo</div>
</div>
A: Use the below CSS content for #inner div:
#inner {
width: 50%;
margin-left: 25%;
}
I mostly use this CSS content to center divs.
A: It's p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4988"
} |
Q: Setting up Subversion on a Red Hat system I'm fairly new to the world of versioning but would like to introduce Subversion into our small development team as we're finding that more and more we are working on the same projects/files. We primarily code in PHP on a LAMP environment (Red Hat Enterprise).
What I'm looki... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Mac toolbar via WINE / Crossover Does anyone know if it's possible to get a Win32 application to run under wine / crossover but have the main toolbar appear as a Mac toolbar (i.e. outside the wine / crossover app)?
A: What is the "main toolbar"? In Win32, windows do not require a menu bar (ie: IE), or even a main w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Serializing Date in Java I'm passing around some objects through web service and some of them contain java.sql.Date. Because Date doesn't have empty constructor it doesn't want to get serialized.
First part of a question is easy: what is the best way to pass a date between client and service?
Second part is bit tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How helpful is knowing lambda calculus? To all the people who know lambda calculus: What benefit has it bought you, regarding programming? Would you recommend that people learn it?
A: The benefit of lambda calculus is that it's an extremely simple model of computation that is equivalent to a Turing machine. But wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Smart design of a math parser? What is the smartest way to design a math parser? What I mean is a function that takes a math string (like: "2 + 3 / 2 + (2 * 5)") and returns the calculated value? I did write one in VB6 ages ago but it ended up being way to bloated and not very portable (or smart for that matter...).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Simple web "live chat" software (LAMP stack) that integrates with Jabber/Aim I've looked for this a few times in the past, to no avail. I would like a simple php/ajax web chat interface, that, and this is the critical part, will interface with my IM client (Pidgin) ... via Jabber or Aim. Plugoo is almost what I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What is the fastest way to scale and display an image in Python? I am required to display a two dimensional numpy.array of int16 at 20fps or so. Using Matplotlib's imshow chokes on anything above 10fps. There obviously are some issues with scaling and interpolation. I should add that the dimensions of the array are ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I copy a Delphi TTable including its calculated fields? I have defined a Delphi TTable object with calculated fields, and it is used in a grid on a form. I would like to make a copy of the TTable object, including the calculated fields, open that copy, do some changes to the data with the copy, close the cop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I troubleshoot Sharepoint workflows? I'm a bit lost here and I can't find much documentation.
A: .NET workflows or ones created using SharePoint designer?
I've only got latter experience and they aren't really easy to debug, you really just have to do them 1 step at a time and test up to each step.
You can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET: How do I create radio buttons and databind them in a DetailsView? I have a TemplateField in a DetailsView and its input should be one of a few choices in a lookup table. Currently it's a text field, but I want it to be a group of radio buttons, and it should work in both insert and edit mode (the correct cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Serializing versioned workflows using Microsoft WF I have a simple business workflow with the following conditions
*
*Users need to change the workflow itself using a desinger
*The workflow is a long rinning workflow, so it will be serialized
Is there a way to automate the task of versioning different workflow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Catching base Exception class in .NET I keep hearing that
catch (Exception ex)
Is bad practise, however, I often use it in event handlers where an operation may for example go to network, allowing the possibility of many different types of failure. In this case, I catch all exceptions and display the error message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Any experience with unusual technologies? 99 bottles of beers made me realize that ADA, Erlang and Smalltalk were not so odd languages after all.
There are plenty of unusual tools and I supposed that a lot of them are even used :-)
Have you ever worked with very original technologies ? If yes, let us know in which c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Word 2007 Add-in Okay this question is coming from someone who has never written any code beyond CSS, HTML and some php...
Pretty much I'm using Word all day and constantly needing to refer to just a couple of sites and resources on the web.
I would like to create a little add-in to go in the Ribbon in Word.
I have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114663",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ReportViewer - LocalReport - Merge reports? I'm using ReportViewer WinForms, and since it is no easy way to create an coversheet, then I wonder, is it possible to render two reports and have them concatenated?, so they appear as one report?
If I was to print only, then I could execute two reports after each other, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114692",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I create a readable diff of two spreadsheets using git diff? We have a lot of spreadsheets (xls) in our source code repository. These are usually edited with gnumeric or openoffice.org, and are mostly used to populate databases for unit testing with dbUnit. There are no easy ways of doing diffs on xls files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "178"
} |
Q: Editable data grid for C# WinForms I need to present the user with a matrix of which one column is editable. What is the most appropriate control to use?
I can't use a ListView because you can only edit the first column (the label) and that's no good to me.
Is the DataGridView the way to go, or are there third party... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to connect to LDAP store with VB6 I’ve got a problem with Visual Basic (6) in combination with LDAP. When I try to connect to an LDAP store, I always get errors like ‘Bad Pathname’ or ‘Table does not exist’ (depending on what the code looks like).
This is the part of the code I wrote to connect:
path = "LDAP://x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114725",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to find rowsize in table One of my DBs have grown closer to permitted size.
Inorder to find out the table containing the max data, i used the following query:
exec sp_MSforeachtable @command1="print '?' exec sp_spaceused '?'"
It returned the culprit table comprising the max data.
As a next step, i want to clean... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: ReportViewer - modify toolbar? Do anyone have good ideas of how to modify the toolbar for the WinForms version of the ReportViewer Toolbar?
That is, I want to remove some buttons and varius, but it looks like the solution is to create a brand new toolbar instead of modifying the one that is there.
Like, I had to rem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Potential other uses of a jabber server Beside the obvious person to person instant message chat, What else have you used a Jabber server's functionality to enable?
Edit: links to working code to really show it off are particularly useful - and will be more likely to be voted up.
A: There are unlimited uses for XMP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Toggling the state of a menu item I have an Eclipse RCP app I'm working on. It has some view-specific menus and one of the menu items is an item which I would like to display a tick next to when the corresponding functionality is enabled. Similarly, the next time the item is selected, the item should become unticked... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Adding custom headers I need to create and add custom headers to an ASP.NET 2.0 application.
The case is simulation of an SSO-login in our dev/test environment.
When I try to add headers I run into the "Not supported on this platform."
error. BigJim has a nice post on the subject here:
http://bigjimindc.blogspot.c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Stress-testing ASP.NET/IIS with WCAT I'm trying to setup a stress/load test using the WCAT toolkit included in the IIS Resources.
Using LogParser, I've processed a UBR file with configuration. It looks something like this:
[Configuration]
NumClientMachines: 1 # number of distinct client machines to use
N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Reading from a promiscuous network device I want to write a real-time analysis tool for wireless traffic.
Does anyone know how to read from a promiscuous (or sniffing) device in C?
I know that you need to have root access to do it. I was wondering if anyone knows what functions are necessary to do this. Normal sock... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Should I learn/become proficient in Javascript? I am a .NET webdev using ASP.NET, C# etc... I "learned" javascript in college 5+ years ago and can do basic jobs with it. But I wonder if it is useful to become proficient in it.
Why should I learn Javascript?
Is it more advantageous then learning JQuery or a different... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114807",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: count (non-blank) lines-of-code in bash In Bash, how do I count the number of non-blank lines of code in a project?
A: cat 'filename' | grep '[^ ]' | wc -l
should do the trick just fine
A: #!/bin/bash
find . -path './pma' -prune -o -path './blog' -prune -o -path './punbb' -prune -o -path './js/3rdparty' -prune -o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114814",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "168"
} |
Q: Send data between two PHP scripts I want to have a PHP script send a XML formatted string to another PHP script that resides on a different server in a different part of town.
Is there any nice, clean way of doing this?
(PHP5 and all the latest software available)
A: check out cURL for posting data between pages.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114816",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting a vector into a function that expects a vector Consider these classes.
class Base
{
...
};
class Derived : public Base
{
...
};
this function
void BaseFoo( std::vector<Base*>vec )
{
...
}
And finally my vector
std::vector<Derived*>derived;
I want to pass derived to function BaseFoo, but the com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Is a Python dictionary an example of a hash table? One of the basic data structures in Python is the dictionary, which allows one to record "keys" for looking up "values" of any type. Is this implemented internally as a hash table? If not, what is it?
A: To expand upon nosklo's explanation:
a = {}
b = ['some', 'l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "256"
} |
Q: Scatter/gather async socket I/O in .NET I'm trying to use the Stream.BeginWrite Async I/O API in .NET for a high-throughput situation with many short messages. As such, a scatter/gather API will reduce the number of context switches (and CPU usage) tremendously. Does this API use the LPBUFFERS Win32 API at all? Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I bind the result of DataTable.Select() to a ListBox control? I have the following code:
ListBox.DataSource = DataSet.Tables("table_name").Select("some_criteria = match")
ListBox.DisplayMember = "name"
The DataTable.Select() method returns an array of System.Data.DataRow objects.
No matter what I specify in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to prevent creating intermediate objects in cascading operators? I use a custom Matrix class in my application, and I frequently add multiple matrices:
Matrix result = a + b + c + d; // a, b, c and d are also Matrices
However, this creates an intermediate matrix for each addition operation. Since this is simple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114859",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to pack JavaScript code without getting performance flaws? I am searching for a way to compress JavaScript code for the iPhone. Is there a way to avoid using a lot of CPU time on the small and rather slow device?
A: Use the YUI Compressor
A: Use JSMin and avoid packer which is really more CPU ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How expensive are JS function calls (compared to allocating memory for a variable)? Given some JS code like that one here:
for (var i = 0; i < document.getElementsByName('scale_select').length; i++) {
document.getElementsByName('scale_select')[i].onclick = vSetScale;
}
Would the code be faster if we put the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to determine the value of socket listen() backlog parameter? How should I determine what to use for a listening socket's backlog parameter? Is it a problem to simply specify a very large number?
A: I second using SOMAXCONN, unless you have a specific reason to use a short queue.
Keep in mind that if there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: Is there a way to install gcc in OSX without installing Xcode? I've googled the hell out of it, and it seems like there is no way to install gcc on OS X without installing Xcode (which takes at leats 1.5GB of space). All I need is gcc and none of the other junk that comes with Xcode. And at this point, I'll take any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: QTVR-like Panorama in Flash/ActionScript? It has been a few years since I used Actionscript. Back in the day, I made a project that emulated a QTVR panorama (at the time I was using Flash, you could only embed very basic mov files) by simply moving a very long flattened pano image left or right behind a mask. The ef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass an array parameter in TOAD Using toad and an oracle database, how can I call a sp and see the results by passing an array to one of the parameters of the sp?
A: In the Editor tab you can call it like this:
begin
myproc (my_array_type(1,4,7,9));
end;
| {
"language": "en",
"url": "https://stackoverflow.com/questions/114910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you fix "Too many open files" problem in Hudson? We use Hudson as a continuous integration system to execute automated builds (nightly and based on CVS polling) of a lot of our projects.
Some projects poll CVS every 15 minutes, some others poll every 5 minutes and some poll every hour.
Every few weeks we'll g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: .NET Process.Start default directory? I'm firing off a Java application from inside of a C# .NET console application. It works fine for the case where the Java application doesn't care what the "default" directory is, but fails for a Java application that only searches the current directory for support files.
Is the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: Adding video to a site In your opinion, what are the best options for adding video to a website assuming it would be rendered as FLV. What are the key considerations?
Would you use a 3rd party service (youtube.com, vimeo.com, etc.) or host yourself? Why?
If you used a service, which one? If you hosted yourself is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Vertical Scrolling Marquee for foxpro Could anyone could point me to some code/give me ideas on how to create a smooth scrolling vertical marquee for VFP 8 or 9?
Any help is appreciated.
A: You can use Scrollable Container
A: Here's a quick program that will scroll messages. Put the following in a prg file and run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to get email and their attachments from PHP I'm writing a photo gallery webapp for a friend's wedding and they want a photo gallery for guests to submit the digital photos they take on the day.
After evaluating all the options, I've decided the easiest thing for users would be to let them use a familiar interfa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How can I trigger Core Animation on an animator proxy during a call to resizeSubviewsWithOldSize? I have some NSViews that I'm putting in one of two layouts depending on the size of my window.
I'm adjusting the layout when the relevant superview receives the resizeSubviewsWithOldSize method.
This works, but I'd like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Given a DateTime object, how do I get an ISO 8601 date in string format? Given:
DateTime.UtcNow
How do I get a string which represents the same value in an ISO 8601-compliant format?
Note that ISO 8601 defines a number of similar formats. The specific format I am looking for is:
yyyy-MM-ddTHH:mm:ssZ
A:
Note to r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "998"
} |
Q: PHP and MS Access How can we connect a PHP script to MS Access (.mdb) file?
I tried by including following PHP code:
$db_path = $_SERVER['DOCUMENT_ROOT'] . '\WebUpdate\\' . $file_name . '.mdb';
$cfg_dsn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" . $db_path;
$odbcconnect = odbc_connect($cfg_dsn, '', '');
But ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/114996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I generate "migration" DDL from NHibernate mapping files? I'm using NHibernate 2 and PostgreSQL in my project. SchemaExport class does a great job generating DDL scheme for database, but it's great until the first application.
Is there any way to generate "migration" DLL (batch of "ALTER TABLE"'s instead of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can we print line numbers to the log in java How to print line numbers to the log. Say when outputting some information to the log, I also want to print the line number where that output is in the source code. As we can see in the stack trace, it displays the line number where the exception has occurred. Stack t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "148"
} |
Q: Keep sources from external repositories up-to-date After you start tracking the source of a bunch of open source software, how do you keep your code in sync? Run svn update every time you want to look at or play with the code?
It strikes me that it would be better to essentially start mirroring the code with (say) a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: An Issue with converting enumerations in C++\CLI I have an assembly, written in C++\CLI, which uses some of enumerations, provided by .Net. It has such kind of properties:
property System::ServiceProcess::ServiceControllerStatus ^ Status
{
ServiceControllerStatus ^ get()
{
return (ServiceC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there any reason to not use my IoC as a general Settings Repository? Suppose that the ApplicationSettings class is a general repository of settings that apply to my application such as TimeoutPeriod, DefaultUnitOfMeasure, HistoryWindowSize, etc... And let's say MyClass makes use of one of those settings - Defaul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the format of the Remap XML file for IKVM? In this article Jeroen explains an example of using an XML file to remap Java Bean getters and setters to .NET Properties.
What would the XML file look like if I wanted to, say, remap a Java method called showDialog() to ShowDialog() in .NET? Has anyone worked with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115041",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: MVC Preview 5 - Rendering A View To String For Testing I was reading a post by Brad Wilson (http://bradwilson.typepad.com/blog/2008/08/partial-renderi.html) on the new ViewEngine changes to MVC Preview 5 and thought that it would be great to be able to render a view to string for use in tests. I get the impression f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Retrieve Web Browser Stored Form Data? I have my web browsers set to save what I type into text boxes on forms. I have a lot of search terms stored in the text box of my browser and would like to get at it via a program of some sort before I clear these values out. There are far too many for me to go through one a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I prevent TFS from overwriting a label? If i make a label in TFS, and later make a new label with the same name... then the old label is replaced by the new one.
How do I prevent TFS from overwriting a label?
A: The following MSDN article covers using the Scope of a label to try and minimize the occurrences... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CVS: Replace HEAD with a branch How do I replace the HEAD of a CVS repository with a branch?
A: Check out this page, which has a pretty easy to follow walk through of branching and merging in CVS
http://kb.wisc.edu/middleware/page.php?id=4087
It also includes an example of replacing HEAD with a specified branch
Rep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do you implement position-sensitive zooming inside a JScrollPane? I am trying to implement position-sensitive zooming inside a JScrollPane. The JScrollPane contains a component with a customized paint that will draw itself inside whatever space it is allocated - so zooming is as easy as using a MouseWheelListene... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Use VBA in Office 2007 Applications? Is VBA going to go away any time soon, like VB6 has? Should I not develop new Office applications with VBA? Or should I be developing all new Office Apps with VSTO?
Update: Recently read this article.
A: Office VSTO offers a great deal of additional functionality over Office ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Test Automation with Embedded Hardware Has anyone had success automating testing directly on embedded hardware?
Specifically, I am thinking of automating a battery of unit tests for hardware layer modules. We need to have greater confidence in our hardware layer code. A lot of our projects use interrupt driven timer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Should unit test classes be kept under version control with the rest of the code? If I create a test suite for a development project, should those classes be kept under version control with the rest of the project code?
A: Yes, all the same reasons you put production code in to source control still apply to any uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: no respond_to block in edit action (generated with scaffold)? Does anyone know why there is no respond_to block for generated edit actions? Every other action in typical scaffold controllers has a respond_to block in order to output html and xml formats. Why is the edit action an exception?
I'm using the latest vers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What are your experiences with Windows Workflow Foundation? I am evaluating WF for use in line of business applications on the web, and I would love to hear some recent first-hand accounts of this technology.
My main interest here is in improving the maintainability of projects and maybe in increasing developer prod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Strategies for Caching on the Web? What concerns, processes, and questions do you take into account when deciding when and how to cache. Is it always a no win situation?
This presupposes you are stuck with a code base that has been optimized.
A: I have been working with DotNetNuke most recently for web applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: When should I use # and = in ASP.NET controls? I have been using ASP.NET for years, but I can never remember when using the # and = are appropriate.
For example:
<%= Grid.ClientID %>
or
<%# Eval("FullName")%>
Can someone explain when each should be used so I can keep it straight in my mind? Is # only used in contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: How do I do table sorting using CodeIgniter? I've been developing a site over the past few weeks using CodeIgniter as the framework. I've been thinking of the best way to accomplish something, which in a lot of other frameworks in other languages is relatively simple: sortable tables. CodeIgniter switches off query ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Does it matter which vendor's JDK you build with? If I'm deploying to servers with WebSphere 6.1 (Java 1.5), should I use IBM's JDK on my build box? Or will Sun's JDK compile to the same binary?
If I should use IBM's, where can I get the Windows x64 version?
A: I would as much as possible try to keep development a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Does the MVC pattern describe Roles or Layers? I read a text recently saying the MVC pattern describes the layers in an application. But personally I see MVC showing several key roles in an application.
Which word do you think is better, layer or role, to describe the three main pieces of MVC?
A: Layers should impl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add /usr/share/java libs to webapp's classpath? Summary
Is that possible for webapps deployed on linux + tomcat5.5 to use/see all /usr/share/java/ jars automatically?
Details
I'm packaging my java webapp for Ubuntu (yet the question is related to any linux-based distro) and going to make it depend on tomcat.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Codesmith resources I use Codesmith to create our code generation templates and have had success in learning how to use the tool by looking at example templates and the built in documentation. However I was wondering if there are any other resources (books, articles, tutorials, etc.) for getting a better grasp of C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to check whether a file is valid UTF-8? I'm processing some data files that are supposed to be valid UTF-8 but aren't, which causes the parser (not under my control) to fail. I'd like to add a stage of pre-validating the data for UTF-8 well-formedness, but I've not yet found a utility to help do this.
There's a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Can I safely edit a renamed file in perforce I have a file I need to move that's already under perforce. Once moved it needs some editing - update the package, etc - appropriate to its new location. Should I submit the move changespec and then reopen it for edit, or can I do this in one go? If so, what is the approp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to disable a programmatical breakpoint / assert? I am using Visual Studio, developing a native application, I have a programmatical breakpoint (assert) in my code placed using __asm int 3 or __debugbreak. Sometimes when I hit it, I would like to disable it so that successive hits in the same debugging session n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: RegisterStartupScript on Logout page I am trying to have a logout page where is displays a messages and then redirects to the login page. This is in ASP.net 2.0.
I have this in my Page_Load:
ClientScript.RegisterStartupScript(typeof(Page), "pageredirect", JavascriptRedirect() );
This is my redirect function:
privat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Refactoring Java factory method There's something very unsatisfactory about this code:
/*
Given a command string in which the first 8 characters are the command name
padded on the right with whitespace, construct the appropriate kind of
Command object.
*/
public class CommandFactory {
public Command getCommand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Fast search in java swing applications? I'm wandering myself what component is the best for displaying fast search results in swing. I want to create something like this, make a text field where user can enter some text, during his entering I'll improve in back end fast search on database, and I want to show data be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: error when switching to different svn branch I've got two SVN branches (eg development and stable) and want to switch from one to another...
In every tutorial there is command like:
rootOfLocalSvnCopy:>svn switch urlToNewBranch .
But it leads in error in my case:
svn: REPORT request failed on '/svn/rootOfLocalSvnCop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which Reporting technology? Which reporting technology would fit for the best situation/type of product? I am now thinking of 3 technologies:
*
*Embedded Reports (Crystal Reports;MS Reporting services)
*Server reports (MS Reporting Services)
*OLAP Databases (MS Analysis Services)
Which report technology wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How much speed-up from converting 3D maths to SSE or other SIMD? I am using 3D maths in my application extensively. How much speed-up can I achieve by converting my vector/matrix library to SSE, AltiVec or a similar SIMD code?
A: In my experience I typically see about a 3x improvement in taking an algorithm from x8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Do you know a good open-source version-control viewer? I'm looking for a tool like Atlassian's FishEye. The alternatives I've found so far (like StatCVS, ViewCVS or Bonsai) are either lacking in features or are quite a pain to install and maintain. So before staying with one of these tools, I'd like to be sure I did... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Does it make sense to mix an RTOS and cyclic executive? On a small embedded system project we have some code which we would like to run in a thread so we are electing to build in top of an embedded RTOS (eCos).
Previously, we have used a cyclic executive in main() that drove tasks each implemented as a state machin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can I consume a WSDL (SOAP) web service in Python? I want to use a WSDL SOAP based web service in Python. I have looked at the Dive Into Python code but the SOAPpy module does not work under Python 2.5.
I have tried using suds which works partly, but breaks with certain types (suds.TypeNotFound: Type not found: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "136"
} |
Q: How can the error 'Client found response content type of 'text/html'.. be interpreted I'm using C# and connecting to a WebService via an auto-generated C# proxy object. The method I'm calling can be long running, and sometimes times out. I get different errors back, sometimes I get a System.Net.WebException or a Sys... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115319",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How can I do Databinding in c#? I have the following class
public class Car
{
public Name {get; set;}
}
and I want to bind this programmatically to a text box.
How do I do that?
Shooting in the dark:
...
Car car = new Car();
TextEdit editBox = new TextEdit();
editBox.DataBinding.Add("Name", car, "Car - Name");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: What is the best way to handle incoming SMS messages? I have a client who wants a solution to allow delivery people to text (SMS messaging) in that they have completed a pick up at a particular location. What I'm looking for is Code to read an imbound SMS message or a SMS component if appropiate. This would allow m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Do you use source control for your database items? I feel that my shop has a hole because we don't have a solid process in place for versioning our database schema changes. We do a lot of backups so we're more or less covered, but it's bad practice to rely on your last line of defense in this way.
Surprisingly, thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "612"
} |
Q: How can I customize the syntax highlighting in Visual Studio 2005? Is it possible to customize the syntax highlighting in Visual Studio 2005? Up to now, I found no way to do this.
In eclipse for example, it's possible to setup custom highlighting.
A: Do you mean more than just changing the colors -- like defining a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/115388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.