content stringlengths 86 88.9k | title stringlengths 0 150 | question stringlengths 1 35.8k | answers list | answers_scores list | non_answers list | non_answers_scores list | tags list | name stringlengths 30 130 |
|---|---|---|---|---|---|---|---|---|
Q:
Which resolution to target for a Mobile App?
When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented different... | Which resolution to target for a Mobile App? | When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented differently. Is 240×320 still considered safe?
| [
"Not enough information...\nYou say you're targeting a \"Mobile App\" but the reality is that mobile could mean anything from a cell phone with 128x128 resolution to a MID with 800x600 resolution.\nThere is no \"safe\" resolution for such a wide range, and if you're truly targeting all of them you need to design a ... | [
3,
2,
1
] | [] | [] | [
"mobile",
"web_applications"
] | stackoverflow_0000027948_mobile_web_applications.txt |
Q:
Optimizing for low bandwidth
I am charged with designing a web application that displays very large geographical data. And one of the requirements is that it should be optimized so the PC still on dial-ups common in the suburbs of my country could use it as well.
Now I am permitted to use Flash and/or Silverlight ... | Optimizing for low bandwidth | I am charged with designing a web application that displays very large geographical data. And one of the requirements is that it should be optimized so the PC still on dial-ups common in the suburbs of my country could use it as well.
Now I am permitted to use Flash and/or Silverlight if that will help with the limited... | [
"Is something like Gears acceptable? This will let you store data locally to limit re-requests.\nI would also stay away from flash and Silverlight and go straight to javascript/AJAX. jQuery is a ton-O-fun.\n",
"I would suggest you look into Silverlight and DeepZoom\n",
"I don't think you'll find Flash or Silver... | [
2,
2,
1,
1,
0
] | [] | [] | [
"networking",
"optimization",
"web_applications"
] | stackoverflow_0000028441_networking_optimization_web_applications.txt |
Q:
Impose a total ordering on all instances of *any* class in Java
I'm unsure whether the following code would ensure all conditions given in Comparator's Javadoc.
class TotalOrder<T> implements Comparator<T> {
public boolean compare(T o1, T o2) {
if (o1 == o2 || equal(o1, o2)) return 0;
int h1... | Impose a total ordering on all instances of *any* class in Java | I'm unsure whether the following code would ensure all conditions given in Comparator's Javadoc.
class TotalOrder<T> implements Comparator<T> {
public boolean compare(T o1, T o2) {
if (o1 == o2 || equal(o1, o2)) return 0;
int h1 = System.identityHashCode(o1);
int h2 = System.identityHashC... | [
"Hey, look at what I found!\nhttp://gafter.blogspot.com/2007/03/compact-object-comparator.html\nThis is exactly what I was looking for.\n",
"\nHey, look at what I found!\nhttp://gafter.blogspot.com/2007/03/compact-object-comparator.html\n\nOh yes, I forgot about the IdentityHashMap (Java 6 and above only). Just h... | [
2,
2,
1,
1,
1,
0,
0
] | [] | [] | [
"algorithm",
"java"
] | stackoverflow_0000028301_algorithm_java.txt |
Q:
Ruby / Rails pre-epoch dates on windows
Working with dates in ruby and rails on windows, I'm having problems with pre-epoch dates (before 1970) throwing out of range exceptions. I tried using both Time and DateTime objects, but still have the same problems.
A:
If you only need dates (no times), the Date class in... | Ruby / Rails pre-epoch dates on windows | Working with dates in ruby and rails on windows, I'm having problems with pre-epoch dates (before 1970) throwing out of range exceptions. I tried using both Time and DateTime objects, but still have the same problems.
| [
"If you only need dates (no times), the Date class in ruby should handle dates before 1970. But it has only a resolution of days. I don't know if there are solutions, if you also need times before 1970\n(source)\n",
"You can also check out the section on dates on ruby-doc.org. I'm still learning Ruby but it soun... | [
1,
0,
0
] | [] | [] | [
"date",
"ruby",
"ruby_on_rails"
] | stackoverflow_0000028011_date_ruby_ruby_on_rails.txt |
Q:
SQL Server - testing the database
What tools are people using for testing SQL Server databases?
By this I mean all parts of the database:
configuration
tables
column type
stored procedures
constraints
Most likely, there is not one tool to do it all.
A:
How do you mean "Test the database"?
If you are testing ... | SQL Server - testing the database | What tools are people using for testing SQL Server databases?
By this I mean all parts of the database:
configuration
tables
column type
stored procedures
constraints
Most likely, there is not one tool to do it all.
| [
"How do you mean \"Test the database\"? \nIf you are testing foreign keys, a simply script to insert invalid data is all you should need.\nTesting a database could imply a great number of issues. Does it have all the tables? Are the tables correct? Are the indexes in place? Did the latest updates get applied? ... | [
1,
0
] | [] | [] | [
"sql_server",
"unit_testing"
] | stackoverflow_0000027916_sql_server_unit_testing.txt |
Q:
Why is it bad practice to make multiple database connections in one request?
A discussion about Singletons in PHP has me thinking about this issue more and more. Most people instruct that you shouldn't make a bunch of DB connections in one request, and I'm just curious as to what your reasoning is. My first though... | Why is it bad practice to make multiple database connections in one request? | A discussion about Singletons in PHP has me thinking about this issue more and more. Most people instruct that you shouldn't make a bunch of DB connections in one request, and I'm just curious as to what your reasoning is. My first thought is the expense to your script of making that many requests to the DB, but then I... | [
"Database connections are a limited resource. Some DBs have a very low connection limit, and wasting connections is a major problem. By consuming many connections, you may be blocking others for using the database.\nAdditionally, throwing a ton of extra connections at the DB doesn't help anything unless there are... | [
10,
4,
2,
1,
0
] | [] | [] | [
"database",
"database_connection",
"resources"
] | stackoverflow_0000028590_database_database_connection_resources.txt |
Q:
Not showing Dialog when opening file in Acrobat Pro using Applescript
When opening Adobe Acrobat Pro, whether it be through Applescript or finder, the introductory dialog is shown. Is there a way to not show this dialog without already having checked the "Don't Show Again" option when opening a document using App... | Not showing Dialog when opening file in Acrobat Pro using Applescript | When opening Adobe Acrobat Pro, whether it be through Applescript or finder, the introductory dialog is shown. Is there a way to not show this dialog without already having checked the "Don't Show Again" option when opening a document using Applescript?
Photoshop and Illustrator Applescript libraries have ways of se... | [
"Copy any applicable preferences files in ~/Library/Preferences from a machine that you have checked \"Don't show again\" on.\n",
"If it's not in the dictionary, probably not.\n"
] | [
1,
0
] | [] | [] | [
"acrobat",
"adobe",
"applescript",
"macos"
] | stackoverflow_0000008830_acrobat_adobe_applescript_macos.txt |
Q:
Abstract Factory Design Pattern
I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later.
Because each type of Task has a multitude of different associated fields, I decided it would be best to repr... | Abstract Factory Design Pattern | I'm working on an internal project for my company, and part of the project is to be able to parse various "Tasks" from an XML file into a collection of tasks to be ran later.
Because each type of Task has a multitude of different associated fields, I decided it would be best to represent each type of Task with a sepera... | [
"I use reflection to do this.\nYou can make a factory that basically expands without you having to add any extra code.\nmake sure you have \"using System.Reflection\", place the following code in your instantiation method.\npublic Task CreateTask(XmlElement elem)\n{\n if (elem != null)\n { \n try\n ... | [
12,
6,
4,
2,
2,
1,
1,
1,
1,
1
] | [] | [] | [
"c#",
"design_patterns",
"factory"
] | stackoverflow_0000027294_c#_design_patterns_factory.txt |
Q:
NHibernate 1.2 to 2.0 migration
What kinds of considerations are there for migrating an application from NHibernate 1.2 to 2.0? What are breaking changes vs. recommended changes?
Are there mapping issues?
A:
Breaking changes in NHibernate 2.0
If you have good test coverage it's busywork.
Edit: We upgraded this ... | NHibernate 1.2 to 2.0 migration | What kinds of considerations are there for migrating an application from NHibernate 1.2 to 2.0? What are breaking changes vs. recommended changes?
Are there mapping issues?
| [
"Breaking changes in NHibernate 2.0\nIf you have good test coverage it's busywork.\nEdit: We upgraded this morning. There is nothing major. You have to Flush() the session after you delete. The Expression namespace got renamed to Criterion. All these are covered in the link above. Mappings need no change. It'... | [
8,
2
] | [] | [] | [
"nhibernate"
] | stackoverflow_0000027243_nhibernate.txt |
Q:
Pointer to Pointer Managed C++
I have an old C library with a function that takes a void**:
oldFunction(void** pStuff);
I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):
oldFunction( static_cast<sqlite3**>( &m_pStuff ) );
This gives me the following ... | Pointer to Pointer Managed C++ | I have an old C library with a function that takes a void**:
oldFunction(void** pStuff);
I'm trying to call this function from managed C++ (m_pStuff is a member of the parent ref class of type void*):
oldFunction( static_cast<sqlite3**>( &m_pStuff ) );
This gives me the following error from Visual Studio:
error C24... | [
"EDIT: Fixed answer, see below.\nReally you need to know what oldFunction is going to be doing with pStuff. If pStuff is a pointer to some unmanaged data you can try wrapping the definition of m_pStuff with:\n#pragma unmanaged\n\nvoid* m_pStuff\n\n#pragma managed\n\nThis will make the pointer unmanaged which can t... | [
1,
0
] | [] | [] | [
"managed_c++",
"pointers"
] | stackoverflow_0000027071_managed_c++_pointers.txt |
Q:
How do I get the path where the user installed my Java application?
I want to bring up a file dialog in Java that defaults to the application installation directory.
What's the best way to get that information programmatically?
A:
System.getProperty("user.dir")
gets the directory the Java VM was started from.
... | How do I get the path where the user installed my Java application? | I want to bring up a file dialog in Java that defaults to the application installation directory.
What's the best way to get that information programmatically?
| [
"System.getProperty(\"user.dir\") \n\ngets the directory the Java VM was started from.\n",
"System.getProperty(\"user.dir\");\n\nThe above method gets the user's working directory when the application was launched. This is fine if the application is launched by a script or shortcut that ensures that this is the c... | [
8,
4
] | [] | [] | [
"environment_variables",
"java"
] | stackoverflow_0000028428_environment_variables_java.txt |
Q:
What are some instances in which expression trees are useful?
I completely understand the concept of expression trees, but I am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism... | What are some instances in which expression trees are useful? | I completely understand the concept of expression trees, but I am having a hard time trying to find situations in which they are useful. Is there a specific instance in which expression trees can be applied? Or is it only useful as a transport mechanism for code? I feel like I am missing something here. Thanks!
| [
"Some unit test mocking frameworks make use of expression trees in order to set up strongly typed expectations/verifications. Ie:\nmyMock.Verify(m => m.SomeMethod(someObject)); // tells moq to verify that the method\n // SomeMethod was called with \n ... | [
7,
6,
4
] | [] | [] | [
"c#",
"expression"
] | stackoverflow_0000027726_c#_expression.txt |
Q:
Is it possible to use nHibernate with Paradox database?
Is it possible to configure nHibernate to connect to Paradox database (*.db files)?
A:
Yes, sort of.
There is no support included in the trunk, you need to write your own dialect. Or you can port the Paradox dialect created for Hibernate.
| Is it possible to use nHibernate with Paradox database? | Is it possible to configure nHibernate to connect to Paradox database (*.db files)?
| [
"Yes, sort of. \nThere is no support included in the trunk, you need to write your own dialect. Or you can port the Paradox dialect created for Hibernate.\n"
] | [
1
] | [] | [] | [
"database",
"nhibernate",
"paradox"
] | stackoverflow_0000028560_database_nhibernate_paradox.txt |
Q:
Finding controls that use a certain interface in ASP.NET
Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...
public class Button : System.Web.UI.WebCo... | Finding controls that use a certain interface in ASP.NET | Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...
public class Button : System.Web.UI.WebControls.Button, IMyButtonInterface { ... }
In the codebehind o... | [
"Longhorn213 almost has the right answer, but as as Sean Chambers and bdukes say, you should use \nctrl is IInterfaceToFind\n\ninstead of \nctrl.GetType() == aTypeVariable \n\nThe reason why is that if you use .GetType() you will get the true type of an object, not necessarily what it can also be cast to in its ... | [
7,
5,
4,
1,
1,
0,
0
] | [] | [] | [
"asp.net",
"c#"
] | stackoverflow_0000028642_asp.net_c#.txt |
Q:
What exactly is Microsoft Expression Studio and how does it integrate with Visual Studio?
My university is part of MSDNAA, so I downloaded it a while back, but I just got around to installing it. I guess part of it replaces FrontPage for web editing, and there appears to be a video editor and a vector graphics edi... | What exactly is Microsoft Expression Studio and how does it integrate with Visual Studio? | My university is part of MSDNAA, so I downloaded it a while back, but I just got around to installing it. I guess part of it replaces FrontPage for web editing, and there appears to be a video editor and a vector graphics editor, but I don't think I've even scratched the surface of what it is and what it can do. Could ... | [
"Expression Studio is basically a design studio. It consists of a bunch of design software that Microsoft has bought for the most part. The audience is designers, not developers. The gist of the software is that Expression Blend enables designers and programmers to work seamlessly together in letting the designer c... | [
18,
8,
1,
1,
0,
0,
0
] | [] | [] | [
"expression_studio",
"integration",
"visual_studio"
] | stackoverflow_0000028826_expression_studio_integration_visual_studio.txt |
Q:
Simple Object to Database Product
I've been taking a look at some different products for .NET which propose to speed up development time by providing a way for business objects to map seamlessly to an automatically generated database. I've never had a problem writing a data access layer, but I'm wondering if this ... | Simple Object to Database Product | I've been taking a look at some different products for .NET which propose to speed up development time by providing a way for business objects to map seamlessly to an automatically generated database. I've never had a problem writing a data access layer, but I'm wondering if this type of product will really save the ti... | [
"I have used SubSonic and EntitySpaces. Once you get the hang of them, I beleive they can save you time, but as complexity of your app and volume of data grow, you may outgrow these tools. You start to lose time trying to figure out if something like a performance issue is related to the ORM or to your code. So,... | [
3,
1,
1,
0,
0
] | [] | [] | [
".net",
"c#",
"database",
"orm"
] | stackoverflow_0000028768_.net_c#_database_orm.txt |
Q:
C++ Memory management
I've learned in College that you always have to free your unused Objects but not how you actually do it. For example structuring your code right and so on.
Are there any general rules on how to handle pointers in C++?
I'm currently not allowed to use boost. I have to stick to pure c++ becau... | C++ Memory management | I've learned in College that you always have to free your unused Objects but not how you actually do it. For example structuring your code right and so on.
Are there any general rules on how to handle pointers in C++?
I'm currently not allowed to use boost. I have to stick to pure c++ because the framework I'm using ... | [
"I have worked with the embedded Symbian OS, which had an excellent system in place for this, based entirely on developer conventions.\n\nOnly one object will ever own a pointer. By default this is the creator.\nOwnership can be passed on. To indicate passing of ownership, the object is passed as a pointer in the m... | [
14,
5,
3,
2,
2,
1,
0,
0
] | [] | [] | [
"c++",
"memory",
"pointers"
] | stackoverflow_0000027492_c++_memory_pointers.txt |
Q:
SQLServer Get Results Where Value Is Null
I have an SQL server database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as:
WHERE database.foobar = NULL
and it does not return anything. However, I know that there is at least one result because I... | SQLServer Get Results Where Value Is Null | I have an SQL server database that I am querying and I only want to get the information when a specific row is null. I used a where statement such as:
WHERE database.foobar = NULL
and it does not return anything. However, I know that there is at least one result because I created an instance in the database where 'foo... | [
"Correct syntax is WHERE database.foobar IS NULL. See http://msdn.microsoft.com/en-us/library/ms188795.aspx for more info\n",
"Comparison to NULL will be false every time. You want to use IS NULL instead.\nx = NULL -- always false\nx <> NULL -- always false\n\nx IS NULL -- these do what you want... | [
6,
3,
2,
1
] | [] | [] | [
"oracle",
"sql",
"sql_server"
] | stackoverflow_0000028922_oracle_sql_sql_server.txt |
Q:
Best architecture for handling file system changes?
Here is the scenario:
I'm writing an app that will watch for any changes in a specific directory. This directory will be flooded with thousands of files a minute each with an "almost" unique GUID. The file format is this:
GUID.dat where GUID == xxxxxxxxxxxxxxxxxx... | Best architecture for handling file system changes? | Here is the scenario:
I'm writing an app that will watch for any changes in a specific directory. This directory will be flooded with thousands of files a minute each with an "almost" unique GUID. The file format is this:
GUID.dat where GUID == xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(the internal contents aren't relevant, but ... | [
"A couple of things that I have in my head:\n\nIf the guid is not unique, would it not overwrite the file with the same name, or is the check based on a lookup which does some external action (e.g. check the archive)? (i.e. is this a YAGNI moment?)\nI've used FileSystemWatcher before with pretty good success, can y... | [
3,
2
] | [] | [] | [
".net",
"architecture",
"concurrency",
"filesystemwatcher"
] | stackoverflow_0000028941_.net_architecture_concurrency_filesystemwatcher.txt |
Q:
Why doesn't 'shell' work in VBscript in VS6?
In a macro for Visual Studio 6, I wanted to run an external program, so I typed:
shell("p4 open " + ActiveDocument.FullName)
Which gave me a type mismatch runtime error. What I ended up having to type was this:
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
... | Why doesn't 'shell' work in VBscript in VS6? | In a macro for Visual Studio 6, I wanted to run an external program, so I typed:
shell("p4 open " + ActiveDocument.FullName)
Which gave me a type mismatch runtime error. What I ended up having to type was this:
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
strResult = wshShell.Run("p4 open " + ActiveDocume... | [
"VBScript isn't Visual Basic.\n",
"As lassevk pointed out, VBScript is not Visual Basic.\nI believe the only built in object in VBScript is the WScript object.\nWScript.Echo \"Hello, World!\"\n\nFrom the docs\n\nThe WScript object is the root object of the Windows Script Host\n object model hierarchy. It never n... | [
1,
1,
0
] | [
"VB6 uses & to concatenate strings rather than +, and you'll want to make sure the file name is encased in quotes in case of spaces. Try it like this: \nShell \"p4 open \"\"\" & ActiveDocument.FullName & \"\"\"\"\n\n"
] | [
-1
] | [
"vbscript",
"visual_studio"
] | stackoverflow_0000020272_vbscript_visual_studio.txt |
Q:
How do you use ssh in a shell script?
When I try to use an ssh command in a shell script, the command just sits there. Do you have an example of how to use ssh in a shell script?
A:
Depends on what you want to do, and how you use it. If you just want to execute a command remotely and safely on another machine, ... | How do you use ssh in a shell script? | When I try to use an ssh command in a shell script, the command just sits there. Do you have an example of how to use ssh in a shell script?
| [
"Depends on what you want to do, and how you use it. If you just want to execute a command remotely and safely on another machine, just use\nssh user@host command\n\nfor example\nssh user@host ls\n\nIn order to do this safely you need to either ask the user for the password during runtime, or set up keys on the rem... | [
38,
22,
2,
0
] | [
"The easiest way is using a certificate for the user that runs the script.\nA more complex one implies adding to stdin the password when the shell command asks for it. Expect, perl libraries, show to the user the prompt asking the password (if is interactive, at least), there are a lot of choices.\n"
] | [
-3
] | [
"bash",
"ksh",
"rsh",
"shell",
"ssh"
] | stackoverflow_0000029061_bash_ksh_rsh_shell_ssh.txt |
Q:
What is the difference between a group and match in .NET's RegEx?
What is the difference between a Group and a Match in .NET's RegEx?
A:
A Match is an object that indicates a particular regular expression matched (a portion of) the target text. A Group indicates a portion of a match, if the original regular expr... | What is the difference between a group and match in .NET's RegEx? | What is the difference between a Group and a Match in .NET's RegEx?
| [
"A Match is an object that indicates a particular regular expression matched (a portion of) the target text. A Group indicates a portion of a match, if the original regular expression contained group markers (basically a pattern in parentheses). For example, with the following code:\nstring text = \"One car red car... | [
8,
2
] | [] | [] | [
".net",
"regex"
] | stackoverflow_0000029088_.net_regex.txt |
Q:
Best method of Textfile Parsing in C#?
I want to parse a config file sorta thing, like so:
[KEY:Value]
[SUBKEY:SubValue]
Now I started with a StreamReader, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me.
One restriction is tha... | Best method of Textfile Parsing in C#? | I want to parse a config file sorta thing, like so:
[KEY:Value]
[SUBKEY:SubValue]
Now I started with a StreamReader, converting lines into character arrays, when I figured there's gotta be a better way. So I ask you, humble reader, to help me.
One restriction is that it has to work in a Linux/Mono environment... | [
"\nI considered it, but I'm not going to use XML. I am going to be writing this stuff by hand, and hand editing XML makes my brain hurt. :')\n\nHave you looked at YAML?\nYou get the benefits of XML without all the pain and suffering. It's used extensively in the ruby community for things like config files, pre-prep... | [
12,
4,
1,
1,
0,
0,
0
] | [
"Regardless of the persisted format, using a Regex would be the fastest way of parsing.\nIn ruby it'd probably be a few lines of code.\n\\[KEY:(.*)\\] \n\\[SUBKEY:(.*)\\]\n\nThese two would get you the Value and SubValue in the first group. Check out MSDN on how to match a regex against a string.\nThis is something... | [
-1
] | [
"c#",
"fileparse"
] | stackoverflow_0000013963_c#_fileparse.txt |
Q:
Debugging Web Service with SOAP Packet
I have a web service that I created in C# and a test harness that was provided by my client. Unfortunately my web service doesn't seem to be parsing the objects created by the test harness. I believe the problem lies with serializing the soap packet.
Using TCPTrace I was abl... | Debugging Web Service with SOAP Packet | I have a web service that I created in C# and a test harness that was provided by my client. Unfortunately my web service doesn't seem to be parsing the objects created by the test harness. I believe the problem lies with serializing the soap packet.
Using TCPTrace I was able to get the soap packet passed to the web s... | [
"A somewhat manual process would be to use the Poster add-in for Firefox. There is also a java utility called SoapUI that has some discovery based automated templates that you can then modify and run against your service.\n",
"By default, .Net will not allow you to connect a packet analyzer like TCPTrace or Fidd... | [
2,
1,
0,
0
] | [] | [] | [
"c#",
"soap",
"tcptrace_pocketsoap",
"web_services"
] | stackoverflow_0000028654_c#_soap_tcptrace_pocketsoap_web_services.txt |
Q:
Why does SQL Server work faster when you index a table after filling it?
I have a sproc that puts 750K records into a temp table through a query as one of its first actions. If I create indexes on the temp table before filling it, the item takes about twice as long to run compared to when I index after filling th... | Why does SQL Server work faster when you index a table after filling it? | I have a sproc that puts 750K records into a temp table through a query as one of its first actions. If I create indexes on the temp table before filling it, the item takes about twice as long to run compared to when I index after filling the table. (The index is an integer in a single column, the table being indexed... | [
"If you create a clustered index, it affects the way the data is physically ordered on the disk. It's better to add the index after the fact and let the database engine reorder the rows when it knows how the data is distributed.\nFor example, let's say you needed to build a brick wall with numbered bricks so that t... | [
42,
6,
3,
3,
2,
1,
1,
1,
1
] | [] | [] | [
"indexing",
"performance",
"sql_server"
] | stackoverflow_0000028877_indexing_performance_sql_server.txt |
Q:
Java import/export dependencies
I'm trying to find a way to list the (static) dependency requirements of a jar file, in terms of which symbols are required at run time.
I can see that the methods exported by classes can be listed using "javap", but there doesn't seem to be an opposite facility to list the 'imports... | Java import/export dependencies | I'm trying to find a way to list the (static) dependency requirements of a jar file, in terms of which symbols are required at run time.
I can see that the methods exported by classes can be listed using "javap", but there doesn't seem to be an opposite facility to list the 'imports'. Is it possible to do this?
This wo... | [
"You could use the Outbound dependencies feature of DependencyFinder. You can do that entirely in the GUI, or in command line exporting XML.\n",
"I think you can get that information using JDepend\n",
"There's a tool called JarAnalyzer that will give you the dependencies between the jars in a directory. It'll a... | [
3,
2,
0,
0
] | [] | [] | [
"export",
"import",
"java"
] | stackoverflow_0000028538_export_import_java.txt |
Q:
Multiple form Delphi applications and dialogs
I have a Delphi 7 application that has two views of a document (e.g. a WYSIWYG HTML edit might have a WYSIWYG view and a source view - not my real application). They can be opened in separate windows, or docked into tabs in the main window.
If I open a modal dialog fro... | Multiple form Delphi applications and dialogs | I have a Delphi 7 application that has two views of a document (e.g. a WYSIWYG HTML edit might have a WYSIWYG view and a source view - not my real application). They can be opened in separate windows, or docked into tabs in the main window.
If I open a modal dialog from one of the separate forms, the main form is broug... | [
"I'd use this code... (Basically what Lars said)\ndialog := TDialogForm.Create( parentForm );\ndialog.PopupParent := parentForm;\ndialog.PopupMode := pmExplicit; \ndialog.ShowModal();\n\n",
"I ultimately ended up finding the answer using Google Groups. In a nutshell, all the modal dialogs need to have the follo... | [
5,
3,
1,
0,
0
] | [] | [] | [
"delphi",
"delphi_7"
] | stackoverflow_0000021749_delphi_delphi_7.txt |
Q:
How do I create an xml document in python
Here is my sample code:
from xml.dom.minidom import *
def make_xml():
doc = Document()
node = doc.createElement('foo')
node.innerText = 'bar'
doc.appendChild(node)
return doc
if __name__ == '__main__':
make_xml().writexml(sys.stdout)
when I run the... | How do I create an xml document in python | Here is my sample code:
from xml.dom.minidom import *
def make_xml():
doc = Document()
node = doc.createElement('foo')
node.innerText = 'bar'
doc.appendChild(node)
return doc
if __name__ == '__main__':
make_xml().writexml(sys.stdout)
when I run the above code I get this:
<?xml version="1.0" ?>
... | [
"@Daniel\nThanks for the reply, I also figured out how to do it with the minidom (I'm not sure of the difference between the ElementTree vs the minidom)\n\n\nfrom xml.dom.minidom import *\ndef make_xml():\n doc = Document();\n node = doc.createElement('foo')\n node.appendChild(doc.createTextNode('bar'))\n ... | [
13,
9
] | [] | [] | [
"python",
"xml"
] | stackoverflow_0000029243_python_xml.txt |
Q:
CSharpCodeProvider Compilation Performance
Is CompileAssemblyFromDom faster than CompileAssemblyFromSource?
It should be as it presumably bypasses the compiler front-end.
A:
CompileAssemblyFromDom compiles to a .cs file which is then run through the normal C# compiler.
Example:
using System;
using System.Collect... | CSharpCodeProvider Compilation Performance | Is CompileAssemblyFromDom faster than CompileAssemblyFromSource?
It should be as it presumably bypasses the compiler front-end.
| [
"CompileAssemblyFromDom compiles to a .cs file which is then run through the normal C# compiler.\nExample:\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing Microsoft.CSharp;\nusing System.CodeDom;\nusing System.IO;\nusing System.CodeDom.Compiler;\nusing System.Reflect... | [
9,
0
] | [] | [] | [
"c#",
"compiler_construction",
"performance"
] | stackoverflow_0000004612_c#_compiler_construction_performance.txt |
Q:
Attaching entities to data contexts
In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it?
A little context if it helps...
I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But right after ... | Attaching entities to data contexts | In LINQ to SQL, is it possible to check to see if an entity is already part of the data context before trying to attach it?
A little context if it helps...
I have this code in my global.asax as a helper method. Normally, between requests, this isn't a problem. But right after signing in, this is getting called more t... | [
"I believe there are two methods to do this.\nDataContext.TableName.Contains(Item)\n\nor we use the id field. If the item is inserted in the Database, then it will be assigned a row.\nif(Item.id == 0)\n DataContext.Insert(Item)\nelse\n DataContext.Update(Item)\n\n",
"Rather than attaching to a new data conte... | [
0,
0
] | [] | [] | [
"c#",
"linq_to_sql"
] | stackoverflow_0000024556_c#_linq_to_sql.txt |
Q:
interfacing with stdbool.h C++
In a project I am interfacing between C++ and a C library that uses stdbool.h defined as such.
#ifndef _STDBOOL_H
#define _STDBOOL_H
/* C99 Boolean types for compilers without C99 support */
/* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */
#if !defined(__c... | interfacing with stdbool.h C++ | In a project I am interfacing between C++ and a C library that uses stdbool.h defined as such.
#ifndef _STDBOOL_H
#define _STDBOOL_H
/* C99 Boolean types for compilers without C99 support */
/* http://www.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html */
#if !defined(__cplusplus)
#if !defined(__GNUC__)
/*... | [
"I found the answer to my own question by finding a more compatible implementation of stdbool.h that is compliant with the C99 standard.\n#ifndef _STDBOOL_H\n#define _STDBOOL_H\n\n#include <stdint.h>\n\n/* C99 Boolean types for compilers without C99 support */\n/* http://www.opengroup.org/onlinepubs/009695399/based... | [
11,
2,
0
] | [] | [] | [
"boolean",
"c",
"c++",
"standards"
] | stackoverflow_0000025461_boolean_c_c++_standards.txt |
Q:
Why doesn't **sort** sort the same on every machine?
Using the same sort command with the same input produces different results on different machines. How do I fix that?
A:
The man-page on OS X says:
******* WARNING ******* The locale specified by the environment affects sort order. Set LC_ALL=C to get
the t... | Why doesn't **sort** sort the same on every machine? | Using the same sort command with the same input produces different results on different machines. How do I fix that?
| [
"The man-page on OS X says:\n\n******* WARNING ******* The locale specified by the environment affects sort order. Set LC_ALL=C to get\nthe traditional sort order that uses native byte values.\n\nwhich might explain things.\nIf some of your systems have no locale support, they would default to that locale (C), so... | [
24,
5,
3,
3
] | [] | [] | [
"bash",
"ksh",
"sorting",
"unix"
] | stackoverflow_0000028881_bash_ksh_sorting_unix.txt |
Q:
Rails requires RubyGems >= 0.9.4. Please install RubyGems
I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem)
If I try mongrel_rails start or script/server I get this error:
Rails requires RubyGems >= 0.9.4. Please install RubyGems
When I type gem -v I have version 1.2.0 installed. Any quick... | Rails requires RubyGems >= 0.9.4. Please install RubyGems | I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem)
If I try mongrel_rails start or script/server I get this error:
Rails requires RubyGems >= 0.9.4. Please install RubyGems
When I type gem -v I have version 1.2.0 installed. Any quick tips on what to look at to fix?
| [
"Have you tried reinstalling RubyGems? I had a pretty similar error message until I reuninstalled and for some reason, it installed into a different directory and then the problem went away.\n",
"Just finally found this answer... I was missing a gem, and thrown off by bad error message from Rails...\n"
] | [
1,
0
] | [] | [] | [
"deployment",
"ruby_on_rails",
"rubygems"
] | stackoverflow_0000029382_deployment_ruby_on_rails_rubygems.txt |
Q:
Browser-based game - Which framework to choose?
I'm starting to develop a browser-based game (and by this I mean text-based, no Flash or similar stuff on it) and I'm struggling to decide on which development framework to use.
As far as requirements are concerned, the most important thing that I can think of right ... | Browser-based game - Which framework to choose? | I'm starting to develop a browser-based game (and by this I mean text-based, no Flash or similar stuff on it) and I'm struggling to decide on which development framework to use.
As far as requirements are concerned, the most important thing that I can think of right now is the ability to translate it to several languag... | [
"\nI would reccomend sticking to what you know - PHP is more than capable.\n\nThat's true of course, but:\n\nI don't mind, and I would even like to use this as an excuse, learning some new thing like Python or Ruby.\n\nThen writing a browser game is an excellent opportunity to do this. Learning something new is nev... | [
8,
3,
2,
2
] | [] | [] | [
"frameworks",
"language_agnostic"
] | stackoverflow_0000026041_frameworks_language_agnostic.txt |
Q:
Compact Framework - how do I dynamically create type with no default constructor?
I'm using the .NET CF 3.5. The type I want to create does not have a default constructor so I want to pass a string to an overloaded constructor. How do I do this?
Code:
Assembly a = Assembly.LoadFrom("my.dll");
Type t = a.GetType("t... | Compact Framework - how do I dynamically create type with no default constructor? | I'm using the .NET CF 3.5. The type I want to create does not have a default constructor so I want to pass a string to an overloaded constructor. How do I do this?
Code:
Assembly a = Assembly.LoadFrom("my.dll");
Type t = a.GetType("type info here");
// All ok so far, assembly loads and I can get my type
string s = "Pa... | [
"MyObj o = null;\nAssembly a = Assembly.LoadFrom(\"my.dll\");\nType t = a.GetType(\"type info here\");\n\nConstructorInfo ctor = t.GetConstructor(new Type[] { typeof(string) });\nif(ctor != null)\n o = ctor.Invoke(new object[] { s });\n\n",
"Ok, here's a funky helper method to give you a flexible way to activat... | [
9,
1,
0
] | [] | [] | [
"c#",
"compact_framework",
"reflection"
] | stackoverflow_0000029436_c#_compact_framework_reflection.txt |
Q:
XML => HTML with Hpricot and Rails
I have never worked with web services and rails, and obviously this is something I need to learn.
I have chosen to use hpricot because it looks great.
Anyway, _why's been nice enough to provide the following example on the hpricot website:
#!ruby
require 'hpricot'
require 'ope... | XML => HTML with Hpricot and Rails | I have never worked with web services and rails, and obviously this is something I need to learn.
I have chosen to use hpricot because it looks great.
Anyway, _why's been nice enough to provide the following example on the hpricot website:
#!ruby
require 'hpricot'
require 'open-uri'
# load the RedHanded home page
... | [
"Model, model, model, model, model. Skinny controllers, simple views.\nThe RedHandedHomePage model does the parsing on initialization, then call 'def render' in the controller, set output to an instance variable, and print that in a view.\n",
"I'd probably go for a REST approach and have resources that represent... | [
2,
0
] | [] | [] | [
"hpricot",
"open_uri",
"ruby",
"ruby_on_rails",
"xml"
] | stackoverflow_0000028823_hpricot_open_uri_ruby_ruby_on_rails_xml.txt |
Q:
How to shift an array of bytes by 12-bits
I want to shift the contents of an array of bytes by 12-bit to the left.
For example, starting with this array of type uint8_t shift[10]:
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xBC}
I'd like to shift it to the left by 12-bits resulting in:
{0x00, 0x00, 0x... | How to shift an array of bytes by 12-bits | I want to shift the contents of an array of bytes by 12-bit to the left.
For example, starting with this array of type uint8_t shift[10]:
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0xBC}
I'd like to shift it to the left by 12-bits resulting in:
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xAB, 0xC0, 0x00}
| [
"Hurray for pointers! \nThis code works by looking ahead 12 bits for each byte and copying the proper bits forward. 12 bits is the bottom half (nybble) of the next byte and the top half of 2 bytes away.\nunsigned char length = 10;\nunsigned char data[10] = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0A,0xBC};\nunsigned char... | [
9,
5,
3,
3,
1,
0,
0
] | [] | [] | [
"arrays",
"bit_shift",
"bitset",
"c"
] | stackoverflow_0000029437_arrays_bit_shift_bitset_c.txt |
Q:
How automated is too automated when it comes to deployment?
I have ci, so our staging environment builds itself.
Should I have a script that not only builds production but does all the branching for it as well?
When you have one code base on two different urls with skinning, should they be required to build at onc... | How automated is too automated when it comes to deployment? | I have ci, so our staging environment builds itself.
Should I have a script that not only builds production but does all the branching for it as well?
When you have one code base on two different urls with skinning, should they be required to build at once?
| [
"The only way to be too automated is if you are spending more time fighting with building or fixing automation scripts than you would just doing the job manually. As long as your automation scripts take less time and produce fewer errors than doing the job manually, then automation is great.\nScripts to build and ... | [
8,
3,
2,
1
] | [] | [] | [
"build_automation",
"production"
] | stackoverflow_0000029423_build_automation_production.txt |
Q:
Drag and Drop to a hosted Browser control
I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server.
I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it trig... | Drag and Drop to a hosted Browser control | I have a WinForms program written on .NET 2 which hosts a webbrowser control and renders asp.net pages from a known server.
I would like to be able to drag, say, a tree node from a treeview in my winforms app into a specific location in the hosted web page and have it trigger a javascript event there.
Currently, I can ... | [
"Take a look at the BrowserPlus project at Yahoo.\nIt looks like they have built a toolkit so that you don't have to do the gritty work of writing the browser plugin yourself.\n",
"If you can find out the on screen position of the part of the page you are interested in, you could compare this with the position of... | [
3,
1
] | [] | [] | [
"browser",
"c#"
] | stackoverflow_0000004849_browser_c#.txt |
Q:
Creating a UserControl Programmatically within a repeater?
I have a repeater that is bound to some data.
I bind to the ItemDataBound event, and I am attempting to programmatically create a UserControl:
In a nutshell:
void rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
CCTask task = (CCTas... | Creating a UserControl Programmatically within a repeater? | I have a repeater that is bound to some data.
I bind to the ItemDataBound event, and I am attempting to programmatically create a UserControl:
In a nutshell:
void rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
CCTask task = (CCTask)e.Item.DataItem;
if (task is ExecTask)
{
Exec... | [
"Eh, figured out one way to do it:\nExecTaskControl foo = (ExecTaskControl)LoadControl(\"tasks\\\\ExecTaskControl.ascx\");\n\nIt seems silly to have a file depedancy like that, but maybe thats how UserControls must be done.\n",
"You could consider inverting the problem. That is add the control to the repeaters d... | [
1,
1,
0,
0
] | [] | [] | [
"asp.net",
"user_controls",
"webforms"
] | stackoverflow_0000029067_asp.net_user_controls_webforms.txt |
Q:
Using .NET CodeDOM to declare and initialize a field in one statement
I want to use CodeDOM to both declare and initialize my static field in one statement. How can I do this?
// for example
public static int MyField = 5;
I can seem to figure out how to declare a static field, and I can set its value later, but ... | Using .NET CodeDOM to declare and initialize a field in one statement | I want to use CodeDOM to both declare and initialize my static field in one statement. How can I do this?
// for example
public static int MyField = 5;
I can seem to figure out how to declare a static field, and I can set its value later, but I can't seem to get the above effect.
@lomaxx,
Naw, I just want static. I ... | [
"Once you create your CodeMemberField instance to represent the static field, you can assign the InitExpression property to the expression you want to use to populate the field.\n",
"This post by Omer van Kloeten seems to do what you want. Notice that the output has the line:\nprivate static Foo instance = new Fo... | [
8,
1,
0
] | [] | [] | [
".net",
"codedom"
] | stackoverflow_0000029531_.net_codedom.txt |
Q:
Get current process CPU usage in C
On Windows I can do:
HANDLE hProcess = GetCurrentProcess();
FILETIME ftCreation, ftExit, ftKernel, ftUser;
GetProcessTimes(hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser);
SYSTEMTIME stKernel;
FileTimeToSystemTime(&ftKernel, &stKernel);
SYSTEMTIME stUser;
FileTimeToSystem... | Get current process CPU usage in C | On Windows I can do:
HANDLE hProcess = GetCurrentProcess();
FILETIME ftCreation, ftExit, ftKernel, ftUser;
GetProcessTimes(hProcess, &ftCreation, &ftExit, &ftKernel, &ftUser);
SYSTEMTIME stKernel;
FileTimeToSystemTime(&ftKernel, &stKernel);
SYSTEMTIME stUser;
FileTimeToSystemTime(&ftUser, &stUser);
printf("Time in... | [
"Check getrusage, I think that should solve your problem.\n"
] | [
3
] | [] | [] | [
"c",
"cross_platform",
"process_management",
"unix"
] | stackoverflow_0000029615_c_cross_platform_process_management_unix.txt |
Q:
What does ServerVariables["APPL_MD_PATH"] retrieves the metabase path for the Application for the ISAPI DLL mean?
I've trying to get an ASP.net (v2) app to work in the debugger and keep running into a problem because the value returned by the following code is an empty string:
HttpContext.Current.Request.ServerVar... | What does ServerVariables["APPL_MD_PATH"] retrieves the metabase path for the Application for the ISAPI DLL mean? | I've trying to get an ASP.net (v2) app to work in the debugger and keep running into a problem because the value returned by the following code is an empty string:
HttpContext.Current.Request.ServerVariables["APPL_MD_PATH"].ToLower()
I have found out that this "Retrieves the metabase path for the Application for the I... | [
"Are you running your application locally inside of IIS or inside of the development web server? If it's the latter, then that's probably why: Cassini (the development web server) doesn't do ISAPI, so this value will be empty.\n"
] | [
3
] | [] | [] | [
".net",
".net_2.0",
"asp.net",
"debugging",
"visual_studio"
] | stackoverflow_0000029593_.net_.net_2.0_asp.net_debugging_visual_studio.txt |
Q:
Can I maintain state between calls to a SQL Server UDF?
I have a SQL script that inserts data (via INSERT statements currently numbering in the thousands) One of the columns contains a unique identifier (though not an IDENTITY type, just a plain ol' int) that's actually unique across a few different tables.
I'd l... | Can I maintain state between calls to a SQL Server UDF? | I have a SQL script that inserts data (via INSERT statements currently numbering in the thousands) One of the columns contains a unique identifier (though not an IDENTITY type, just a plain ol' int) that's actually unique across a few different tables.
I'd like to add a scalar function to my script that gets the next ... | [
"If you have 2 users hitting it at the same time they will get the same id. Why didn't you use an id table with an identity instead, insert into that and use that as the unique (which is guaranteed) id, this will also perform much faster\n\n\nsp_getNextID \n\n\nnever ever prefix procs with sp_, this has performance... | [
2,
2,
0
] | [] | [] | [
"sql",
"sql_server",
"sql_server_2005"
] | stackoverflow_0000028280_sql_sql_server_sql_server_2005.txt |
Q:
Set ASP.net executionTimeout in code / "refresh" request
I'll have an ASP.net page that creates some Excel Sheets and sends them to the user. The problem is, sometimes I get Http timeouts, presumably because the Request runs longer than executionTimeout (110 seconds per default).
I just wonder what my options are ... | Set ASP.net executionTimeout in code / "refresh" request | I'll have an ASP.net page that creates some Excel Sheets and sends them to the user. The problem is, sometimes I get Http timeouts, presumably because the Request runs longer than executionTimeout (110 seconds per default).
I just wonder what my options are to prevent this, without wanting to generally increase the exe... | [
"If you want to increase the execution timeout for this one request you can set\nHttpContext.Current.Server.ScriptTimeout\nBut you still may have the problem of the client timing out which you can't reliably solve directly from the server. To get around that you could implement a \"processing\" page (like Rob sugg... | [
16,
1
] | [] | [] | [
"asp.net",
"c#"
] | stackoverflow_0000029686_asp.net_c#.txt |
Q:
Visual Studio 2005 Project options
I have a solution in Visual Studio 2005(professional Edition) which in turn has 8 projects.I am facing a problem that even after i set the Command Arguments in the Project settings of the relevant project, it doesnt accept those command line arguments and it shows argc = 1, inspi... | Visual Studio 2005 Project options | I have a solution in Visual Studio 2005(professional Edition) which in turn has 8 projects.I am facing a problem that even after i set the Command Arguments in the Project settings of the relevant project, it doesnt accept those command line arguments and it shows argc = 1, inspite of me giving more than 1 command argu... | [
"Hmm.. Are you sure the specified project is set as the start project (right click > set as startup project) ??\nOh, and obviously you need to be in the correct configuration mode ^_^\n(Notice it can be changed to debug | build | all configurations )\n",
"Are you sure you are setting the command arguments on the ... | [
1,
0
] | [] | [] | [
"projects",
"visual_studio_2005"
] | stackoverflow_0000029777_projects_visual_studio_2005.txt |
Q:
VS.NET Application Diagrams
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a solution?
If so, did you find it useful?
Did the "automatic implementation" feature work ok?
A:
I used to use it a lot. This designer worked good for stubbing out prototype projects, but ult... | VS.NET Application Diagrams | Have you used VS.NET Architect Edition's Application and System diagrams to start designing a solution?
If so, did you find it useful?
Did the "automatic implementation" feature work ok?
| [
"I used to use it a lot. This designer worked good for stubbing out prototype projects, but ultimately I found myself wasting a lot of time moving the mouse around when I could be typing. It seemed like an awesome idea to be able to print out the class diagrams to show APIs to other developers while I was prototy... | [
2,
0,
0
] | [] | [] | [
".net",
"architecture",
"c#",
"diagram",
"visual_studio"
] | stackoverflow_0000016556_.net_architecture_c#_diagram_visual_studio.txt |
Q:
Opcode cache impact on memory usage
Can anyone tell me what is the memory usage overhead associated with PHP opcode cache?
I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increase. I have a small entry level VPS and memory limits are a concern for me.
A:
Most of ... | Opcode cache impact on memory usage | Can anyone tell me what is the memory usage overhead associated with PHP opcode cache?
I've seen a lot of reviews of opcode cache but all of them only concentrate on the performance increase. I have a small entry level VPS and memory limits are a concern for me.
| [
"Most of the memory overhead will come from the opcode cache size. Each opcode cacher has their own default(e.g. 30MB for APC) which you can change through the config file.\nOther than the cache size, the actual memory overhead of the cacher itself is negligible.\n",
"In todays world: It's neglectible. I think me... | [
5,
0,
0
] | [] | [] | [
"opcode_cache",
"php"
] | stackoverflow_0000029525_opcode_cache_php.txt |
Q:
Java return copy to hide future changes
In Java, say you have a class that wraps an ArrayList (or any collection) of objects.
How would you return one of those objects such that the caller will not see any future changes to the object made in the ArrayList?
i.e. you want to return a deep copy of the object, but ... | Java return copy to hide future changes | In Java, say you have a class that wraps an ArrayList (or any collection) of objects.
How would you return one of those objects such that the caller will not see any future changes to the object made in the ArrayList?
i.e. you want to return a deep copy of the object, but you don't know if it is cloneable.
| [
"Turn that into a spec:\n-that objects need to implement an interface in order to be allowed into the collection\nSomething like ArrayList<ICloneable>()\nThen you can be assured that you always do a deep copy - the interface should have a method that is guaranteed to return a deep copy. \nI think that's the best y... | [
4,
2,
1
] | [] | [] | [
"cloning",
"deep_copy",
"java"
] | stackoverflow_0000029820_cloning_deep_copy_java.txt |
Q:
Windows XP Default Routes
I use my mobile phone for connection to the internet on my laptop, I also have a wired connection to a LAN which doesn't have internet conectivity, it just has our TFS server on it.
The problem is that I can't use the internet (from the phone) with the LAN cable plugged in. Is there a way... | Windows XP Default Routes | I use my mobile phone for connection to the internet on my laptop, I also have a wired connection to a LAN which doesn't have internet conectivity, it just has our TFS server on it.
The problem is that I can't use the internet (from the phone) with the LAN cable plugged in. Is there a way to set the default route to my... | [
"There's many OS specific ways to force routing over specific interfaces. What OS are you using? XP? Vista? *nix?\nThe simplest way is to configure your network card with a static IP and NO GATEWAY, the only gateway (ie. internet access) your laptop will find is then via the mobile.\nThe disadvantage of this method... | [
2,
1
] | [] | [] | [
"networking",
"tcp",
"windows"
] | stackoverflow_0000029782_networking_tcp_windows.txt |
Q:
Printing DOM Changes
What I am trying to do is change the background colour of a table cell <td> and then when a user goes to print the page, the changes are now showing.
I am currently using an unobtrusive script to run the following command on a range of cells:
element.style.backgroundColor = "#f00"
This works ... | Printing DOM Changes | What I am trying to do is change the background colour of a table cell <td> and then when a user goes to print the page, the changes are now showing.
I am currently using an unobtrusive script to run the following command on a range of cells:
element.style.backgroundColor = "#f00"
This works on screen in IE and FF, ho... | [
"Is it not recommended to do this with stylesheets? You can change the media type in the LINK statement in your HTML, so when the page is printed, it will revert to the different style?\n",
"Have you tried hard-coding the values just to see if background-colors are showing on the print-preview at all? I think it ... | [
2,
0
] | [] | [] | [
"browser",
"dom",
"firefox",
"internet_explorer",
"printing"
] | stackoverflow_0000029883_browser_dom_firefox_internet_explorer_printing.txt |
Q:
How to bring in a web app
I run a game and the running is done by hand, I have a few scripts that help me but essentially it's me doing the work. I am at the moment working on web app that will allow the users to input directly some of their game actions and thus save me a lot of work.
The problem is that I'm one ... | How to bring in a web app | I run a game and the running is done by hand, I have a few scripts that help me but essentially it's me doing the work. I am at the moment working on web app that will allow the users to input directly some of their game actions and thus save me a lot of work.
The problem is that I'm one man working on a moderately siz... | [
"This is my general approach to testing/launching.\nHow you test/launch depends mostly on:\n\nWhat your application is.\nWho your users are.\n\nIf you application is a technical application and is geared to the technically-minded, the word \"beta\" won't really scare them - but provide an opportunity to test the pr... | [
2,
1,
1
] | [] | [] | [
"beta",
"launching",
"web_applications"
] | stackoverflow_0000029870_beta_launching_web_applications.txt |
Q:
How would you handle errors when using jQuery.ajax()?
When using jQuery's ajax method to submit form data, what is the best way to handle errors?
This is an example of what a call might look like:
$.ajax({
url: "userCreation.ashx",
data: { u:userName, p:password, e:email },
type: "POST",
beforeSend... | How would you handle errors when using jQuery.ajax()? | When using jQuery's ajax method to submit form data, what is the best way to handle errors?
This is an example of what a call might look like:
$.ajax({
url: "userCreation.ashx",
data: { u:userName, p:password, e:email },
type: "POST",
beforeSend: function(){disableSubmitButton();},
complete: functio... | [
"For debugging, I usually just create an element (in the case below: <div id=\"error\"></div>) on the page and write the XmlHttpRequest to it:\nerror: function (XMLHttpRequest, textStatus, errorThrown) {\n $(\"#error\").html(XMLHttpRequest.status + \"\\n<hr />\" + XMLHttpRequest.responseText);\n}\n\nThen you can... | [
20,
16,
4
] | [] | [] | [
"ajax",
"asp.net",
"jquery"
] | stackoverflow_0000028529_ajax_asp.net_jquery.txt |
Q:
Video Codec startcodes
Does anybody know (or know of a resource that contains) a list of frame start codes for common video formats (MPEG-1/2/4, .wmv, .mov etc.).
For example, an MPEG-1 video frame will (I think) always start with "00 00 01 00".
In essence I'd like to know these so that I could write a program th... | Video Codec startcodes | Does anybody know (or know of a resource that contains) a list of frame start codes for common video formats (MPEG-1/2/4, .wmv, .mov etc.).
For example, an MPEG-1 video frame will (I think) always start with "00 00 01 00".
In essence I'd like to know these so that I could write a program that can automatically find th... | [
"What do you want to achieve?\nIs this a question how video container types are structured?\nSee for example : http://www.daubnet.com/formats/AVI.html\nThat is a description how avi files are structured. Google may help you in finding other container file formats.\nWhen you record a video, it is normally composed o... | [
1
] | [] | [] | [
"codec",
"video"
] | stackoverflow_0000029993_codec_video.txt |
Q:
How do I select an XML-node based on its content?
How can I use XPath to select an XML-node based on its content?
If I e.g. have the following xml and I want to select the <author>-node that contains Ritchie to get the author's full name:
<books>
<book isbn='0131103628'>
<title>The C Programming Langu... | How do I select an XML-node based on its content? | How can I use XPath to select an XML-node based on its content?
If I e.g. have the following xml and I want to select the <author>-node that contains Ritchie to get the author's full name:
<books>
<book isbn='0131103628'>
<title>The C Programming Language</title>
<authors>
<author>Ritch... | [
"/books/book/authors/author[contains(., 'Ritchie')]\n\nor\n//author[contains(., 'Ritchie')]\n\n",
"The XPath for this is: \n/books/book/authors/author[contains(., 'Ritchie')]\n\nIn C# the following code would return \"Ritchie, Dennis M.\":\nxmlDoc.SelectSingleNode(\"/books/book/authors/author[contains(., 'Ritchie... | [
23,
4,
4
] | [] | [] | [
"xml",
"xpath"
] | stackoverflow_0000030018_xml_xpath.txt |
Q:
Use QItemDelegate to show image thumbnails
What's the best way to use QT4's QItemDelegate to show thumbnails for images in a view?
Specifically, how do you stop the item delegate from blocking when generating pixmaps from very large image files (> 500MB)?
Can anyone link to some example code that achieves this? T... | Use QItemDelegate to show image thumbnails | What's the best way to use QT4's QItemDelegate to show thumbnails for images in a view?
Specifically, how do you stop the item delegate from blocking when generating pixmaps from very large image files (> 500MB)?
Can anyone link to some example code that achieves this? Then again, perhaps this isn't the place to look ... | [
"You're doing it wrong if you are generating pixmaps inside any of the delegate methods (paint, draw...).\nTry to generate the thumbnails only once (on worker thread or maybe not even at runtime, if possible) and have the delegate just display them for the appropriate role.\nIf you do it at runtime display a defaul... | [
4
] | [] | [] | [
"c++",
"image",
"qitemdelegate",
"qt",
"thumbnails"
] | stackoverflow_0000024212_c++_image_qitemdelegate_qt_thumbnails.txt |
Q:
How to compare an html entity with jQuery
I have the following html code:
<h3 id="headerid"><span onclick="expandCollapse('headerid')">⇑</span>Header title</h3>
I would like to toggle between up arrow and down arrow each time the user clicks the span tag.
function expandCollapse(id) {
var arrow = $(... | How to compare an html entity with jQuery | I have the following html code:
<h3 id="headerid"><span onclick="expandCollapse('headerid')">⇑</span>Header title</h3>
I would like to toggle between up arrow and down arrow each time the user clicks the span tag.
function expandCollapse(id) {
var arrow = $("#"+id+" span").html(); // I have tried with .t... | [
"When the HTML is parsed, what JQuery sees in the DOM is a UPWARDS DOUBLE ARROW (\"⇑\"), not the entity reference. Thus, in your Javascript code you should test for \"⇑\" or \"\\u21d1\". Also, you need to change what you're switching to:\nfunction expandCollapse(id) {\n var arrow = $(\"#\"+id+\" span\").html();\... | [
17,
3,
1,
1,
0
] | [] | [] | [
"html_entities",
"javascript",
"jquery"
] | stackoverflow_0000030003_html_entities_javascript_jquery.txt |
Q:
Simple programming practice (Fizz Buzz, Print Primes)
I want to practice my skills away from a keyboard (i.e. pen and paper) and I'm after simple practice questions like Fizz Buzz, Print the first N primes.
What are your favourite simple programming questions?
A:
I've been working on http://projecteuler.net/
A:... | Simple programming practice (Fizz Buzz, Print Primes) | I want to practice my skills away from a keyboard (i.e. pen and paper) and I'm after simple practice questions like Fizz Buzz, Print the first N primes.
What are your favourite simple programming questions?
| [
"I've been working on http://projecteuler.net/\n",
"Problem:\nInsert + or - sign anywhere between the digits 123456789 in such a way that the expression evaluates to 100. The condition is that the order of the digits must not be changed.\ne.g.: 1 + 2 + 3 - 4 + 5 + 6 + 78 + 9 = 100\nProgramming Problem:\nWrite a p... | [
12,
6,
5,
3,
1,
1,
1
] | [] | [] | [
"language_agnostic"
] | stackoverflow_0000029995_language_agnostic.txt |
Q:
What is the purpose of the designer files in Visual Studio 2008 Web application projects?
There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.
It looks like VS2008 is creating a .designer. file for every aspx when you right click on... | What is the purpose of the designer files in Visual Studio 2008 Web application projects? | There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.
It looks like VS2008 is creating a .designer. file for every aspx when you right click on a file or the project itself in Solution Explorer and select 'Convert to Web Application.'
Wha... | [
"They hold all the form designer stuff that used to go in the #Region \" Web Form Designer Generated Code \" section of the code. instead of putting it in the .aspx.vb file where people might edit it (mistakenly or not), it's been moved to a separate file, so that you don't have ever look at it.\n",
"What kibbee... | [
5,
1
] | [] | [] | [
"visual_studio_2008",
"web_applications"
] | stackoverflow_0000028481_visual_studio_2008_web_applications.txt |
Q:
DoDragDrop and MouseUp
Is there an easy way to ensure that after a drag-and-drop fails to complete, the MouseUp event isn't eaten up and ignored by the framework?
I have found a blog post describing one mechanism, but it involves a good deal of manual bookkeeping, including status flags, MouseMove events, manual "... | DoDragDrop and MouseUp | Is there an easy way to ensure that after a drag-and-drop fails to complete, the MouseUp event isn't eaten up and ignored by the framework?
I have found a blog post describing one mechanism, but it involves a good deal of manual bookkeeping, including status flags, MouseMove events, manual "mouse leave" checking, etc. ... | [
"I was recently wanting to put Drag and Drop functionality in my project and I hadn't come across this issue, but I was intrigued and really wanted to see if I could come up with a better method than the one described in the page you linked to. I hope I clearly understood everything you wanted to do and overall I ... | [
25
] | [] | [] | [
".net",
"drag_and_drop",
"events",
"winforms"
] | stackoverflow_0000029177_.net_drag_and_drop_events_winforms.txt |
Q:
TFS Lifecycle Management for Build Environment
How would you manage the lifecycle and automated build process when some of the projects (C# .csproj projects) are part of the actual build system?
Example:
A .csproj is a project that uses MSBuild tasks that are implemented in BuildEnv.csproj.
Both projects are part ... | TFS Lifecycle Management for Build Environment | How would you manage the lifecycle and automated build process when some of the projects (C# .csproj projects) are part of the actual build system?
Example:
A .csproj is a project that uses MSBuild tasks that are implemented in BuildEnv.csproj.
Both projects are part of the same product (meaning, BuildEnv.csproj freque... | [
"You must factor this out into two separate \"projects\" otherwise you'll spend ages chasing your tail trying to find out if a broken build is due to changes in the build system or chages in the code being developed.\nPreviously we've factored the two systems out into separate projects in CVS.\nYou want to be able ... | [
2
] | [] | [] | [
"msbuild",
"tfs"
] | stackoverflow_0000030209_msbuild_tfs.txt |
Q:
Ethernet MAC address as activation code for an appliance?
Let's suppose you deploy a network-attached appliances (small form factor PCs) in the field. You want to allow these to call home after being powered on, then be identified and activated by end users.
Our current plan involves the user entering the MAC addr... | Ethernet MAC address as activation code for an appliance? | Let's suppose you deploy a network-attached appliances (small form factor PCs) in the field. You want to allow these to call home after being powered on, then be identified and activated by end users.
Our current plan involves the user entering the MAC address into an activation page on our web site. Later our software... | [
"I don't think that the well-known spoofability of MAC addresses is an issue in this case. I think tweakt is just wanting to use them for initial identification. The device can read its own MAC address, and the installer can (as long as it's printed on a label) read the same number and know, \"OK - this is the box ... | [
3,
2,
1
] | [
"From a security perspective, I know that it is possible to spoof a MAC, though I am not entirely sure how difficult it is or what it entails.\nOtherwise, if the customers don't have easy access to the hardware or the OS, you should be fairly safe doing this... probably best to put a warning sticker on saying that ... | [
-1
] | [
"activation",
"drm",
"ethernet",
"licensing"
] | stackoverflow_0000030145_activation_drm_ethernet_licensing.txt |
Q:
What would be a good, windows and iis (http) based distributed version control system
At my job we make & sell websites. Usually we install our .NET C# based site on a customer's server and maintain and support it remotely. However, every once in a while, for bigger development works and just to make things simple... | What would be a good, windows and iis (http) based distributed version control system | At my job we make & sell websites. Usually we install our .NET C# based site on a customer's server and maintain and support it remotely. However, every once in a while, for bigger development works and just to make things simpler (and faster!), we will copy the site to a local server.
This is great, but has one pain -... | [
"I'd look at either Mercurial or Bazaar. I'm told Git also works on windows, but I suspect the windows port is still a second class port at best.\nYou'll probably need to be able to run python scripts on your webserver to host either of them.\n",
"Maybe not exactly what you request but checkout DeltaCopy which is... | [
2,
0,
0
] | [] | [] | [
"distributed",
"http",
"version_control"
] | stackoverflow_0000029882_distributed_http_version_control.txt |
Q:
Table Scan vs. Add Index - which is quicker?
I have a table with many millions of rows. I need to find all the rows with a specific column value. That column is not in an index, so a table scan results.
But would it be quicker to add an index with the column at the head (prime key following), do the query, then dr... | Table Scan vs. Add Index - which is quicker? | I have a table with many millions of rows. I need to find all the rows with a specific column value. That column is not in an index, so a table scan results.
But would it be quicker to add an index with the column at the head (prime key following), do the query, then drop the index?
I can't add an index permanently as ... | [
"Two questions to think about:\n\nHow many columns could be nominated for the query?\nDoes the data change frequently? A lot of it?\n\nIf you have a small number of candidate columns, and the data doesn't change a lot, then you might want to consider adding a permanent index on any or even all candidate column.\n\"... | [
9,
8,
3,
2,
2,
2,
2,
2
] | [] | [] | [
"database",
"indexing",
"optimization",
"sql"
] | stackoverflow_0000030094_database_indexing_optimization_sql.txt |
Q:
joining latest of various usermetadata tags to user rows
I have a postgres database with a user table (userid, firstname, lastname) and a usermetadata table (userid, code, content, created datetime). I store various information about each user in the usermetadata table by code and keep a full history. so for examp... | joining latest of various usermetadata tags to user rows | I have a postgres database with a user table (userid, firstname, lastname) and a usermetadata table (userid, code, content, created datetime). I store various information about each user in the usermetadata table by code and keep a full history. so for example, a user (userid 15) has the following metadata:
15, 'QHS', ... | [
"This is actually not that hard to do in PostgreSQL because it has the \"DISTINCT ON\" clause in its SELECT syntax (DISTINCT ON isn't standard SQL).\nSELECT DISTINCT ON (code) code, content, createtime\nFROM metatable\nWHERE userid = 15\nORDER BY code, createtime DESC;\n\nThat will limit the returned results to the... | [
4,
1,
0
] | [] | [] | [
"database",
"postgresql"
] | stackoverflow_0000025224_database_postgresql.txt |
Q:
Why stateless session beans are single threaded?
As per my understanding stateless session beans are used to code the business logic. They can not store data in their instance variables because their instance is shared by multiple requests. So they seem to be more like Singleton classes. However the difference is ... | Why stateless session beans are single threaded? | As per my understanding stateless session beans are used to code the business logic. They can not store data in their instance variables because their instance is shared by multiple requests. So they seem to be more like Singleton classes. However the difference is contain creates (or reuses from pool) the separate ins... | [
"The SLSBs are single threaded because of the TX Context, Principal is associated with a bean instance when it is called. These beans are pooled and unless the max pool size is reached are processed in separate threads ( Vendor dependent).\nIf SLSBs were designed thread safe every call would have looked like a serv... | [
5,
4
] | [] | [] | [
"ejb",
"java"
] | stackoverflow_0000029734_ejb_java.txt |
Q:
How to store Application Messages for a .NET Website
I am looking for a method of storing Application Messages, such as
"You have logged in successfully"
"An error has occurred, please call the helpdesk on x100"
"You do not have the authority to reset all system passwords" etc
So that "when" the users decide the... | How to store Application Messages for a .NET Website | I am looking for a method of storing Application Messages, such as
"You have logged in successfully"
"An error has occurred, please call the helpdesk on x100"
"You do not have the authority to reset all system passwords" etc
So that "when" the users decide they don't like the wording of messages I don't have to chang... | [
"In your Web.config, under appSettings, change it to:\n<appSettings file=\"StringKeys.config\">\n\nThen, create your StringKeys.config file and have all your keys in it.\nYou can still use the AppSettings area in the main web.config for any real application related keys.\n",
"\nPut the strings in an xml file and ... | [
6,
3,
0
] | [] | [] | [
"resources",
"vb.net"
] | stackoverflow_0000030321_resources_vb.net.txt |
Q:
NullReferenceException on User Control handle
I have an Asp.NET application (VS2008, Framework 2.0). When I try to set a property on one of the user controls like
myUserControl.SomeProperty = someValue;
I get a NullReferenceException. When I debug, I found out that myUserControl is null. How is it possible that a... | NullReferenceException on User Control handle | I have an Asp.NET application (VS2008, Framework 2.0). When I try to set a property on one of the user controls like
myUserControl.SomeProperty = someValue;
I get a NullReferenceException. When I debug, I found out that myUserControl is null. How is it possible that a user control handle is null? How do I fix this or ... | [
"Where are you trying to access the property? If you are in onInit, the control may not be loaded yet.\n",
"Where exactly in the code are you attempting to do this? It is possible that you are attempting to access the control too early in the page lifecycle and it has not been instantiated yet.\n",
"If you cr... | [
5,
5,
0,
0
] | [] | [] | [
"asp.net",
"user_controls"
] | stackoverflow_0000030286_asp.net_user_controls.txt |
Q:
Using Interop with C#, Excel Save changing original. How to negate this?
The problem: Loading an excel spreadsheet template. Using the Save command with a different filename and then quitting the interop object. This ends up saving the original template file. Not the result that is liked.
public void saveAndExit... | Using Interop with C#, Excel Save changing original. How to negate this? | The problem: Loading an excel spreadsheet template. Using the Save command with a different filename and then quitting the interop object. This ends up saving the original template file. Not the result that is liked.
public void saveAndExit(string filename)
{
excelApplication.Save(filename);
excelAppl... | [
"Excel interop is pretty painful. I dug up an old project I had, did a little fiddling, and I think this is what you're looking for. The other commenters are right, but, at least in my experience, there's a lot more to calling SaveAs() than you'd expect if you've used the same objects (without the interop wrapper... | [
8,
1,
0,
0
] | [] | [] | [
"c#",
"excel"
] | stackoverflow_0000029141_c#_excel.txt |
Q:
MS hotfix delayed delivery
I just requested a hotfix from support.microsoft.com and put in my email address, but I haven't received the email yet. The splash page I got after I requested the hotfix said:
Hotfix Confirmation
We will send these hotfixes to the following e-mail address:
(my correct email address)
... | MS hotfix delayed delivery | I just requested a hotfix from support.microsoft.com and put in my email address, but I haven't received the email yet. The splash page I got after I requested the hotfix said:
Hotfix Confirmation
We will send these hotfixes to the following e-mail address:
(my correct email address)
Usually, our hotfix e-mail is de... | [
"It usually arrives within the first hour. BUt the fact that it reads me@mycompany.com could either because you put it there to protect your privacy (in which case forget about this) or that the system didn't catch your email and they sent it to me@mycompany.com.\nIf the email address was ok and you didn't get it, ... | [
1,
1
] | [] | [] | [
"email",
"hotfix"
] | stackoverflow_0000030297_email_hotfix.txt |
Q:
Why would getcwd() return a different directory than a local pwd?
I'm doing some PHP stuff on an Ubuntu server.
The path I'm working in is /mnt/dev-windows-data/Staging/mbiek/test_list but the PHP call getcwd() is returning /mnt/dev-windows/Staging/mbiek/test_list (notice how it's dev-windows instead of dev-window... | Why would getcwd() return a different directory than a local pwd? | I'm doing some PHP stuff on an Ubuntu server.
The path I'm working in is /mnt/dev-windows-data/Staging/mbiek/test_list but the PHP call getcwd() is returning /mnt/dev-windows/Staging/mbiek/test_list (notice how it's dev-windows instead of dev-windows-data).
There aren't any symbolic links anywhere.
Are there any other... | [
"Which file are you calling the getcwd() in and is that file is included into the one you are running (e.g. running index.php, including startup.php which contains gwtcwd()).\nIs the file you are running in /dev-windows/ or /dev-windows-data/? It works on the file you are actually running.\n\nHere's an example of m... | [
1,
0,
0,
0
] | [] | [] | [
"directory",
"php"
] | stackoverflow_0000030307_directory_php.txt |
Q:
Install-base of Java JRE?
Is there an online resource somewhere that maintains statistics on the install-base of Java including JRE version information? If not, is there any recent report that has some numbers?
I'm particularly interested in Windows users, but all other OS's are welcome too.
A:
I'm not aware of ... | Install-base of Java JRE? | Is there an online resource somewhere that maintains statistics on the install-base of Java including JRE version information? If not, is there any recent report that has some numbers?
I'm particularly interested in Windows users, but all other OS's are welcome too.
| [
"I'm not aware of anyone who keeps track of this publicly on a regular basis (unlike Adobe who pushes it every chance they get). The closest that I could come was this article from last November. Based upon his site, this data could be skewed a bit, but I think we fairly similar numbers as well.\n",
"There is a... | [
1,
1
] | [] | [] | [
"deployment",
"java"
] | stackoverflow_0000030337_deployment_java.txt |
Q:
Making a JavaScript regex equivalent to a PHP regex
After my web form is submitted, a regex will be applied to user input on the server side (via PHP). I'd like to have the identical regex running in real-time on the client side to show the user what the real input will be. This will be pretty much the same as the... | Making a JavaScript regex equivalent to a PHP regex | After my web form is submitted, a regex will be applied to user input on the server side (via PHP). I'd like to have the identical regex running in real-time on the client side to show the user what the real input will be. This will be pretty much the same as the Preview section on the Ask Question pages on Stack Overf... | [
"Hehe this was sort of asked moments ago and Jeff pointed out:\nhttp://www.regular-expressions.info/refflavors.html.\nThere is a comparison of regular expression capabilities across tools and languages.\n",
"If the regular expressions are simple then there should be no issue, as the basics of regular expressions ... | [
12,
3,
1,
1,
0
] | [] | [] | [
"javascript",
"php",
"regex"
] | stackoverflow_0000030121_javascript_php_regex.txt |
Q:
Why can't I connect to my CAS server with Perl's AuthCAS?
I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the AuthCAS Perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my scrip... | Why can't I connect to my CAS server with Perl's AuthCAS? | I'm attempting to use an existing CAS server to authenticate login for a Perl CGI web script and am using the AuthCAS Perl module (v 1.3.1). I can connect to the CAS server to get the service ticket but when I try to connect to validate the ticket my script returns with the following error from the IO::Socket::SSL mod... | [
"As usually happens when I post questions like this, I found the problem. It turns out the Crypt::SSLeay module was not installed or at least not up to date. Of course the error messages didn't give me any clues. Updating it and all the problems go away and things are working fine now.\n"
] | [
3
] | [
"Well, from the module source it looks like that IO::Socket error is coming from get_https2\n[...]\nunless ($ssl_socket) {\n $errors = sprintf \"error %s unable to connect https://%s:%s/\\n\",&IO::Socket::SSL::errstr,$host,$port;\n return undef;\n}\n[...]\n\nwhich is called by callCAS, which is called by vali... | [
-1
] | [
"apache",
"authentication",
"cgi",
"perl",
"ssl"
] | stackoverflow_0000026842_apache_authentication_cgi_perl_ssl.txt |
Q:
Asp.Net Routing: How do I ignore multiple wildcard routes?
I'd like to ignore multiple wildcard routes. With asp.net mvc preview 4, they ship with:
RouteTable.Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
I'd also like to add something like:
RouteTable.Routes.IgnoreRoute("Content/{*pathInfo}");
but that see... | Asp.Net Routing: How do I ignore multiple wildcard routes? | I'd like to ignore multiple wildcard routes. With asp.net mvc preview 4, they ship with:
RouteTable.Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
I'd also like to add something like:
RouteTable.Routes.IgnoreRoute("Content/{*pathInfo}");
but that seems to break some of the helpers that generate urls in my program... | [
"There are two possible solutions here.\n\nAdd a constraint to the ignore route to make sure that only requests that should be ignored would match that route. Kinda kludgy, but it should work.\nRouteTable.Routes.IgnoreRoute(\"{folder}/{*pathInfo}\", new {folder=\"content\"});\n\nWhat is in your content directory? B... | [
15,
5
] | [] | [] | [
"asp.net",
"asp.net_mvc",
"c#",
"routing"
] | stackoverflow_0000030302_asp.net_asp.net_mvc_c#_routing.txt |
Q:
Using MVP - How to use Events Properly for Testing
I've just started using the MVP pattern in the large ASP.NET application that I'm building (re-building actually) and I am having a hard time figuring out how I should be using Events applied to the view.
Say I have 2 drop down lists in a User Control, where one i... | Using MVP - How to use Events Properly for Testing | I've just started using the MVP pattern in the large ASP.NET application that I'm building (re-building actually) and I am having a hard time figuring out how I should be using Events applied to the view.
Say I have 2 drop down lists in a User Control, where one is dependent on the other's value:
<%@ Control Language="... | [
"I don't know if there's a universally preferred pattern. I tend to prefer adding the event to the view interface and having the presenter respond to the view. I described this pattern in more detail here.\n"
] | [
2
] | [] | [] | [
"asp.net",
"design_patterns",
"mvp"
] | stackoverflow_0000030541_asp.net_design_patterns_mvp.txt |
Q:
Parsing XML Elements & Attributes with Perl
So I wrote some perl that would parse results returned from the Amazon Web Services. I am using the XML::Simple package. For the most part, everything worked when I pulled out an element. However, the problem I ran into was when an element had an attribute as well. Th... | Parsing XML Elements & Attributes with Perl | So I wrote some perl that would parse results returned from the Amazon Web Services. I am using the XML::Simple package. For the most part, everything worked when I pulled out an element. However, the problem I ran into was when an element had an attribute as well. Then I get an error that the item is a Hash.
Here... | [
"$item is a hashref that looks like this:\n$item = {\n 'RunningTime' => {'content' => '90', 'Units' => 'minutes'},\n 'ProductGroup' => 'DVD'\n};\n\nTherefore you can get the running time like this:\n$RunningTime = $item->{RunningTime}->{content}\n\n"
] | [
6
] | [] | [] | [
"amazon_web_services",
"perl",
"xml"
] | stackoverflow_0000030454_amazon_web_services_perl_xml.txt |
Q:
Compare Version Identifiers
Here is my code, which takes two version identifiers in the form "1, 5, 0, 4" or "1.5.0.4" and determines which is the newer version.
Suggestions or improvements, please!
/// <summary>
/// Compares two specified version strings and returns an integer that
/// indicates thei... | Compare Version Identifiers | Here is my code, which takes two version identifiers in the form "1, 5, 0, 4" or "1.5.0.4" and determines which is the newer version.
Suggestions or improvements, please!
/// <summary>
/// Compares two specified version strings and returns an integer that
/// indicates their relationship to one another in ... | [
"Use the Version class.\nVersion a = new Version(\"1.0.0.0\");\nVersion b = new Version(\"2.0.0.0\");\n\nConsole.WriteLine(string.Format(\"Newer: {0}\", (a > b) ? \"a\" : \"b\"));\n// prints b\n\n",
"The System.Version class does not support versions with commas in it, so the solution presented by Darren Kopp is ... | [
40,
31,
1,
0
] | [] | [] | [
".net",
"c#",
"compare",
"versions"
] | stackoverflow_0000030494_.net_c#_compare_versions.txt |
Q:
Best way to enumerate all available video codecs on Windows?
I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine.
I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like
Available Decoders
DiVX Ve... | Best way to enumerate all available video codecs on Windows? | I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine.
I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like
Available Decoders
DiVX Version 6.0
XVID
Motion JPEG
CompanyX's MPEG-2 Decoder
Windows Media... | [
"This is best handled by DirectShow.\nDirectShow is currently a part of the platform SDK.\nHRESULT extractFriendlyName( IMoniker* pMk, std::wstring& str )\n{\n assert( pMk != 0 );\n IPropertyBag* pBag = 0;\n HRESULT hr = pMk->BindToStorage(0, 0, IID_IPropertyBag, (void **)&pBag );\n if( FAILED( hr ) || pBag == ... | [
7,
2,
1
] | [] | [] | [
"codec",
"directshow",
"media",
"video"
] | stackoverflow_0000030539_codec_directshow_media_video.txt |
Q:
Trigger without a transaction?
Is it possible to create a trigger that will not be in a transaction?
I want to update data on a linked server with a trigger but due to firewall issues we can't create a distributed transaction between the two servers.
A:
What you probably want is a combination of a queue that co... | Trigger without a transaction? | Is it possible to create a trigger that will not be in a transaction?
I want to update data on a linked server with a trigger but due to firewall issues we can't create a distributed transaction between the two servers.
| [
"What you probably want is a combination of a queue that contains updates for the linked server and a process that reads data from the queue and updates the remote server. The trigger will then insert a message into the queue as part of the normal transaction. This data will be read by the separate process and us... | [
3,
2
] | [] | [] | [
"sql_server",
"triggers",
"tsql"
] | stackoverflow_0000019744_sql_server_triggers_tsql.txt |
Q:
How do I retrieve data sent to the web server in ASP.NET?
What are the ways to retrieve data submitted to the web server from a form in the client HTML in ASP.NET?
A:
You can also search through both the Form and QueryString collections at the same time so that the data will be found regardless of the the reques... | How do I retrieve data sent to the web server in ASP.NET? | What are the ways to retrieve data submitted to the web server from a form in the client HTML in ASP.NET?
| [
"You can also search through both the Form and QueryString collections at the same time so that the data will be found regardless of the the request method.\nvalue = Request(\"formElementID\")\n\n",
"In VB.NET\nFor POST requests:\nvalue = Request.Form(\"formElementID\")\n\nFor GET requests:\nvalue = Request.Query... | [
4,
0
] | [] | [] | [
"asp.net",
"html"
] | stackoverflow_0000030781_asp.net_html.txt |
Q:
How do I create a draggable and resizable JavaScript popup window?
I want to create a draggable and resizable window in JavaScript for cross browser use, but I want to try and avoid using a framework if I can.
Has anyone got a link or some code that I can use?
A:
JQuery would be a good way to go. And with the Jq... | How do I create a draggable and resizable JavaScript popup window? | I want to create a draggable and resizable window in JavaScript for cross browser use, but I want to try and avoid using a framework if I can.
Has anyone got a link or some code that I can use?
| [
"JQuery would be a good way to go. And with the Jquery UI plugins (such as draggable), it's a breeze.. (there's a demo here).\nNot using a framework, to keep it 'pure', seems just a waste of time to me. There's good stuff, that will save you tremendous amounts of time, time better spent in making your application e... | [
2,
2,
1,
0,
0
] | [] | [] | [
"dialog",
"javascript"
] | stackoverflow_0000030706_dialog_javascript.txt |
Q:
Understanding Interfaces
I have class method that returns a list of employees that I can iterate through. What's the best way to return the list? Typically I just return an ArrayList. However, as I understand, interfaces are better suited for this type of action. Which would be the best interface to use? Also, w... | Understanding Interfaces | I have class method that returns a list of employees that I can iterate through. What's the best way to return the list? Typically I just return an ArrayList. However, as I understand, interfaces are better suited for this type of action. Which would be the best interface to use? Also, why is it better to return an i... | [
"Personally, I would use a List<Employee> for creating the list on the backend, and then use IList when you return. When you use interfaces, it gives you the flexability to change the implementation without having to alter who's using your code. If you wanted to stick with an ArrayList, that'd be a non-generic IL... | [
4,
2,
1,
1,
1,
1,
0,
0,
0,
0,
0
] | [] | [] | [
"interface"
] | stackoverflow_0000030763_interface.txt |
Q:
SharePoint SPContext.List in a custom application page
I have a custom SharePoint application page deployed to the _layouts folder. It's a custom "new form" for a custom content type. During my interactions with this page, I will need to add an item to my list. When the page first loads, I can use SPContext.Cur... | SharePoint SPContext.List in a custom application page | I have a custom SharePoint application page deployed to the _layouts folder. It's a custom "new form" for a custom content type. During my interactions with this page, I will need to add an item to my list. When the page first loads, I can use SPContext.Current.List to see the current list I'm working with. But aft... | [
"Generally speaking I try and copy whatever approach the product group has taken when looking to add functionality of my own. In this case they add their own edit/view/add pages via the list definition itself.\nI built a solution that also needed its own custom \"New\" form, not open source unfortunately, though if... | [
2,
2,
0,
0
] | [] | [] | [
"applicationpage",
"sharepoint",
"spcontext"
] | stackoverflow_0000029030_applicationpage_sharepoint_spcontext.txt |
Q:
Summary fields in Crystal Report VS2008
I need to have a summary field in each page of the report and in page 2 and forward the same summary has to appear at the top of the page. Anyone know how to do this?
Ex:
>
> Page 1
>
> Name Value
> a 1
> b 3
> Total 4
>
> Page 2
> Name Value
>... | Summary fields in Crystal Report VS2008 | I need to have a summary field in each page of the report and in page 2 and forward the same summary has to appear at the top of the page. Anyone know how to do this?
Ex:
>
> Page 1
>
> Name Value
> a 1
> b 3
> Total 4
>
> Page 2
> Name Value
> Total Before 4
> c 5
> d ... | [
"Create a new Running Total Field called, for example \"RTotal\". In \"Field to summarize\" select \"Value\", in \"Type of summary\" select \"sum\", under \"Evaluate\" select \"For each record\". You can then drag this field into your report to use as the \"Total\" at the bottom of each page.\nYou cannot use this r... | [
1,
0
] | [] | [] | [
"crystal_reports",
"visual_studio_2008"
] | stackoverflow_0000025938_crystal_reports_visual_studio_2008.txt |
Q:
How should I test a method that populates a list from a DataReader?
So I'm working on some legacy code that's heavy on the manual database operations. I'm trying to maintain some semblance of quality here, so I'm going TDD as much as possible.
The code I'm working on needs to populate, let's say a List<Foo> from a... | How should I test a method that populates a list from a DataReader? | So I'm working on some legacy code that's heavy on the manual database operations. I'm trying to maintain some semblance of quality here, so I'm going TDD as much as possible.
The code I'm working on needs to populate, let's say a List<Foo> from a DataReader that returns all the fields required for a functioning Foo. H... | [
"To make this less tedious, you will need to encapsulate/refactor the mapping between the DataReader and the Object you hold in the list. There is quite of few steps to encapsulate that logic out. If that is the road you want to take, I can post code for you. I am just not sure how practical it would be to post ... | [
1,
1,
0,
0,
0,
0
] | [] | [] | [
"c#",
"mocking",
"tdd",
"unit_testing"
] | stackoverflow_0000029980_c#_mocking_tdd_unit_testing.txt |
Q:
What is the proper virtual directory access permission level required for a SOAP web service?
When setting up a new virtual directory for hosting a SOAP web service in IIS 6.0 on a Server 2003 box I am required to set the access permissions for the virtual directory. The various permissions are to allow/disallow ... | What is the proper virtual directory access permission level required for a SOAP web service? | When setting up a new virtual directory for hosting a SOAP web service in IIS 6.0 on a Server 2003 box I am required to set the access permissions for the virtual directory. The various permissions are to allow/disallow the following:
Read
Run scripts (such as ASP)
Execute (such as ISAPI or CGI)
Write
Browse
The SOA... | [
"Upon further examination, I've come to the conclusion that one assumption I had about needing Read permissions was incorrect.\nSOAP web services only need the \"Run scripts\" permission enabled because the .wsdl apparently comes from the web service in the form of a script execution response. So the minimum requir... | [
4
] | [] | [] | [
"file_permissions",
"soap",
"web_services"
] | stackoverflow_0000030712_file_permissions_soap_web_services.txt |
Q:
Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException)
I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results).
We make use of a .DLL that gets the Hardware ID of the computer. It'... | Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException) | I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results).
We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is This from AzSdk.
In fact, ... | [
"\nUnable to load DLL 'HardwareID.dll':\n Invalid access to memory location.\n (Exception from HRESULT: 0x800703E6)\n\nThe name of DllNotFoundException is confusing you - this isn't a problem with finding or loading the DLL file, the problem is that when the DLL is loaded, it does an illegal memory access which c... | [
4,
2,
1,
0,
0,
0
] | [] | [] | [
".net",
"c#",
"dllnotfoundexception",
"windows_vista"
] | stackoverflow_0000029284_.net_c#_dllnotfoundexception_windows_vista.txt |
Q:
MySQL Results to a File
How do I write the results from a mysql query to file? I just need something quick. Output can be CSV, XML, HTML, etc.
A:
SELECT a,b,a+b
FROM test_table
INTO OUTFILE '/tmp/result.txt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
(the docs show I... | MySQL Results to a File | How do I write the results from a mysql query to file? I just need something quick. Output can be CSV, XML, HTML, etc.
| [
"SELECT a,b,a+b \n FROM test_table\n INTO OUTFILE '/tmp/result.txt'\n FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"'\n LINES TERMINATED BY '\\n'\n\n(the docs show INTO OUTFILE up in the SELECT .. portion which may work as well, but I've never tried it that way)\nhttp://dev.mysql.com/doc/refman/5.0/en/sele... | [
20,
1,
1
] | [] | [] | [
"database",
"mysql"
] | stackoverflow_0000030856_database_mysql.txt |
Q:
Symantec Backup Exec 11d RALUS Communications Error
I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003.
I can browse the target server to create a selection list, and when I do a test run it completes suc... | Symantec Backup Exec 11d RALUS Communications Error | I'm trying to do a file system backup of a RedHat Enterprise Linux v4 server using Symantec Backup Exec 11d (Rev 7170). The backup server is Windows Server 2003.
I can browse the target server to create a selection list, and when I do a test run it completes successfully.
However, when I run a real backup, the job fai... | [
"Sure sounds like firewall issues. Try stopping iptables, and running again. Also, RALUS can dump a log file - which may give some more to go on. \nI use the older UNIX agent myself, which uses port 6101 IIRC - but I believe that the newer client uses tcp/10000 for control and 1024-65535 for transfer.\nLast resort ... | [
1,
0
] | [] | [] | [
"backup",
"backupexec",
"redhat",
"symantec"
] | stackoverflow_0000020912_backup_backupexec_redhat_symantec.txt |
Q:
InputManager on OS X
I was wondering if InputManagers are still part of Leopard and if there is a good example that would show me what are the use of it?
A:
InputManagers are still available on Leopard, except:
they need to be in the Local domain (/Library/InputManagers); you cannot install them per-user any m... | InputManager on OS X | I was wondering if InputManagers are still part of Leopard and if there is a good example that would show me what are the use of it?
| [
"InputManagers are still available on Leopard, except:\n\nthey need to be in the Local domain (/Library/InputManagers); you cannot install them per-user any more,\nthey need to have appropriate privileges,\nin 64-bit, they won't get loaded at all.\n\nThe Leopard AppKit Release Notes have more specific details.\n"
] | [
4
] | [] | [] | [
"cocoa",
"macos"
] | stackoverflow_0000030966_cocoa_macos.txt |
Q:
Limiting traffic to SSL version of page only
We have an external service that is currently accessible via the http (port 80, non-SSL) and https (port 443, SSL) addresses.
What is the best way to limit connections to only the https address? Is it something we can do via IIS or does it have to be done via code.
Addi... | Limiting traffic to SSL version of page only | We have an external service that is currently accessible via the http (port 80, non-SSL) and https (port 443, SSL) addresses.
What is the best way to limit connections to only the https address? Is it something we can do via IIS or does it have to be done via code.
Additional info: Regular ASP.NET web service (.asmx) r... | [
"\nRequire SSL on the application\nIn a custom error page for the 403 redirect the browser to the incoming URL, changing http to https along the way.\n\nNote: Keep port 80 open for this - or there won't be a server to listen for requests to redirect.\n",
"Just to clarify Greg's point 1. IIS Manager > Site propert... | [
5,
3,
0
] | [] | [] | [
"iis",
"ssl",
"web_services"
] | stackoverflow_0000030964_iis_ssl_web_services.txt |
Q:
What's the best way to allow a user to browse for a file in C#?
What's the best way to allow a user to browse for a file in C#?
A:
using (OpenFileDialog dlg = new OpenFileDialog())
{
dlg.Title = "Select a file";
if (dlg.ShowDialog()== DialogResult.OK)
{
//do something with dlg.FileName
... | What's the best way to allow a user to browse for a file in C#? | What's the best way to allow a user to browse for a file in C#?
| [
"using (OpenFileDialog dlg = new OpenFileDialog())\n{\n dlg.Title = \"Select a file\";\n if (dlg.ShowDialog()== DialogResult.OK)\n {\n //do something with dlg.FileName \n }\n}\n\n",
"I would say use the standard \"Open File\" dialog box (OpenFileDialog), this makes it less intimidating for new... | [
16,
1,
1
] | [] | [] | [
"c#"
] | stackoverflow_0000031031_c#.txt |
Q:
querying 2 tables with the same spec for the differences
I recently had to solve this problem and find I've needed this info many times in the past so I thought I would post it. Assuming the following table def, how would you write a query to find all differences between the two?
table def:
CREATE TABLE feed_tbl
... | querying 2 tables with the same spec for the differences | I recently had to solve this problem and find I've needed this info many times in the past so I thought I would post it. Assuming the following table def, how would you write a query to find all differences between the two?
table def:
CREATE TABLE feed_tbl
(
code varchar(15),
name varchar(40),
status char(1),
update c... | [
"UNION will remove duplicates, so just UNION the two together, then search for anything with more than one entry. Given \"code\" as a primary key, you can say:\nedit 0: modified to include differences in the PK field itself\nedit 1: if you use this in real life, be sure to list the actual column names. Dont use d... | [
2,
0,
0
] | [] | [] | [
"sql"
] | stackoverflow_0000030985_sql.txt |
Q:
What does this javascript error mean? Permission denied to call method to Location.toString
This error just started popping up all over our site.
Permission denied to call method to Location.toString
I'm seeing google posts that suggest that this is related to flash and our crossdomain.xml. What caused this to oc... | What does this javascript error mean? Permission denied to call method to Location.toString | This error just started popping up all over our site.
Permission denied to call method to Location.toString
I'm seeing google posts that suggest that this is related to flash and our crossdomain.xml. What caused this to occur and how do you fix?
| [
"Are you using javascript to communicate between frames/iframes which point to different domains? This is not permitted by the JS \"same origin/domain\" security policy. Ie, if you have\n<iframe name=\"foo\" src=\"foo.com/script.js\">\n<iframe name=\"bar\" src=\"bar.com/script.js\">\n\nAnd the script on bar.com tri... | [
9,
2,
0,
0
] | [] | [] | [
"flash",
"javascript"
] | stackoverflow_0000030540_flash_javascript.txt |
Q:
Querying like Linq when you don't have Linq
I have a project that I'm currently working on but it currently only supports the .net framework 2.0. I love linq, but because of the framework version I can't use it. What I want isn't so much the ORM side of things, but the "queryability" (is that even a word?) of Linq... | Querying like Linq when you don't have Linq | I have a project that I'm currently working on but it currently only supports the .net framework 2.0. I love linq, but because of the framework version I can't use it. What I want isn't so much the ORM side of things, but the "queryability" (is that even a word?) of Linq.
So far the closest is llblgen but if there was... | [
"Have a look at this:\nhttp://www.albahari.com/nutshell/linqbridge.html\nLinq is several different things, and I'm not 100% sure which bits you want, but the above might be useful in some way. If you don't already have a book on Linq (I guess you don't), then I found \"Linq In Action\" to be be good.\n",
"You mi... | [
5,
3,
1,
1,
0,
0,
0
] | [] | [] | [
"database",
"linq",
"orm"
] | stackoverflow_0000007652_database_linq_orm.txt |
Q:
Can you use LINQ tools such as SQLMetal with an access database?
I'm creating a small database application to teach myself the following concepts
C# programming
.Net 3.5 framework
WPF
LINQ ORM
I want to use Microsoft Access as the database but I can't seem to find any mention of whether its possible to use SQLMe... | Can you use LINQ tools such as SQLMetal with an access database? | I'm creating a small database application to teach myself the following concepts
C# programming
.Net 3.5 framework
WPF
LINQ ORM
I want to use Microsoft Access as the database but I can't seem to find any mention of whether its possible to use SQLMetal to generate the ORM code from a Microsoft Access database.
Does an... | [
"For an embedded database, you can use SQL Server Compact Edition. Unlike SQL Server Express, it is not compatible with the LINQ to SQL designer, but it is fully compatible with the command-line SQLMetal. It has a few advantages over SQL Express, like to ability to use embedded or run from a file. Microsoft has ... | [
4,
1,
1,
0
] | [] | [] | [
"c#",
"linq_to_sql",
"ms_access"
] | stackoverflow_0000030004_c#_linq_to_sql_ms_access.txt |
Q:
Getting Started with Unit Testing
Unit testing is, roughly speaking, testing bits of your code in isolation with test code. The immediate advantages that come to mind are:
Running the tests becomes automate-able and repeatable
You can test at a much more granular level than point-and-click testing via a GUI
Rytm... | Getting Started with Unit Testing |
Unit testing is, roughly speaking, testing bits of your code in isolation with test code. The immediate advantages that come to mind are:
Running the tests becomes automate-able and repeatable
You can test at a much more granular level than point-and-click testing via a GUI
Rytmis
My question is, what are the curre... | [
"Ok here's some best practices from some one who doesn't unit test as much as he should...cough.\n\nMake sure your tests test one\nthing and one thing only.\nWrite unit tests as you go. Preferably before you write the code you are testing against.\nDo not unit test the GUI. \nSeparate your concerns. \nMinimise the ... | [
22,
14,
3,
3,
1,
0,
0
] | [] | [] | [
"unit_testing"
] | stackoverflow_0000016860_unit_testing.txt |
Q:
Passing around sets of data
A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac.
How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass it around in a L... | Passing around sets of data | A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac.
How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass it around in a List of type custom class. EG if y... | [
"You're on the right track.\nCocoa's collection classes — which all have mutable an immutable variants — are:\n\nNSArray: ordered, can contain an object multiple times\nNSDictionary: unordered, mapping from keys to values, keys are copied\nNSSet: unordered, can contain an object only once\nNSCountedSet: unordered, ... | [
25
] | [] | [] | [
"cocoa",
"macos",
"objective_c",
"sqlite"
] | stackoverflow_0000031237_cocoa_macos_objective_c_sqlite.txt |
Q:
Do you need the .NET 1.0 framework to target the .NET 1.0 framework?
I have a bunch of .NET frameworks installed on my machine.
I know that with the Java JDK, I can use the 6.0 version to target 5.0 and earlier.
Can I do something similar with the .NET framework - target 1.0 and 2.0 with the 3.0 framework?
A:
... | Do you need the .NET 1.0 framework to target the .NET 1.0 framework? | I have a bunch of .NET frameworks installed on my machine.
I know that with the Java JDK, I can use the 6.0 version to target 5.0 and earlier.
Can I do something similar with the .NET framework - target 1.0 and 2.0 with the 3.0 framework?
| [
"Visual Studio 2008 was the first to support targeting older versions of .NET. Unfortunately, it supports only .NET 2 and up.\nIn other words, you'll need .NET framework SDK 1 or 1.1 to do this.\n",
"We use Visual Studio 2008 to maintain a .NET 1.1 WebForms app using MSBee. It required a bit of initial *.csproj/m... | [
2,
2,
1
] | [] | [] | [
".net"
] | stackoverflow_0000031343_.net.txt |