text
stringlengths
8
267k
meta
dict
Q: what's the best way to aid your tester? my company is small with only one full time tester, and mostly we're doing web apps. so i'm glad that we have tester as i think i would probably be bias or lazy when debugging my own code... and our tester is actually located in another country, so usually we communicate via I...
{ "language": "en", "url": "https://stackoverflow.com/questions/358291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is Text flowing inside of an image with float: left; not wrapping? I have the following HTML <div> <img id="image1" src="http://valleywag.com/assets/resources/2008/03/BlackGoogleLogo.jpg" alt="Why doesn't this float correcly?" style="border-width: 0px; float: left;" /> <div id...
{ "language": "en", "url": "https://stackoverflow.com/questions/358297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Good freeware for flowcharts on Windows? I have to present some 'process' or 'flow' of the application at work on friday. I was hoping to prepare a flow chart before I begin the hands on demo. Any suggestions for freeware sw to make simple flowcharts on Windows? A: I used draw.io and it is very good. A: Use Grap...
{ "language": "en", "url": "https://stackoverflow.com/questions/358304", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Shuffle a list (with duplicates) to avoid identical elements being next to each other I am wondering if there is a "best" way to shuffle a list of elements that contains duplicates such that the case where array[i] == array[i+1] is avoided as much as possible. I am working on a weighted advertising display (I can ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/358307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use SQL Server Compact Edition (CE) from Java? I want to access Microsoft SQL Server Compact Edition databases from Java. How can I do that? I searched for JDBC driver for SQLCE, but I didn't find any. A: According to a newsgroup post sent this Tuesday (2008-12-09) by Jimmy Wu@Mircrosoft: The Microsoft SQL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Canonical vs. non-canonical terminal input I am studying for an exam and I am confused as to how canonical vs. non-canonical input/output works in Unix (e.g., curses). I understand that there is a buffer to which "line disciplines" are applied for canonical input. Does this mean that the buffer is bypassed for non...
{ "language": "en", "url": "https://stackoverflow.com/questions/358342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Why doesn't this Javascript (jQuery) go into an infinite loop? I was reading the great article about binding and unbinding events (because I am a js beginner using jQuery) on Karl Swedberg's blog, and I became totally puzzled at this part of the code (simplified for brevity): function addItemUnbind() { $Ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/358344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hanging Linq query with Guid.Empty in the where expression I'm having an issue with the following code: private void DataPortal_Fetch(TaskCriteria criteria) { using (var ctx = ContextManager<Gimli.Data.GimliDataContext> .GetManager(Database.ApplicationConnection, false)) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/358345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Confirming from a JUnit test that a FileReader was closed properly I'm writing some Java code that uses a FileReader to load data from a few input files. I'm using TDD pretty heavily, and I'd like to add some tests that ensure that I'm cleaning up properly by calling close() on the reader when I'm done with it. Unfo...
{ "language": "en", "url": "https://stackoverflow.com/questions/358347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Alternate background colors for list items I have a list, and each item is linked, is there a way I can alternate the background colors for each item? <ul> <li><a href="link">Link 1</a></li> <li><a href="link">Link 2</a></li> <li><a href="link">Link 3</a></li> <li><a href="link">Link 4</a></li> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/358350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: Best project format for VS2005 + SharePoint deployment? First, let me use one sentence to let out some frustration: My god, developing for SharePoint is a f-ing mess! OK, sorry, let me focus in on 1 specific scenario. I've developed (VS2005) some functionality that works if I deploy it as a DLL on a SharePoint (MO...
{ "language": "en", "url": "https://stackoverflow.com/questions/358367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Replacement for kicker.bundle in SystemConfiguration in OS X Leopard I'm trying to find the replacement for kicker.bundle that was found in /System/Library/SystemConfiguration in OS X pre 10.5 (Leopard). I can't seem to find any sort of official documentation on the matter. Does anyone know what the replacement is? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sharepoint site takes a while to load first thing in the morning Our team has built a site using Sharepoint and a few custom webparts. We've noticed that the site takes a while to load when first accessing the site in the morning. Subsequent accesses are fine. We suspect that Sharepoint is reindexing its lists, et...
{ "language": "en", "url": "https://stackoverflow.com/questions/358377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Where did Open Table go in SQL Server 2008? As of SQL Server 2005, you used to be able to open a flat file in SQL Management Studio off the right click menu for any database table. Once opened, you could add or update records right there in the grid. Now that SQL Server 2008 is out, Microsoft has hidden that feature...
{ "language": "en", "url": "https://stackoverflow.com/questions/358382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: ASP.NET - Recycling App Pools indicative of Larger problem? Is having to recycle an App-Pool in ASP.NET indicative of a larger problem in the Web-App? Or is this just 'the way things are' for ASP.NET and IIS? Edit: Since one of the errors is an 'OutOfMemory' exception, what would be your suggestions for courses of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to get the image mouse click location with PHP? Basically what the title says... I need to have an image that when clicked, I call script.php for instance and in that PHP script file, I get the image coordinates where the mouse was clicked. Is this possible? EDIT: After a couple of answers I realized ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How would you refactor this conditional to use polymorphism? I just finished watching the Google clean code video on YouTube (see link, first article) about removing if statements from your code and using polymorphism instead. After watching the video I had a look at some code that I was writing before watching th...
{ "language": "en", "url": "https://stackoverflow.com/questions/358389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Multiple database transactions on a single connection I have a multi-threaded program whereas each thread, at the start of execution, acquires a single connection from a MySql connection pool class. The thread then uses a number of database table wrapper classes to do its business logic by passing its database conne...
{ "language": "en", "url": "https://stackoverflow.com/questions/358396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Javascript to detect Skype? Is it possible for some Javascript to detect whether Skype is installed or not? The reason I ask is that I'd like to change a link's href based on that: if Skype isn't installed, show a popup explaining what Skype is and how to install it, if it is installed, change the link to skype:my.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/358397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Keeping a variable around from post to get? I have a class called myClass which defines post() and get() methods. From index.html, I have a form with an action that calls myClass.post() which grabs some data from the data base, sets a couple variables and sends the user to new.html. now, new.html has a form which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query to find all the tables with date columns in it Can anybody let me know the query to find all the tables that has a date columns on it. Thanks A: This should do the trick, just add in additional types if you need them: select so.name table_name ,sc.name column_name ,st.name data_type from sysobjects...
{ "language": "en", "url": "https://stackoverflow.com/questions/358410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Typed dataset not updating on column addition I have a datagridview that I'm using in Visual Studio 2008 for a winforms app. The datagridview is bound to a typed dataset. I added a few columns to the table referenced from the typed dataset. So, i open the typed dataset and reconfigured the datatable to show the new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django FormWizard with dynamic forms I want to implement a simple 2 part FormWizard. Form 1 will by dynamically generated something like this: class BuyAppleForm(forms.Form): creditcard = forms.ChoiceField(widget = forms.RadioSelect) type = forms.ChoiceField(widget = forms.RadioSelect) def __init__(self,*ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/358430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Custom UserControl Property used by child element I'm trying to get some WPF concepts down, so I've put together a simple example of what I'm trying to do. I would like to set a custom property of a user control, and have it be used by an element within the control. I've been researching and experimenting, but I'm n...
{ "language": "en", "url": "https://stackoverflow.com/questions/358443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Protected Configuration - How to encrypt with just public key? When using ASP.NET protected configuration, how can I encrypt the config with just the public key? I can export a public key file. I would like to then use this public key to encrypt the configuration files on another server for later deployment...
{ "language": "en", "url": "https://stackoverflow.com/questions/358449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where should you use BlockingQueue Implementations instead of Simple Queue Implementations? I think I shall reframe my question from Where should you use BlockingQueue Implementations instead of Simple Queue Implementations ? to What are the advantages/disadvantages of BlockingQueue over Queue implementations taki...
{ "language": "en", "url": "https://stackoverflow.com/questions/358457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: IE6 invisible text in 7 lines HTML, is there a fix? It took me forever to reduce the problem to this. I cannot express the amount of frustration I'm experiencing, and if I did, it would not be suitable for any website. Ever. Here is the HTML code that is causing me epic pain: <div style="padding: 5px; background:...
{ "language": "en", "url": "https://stackoverflow.com/questions/358462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: XMODEM for python I am writing a program that requires the use of XMODEM to transfer data from a sensor device. I'd like to avoid having to write my own XMODEM code, so I was wondering if anyone knew if there was a python XMODEM module available anywhere? A: def xmodem_send(serial, file): t, anim = 0, '|/-\\' seria...
{ "language": "en", "url": "https://stackoverflow.com/questions/358471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery TabData: Is it possible to get the ClickedTab data, instead index? I have designing the TabMenu Like following <script type="text/javascript"> $(function() { $('#container-1').tabs(); $('#container-2').tabs(); } </script> ..... <div id="container-1"> <ul> <li><a href="#fragment-1"...
{ "language": "en", "url": "https://stackoverflow.com/questions/358495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: base64 encode in MySQL I want to select a blob col from one table, base64 encode it and insert it into another tables. Is there any way to do this without round tripping the data out of the DB and through my app? A: I was looking for the same thing and I've just seen that MySQL 5.6 has a couple of new string functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/358500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: WPF - Add Custom Font I'm trying to add a custom font as a resource in my application. I have a "CustomFont" directory in the application and all the fonts inside of it are set to "Resource" <Window.Resources> <Style x:Key="Gotham-XLight"> <Setter Property="TextElement.FontFamily" Value=...
{ "language": "en", "url": "https://stackoverflow.com/questions/358501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: html email with consideration for Blackberry I am supporting a system which sends an automatic populated email alert. I have rendered the page using a combination of CSS and html. The alert is sent from a system called Salesforce. My problem is, I have never owned a blackberry, and don't have access to one for testi...
{ "language": "en", "url": "https://stackoverflow.com/questions/358518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Java: How to create a collection of a specific parent type and not its subtypes? I am learning Java for a test (tomorrow) and am wondering about a question that will probably never come up but has got me curious. Is it possible to create a new collection class such as a list or something that can hold only a specifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/358521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to tell if mouse pointer icon changed I'm writing a screen recording app for Windows in Delphi 7 and wish to know when the mouse pointer changes in my app (like from a normal pointer to a resize pointer, etc). Currently what I'm doing is painting the mouse pointer onto an in-memory bitmap everytime the mouse mov...
{ "language": "en", "url": "https://stackoverflow.com/questions/358527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How important is Boost to learn for C++ developers? I am curious to learn Boost. But I wanted to ask: * *How important is it to make the effort to learn Boost? *What prerequisites should one have before jumping on Boost? Why I am curious to know about Boost is that many people are talking about Boost on IRC's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Twitter-like "follow user" and "watch this" problem What's the best way to handle many-to-many trigger relationships like the Twitter "follow this user" problem. I have a similar problem with users "watching" threads for replies. If there are 10,000 users watching a thread, and someone replies, how best to notify t...
{ "language": "en", "url": "https://stackoverflow.com/questions/358534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getImageData in Firefox 3 causing NS_ERROR_DOM_SECURITY_ERR I'm trying to develop an application that will use getImageData in javascript in Firefox 3, but I am getting a "NS_ERROR_DOM_SECURITY_ERR" on the getImageData call. The javascript and the image are both currently being served from by hard drive, which is ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/358538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find fifth highest salary in a single query in SQL Server How to find fifth highest salary in a single query in SQL Server A: These work in SQL Server 2000 DECLARE @result int SELECT TOP 5 @result = Salary FROM Employees ORDER BY Salary DESC Syntax should be close. I can't test it at the moment. Or you co...
{ "language": "en", "url": "https://stackoverflow.com/questions/358542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Casting between ArrayLists in Java Sorry, I thought this was an inheritance question: it was an ArrayList question all along! Ok, my problem is more specific than I thought. So I have two families of classes. Cards, and Zones. Zones are boxes for holding card. The first two subClasses of Zone, ZoneList and ZoneMap ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Align point clouds via 3 points correlation? Let's say I have 3 point clouds: first that has 3 points {x1,y1,z1}, {x2,y2,z2}, {x3,y3,z3} and second point cloud that has same points as {xx1, yy1, zz1}, {xx2,yy2,zz2}, {xx3,yy3,zz3}... I assume to align second point cloud to first I have to multiply second one's points...
{ "language": "en", "url": "https://stackoverflow.com/questions/358557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Upgrading from SQL Server 2005 to 2008 I have upgraded from SQL Server 2008 to SQL Server 2005 using the upgrade wizard. Once completed I found that SQL 2005 still exists. I used the same instance that was in SQL Server 2005, but I can’t connect. And all data, which are stored on SQL Server 2005, are not found on SQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to set the Startup Project in VB6? Can you set the startup Project in the Visual Basic 6 IDE? I looked all through the Settings and can't find a way to do it. A: I assume you have multiple projects in a Group e.g. a dll and a dependent exe and you want to set the exe as the 'start up' project. Do so this, selec...
{ "language": "en", "url": "https://stackoverflow.com/questions/358587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: When are records from related tables loaded with LINQ2SQL Let's say I have two tables: * *Report *Comment And assuming I have a database context: var reports = db.Reports(); How can I make sure all Comments for each report are loaded as well? At this point I want to disconnect from the database but still hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/358591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to enable a hyperlink? There are 2 radiobutton and a hyperlink. if select 'radiobutton1' the hyperlink is enabled. if select 'radiobutton2' the hyperlink is disabled. i can use jquery to disable the hyperlink, but can't enable it. How to enable the hyperlink with jquery? A: You could try adding a click event ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/358601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how sqlConnection hides the password of the connection string I'm making a component which uses some data to connect to a database, this data includes user id and password, it store those values in private variables but any programmer can see the value in the debugger after the initialization, so I'm wondering how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Access table data to Excel I have a problem I have got stuck on. I want to export my Access table to an Excel file. Currently, I do that using DoCmd.TransferSpreadsheet, but I want some kind of formatting to be done on the exported data. Can I format that data I am sending to Excel or do I have to write a macro in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to find out Activex Controls from MS Access DB forms using vb.net I am developing a Tool in vb.net and need find out Activex Controls from MS Access DB forms. I am able to conut number of controls in form, but unable to get the Activex Controls only from the form. Can any one have any idea how to achieve this, p...
{ "language": "en", "url": "https://stackoverflow.com/questions/358609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to set GDI HDC's drawable region? I want to draw a HBITMAP onto HDC, I used StretchDIBits. It works fine. ::StretchDIBits. however, I only want a window to watch the drawing result, beside the window, I wish the stretchDIBits do not take any effect(It can not draw on other area), how can I do this? A: When a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/358611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: File DSN for iSeries AS400 ODBC connection How can I create a file dsn for connecting to an AS400 system using the iSeries ODBC driver? The iSeries ODBC driver allows many settings to be configured. Where can I find a list of all properties that can be set in the file DSN? A: Driver={iSeries Access ODBC Driver};Sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/358617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to Search date in SQL? I am having an Event Management System in which i want, If an event is registered for 5 days (21 jan 2009 to 26 Jan 2009) Then if another person wants to register an event between 22 jan 2009 to 24 jan 2009 then it will not allow to register. I want to check this using SQL query, so please...
{ "language": "en", "url": "https://stackoverflow.com/questions/358630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Mapping Infopath fields to Sharepoint columns Any one has any idea how to map an infopath field to a sharepoint column of type choice? The infopath field is a repeating field, so the user can select multiple options, I want to be able to map those to the choice field in sharepoint. Any ideas? update: What I'm trying...
{ "language": "en", "url": "https://stackoverflow.com/questions/358633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where is Vista IIS7 "master" config file stored at? In IIS7 for Vista, you can select your machine and it gives you several options in which you can use to configure your system. Where is this file stored at? It seems like there's a big master.config file which stores all my settings like the "Connection Strings" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatically add user permission to a list in Sharepoint How do I programmatically add user permissions to a list in Sharepoint? I want to add the permission "Contribute" to a user or group for a certain list. I'm using C#. A: You can do this using the SPRoleAssignment object, e.g. // Assuming you already have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Using environment variables for .config file in .NET I need to specify path to dlls referenced by assembly in .config file. Problem is that path can be found in env. variable. Is it possible to use some sort of %DLLPATH% macro in .config file? A: Is this a configuration entry that you're reading, or is .NET readin...
{ "language": "en", "url": "https://stackoverflow.com/questions/358654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Best RDBMS for use from VB6 We are embarking on a grand/huge project which will take us around 1 full year of coding (by 4 developers) to get off the launch pad. It is a complete Business Management System. We can use any commercially available RDBMS like Oracle, MS SQL Server, etc. but we are looking out to use fre...
{ "language": "en", "url": "https://stackoverflow.com/questions/358656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What tag should I use instead of deprecated tag font in html (cannot use CSS) this question can create a misunderstanding: I know I have to use CSS to validate successfully my document as XHTML 1.0 Transitional. The fact is that I have to embed in my webpage a picture composed by zeros and ones created with text ima...
{ "language": "en", "url": "https://stackoverflow.com/questions/358663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: propel-gen's "convert-conf" target fails I'm trying to generate my models from a schema.xml file on OSX 10.5 with the latest versions of PHP & Propel 1.3 & Phing. All the model classes actually get created, then it just dies, right at the last step. I have already tried chmod -R 777 ./application/config but that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unaccounted for database size I currently have a database that is 20GB in size. I've run a few scripts which show on each tables size (and other incredibly useful information such as index stuff) and the biggest table is 1.1 million records which takes up 150MB of data. We have less than 50 tables most of which take...
{ "language": "en", "url": "https://stackoverflow.com/questions/358687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: GHC + wxHaskell on Windows Have GHC 6.8.3 and wxHaskell-0.10.3 on a Windows XP computer. Installed both as binary distributions, not by building from sources. Built a sample with the following command: ghc --make Paint.hs It works on that same computer it was built on (with GHC and wxHaskell installed), but fails if...
{ "language": "en", "url": "https://stackoverflow.com/questions/358693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to install a windows service programmatically in C#? I have 3 projects in my VS solution. One of them is a Web app, the second one is a Windows Service and the last one a Setup project for my Web app. What I want is by the end of the installation of the web app in my setup project, within my custom action to tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/358700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: Locate in solution explorer reSharper shortcut I am using ReSharper and love it! However I have one problem, when i hit Shift-Alt-L ReSharper only locates the file in solution explorer if the folder it is located in is open. If the folder is not open, ReSharper doesn't locate the file. A: It is known bug in Visual ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: HttpModule with filter - Writer method is called twice I have a HttpModule with a filter (PageFilter) where the Writer method of PageFilter is called twice for every page request, unfortunately not with the same result. The idea of the filter is to locate "" and insert some text/script in front of this. I have locat...
{ "language": "en", "url": "https://stackoverflow.com/questions/358712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When does CLR say that an object has a finalizer? I know that in C#, if you write ~MyClass(), this basically translates to override System.Object.Finalize(). So, whether you write the destructor or not, every type in CLR will have a Finalize() method in it (of System.Object at least). 1] So, does it mean that, every...
{ "language": "en", "url": "https://stackoverflow.com/questions/358714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Storing & lookup double array I have a fairly expensive array calculation (SpectralResponse) which I like to keep to a minimum. I figured the best way is to store them and bring it back up when same array is needed again in the future. The decision is made using BasicParameters. So right now, I use a LinkedList of o...
{ "language": "en", "url": "https://stackoverflow.com/questions/358718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: be notified when all background threadpool threads are finished I have a scenario when I start 3..10 threads with ThreadPool. Each thread does its job and returns to the ThreadPool. What are possible options to be notified in main thread when all background threads have finished? Currently I'm using a homegrown meth...
{ "language": "en", "url": "https://stackoverflow.com/questions/358721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Linking Powerpoint and Access through VBA? I have a Powerpoint slide that contains textboxes. I would like to link those textboxes with a filtered view of a data table in Access. For ex, if I had a TaskList application in Access that displayed tasks with different priorities and affectations; is there a way to open ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: auto-check radio-button using struts I have a jsp page with two radio tags. The page contains a struts2 form. When I submit the form one of two radio must be automatically checked. Is it possible to do that? A: One of the features of a radio input is that an item in a radio set once selected cannot be deselected e...
{ "language": "en", "url": "https://stackoverflow.com/questions/358730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When adding new items to a database with foreign keys, should I use SQL triggers to create the related rows in other tables? I am implementing a database design that has a vehicle table, vehicle engine and vehicle gear table with SQL 2005. Each table has an ID that is a SQL identity number, and each engine and gear ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: (Visual)SVN ignore files by Regex I need to exclude files with the following pattern: ProjectFoo.Data[0-9]{14}.lgp How can I use RegEx for (Visual)SVN ignore list? A: As the file looks like an LLBLGen Pro project backup file, you can force llblgen pro to store backup files into a separate folder (See preferences: d...
{ "language": "en", "url": "https://stackoverflow.com/questions/358764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Symfony Action Security - How to forward after successful authentication? With Symfony's Action Security if a user has not been identified he will be forwarded to the default login action as defined in the applications settings.yml file. How would I forward the user to the originally requested action after the user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery Loop over JQueryObjects I have a method, which will accept a parameter of a JQuery Object and will calculate totals for a section. So if you give it a JQuery Object of a div containing the section it will calculate a total for it so you can do this: var $totalcompletion = CalculateSectionCompletion(jQuery("#S...
{ "language": "en", "url": "https://stackoverflow.com/questions/358780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: python, set terminal type in pexpect I have a script which uses pexpect to start a CLI program. It works a bit like a shell where you get a prompt where you can enter some commands. The problem I have, I think, is that this program uses a coloured prompt. This is what I do import pprint import pexpect 1 a = pexpec...
{ "language": "en", "url": "https://stackoverflow.com/questions/358783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Javolution test patterns, dos and don'ts What are the patterns and dos and don'ts when one is writing tests for Javolution tests? In particular I was wondering: * *TestCase.execute() does not allow throwing of exceptions. How to deal with them? Rethrow as RuntimeException or store in a variable and assert in Test...
{ "language": "en", "url": "https://stackoverflow.com/questions/358786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I send HTML mails with included CSS with PHPMailer? I've problem with sending HTML mails with PHPMailer. I make a Smarty template and I got all the HTML code from it. But when I send mail, I got the mail without included CSS (it's only background-color, font or something like that). In PHPMailer I set that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/358788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: IE6 sometimes not loading stylesheet We are having a problem where IE6 (the only browser we have noticed this happening on) seems to be caching an empty version of our main stylesheet. The only way to resolve the problem is to request the stylesheet directly by typing the its url directly into the browser, and then...
{ "language": "en", "url": "https://stackoverflow.com/questions/358789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DocType xhtml1-transitional.dtd ignores table cell height <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Untitled Page</title> <link href="Stylesheet.css" rel=...
{ "language": "en", "url": "https://stackoverflow.com/questions/358791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I do ConnectionPoint in Delphi? I'm writing a DLL which talks to Excel via its IDispatch interface. From VBA I pass in a Variant containing Application.Caller from which I draw the IDispatch pointer via .pDispVal. What I'd like to know is how to query the interface via that IDispatch pointer. I want to set u...
{ "language": "en", "url": "https://stackoverflow.com/questions/358792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Design pattern for methods in another class I am looking for a specific desgin pattern. For example i have an article class, clsArticle. This class contains member variables like Id, title, author, article, and so on. Imagine i want to show all the articles in a list. So somewhere i have to create a method getAllArt...
{ "language": "en", "url": "https://stackoverflow.com/questions/358793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transfer mail to other mail box I am working on an application where i need to transfer mails from a mailbox to anoter one.I can not send these mails using smtp because this willchange the header information .I am using C# and out look api to process mails . is thre any way i can transfer mails to other mail box w...
{ "language": "en", "url": "https://stackoverflow.com/questions/358797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JUnit test with dynamic number of tests In our project I have several JUnit tests that e.g. take every file from a directory and run a test on it. If I implement a testEveryFileInDirectory method in the TestCase this shows up as only one test that may fail or succeed. But I am interested in the results on each indiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/358802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "96" }
Q: Renew ASP.net Session after the default timeout I need to renew my old session if the session timeout exceeds the default 20 mins. Is there any session renew concepts in ASP.net? A: If you're renewing the session after it expires and when that one expires you'll renew it what you're really doing is not having it ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/358807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linq to sql error with identitiy increment field I've just started to use linq to sql and have run into a problem with inserting a record with an auto incrementing field. I have created a new instance of a company object defined by linq. it has initialised an auto incrementing field 'companyID' to 0. InsertOnSubmit(...
{ "language": "en", "url": "https://stackoverflow.com/questions/358821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript error... I think I've been trying to fix this for two hours straight and I can't figure it out. onclick = "location='exceltest.asp?vanjaar=<%=vanjaar%>&vanmaand=<%=vanmaand%>&vandag=<%=vandag%>&totjaar=<%=totjaar%>&totmaand=<%=totmaand%>&totdag=<%=totdag%>'" That line of code is in an < input type="butto...
{ "language": "en", "url": "https://stackoverflow.com/questions/358826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I can't add service at VS2008 to Sharepoint services I can't add service at VS2008 to Sharepoint services when i tried to http://tomasekweb.com/Test1/_vti_bin/Lists.asmx and click on GO The user and password was needed,I typed it but, it's still needed. I don't know, what i have to set on sharepoint site. I have o...
{ "language": "en", "url": "https://stackoverflow.com/questions/358829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About consistensy in the powershell scripting language, using .NET types If I want to create a .NET object in the powershell I write something like the following: [System.Reflection.Assembly]::LoadWithPartialName("System.Xml") | out-null" $doc = new-object -typename System.Xml.XmlDocument" If I want to call a stati...
{ "language": "en", "url": "https://stackoverflow.com/questions/358834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GetProperties() to return all properties for an interface inheritance hierarchy Assuming the following hypothetical inheritance hierarchy: public interface IA { int ID { get; set; } } public interface IB : IA { string Name { get; set; } } Using reflection and making the following call: typeof(IB).GetPropertie...
{ "language": "en", "url": "https://stackoverflow.com/questions/358835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: Access Datasheet view appears to be blank(charaters appear in white hence not visible) in WSS3.0 Access Datasheet view appears to be blank(charaters appear in white hence not visible) in WSS3.0 A: It sounds like a styling problem on your SharePoint page. A: I got the issue fixed, only the page property needed to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best way to make an expandable/collapsible subTable with rich:dataTable I've recently ported an application from JSF 1.1 to JSF 1.2. In the process we removed tomahawk and decided to use rich instead. Now I need a way to make an expandable/collapsible detailViev for each row in the table. The only thing I can think...
{ "language": "en", "url": "https://stackoverflow.com/questions/358840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What build system has the best support for cross platform driver, library and GUI builds? What would be the best choice of build system for a more than one million line multi platform project, which produces drivers, libraries, command line tools, GUIs, and OS install packages for all the mainstream OSes, using both...
{ "language": "en", "url": "https://stackoverflow.com/questions/358849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I use a carriage return in a HTML tooltip? I'm currently adding verbose tooltips to our site, and I'd like (without having to resort to a whizz-bang jQuery plugin, I know there are many!) to use carriage returns to format the tooltip. To add the tip I'm using the title attribute. I've looked around the usual...
{ "language": "en", "url": "https://stackoverflow.com/questions/358874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "378" }
Q: Rails: Reconstructing ActiveRecord Objects from a JSON array I have a JSON array with ActiveRecord objects. These objects can be reconstructed using the from_json method, which every AR object has. However with from_json it's only possible to reconstruct one single object. To process an array, I could of course just...
{ "language": "en", "url": "https://stackoverflow.com/questions/358878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find the module dependencies of my Perl script? I want another developer to run a Perl script I have written. The script uses many CPAN modules that have to be installed before the script can be run. Is it possible to make the script (or the perl binary) to dump a list of all the missing modules? Perl print...
{ "language": "en", "url": "https://stackoverflow.com/questions/358891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Unittesting methods that contain using statements I am wondering if Unittesting and using statements can really go hand in hand as there is no way to mock the disposable object instantiated in the using statement. How would I be able to effectively unittest a method containing the following using statement? public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/358894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Remove characters using Regex I have a string. I need to replace all instances of a given array of strings from this original string - how would I do that? Currently I am using... var inputString = "this is my original string."; var replacement = ""; var pattern = string.Join("|", arrayOfStringsToRemove); Regex.Rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/358912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Database Schema - Booking/Availability System I was recently asked an interview question on a hypothetical web based booking system and how I would design the database schema to minimize duplication and maximize flexibility. The use case is that a admin would enter the availability of a property into the system. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/358913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to create a task in SharePoint with c# I need to create tasks in a SharePoint Task List with c#. Can I use SharePoint API like SPList.Items.Add() ? I will not be monitoring the task changes after creation. Or Should I consider using Outlook API? A: You got it right the first time. Use the SharePoint object mod...
{ "language": "en", "url": "https://stackoverflow.com/questions/358924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Very strange SQL update issue I have a table called ApprovalTasks... Approvals has a status column I also have a view called ApprovalsView When I try a straight update : update ApprovalTasks set Status = 2 where ApprovalTaskID = 48 I'm getting this error message: Msg 2601, Level 14, State 1, Line 1 Cannot insert d...
{ "language": "en", "url": "https://stackoverflow.com/questions/358927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mozilla Firefox & Internet Explorer compatible clipboard in ASP.NET I need to copy a text from a textbox into the clipboard with ASP.NET. I want a code that is comparable with Mozilla Firefox and IE. A: Internet Explorer clipboard copy is trivial: // set the clipboard var x = 'Whatever you want on the clipboard'; w...
{ "language": "en", "url": "https://stackoverflow.com/questions/358931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Script not returning db rows include("conn.php"); $result = mysql_query("SELECT * FROM sggame"); while($row = mysql_fetch_assoc($result)); { $id = $row['id']; echo $id; echo 'working?'; } The above code simply doesn't return anything out of the db. The row name is correct and the loop runs, showing...
{ "language": "en", "url": "https://stackoverflow.com/questions/358934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unicode programming problems, php outputting raw code I have a mysql database set as utf-8, and csv data set as utf-8, delimited by semicolons and enclosed by double quotes. The data Is seemingly imported fine, when doing a direct dump from the database. However when attempting to display one of the fields containi...
{ "language": "de", "url": "https://stackoverflow.com/questions/358942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }