text string | meta dict |
|---|---|
Q: Resources for I18N in C++ I'm playing around with the locale and I18N stuff in c++ and have been looking for real world examples. I've read through the Josuttis chapter on I18N in his book (2nd Edition for C++11 to be released April 2012), and found it useful but with no real world examples to draw from I've no idea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Switch Requests to Content Specific to Requesting Domain Lets say I have several web sites on my web server, all as applications under one domain. How could I register other domains to point to the same web server, and redirect requests to, e.g. a web site linked to the requesting domain?
I know I'll have to have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RichTextBox and underline color Is there any way to change the color of an underline in a RichTextBox?
I've tried this but it doesn't seem to work. Anybody know where did those enum values came from? Didn't see any documentation for it.
Thanks.
A: The enum values are the standard windows values when passing message... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to obtain a list of available COM interfaces in Windows Is there any way of obtaining a list of registered COM interfaces on a windows machine, with GUIDs?
Before anybody thinks this isn't related to programming, I need this data in order to reference a COM interface in F# (or C#) for interfaces that tlbimp isn'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is Javascript a proper platform for cryptography? Or, can it be? I noticed a good while back that Wikipedia links to a Javascript implementation of different hash functions. Also found Clipperz Crypto. Even Mozilla implements a crypto object in Firefox.
So, Is Javascript a proper platform for cryptography? Or, can i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: History data from IE Where does Internet Explorer store the history data, i.e. the list of URL that have been visited? I am using Windows XP SP3 and IE7. Basically I would like to read the list of URL and make some statistics on how often what pages are visited.
A: Internet Explorer seems to keep its history in hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is spaghetti code? Can you post a short example of real, overdone spaghetti code, possibly saying what it does? Can you show me a little debugger's nightmare?
I don't mean IOCCC code, that is science fiction. I mean real life examples that happened to you...
Update
The focus has changed from "post some spaghett... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: __REQUIRED_RPCNDR_H_VERSION__ I create a header file from an IDL . The IDL file has been compiled in Visual C++ 2005 .
The generated header file contains #define REQUIRED_RPCNDR_H_VERSION 475 .
I tried to use this header file in Visual Studio 2003 , where rpcndr.h contains
{
#define RPCNDR_H_VERSION ( 450 )... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bidi associations and NHibernate mapping I have classes BidiParent and BidiChildList which link parents and children in a bidirectional parent-child relationship. If a child's parent is updated by e.g. the service layer, the old and new parents' children lists are automatically updated to reflect the change. Likewis... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is a SQL "pseudocolumn"? I accidentally coded SELECT $FOO.. and got the error "Invalid pseudocolumn "$FOO".
I can't find any documentation for them. Is it something I should know?
Edit: this is a MS SQL Server specific question.
A: Pseudocolumns are symbolic aliases for actual columns, that have special prop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: ASP.NET Photo API (Shutterfly, etc . .) I have a website with all my photos, I would like people to be able to click on my pictures and order prints, etc through a third party service (Shutterfly, etc). Does anyone have any best practices or code examples of doing this in C#, ASP.NET?
A: I have no idea if this inf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195532",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In production, Apache + mod_wsgi or Nginx + mod_wsgi? What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?
Which combination will need more memory and CPU time?
Which one is faster?
Which is known for being more stable than the other?
I am also thinking to use CherryPy's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: How would you implement an RSS feed in a Java web environment? I am working on an implementation for RSS feeds for a collaboration platform.
Say there are several thousands of different collaboration rooms where users can share information, and each needs to publish an RSS feed with news, changes, etc...
Using a pla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195537",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Deriving COM interfaces in .NET Due to company constraints out of my control, I have the following scenario:
A COM library that defines the following interface (no CoClass, just the interface):
[
object,
uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx),
dual,
nonextensible,
helpstring("IService Interfa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Flex - Laying out text within a Canvas Here's a problem I keep running into:
I have a lot of situations where I need to display some text with a styled container like so:
<mx:Canvas>
<mx:Text text="{text}" left="5" verticalCenter="0" right="5" />
</mx:Canvas>
As you can see - the text in constrained by the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a tool which lists exported methods from a DLL? As the question states - is there a good tool out there which lists methods an unmanaged DLL exports? I would like it to list COM methods and interfaces too.
A: For DLLs, use the Dependency Viewer (depends.exe).
For COM objects, use oleview.exe
A: Take a loo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to set a style of link that shows only when the linked webpage is being viewed? I got a problem like this (this is html/css menu):
Eshop | Another eshop | Another eshop
Client wants it work like this:
User comes to website, clicks on Eshop. Eshop changes to red color with red box outline. User decides... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the meaning of 'attempt to index upvalue' I am taking my first steps programming in Lua and get this error when I run my script:
attempt to index upvalue 'base' (a function value)
It's probably due to something very basic that I haven't grasped yet, but I can't find any good information about it when googli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Serializing java.lang.Locale Got a class that serializes into xml with XMLEncoder nicely with all the variables there. Except for the one that holds java.util.Locale. What could be the trick?
A: The problem is that java.util.Locale is not a bean. From the XMLEncoder doc:
The XMLEncoder class is a
complementary a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Locating a file on the path Does anybody know how to determine the location of a file that's in one of the folders specified by the PATH environmental variable other than doing a dir filename.exe /s from the root folder?
I know this is stretching the bounds of a programming question but this is useful for deployment... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195590",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Why use a owner window in MessageBox.Show? MessageBox.Show has forms like MessageBox.Show( ownerWindow, .... ).
What do I gain by assigning a owner window?
A: Setting the owner causes the owner to be disabled while the message box is open.
If you don't set the owner then the user can click something else or even cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195593",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: Storing a c# DateTimeOffset value in a SQL Server 2005 database I want to store a a c# DateTimeOffset value in a SQL Server 2005 database.
Sql 2008 has this as a built-in-type, but SQL Server 2005 does not.
The DateTimeOffset structure has a DateTime value which I store as DateTime, an an Offset property (of type Ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the time complexity of popping elements from list in Python? I wonder what is the time complexity of pop method of list objects in Python (in CPython particulary). Also does the value of N for list.pop(N) affects the complexity?
A: The short answer is look here: https://wiki.python.org/moin/TimeComplexity
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "73"
} |
Q: How to avoid computation every time a python module is reloaded I have a python module that makes use of a huge dictionary global variable, currently I put the computation code in the top section, every first time import or reload of the module takes more then one minute which is totally unacceptable. How can I save... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to change an input button image using CSS So, I can create an input button with an image using
<INPUT type="image" src="/images/Btn.PNG" value="">
But, I can't get the same behavior using CSS. For instance, I've tried
<INPUT type="image" class="myButton" value="">
where "myButton" is defined in the CSS file as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "193"
} |
Q: How do I pass in an owner window to MessageBox.Show on a different thread? I am trying to figure out Messagebox( ownerWindow, ... ).
Using reflector I see that the ownerWindow defaults to the ActiveWindow for the thread.
So the only time I need the ownerWindow parameter is to call Show from another thread.
However... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What libs can I use to bind POJOs to external files for TDD without much overhead? I need a way to bind POJO objects to an external entity, that could be XML, YAML, structured text or anything easy to write and maintain in order to create Mock data for unit testing and TDD. Below are some libraries I tried, but the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195639",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Windows could not start the Apache2 on Local Computer - problem During the installation of Apache2 I got the following message into cmd window:
Installing the Apache2.2 service The
Apache2.2 service is successfully
installed. Testing httpd.conf....
Errors reported here must be corrected
before the service can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Does this set of regular expressions FULLY protect against cross site scripting? What's an example of something dangerous that would not be caught by the code below?
EDIT: After some of the comments I added another line, commented below. See Vinko's comment in David Grant's answer. So far only Vinko has answered ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195648",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Any open sourced websites? I have heard of desktop applications whose code has been open-sourced, but are there any websites whose code has been open-sourced? I don't think I have heard of any. If there are aren't any, are there any reasons why?
This will have the advantage of not having to wait for the web developm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to copy a file to multiple directories using the gnu cp command Is it possible to copy a single file to multiple directories using the cp command ?
I tried the following , which did not work:
cp file1 /foo/ /bar/
cp file1 {/foo/,/bar}
I know it's possible using a for loop, or find. But is it possible using th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "217"
} |
Q: can i use bdb(berkeley db) file created by c implementation (python bsddb) by oracle berkeley db java edition? I have a berkeley db file (*.bdb) which is created by the C implementation(python bsddb module). Is it possible to read this file by a pure java implementation of Berkeley Db? I tried to read it using berke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to prevent iframe load event? I have an iframe and couple of tables on my aspx page. Now when the page loads these tables are hidden. The iframe is used to upload file to database. Depending on the result of the event I have to show a particular table on my main page (these tables basically have "Retry","next" b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you mock classes that use RAII in c++ Here's my issue, I'd like to mock a class that creates a thread at initialization and closes it at destruction. There's no reason for my mock class to actually create and close threads. But, to mock a class, I have inherit from it. When I create a new instance of my mo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can require_once be used with symbolic links? On a CentOS LAMP box, trying to get require_once to work inside a script in PHP5. If the file to be included is not a in symlinked directory, it works fine, but if the file to be required is in a directory found via a symbolic link, it fails to find it.
Is this a limitat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting a char string to its underlying data type I have a string(char*), and i need to find its underlying datatype such as int, float, double, short, long, or just a character array containing alphabets with or with out digits(like varchar in SQL).
For ex:
char* str1 = "12312"
char* str2 = "231.342"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why would waveOutWrite() cause an exception in the debug heap? While researching this issue, I found multiple mentions of the following scenario online, invariably as unanswered questions on programming forums. I hope that posting this here will at least serve to document my findings.
First, the symptom: While runni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How can I extract specific tags using LINQ to XML in F#? I have an XML file, which I open in F# like this:
let Bookmarks(xmlFile:string) =
let xml = XDocument.Load(xmlFile)
Once I have the XDocument I need to navigate it using LINQ to XML and extract all specific tags. Part of my solution is:
let xname (tag:st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: what would be the impediments to creating an "Europanto" type universal scripting language? After switching back and forth between several scripting languages this week, I found myself thinking how similar they all are. Yet I'm always reaching for Google (or nowadays SO) to remember details like what the local equi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Design: Large archive file editor, file mapping I'm writing an editor for large archive files (see below) of 4GB+, in native&managed C++.
For accessing the files, I'm using file mapping (see below) like any sane person. This is absolutely great for reading data, but a problem arises in actually editing the archive.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I gain root access on a Mac OS X system without wiping the OS? My father died recently and I've inherited his Mac. I'd love to put it to use in my own life, but I don't want to wipe its brains out just so I can reconfigure it to use in my network, etc. His old files are historically important to me—I trust y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you do relative time in Rails? I'm writing a Rails application, but can't seem to find how to do relative time, i.e. if given a certain Time class, it can calculate "30 seconds ago" or "2 days ago" or if it's longer than a month "9/1/2008", etc.
A: Since the most answer here suggests time_ago_in_words.
Inste... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "222"
} |
Q: shared library problems on linux I'm trying to compile/link a very old piece of software on a linux system and I can't for some reason link with a shared library that's installed on my system.
I get the following error from the linker:
/usr/bin/ld: cannot find -lXaw
However, the lib itself is installed. If I run
l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: I can't connect to my server over the internet I can run the server on my local machine and connect to it on the same machine, but when I try to connect to it from a different computer over the internet, there is not sign of activity on my server, nor a response from the server on the computer I'm testing it on. I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195742",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hidden folder copied during unit test run on VS2008 I've found that when running a VS2008 unit test that a hidden .svn subversion folder is copied under the Out folder that the unit test creates. This is because I've labeled a Resources folder in my unit test as "Additional File and Folder to deploy." Anybody know i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problems with deleting XML elements using PHP DOM Here's the XML file i'm working on:
<list>
<activity>swimming</activity>
<activity>running</activity>
<activity>soccer</activity>
</list>
The index.php, page that shows the list of activities with checkboxes, a button to delete the checked activities, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In search of JavaScript Month Picker I'm in search of a JavaScript month selection tool. I'm already using jQuery on the website, so if it were a jQuery plugin, that would fit nicely. I'm open to other options, as well.
Basically, I'm after a simplified version of the jQuery UI Date Picker. I don't care about the da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195768",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: How to initialise a rather complex char array in C? Assuming Visual C/C++ 6, I have a complex data structure of 22399 elements that looks like this:
{
{ "(SAME", "AS", "U+4E18)", "HILLOCK", "OR", "MOUND"},
{ "TO", "LICK;", {1, 1, 0}, "TASTE,", "A", "MAT,", "BAMBOO", "BARK"},
{ "(J)", "NON-STANDARD", "FORM", "OF", "U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195794",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: switch case vs if else I was wondering if there was any difference in the way the following code was compiled into assembly. I've heard that switch-case is more efficient than if else, but in this example I am not quite sure if that would be the case.
if(x==1){
...
}else if(x==2){
...
}else{
...
}
and
switch(x){
c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Visual Inheritance or a User Control? I have several forms in a .net windows app that have a common set of textboxes and other user input controls,each form has the same look and feel, but each form needs to load and save to different database tables.
Would it be better to place the controls on a base form, and inh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is it possible to develop a powerful web search engine using Erlang, Mnesia & Yaws? I am thinking of developing a web search engine using Erlang, Mnesia & Yaws. Is it possible to make a powerful and the fastest web search engine using these software? What will it need to accomplish this and how what do I start with?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195809",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Test Driven Design for iPhone Native apps I'm experimenting with the iPhone SDK and doing some TDD ala Dr. Nic's rbiPhoneTest project. I'm wondering how many, if any, have been successful using this or any other testing framework for iPhone/Cocoa? More important, I'd like to know how to best assert a proprietary bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195820",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: What's the best way to use memcache with a single-server app? For a single-server LAMP site (which is usually under quite high load), what is best way to use memcache?
Does it make sense to run the memcache daemon on the same server as the application, or is that just going to take valuable memory away from MySQL,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195829",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: What factors should be taken into consideration when writing a custom exception class? When are custom Exception classes most-valuable?
Are there cases when they should or should not be used? What are the benefits?
Related questions:
*
*Performace Considerations for throwing Exceptions
*Do you write exceptions ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: CruiseControl [.Net] vs TeamCity for continuous integration? I would like to ask you which automated build environment you consider better, based on practical experience. I'm planning to do some .Net and some Java development, so I would like to have a tool that supports both these platforms.
I've been reading aroun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "117"
} |
Q: What are the main differences between XHTML and HTML? What are the main differences between XHTML and HTML? Which one is better in your opinion, and why? Do most browsers support both?
A: The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Capture which step of an animated system cursor is being shown on Windows I want to capture as a bitmap the system cursor on Windows OSes as accurately as possible.
The provided API for this is to my knowledge GetCursorInfo, DrawIconEx.
The simple chain of actions is:
*
*Get cursor by using GetCursorInfo
*Paint ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Saving XML-Data in UserSettings I'm trying to save some XML-Data in my UserSettings (Properties.Settings.Default.UserSettings) in a .NET Winforms Project. Is there a Possibility to do that or would it be better to save this Data in a seperated File?
Thanks for your Answers!
A: You can store an XML document's string... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to find full path of Outlook .pst file? Is there a way to programmatically find the location of the current user's Outlook .pst file(s) through an API call or registry entry?
A: With Outlook Redemption, you can iterate the message stores in VBA using RDOStorescollection, accessible via the RDOSession.Stores pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Spinlock versus Semaphore What are the basic differences between a semaphore & spin-lock?
When would we use a semaphore over a spin-lock?
A: I am not a kernel expert but here are few points:
Even uniprocessor machine can use spin-locks if kernel preemption is enabled while compiling the kernel. If kernel preemption... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Writing Quality Tests We know that code coverage is a poor metric to use when gauging the quality of test code. We also know that testing the language/framework is a waste of time.
On the other hand, what metrics can we use to identify quality tests? Are there any best practices or rules of thumbs that you've lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Multiple forms in an HTML page posting to itself I need to have multiple forms in the same webpage, all of them POSTing to itself and then performing different actions depending on the type of form.
What's the best way to achieve this?
To be more specific, the page shows the details of an event, with a form to subsc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Committing binaries to SVN I've searched around a bit, but haven't found a satisfactory answer, so I'd like to hear your opinions on this.
I have a couple of tools which I have to update and deploy to a few servers every now and then. The source is managed in a SVN repository.
To save myself the bother of copying th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: What is the fascination with code metrics? I've seen a number of 'code metrics' related questions on SO lately, and have to wonder what the fascination is? Here are some recent examples:
*
*what code metrics convince you that provided code is crappy
*when if ever is number of lines of code a useful metric
*writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195887",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: java connection to jabber What type of stream I need to use to write a connect request message over a tcp socket, to jabber.
I'mwriting a string with xml format. It should worked with the default socket stream or a dataoutputstream but it doesn't.
A: Use the Smack client library to connect to a Jabber server, such... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Removing files when uninstalling WiX When uninstalling my application, I'd like to configure the Wix setup to remove all the files that were added after the original installation. It seems like the uninstaller removes only the directories and files that were originally installed from the MSI file and it leaves every... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "91"
} |
Q: How can I change an element's class with JavaScript? How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?
A: You can use node.className like so:
document.getElementById('foo').className = 'bar';
This should work in Internet Explorer 5.5 and up according to P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3325"
} |
Q: Generating random number excluding range How do you generate a random number within a range while excluding certain range(s). Eg. range 1-10 but not in 2-4 or 7.
Solutions I've used so far:
*
*Generate a random an test if it
is within the dis-allowed range.
Based on result either output the
number or try again.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Validating Web Pages I have been developing websites for a couple of years now and I almost never check if my pages are valid HTML and CSS. My check is by using a site such as browsershots.org and checking how it looks in all the different browsers. However recently I have been taking a college course and the prof w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make a char string from a C macro's value? For example, how to avoid writing the 'func_name' twice?
#ifndef TEST_FUN
# define TEST_FUN func_name
# define TEST_FUN_NAME "func_name"
#endif
I'd like to follow the Single Point of Truth rule.
Version of C preprocessor:
$ cpp --version
cpp (GCC) 4.1.2 20070626 (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Best way to implement tab stops in valid XHTML? For explanation imagine a simple address. Written in a HTML paragraph with line breaks it would like this:
Street: Example Street 1
City: Vienna
Zip Code: 1010
Country: Austria
Most of the time that's completely okay, but sometimes I have to achieve the following outp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/195991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is the design view for aspx pages in Visual Studio useful? I have never really found the design view in Visual Studio useful when developing aspx pages, and so I basically never use it.
Am I missing something or is it just one of those features that isn't particularly useful? Do you use the design view? If so, how... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: which library better for faster java application swt or swing? which library better for faster java application swt or swing?
A: There is no slow swing application. Just poorly written. And this also apply for SWT. The most application make better responses because of eclipse core architecture. Before J6 there were... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Unique (non-repeating) random numbers in O(1)? I'd like to generate unique random numbers between 0 and 1000 that never repeat (i.e. 6 doesn't show up twice), but that doesn't resort to something like an O(N) search of previous values to do it. Is this possible?
A: For low numbers like 0...1000, creating a list tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "192"
} |
Q: JavaScript slider I need to create a 'slider' for a client's site. The slider should allow people to select how many items they want of x item, and show what the price will be based on that. The weird(ish) part is that the ratio of the price increase will go down as the amount of items goes up:
*
*1 item: $100
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a more accurate way to create a Javascript timer than setTimeout? Something that has always bugged me is how unpredictable the setTimeout() method in Javascript is.
In my experience, the timer is horribly inaccurate in a lot of situations. By inaccurate, I mean the actual delay time seems to vary by 250-500... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "78"
} |
Q: How can I split a PHP script that takes a long time to run into smaller chunks? I have a PHP script that initialises an image gallery. It loops through all images, checks if they are thumbnailed and watermarks them.
My shared hosting account only lets me have 30 seconds of execution per script, as set in the php.ini... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Code formatting across Windows and Unix What Visual Studio settings and .emacs macros improve the likelihood that code written on Windows (in visual studio) will still look good in Emacs (and vice versa)? I've recently taken to turning off tabs in emacs (so tabs are rendered via spaces) and this at least makes the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I access a public static member of a Java class from ColdFusion? How can I access a public static member of a Java class from ColdFusion?
A: You run the createObject but don't call the "init" before running the static method. For example:
<cfset systemObject = createObject("java", "java.lang.System") />
<cf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Which database has the best XML support? I have a system which generates a large number of XML documents every day (of the order of 1 million) and I would like to be able to store and index these so that I can, for example, search for all documents with a certain field set to a given value.
I understand that there a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: When generating html, do you including formatting such as newlines and tabs? Sometimes I add a \n at the end, and the relevant number of \t the beginning, and sometimes not - what's the recommended way to do this?
A: It depends whether you want the HTML to be human readable or not. In most cases however, I would s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best Way to Handle Multiple Scrolling Columns I am in the process of developing a web application that consists visually of a header above a body containing four columns of variable-height content. The design gods have decreed it to be fixed height, mainly because each of the columns can potentially get very long, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Small problem with painting scroll bars with MFC In an MFC application there is a small rectangular region where the scroll bars meet (bottom right of the window). It seems that this region only invalidates when the frame is resized. On other occasions (for example, if another window is dragged over it), this regi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you enable Visual Basic.NET namespace by default? I'm coming from C# background and in Visual Studio. The namespace is shown by default but not in Visual Basic. Is there an option to enable namespace to be shown in Visual Studio 2008?
A: VB.Net has a concept of default namespace for a project. Any file crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is a component I listen to the podcast java posse, on this there is often discussion about components (note components are not (clearly) objects). They lament the fact that Java does not have components, and contrast with .NET that does. Components apparently makes developing applications (not just GUI apps)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Coercing template class with operator T* when passing as T* argument of a function template Assume I have a function template like this:
template<class T>
inline
void
doStuff(T* arr)
{
// stuff that needs to use sizeof(T)
}
Then in another .h filee I have a template class Foo that has:
public: operator T*() const... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programmatically send keystrokes to GLUT application I have an OpenGL/GLUT program running on my linux machine that views a 3D model from various angles and can take screenshots, and everything is controlled from the keyboard. I want to write a script that moves around the model in a particular way, taking screensh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I find out what enums are defined by a class? I know I can get the public static members of a class by doing something like:
obj.getClass().getFields()
but this doesn't get me the enums. I'd like to be able to get them from the Class object returned by the getClass method. Any ideas?
A: (Turned into a com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196094",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: XHTML and code inside textareas On a site of mine in which a textarea is used for submission, I have code that can appear something along the lines of the following:
<textarea><p>text</p></textarea>
When validating (XHTML 1.0 Transitional), this error arises,
line 88 column 50 - Error: document type does not allow ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Flex media framework Does anybody know of a good media framework for Flex?
I'd like to be able to create apps that can play not only those formats that the Flex framework provides support for, but other formats as well (like wav, wma, ogg and other...).
EDIT 13.10.2008.: It was recently pointed out to me in the answ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Why do I get "permission denied" in PHP when trying to rename a directory? I chmod'ed the directory to 777, same with the directory contents. Still, I get a "permission denied" error. Does PHP throw this error if apache is not the group/owner, regardless of the file permissions? Here's the call that's failing:
renam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: SharePoint does not find my custom RenderingTemplate So I've created a custom RenderingTemplate and deployed it to CONTROLTEMPLATES\MyControlTemplates\
It basically dictates how a custom content type that i've created should be rendered when displayed. For that I've added this:
<FormTemplates xmlns="http://schemas.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Other than malloc/free does a program need the OS to provide anything else? I'm working on designing the kernel (which I'm going to actually call the "core" just to be different, but its basically the same) for an OS I'm working on. The specifics of the OS itself are irrelevant if I can't get multi-tasking, memory m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is there a way I can retrieve sa password in sql server 2005 I just forgot the password. Can anyone help me how to get back the password.
A: Wait!
There is a way to retrieve the password by using Brute-Force attack, have a look at the following tool from codeproject
Retrieve SQL Server Password
How to use the tool... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Java version names in Sun's bug database In
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6525150
it says
Release Fixed 7(b14), 6u2(b01) (Bug ID:2147561)
What does 6u2 mean? (Am I right in assuming it as 1.6.0_02 ?)
A: yes, release 6 update 2. Also, (b01) is build 01
A: Yes. You are right. :) u2 -> Update 2
| {
"language": "en",
"url": "https://stackoverflow.com/questions/196170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle 10gr2: prevent any dates that fall on a Sunday? Is it possible to use a CHECK constraint to prevent any date that falls on a Sunday? I don't want to use a trigger.
A: Yes, a check constraint can check that the day of the week is not Sunday. Here's an example:
create table date_test (entry_date date);
alte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How I do I make controls/elements move with inertia? Modern UI's are starting to give their UI elments nice inertia when moving. Tabs slide in, page transitions, even some listboxes and scroll elments have nice inertia to them (the iphone for example). What is the best algorythm for this? It is more than just gra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Is LINQ to SQL InsertOnSubmit() subject to SQL Injection Attack? I have code like this:
var newMsg = new Msg
{
Var1 = var1,
Var2 = var2
};
using (AppDataContext appDataContext = new AppDataContext(ConnectionString))
{
appDataContext.CClass.InsertOnSubmit(newMsg);
appDataContext.SubmitChanges();
}
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Shift reduce conflict I'm having a problem understanding the shift/reduce confict for a grammar that I know has no ambiguity. The case is one of the if else type but it's not the 'dangling else' problem since I have mandatory END clauses delimiting code blocks.
Here is the grammar for gppg (Its a Bison like compiler... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How to avoid blinking when updating page from ajax I've got a table with a header, a row with input fields, rows with data. Like this. http://brow.hu/sitegen/stackoverflow_table_example.png
If somebody enters something into an input field I want to filter the data with an ajax query. After receiving the new table I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/196203",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |