text string | meta dict |
|---|---|
Q: SQL for the web Does anyone have experience with a query language for the web?
I am looking for project, commercial or not, that does a good job at making a webpage queryable and that even follows links on it to aggregate information from a bunch of pages.
I would prefere a sql or linq like syntax. I could of course... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Requirement for key in std::multimap I have a std::multimap where key is a custom class. Something like this:
Class X {
public:
std::string s;
int x;
operator <(const X& other) const { return s < other.s; }
};
std::multimap<X, int> mymap;
Now, I'd like to use upper_bound and lower_bound to iterate over ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you use particular conventions for naming complementary variables? I often find myself trying to come up with good names for complementary pairs of variables; where two variables denote opposing concepts, two participants in some sort of duologue, and so on.
This might be better explained by a counter-example - I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Why Python decorators rather than closures? I still haven't got my head around decorators in Python.
I've already started using a lot of closures to do things like customize functions and classes in my coding.
Eg.
class Node :
def __init__(self,val,children) :
self.val = val
self.children = child... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215689",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Synchronizing a variable between client and server Say I've got a client-side counter variable. When I send a request to the server, I send this variable's value, then increment it by one (for the next request to the server). The server keeps track of this counter independantly, and checks to make sure that the coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can you use BeautifulSoup to get colindex numbers? I had a problem a week or so ago. Since I think the solution was cool I am sharing it here while I am waiting for an answer to the question I posted earlier. I need to know the relative position for the column headings in a table so I know how to match the col... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I reset or revert a file to a specific revision? How do I revert a modified file to its previous revision at a specific commit hash (which I determined via git log and git diff)?
A: Use git log to obtain the hash key for specific version and then use git checkout <hashkey>
Note: Do not forget to type the has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5540"
} |
Q: ASP.Net MVC error - Bad IL format I'm following the ASP.Net MVC "TaskList" example video and on clicking Run in Visual Studio (~14:00 min into the video) I'm getting the following error message in the browser:
Server Error in '/' Application.
Bad IL format.
Description: An unhandled exception occurred during the ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the state of native SVG support in the most popular browsers? What is the state of native SVG support in the most popular browsers in their latest releases?
*
*Internet explorer
*Firefox
*Opera
*Safari
*Chrome
*Konqueror
*Camino
A: *
*IE has SVG support in IE9 but not in IE8 and below. The altern... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What the best way to get up to speed on MathML and its usage in the world? What the best way to get up to speed on MathML and its usage in the world?
In particular I mean:
*
*What do you use for rendering/editing it
*Is it used in any commercial/open source applications that you can point me to
*Is it popular a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Domain Modeling or class diagram for car dealership I am trying to draw a domain model or class diagram in UML for car dealership. I am stuck with how to present test drive in the model. One way is to have appointment class and then test-drive as sub class. A dealer also offers after-sale vehicle service so i could... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How does MTOM work? MTOM is the W3C Message Transmission Optimization Mechanism, a method of efficiently sending binary data to and from web services.
How does it work in general?
A: If you put Wireshark (or enabled System.Net Logging) on the non-MTOM enabled service, you should see the SOAP requests with the binar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: What are the best uses of Logic Programming? By Logic Programming I mean the a sub-paradigm of declarative programming languages. Don't confuse this question with "What problems can you solve with if-then-else?"
A language like Prolog is very fascinating, and it's worth learning for the sake of learning, but I have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Is there a search engine including indexing bot which can be used to make up special catalogue by feeding the bot with certain properties? Our application (C#/.NET) needs a lot of queries to search. Google's 50,000 policy per day is not enough. We need something that would crawl Internet websites by specific rules w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strategies to avoid Hibernate LazyInitializationExceptions Are there any other ways to avoid LazyInitializationExceptions in a Hibernate web application besides using the OpenSessionInView pattern? Are there any downsides to using OpenSessionInView?
A: When working on our web applications, we usually decide beforeh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Haskell: Inserting every line from a file into a list I'm currently working on project with Haskell, and have found myself some trouble. I'm supposed to read and insert into a list each line in a "dictionary.txt" file, but I can't seem to do so. I've got this code:
main = do
let list = []
loadNums "dictionar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Python embedded in CPP: how to get data back to CPP While working on a C++ project, I was looking for a third party library for something that is not my core business. I found a really good library, doing exactly what's needed, but it is written in Python. I decided to experiment with embedding Python code in C++, u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Can you create an ASP.NET editing system for a class just by defining it? I was watching a tutorial on Rails and was very impressed that you could so easily create an editing system for a class just by defining it.
Can this be done in ASP.NET?
I know there are ORMs out there, but do they come with an editing system?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Anyone have a C# example showing an owner drawn tabcontrol with hot-tracking effects? Anyone have a C# example showing an owner drawn tabcontrol with hot-tracking effects?
I've implemented a nice owner drawn tabcontrol using C# and .NET 2.0 but i'm stumped when it comes to implementing hot-tracking effects.
Any Idea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I validate the class diagram for a given domain? I am working on car dealership business domain model/UML class diagram.
I am new to modeling, so I would like to know how to validate the class diagram. It's very important for me to have an appropriate, if not 100 percent correct, class diagram to use further ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215759",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can you reference code written in another language in the App_Code folder in ASP.Net? Due to legacy issues I have two folders under App_Code directory. One for VB.Net and another for C#. Problem is, I have a service in the C# folder that needs to leverage a class in the VB.Net folder but they dont seem to know a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Scala: how to create XML nodes from some collection If you have something like:
val myStuff = Array(Person("joe",40), Person("mary", 35))
How do you create an XML value with that data as nodes? I know how to use { braces } in an XML expression to put a value, but this is a collection of values. Do I need to iterate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215767",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can record field updates in OCaml be generalized? I'm a very novice OCaml programmer so please forgive me if this is a stupid/obvious question. There's a lot to absorb and I may have missed this in the documentation.
I have a base of code that's starting to look like this:
let update_x p x =
add_delta p;
p.x <-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Emacs JavaFX Script mode? Does a GNU Emacs major mode for editing JavaFX Script (JavaFX 1.x) files exist?
A: It seems like the answer is "no." Want to help me write one?
| {
"language": "en",
"url": "https://stackoverflow.com/questions/215779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any reason to use System.Uri? I'm looking it over and it seems to be that it is fundamentally broken.
*
*Only 5 instance methods aren't marked obsolete.
*There doesn't appear to be any built-in way to
parse query-string variables.
*There are no methods to mutate the Uri, for example appending a new qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Installing and configuring a barebones email server on Ubuntu I've got an unmanaged Linux VPS running ubuntu that I'm using for the web server for a personal website. I'd like to get a barebones email server up and running. All the installation guides I've found so far are for a full-fledged email server with a we... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215810",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Python for web development in Apache I've been playing with mod_python in apache2 which seems to work differently than python does in general - there's a bit different syntax and things you need to do. It's not very well documented and after a few days of playing with it, I'm really not seeing the point of mod_pytho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I create a temporary file with Cocoa? Years ago when I was working with C# I could easily create a temporary file and get its name with this function:
Path.GetTempFileName();
This function would create a file with a unique name in the temporary directory and return the full path to that file.
In the Cocoa A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Enabling GRUB to automatically boot from the kernel I am developing a kernel for an operating system. In order to execute it, I've decided to use GRUB. Currently, I have a script attached to GRUB's stage1, stage2, a pad file and the kernel itself together which makes it bootable. The only problem is that when I ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Prevent DTD download when parsing XML When using XmlDocument.Load , I am finding that if the document refers to a DTD, a connection is made to the provided URI. Is there any way to prevent this from happening?
A: The document being loaded HAS a DTD.
With:
settings.ProhibitDtd = true;
I see the following exception:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Creating a lambda from an s-expression I have an s-expression bound to a variable in Common Lisp:
(defvar x '(+ a 2))
Now I want to create a function that when called, evaluates the expression in the scope in which it was defined. I've tried this:
(let ((a 4))
(lambda () (eval x)))
and
(let ((a 4))
(eval `(la... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using the after_save callback to modify the same object without triggering the callback again (recursion) If I add an after_save callback to an ActiveRecord model, and on that callback I use update_attribute to change the object, the callback is called again, and so a 'stack overflow' occurs (hehe, couldn't resist).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: How to make a custom drawn UITableViewCell resize properly? For performance reasons, I draw the strings for my UITableViewCell in a custom view that overrides its drawRect method to draw strings directly in the view rectangle using NSString:drawInRect. This is similar to Apple's TableViewSuite Example 5-CustomTableV... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to use PHP to delete X number of lines from the beginning of a text file? I'm writing a PHP script and the script outputs a simple text file log of the operations it performs. How would I use PHP to delete the first several lines from this file when it reaches a certain file size?
Ideally, I would like it to ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What's a good, non-recursive algorithm to calculate a Cartesian product? Note
This is not a REBOL-specific question. You can answer it in any language.
Background
The REBOL language supports the creation of domain-specific languages known as "dialects" in REBOL parlance. I've created such a dialect for list comprehe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I show a "temporarily out of service" page to web-app users during maintenance? I develop and maintain small intranet web apps written in JSP and Java.
They run on a Resin web server, without dedicated httpd like Apache.
Before performing maintenance, I activate a very simple Ajax message to urge users to lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: ActionLink fails with ViewData parameter in ASP.NET MVC Beta I have ran into an odd problem with the ActionLink method in ASP.NET MVC Beta. When using the Lambda overload from the MVC futures I cannot seem to specify a parameter pulled from ViewData.
When I try this:
<%= Html.ActionLink<PhotoController>(p => p.Uploa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Firefox: visually flag redirect in address bar I'm wondering if there's any way to have Firefox 3 (or IE 7 or safari 3.1 or Opera) flag that a redirect has occurred (i.e. any deltas between the hyperlink or URL entered into address bar, and the page you land on), whether you've arrived from a hyperlink or entering U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215924",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: GCC compiler error on Windows XP I'm getting a totally bizzare error trying to compile a C program using GCC. Here is the batch file I am using:
echo Now compiling, assembling, and linking the core:
nasm -f aout -o start.o start.asm
gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multiple apps sharing same reference data . . I have multiple winforms applications that download large sets of reference data on startup. I realized that there might be a more efficient way to store this data locally instead of duplicating the memory in everyone one of the applications. This data is used for larg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215934",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Directories or projects . On a regular winforms solutions, how do you determine to break classes into different directories / namespaces or seperate projects. Besides binary dependencies should view, controllers, models all be in different projects ?
A: I tend to believe that you can happily work with a simpler sy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: PowerPoint - How can I figure out if a presentation has a password programmatically? I'm writing an application that processes PowerPoint presentations and I'm looking into ways of detecting whether or not a PowerPoint presentation has a password if it does then stop processing it.
A: It seems to me that there is n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Any Notepad++ plugins to automatically save document versions Does anyone know of any notepad++ plugin that saves a version of whatever I'm working on periodically? Ideally, it would save many versions with the automatic version number and the date in the title, and perhaps store them in a zipped archive to save spa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: MySQL fulltext against() I am trying to create a search page with MySQL fulltext.
I have a search page with a textbox:
< FORM NAME ="form1" METHOD ="POST" ACTION ="catalog.php?action=<?php echo $title; ?>">
I pass the user's input to another webpage (catalog.php) which runs the query:
"SELECT * FROM books WHERE MAT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make virtual URLs point to .aspx pages in asp.net deployed on an IIS? (preferably without IIS) What's the best way to get a nice clean URL structure like stack overflow has?
Do I need to use IIS for this? Or is there a way I can do it with some sort of mapping file in asp .net?
The site I want this for has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Variable naming schemes for objects in C++? I am implementing a BFS, and what it is going to do is go through an ordered tree to find the shortest solution to a puzzle.
What i will be doing is creating a Snapshot object that holds the current position of each piece in a puzzle. I will add this Snapshot object into t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you properly use WideCharToMultiByte I've read the documentation on WideCharToMultiByte, but I'm stuck on this parameter:
lpMultiByteStr
[out] Pointer to a buffer that receives the converted string.
I'm not quite sure how to properly initialize the variable and feed it into the function
A: Elaborating on th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "79"
} |
Q: Can OpenLaszlo apps access AIR APIs? It seems OpenLaszlo can run on AIR. What's less obvious is whether OpenLaszlo apps can use the AIR-specific APIs, like file system access. If so, how exactly is this done?
A: While I don't have any specifics, the article you linked mentions that his application window can be dra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the most helpful features of effective 404 File Not Found error pages? When a user comes across your site's 404 File Not Found error page, it is most likely not what they were looking for. Here, you have the opportunity to turn a dead end into a resource that can help your visitor find whatever they were lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Determine windows system wide font What is the Win32 API call to determine the system-wide font (in particular the color) for say Menus.
This would be equivalent to going into Appearance Settings - Advanced - and then choosing Menu as the item to look at.
I can use GetSysColor to find the colors of various system-wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/215988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: gcc error: wrong ELF class: ELFCLASS64 I was trying to compile a program using an external compiled object coreset.o. I wrote the public01.c test file and my functions are in computation.c, both of which compiles. However its failing on linking it together. What might be the problem?
gcc -o public01.x public01.o ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to determine total number of open/active connections in ms sql server 2005 My PHP/MS Sql Server 2005/win 2003 Application occasionally becomes very unresponsive, the memory/cpu usage does not spike. If i try to open any new connection from sql management studio, then the it just hangs at the open connection dia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: C#: Virtual Function invocation is even faster than a delegate invocation? It just happens to me about one code design question. Say, I have one "template" method that invokes some functions that may "alter". A intuitive design is to follow "Template Design Pattern". Define the altering functions to be "virtual" fun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Is it safe to deny access to .ini file in .htaccess? I have a .ini file with sensitive information in my php wab app. I denied access to it using a .htaccess file:
<files my.ini>
order deny,allow
deny from all
</files>
I don't have access to folders outside of htdocs, so I can't move the .ini file out of browsa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: GCC with Visual Studio? How hard would it be to use GCC instead of VC++ from within Visual Studio 2008? Obviously, some of the keywords won't match, and some may not get syntax highlighting (unless you made a new language service).
Is this what a 'makefile project' is for, pretty much?
A: You can use Visual GDB add... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: What is the best method of getting the key of the last added array item in PHP? Is there a better way to do the following:
$array = array('test1', 'test2', 'test3', 'test4', 'test5');
// do a bunch of other stuff, probably a loop
$array[] = 'test6';
end($array);
echo key($array); // gives me 6
This will give the ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Options for in-process databases under medium trust I have seen a few different in-process SQL databases for .NET (including one from Microsoft), but either they do not work under medium trust (ASP.NET) or the documentation/websites don't even talk about.
What experiences have you had with in-process databases in ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What tools are there for functional programming in C? I've been thinking a lot lately about how to go about doing functional programming in C (not C++). Obviously, C is a procedural language and doesn't really support functional programming natively.
Are there any compiler/language extensions that add some function... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "166"
} |
Q: How do I get a list of all unversioned files from SVN? Sometimes you're developing and you decide to commit, forgetting you created a few files on your project. Then a few days down the line your buddy gets your build out of Subversion and complains that some files appear to be missing. You realize, ah crap, I forgo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: What exactly causes binary file "gibberish"? I haven't found an answer to this particular question; perhaps there isn't one. But I've been wondering for a while about it.
What exactly causes a binary file to display as "gibberish" when you look at it in a text editor? It's the same thing with encrypted files. Are th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Parsing integers from a line I am parsing an input text file. If I grab the input one line at a time using getline(), is there a way that I can search through the string to get an integer? I was thinking something similar to getNextInt() in Java.
I know there has to be 2 numbers in that input line; however, these... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Security issues when using Amazon S3 file hosting for Flex modules/swfs What kind of security issues am I going to run into when hosting a Flex site (with multiple modules) using Amazon S3's hosting?
Can I even communicate between two different swfs if they're loaded from two different subdomains? (These will be mod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AJAX.Request POST body not send I'm trying to create a POST request, unfortunately the body of the POST never seems to be sent.
Below is the code that I'm using. The code is invoked when a user clicks on a link, not a form "submit" button. It runs without error, invokes the servlet that is being called but, as I m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: UIView scale to 0 using CGAffineTransformMakeScale Is it possible to scale a UIView down to 0 (width and height is 0) using CGAffineTransformMakeScale?
view.transform = CGAffineTransformMakeScale(0.0f, 0.0f);
Why would this throw an error of "<Error>: CGAffineTransformInvert: singular matrix." ?
Update:
There is a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216076",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: C# accessing memory map file Looking for code samples to access a memory map file in C#
A: Looks like C# 4.0 will have MemoryMappedFile support in the library
A: You can take a look at this CodeProject article which shows a simple array over MMF implementation using Winterdom's FileMap library - basically a wrappe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216083",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Reloading a FastCGI app I'm using FastCGI to expose a C++ binary (written using the Wt framework) as a web app. However, after I have modified the app and recompiled it, in order for new sessions to see the changes (active sessions keep using the old version until they expire), I have to reload Apache.
Is it possibl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I coherently organize modules for a PyGTK desktop application? I am working on a desktop application in PyGTK and seem to be bumping up against some limitations of my file organization. Thus far I've structured my project this way:
*
*application.py - holds the primary application class (most functional r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216093",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Should an object implement an iterator or contain another object that implements an iterator I'm trying to get my head around SPL iterators and I've come up with 2 ways to handle it. I see the first version to be less complicated but the second version has composition feel to it (I think).
What am I not seeing is wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Searching for file dependency for nunit unit testing I had a winforms C# class that internally was looking up a file.. to help unit test, i changed it to pass in a file from the outside such as:
string file = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location + "TestXML.xml");
Foo = new Foo(file);
the pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Installing GCC 3.4.6 in RHEL4 I do the following in command line:
1) wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2
2) tar -jxf gcc-3.4.6.tar.bz2
3) cd gcc-3.4.6
4) cd libstdc++-v3
5) ./configure
And I get the following error:
configure: error: cannot find install-sh or install.sh in ./../..
There... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot find the X.509 Certificate using the following search criteria: I get this message:
Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindBySubjectDistinguishedName', FindValue 'CN=HighBall'.
My web.config setup looks like this;
Au... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tool for Viewing X.509 Certificates? Does anyone know of any good tools to view the store name, store location, or values of an X.509 Certificate?
A: Portecle is cross-platform (written in Java), requires no installation and can not only read certificates and keystores but also create, modify, import/export etc.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I reverse a list using recursion in Python? I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that?
A: I know it's not a helpful answer (though this question has been already answered), but in any real code, please don't do that. Python cannot ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216119",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Question about shallow copy in C++ Say I have a struct "s" with an int pointer member variable "i". I allocate memory on the heap for i in the default constructor of s. Later in some other part of the code I pass an instance of s by value to some function. Am I doing a shallow copy here? Assume I didn't implemen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Sql Server Backup to UNC I've create a maintenance plan on my SQL Server 2005 server. The backup should be written to another server. I'm using a UNC path for this. The user running the SQL Agent jobs has full access to the other server. It's admin on both servers.
The problem is that this statement fails ( has the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: SQL Builder for PHP, with JOIN support? Are any of you aware of a library that helps you build/manipulate SQL queries, that supports JOIN's?
It would give a lot of flexibility i'd think if you have something where you could return an object, that has some query set, and still be able to apply JOIN's to it, subquerie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216138",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Smart Sudoku Golf The point of this question is to create the shortest not abusively slow Sudoku solver. This is defined as: don't recurse when there are spots on the board which can only possibly be one digit.
Here is the shortest I have so far in python:
r=range(81)
s=range(1,10)
def R(A):
bzt={}
for i in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OOP: Where to stop Abstracting Where do you draw the line to stop making abstractions and to start writing sane code? There are tons of examples of 'enterprise code' such as the dozen-file "FizzBuzz" program... even something simple such as an RTS game can have something like:
class Player {} ;/// contains Weapons
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to Safely Accept Pasted Code in PHP I want to allow users to paste <embed> and <object> HTML fragments (video players) via an HTML form. The server-side code is PHP. How can I protect against malicious pasted code, JavaScript, etc? I could parse the pasted code, but I'm not sure I could account for all variatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Differentiating Between an AJAX Call / Browser Request Is there anything in the header of an HTTP request that would allow me to differentiate between an AJAX call and a direct browser request from a given client? Are the user agent strings usually the same regardless?
A: If you use Prototype, jQuery, Mootools or Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Can Apache HTTP Server serve dynamic content? Can Apache HTTP Server serve only static content? Tomcat is used to serve Servlets/JSP. Can Tomcat serve other dynamic contents like perl, PHP etc?
A: Apache HTTP Server (http://httpd.apache.org) has:
*
*CGI support: mod_cgi.
This will run almost any dynamic conten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: OOP: When to create derived classes, and when to implement features with conditionals? When should I continue to make derived classes, and when should I just add conditionals to my code?
eg for a missile
class Object;
class Projectile : public Object;
class Missile : public Projectile;
class MissileGuided : public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to change the style of an element/container when the focus is "inside" it? Suppose to have a code like this:
<div class="notSelected">
<label>Name
<input type="text" name="name" id="name" />
</label>
<div class="description">
Tell us what's your name to make us able to fake... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MySQL++ library doesn't work after upgrading GCC I was using mysql++ library and compiling with GCC 3.3.4.
That GCC version had some bugs so I upgraded to GCC 3.4.6.
After upgrading GCC I rebuilt mysql++ and recompiled my program. But now I get a segmentation fault error.
I get the following message:
./mysqlTest: S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does an SSH remote command get fewer environment variables then when run manually? I have a command that runs fine if I ssh to a machine and run it, but fails when I try to run it using a remote ssh command like :
ssh user@IP <command>
Comparing the output of "env" using both methods resutls in different envir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "274"
} |
Q: Garbage collection in Flex when removeChild() is called - managing race conditions I have a 'framework' in Flex which loads and destroys child 'sections', which are instances of module classes. These have a lot of webservice and animation in them and are part of a public facing site.
Before I remove a section from t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: User interface for text mode LCD display Does anybody know any resources on this subject?
I'm developing an embedded application for 2x16 LCD display. Ideally I would like to have a general (display independent) framework, that could be used virtually on any display - one or more segment(s) LED, 1x16, 2x16 LCD, etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Best way to tell if Event.COMPLETE has already fired for an in Flex I'm looking for the best way to tell if an <mx:Image> has already fired the 'Event.COMPLETE' event. I want to do something if it has shown, or attach an event handler if it hasnt yet.
something like :
if (newBackground.percentLoaded < 100)
or
if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Running multiple applications in STM32 flash I would like to have two applications in my STM32 flash, one is basically a boot and the other the 'main' application. I have figured out how to load each of them into different areas of flash, and after taking a memory dump everything looks like it is in the right place.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do you maintain development code and production code? What are the best practices and rules-of-thumb to follow while maintaining code? Is it good practice to have only the production ready code in the development branch, or should untested latest code be available in the development branch?
How do you guys main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "147"
} |
Q: can't insert a record into table I wrote a program which includes writing and reading from database. When I run the app and try to perform writing I call the following method:
public static void AddMessage(string callID, string content)
{
string select =
"INSERT INTO Sporocilo (oznaka_klica, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ, Polymorphism, MetaDataMapping, Inheritance Mapper I am writing a small program. The interface I am writing to control each repository that is made defines a method of Save(IPublicObject). I am using LINQ for the SQL Version of the repository CRUD. My question is this. I would like to have only the one meth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a max array length limit in C++? Is there a max length for an array in C++?
Is it a C++ limit or does it depend on my machine? Is it tweakable? Does it depend on the type the array is made of?
Can I break that limit somehow or do I have to search for a better way of storing information? And what should be t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "207"
} |
Q: TryParse: What is more readable? Out style:
bool result;
if(something.TryParse(val, out result))
{
DoSomething(result);
}
Nullable style:
bool? result = something.TryParse2(val);
if(result.HasValue)
{
DoSomething(result.Value);
}
A: TryParse(val, out result) is a idiom established by the .NET framework in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Rotation matrix for direction vector I've been playing with some algorithms on the internet for a while and I can't seem to get them to work, so I'm tossing the question out here;
I am attempting to render a velocity vector line from a point. Drawing the line isn't difficult: just insert a line with length velocity.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to compress files in .NET 1.1 I need to compress files in [*.zip] format in .NET 1.1. I don't want to use SharpZip for compression as I got random errors - "Access Denied" - when running it in .NET 1.1.
SharptZip will work properly only if I put the assembly on the GAC - which is not an option in my project. Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to detect whether an application is launched by Webstart As it was made clear in my recent question, Swing applications need to explicitly call System.exit() when they are ran using the Sun Webstart launcher (at least as of Java SE 6).
I want to restrict this hack as much as possible and I am lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Avoiding SQL injection in a user-generated SQL-regex I'm creating a site where the user unfortunately has to provide a regex to be used in a MySQL WHERE clause. And of course I have to validate the user input to prevent SQL injection. The site is made in PHP, and I use the following regex to check my regex:
/^([^\\\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Database Abstraction - supporting multiple syntaxes In a PHP project I'm working on we need to create some DAL extensions to support multiple database platforms. The main pitfall we have with this is that different platforms have different syntaxes - notable MySQL and MSSQL are quite different.
What would be the bes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216329",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Html.ActionLink<> intellisense issues When i use any of the other strongly typed HTML helpers after typing for example
Html.Actionlink<HomeController>(x=>x.
This pops up intellisense on the methods that the HomeController class has. However for the example above, this does not happen. Only after inserting the link... | {
"language": "en",
"url": "https://stackoverflow.com/questions/216333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |