text
string
meta
dict
Q: Performance of multi-column MySQL indexes when using only one column in a query I have a query on my database as such: SELECT * FROM expenses WHERE user_id = ? AND dated_on = ? I have added an index to the table on both the user_id and dated_on columns. When I inspect the indexes using SHOW INDEXES FROM expenses, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Data Model for Boolean Expressions Do you know a way to organize boolean expressions in a database while allowing infinite nesting of the expressions? Example: a = 1 AND (b = 1 OR b = 2) The expression as a whole shouldn't be stored as varchar to preserve data integrity. A: An expression is a treelike structure. S...
{ "language": "en", "url": "https://stackoverflow.com/questions/261721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How can I import a directory structure into SVN, keeping the file and folder modifed dates the same? I've got a large source tree (> 2 GB, WINCE build tree) that I would like to start managing with Subversion. Up to this point, 'versioning' has been managed through keeping multiple copies of the tree, and using Beyo...
{ "language": "en", "url": "https://stackoverflow.com/questions/261731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL statement to check for connectivity? I'm looking for a dummy SQL statement that will work from a C# SQL connection to check for connectivity. Basically I need to send a request to the database, I don't care what it returns I just want it to be successful if the database is still there and throw an exception if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/261735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I access the TFS workspace of an employee that has quit to review/check in some of the changes? One of my co-workers has resigned and was made to leave the premises before checking in all of his code to TFS. I have access to the physical files. Is there a way for me to access his workspace and check in some o...
{ "language": "en", "url": "https://stackoverflow.com/questions/261738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Get a method's contents from a cs file I have a requirement to get the contents of every method in a cs file into a string. What I am looking for is when you have an input of a cs file, a dictionary is returned with the method name as the key and the method body as the value. I have tried Regex and reflection with n...
{ "language": "en", "url": "https://stackoverflow.com/questions/261741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Good (== fast) storage strategy for facts with dynamically evolving dimensions? I need to store large amounts of metering data in a database. A record consists of an id that identifies the data's source, a timestamp and a value. The records are later retrieved via the id and their timestamp. According to my previous...
{ "language": "en", "url": "https://stackoverflow.com/questions/261743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: call a rails function from jquery? is it somehow possible to call a rails function or to access a rails object from within jQuery? I'd like to do something like: jQuery(document).ready(function($) { $('#mydiv').html("<%= @object.name %>"); }); OR jQuery(document).ready(function($) { $('#mydiv').html("<%= render :pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/261752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to localise jcolorchooser As part of a college project we are localising our application. Is it possible to localise swing components such as JOptionPane and if so how? A: You can use ResourceBundle for localization in general (in option pane case for the choise strings and messages) . Then you can use those l...
{ "language": "en", "url": "https://stackoverflow.com/questions/261777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSDateFormatter won't parse dates using locale settings? I'm trying to parse dates using the user's date preferences [NSDateFormatter setDefaultFormatterBehavior:NSDateFormatterBehavior10_4]; NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease]; [dateFormatter setDateStyle:NSDateFormatterSho...
{ "language": "en", "url": "https://stackoverflow.com/questions/261780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do select from where x is equal to multiple values? I am debugging some code and have encountered the following SQL query (simplified version): SELECT ads.*, location.county FROM ads LEFT JOIN location ON location.county = ads.county_id WHERE ads.published = 1 AND ads.type = 13 AND ads.county_id = 2 OR ads....
{ "language": "en", "url": "https://stackoverflow.com/questions/261783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Generate kerberos ticket using .NET I want to generate a Kerberos ticket using .NET with auth credentials supplied through a login form on a web page (this will authenticate user against in a sql db) and then use this ticket to authenticate the user as a single sign on across several other web apps. Is this possible...
{ "language": "en", "url": "https://stackoverflow.com/questions/261785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ClickOnce - Overwriting content files I have a solution that is deployed using ClickOnce. It consists of an application, several referenced assemblies and a SQL Server Compact database. There is also an assembly which is not referenced by the main application, but simply loaded at runtime. This assembly needs to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing java version i have a server - client application that runs on java 1.3; i want to change to java 1.6 step by step, meaning first few clients, than rest of the clients and finally server... i was wondering could you direct me to some common problems that can come along and what should i look after? A: Off ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to use IlMerge in a Setup Project? I have use IlMerge to merge all the dlls of my projects in one exe. I use a targets file which is referenced in the "import" of the main csproj. The ExecCommand in the targets is: <Exec Command="&quot;$(ProgramFiles)\Microsoft\Ilmerge\Ilmerge.exe&quot; /out:@(MainAssembly) &q...
{ "language": "en", "url": "https://stackoverflow.com/questions/261801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible to forward all traffic to an IP Address? we have a old and dying dedicated server. we want a new one at a new datacenter. we have a bunch of sites using the current server and don't have control of all their DNS. is there an easy way to redirect all the traffic from xx.xx.xx.xx to zz.zz.zz.zz without ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can the behavior for == be defined for an interface reference? If an interface inherits IEquatable the implementing class can define the behavior of the Equals method. Is it possible to define the behavior of == operations? public interface IFoo : IEquatable {} public class Foo : IFoo { // IEquatable.Eq...
{ "language": "en", "url": "https://stackoverflow.com/questions/261809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to fix DTS package editor attempted to read or write protected memory? I'm trying to migrate some DTS packages from SQL Server 2000 to 2008 to see how much pain is involved. I've got the Standard version of SQL Server 2008 installed on my local machine. I downloaded the Microsoft SQL Server 2000 DTS Designer Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/261811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Upper limit for autoincrement primary key in SQL Server What is the upper limit for an autoincrement primary key in SQL Server? What happens when an SQL Server autoincrement primary key reaches its upper limit? A: It depends on the datatype. If you use bigint, you're unlikely to ever overflow. Even a normal int ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: ASP.NET Ajax Framework Is there an ASP.NET AJAX framework other than just using UpdatePanel & Friends or the ASP.NET AjaxControlToolkit? Currently I am using plain ICallbackEventHandler calls but it gets quite complicated a while as a lot of serialization needs to be done. Any suggestions? A: Here is a list of diff...
{ "language": "en", "url": "https://stackoverflow.com/questions/261825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to build variants of the same C/C++ application I have three closely related applications that are build from the same source code - let's say APP_A, APP_B, and APP_C. APP_C is a superset of APP_B which in turn is a superset of APP_A. So far I've been using a preprocessor define to specify the ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/261829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Webforms and jQuery, how to match the ID's? I want to use jQuery with asp.net webfoms. Do I need to get a special toolkit so the .net controls spit out friendly Control ID's? Reason being, I don't want to write javascript referencing my html ID's like control_123_asdfcontrol_234. Has this been addressed in version ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Oracle Express Edition - Can not connect remotely (plus others) I'm unable to make a remote connection to an Oracle XE install (through TOAD / SQL Developer). Here's the deal. I set up a new server (windows 2003). The goal was to make a new image with several applications preinstalled, Oracle XE being one of them....
{ "language": "en", "url": "https://stackoverflow.com/questions/261867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C# HttpRequest and different encodings Here is my problem. I have a website in ASP.NET / C# which receives some data via GET/POST This is "user filled" data, but not through a web page, it's a software that contacts my server. Problem is, this software is sending data encoded in ISO-8859-1 (so Café would be sent as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Grouping javadoc methods I'd like to group the methods in the javadoc for my class. For example: Admin methods: blah1 blah2 Accessor methods: foo1 foo2 Do you know of any way I can achieve this in javadoc? Are there any doclets available for doing this? Thanks, Calum A: You probably need to create a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/261876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to connect a Java application through a BlueCoat proxy? I´m trying to connect a Java application through a BlueCoat proxy, an I´m getting an HTTP status of 407, with a message that says that "credentials are missing"... Does anyone have some Java code to read an HTML page through this kind of proxy, using integr...
{ "language": "en", "url": "https://stackoverflow.com/questions/261883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How disable SQL Server jdbc driver logging from a java application? When I change the application log level to FINE, SQL Servers log also uses it, and, as consequence, I get a lot of unnecessary log messages. How can I turn off SQL Server log messages? A: before starts the jdbc connection, change de value of the pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/261886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Foosball result prediction In our office, we regularly enjoy some rounds of foosball / table football after work. I have put together a small java program that generates random 2vs2 lineups from the available players and stores the match results in a database afterwards. The current prediction of the outcome uses a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Excel VBA SVN Client / Integration Can anyone recommend an SVN client for use in Excel with VBA (code modules only). Ideally, I would also like SVN to ignore case when diffing prior to committing changes so as to avoid excessive churn in the repository (VBA has an annoying habit of changing the case of variables al...
{ "language": "en", "url": "https://stackoverflow.com/questions/261902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Matching domains with regex for lighttpd mod_evhost (www.domain.com / domain.com / sub.domain.com) I'm playing about with lighttpd on a small virtual private server. I two domains pointing to the server. I am using the latest version of lighttpd and mod_evhost on Ubuntu 8.10. * *I'm trying to set up a rule such t...
{ "language": "en", "url": "https://stackoverflow.com/questions/261904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to read database and table metadata from MS SQL server with minimum permissions I want to come up with the minimal set of queries that return the databases and tables in a Microsoft SQL Server instance, on as many versions of SQL Server as possible. I'm not sure if I should half-answer my own question, but here'...
{ "language": "en", "url": "https://stackoverflow.com/questions/261908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: rollover effect using Jquery Would you please help me in making a rollover effect using jquery, what i want to do is when someone hover over any of the menu items the text slide down and disappear and a picture slides from the top down to the center (e.g. you could see this effect here panda as you can see the pictu...
{ "language": "en", "url": "https://stackoverflow.com/questions/261910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq to Sql entity associations (non integer primary keys) I've been playing around with Linq to Sql, but i've come accross a problem when defining associations between entities. I have 2 tables, 1 is a table containing customer transactions and the other is a lookup table containing transaction types. For example, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET removing an item from Session? Which method is preferred? Session.Remove("foo"); Session["foo"] = null; Is there a difference? A: The biggest difference is how you read from session. if(Session.ContainsKey["foo"]) { return Session["foo"]; } or if(Session["foo"] != null) { return Session["foo"]; } If you...
{ "language": "en", "url": "https://stackoverflow.com/questions/261920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: Configuring Compass with Annotated Hibernate I'm using Hibernate for a Java-based Web Application and want to add full-text search via Compass. Compass is supposed to support that, but fails to provide any useful Getting Started guide. I could figure out that I have to annotate my Entities with @Searchable and the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/261922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I compress this Oracle resultset into values according to row priority, ignoring nulls? I'll simplify the problem as much as possible: I have an oracle table: row_priority, col1, col2, col3 0, .1, 100, {null} 12, {null}, {null}, 3 24, .2, {null}, {null} Desired result: col1, col2, col3 .2, 100, 3 So accordi...
{ "language": "en", "url": "https://stackoverflow.com/questions/261924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Force Apache HTTPD to run in 32bit I have been running Apache HTTPD in 64bit mode by stripping out the 32bit architecture from the binary (along with the ppc parts). I did this to make it more compatible for python and mysql. However I have another machine that needs it to be run in 32bit mode (it has all four origi...
{ "language": "en", "url": "https://stackoverflow.com/questions/261927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why should I use MXML? If everything that can be accomplished in MXML can also be accomplished in ActionScript and many things are easier to accomplish in ActionScript (loops, conditionals, etc) why take the time to learn MXML? The best reasons I have at this point are that the structure of the MXML nicely matches t...
{ "language": "en", "url": "https://stackoverflow.com/questions/261938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: (C++) Game Server, (Flash) Client I'm interested in putting together my first online game using Flash as the client and writing a back-end application in C++ where the actual game state is kept. I've done lots of games in C++ before using SDL, SFML, Allegro, etc etc but never gotten around to using the network libra...
{ "language": "en", "url": "https://stackoverflow.com/questions/261958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I iterate over an enum? I just noticed that you can not use standard math operators on an enum such as ++ or +=. So what is the best way to iterate through all of the values in a C++ enum? A: #include <iostream> #include <algorithm> namespace MyEnum { enum Type { a = 100, b = 220, c = -1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "403" }
Q: Tomcat - Multiple webapps folders Is it possible to have multiple folders where I can place applications to be deployed? How are these defined? And is it possible to restrict one folder to just be applications for "domain.com" and no other domain. Thanks A: Take a look at conf/server.xml: <Host name="localhost" d...
{ "language": "en", "url": "https://stackoverflow.com/questions/261974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Strange behaviour opening pop-up window in Internet Explorer I have the following JavaScript code to pop up a window in Internet Explorer. The code is executed from a page within a Microsoft CRM modal dialog box. (RequestID is a string that is always the same in the test system - at the moment it contains "abcdefg" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Escaping dilemma in Javascript I have the following var id='123'; newDiv.innerHTML = "<a href=\"#\" onclick=\" TestFunction('"+id+"', false);\"></a>"; Which renders <a href="#" onclick="return Testfunction('123',false);"></a> in my HTML. The problem I have is that I wish to take the call to the method TestFunctio...
{ "language": "en", "url": "https://stackoverflow.com/questions/261985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Modifying the structure of a HTML table with jQuery I have a list of elements (the X in the following examples) displayed either in a row or in a column of an HTML table. In HTML code point of view, I have either (horizontal display): <table id="myTable"> <tr> <td>A</td> <td>B</td> <td>C</td> ... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/261998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best algorithm to check whether a vector is sorted What would be the best way to check that a std::vector is sorted? Is there something faster than a loop checking that v[i]<=v[i+1]? Is it faster/cleaner with iterators? Or is it actually better to just call sort every time (though the "v is already sorted" case is q...
{ "language": "en", "url": "https://stackoverflow.com/questions/262000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What are "SQL-Hints"? I am an advocate of ORM-solutions and from time to time I am giving a workshop about Hibernate. When talking about framework-generated SQL, people usually start talking about how they need to be able to use "hints", and this is supposedly not possible with ORM frameworks. Usually something like...
{ "language": "en", "url": "https://stackoverflow.com/questions/262004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Fastest way to insert replacement characters in Visual Studio I'm just starting to pick up ASP.Net MVC and find myself writing a lot of <%= %> in the views. Intellisense does supply the closing %>, but I find that typing the introductory <%= to be burdensome (they are tough for me to type :-)). I've dabbled around ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Delphi 2009? Ok or buggy? I got tired of trying Delphi every year hoping that I will find a stable version to upgrade from my good old Delphi 7. Should I bother to try Delphi 2009? Or it is as unstable as the previous versions and should I wait until Delphi 2010? Thanks A: This may be an open-ended question, but an...
{ "language": "en", "url": "https://stackoverflow.com/questions/262013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How To Publish Business Objects Query Service We are trying to copy a BO Query Service from one Universe to another. If you use the BO Query As A Service(QAAS) tool you can do this, but end up basically recreating the query service. It seems like the BusinessObjects.DSWS.* libraries allow you to read and write quer...
{ "language": "en", "url": "https://stackoverflow.com/questions/262014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to store Apache Ant property value in file I need to modify a (xml-)file from Apache Ant. "loadfile" task allows to load the file's content in a property. But how to store the property's value back to a file after its (property) modification? Of course I could write custom task to perform this operation but I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/262015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Weird behaviour when running ClickOnce deployed version of WPF application We have a Navigation Based WPF application. It works fine when running directly from Visual Studio, or even if we copy the files to another directory or another computer and run it there. We deploy the application over the internet using Clic...
{ "language": "en", "url": "https://stackoverflow.com/questions/262017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A user with Local Admin + NETWORK SERVICE permissions for Windows Sharepoint Timer Service Is it possible to create a user with permissions of both a local administrator and NETWORK SERVICE? I've got a Sharepoint timer job which runs stsadm for which it needs local administrator permissions. On the other hand temer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML to create tournament final four bracket? Is there a website I can create an HTML final four bracket? Or is there just HTML out there that will create it automatically and I can just fill in the specifics? A: Stumbled upon this HTML code, this did the trick. I will post it just in case anyone down the road has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing Windows Token to WCF then from WCF to another server in the AD domain This may be a doozy, but does anyone have an idea how to: Pass the users windows token (authenticated from domain) to the wcf service that is called - the service would then perform an action based on the users windows credentials that mad...
{ "language": "en", "url": "https://stackoverflow.com/questions/262023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Obtain max length for a "string" column using LINQ to SQL Is it possible to obtain the maximum column length for a VARCHAR, CHAR etc? A: Here's a way which avoids touching the database: * *Using Reflection, get the property of the entity class that corresponds to the column in question. *Then, retrieve the Syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/262024", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you do maths (or math) with numbers bigger than MaxValue in C#? Possible Duplicate: Big integers in C# I want to be able to process arbitrarily large numbers in C#. I can live with just integers. Are there established algorithms for this kind of thing? Or is there a good 3rd-party library? I might cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/262025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Licensing and auto-delete of a program I have an application which get copied and run on client machines. The program is in the form of an Adobe Projector file. I want to write a process that checks when the program starts running whether or not the license is still active, and if not, delete the entire program. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/262026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are all the Identicon frameworks available to developers? Identicons are those icons based on a user IP or name or so which provide an automated avatar... just like the avatar icon on StackOverflow. Here are some available systems (hat tip to Roger Browne): * *http://haacked.com/archive/2007/01/22/Identicons...
{ "language": "en", "url": "https://stackoverflow.com/questions/262028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MFC: Capturing Resizes Just wondering where is best to put functionality in an MFC application that is triggered when the whole window is resized. I was thinking mainfrm but I couldn't seem to capture any OnSize messages... Can someone tell me what I am doing wrong? A: Can someone tell me what I am doing wrong? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL How to loop through a table and merge result? I am trying to do something like this: while @nrOfAuthlevels >= @myAuthLevel begin set @myAuthLevel = @myAuthLevel + 1 SELECT Role.name, Role.authorityLevel FROM [dbo].[Role] ORDER BY Role.authorityLevel end The result of this stored pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/262043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combine 'like' and 'in' in a SqlServer Reporting Services query? The following doesn't work, but something like this is what I'm looking for. select * from Products where Description like (@SearchedDescription + %) SSRS uses the @ operator in-front of a parameter to simulate an 'in', and I'm not finding a way to ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/262075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHPEclipse weird highlight This is not a technical problem, but very annoying. Does anyone know how to turn off or change the color for the name highlight in phpEclipse? I use white-on-black scheme and this highlight has a white background which makes it unreadable and very ugly. To better explain which highlight I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/262078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Back-end choice for a new dynamic programming language? I've been developing a Smalltalk variant for just the fun of it and I wonder what would be a fellow stackoverflowers choice when it comes to targeting a back-end. These were my current considerations: .NET, JVM: These two VM's are mainly for statically typed la...
{ "language": "en", "url": "https://stackoverflow.com/questions/262089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Find JPEG resolution with PHP Calling all PHP gurus! I understand that you can use getimagesize() to get the actual pixel height and width of an image in PHP. However, if you open an image in photoshop and look at the image size dialog, you notice that there is a resolution value that determines the print size of th...
{ "language": "en", "url": "https://stackoverflow.com/questions/262090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I change the URL of my web service? If I change the url in the web.config file will the change be reflected in the .disco, .discomap, and .wsdl files that are in the WebReferences folder? [Edit] I'm using asp.net 2005 A: The change will not, as far as I'm aware, be reflected in all the other files. However, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What happen in SQL 2005 when it run out of number for an autonumber column? What happen when SQL Server 2005 happen to reach the maximum for an IDENTITY column? Does it start from the beginning and start refilling the gap? What is the behavior of SQL Server 2005 when it happen? A: You will get an overflow error wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/262106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Replacing DataGridView words and numbers with images I am creating an application which displays some messages and its directions in the DataGridView. I would like to replace some columns content with pictures. For example I would like to replace number 0 which represents the incoming call with a green arrow (some ....
{ "language": "en", "url": "https://stackoverflow.com/questions/262108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Addicted to LINQ Ok, the more I use LINQ, the more I like it! I recently found myself working in some legacy code at work. It is your classic DataSet and DataTable rich application. Well, when adding a bit of functionality I found myself really wanting to just query the rows of a DataTable for the results I was look...
{ "language": "en", "url": "https://stackoverflow.com/questions/262110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: cruisecontrol sourcesafe block The build machine at work has many projects, but we are only experiencing a problem with one. Two projects are very similar, one builds in debug mode, the other in release mode. They both clear out the projects directory, and then does a full Get from source safe. The debug build g...
{ "language": "en", "url": "https://stackoverflow.com/questions/262116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I handle multiple mouse inputs in Java? A friend of mine asked me to implement a blue and a red pointer to represent the inputs of two separate mice to expedite a mixing desk scenario for real time audio mixing. I'd love to, but as much as I think it is a great idea, I don't have a clue as to where to start...
{ "language": "en", "url": "https://stackoverflow.com/questions/262125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Cleaning up .NET HTML generation I am looking to clean up some of the HTML generated by a .NET 2.0 TreeView controller. Switching to another version/model is not an available option. My first crack yielded an extended TreeView, with an overridden Render that Regex'd out the text I didn't need and output to the page...
{ "language": "en", "url": "https://stackoverflow.com/questions/262131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "simple" installer for a web application (IIS virtual app + sql server db setup) I need to create a web application installer. Install Shield seems like overkill, is there something that can reliably install a web application (IIS setup + sql server db setup). Suggestions? A: CruiseControl.NET (http://sourceforge.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/262133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I browse the classes and methods of an ActiveX DLL? Basically, what I want to is be able to explore an ActiveX DLL. I normally fire up VB 6, add the DLL to the "References" of the project, and use Object Explorer. However, in this particular machine I can't install VB / VS. I'm sure there's a tool out there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I convince the Googlebot that two formerly aliased sites are now separate? This will require a little setup. Trust me that this is for a good cause. The Background A friend of mine has run a non-profit public interest website for two years. The site is designed to counteract misinformation about a certain p...
{ "language": "en", "url": "https://stackoverflow.com/questions/262135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Text on an Image button in c# asp.net 3.5 I have a image button. I wanted to add a text "Search" on it. I am not able to add it because the "imagebutton" property in VS 2008 does not have text control in it. Can anyone tell me how to add text to a image button?? <asp:ImageButton ID="Searchbutton" runat="se...
{ "language": "en", "url": "https://stackoverflow.com/questions/262141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Best way to print in ASP.NET I have a html string held in memory after transforming to my desired template with XSLT. What is the best mechanism to the send this to the client printer? In previous projects I have shamelessly cheated and created a print preview screen, which was essentially an ASPX page with white b...
{ "language": "en", "url": "https://stackoverflow.com/questions/262143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the security concerns I need to consider while coding? I know SQL Injection is one... what are the others... A: Never store plaintext passwords, either. (I can't tell you how many commercial packages I've evaluated for my company which did -- and then acted nonchalant about it when I called them out. My fa...
{ "language": "en", "url": "https://stackoverflow.com/questions/262145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Good Javascript Combo Box replacement for combo boxes with tons of elements? I have a page where my combo box has hundreds of elements which makes it very hard to pick the one item I want. Is there a good Javascript replacement that would do better than <select id="field-component" name="field_component"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: UIImage rounded corners I try to get rounded corners on a UIImage, what I read so far, the easiest way is to use a mask images. For this I used code from TheElements iPhone Example and some image resize code I found. My problem is that resizedImage is always nil and I don't find the error... - (UIImage *)imageByScal...
{ "language": "en", "url": "https://stackoverflow.com/questions/262156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Disabled input text color on iOS The simple HTML below displays differently in Firefox and WebKit-based browsers (I checked in Safari, Chrome and iPhone). In Firefox both border and text have the same color (#880000), but in Safari the text gets a bit lighter (as if it had some transparency applied to it). Can I som...
{ "language": "en", "url": "https://stackoverflow.com/questions/262158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "124" }
Q: how to keep inline items from wrapping? I've got menu items that look like this <ul> <li>Item1<span class="context-trigger"></span></li> <li>Item2<span class="context-trigger"></span></li> <li>Item3<span class="context-trigger"></span></li> </ul> with CSS that turns the above into a horizontal menu, and JS th...
{ "language": "en", "url": "https://stackoverflow.com/questions/262160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored? Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored? In Windows 32, you could write assembly routines which clobbered xmm0...xmm7. But if you take that same assembly code and run it in Windows 64, it will usually cause an ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/262162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Why aren't voting machines open source? Sooo...it's only sort of programming related, but I figure it's election day, right? Is there a single good reason why they aren't, not necessarily open source in that anyone can contribute, but open source in that anyone could inspect the source? A: In the context of this di...
{ "language": "en", "url": "https://stackoverflow.com/questions/262182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Sun Java Web proxy - SSL transactions/sec? I hope this is "close enough to programming" to pass the bar :) Is there any way to monitor SSL transactions / sec on Sun Webproxy? Preferably with SNMP, but anything goes :) A: What do you mean by SSL transactions? The proxy cannot see anything except the connection reque...
{ "language": "en", "url": "https://stackoverflow.com/questions/262183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to publish a FLA from the command line? In our project we have a large number (hundreds) of FLA files created by the artists in CS3, from which we compile SWFs to use in our Flex/AS3 application. As part of a streamlined build/deploy system, it would be really handy to be able to automate publishing a...
{ "language": "en", "url": "https://stackoverflow.com/questions/262192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I write a C++ function returning true if a real number is exactly representable with a double? How can I write a C++ function returning true if a real number is exactly representable with a double? bool isRepresentable( const char* realNumber ) { bool answer = false; // what goes here? return answer...
{ "language": "en", "url": "https://stackoverflow.com/questions/262201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Are std::streams already movable? GNU gcc 4.3 partially supports the upcoming c++0x standard: among the implemented features the rvalue reference. By means of the rvalue reference it should be possible to move a non-copyable object or return it from a function. Are std::streams already movable by means of rvalue re...
{ "language": "en", "url": "https://stackoverflow.com/questions/262211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is mod_rewrite a valid option for caching dynamic pages with Apache? I have read about a technique involving writing to disk a rendered dynamic page and using that when it exists using mod_rewrite. I was thinking about cleaning out the cached version every X minutes using a cron job. I was wondering if this was a vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/262215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Content Voting Database and Application Design How would you design a content voting mechanism that could be applied polymorphically to multiple models / classes. (in a ruby on rails context preferably, but others are fine) Given that instances of these classes can be voted on: - Article - Question - Product Voters ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows Mobile 6 AT commands I'm trying to get CellID using AT commands, but I dont get any response from the modem, mine code looks like below, I send AT+CCED command, but never get any response. HANDLE hCom; char * xpos; char rsltstr[5]; DWORD returnValue; DWORD LAC; DWORD CellId; int bufpos; DCB dcb; COMMTIMEOUTS...
{ "language": "en", "url": "https://stackoverflow.com/questions/262219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Webpage with a Dynamic Header I have a webpage with a dynamic list. I want the headers to be configurable. To start with the headers are named as column1, column2, ... columnnN. Clicking on any of these header I open up a DHTML modal window where I select the header name from a predefined list so that I can assign t...
{ "language": "en", "url": "https://stackoverflow.com/questions/262231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Concurrent data structure design I am trying to come up with the best data structure for use in a high throughput C++ server. The data structure will be used to store anything from a few to several million objects, and no sorting is required (though a unique sort key can be provided very cheaply). The requirements a...
{ "language": "en", "url": "https://stackoverflow.com/questions/262232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Algorithm for organizing emails into threads? Are there any named/famous/particularly good algorithms for organizing email messages into threads? I'm looking to add a feature to my site similar to Google Groups (and other mailing lists) and I was just wondering if there were any published algorithms for such organiz...
{ "language": "en", "url": "https://stackoverflow.com/questions/262234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Are there disadvantages to using a generic varchar(255) for all text-based fields? I have a contacts table which contains fields such as postcode, first name, last name, town, country, phone number etc, all of which are defined as VARCHAR(255) even though none of these fields will ever come close to having 255 chara...
{ "language": "en", "url": "https://stackoverflow.com/questions/262238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: Wrap rows in Excel Let's say there is a report to compare charges with adjustments that outputs to excel, such that each row has the following fields: * *Account Number *charge date *Original item number *Adjusted Item number *Original Qty *Adjusted Qty *Original amount *Adjusted amount *Original Post dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/262247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I safely decode a degrees symbol in a wxPython app? I have a debug app I've been writing which receives data from a C-based process via UDP. One of the strings sent to me contains a ° character - Unicode U+00B0 (which incidentally breaks the StackOverflow search function!). When my wxPython application tries ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio&Source Control: How to have shared code? i want to have some shared code (code library, controls, utilities, helper classes, etc) in Visual Studio. i do not mean shared assemblies, i mean shared code (i.e. i want to ship one assembly with my application, the executable assembly). The technique in other...
{ "language": "en", "url": "https://stackoverflow.com/questions/262251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CRTP to avoid dynamic polymorphism How can I use CRTP in C++ to avoid the overhead of virtual member functions? A: I've been looking for decent discussions of CRTP myself. Todd Veldhuizen's Techniques for Scientific C++ is a great resource for this (1.3) and many other advanced techniques like expression templates...
{ "language": "en", "url": "https://stackoverflow.com/questions/262254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Why isn't all government sponsored software open source? Taking shs's question a step further... Why isn't all government sponsored software open source? I can see excluding some for security purposes, but the rest? Didn't we as tax payers already pay for it? The government has no rights, only the people, so how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/262255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Integrating Linq in a Classic ASP Site This project is the probable first step in migrating a large CMS from Classic ASP to .Net. I'd like to use LINQ for querying the DB. Does anyone have any ideas for strategies to make this happen? I understand this is a vague question at this point, but I'm gathering information...
{ "language": "en", "url": "https://stackoverflow.com/questions/262257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }