text stringlengths 8 267k | meta dict |
|---|---|
Q: Is it possible to embed and use a portable executable in a .net DLL? The easiest way to think of my question is to think of a single, simple unix command (albeit, this is for windows) and I need progmatic access to run it.
I have a single command-line based executable that performs some unit of work. I want to call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Whats the best way to do throbber in C#? Specifically what I am looking to do is make the icons for the Nodes in my System.Windows.Forms.TreeView control to throb while a long loading operation is taking place.
A: If you load each frame into an ImageList, you can use a loop to update to each frame.
Example:
b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Automate firefox with python? Been scouring the net for something like firewatir but for python. I'm trying to automate firefox on linux. Any suggestions?
A: You could try selenium.
A: The PyXPCOM extension is one possibility.
But looking at what firewatir provides, I have to 2nd the suggestion for twill. It's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to escape text for regular expression in Java? Does Java have a built-in way to escape arbitrary text so that it can be included in a regular expression? For example, if my users enter "$5", I'd like to match that exactly rather than a "5" after the end of input.
A: To have protected pattern you may replace all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "355"
} |
Q: In what order are ON DELETE CASCADE constraints processed? Here is an example of what I've got going on:
CREATE TABLE Parent (id BIGINT NOT NULL,
PRIMARY KEY (id)) ENGINE=InnoDB;
CREATE TABLE Child (id BIGINT NOT NULL,
parentid BIGINT NOT NULL,
PRIMARY KEY (id),
KEY (parentid),
CONSTRAINT fk_parent FOREIG... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How can I prevent SQL injection in PHP? If user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example:
$unsafe_variable = $_POST['user_input'];
mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");
Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2773"
} |
Q: Is it possible to write ActiveX Controls in C# that will run in Excel? I have been searching on the web for some example code on how we can write a custom ActiveX Control for use in Excel using .NET but so far I have found old articles suggesting that it is not supported.
The application we are building uses Excel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple permission types (roles) stored in database as single decimal I was going to ask a question here about whether or not my design for some users/roles database tables was acceptable, but after some research I came across this question:
What is the best way to handle multiple permission types?
It sounds like a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Replacements for switch statement in Python? I want to write a function in Python that returns different fixed values based on the value of an input index.
In other languages I would use a switch or case statement, but Python does not appear to have a switch statement. What are the recommended Python solutions in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1717"
} |
Q: Why won't my local Apache open html pages? so, I'm running Apache on my laptop.
If I go to "localhost", I get the page that says,
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to animate the command line? I have always wondered how people update a previous line in a command line. a great example of this is when using the wget command in linux. It creates an ASCII loading bar of sorts that looks like this:
[======> ] 37%
and of course the loading bar moves and the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60221",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Is there replacement for cat on Windows I need to join two binary files with a *.bat script on Windows.
How can I achieve that?
A: You can use copy /b like this:
copy /b file1+file2 destfile
A: Just use the dos copy command with multiple source files and one destination file.
copy file1+file2 appendedfile
You mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "346"
} |
Q: How do you balance fun feature creep with time constraints? I enjoy programming, usually. Tedious stuff is easy to get done as quickly and correctly as possible so I can get through it and not have to see it again.
But a lot of my coding is fun and when I get in the 'zone' I just really enjoy myself.
Which is where... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to load an xml string in the code behind to databound UI controls that bind to the XPath of the XML? Every sample that I have seen uses static XML in the xmldataprovider source, which is then used to databind UI controls using XPath binding.
Idea is to edit a dynamic XML (structure known to the developer during... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: My first Lisp macro; is it leaky? I've been working through Practical Common Lisp and as an exercise decided to write a macro to determine if a number is a multiple of another number:
(defmacro multp (value factor)
`(= (rem ,value ,factor) 0))
so that :
(multp 40 10)
evaluates to true whilst
(multp 40 13)
does n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60260",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to implement draggable tab using Java Swing? How do I implement a draggable tab using Java Swing? Instead of the static JTabbedPane I would like to drag-and-drop a tab to different position to rearrange the tabs.
EDIT: The Java Tutorials - Drag and Drop and Data Transfer.
A: Found this code out there on the tub... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Best way to write a Safari 4 Extension What is the best way to write a Safari extension? I've written a couple XUL extensions for Firefox, and now I'd like to write versions of them for Safari. Is there a way that would allow you to add buttons or forms to the browser UI, since this is not possible with an Input man... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What are some good rigid body dynamics references? I'm not a math guy in the least but I'm interested in learning about rigid body physics (for the purpose of implementing a basic 3d physics engine). In school I only took Maths through Algebra II, but I've done 3d dev for years so I have a fairly decent understandi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Git commit opens blank text file, for what? In all the Git tutorials I've read they say that you can do:
git init
git add .
git commit
When I do that I get a big text file opened up. None of the tutorials seem to address this, so I don't know what to do with the file or what to put in it if anything.
A: When you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "98"
} |
Q: If possible how can one embed PostgreSQL? If it's possible, I'm interested in being able to embed a PostgreSQL database, similar to sqllite. I've read that it's not possible. I'm no database expert though, so I want to hear from you.
Essentially I want PostgreSQL without all the configuration and installation. If... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Can I change the appearance of an html image during hover without a second image? Is there a way to change the appearance of an icon (ie. contrast / luminosity) when I hover the cursor, without requiring a second image file (or without requiring a hidden portion of the image)?
A: Here's some good information about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Listview background drawing problem C# Winform I have a little problem with a Listview.
I can load it with listview items fine, but when I set the background color it doesn't draw the color all the way to the left side of the row [The listViewItems are loaded with ListViewSubItems to make a grid view, only the first... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Starting a process with inherited stdin/stdout/stderr in Java 6 If I start a process via Java's ProcessBuilder class, I have full access to that process's standard in, standard out, and standard error streams as Java InputStreams and OutputStreams. However, I can't find a way to seamlessly connect those streams to S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60302",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: What function does a tag cloud serve? I see them all the time and always ignore them. Can someone explain to me why they have become so prevalent? If I'm using a site that allows me to explore it via tags (e.g., this one, del.icio.us, etc.) that's what I will do. Why would I need a "cloud" of tags upon which to cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: C++ Quiz - Singletons I'll soon be posting an article on my blog, but I'd like to verify I haven't missed anything first.
Find an example I've missed, and I'll cite you on my post.
The topic is failed Singleton implementations: In what cases can you accidentally get multiple instances of a singleton?
So far, I've co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Can distutils create empty __init__.py files? If all of my __init__.py files are empty, do I have to store them into version control, or is there a way to make distutils create empty __init__.py files during installation?
A: In Python, __init__.py files actually have a meaning! They mean that the folder they are in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the best strategies for using multiple AJAX libraries? What experience can you share about using multiple AJAX libraries?
There are useful features in Prototype, some in jQuery, the Yahoo library, etc. Is it possible to include all libraries and use what you want from each, do they generally all play nicely... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: continuous integration web service I am in a position where I could become a team leader of a team distributed over two countries. This team would be the tech. team for a start up company that we plan to bootstrap on limited funds. So I am trying to find out ways to minimize upfront expenses. Right now we are pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alternative to PHP QuickForm? I'm currently playing around with HTML_QuickForm for generating forms in PHP. It seems kind of limited in that it's hard to insert my own javascript or customizing the display and grouping of certain elements.
Are there any alternatives to QuickForm that might provide more flexibility?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Calculate code metrics Are there any tools available that will calculate code metrics (for example number of code lines, cyclomatic complexity, coupling, cohesion) for your project and over time produce a graph showing the trends?
A: NDepend for .net
A: I was also looking for a code metrics tool/plugin for my ID... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "87"
} |
Q: In PHP is it possible to use a function inside a variable I know in php you can embed variables inside variables, like:
<? $var1 = "I\'m including {$var2} in this variable.."; ?>
But I was wondering how, and if it was possible to include a function inside a variable.
I know I could just write:
<?php
$var1 = "I\'m i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Do I really need to use transactions in stored procedures? [MSSQL 2005] I'm writing a pretty straightforward e-commerce app in asp.net, do I need to use transactions in my stored procedures?
Read/Write ratio is about 9:1
A: Many people ask - do I need transactions? Why do I need them? When to use them?
The answer i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: IDebugProgramProvider2.GetProviderProcessData on Vista As part of a JavaScript Profiler for IE 6/7 I needed to load a custom debugger that I created into IE. I got this working fine on XP, but couldn't get it working on Vista (full story here: http://damianblog.com/2008/09/09/tracejs-v2-rip/).
The call to GetProvid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the benefit of using ONLY OpenID authentication on a site? From my experience with OpenID, I see a number of significant downsides:
Adds a Single Point of Failure to the site
It is not a failure that can be fixed by the site even if detected. If the OpenID provider is down for three days, what recourse does... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: access $(this) with href="javascript:..." in jQuery I am using jQuery. I call a JavaScript function with next html:
<li><span><a href="javascript:uncheckEl('tagVO-$id')">$tagname</a></span></li>
I would like to remove the li element and I thought this would be easy with the $(this) object. This is my JavaScript fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Mobile development in Python What is the best way to start developing Windows Mobile Professional applications in Python? Is there a reasonable SDK including an emulator? Is it even possible without doing excessive amount of underlaying Windows API calls for UI for instance?
A: Python CE
Python port for Win... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Take a screenshot of a webpage with JavaScript? Is it possible to to take a screenshot of a webpage with JavaScript and then submit that back to the server?
I'm not so concerned with browser security issues. etc. as the implementation would be for HTA. But is it possible?
A: This might not be the ideal solution for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "152"
} |
Q: DynamicPopulateExtender ,TextArea and line feeds I have this in a page :
<textarea id="taEditableContent" runat="server" rows="5"></textarea>
<ajaxToolkit:DynamicPopulateExtender ID="dpeEditPopulate" runat="server" TargetControlID="taEditableContent"
ClearContentsDuringUpdate="true" PopulateTriggerControlID=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically get own phone number in Symbian How to get the phone number of the device in Symbian?
A: According to the GSM specs, only the IMSI is required to be available on the SIM card.
The actual phone number MSISDN is stored on the HLR database in the operator's network and does not need to be available o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60461",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Changing the default folder in Emacs I am fairly new to Emacs and I have been trying to figure out how to change the default folder for C-x C-f on start-up. For instance when I first load Emacs and hit C-x C-f its default folder is C:\emacs\emacs-21.3\bin, but I would rather it be the desktop. I believe there is som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: Loading Java classes from a signed applet If I'm running a signed Java applet. Can I load additional classes from remote sources, in the same domain or maybe even the same host, and run them?
I'd like to do this without changing pages or even stopping the current applet. Of course, the total size of all classes is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using the DLR for (primarily) static language compilation I'm building a compiler that targets .NET and I've previously generated CIL directly, but generating DLR trees will make my life a fair amount easier. I'm supporting a few dynamic features, namely runtime function creation and ducktyping, but the vast majori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Getting started with REST I am looking for some good links with best practices and sample code on creating RESTful web services using .NET.
Also, any other input you might have regarding REST would be greatly appreciated.
A: Windows Communication Foundation supports REST model since .NET 3.5.
You can find documen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Self Testing Systems I had an idea I was mulling over with some colleagues. None of us knew whether or not it exists currently.
The Basic Premise is to have a system that has 100% uptime but can become more efficient dynamically.
Here is the scenario: * So we hash out a system quickly to a
specified set of inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to write JavaScript/Ruby applications on Windows Mobile device? I recently bought a Windows Mobile device and since I'm a developer I want to use it as a development platform. Yes, it's not supposed to be used like that but it's always with me and my laptop isn't. I know cke is a good editor for ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: C++ function pointers and classes Say I have:
void Render(void(*Call)())
{
D3dDevice->BeginScene();
Call();
D3dDevice->EndScene();
D3dDevice->Present(0,0,0,0);
}
This is fine as long as the function I want to use to render is a function or a static member function:
Render(MainMenuRender);
Render(Mai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Where to put master page's code in an MVC application? I'm using a few (2 or 3) master pages in my ASP.NET MVC application and they must each display bits of information from the database. Such as a list of sponsors, current fundings status etc.
So my question was, where should I put these master-page database calli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What are the problems of using transactions in a database? From this post. One obvious problem is scalability/performance. What are the other problems that transactions use will provoke?
Could you say there are two sets of problems, one for long running transactions and one for short running ones? If yes, how would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Smoothing Zedgraph linegraphs without 'bumps' When you use Zedgraph for linegraphs and set IsSmooth to true, the lines are nicely curved instead of having hard corners/angles.
While this looks much better for most graphs -in my humble opinion- there is a small catch. The smoothing algorithm makes the line take a lit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C (or any) compilers deterministic performance Whilst working on a recent project, I was visited by a customer QA representitive, who asked me a question that I hadn't really considered before:
How do you know that the compiler you are using generates machine code that matches the c code's functionality exactly and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Terminal emulation in Flex I need to do some emulation of some old DOS or mainframe terminals in Flex. Something like the image below for example.
The different coloured text is easy enough, but the ability to do different background colours, such as the yellow background is beyond the capabilities of the standard ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to run executable at end of Setup Project? I have a Visual Studio Setup Project that I use to install a fairly simple WinForms application. At the end of the install I have a custom user interface page that shows a single check box which asks the user if they want to run the application. I've seen other installe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I create an in-memory handle in Haskell? I want something that looks like a file handle but is really backed by an in-memory buffer to use for I/O redirects. How can I do this?
A: If you can express what you want to do in terms of C or system calls you could use Haskell's Foreign Function Interface (FFI). I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Why should the "PIMPL" idiom be used? Backgrounder:
The PIMPL Idiom (Pointer to IMPLementation) is a technique for implementation hiding in which a public class wraps a structure or class that cannot be seen outside the library the public class is part of.
This hides internal implementation details and data from the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "146"
} |
Q: XmlSerializer - There was an error reflecting type Using C# .NET 2.0, I have a composite data class that does have the [Serializable] attribute on it. I am creating an XMLSerializer class and passing that into the constructor:
XmlSerializer serializer = new XmlSerializer(typeof(DataClass));
I am getting an excepti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "367"
} |
Q: PHP Forms-Based Authentication on Windows using Local User Accounts I'm running PHP, Apache, and Windows. I do not have a domain setup, so I would like my website's forms-based authentication to use the local user accounts database built in to Windows (I think it's called SAM).
I know that if Active Directory is se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best way to initiate a download? On a PHP-based web site, I want to send users a download package after they have filled out a short form. The site-initiated download should be similar to sites like download.com, which say "your download will begin in a moment."
A couple of possible approaches I know about, and brow... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: In PHP5, should I use Exceptions or trigger_error/set_error_handler? What are the pros/cons of doing either way. Is there One Right Way(tm) ?
A: You should use exceptions in "Exceptional circumstances", that is when you call a method doFoo() you should expect it to perform, if for some reason doFoo is unable to do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Automate Safari web browser using c# on Windows I wondered if anyone had successfully managed, or knew how to automate the Safari web browser on the Windows platform.
Ideally I would like to automate Safari in a similar way to using mshtml for Internet Explorer. Failing that a way to inject JavaScript into the runni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting started with Silverlight development How does one start development in Silverlight?
Does one need a new IDE? or Visual studio will support?
A: Let's tackle this systematically, because there is a lot to learn and there is a lot of information out there. You may want to start with Microsoft's resources first... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to replace WinAPI functions calls in the MS VC++ project with my own implementation (name and parameters set are the same)? I need to replace all WinAPI calls of the
*
*CreateFile,
*ReadFile,
*SetFilePointer,
*CloseHandle
with my own implementation (which use low-level file reading via Bluetooth).
The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Overlapped I/O on anonymous pipe Is it possible to use overlapped I/O with an anonymous pipe? CreatePipe() does not have any way of specifying FILE_FLAG_OVERLAPPED, so I assume ReadFile() will block, even if I supply an OVERLAPPED-structure.
A: Here is an implementation for an anonymous pipe function with the poss... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How can I tell if I have an open relay? I'm trying to work out if I have an open relay on my server. How do I do that?
I've tried http://www.abuse.net/relay.html
and it reports:
Hmmn, at first glance, host appeared to accept a message for relay.
THIS MAY OR MAY NOT MEAN THAT IT'S AN OPEN RELAY.
Some systems appear t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Cross platform IPC I'm looking for suggestions on possible IPC mechanisms that are:
*
*Cross platform (Win32 and Linux at least)
*Simple to implement in C++ as well as the most common scripting languages (perl, ruby, python, etc).
*Finally, simple to use from a programming point of view!
What my options are? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "77"
} |
Q: ASP.NET - Is it possible to trigger a postback from server code? Is it possible to to programmatically trigger a postback from server code in ASP.NET? I know that it is possible to do a Response.Redirect or Server.Transfer to redirect to a page, but is there a way to trigger a postback to the same page in server co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Common memory optimization What are the most common memory optimizations in csharp, dotnet 2.0. Wanted to see if there common things that people may not be doing by default in winform app
A: *
*use structs for small wrapper objects to avoid heap fragmentation
*think carefully about object lifetimes, especially f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is global memory initialized in C++? Is global memory initialized in C++? And if so, how?
(Second) clarification:
When a program starts up, what is in the memory space which will become global memory, prior to primitives being initialized? I'm trying to understand if it is zeroed out, or garbage for example.
The sit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Rails Model, View, Controller, and Helper: what goes where? In Ruby on Rails Development (or MVC in general), what quick rule should I follow as to where to put logic.
Please answer in the affirmative - With Do put this here, rather than Don't put that there.
A: The Rails way is to have skinny controllers and fat m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "155"
} |
Q: Is it possible to display the entity ⇓ in IE6 is it possible to display ⇓ entity in ie6? It is being display in every browser but not IE 6.I am writing markup such as:
<span>⇓</span>
A: According to this page, that symbol doesn't show in IE6 at all.
Symbol Character Numeric Description
⇓ ⇓ ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: IIS Integrated Request Processing Pipeline -- Modify Request I want to implement an ISAPI filter like feature using HttpModule in IIS7 running under IIS Integrated Request Processing Pipeline mode.
The goal is to look at the incoming request at the Web Server level, and inject some custom HttpHeaders into the reques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Guidelines to improve your code What guidelines do you follow to improve the general quality of your code? Many people have rules about how to write C++ code that (supposedly) make it harder to make mistakes. I've seen people insist that every if statement is followed by a brace block ({...}).
I'm interested in what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I write a python HTTP server to listen on multiple ports? I'm writing a small web server in Python, using BaseHTTPServer and a custom subclass of BaseHTTPServer.BaseHTTPRequestHandler. Is it possible to make this listen on more than one port?
What I'm doing now:
class MyRequestHandler(BaseHTTPServer.BaseHTTPR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Checkbox in listview control Can you have a multicolumn listview control where one of the columns is a checkbox? Example code or links would be greatly appreciated.
I am using visual studio 2005
A: Add Checkbox column like below.
myListView.CheckBoxes = true;
myListView.Columns.Add(text, width, alignment);
Add Li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Deleting lines of code in a text editor Edit: This question had been tagged "Tolstoy" in appreciation of the quality and length of my writing:) Just reading the first and the last paragraph should be enough:) If you tend to select and move code with the mouse, the stuff in middle could be interesting to you.
This q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: python regex to match multi-line preprocessor macro What follows is a regular expression I have written to match multi-line pre-processor macros in C / C++ code. I'm by no means a regular expressions guru, so I'd welcome any advice on how I can make this better.
Here's the regex:
\s*#define(.*\\\n)+[\S]+(?!\\)
It s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to determine the value of a controller variable during execution in Ruby on Rails? What is the best way for me to determine a controller variable's value during execution?
For example, is there a way I can insert a break in the code, and cause the value of the variable to be output to the screen (or the log)?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to set up a Subversion (SVN) server on GNU/Linux - Ubuntu I have a laptop running Ubuntu that I would like to act as a Subversion server. Both for myself to commit to locally, and for others remotely. What are the steps required to get this working? Please include steps to:
*
*Get and configure Apache, and ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: Which jQuery plugin should be used to fix the IE6 PNG transparency issue? Is there an IE6/PNG fix that is officially developed by the jQuery team?
If not which of the available plugins should I use?
A: I'm using jquery.pngFix.js. I don't know if it's officially sanctioned or not, I do know that it works. I chose ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: c++ Having multiple graphics options Currently my app uses just Direct3D9 for graphics, however in the future I' m planning to extend this to D3D10 and possibly OpenGL. The question is how can I do this in a tidy way?
At present there are various Render methods in my code
void Render(boost::function<void()> &Call)
{... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to handle user account authentication and passwords What is the best way to handle user account management in a system, without having your employees who have access to a database, to have access to the accounts.
Examples:
*
*Storing username/password in the database. This is a bad idea because anyone t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Learning kernel hacking and embedded development at home? I was always attracted to the world of kernel hacking and embedded systems.
Has anyone got good tutorials (+easily available hardware) on starting to mess with such stuff?
Something like kits for writing drivers etc, which come with good documentation and are... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How to load JAR files dynamically at Runtime? Why is it so hard to do this in Java? If you want to have any kind of module system you need to be able to load JAR files dynamically. I'm told there's a way of doing it by writing your own ClassLoader, but that's a lot of work for something that should (in my mind at le... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "366"
} |
Q: Unable to load System.Data.Linq.dll for CodeDom I am trying to dynamicaly compile code using CodeDom. I can load other assemblies, but I cannot load System.Data.Linq.dll. I get an error:
Metadata file 'System.Data.Linq.dll' could not be found
My code looks like:
CompilerParameters compilerParams = new CompilerParam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is help file (or user manual) dead? Back in the days of Unix, you couldn't even close a software without reading the man page first. Then came Mac and Windows with consistent menu layout and keyboard shortcuts, but you still saw paper user manuals shipped in the shrinkwrap box, which described each and every single ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How do you do fuzzy searches using bound parameters in PDO? Trying to do this sort of thing...
WHERE username LIKE '%$str%'
...but using bound parameters to prepared statements in PDO. e.g.:
$query = $db->prepare("select * from comments where comment like :search");
$query->bindParam(':search', $str);
$query->execu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I show a grey transparent overlay in C#? How can I show a grey transparent overlay in C#?
It should overlay other process which are not owned by the application doing the overlay.
A: Create a transparent window the size of the whole screen, mark it always-on-top, calculate the regions of your other applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60785",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I listen in on shortcuts when the app is the task bar in C# An example of an app that does this is Enso, it pops up when you press the caps lock.
A: You can act on global hotkeys by calling the winapi function RegisterHotKey. Also see https://www.codeproject.com/Articles/4345/NET-system-wide-hotkey-componen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Scriptaculous Ajax.Autocompleter extra functionality in LI I'm using the Ajax.Autocompleter class from the Prototype/Scriptaculous library which calls an ASP.NET WebHandler which creates an unordered list with list items that contain suggestions.
Now I'm working on a page where you can add suggestions to a 'stop wor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installing Curl IDE/RTE on AMD processors Trying to move my development environment to Linux. And new to Curl. Can't get it to install the IDE & RTE packages on an AMD HP PC running Ubuntu x64. I tried to install the Debian package via the package installer and get "Error: Wrong architecture - i386". Tried using the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to NHibernate multiple OrderBy calls I'm having trouble ordering by more than one field in my Linq to NHibernate query. Does anyone either know what might be wrong or if there is a work around?
Code:
IQueryable<AgendaItem> items = _agendaRepository.GetAgendaItems(location)
.Where(item => item.Minutes.Contain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Getting random row through SQLAlchemy How do I select one or more random rows from a table using SQLAlchemy?
A: Some SQL DBMS, namely Microsoft SQL Server, DB2, and PostgreSQL have implemented the SQL:2003 TABLESAMPLE clause. Support was added to SQLAlchemy in version 1.1. It allows returning a sample of a table u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60805",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: Find out how much memory is being used by an object in C#? Does anyone know of a way to find out how much memory an instance of an object is taking?
For example, if I have an instance of the following object:
TestClass tc = new TestClass();
Is there a way to find out how much memory the instance tc is taking?
The r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Can anyone recommend a Silverlight 2 book? Even though Silverlight2 is still in it's infancy, can anyone recommend a book to get started with? One that has more of a developer focus than a designer one?
A: I have this one pre-ordered: "Programming Silverlight 2"
by Jesse Liberty and Tim Heuer. The authors are both... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Any tool similar to Hyperterminal application?
HyperTerminal is a program that you can use to connect to other
computers, Telnet sites, bulletin
board systems (BBSs), online services,
and host computers, using either your
modem, a null modem cable or Ethernet
connection.
But My main usage of Hypertermina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60823",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: international characters in Javascript I am working on a web application, where I transfer data from the server to the browser in XML.
Since I'm danish, I quickly run into problems with the characters æøå.
I know that in html, I use the "&aelig;&oslash;&aring;" for æøå.
however, as soon as the chars pass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What is wrong with using inline functions? While it would be very convenient to use inline functions at some situations,
Are there any drawbacks with inline functions?
Conclusion:
Apparently, There is nothing wrong with using inline functions.
But it is worth noting the following points!
*
*Overuse of inlining ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60830",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: How do you retrieve items from a dictionary in the order that they're inserted? Is it possible to retrieve items from a Python dictionary in the order that they were inserted?
A: The standard Python dict does this by default if you're using CPython 3.6+ (or Python 3.7+ for any other implementation of Python).
On ol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: mod_rewrite equivalent for IIS 7.0 Is there a mod_rewrite equivalent for IIS 7.0 that's
a) more or less complete
b) suitable for a production environment, i.e. battle-tested/dependable/secure
Do you have an experience-based recommendation?
A: If you have $99.00 to spare you may want to take a look at http://www.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How to solve Memory Fragmentation We've occasionally been getting problems whereby our long-running server processes (running on Windows Server 2003) have thrown an exception due to a memory allocation failure. Our suspicion is these allocations are failing due to memory fragmentation.
Therefore, we've been looking... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: Advanced directory switching in bash I know a few advanced ways, to change directories. pushd and popd (directory stack) or cd - (change to last directory).
But I am looking for quick way to achieve the following:
Say, I am in a rather deep dir:
/this/is/a/very/deep/directory/structure/with\ lot\ of\ nasty/names
an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/60874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.