text stringlengths 8 267k | meta dict |
|---|---|
Q: Horrible redraw performance of the DataGridView on one of my two screens I've actually solved this, but I'm posting it for posterity.
I ran into a very odd issue with the DataGridView on my dual-monitor system. The issue manifests itself as an EXTREMELY slow repaint of the control (like 30 seconds for a full repaint... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "85"
} |
Q: What is the best way to test webforms apps ( ASP.NET ) What is the best way to test my webforms applications?
Looks like people are loving Watin, and selenium.
A: Just wondering, why would you call WatiN a unit testing tool? Last time I checked, it ran integration tests.
The best way would be to move all code that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: What is the best way to send a HTML email from Asp.net MVC? I would like to be able to render a view and send it as an email, similar to what can be done with Ruby on Rails. What is the best way to do this?
EDIT: My solution so far is to use a templating engine (NHaml, StringTemplate.net). It works but I would prefe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can you control the speed of a video clip playing in Quartz Composer? Is there a way to manipulate the speed of the video playback? I'm especially interested in a way to slow down with frame blending, exactly like the function in Final Cut Pro.
A: Currently it's not possible to do frame-blending using the built-in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can I change some of Drupal's default menu strings without hacking the core files or using the String Override plugin? If you need more details, let me know.
EDIT: Changed title for clarity purposes.
A: If you use Drupal 6 you have access to the menu_alter and menu_link_alter hooks.
if you can't make the needed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is wrong with my snap to grid code? First of all, I'm fairly sure snapping to grid is fairly easy, however I've run into some odd trouble in this situation and my maths are too weak to work out specifically what is wrong.
Here's the situation
I have an abstract concept of a grid, with Y steps exactly Y_STEP apa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118540",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Creating a ZIP file on Windows (XP/2003) in C/C++ I am looking for a way to create a ZIP file from a folder in Windows C/C++ APIs. I can find the way to do this in VBScript using the Shell32.Application CopyHere method, and I found a tutorial explaining how to do it in C# also, but nothing for the C API (C++ is fine... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I call a web service from javascript Say I have a web service http://www.example.com/webservice.pl?q=google which returns text "google.com". I need to call this web service (http://www.example.com/webservice.pl) from a JavaScript module with a parameter (q=google) and then use the return value ("google.com") ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is there a way to use the same file for both a RTP and a kernel module in vxWorks? We have a vxWorks application that we would like to deploy either as a kernel module, or as a Real-Time process.
Is there a way to do this from the same source file, or do we have to create one file for the kernel module and another f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to express this Bash command in pure Python I have this line in a useful Bash script that I haven't managed to translate into Python, where 'a' is a user-input number of days' worth of files to archive:
find ~/podcasts/current -mindepth 2 -mtime '+`a`+' -exec mv {} ~/podcasts/old \;
I am familiar with the os.na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AJAX webservices - extensions of web or biz layer? My question is possibly a subtle one:
Web services - are they extensions of the presentation/web layer? ..or are they extensions of the biz/data layer?
That may seem like a dumb question. Web services are an extension of the web tier. I'm not so sure though. I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encryption output always different even with same key I'm trying to store a password in a file that I'd like to retrieve for later. Hashing is not an option as I need the password for connecting to a remote server for later.
The following code works well, but it creates a different output each time even though the k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get access to Castle Windsor's Fluent Interfaces API? I've been having tons of problems getting the non-xml configuration for Castle Windsor set up working properly. In the meantime I've seen more and more people giving advice via the Windsor Container fluent interface. I've been Gooogling about for the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is semantic markup, and why would I want to use that? Like it says.
A: Using semantic markup means that the (X)HTML code you use in a page contains metadata describing its purpose -- for example, an <h2> that contains an employee's name might be marked class="employee-name". Originally there were some people t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What is the best signature for overloaded arithmetic operators in C++? I had assumed that the canonical form for operator+, assuming the existence of an overloaded operator+= member function, was like this:
const T operator+(const T& lhs, const T& rhs)
{
return T(lhs) +=rhs;
}
But it was pointed out to me that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS to make a table column take up as much room as possible, and other cols as little I need to layout a html datatable with CSS.
The actual content of the table can differ, but there is always one main column and 2 or more other columns. I'd like to make the main column take up as MUCH width as possible, regardles... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What's so wrong about using GC.Collect()? Although I do understand the serious implications of playing with this function (or at least that's what I think), I fail to see why it's becoming one of these things that respectable programmers wouldn't ever use, even those who don't even know what it is for.
Let's say I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: What are the "must have" features for a XML based GUI language Summary for the impatient:
What I want to know is what you want to have in a new gui language. About the short answers mentioning $your_favorite_one; I assume you mean that, such a language should look like $your_favorite_one. These are not helpful. Resi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to convert indentation in Python code to braces? I am a totally blind programmer who would like to learn Python. Unfortunately the fact that code blocks are represented with different levels of indentation is a major stumbling block. I was wondering if there were any tools available that would allow m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "84"
} |
Q: Best way to import a website into a Visual Sourcesafe 2005 Database What is the best way to import a website into a Visual Sourcesafe 2005 database?
I tried opening a the VSS database and drag-n-drop the folder but it started prompting me for a comment on each folder. Is there a better way or someway to have it only... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Iron python, beautiful soup, win32 app Does beautiful soup work with iron python?
If so with which version of iron python?
How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
A: I've tested and used BeautifulSoup with both IPy 1.1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118654",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I use Qt and SDL together? I am building a physics simulation engine and editor in Windows. I want to build the editor part using Qt and I want to run the engine using SDL with OpenGL.
My first idea was to build the editor using only Qt and share as much code with the engine (the resource manager, the rendere... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: What are some decent ways to prevent users from creating meeting workspaces? I have an Events list in sharepoint and need to disallow users from having the ability to create meeting workspaces in the new event form. Shy of customizing the new event form (which breaks attachment support), how can this be done?
A: B... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I apply my CSS stylesheet to an RSS feed On my blog I use some CSS classes which are defined in my stylesheet, but in RSS readers those styles don't show up. I had been searching for class="whatever" and replacing with style="something: something;". But this means whenever I modify my CSS I need to modify ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: MeasureString() pads the text on the left and the right I'm using GDI+ in C++. (This issue might exist in C# too).
I notice that whenever I call Graphics::MeasureString() or Graphics::DrawString(), the string is padded with blank space on the left and right.
For example, if I am using a Courier font, (not italic!)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How do you dynamically create a radio button in Javascript that works in all browsers? Dynamically creating a radio button using eg
var radioInput = document.createElement('input');
radioInput.setAttribute('type', 'radio');
radioInput.setAttribute('name', name);
works in Firefox but not in IE. Why not?
A: Based o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Lazy Function Definition in PHP - is it possible? In JavaScript, you can use Lazy Function Definitions to optimize the 2nd - Nth call to a function by performing the expensive one-time operations only on the first call to the function.
I'd like to do the same sort of thing in PHP 5, but redefining a function is not ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I effectively persist a .Net font object? Usecase: The user makes font customizations to an object on the design surface, that I need to load/save to my datastore. I.e. settings like Bold, Italics, Size, Font Name need to persisted.
Is there some easy (and reliable) mechanism to convert/read back from a strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Preferred way to do logging in the SpringFrame work I have done some searches looking for information about how to do logging with the Spring Framework.
We currently have an application that has no logging in it except for system.out statements (very bad way).
What I would like to do, is add logging, but also want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Compile errors in mshtml.h compiling with VS2008 I'm in the process of moving one of our projects from VS6 to VS2008 and I've hit the following compile error with mshtml.h:
1>c:\program files\microsoft sdks\windows\v6.0a\include\mshtml.h(5272) : error C2143: syntax error : missing '}' before 'constant'
1>c:\program ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Notepad++: disable auto-indent after empty lines I find the autoindent style of Notepad++ a little weird: when I am typing on an indented line, I do want it to indent the next line after I press Enter (this it does properly). However, when I am on an empty line (no indentation, no characters) and I press Enter, it i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: GCC inline assembler, mixing register sizes (x86) Does anyone know how I can get rid of the following assembler warning?
Code is x86, 32 bit:
int test (int x)
{
int y;
// do a bit-rotate by 8 on the lower word. leave upper word intact.
asm ("rorw $8, %0\n\t": "=q"(y) :"0"(x));
return y;
}
If I compile it I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Windows console command to open multiple pages in Internet Explorer 7 How do I open multiple pages in Internet Explorer 7 with a single DOS command? Is a batch file the only way to do this?
Thanks!
A: A batch file will work as a quick and dirty solution.
@echo off
@setlocal
:openurl
set url=%~1
if "%url:~0,4%" ==... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to count rows in Lift (Scala's web framework) I want to add a property to my User model that returns the number of rows in the Project table that have a user Id of the user.
So something like this...
def numProjects = {
/* somehow get count from Project table
The straight sql would be:
SELECT ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is there a clean way to prevent windows.h from creating a near & far macro? Deep down in WinDef.h there's this relic from the segmented memory era:
#define far
#define near
This obviously causes problems if you attempt to use near or far as variable names. Any clean workarounds? Other then renaming my variables?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do I uninstall python from OSX Leopard so that I can use the MacPorts version? I want to use the macports version of python instead of the one that comes with Leopard.
A: Instead of uninstalling the built-in Python, install the MacPorts version and then modify your $PATH to have the MacPorts version first.
For ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118813",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Multiple database corruption on SQL Server 2000 MSDE We use SQL Server 2000 MSDE for an Point Of Sale system running on about 800 cash registers. Each box has its own copy, and only the local software accesses it.
This is a newly updated platform for the cash register vendor--who shall remain nameless.
Routinely we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: gsub partial replace I would like to replace only the group in parenthesis in this expression :
my_string.gsub(/<--MARKER_START-->(.)*<--MARKER_END-->/, 'replace_text')
so that I get : <--MARKER_START-->replace_text<--MARKER_END-->
I know I could repeat the whole MARKER_START and MARKER_END blocks in the substituti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Start project in CodePlex How can I start a project in CodePlex.com?
A: Try going to CodePlex and reading how to do this there. Register
A: On the main page, there is a link on the left: Create new project
You will have to have a CodePlex account to do so.
A: https://www.codeplex.com/Project/ProjectCreation.asp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC routing Up until now I've been able to get away with using the default routing that came with ASP.NET MVC. Unfortunately, now that I'm branching out into more complex routes, I'm struggling to wrap my head around how to get this to work.
A simple example I'm trying to get is to have the path /User/{User... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to use a Class in VBA? When is it appropriate to use a class in Visual Basic for Applications (VBA)?
I'm assuming the accelerated development and reduction of introducing bugs is a common benefit for most languages that support OOP. But with VBA, is there a specific criterion?
A: Classes are extremely useful ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to set sql profiler to profile SQL 2005 reporting services I'm trying to profile SQL reporting services, used from ASP.NET application. In SQL profiler all the SQL run by ASP.NET shows up. It looks like the reporting SQL (from the RDL) doesn't show. Is there some setting or filter I'm missing?
A: Application na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is effect of "__callback" SAL annotation? While I certainly understand the purpose of buffer annotations, I can't see what kind of errors __callback detects.
Any ideas, examples?
A: Because if you forget the parens on something that returns void* and isn't a callback, SAL can tell you about it.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/118876",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to force browsers to reload cached CSS and JS files? I have noticed that some browsers (in particular, Firefox and Opera) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1135"
} |
Q: How can I extract the data out of a typical html day/time schedule? I'm trying to write a parser to get the data out of a typical html table day/time schedule (like this).
I'd like to give this parser a page and a table class/id, and have it return a list of events, along with days & times they occur. It should ta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to secure an AJAX app I am currently working on the authentication of an AJAX based site, and was wondering if anybody had any reccomendations on best practices for this sort of thing.
My original approach was a cookie based system. Essentially I set a cookie with an auth code, and every data access change... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: ETW - Best Fix/Class-Library for Messy Interface? By ETW I mean "Event Tracing for Windows".
According to my experimenting one virtue is that while by-design it occasionally fails to record events in Very-Busy conditions it otherwise Just Works, as you might expect from a Kernel feature. ETW is the only game in tow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET MVC & Web Services Does adding a Web Service to my ASP.NET MVC project break the whole concept of MVC?
That Web Service (WCF) depends on the Model layer from my MVC project to communicate with the back-end (so it looks to me like it needs to be part of the MVC solution).
Should I add this to the Controller o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Know of an OCaml IDE? Know of an OCAML/CAML IDE? Especially one that runs on Linux?
A: There are 2 modes for Emacs for working with OCaml: ocaml-mode and tuareg-mode. Both are available via apt, or on the web.
They provide syntax-highlighting and tuareg-mode includes interfacing to the OCaml top-level and debugge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Best C/C++ Network Library I haven't done work in C/C++ for a little bit and was just wondering what people's favorite cross platform libraries are to use.
I'm looking for something that is a good quick and dirty library as well as a library that is a little more robust. Often those are two different libraries an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: Architecture for a business objects / database access layer For various reasons, we are writing a new business objects/data storage library. One of the requirements of this layer is to separate the logic of the business rules, and the actual data storage layer.
It is possible to have multiple data storage layers th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How can you program if you're blind? Sight is one of the senses most programmers take for granted. Most programmers would spend hours looking at a computer monitor (especially during times when they are in the zone), but I know there are blind programmers (such as T.V. Raman who currently works for Google).
If you w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "685"
} |
Q: What are the print functions in Adobe AIR? I've been trying to figure out how to print in Adobe AIR. I know the standard javascript functions don't work. The AIRforJSDev guide says:
"The window.print() method is not supported within Adobe
AIR 1.0. There are other methods available via the exposed AIRAPIs that give ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/118990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Connection to report server could not be made from BI VS 2005 but the report server is browseable I have IIS6 configured such that browsing to http://localhost:8082/Reports gets me the reporting services default home page, which is all as expected. However, when I try to publish a report via Microsoft Business Intel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What should I do with the vendor directory with respect to subversion? So I have a problem. I checked in my frozen gems and rails even though you aren't supposed to do that. I figured it was easy and wouldn't be that big of a deal anyway. Well, later I updated rails and in doing so deleted all the .svn files in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can't connect to MySQL server on 'localhost' (10061) I recently installed MySQL 5 on Windows 2003 and tried configuring an instance. Everything worked fine until I got to "Applying Security settings", at which point it gave me the above error (Can't connect to MySQL server on 'localhost' (10061)).
I do have a port 3... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Directory Layout for Erlang Services? In our Java applications we typically use the maven conventions (docs, src/java, test, etc.). For Perl we follow similar conventions only using a top level 'lib' which is easy to add to Perl's @INC.
I'm about to embark on creating a service written in Erlang, what's a good sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I generically detect if a database is 'empty' from Java Can anyone suggest a good way of detecting if a database is empty from Java (needs to support at least Microsoft SQL Server, Derby and Oracle)?
By empty I mean in the state it would be if the database were freshly created with a new create database stat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When do you say that the code is Legacy code? Any useful metrics will be fine
A: If the code:
*
*has been replaced by newer code that implements the same or functionality or better
*is not being used by current systems
*is soon to be replaced by something else altogether
*has been archived for historic reaso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I prevent SoapExtensions being added to my web service app? It seems that anyone can snoop on incoming/outgoing .NET web service SOAP messages just by dropping in a simple SoapExtension into the bin folder and then plumbing it in using:
<soapExtensionTypes>
<add type="MyLoggingSoapExtension, SoapLoggingTool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set my application's desktop icon for Linux: KDE, Gnome etc? I have a cross platform program that runs on Windows, Linux and Macintosh. My windows version has an Icon but I don't know how to make have one for my Linux build.
Is there a standard format for KDE, Gnome etc. or will I have to do something special... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can I make a SharePoint Image Web Part clickable to link to another page The Image Web Part doesn't seem to have an href attribute that I can set. Is there something I am missing?
A: Does it have to be an Image Web Part? If not I would simply use a Content Editor Web Part and paste the required HTML there.
<a href... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which C I/O library should be used in C++ code? In new C++ code, I tend to use the C++ iostream library instead of the C stdio library.
I've noticed some programmers seem to stick to stdio, insisting that it's more portable.
Is this really the case? What is better to use?
A: Back in the bad old days, the C++ Standa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Can you suggest something a little more advanced than java.util.Properties? Do you know any libraries similar to java.util.Properties that support more advanced features like grouping properties, storing arrays, etc?
I am not looking for some heavy super-advanced solution, just something light and useful for any pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a way to verify that code will work on the 360 while doing XNA dev? I'm working on a casual game on XNA with the intention of deploying to the Xbox 360. I'm not going to have access to hardware for a few weeks and I'm on a tight deadline, so I'd like to test that a few things -- Boo and a few custom librar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I generate a list of n unique random numbers in Ruby? This is what I have so far:
myArray.map!{ rand(max) }
Obviously, however, sometimes the numbers in the list are not unique. How can I make sure my list only contains unique numbers without having to create a bigger list from which I then just pick the n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Conditional compilation for working at home I code C++ using MS Dev Studio and I work from home two days per week. I use CVS to keep my sources synchronized between the two computers but there are difference between the environments the machines are in.
Can anyone suggest a way I can conditionally modify constants i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Server Generated web screenshots? One problem I've been toying with off and on is a service that requires my server to produce a screenshot of a webpage at a given url. The problem is that I don't have any idea how I would accomplish this. I mostly use a LAMP software stack, so answers that were given with that in m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Extract an RT_RCDATA section from a Win32 executable (preferably in C#)? How do you extract an RT_RCDATA section from a Win32 executable (preferably in C#)?
The only way I know how to do this currently is opening up the EXE in Visual Studio. I'd love to be able to do this entirely in C# if possible.
Thanks!
A: P/I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Why isn't sizeof for a struct equal to the sum of sizeof of each member? Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?
A: C99 N1256 standard draft
http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf
6.5.3.4 The sizeof operator:
3 When appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119123",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "843"
} |
Q: Vista not allowing one .exe to call another .exe I have a legacy VB6 executable that runs on Vista. This executable shells out another legacy MFC C++ executable.
In our early Vista testing, this call would display the typical UAC message to get the user's permission before running the second executable. This wasn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Will it be faster to use several threads to update the same database? I wrote a Java program to add and retrieve data from an MS Access. At present it goes sequentially through ~200K insert queries in ~3 minutes, which I think is slow. I plan to rewrite it using threads with 3-4 threads handling different parts of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the difference between Events with Delegate Handlers and those without? What is the difference between this:
this.btnOk.Click += new System.EventHandler(this.btnOK_Click);
and this?
this.btnOk.Click += this.btnOK_Click;
They both work. The former is what Visual Studio defaults to when you use the snippets... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Adding code to __init__.py I'm taking a look at how the model system in django works and I noticed something that I don't understand.
I know that you create an empty __init__.py file to specify that the current directory is a package. And that you can set some variable in __init__.py so that import * works properly... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: Add row while assigning datasource for datagridview I have a datagridview assigned a datasource to it. now how to add a new row to that grid and remove a row from it?
A: One way to do this is as follows:
Step #1 Setup the Data Adapter, Data Grid etc:
// the data grid
DataGridView dataGrid;
// create a new data tab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What tools allows me to keep track of html tags when doing web development? What tools allows me keep track of tags when doing web development? For example, I would like to be able to quickly find whether I missed closing a div tag.
At the moment I am using notepad++ to write html. It highlights starting and ending ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: The Rails Way - Namespaces I have a question about how to do something "The Rails Way". With an application that has a public facing side and an admin interface what is the general consensus in the Rails community on how to do it?
Namespaces, subdomains or forego them altogether?
A: In some smaller applications I d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Is it good to switch from c# to python? Currently I am developing in the .Net environment using C# but I want to know whether it is worth learning python. I'm thinking of learning the Django framework. What is better?
A: Personally I feel you can write good/bad code in any language. I also firmly believe in learnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Migrate clearcase to perforce I have a large quantity of clearcase data which needs to be migrated into perforce. The revisions span the better part of a decade and I need to preserve as much branch and tag information as possible. Additionally we make extensive use of symbolic links, supported in clearcase but no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What does 'yield called out of block' mean in Ruby? I'm new to Ruby, and I'm trying the following:
mySet = numOfCuts.times.map{ rand(seqLength) }
but I get the 'yield called out of block' error. I'm not sure what his means. BTW, this question is part of a more general question I asked here.
A: The problem is tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP unserialize keeps throwing same error over 100 times I have a large 2d array that I serialize and base64_encode and throw into a database. On a different page I pull the array out and when I base64_decode the serialized array I can echo it out and it definitely looks valid.
However, if I try to unserialize(base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In .Net, what is the fastest way to recursively find all files from a root directory? I want to search a directory for all files that match a certain pattern.
Surprisingly, I have not had to do this since vb6 (Dir)... I'm sure things have changed since then!
-Thanks
A: use SearchOption.AllDirectories parameter:
usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I make Loadtime-AspectJ to work in applet Since AspectJ LoadTime-Weaving needs to load the JVM with an agent/it's own classloader - is there a way to load/make changes in the user's JVM from my applet? or maybe just before loading the applet (with a parent applet?)
A: It might be possible to add a weaving a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Copy all files and folders using msbuild Just wondering if someone could help me with some msbuild scripts that I am trying to write. What I would like to do is copy all the files and sub folders from a folder to another folder using msbuild.
{ProjectName}
|----->Source
|----->Tools
|-----... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: Row numbers for a query in informix I am using informix database, I want a query which you could also generate a row number along with the query
Like
select row_number(),firstName,lastName
from students;
row_number() firstName lastName
1 john mathew
2 ricky pointing
3 sach... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you copy a PHP object into a different object type
*
*New class is a subclass of the original object
*It needs to be php4 compatible
A: You could have your classes instantiated empty and then loaded by any number of methods. One of these methods could accept an instance of the parent class as an argument,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Position the caret in a MaskedTextbox I would like to be able to override the default behaviour for positioning the caret in a masked textbox.
The default is to place the caret where the mouse was clicked, the masked textbox already contains characters due to the mask.
I know that you can hide the caret as mentioned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Catching line numbers in ruby exceptions Consider the following ruby code
test.rb:
begin
puts
thisFunctionDoesNotExist
x = 1+1
rescue Exception => e
p e
end
For debugging purposes, I would like the rescue block to know that the error occurred in line 4 of this file. Is there a clean way of doing that?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "55"
} |
Q: Pass-through authentication for MS SQL 2005 DB from SharePoint? Within our Active Directory domain, we have a MS SQL 2005 server, and a SharePoint (MOSS 3.0 I believe) server. Both authenticate against our LDAP server. Would like to allow these authenticated SharePoint visitors to see some of the data from the MS ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I get a list of tables affected by a set of stored procedures? I have a huge database with some 100 tables and some 250 stored procedures. I want to know the list of tables affected by a subset of stored procedures. For example, I have a list of 50 stored procedures, out of 250, and I want to know the list of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119308",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: URLs: Dash vs. Underscore Is it better convention to use hyphens or underscores in your URLs?
Should it be /about_us or /about-us?
From usability point of view, I personally think /about-us is much better for end-user yet Google and most other websites (and javascript frameworks) use underscore naming pattern. Is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "226"
} |
Q: How to pass context around in a ASP.NET MVC web app Ok, I'm a newbie to ASP.NET web apps... and web apps in general. I'm just doing a bit of a play app for an internal tool at work.
given this tutorial...
http://www.asp.net/learn/mvc-videos/video-395.aspx
The example basically has a global tasklist.
So if I wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I truncate a java string to fit in a given number of bytes, once UTF-8 encoded? How do I truncate a java String so that I know it will fit in a given number of bytes storage once it is UTF-8 encoded?
A: you can use -new String( data.getBytes("UTF-8") , 0, maxLen, "UTF-8");
A: Here is a simple loop that coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: ssl_error_rx_record_too_long and Apache SSL I've got a customer trying to access one of my sites, and they keep getting this error > ssl_error_rx_record_too_long
They're getting this error on all browsers, all platforms. I can't reproduce the problem at all.
My server and myself are located in the USA, the customer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "284"
} |
Q: Rails performance analyzers What are the preffered plugins for monitoring and analyzing the performance of a Rails app? I'm looking for both database/query analyzers and the rest of the stack if possible, though not necessarily all in one plugin. Which ones do you recommend?
( Bonus points for free ones :)
For examp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to disable annoying 'parenthesis completion'? Whenever I type a (, [, or {, Notepad++ completes it with the corresponding closing bracket. I find this 'feature' annoying and would like to disable it. It doesn't seem to be listed in the Preferences dialog and a search of the online documentation didn't yield any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: How to customize directory structure in ASP.NET MVC? The project I'm starting to work at will have several dozens of controllers, so it would be nice to structure them into logical directories and respective namespaces, like "Controllers/Admin/", "Controllers/Warehouse/Supplies/", etc.
Does ASP.NET MVC support nest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Specify the from user when sending email using the mail command Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this.
We are running Redhat Linux 5.
A: You can specify any extra header you may need with -a
$mail -s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: What is the best search approach? I'm using lucene in my project.
Here is my question:
should I use lucene to replace the whole search module which has been implemented with sql using a large number of like statement and accurate search by id or sth,
or should I just use lucene in fuzzy search(i mean full text sear... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generate Dynamic Excel from Java We've pre-defined Excel document structure with lots of formulas and macros written.
During download of Excel, thru Java application we populate certain cells in Excel with data. After download when user open Excel, macros & formulas embedded in it will read the pre-populated data an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/119392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.