text
stringlengths
8
267k
meta
dict
Q: Add type ahead functionality to a asp.net dropdownlist control How do you add type ahead functionality to an asp.net dropdownlist control? A: More specifically, check out the ListSearch extender. A demo is available here A: look at ajax contol toolkit at www.asp.net
{ "language": "en", "url": "https://stackoverflow.com/questions/284783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a 'START AT' equivalent in MS-SQL? Some databases support commands such as: SELECT TOP 10 START AT 10 * FROM <TABLE> Essentially I need to pull the first 10 records, then the next 10, then the next 10 etc. Maybe there is another way to do this but in the past I've done it like the above for databases that...
{ "language": "en", "url": "https://stackoverflow.com/questions/284784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Php precision with floating point - complex equation = 1 I have the following equation 1 - ((.5 * 0.83333333333333) ^ 2 + (.5 * 0.83333333333333) ^ 2 + (.5 * (1 - 0.83333333333333)) ^ 2 + (.5 * (1 - 0.83333333333333)) ^ 2) In Php5, this results in an answer of 1 as opposed to .63 (on two machines, OSx and Centos)...
{ "language": "en", "url": "https://stackoverflow.com/questions/284786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In MySQL 5.x, is it possible to give permissions based on conditions (not using views)? In a project I'm starting I would like to give privileges to users based on certain conditions, eg (in a certain table): * *can READ all rows *cannot WRITE to rows with id < x, but can WRITE to row >= x *etc... I would lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/284796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: indexing large table in SQL SERVER I have a large table (more than 10 millions records). this table is heavily used for search in the application. So, I had to create indexes on the table. However ,I experience a slow performance when a record is inserted or updated in the table. This is most likely because of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I export a list of databases resident on a given Domino server? I have a Lotus Domino server with a truly astounding number of Domino databases on it, arranged in various folders. Is there some means of exporting a list of all these databases, with their titles and creators' names, in a spreadsheet format o...
{ "language": "en", "url": "https://stackoverflow.com/questions/284821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Trailing variable in a prolog list I'm on a beginner level course in prolog, doing a map colouring problem. Here's my code. col(Colors,Map,Coloring) :- checkMap(Colors,Map,Coloring). checkMap(Colors,[Country1:Country2],Coloring) :- goodColor(Country1:Country2,Coloring,Colors). checkMap(Colors,[Country1:Count...
{ "language": "en", "url": "https://stackoverflow.com/questions/284826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What am I missing to make this piece of Vb code work(VB 2005) For Each line As String In System.IO.File.ReadAllLines("file.txt") 'Do Something' Next and Using f As System.IO.FileStream = System.IO.File.OpenRead("somefile.txt") Using s As System.IO.StreamReader = New System.IO.StreamReader(f) While N...
{ "language": "en", "url": "https://stackoverflow.com/questions/284832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you declare arrays in a c++ header? This is related to some other questions, such as: this, and some of my other questions. In this question, and others, we see we can declare and initialise string arrays in one nice step, for example: const char* const list[] = {"zip", "zam", "bam"}; //from other question T...
{ "language": "en", "url": "https://stackoverflow.com/questions/284833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Css margin-top vs margin-bottom If you have a sequence of block elements and you wanted to place margin in between them. Which do you prefer, margin-top or margin-bottom or both? Why? A: Depends on context. But, generally margin-top is better because you can use :first-child to remove it. Like so: div.block { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Any command line format tool available for java file? We are working on a legacy system (7 years old), with lots of java/jsp files that have never been formatted before, not reader at all. Because we have many old versions, we are afraid that we won't be able to effectively diff unformatted and formatted files anymo...
{ "language": "en", "url": "https://stackoverflow.com/questions/284841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How does WCF Reliable Sessions affect message ordering? One of the things that the Microsoft documentation says about enabling reliable sessions is that the service will be able to process messages in the order that they were received. Does this mean that messages within a single session are processed in order? Or d...
{ "language": "en", "url": "https://stackoverflow.com/questions/284842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .Net or COM Library to read SWF Actionscript I'm looking for a library to read a SWF file and let me parse through its actionscript and header information. Is there anything out there that will work? A: I ended up finding one at: http://sourceforge.net/projects/swfdotnet/ A: I do not know of any libraries (includi...
{ "language": "en", "url": "https://stackoverflow.com/questions/284854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any best practices for Visual Studio Project/Solution Structure? I've seen a lot of different takes on this subject so I figured if there's a preferred way on this. Is there any best practices on how to setup Visual Studio Projects and Solutions in regards to multiple solutions for the same solutions? For e...
{ "language": "en", "url": "https://stackoverflow.com/questions/284856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Simplest possible key/value pair file parsing in .NET My project requires a file where I will store key/value pair data that should be able to be read and modified by the user. I want the program to just expect the keys to be there, and I want to parse them from the file as quickly as possible. I could store them in...
{ "language": "en", "url": "https://stackoverflow.com/questions/284858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can MOSS 32 bit and 64 bit exist in the same farm? I am trying to setup a failover location for MOSS. The current farm is built on 32 bit Windows 2003. The servers ar the failover location are all 64 bit Windows 2008. Is there any way to make these two environments talk and stay in sync? I have considered a "stretch...
{ "language": "en", "url": "https://stackoverflow.com/questions/284860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why does a SolidBrush result in a patterned image? I'm trying to dynamically generate a gif image of a specified size and color in an HttpHandler. For some reason, the image is being generated with a dithered color pattern rather than the solid color I expected the SolidBrush to create. The following code is the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/284867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Write to a log file in ASP.NET I am writing event data to a log file in an asp.net httphandler by using the File.AppendAllText method. I am concerned with what will happen when multiple requests are received simultaneously. Does AppendAllText lock the file it's writing to? A: no, you should have a static lock obje...
{ "language": "en", "url": "https://stackoverflow.com/questions/284868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Multi-client, async sockets in c#, best practices? I am trying to gain a better understanding of tcp/ip sockets in c#, as i want to challenge myself to see if i can create a working MMO infrastructure (game world, map, players, etc) purely for educational purposes as i have no intention of being another one of those...
{ "language": "en", "url": "https://stackoverflow.com/questions/284885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What data access strategy for a large application I am about to embark on a rewrite of a VB6 application in .NET 3.5sp1. The VB6 app is pretty well written and the data layer is completely based on stored procedures. I'd like to go with something automated like Linq2SQL/Entity Framework/NHibernate/SubSonic. Admit...
{ "language": "en", "url": "https://stackoverflow.com/questions/284889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why migrate from IIS6 to IIS7? I have a number of web apps running on several IIS6/Server 2003 boxes. They run well and are happy. They are all asp.net web apps and use .NET 3.5. What, if any, would be valid reasons for contemplating moving the web apps to IIS7/Server 2008? A: IIS7 is rewritten from the ground up w...
{ "language": "en", "url": "https://stackoverflow.com/questions/284895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is nesting constructors (or factory methods) good, or should each do all init work Is it a good idea (from a design POV) to nest constructor calls for overloaded New or Factory style methods? This is mostly for simple constructors, where each overload builds on the previous one. MyClass( arg1 ) { _arg1 = arg...
{ "language": "en", "url": "https://stackoverflow.com/questions/284896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: How do you add an ActionListener onto a JButton in Java private JButton jBtnDrawCircle = new JButton("Circle"); private JButton jBtnDrawSquare = new JButton("Square"); private JButton jBtnDrawTriangle = new JButton("Triangle"); private JButton jBtnSelection = new JButton("Selection"); How do I add action listeners ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: What is the *.vshost.exe.config file? When I compile an application with VS2008 I sometimes end up with 2 identical config files: * **.exe.config **.vshost.exe.config What is the latter one for? A: Here's a blog post that talks about the vshost process and its purpose. http://blogs.msdn.com/dtemp/archive/2004...
{ "language": "en", "url": "https://stackoverflow.com/questions/284904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Easily digestible UI tips for developers What are some key UI design tips that every developer should know? While there are a number of UI resources for developers (for example, Joel Spolsky's User Interface Design for Programmers), I'm interested in more of a bullet list that can be communicated in 1 to 2 pages. I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/284906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Tutorials to start learning Actionscript 3.0? I already know Java, Objective C, C#, and some Python. I want to be able to integrate with XML or a MySQL database for dynamic content. What are some tutorials or online references that would get me up and running with Actionscript 3.0? A: I just learned AS3, and the be...
{ "language": "en", "url": "https://stackoverflow.com/questions/284919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is Dependency Injection possible with a WPF application? I want to start using dependency injection in my WPF application, largely for better unit testability. My app is mostly constructed along the M-V-VM pattern. I'm looking at Autofac for my IoC container, but I don't think that matters too much for this discussi...
{ "language": "en", "url": "https://stackoverflow.com/questions/284921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Where can I find prebuilt Subversion binaries for SGI IRIX? We have a few SGI Onyx 350 and Orgin 350 systems running IRIX 6.5.x that we would like to install Subversion on. One of them will likely be used as a simple repository server running svnserve. The others will only need client installs. The Subversion webp...
{ "language": "en", "url": "https://stackoverflow.com/questions/284922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to separate column values with a datagrid If I were writing my own HTML and placing the values in the table I would use css and style the borders using something like: td{ border-left : solid gray 1px; } A: if you put that css style into your web page, you'll find that your datagrid will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST data getting 'lost' somewhere UPDATE So it turns out internet exploder's stranglehold on "security" to "make up" for being so bad at security was causing my problems. I should have checked that out first haha. Thanks everyone for the input, it has given me ideas on how to optimize my application :D I am writ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i get javac to search child directories of classpath? I have 3 files: /a/A.java /a/aa/AA.java /b/B.java and B.java depends on A.java and AA.java. I basically want javac -classpath /a /b/B.java to work (i.e. have javac search below /a). Is there any way I can do this? A: The short answer is no, that's not ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/284941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS Expression, Adobe Flex, or OpenLaszlo? Anyone have any comparative thoughts on these three technologies? Each addresses a different VM, but how do they compare in capabilities? A: I have no experience with MS Expression or Flex, but have written some comments about my experience with OpenLaszlo in response to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/284945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I find the length of an associative array in ActionScript 3.0? Is there a simple way to retrieve the length of an associative array (implemented as an Object) in ActionScript 3.0? I understand that there are two primary ways of creating associative arrays in AS3: * *Use a Dictionary object; especially hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/284947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Are there any decent compiler web services? Here's the idea: you commit your code to a repository and call a web service (or enter the request through a web app) to have it compiled. The results are then pushed up to a FTP server, S3 bucket, etc. Is there anything like this out there on the public internet? TFS ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/284948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to see what files are locked in Subversion? I finally got my group to switch from SourceSafe to Subversion. Unfortunately, my manager still wants to use exclusive locks on every single file. So I set the svn:needs-lock property on every file and created a pre-commit hook to make sure the prope...
{ "language": "en", "url": "https://stackoverflow.com/questions/284950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How do I write a dispatcher, if my compiler's support for pointers-to-functions is broken? I am working on an embedded application where the device is controlled through a command interface. I mocked the command dispatcher in VC and had it working to my satisfaction; but when I then moved the code over to the embed...
{ "language": "en", "url": "https://stackoverflow.com/questions/284952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sleep() is stalling my program too early. What am I doing wrong? I want to write a small program that should print something like testing CPU... done testing RAM... done and so on. I wrote the following program in C: printf( "testing RAM...\t\t" ); sleep( sleep_time ); printf( "done\n\n" ); printf( "testi...
{ "language": "en", "url": "https://stackoverflow.com/questions/284962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Vb6 Performing an operation based on each line of a text file I have a text file with a series of commands each one is on a diferent line what I need to do is go through the text file line by line and for each line perform a set of operations. How would I loop through line by line? Example: Text file contains: john...
{ "language": "en", "url": "https://stackoverflow.com/questions/284971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Query without nested queries Let's say we have these tables; table user: - id - username - email table user2group: - userid - groupid table group: - id - groupname How do I make one query that returns all users, and the groups they belong to (as an array in the resultset or something..) A: select u.id, u.userna...
{ "language": "en", "url": "https://stackoverflow.com/questions/284984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Add property to existing VBA class I would like to do something like add a nice-to-Excel-functions Name property to the WorkBook class. Is there a good way to do this? More detailed problem: In VBA you can assign a formula to a range in an Excel worksheet. I want to do so, and I want my formula to refer to a second ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C MySQL client library behaviour I have a client application that connects to the MySQL database 4 server using stock libraries on SuSE SLES 9. However, at times when processing a particular reset set from the server, iterating throw the results does not allow me to process all the results that is in the database. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/284989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What image-editor or library produces an easy-to-use 2D vector format describing areas / masks? Step * *Administrative / data entry worker opens ?, loads raster image, and using a 'lasso-like' tool (a la Photoshop 'magnetic' if possible) specifies areas of interest / masks. *? *Profit! (i.e., application opens...
{ "language": "en", "url": "https://stackoverflow.com/questions/284994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the fastest sort algorithm for 0-65535 integers? I have to sort a number of integers, which can have values between 30.000.000 and 350.000.000. There will be between 0 and 65.535 integers, with the average count being 20.000. RAM usage is irrelevant and speed only is important. Later on i will also have to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/285005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do you read a byte array from a DataRow in C#? I have a DataSet with a DataTable that correctly fills a single DataRow through a TableAdapter. I am able to pull data from the DataRow with code like this: dataFileID = (int)this.dataFileDataRow["DataFileID"]; dataFileName = (string)this.dataFileDataRow["DataFileNa...
{ "language": "en", "url": "https://stackoverflow.com/questions/285010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to prevent a background process from being stopped after closing SSH client in Linux I'm working on a Linux machine through SSH (Putty). I need to leave a process running during the night, so I thought I could do that by starting the process in background (with an ampersand at the end of the command) and redirec...
{ "language": "en", "url": "https://stackoverflow.com/questions/285015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "306" }
Q: How to get non-current thread's stacktrace? It is possible to get stacktrace using System.Diagnostics.StackTrace, but thread has to be suspended. Suspend and Resume function are obsolete, so I expect that better way exists. A: It looks like this was a supported operation in the past, but unfortunately, Microsoft ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/285031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: Server application design methodologies During undergrad i opted to take a network programming course using the POSIX sockets for linux. As a reference we used the book Internetworking using TCP/IP (comer and stevens). 2008 its a pretty dated and still applicatable texts which takes one through several server desig...
{ "language": "en", "url": "https://stackoverflow.com/questions/285035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I copy an image and text to the clipboard as one object? I'm trying to copy both an image from a file and text from a file to the clipboard. My intention is to then open a word document or an outlook email and paste both the text and the image in one standard paste command (CTRL-V for example). I can do both ...
{ "language": "en", "url": "https://stackoverflow.com/questions/285042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do you programmatically set an attribute? Suppose I have a python object x and a string s, how do I set the attribute s on x? So: >>> x = SomeObject() >>> attr = 'myAttr' >>> # magic goes here >>> x.myAttr 'magic' What's the magic? The goal of this, incidentally, is to cache calls to x.__getattr__(). A: Usual...
{ "language": "en", "url": "https://stackoverflow.com/questions/285061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "264" }
Q: OpenGL: Multiple user vector by modelview matrix? Is there a way to make OpenGL transform a general vector I give it with the current modelview matrix and get the result back? The obvious way is to query the modelview matrix and do the multiplication myself but I am almost sure there should be a way to make OpenGL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/285068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Radio Buttons getting deselected when dragging item using jQuery Sortables I'm using the jQuery UI sortables plugin to allow re-ordering of some list items. Inside each list item, I've got a couple of radio buttons which allow the item to be enabled or disabled. When the item is dragged, both radio buttons get dese...
{ "language": "en", "url": "https://stackoverflow.com/questions/285074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Log4j Logging to a Shared Log File Is there a way to write log4j logging events to a log file that is also being written to by other applications. The other applications could be non-java applications. What are the drawbacks? Locking issues? Formatting? A: Log4j has a SocketAppender, which will send events to a ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/285081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it possible to get calling page name inside a jsp 2.0 custom tag? I'm writing a custom JSP tag using the JSP 2 tag files. Inside my tag I would like to know which page called the tag in order to construct URLs. Is this possible with out passing it through an attribute? A: Turns out that the request object actual...
{ "language": "en", "url": "https://stackoverflow.com/questions/285083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LINQ to Objects: Query with multiple LIKE conditions (OR or AND) possible? We have a form that allows a user to filter a list with by typing in a textbox. We need to filter the list based on two fields. The FundName and the CompanyName. When the form loads I put the initial LINQ to SQL results into a list so that fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/285087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Calculating date for a day of the week Given a week-day (1-7), how can I calculate what that week-day's last date was? Example: Today is Wednesday, 2008/11/12, and I want to know what last Friday's date was. A: In general? See Calendrical Calculations. In this narrower case of within the previous week? Find the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/285095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to replicate db into other systems What is the best way to replicate the update stream to a large (6TB) oracle db into another non-DBMS system? I don't need to "bulk load" the oracle db, but merely want to flow all updates into another home-grown system in near realtime (10s latency or less). Updates happ...
{ "language": "en", "url": "https://stackoverflow.com/questions/285098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sql 2008 not allowing me to make changes to a table For some reason sql server 2008 is not allowing me to add columns to an existing table. The table is empty btw. Is there a setting that prevents modifying tables in sql 2008? A: Yes, you can change a setting to stop this. Details here. A: When you use SSMS to des...
{ "language": "en", "url": "https://stackoverflow.com/questions/285104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Equivalent of Directory.CreateDirectory() in VB6 Trying to create several layers of folders at once C:\pie\applepie\recipies\ without using several different commands, is there an easy way similar to Directory.CreateDirectory() A: Here's some code I used in one of my projects. It requires a reference be added to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/285107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to add a button to a compact framework DataGrid? Is it possible to add a button to a column in the DataGrid for the compact framework? So far the only thing I can find is you can add textbox and that's it. What would be a good alternative to a DataGrid that can allow other controls? A: You can use the DataGri...
{ "language": "en", "url": "https://stackoverflow.com/questions/285111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Upload large files in .NET I've done a good bit of research to find an upload component for .NET that I can use to upload large files, has a progress bar, and can resume the upload of large files. I've come across some components like AjaxUploader, SlickUpload, and PowUpload, to name a few. Each of these options c...
{ "language": "en", "url": "https://stackoverflow.com/questions/285120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Using check box / radio button / progress bar in Flex 3 modules In my project environment I have 2 projects. MyApp & MyModule MyApp loads MyModule. When it loads it attempts to get a class of type DisplayObject and add it to a container of itself. The problem comes when I try to use a check box / radio button / prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/285125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to interface C# and Java? Hypothetically, you have two products, one written in Java, the other in C#. You like the Java based backend (non-user visible portion), but would like to use the C# (WPF) frontend. What is the best way to go about interfacing them? Note that the backend must be able t...
{ "language": "en", "url": "https://stackoverflow.com/questions/285126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: With what kind of IDE (if any) you build python GUI projects? Is there any IDE (like VS) with drag and drop support for building python GUI, connecting to dbs etc? Eventhough I am an emacs guy, I find it much easier to create GUI with VS. A: The short answer is "no". There is not a swiss-army-knife like IDE that i...
{ "language": "en", "url": "https://stackoverflow.com/questions/285132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Show 'ghosted' example text in a field, and then clear it onblur I'm trying to duplicate the effect used in the Firefox search box where, if the search field does not have focus ( the user has not clicked inside of it ), it just says Google in gray text. Then, when the user clicks in the box, the text is removed and...
{ "language": "en", "url": "https://stackoverflow.com/questions/285139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Struts tiles - is each tile asynchronous? I had experience with struts, and briefly experimented with tiles. I know that within a layout each tile is a separate jsp page. Suppose I hit a button on each of four tiles, and each tile was (indirectly) calling a different web service. Would the tiles refresh asynchro...
{ "language": "en", "url": "https://stackoverflow.com/questions/285142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is Java's answer to WPF? I'm mostly a .Net person at the moment, but I've been playing with Java some lately-- exploring what's out there. Now I'm looking for the Java equivalent for WPF. I know I could find an OpenGL library or two out there, but that's not really as rich or simple as the WPF system. A: I th...
{ "language": "en", "url": "https://stackoverflow.com/questions/285147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Where should my non-model/non-controller code live? I've written a rails app that follows the regular directory structure (model code in models, controller code in controllers). But I'm now working on a new feature and for that I have written some (what I would call) "service" code. The new feature is to import some...
{ "language": "en", "url": "https://stackoverflow.com/questions/285148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Accessing options in jQuery Datapicker How can I access options that I set in a jQuery Datepicker? $("#testDatePicker").datepicker({ minDate: new Date(2005, 0, 26), showOn: 'button', buttonImage: 'js/themes/default/images/calendar.gif', buttonImageOnly: true }); var minDate = $("#testDatePicker")...
{ "language": "en", "url": "https://stackoverflow.com/questions/285154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I query for the state of a session variable in PL/SQL? I see that in PL/SQL it is possible to set the session state of a particular variable for the remainder of the session's lifetime. For instance: ALTER SESSION SET CURRENT_SCHEMA=<schema> How do I query for the current state of this schema so I can rever...
{ "language": "en", "url": "https://stackoverflow.com/questions/285162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open a .BAS DTS Package in SQL 2000? You can save a SQL Server 2000 DTS package as a VB .BAS file. Is is possible to open a .BAS file in SQL Server Enterprise Manager (or some other way) to add the DTS package to the server? Initally, it appears that SQL Server only lets you import .DTS files. A: Actually, it is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/285170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the most Word-like ASP.NET custom control that you can buy? We are looking to implement a rich-text box in an ASP.NET application and our requirements are specific to using the "Track Changes" features of Microsoft Word. The closest thing we found in the RadEditor by Telerik. This is a nice control that ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/285171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I call one constructor from another in Java? Is it possible to call a constructor from another (within the same class, not from a subclass)? If yes how? And what could be the best way to call another constructor (if there are several ways to do it)? A: I will tell you an easy way There are two types of const...
{ "language": "en", "url": "https://stackoverflow.com/questions/285177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2612" }
Q: Quickest way to display results from a table in .NET 2.0/3.5 I have a database table (sql server 2008) that I want to view data for, what is the quickest way of displaying this data? (if it could have paging that would be perfect). Would it be a gridview or ? query: select * from testData A: if you're using .NET 3....
{ "language": "en", "url": "https://stackoverflow.com/questions/285197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can Boost Spirit be used to parse byte stream data? Can Spirit (part of Boost C++ library) be used to parse out binary data coming from a stream? For example, can it be used to parse data coming from a socket into structures, bytes, and individual bit flags? Thanks! A: Spirit2, just released, has facilities for p...
{ "language": "en", "url": "https://stackoverflow.com/questions/285200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Validating Email Address Component or Service - .NET We are looking to improve our marketing email list by preventing fake emails from entering in the first place. We want to confirm that an email address exists (and that there is actually a mailbox for that email address). Does anyone know of any services or com...
{ "language": "en", "url": "https://stackoverflow.com/questions/285205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How good is Mootools backward compatibility? A coworker of mine has had issue with Mootools being backward compatible and I was wondering if anyone else had noticed this? He said that his main problem was when trying to using the drag and drop functionality offered in an older version. I never really looked into it...
{ "language": "en", "url": "https://stackoverflow.com/questions/285211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Internet Explorer control uses IE7's own settings for ClearType and font size, can I override them? I'm embedding an IE control into my C++ application. The problem is that although system-wide, ClearType is disabled, IE7 has its own separate setting, and unless I specifically disable that too, text inside the IE co...
{ "language": "en", "url": "https://stackoverflow.com/questions/285214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Python tools can I use to interface with a website's API? Let's say I wanted to make a python script interface with a site like Twitter. What would I use to do that? I'm used to using curl/wget from bash, but Python seems to be much nicer to use. What's the equivalent? (This isn't Python run from a webserver, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/285226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SQL Server 2000: Server memory / CPU parameters in Query Analyzer SQL Server 2000: Is there a way to find out server memory / CPU parameters in Query Analyzer? A: select * from sysperfinfo it has everything in there that perfmon has. plus make sure you check out all the sql configuration parameters by running sp_co...
{ "language": "en", "url": "https://stackoverflow.com/questions/285227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert UTF-8 to US-Ascii in Java We have a system where customers, mainly European enter texts (in UTF-8) that has to be distributed to different systems, most of them accepting UTF-8, but now we must also distribute the texts to a US system which only accepts US-Ascii 7-bit So now we'll need to translate al...
{ "language": "en", "url": "https://stackoverflow.com/questions/285228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Does a Javascriptable FTP Upload Java/Flash Applet exist? To be able to upload large files from a HTML page to a FTP server, I am looking for a Java/Flash FTP upload applet. I really like the way dhtmlxVault works, but I need it to upload to a FTP server instead of a HTTP file upload. It would be really nice if the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/285237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I alter the signature of a member function for a derived class in Java Firstly I'm extending an existing class structure and cannot alter the original, with that caveat: I would like to do this: class a { int val; ... // usual constructor, etc... public int displayAlteredValue(int inp) { r...
{ "language": "en", "url": "https://stackoverflow.com/questions/285238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Automatically creating a tag in subversion I maintain the build system at my company, which is currently using CVS. This build system is used across multiple projects and multiple CVS repositories. Whenever we have a release milestone, we create a tag. In CVS, this is easy: $ cvs tag TAG_NAME That command works r...
{ "language": "en", "url": "https://stackoverflow.com/questions/285251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Convert JAL to VBScript 24x7 from SoftTree Technologies can use both JAL and VBScript for scripting. Does anyone know if there is a converter to change JAL into VBScript? A: There does not seem to be such a thing. You can convert JAL to Javascript, but not JAL to VBScript.
{ "language": "en", "url": "https://stackoverflow.com/questions/285253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 32bit Application Pool on x64 Windows 2008 server What are differences between enabling and disabling "Enable 32-Bit applications" in websites application pools under IIS7 on x64 machine? Mostly I'm thinking about memory usage. Thanks in advance A: I believe the current "trend" for hosting like this is to have each...
{ "language": "en", "url": "https://stackoverflow.com/questions/285269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fatal error: Unsupported operand types in ..? The line where this error was called from is this: $celkova_suma=mysql_result($c_res, 0, 0)+mysql_result($d_res, 0, 0)-$zlava_suma+$arr[$_POST['sp_platby']]; Can someone tell me what I should be looking for?? A: Use `var_dump() on each of the parts of your equatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/285271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SAP HR Relationship models SAP HR apparently has several models for describing the relationship between Position (S), Job (C), Organization (O) and Person (P) objects that the Organizational Management (OM) module is used to maintain. P (Person) objects are usually Holders of Positions (S). There is the S-S relation...
{ "language": "en", "url": "https://stackoverflow.com/questions/285276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Where to store program settings instead of HKEY_LOCAL_MACHINE? I have some program settings that are currently stored in HKEY_LOCAL_MACHINE. Due to Vista and locked down users, some users don't have permission to HKEY_LOCAL_MACHINE, and those values don't really belong to HKEY_LOCAL_USER either (it has to be the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/285277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Merging data with unknown ordering function I have a number of string arrays. The string in every array are ordered the same way, according the same criteria. However, some string may be missing from some arrays, and there may be no array that has a complete set of strings. Moreover, the criteria used to compare the...
{ "language": "en", "url": "https://stackoverflow.com/questions/285286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Exit codes in Python I got a message saying script xyz.py returned exit code 0. What does this mean? What do the exit codes in Python mean? How many are there? Which ones are important? A: If you would like to portably use the standard POSIX exit codes, see the exitstatus package on PyPI. Install the package: $ pip...
{ "language": "en", "url": "https://stackoverflow.com/questions/285289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "314" }
Q: Trying to send an HTTP request over sockets I'm having trouble sending out a simple HTTP request using Actionscript 3's Socket() object. My onConnect listener is below: function sConnect(e:Event):void { trace('connected'); s.writeUTFBytes('GET /outernet/client/rss/reddit-feeds HTTP/1.1\r\n'); s.writeUTFB...
{ "language": "en", "url": "https://stackoverflow.com/questions/285290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extension methods usage - Isn't this bad design? I have just started to look at .NET 3.5 so please forgive me if this type of question have been asked before. I am struggling with a decent usage for extension methods, in that I have just downloaded suteki shop an MVC ecommerce offering. In this project there is a pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/285292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: should nearly unique fields have indexes I have a field in a database that is nearly unique: 98% of the time the values will be unique, but it may have a few duplicates. I won't be doing many searches on this field; say twice a month. The table currently has ~5000 records and will gain about 150 per month. Should th...
{ "language": "en", "url": "https://stackoverflow.com/questions/285313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing a parameter/object to a ruby unit/test before running it using TestRunner I'm building a tool that automates a process then runs some tests on it's own results then goes to do some other stuff. In trying to clean up my code I have created a separate file that just has the test cases class. Now before I can r...
{ "language": "en", "url": "https://stackoverflow.com/questions/285314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Converting Plain Text to Clickable link or Link to PlainText in asp.net I need your advice with converting plain text to an URL. The scenario will be this: The user will select some entry and then click a "convert to link" button. The entry text the user selected will convert to (link: selected_text). I do it with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/285320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice: How to expose a read-only ICollection I have an ICollection<T> called foos in my class which I want to expose as read-only (see this question). I see that the interface defines a property .IsReadOnly, which seems appropriate... My question is this: how do I make it obvious to the consumer of the class...
{ "language": "en", "url": "https://stackoverflow.com/questions/285323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Adding Security Message to RHEL 5 Login Screen What are the steps to configure the login screen of Red Hat Enterprise Linux 5 to display a large paragraph of text? Background Information: The text is a security warning required by the company I work for to be presented to all users prior to them logging in. They mus...
{ "language": "en", "url": "https://stackoverflow.com/questions/285325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Question Mark in Insert Statement I've got an SQL query that looks like this: INSERT INTO DB..incident ( incident_number --nvarchar(10) ) VALUES ( N'I?' ) What does the ? do in the value statement? EDIT:: Turns out there's some funny business via triggers and custom datatypes that occur on insert (...
{ "language": "en", "url": "https://stackoverflow.com/questions/285343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: The underlying connection was closed: The connection was closed unexpectedly This exception is consistently thrown on a SOAP Request which takes almost three minutes to receive and is 2.25 megs in size. When scouring the web I find all sorts of posts which all seem to be about setting headers on the Request, some w...
{ "language": "en", "url": "https://stackoverflow.com/questions/285345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: VB6 Combo box events I have a form in VB6 with two combo boxes (cboCustomer and cboItemNumber). When someone selects a value from cboCustomer, I want to populate cboItemNumber with a list of item numbers relevent to the customer selected. What event does VB6 offer that I can use? I've tried _Change and _LostFocus an...
{ "language": "en", "url": "https://stackoverflow.com/questions/285359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }