text stringlengths 8 267k | meta dict |
|---|---|
Q: Database schema for hierarchical groups I'm working on a database design for groups hierarchy used as the foundation of a larger system. Each group can contain other groups, and also 'devices' as leaf objects (nothing goes below device).
The database being used is MS SQL 2005. (Though working in MS SQL 2000 would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Calling a ASP Page thru it Class Like in Windows Forms:
Dim myForm as New AForm(Constr-arg1, Constr-arg2)
myForm.Show
... is there a similar way to Load a Page in ASP.Net. I would like to overload the Page Constructor and instantiate the correct Page Contructor depending on the situation.
A: Can you just link to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Change Style/Look of Asp:CheckBox using CSS I want to change the standard "3D" look of the standard asp.net checkbox to say solid 1px. If I try to apply the styling to the Border for example it does just that - draws the standard checkbox with a border around it - which is valid I guess.
Anyway, is there a way to ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Monthly Birthday SQL Query How would retrieve all customer's birthdays for a given month in SQL? What about MySQL?
I was thinking of using the following with SQL server.
select c.name
from cust c
where datename(m,c.birthdate) = datename(m,@suppliedDate)
order by c.name
A: don't forget the 29th February...
SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determining the size of a file larger than 4GB The code currently does this and the fgetpos does handle files larger than 4GB but the seek returns an error, so any idea how to seek to the end of a file > 4GB?
fpos_t currentpos;
sok=fseek(fp,0,SEEK_END);
assert(sok==0,"Seek error!");
fgetpos(fp,¤tpos);
m_file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can you change the Visual Studio IDE profile? Can the Visual Studio IDE profile be changed without clearing all VS settings?
A: Tools -> Import and Export Settings.. -> [X] Import Selected ... -> Save Current -> Choose options you wish to change
| {
"language": "en",
"url": "https://stackoverflow.com/questions/112926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Graphical DIFF programs for linux I really like Araxis Merge for a graphical DIFF program for the PC. I have no idea what's available for linux, though. We're running SUSE linux on our z800 mainframe.
I'd be most grateful if I could get a few pointers to what programs everyone else likes.
A: xxdiff is lightweight ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "233"
} |
Q: What are the statistics of HTML vs. Text email usage What the latest figures are on people viewing their emails in text only mode vs. HTML?
Wikipedia and it's source both seem to reference this research from 2006 which is an eternity ago in internet terms.
An issue with combining both HTML and text based emails is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create program installer in Visual Studio 2005? I'm a web-guy stuck in "application world" in VS 2005. I created my windows forms program and want to give my end users the ability to install it (and some of it's resources) into a standard Program Files/App Directory location along with a start menu/desktop launcher... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Accessing files across the windows network with near MAX_PATH length I'm using C++ and accessing a UNC path across the network. This path is slightly greater than MAX_PATH. So I cannot obtain a file handle.
But if I run the program on the computer in question, the path is not greater than MAX_PATH. So I can get a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I add another run level (level 7) in Ubuntu? Ubuntu has 8 run levels (0-6 and S), I want to add the run level 7.
I have done the following:
1.- Created the folder /etc/rc7.d/, which contains some symbolic links to /etc/init.d/
2.- Created the file /etc/event.d/rc7 This is its content:
# rc7 - runlevel 7 compa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112964",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some resources for learning to write specifications? At work I am responsible for writing specifications quite often and I am also the person who insisted on getting specifications in the first place. The problem is I am unsure how specifications should look and what they should contain. A lot of the time w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Python - When to use file vs open What's the difference between file and open in Python? When should I use which one? (Say I'm in 2.5)
A: Functionally, the two are the same; open will call file anyway, so currently the difference is a matter of style. The Python docs recommend using open.
When opening a file, i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "141"
} |
Q: Relative path in web config How can I have a relative path in the web.config file. This value is not in the connection string so I cannot use |DataDirectory| (I think), so what can I do?
A: What is the relative path for?
Are you talking about a physical directory path or a url path?
Edit:
I needed to do something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to copy DLL file from PC to vs.net`s pocket pc 2003 simulator? I want to copy a DLL file from PC to vs.net`s pocket pc 2003 simulator, so i use the shared folder of the simulator, but i can not see the dll file in file list of simulator.
How to do it, please ?
A: Add it to the project's primary output.
A: Sugg... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generics on ASP.NET page Class I want to implement Generics in my Page Class like :
Public Class MyClass(Of TheClass)
Inherits System.Web.UI.Page
But for this to work, I need to be able to instantiate the Class (with the correct Generic Class Type) and load the page, instead of a regular Response.Redirect. Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using Divs to display table-like data I want to display data like the following:
Title Subject Summary Date
So my HTML looks like:
<div class="title"></div>
<div class="subject"></div>
<div class="summary"></div>
<div class="date"></div>
The problem is, all the text doesn't appear on a single line. I tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/112983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I access my memory mapped I/O Device (FPGA) from a RTP in VxWorks? When using VxWorks, we are trying to access a memory mapped I/O device from a Real-Time Process.
Since RTPs have memory protection, how can I access my I/O device from one?
A: There are two methods you can use to access your I/O mapped device... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Writing to the windows logs in Python Is it possible to write to the windows logs in python?
A: Yes, just use Windows Python Extension, as stated here.
import win32evtlogutil
win32evtlogutil.ReportEvent(ApplicationName, EventID, EventCategory,
EventType, Inserts, Data, SID)
| {
"language": "en",
"url": "https://stackoverflow.com/questions/113007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: IIS 6.0 Is Stubbornly Remembering Authentication Settings I have an .asmx in a folder in my application and I keep getting a 401 trying to access it.
I have double and triple checked the setting including the directory security settings. It allows anonymous. I turned off Windows Authentication.
If I delete the app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Whats the best way to pass html embed code via rss feed to a rss parser in php? Im trying to put an html embed code for a flash video into the rss feed, which will then be parser by a parser (magpie) on my other site. How should I encode the embed code on one side, and then decode it on the other so I can insert cle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Stable, efficient sort? I'm trying to create an unusual associative array implementation that is very space-efficient, and I need a sorting algorithm that meets all of the following:
*
*Stable (Does not change the relative ordering of elements with equal keys.)
*In-place or almost in-place (O(log n) stack is fin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Internet Explorer 8 beta 2 and Standards Internet Explorer 8 breaks what must be every 3rd page I look at. The point of this early release was, I presume, to give website owners the chance to update their sites so it wouldn't be such a hassle for the final release.
Has anyone actually done this?
Is anyone even plann... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to use one object's method to update another object's attribute? I have three (C++) classes: Player, Hand, and Card.
Player has a member, hand, that holds a Hand. It also has a method, getHand(), that returns the contents of hand.
Hand Player::getHand() {
return hand;
}
Hand has a method, addCard(Card c), t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to return only the Date from a SQL Server DateTime datatype SELECT GETDATE()
Returns: 2008-09-22 15:24:13.790
I want that date part without the time part: 2008-09-22 00:00:00.000
How can I get that?
A: Simply you can do this way:
SELECT CONVERT(date, getdate())
SELECT DATEADD(dd, 0, DATEDIFF(dd, 0, @your_date)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2130"
} |
Q: How to write an RSS feed with Java? I'm using Java, and need to generate a simple, standards-compliant RSS feed. How can I go about this?
A: I recommend using Rome:
// Feed header
SyndFeed feed = new SyndFeedImpl();
feed.setFeedType("rss_2.0");
feed.setTitle("Sample Feed");
feed.setLink("http://example.com/");
// ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113063",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Keeping my PHP pretty I am creating a site in which different pages can look very different depending upon certain conditions (ie logged in or not, form filled out or not, etc). This makes it necessary to output diferent blocks of html at different times.
Doing that, however, makes my php code look horrific... it r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Selenium internals How does selenium work? Can you explain the internal working of it.
A: First there's a layer of javascript code that is used to automate the browser and simulate events, run and verify tests. Next, you run a proxy server - which you point your browser to - that injects this javascript code. Then,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Dynamic IP-based blacklisting Folks, we all know that IP blacklisting doesn't work - spammers can come in through a proxy, plus, legitimate users might get affected... That said, blacklisting seems to me to be an efficient mechanism to stop a persistent attacker, given that the actual list of IP's is determined dyna... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Why are a DisplayObject's child's .name property and the results of getChildByName() sometimes different? Can anyone explain the difference between the "name" property of a display object and the value found by getChildByName("XXX") function? They're the same 90% of the time, until they aren't, and things fall apar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create basic Adobe Illustrator files programmatically? I need to create a really basic Adobe Illustrator file on the clipboard that I can paste in Adobe Illustrator or Expression Design. I'm looking for code samples on how to programmatically generate Adobe Illustrator Files, preferably from C# or some other ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Where can I find some up to date information on OpenID authentication with rails? The question says it all. I can't seem to find any recent rails tutorials or whatever to set up an OpenID authentication system. I found RestfulOpenIDAuthentication but it's so much older than the vanilla Restful Authentication and t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tool to calculate # of lines of code in code behind and aspx files? Looking for a tool to calculate the # of lines of code in an asp.net (vb.net) application.
The tricky part is that it needs to figure out the inline code in aspx files also.
So it will be lines of code in vb files (minus comments) plus the inline co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Recommended WPF Calendar What WPF Calendar control would you recommend? I am looking for something that will let me display a variable amount of weeks potentially spanning multiple months.
A: Microsoft has now released a WPF calendar control.
<c:Calendar>
<c:DatePicker.BlackoutDates>
<c:CalendarDateRan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Large Image resizing libraries Does anyone know of any good image resizing libraries that will handling resizing large images(~7573 x ~9485). Something that is fast and doesn't chew to much memory would be great. At the moment I am using IrfanView and just shell invoking it with arguments but I would like to find ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the cost of using a pointer to member function vs. a switch? I have the following situation:
class A
{
public:
A(int whichFoo);
int foo1();
int foo2();
int foo3();
int callFoo(); // cals one of the foo's depending on the value of whichFoo
};
In my current implementation I save the value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: What are the Python equivalents of the sighold and sigrelse functions found in C? It appears the Python signal module doesn't have anything similar to the sighold and sigrelse functions found in C, using signal.h. Are there Python equivalents of any sort?
Many thanks!
A: There is no way to ``block'' signals tempora... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113170",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Set operation in .NET C# I'm working on a something related to roughset right now. The project uses alot of sets operation and manipulation. I've been using string operations as a stop gap measure for set operation. It has worked fine until we need to process some ungodly amount of data ( 500,000 records with about ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I use owfs to read an iButton temperature logger? I've installed owfs and am trying to read the data off a iButton temperature logger.
owfs lets me mount the iButton as a fuse filesystem and I can see all the data. I'm having trouble figuring out what is the best way to access the data though. I can get ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Hidden markov models implementation in .net? Does anyone know of any HMM implementation in .net?
I've some stuff that I did that was basicly reverse engineered from what little knowledge that I have regarding the subject and some c++ code of a very domain specific application that one of my professors did.
I want t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Create a small 'window-form' application that runs anywhere I work in the embedded world, using mainly C and no GUI at all (because there is no display screen).
Moving over to the non-embedded world, in which I have nearly no experience, what is the best programming environment (langauge/IDE/etc) for me to build a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Removing blotchiness on transparent PNGs filtered with additional opacity in IE I made a rotating image fader using Javascript and CSS to show images and unload them. I wanted to use transparent PNG's, I didn't expect or care if they looked good in IE 6, but IE 7 and 8 treated them with the same disrespect. Firefo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113212",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Add options to select box without Internet Explorer closing the box? I'm trying to build a web page with a number of drop-down select boxes that load their options asynchronously when the box is first opened. This works very well under Firefox, but not under Internet Explorer.
Below is a small example of what I'm t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113218",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is the largest TCP/IP network port number allowable for IPv4? What is the highest port number one can use?
A: As I understand it, you should only use up to 49151, as from 49152 up to 65535 are reserved for Ephemeral ports
A: It should be 65535.
A: The port number is an unsigned 16-bit integer, so 65535.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113224",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "453"
} |
Q: How to release .Net apps without bundling .Net framework? I have a strange requirement to ship an application without bundling .Net framework (to save memory footprint and bandwidth).
Is this possible? Customers may or may not have .Net runtime installed on their systems.
Will doing Ngen take care of this problem? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Centered background image is off by 1px My web page sits in a DIV that is 960px wide, I center this DIV in the middle of the page by using the code:
html,body{background: url(images/INF_pageBg.gif) center top repeat-y #777777;text-align:center;}
#container{background-color:#ffffff;width:960px;text-align:left;mar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: VB.NET - Should a Finalize method be added when implementing IDisposable? In Visual Studio, when I type the line "Implements IDisposable", the IDE automatically adds:
*
*a disposedValue member variable
*a Sub Dispose() Implements IDisposable.Dispose
*a Sub Dispose(ByVal disposing As Boolean)
The Dispose() shoul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113267",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do I remove duplication in shoulda tests? Here is what I have:
context "Create ingredient from string" do
context "1 cups butter" do
setup do
@ingredient = Ingredient.create(:ingredient_string => "1 cups butter")
end
should "return unit" do
assert_equ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113275",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Maintaining Multiple Databases Across Several Platforms What's the best way to maintain a multiple databases across several platforms (Windows, Linux, Mac OS X and Solaris) and keep them in sync with one another? I've tried several different programs and nothing seems to work!
A: I think you should ask yourself why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you create your own code generators? The Pragmatic Programmer advocates the use of code generators.
Do you create code generators on your projects? If yes, what do you use them for?
A: Code generators if used widely without correct argumentation make code less understandable and decrease maintainability (the sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Multiple services from the same executable I've written a small service (plain Win32) and I'd like to know if it's possible to run multiple instances of it when multiple users are logged on.
Basically, let's say we've got UserA and UserB for UserA the service would log on as "domain\UserA" and for UserB the service ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is the host localhost always available for the own system? Is it always possible to ping localhost and it resolves to 127.0.0.1?
I know Windows Vista, XP, Ubuntu and Debian do it but does everyone do it?
A: 127.0.0.1 is reserved in any IP stack for the local host.
"localhost" as a host name is not guaranteed to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113293",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Team size and project iteration length Do you think that project iteration length is related to project team size? If so, how? What other key factors do you use to recognize correct iteration length for different projects?
A: Iteration length is primarily related to the teams ability to communicate and complete a w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Python-passing variable between classes I'm trying to create a character generation wizard for a game. In one class I calculate the attributes of the character. In a different class, I'm displaying to the user which specialties are available based on the attributes of the character. However, I can't remember how to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Flex AdvancedDataGrid: How do I style the summary rows? I have an AdvancedDataGrid with a GroupingCollection and a SummaryRow. How do I display the summary row data in bold? Below is my code:
<mx:AdvancedDataGrid width="100%" height="100%" id="adg" defaultLeafIcon="{null}" >
<mx:dataProvider>
<mx:Group... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: OpenGL: projecting mouse click onto geometry I have this view set:
glMatrixMode(GL_MODELVIEW); //Switch to the drawing perspective
glLoadIdentity(); //Reset the drawing perspective
and I get a screen position (sx, sy) from a mouse click.
Given a value of z, how can I calculate x and y in 3d-space from sx and sy?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you get the Eclipse Package Explorer to show files whose names begins with a . (period)? When a folder in the Eclipse Package Explorer (one which is linked to a directory somewhere in the filesystem) contains files whose names begin with a . (period), those files do not appear. Can Eclipse be configured to sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Character Limit in HTML How do you impose a character limit on a text input in HTML?
A: use the "maxlength" attribute as others have said.
if you need to put a max character length on a text AREA, you need to turn to Javascript. Take a look here: How to impose maxlength on textArea in HTML using JavaScript
A: ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "96"
} |
Q: How do I determine the value of a generic parameter on my class instance I have a marker interface defined as
public interface IExtender<T>
{
}
I have a class that implements IExtender
public class UserExtender : IExtender<User>
At runtime I recieve the UserExtender type as a parameter to my evaluating method
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113384",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Declare an object even before that class is created Is there anyway to declare an object of a class before the class is created in C++? I ask because I am trying to use two classes, the first needs to have an instance of the second class within it, but the second class also contains an instance of the first class.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What's the relationship between margin, padding and width in different browsers? CSS width value = display width of inside?
or
CSS width value = display width of inside + CSS margin-left + CSS margin-right?
A: You have to make yourself familiar with the CSS Box Model. It explains where padding, margin and border as... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Dynamically added controls in Asp.Net I'm trying to wrap my head around asp.net. I have a background as a long time php developer, but I'm now facing the task of learning asp.net and I'm having some trouble with it. It might very well be because I'm trying to force the framework into something it is not intended for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I test for an expected exception with a specific exception message from a resource file in Visual Studio Test? Visual Studio Test can check for expected exceptions using the ExpectedException attribute. You can pass in an exception like this:
[TestMethod]
[ExpectedException(typeof(CriticalException))]
public... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Good Secure Backups Developers at Home What is a good, secure, method to do backups, for programmers who do research & development at home and cannot afford to lose any work?
Conditions:
*
*The backups must ALWAYS be within reasonably easy reach.
*Internet connection cannot be guaranteed to be always available.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113423",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Converting Reverse Polish Notation Is there any way to interpret Reverse Polish Notation into "normal" mathematical notation when using either C++ or C#? I work for an engineering firm, so they use RPN occasionally and we need a way to convert it. Any suggestions?
A: The Shunting Yard Algorithm is used to convert I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do I connect to a USB webcam in .NET? I want to connect to a USB Webcam in .NET, specifically using C#. Being new to .NET I don't know what kind of support there is in the standard libraries for doing so. I found one example on the web that copies bitmaps through the clipboard, but that seems very hacky (and pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: How to clear the scrollback in the screen command? I use the screen command for command-line multitasking in Linux and I set my scrollback buffer length to a very large value. Is there a key combination to clear the buffer for a certain tab when I don't want it sitting there anymore?
A: I added the command "clear" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: iPhone application : is-it possible to use a "double" slider to select a price range I'm working on an iphone application (not web app) and I'd like to build a form asking a user to indicate a price range. Instead of using two text fields, I would prefer to use a double slider to set the minimum and the maximum pric... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Displaying code in blog posts What libraries and/or packages have you used to create blog posts with code blocks? Having a JavaScript library that would support line numbers and indentation is ideal.
A: The GeSHi text highlighter is pretty awesome. If you're using WordPress, there's a plugin for you already
A: A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Java User Interface Specification Java supplies standard User Interface guidelines for applications built using Java Swing. The basic guidelines are good, but I really feel the look and feel is really boring and outdated.
Is anyone aware of a publicly available Java User Interface Guide that has better look & feel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When to enable/disable Viewstate I generaly disable viewstate for my ASP.net controls unless I explicitly know I am going to require view state for them. I have found that this can significantly reduce the page size of the HTML generated.
Is this good practice? When should be enabled or disabled?
A: I think it's g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Getting IIS6 to play nice with WordPress Pretty Permalinks I've got a WordPress powered blog that I'm trying to get setup on our IIS6 server and everything works besides the permalink structure which I'm having a big headache with.
After googling around/wordpress codex I learned that it's because IIS6 doesn't have t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Performance Counter Port to Linux, HP-UX and AIX We implemented a server application available on Windows only. Now we like to port it to Linux, HP-UX and AIX, too. This application provides internal statistics through performance counters into the Windows Performance Monitor.
To be more precise: The applica... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bad reference to an object already freed Is there a way to be sure we hold a useable reference to an object i.e. being sure it has not been already freed leaving that non nil reference dangling.
A: If you're using FastMM4 as your Memory Manager, you can check that the class is not TFreeObject.
Or, in a more standar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Including a WebService reference in a control I've written a control in C# that overrides the built-in DropDownList control. For this I need a javascript resource included, which I'm including as an embedded resource then adding the WebResource attribute, which works fine.
However, I also need to reference a webse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best implementation for hashCode method for a collection How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been overridden correctly) ?
A: There's a good implementation of the Effective Java's hashcode() and equals() logic in Apache Commons Lang. Chec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "321"
} |
Q: Potential legal issues with storing Social Security/Insurance Numbers (SSNs/SINs)? A client using our system has requested that we store the SSNs/SINs of the end users in our database. Currently, we store minimal information about users (name, email address, and optionally, country), so I'm not overly concerned abou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Running SQL Server on the Web Server Is it good, bad, or indifferent to run SQL Server on your webserver?
I'm using Server 2008 and SQL Server 2005, but I don't think that matters to this question.
A: Larger shops would probably not consider this a best practice... However, if you aren't dealing with hundreds of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113531",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a function in Python to split a string without ignoring the spaces? Is there a function in Python to split a string without ignoring the spaces in the resulting list?
E.g:
s="This is the string I want to split".split()
gives me
>>> s
['This', 'is', 'the', 'string', 'I', 'want', 'to', 'split']
I want some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I uninstall an application using PowerShell? Is there a simple way to hook into the standard 'Add or Remove Programs' functionality using PowerShell to uninstall an existing application? Or to check if the application is installed?
A: function Uninstall-App {
Write-Output "Uninstalling $($args[0])"
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "144"
} |
Q: Role Based Access Control Is there any open-source, PHP based, role-based access control system that can be used for CodeIgniter?
A: Maybe I'm misunderstanding the question, but isn't the whole point of Role-Based Access Control (RBAC) to avoid Access Control Lists (ACLs)?
RBAC differs from access control lists (A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: iPhone development on Windows
Possible Duplicate:
How can I develop for iPhone using a Windows development machine?
Is there a way to develop iPhone (iOS) applications on Windows? I really don't want to get yet another machine.
There is a project on http://code.google.com/p/winchain/wiki/HowToUse that seemed t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "228"
} |
Q: What is the best Linux distribution for Vmware server? In terms of Webserver and low package size installation.
A: To be honest, the best distro for VMWare is the one the admin has the most experience with. With the GUI stuff all disabled I've not found any difference in performance between RedHat, Centos and Ubun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why Re-throw Exceptions? I've seen the following code many times:
try
{
... // some code
}
catch (Exception ex)
{
... // Do something
throw new CustomException(ex);
// or
// throw;
// or
// throw ex;
}
Can you please explain the purpose of re-throwing an exception? Is it following a pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: How to read a barcode from an image I'm seeking a library, technique or advice on how to read an EAN-13 barcode from an image (including ISBN,and ISSN encodings).
The image would come from a mobile phone or webcam, so resolution may be quite poor and not well aligned.
I'm specifically interested in something that co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Attaching Informix .dat and .idx files We are trying to duplicate one of our informix database on a test server, but without Informix expertise in house we can only guess what we need to do. I am learning this stuff on the fly myself and nowhere near the expertise level needed to operate Informix efficiently or eve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting user name/password of the logged in user in Windows Is there any API to get the currently logged in user's name and password in Windows?
Thank you in advance.
A: For the many commenters who believe it is not possible to reveal the password of the currently logged-in user, see Dump cleartext passwords of log... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why is ENUM better than INT I just ran a "PROCEDURE ANALYSE ( )" on one of my tables. And I have this column that is of type INT and it only ever contains values from 0 to 12 (category IDs).
And MySQL said that I would be better of with a ENUM('0','1','2',...,'12'). This category's are basically static and won't cha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: jBPM, concurrent execution and process variables When a process in jBPM forks into concurrent paths, each of these paths gets their own copy of the process variables, so that they run isolated from each other.
But what happens when the paths join again ?
Obviously there could be conflicting updates.
Does the context... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Which CSS tag creates a box like this with title? I want to create a box like this with title:
Can any one please let me know if there is a default CSS tag to do this? Or do I need to create my custom style?
A: I believe you are looking for the fieldset HTML tag, which you can then style with CSS. E.g.,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "54"
} |
Q: File format of CF10-jpg While working on a tool that allows to exchange images of several third-party applications and thus creating individual "skins" for those applications, I have stumbled across a jpg-format about which I cannot seem to find any decent informations.
When looking at it in a hex-editor, it starts ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Property Grid Object failing on combo box selection but OK when combobox scrolled or double clicked I have a Property Grid in C#, loading up a 'PropertyAdapter' object (a basic wrapper around one of my objects displaying relevant properties with the appropriate tags)
I have a TypeConverter on one of the properties (... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: VS 2003 CrystalReports - details section issue I have 2 detail sections on my report (details a and details b).
Fields in both sections can grow up to 10 lines.
How do I force the Crystal Report to print both sections on one page?
Currently the report on bottom page print section "details a", but section "details b"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a function in python to split a word into a list? Is there a function in python to split a word into a list of single letters? e.g:
s = "Word to Split"
to get
wordlist = ['W', 'o', 'r', 'd', ' ', 't', 'o', ' ', 'S', 'p', 'l', 'i', 't']
A: Abuse of the rules, same result:
(x for x in 'Word to split')
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "119"
} |
Q: Installing PowerShell on 600 client computers - Recommended settings I want to install PowerShell to 600 Window XP computers, and use it as the main processing shell. For example, for replacing batch scripts, VB scripts, and some other little programs. The installation process is not a problem. Some issues I think I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113664",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Hiding toolbar / status bar with javascript in CURRENT browser window? Is there some way to hide the browser toolbar / statusbar etc in current window via javascript? I know I can do it in a popup with window.open() but I need to do it this way. Is it possible at all?
A: I believe this is not possible. And anyway, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How not to repeat yourself across projects and/or languages I'm working on several distinct but related projects in different programming languages. Some of these projects need to parse filenames written by other projects, and expect a certain filename pattern.
This pattern is now hardcoded in several places and in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add a "last" class on the last
* within a Views-generated list? How do I add a "last" class on the last <li> within a Views-generated list?
A: You could use the last-child pseudo-class on the li element to achieve this
<html>
<head>
<style type="text/css">
ul li:last-child
{
font-weight:bold
}
</style>
<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: LocBaml include previous translations Is there a way to combine a previous translation when extracting the csv file from an application?
Or any other tool that could do this job for me?
I can’t really see how could i use locbaml if i had to translate everything from scratch every time i add a new control in my app... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I'm looking for publications about the history of the internet browsers I'm looking for publications about the history of the internet browsers. Papers, articles, blog posts whatever. Cannot find anything on ACM IEEE etc. and my blog search also didn't reveal anything remarkable.
A: Did you take a look at the entri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/113717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.