text
stringlengths
8
267k
meta
dict
Q: Which MySQL data type to use for storing boolean values Since MySQL doesn't seem to have any 'boolean' data type, which data type do you 'abuse' for storing true/false information in MySQL? Especially in the context of writing and reading from/to a PHP script. Over time I have used and seen several approaches: * ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1361" }
Q: PHPUnit filenaming conventions I'm just starting to try out phpunit on some existing code. The naming convention we use is that the MyClass class should be in MyClass.class.php. PHPUnit seems to require that the file should be called MyClass.php. Is there any way around this? I noticed it while trying to generate a...
{ "language": "en", "url": "https://stackoverflow.com/questions/289729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What Method.isBridge used for? During navigation of the java.lang.reflect.Method class I came across the method isBridge. Its Javadoc says that it returns true only if the Java spec declares the method as true. Please help me understand what this is used for! Can a custom class declare its method as a bridge if requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: A logic bug in my C# code, what should I do? I have a logical error. I provided the following as input: * *the salary is 30000 *the child n° is 9 So the the net salary will be: * *the family bonus + salary - tax (750) + (30000) - (3000) *but my program count them as (1500) + (30000) + (6000) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I improve this number2words script import sys words = { 1 : 'one', 2 : 'two', 3 : 'three', 4 : 'four', 5 : 'five', 6 : 'six', 7 : 'seven', 8 : 'eight', 9 : 'nine', 10 : 'ten', 11 : 'eleven', 12 : 'twelve', 13 : 'thirteen', 14 : 'fourteen', 15 : 'fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Tool to refactor C# var to explicit type Our coding standards ask that we minimise the use of C# var (suggests limiting it's use to being in conjunction with Linq). However there are times when using generics where it's reasonably convenient e.g. Dictionary<DateTime, Dictionary<string, float>> allValues = ... // ......
{ "language": "en", "url": "https://stackoverflow.com/questions/289743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How to turn off caching on Firefox? During development I have to "clear cache" in Firefox all the time in order to make it use the latest version of JavaScript files. Is there some kind of setting (about:config) to turn off caching completely for JavaScript files? Or, if not, for all files? A: Firefox 48 Developer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "146" }
Q: textbox autocomplete how do i make an autocomplete textbox in asp? but i need to get the autocomplete data by querying the database. I dont really know how to explain this, sory if theres not enough detail. i cant use ajax, because i think i will have compability issues with my old app. so im thinking of doing thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/289756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Automatically copying files from a Linux machine to a Windows machine I need to automatically copy files from a linux machine to a windows one every day. I'm looking for something simple and secure like scp, rsync, sftp. Unfortunately, I'm at a loss of how to set this up on the Windows machine. Does anyone know how...
{ "language": "en", "url": "https://stackoverflow.com/questions/289760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Permissions for IIS account I have a webservice running under sharepoint, on a bog-standard Server2003/IIS6 setup. This webservice needs to open and read a file from a share on another machine in the same domain. At the moment I am getting a System.UnauthorizedAccessException: Access to the path '\strand\DROPBOXES...
{ "language": "en", "url": "https://stackoverflow.com/questions/289763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is best thing to call your namespace in .Net In the past I've always gone and called my namespace for a particular project the same as the project (and principle class) e.g.: namespace KeepAlive { public partial class KeepAlive : ServiceBase {... Then from other projects whenever i've called that class...
{ "language": "en", "url": "https://stackoverflow.com/questions/289770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to modify .NET config files during installation? I use the app.config file to store some values (path to a mapping database, data connection selections). These settings differ on the user machines and I would like the installer to set them right. Is there an installer that can work with .NET config files during ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Calculating a boundary around several linked rectangles I am working on a project where I need to create a boundary around a group of rectangles. Let's use this picture as an example of what I want to accomplish. EDIT: Couldn't get the image tag to work properly, so here is the full link: http://www.flickr.com/photo...
{ "language": "en", "url": "https://stackoverflow.com/questions/289779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Int to Char in C# What is the best way to convert an Int value to the corresponding Char in Utf16, given that the Int is in the range of valid values? A: int i = 65; char c = Convert.ToChar(i); A: Although not exactly answering the question as formulated, but if you need or can take the end result as string you c...
{ "language": "en", "url": "https://stackoverflow.com/questions/289792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "126" }
Q: check for duplicates in arraylist I have an arraylist that contains items called Room. Each Room has a roomtype such as kitchen, reception etc. I want to check the arraylist to see if any rooms of that type exist before adding it to the list. Can anyone recommend a neat way of doing this without the need for multipl...
{ "language": "en", "url": "https://stackoverflow.com/questions/289794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Uninstall Windows Service from Deployment package I know that you can install your Windows Service via the VS deployment system which I've done. But how do you deploy updates after that? Each time I deploy a new version, it says that the service already exists and exits. I tried to add a little DOS CMD file with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/289796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can I find the Maven installation directory in Eclipse 3.4 I have installed m2eclipse plugin from http://m2eclipse.codehaus.org/. Now I want to use that as a standalone build tool but I am unable to find the installation directory. Can anyone help me in this? A: I have both the plugin (with its embedded maven...
{ "language": "en", "url": "https://stackoverflow.com/questions/289800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Getting the caller to a Spring AOP Proxy I'm searching for a way of developing a MethodInterceptor which prints the caller class. Is there any way of getting the caller object into the method interceptor? A: This might work, declare an exception and then use it to get a look at the stack at the time when your metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/289801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: when does a thread go out of scope? I've written a program that counts lines, words, and characters in a text: it does this with threads. It works great sometimes, but not so great other times. What ends up happening is the variables pointing to the number of words and characters counted sometimes come up short and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: linq help - newbie how come this work public IQueryable<Category> getCategories(int postId) { subnusMVCRepository<Categories> categories = new subnusMVCRepository<Categories>(); subnusMVCRepository<Post_Category_Map> postCategoryMap = new subnusMVCRepository<Post_Category_Map>(); var query = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to smoothly play a sequence of FLV videos (in AS2)? What is the best approach to play a sequence of flv video files in Flash (with actionscript)? My goal is to have the transitions occur as smoothly as possible. Currently i'm using the netStream class and capturing the onStatus events to play the next video when...
{ "language": "en", "url": "https://stackoverflow.com/questions/289812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the current stack trace on Mac OS X I'm trying to work out how to store and then print the current stack in my C++ apps on Mac OS X. The main problem seems to be getting dladdr to return the right symbol when given an address inside the main executable. I suspect that the issue is actually a compile option, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why is TList.Remove() producing an EAccessViolation error? Why EAccessViolation is raised when executing the code below? uses Generics.Collections; ... var list: TList<TNotifyEvent>; ... begin list := TList<TNotifyEvent>.Create(); try list.Add(myNotifyEvent); list.Remove(myNotifyEvent); // EA...
{ "language": "en", "url": "https://stackoverflow.com/questions/289825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why is aspnet_compiler.exe so slow (and can it be made any faster)? During our build process we run aspnet_compiler.exe against our websites to make sure that all the late-bound stuff in ASP.NET/MVC actually builds (I know nothing about ASP.NET but am assured this is necessary to prevent finding the failures at runt...
{ "language": "en", "url": "https://stackoverflow.com/questions/289831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Posting to a URL with wxWidgets Does anyone have some sample code showing how to POST to a URL using wxWidgets? The documentation and discussion forums imply that it's possible but the methods in wxHTTP are very low-level compared to what you find in .NET and scripting languages like Perl and Ruby. Do I actually hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/289838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Encapsulation VS Inheritance - How to use a protected function? In OOP languages like C# or VB.NET, if I make the properties or methods in a super class protected I can't access them in my Form - they can only be accessed in my class that inherits from that super class. To access those properties or methods I need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/289841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access VBA: Runtime error 3734 Can anyone give me details of runtime error 3734 in Access vba. For reference i am getting it from a code in the following thread How to run a loop of queries in access? Sub plausibt_check() Dim rs As DAO.Recordset Dim rs2 As ADODB.Recordset Dim db As database Dim strsql As String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why Type.Equals(t1, t2) and not the equality operator? Why must Type.Equals(t1, t2) be used to determine equivalent types, and not the equality operator (e.g. for VB.NET, t1 = t2)? It seems inconsistent with other parts of the .NET API. Example in VB.NET: If GetType(String) = GetType(String) Then Debug.Print("...
{ "language": "en", "url": "https://stackoverflow.com/questions/289845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Auto Font Size For Text (GD via PHP) There is a space of x*y for text to go on $im (GD Image Resource) how can I choose a font size (or write text such that) it does not overflow over that area? A: I think you look for the imagettfbbox function. I used that some years ago for a script generating localized buttons f...
{ "language": "en", "url": "https://stackoverflow.com/questions/289850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Load HTML frames in a specific order without back button problems? I have a web page that uses a frameset. Due to scripting and object dependencies, I need to load the frames in a specific order. I have used this example as a template: The JavaScript Source: Navigation: Frames Load Order This loads an empty page in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to load an app through reflection and get error "Could not load file or assembly...The system cannot find the file specified." The assembly it's trying to find isn't the root assembly - it's a referenced one, but it's in the same folder, and Directory.GetCurrentDirectory() is the folder with all of the files ...
{ "language": "en", "url": "https://stackoverflow.com/questions/289875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Macro/Scripting language for non-developers with a simple GUI-based editor We wish to provide people to be able to add some logic to their accounts(say, given a few arguments, how to compute a particular result). So, essentially, this would be tantamount to writing simple business rules with support for conditionals...
{ "language": "en", "url": "https://stackoverflow.com/questions/289879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why this union's size is 2 with bitfields? I am working on turbo C on windows where char takes one byte.Now my problem is with the below union. union a { unsigned char c:2; }b; void main() { printf("%d",sizeof(b)); \\or even sizeof(union a) } This program is printing output as 2 where as union should be taking on...
{ "language": "en", "url": "https://stackoverflow.com/questions/289900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Boost 1.37 pre-built for MSVC I can't find a pre-built set of MSVC++ libs for Boost 1.37.0, only the source. I don't understand how their weird build system works... are there any places I can find a download of a visual studio project or something? A: I've got a build of 1.37 (VC 7.1, 8, 9) on my website, help you...
{ "language": "en", "url": "https://stackoverflow.com/questions/289909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Problem with Starteam and Cruise Control.Net Does anyone have problem getting files from starteam using the cruise control tool for setting up automatic build job?? The script seems to run fine but fail after some time with the error message Error occurred: Unable to read data from the network: the connection to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/289911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Executing shell command from MySQL I know what I'm looking for is probably a security hole, but since I managed to do it in Oracle and SQL Server, I'll give it a shot: I'm looking for a way to execute a shell command from a SQL script on MySQL. It is possible to create and use a new stored procedure if necessary. No...
{ "language": "en", "url": "https://stackoverflow.com/questions/289914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Interactive Statistical Analysis tool I'm looking for a basic software for statistical analysis. Most important is simple and intuitive use, getting started "right out of the box". At least basic operations should be interactive. Free would be a bonus :) The purpose is analysis of data dumps and logs of various pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/289915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Alternative to "PDO::lastInsertId" / "mysql_insert_id" I always hear that using "lastInsertId" (or mysql_insert_id() if you're not using PDO) is evil. In case of triggers it obviously is, because it could return something that's totally not the last ID that your INSERT created. $DB->exec("INSERT INTO example (column...
{ "language": "en", "url": "https://stackoverflow.com/questions/289916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to populate a Word 2007 template in C#? I have a need to populate a Word 2007 document from code, including repeating table sections - currently I use an XML transform on the document.xml portion of the docx, but this is extremely time consuming to setup (each time you edit the template document...
{ "language": "en", "url": "https://stackoverflow.com/questions/289922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to get the number of years between two java.util.Date? How to get the number of years between two java.util.Date? Note: using only java.util.Date A: How accurate do you need to be? If approximate is good enough, then I'd do long msDiff = date1.getTime() - date2.getTime(); int yearDiff = (int)(msDiff / 1000 / 6...
{ "language": "en", "url": "https://stackoverflow.com/questions/289936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: About Asp.Net DataList Commands And EventValidation I have Datalist that is inside an updatepanel and it is in panel in modalpopupextender; I can list items as I wanted. I am also putting 2 buttons for Delete and AddBelow. Here is the markup: <asp:DataList ID="SpeedDialsDL" runat="server"> <ItemTempl...
{ "language": "en", "url": "https://stackoverflow.com/questions/289941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: View SMS in Windows Mobile via Managed Code In the Windows Mobile SDK, there is a MessagingApplication class in Microsoft.WindowsMobile.PocketOutlook that has a method "DisplayComposeForm" that allows you to bring up the default compose dialog for sending an SMS. I need a way to display the default message viewing d...
{ "language": "en", "url": "https://stackoverflow.com/questions/289946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Apple DMG files over FTP are getting corrupted why? I am trying to FTP some apple DMG files, if we do it by hand through Safari or IE it ends up at the destination just fine and uncorrupted. However, if I use a freeware FTP client that we had been using with great success for zip's and exe's or if I use a Powershell...
{ "language": "en", "url": "https://stackoverflow.com/questions/289950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Delphi and XPath functions Can I use Xpath node set function position() in Delphi's function selectNodes() to select only a certain number of element from a node list? If I do like this: selectNodes('Item[1]') its all fine and I get the element with index 1, but when I try selectNodes('Item[position()<10]') I g...
{ "language": "en", "url": "https://stackoverflow.com/questions/289951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inserting text into an existing file via Java I would like to create a simple program (in Java) which edits text files - particularly one which performs inserting arbitrary pieces of text at random positions in a text file. This feature is part of a larger program I am currently writing. Reading the description abou...
{ "language": "en", "url": "https://stackoverflow.com/questions/289965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: SQL Server cannot obtain a LOCK resource at this time - What to do? I have a stored procedure on SQL Server 2005 doing a Serializable Transaction. Inside this transaction, it selects a table with rowlock. At the end of the procedure, after rollback/commit, it sets the transaction isolation level to Read Commited. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/289969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PowerBuilder app with embedded database? Is it possible to use e.g. SQLite with PowerBuilder? I need an embedded open source database (no additional costs). A: Like Bernard said, you'll need an ODBC driver, so as long as you're willing to go third party (if I understand the SQLite situation correctly), that shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/289972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the simplest way to access mssql with python or ironpython? I've got mssql 2005 running on my personal computer with a database I'd like to run some python scripts on. I'm looking for a way to do some really simple access on the data. I'd like to run some select statements, process the data and maybe have pyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/289978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Test automation with postgresql connected application I want to automate tests on my web application, and it uses postgresql. Does anyone know how define a restore point on a postgresql database and restore to an earlier state? I heard something about point in time recovery, but i dont if this is what i need. Thanks...
{ "language": "en", "url": "https://stackoverflow.com/questions/289979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a delegate available for properties in C#? Given the following class: class TestClass { public void SetValue(int value) { Value = value; } public int Value { get; set; } } I can do TestClass tc = new TestClass(); Action<int> setAction = tc.SetValue; setAction.Invoke(12); which is all good. Is it pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/289980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to import a SDF file I started using a Sql Compact version of my DB and during the development it occured that the DB needs to be accessible over the network. Cause I wasn't able to find a way to share the SDF file over net without replication I need to import it into SQL Server 2008 (Express). Any Ideas? A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/289994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What Does "Overloaded"/"Overload"/"Overloading" Mean? What does "Overloaded"/"Overload" mean in regards to programming? A: A function is overloaded when it has more than one signature. This means that you can call it with different argument types. For instance, you may have a function for printing a variable on s...
{ "language": "en", "url": "https://stackoverflow.com/questions/289997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I get the X,Y position of a TWinControl (relative to the screen) I'm trying to show a custom hint in a TWinControl but I can't figure out how to get it's position. Using position 0,0 shows the hint on the top of my screen (outside the window) so I guess it must be the position of the control on the screen. E...
{ "language": "en", "url": "https://stackoverflow.com/questions/290000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How would you design a hackable url Imagine you had a group of product categories organized in a nice tree hierarchy and you wanted to provide hackable urls to browse these. You could do something like this /catalog/categorya/categoryb/categoryc You could then quite easily figure out which category you should list ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET Install Package Sometimes Not Completely Removing Previous Versions I distribute my application using a VS2008 install package, which normally works great. When I create new versions of the app, I go in and increment the Version property on the install package and verify the RemovePreviousVersions property is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Initializing ArcEngine, Make it Faster? I am currently working on a C++/COM project using ArcEngine(From ESRI). Aside from the fact that there is little to no support in terms of documentation (SDK is there.) Anyways, i am wondering if anyone here has had any experience in making the initialization process of ArcEng...
{ "language": "en", "url": "https://stackoverflow.com/questions/290013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find checked RadioButton inside Repeater Item? I have a Repeater control on ASPX-page defined like this: <asp:Repeater ID="answerVariantRepeater" runat="server" onitemdatabound="answerVariantRepeater_ItemDataBound"> <ItemTemplate> <asp:RadioButton ID="answerVariantRadioButton" runat="server" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Toolbar and treeview Icons missing when displaying CHM file using HH API Just encountered an interesting problem. I have a CHM file. If I display it using Process.Start it displays correctly. If however I launch it using the HH API it displays without any icons in the toolbar and treeview; the main content, includin...
{ "language": "en", "url": "https://stackoverflow.com/questions/290030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to use pre-compiled headers in VC++ without requiring stdafx.h? I've got a bunch of legacy code that I need to write unit tests for. It uses pre-compiled headers everywhere so almost all .cpp files have a dependecy on stdafx.h which is making it difficult to break dependencies in order to write tests....
{ "language": "en", "url": "https://stackoverflow.com/questions/290034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I get a C# WebBrowser control to show jpeg files (raw)? Does anyone know in .Net 2.0 - .Net 3.5 how to load a jpeg into a System.Windows.Forms.WebControl as a byte-array and with the right mimetypes set so it will show? Something like: webBrowser1.DocumentStream = new MemoryStream(File.ReadAllBytes("mypic.jpg...
{ "language": "en", "url": "https://stackoverflow.com/questions/290035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Exporting a Unicode .csv (comma separated) file to either Excel 2003 Or Excel 2007 results in all columns ending up in the first column in Excel Is there anything we can do either in code (ASP/JavaScript) or in Excel so that the comma separated values end up in separate columns in Excel? A: once it is imported, you...
{ "language": "en", "url": "https://stackoverflow.com/questions/290037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is the return type part of the function signature? In C++, is the return type considered part of the function signature? and no overloading is allowed with just return type modified. A: Normal functions do not include the return type in their signature. (note: i've rewritten this answer, and the comments below don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/290038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: Castle MonoRail Routing with IIS 7? I’m trying to make the routing module works with default action or controller, but it doesn’t. I always face with 404 page not found. Did I forget to do something? I really like routing in ASP.NET MVC feature, but I’m not sure I could do the same in MR. I’m using IIS7 with the bui...
{ "language": "en", "url": "https://stackoverflow.com/questions/290043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to code navigational logic in ASP.NET Can this be done without MVC? Is there an easy way to abstract or encapsulate navigational logic? I currently have quite a lot of the following in my code behinds (and I know it's probably not the best thing to be doing): protected void btnNext_Click(object...
{ "language": "en", "url": "https://stackoverflow.com/questions/290049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I remove a page from the browser history? I have an have an ASP.Net page which contains a button. This Page contains a ServerSide Paypal button. When pushed my server does various clever things on the back end and then rewrites the response as a form and some javascript which posts this form to paypal.. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: What does the '=>' syntax in C# mean? I just came over this syntax in some of the questions in this forum, but Google and any other searchengine tends to block out anything but letters and number in the search so it is impossible to search out "=>". So can anyone tell me what it is and how it is used? A: It's the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: C1HierarchicalDataTemplate / C1TreeView Problem I've a problem building up a ComponentOne TreeView in Silverlight (C1TreeView) with a C1HierarchicalDataTemplate. In detail the Tree only shows 2 levels (H1 and H2), although 3 levels are defined through HierarchicalDataTemplates like: <c1:C1HierarchicalDataTemplate x...
{ "language": "en", "url": "https://stackoverflow.com/questions/290065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tux, Varnish or Squid? We need a web content accelerator for static images to sit in front of our Apache web front end servers Our previous hosting partner used Tux with great success and I like the fact it's part of Red Hat Linux which we're using, but its last update was in 2006 and there seems little chance of fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/290079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: How to check if DLL is debug-compiled Possible Duplicate: How to tell if .net app was compiled in DEBUG or RELEASE mode? Simple Question; Is there an easy way to check whether a .NET 1.1 assembly is debug-compiled or not? A: It depends on how you want to check. If you want to check in code when you are actually ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I do a dynamic Linq2SQL Query? I'm trying to build a method that will receive a Linq table, and should return a List<> of values that will be a DropDownList Datasource. This is what I've got till now: public static List<Structs.NameValuePair> GenDropDownItens<T>(string ValueField , string TextField ) where T:...
{ "language": "en", "url": "https://stackoverflow.com/questions/290087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Asp.Net MVC vs Castle MonoRail I've some experiences on build application with Asp.Net, but now MVC frameworks become more popular. I would like to try building new multilingual web application using with Asp.Net MVC or Castle MonoRail but I don't know which one is good for me. I don't like the web form view engine,...
{ "language": "en", "url": "https://stackoverflow.com/questions/290088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: jQuery droppables - Change element on drop I'm a bit new to jQuery and hope somebody can help me out. I'm trying to change an element (li) to another element (div) after the (li) has been dropped. Sample code: $("#inputEl>li").draggable({ revert: true, opacity: 0.4, helper: "clone" }); $("#dropEl") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET MVC Caching vary by authentication I'm using ASP.NET Preview 5 (will upgrade soon to Beta) with LINQ2SQL on my recently launched tiny webapp. I was so proud of my work until Silverlight.net featured it on the first page and it started receiving a more than humble number of visitors. For some reason, users ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/290098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Parameterizing a test using CppUnit My organization is using CppUnit and I am trying to run the same test using different parameters. Running a loop inside the test is not a good option as any failure will abort the test. I have looked at TestDecorator and TestCaller but neither seems to really fit. Code samples wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/290099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: C# Adding style to a control I have a Panel and I am adding controls inside this panel. But there is a specific control that I would like to float. How would I go about doing that? pnlOverheadDetails is the panel name pnlOverheadDetails.Controls.Add(lnkCalcOverhead); The control named lnkCalcOverhead is the contro...
{ "language": "en", "url": "https://stackoverflow.com/questions/290112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Convert to date I'm trying to create number of Evenement instances and set the date for them: for (int i=2004; i<2009; i++){ evenementen.add(new Evenement("Rock Werchter", "Rock", "Werchter", 200000, (Date)formatter.parse(i+"/07/03"))); But I can't seem to get it to work, An...
{ "language": "en", "url": "https://stackoverflow.com/questions/290116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Ajax Error: Sys.WebForms.PageRequestManagerParserErrorException My website has been giving me intermittent errors when trying to perform any Ajax activities. The message I get is Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Why are event-based network applications inherently faster than threaded ones? We've all read the benchmarks and know the facts - event-based asynchronous network servers are faster than their threaded counterparts. Think lighttpd or Zeus vs. Apache or IIS. Why is that? A: I think event based vs thread based is no...
{ "language": "en", "url": "https://stackoverflow.com/questions/290128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I check if a database query will return results? Our website uses Perl to provide a simple mechanism for our HR people to post vacancies to our website. It was developed by a third party, but they have been long since kicked into touch, and sadly we do not have any Perl skills in-house. This is what happens ...
{ "language": "en", "url": "https://stackoverflow.com/questions/290133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Event Handler for Minimize and Maximize Window I am developing an application for PocketPC. When the application starts the custom function SetScreenOrientation(270) is called which rotates the screen. When the application closes the function SetScreenOrientation(0) is called which restores the screen orientation. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/290139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a database modelling library for Java? Does anyone know of a Java library that provides a useful abstraction for analyzing and manipulating arbitrary relational database schemata? I'm thinking of something that could do things like LibraryClass dbLib = ...; DbSchema schema = dbLib.getSchema("my_schema"); Li...
{ "language": "en", "url": "https://stackoverflow.com/questions/290163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Calculating SOAP Content-Length How do you calculate the Content-Length is a soap message? Is it the number of chars in the whole soap message? A: Its the number of bytes, not the number of characters, so it will depend on the text encoding used. A: Yes. Convert your XML message to a string and use the length of...
{ "language": "en", "url": "https://stackoverflow.com/questions/290172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Finding people to do usability testing Does anyone have recommendations/experience of how to find people willing to do usability testing of web based apps? I suspect I may need people who might actually be potential users, because mine is a commercial/vertical app which contains some processes and terminology which...
{ "language": "en", "url": "https://stackoverflow.com/questions/290174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Browser dependency problem in image display In my page, I am displaying a report after the user selects some information. On a button onclick event, I am displaying an image which rotates itself to indicate to the user that the request is being processed. The image rotates in the Firefox but not in IE(it just displa...
{ "language": "en", "url": "https://stackoverflow.com/questions/290178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I automatically quote or group commandline arguments for alias in bash? I have a script that takes a command and executes it on a remote host. It works fine, for example: $ rexec "ant build_all" will execute the "ant build_all" command on the remote system (passing it through SSH, etc). Because I'm lazy, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/290187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best Practice: ByRef or ByVal? in .Net What are the things to consider when choosing between ByRef and ByVal. I understand the difference between the two but I don't fully understand if ByRef saves resources or if we even need to worry about that in the .Net environment. How do you decide between the two if the func...
{ "language": "en", "url": "https://stackoverflow.com/questions/290189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Sliding Notification bar in java (a la Firefox) I would like to implement a sliding notification bar as the one in Firefox or IE for my java application. But I don't want to reinvent the wheel and I'm sure someone out there has already done it and is willing to share. Do you know any open-source implementation of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/290210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to combine multiple properties into one tag via overriding object serialization When I serialize; public class SpeedDial { public string Value { get; set; } public string TextTR { get; set; } public string TextEN { get; set; } public string IconId { get; set; } } It results: <SpeedDial> <Val...
{ "language": "en", "url": "https://stackoverflow.com/questions/290213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In AJAX how to retrive variable from inside of onreadystatechange = function () Is it possible to retrieve variable set in onreadystatechange function from outside the function? --edit-- Regarding execution of functions: If its possible i would like to execute ajaxFunction() with one click and then popup() with ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/290214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Difference between and What is the difference between HTML <input type='button' /> and <input type='submit' />? A: It should be also mentioned that a named input of type="submit" will be also submitted together with the other form's named fields while a named input type="button" won't. With other words, in the ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/290215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "257" }
Q: What is the difference between BIT and TINYINT in MySQL? In which cases would you use which? Is there much of a difference? Which I typically used by persistence engines to store booleans? A: From Overview of Numeric Types; BIT[(M)] A bit-field type. M indicates the number of bits per value, from 1 to 64. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/290223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: Operator does not exist: interval > integer I have a query that works on Postgresql 7.4 but not on Postgresql 8.3 with same database. Query: SELECT * FROM login_session WHERE (now()-modified) > timeout; Gets the following error: ERROR: operator does not exist: interval > integer LINE 1: ...ELECT * FROM login_sessi...
{ "language": "en", "url": "https://stackoverflow.com/questions/290226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Java System.currentTimeMillis() equivalent in C# What is the equivalent of Java's System.currentTimeMillis() in C#? A: An alternative: // Use DateTime.UnixEpoch as of .NET or .NET Core 2.1 upwards; // not available in .NET Framework private static readonly DateTime Jan1st1970 = new DateTime (1970, 1, 1, 0, 0, 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/290227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Is it possible to test stateful web services with SoapUI? What do you use as a test client for your stateful web services? Is it possible to use SoapUI? Are there best practices in this area? A: You can do what's called a "Property Transfer" in SoapUI. For example, all our web services have to first call an authent...
{ "language": "en", "url": "https://stackoverflow.com/questions/290231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DBO rights risk I'm advising a friend who manages a SQL 2k5 box that has several users who have dbo access to multiple databases. The problem is: * *These users haven't had their passwords changed for some months, *These users put their IDs into applications and the applications run as DBO. So - aside from the...
{ "language": "en", "url": "https://stackoverflow.com/questions/290236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to load a class file to assembly in runtime? I'm trying to do something that gets a cs file in runtime from user make it meaningful to assembly get its properties, methods etc. Is there a way to do this by reflection in C#? A: You can compile it reasonably easily using the CSharpCodeProvider. You ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/290238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Entity framework: One big model or a set of smaller models? We been having some discussions on approaches to using the entity framework at work recently. We have a fairly large and complex n-tier web based application, which is due for a major overhaul. The question is: If we where to starting using the entity frame...
{ "language": "en", "url": "https://stackoverflow.com/questions/290242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Move data accross SQL Servers with DTS packages or linked servers We are using SQL Server 2000 and have to move data across servers to store it in a central database. We would rather not use DTS packages because we will move to SQL Server 2005 soon, and we don't want to have to upgrade to SSIS or have to support le...
{ "language": "en", "url": "https://stackoverflow.com/questions/290247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to order events bound with jQuery Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is handled by the controller. I bind some onclick events to a button, but I find that they sometimes execute i...
{ "language": "en", "url": "https://stackoverflow.com/questions/290254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "166" }
Q: In DotNetNuke, how do I get the admin email address? I have a module that sends an email to a specified email address but I want to default the email recipient to the portal administrator. How can I retrieve this information? A: If you are in the context of a control inheriting from PortalModuleBase, PortalSetting...
{ "language": "en", "url": "https://stackoverflow.com/questions/290285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }