text
stringlengths
8
267k
meta
dict
Q: delete with joining the same table is it posssible to execute a delete query statement that joins the same table, i've tried various joins (inner, left) but no luck mysql returns error example of what i need: DELETE `a` FROM `t1` AS `a` INNER JOIN `t1` AS `b` USING `some_field_b` WHERE `a`.`some_field_a` = 'va...
{ "language": "en", "url": "https://stackoverflow.com/questions/427537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best approach to SQL Server query using distinct I've two tables: TableA and TableB, joined by TableA.TableA_Id->1..n<-TableB.TableA_Id. A simple PK-FK. I need to extract distinct TableA records given a certain condition on TableB. Here's my 1st approach: SELECT * FROM TableA A INNER JOIN TableB B ON A.idA = B.IdA A...
{ "language": "en", "url": "https://stackoverflow.com/questions/427549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the DateTime difference in Crystal Report How can I get the DateTime difference between 2 DateTime fields in Crystal Report? I tried using DateDiff with not much luck, Any help/hint will be appreciated. Thanks, A: You are not giving that much info to help us solve your problem. Getting no results with d...
{ "language": "en", "url": "https://stackoverflow.com/questions/427558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Sorting DBAdvGrid with FIBDataSet by clicking on the column header The only solution to the above problem i've found is to attach "ORDER BY" statement to the SQL-query of the FIBDataSet. Kind of strange because Grid has it's own quicksort() implementation but i can't get it work. Any ideas would be appreciated. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What will happen if I set CurrentCultureInfo to en-us I am using a client application which connects to a remote Database in US. there are some datetime ambiguities that comes up in the result like if date is 14 Jan in database its returned as 13 Jan. What I would like to know If I Set the CurrentCultureInfo of my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using ContentStringFormat property with TextBlock in ControlTemplate I have a simple ControlTemplate for buttons which creates a link-like look and feel for them: <ControlTemplate x:Key="LinkTemplate" TargetType="{x:Type Button}"> <TextBlock Text="{TemplateBinding Content}"> <TextBlock.Style> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Issue with corba in Java I'm having an issue where I've written a Java App that works perfectly on my development machine and perfectly on a Lab system, however when I install it onto the client machine I get the following Error: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/No...
{ "language": "en", "url": "https://stackoverflow.com/questions/427578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sample Request: task of nant-contrib Can anyone please provide me a sample build file demostrating the use of the task of nant-contrib for creating an installer of a web application project. A: This one :) <?xml version="1.0"?> <project name="Scanner" xmlns="http://nant.sf.net/release/0.85/nant.xsd" xmlns:xsi="h...
{ "language": "en", "url": "https://stackoverflow.com/questions/427586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spring.Net IoC Application Context I'm having the following "problem". I created a application context file for spring.net. The configuration looks like this: <spring> <context> <resource uri="config://spring/objects"/> </context> <objects configSource="SpringObjects.config" /> </spring> I was ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inspecting standard container (std::map) contents with gdb Supposing to have something like this: #include <map> int main(){ std::map<int,int> m; m[1] = 2; m[2] = 4; return 0; } I would like to be able to inspect the contents of the map running the program from gdb. If I try using the subscript oper...
{ "language": "en", "url": "https://stackoverflow.com/questions/427589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "104" }
Q: Regarding Home page I hava a web application. In that i have a link called "Home". When the user clicks the starting page of the web application that is index.jsp should be displayed in the same page. How can i do that. It should work in internet explorer. I have the following html page. <html> <body bgcolor="#FFF...
{ "language": "en", "url": "https://stackoverflow.com/questions/427590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I concatenate upper and lower nibbles stored sequentially in an array? I have an array which contains a list of nibbles: {0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, ...} I want to combine adjacent nibbles into single bytes by left-shifting the upper nibble and concatenating it with the lower one. The output should...
{ "language": "en", "url": "https://stackoverflow.com/questions/427594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Browser version Detection I have a spec in my current project that requires us to advise the user which browsers are best to use the web application. If their current browser version they are using is not in our list of "ideal" browsers we want to display a message. What is the best way to check a specific version ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Customizing authorization in ASP.NET MVC My Controller class is decorated with an AuthorizeAttribute to protect the actions: [Authorize(Roles = "User Level 2")] public class BuyController : Controller { ... } Anytime an action is invoked, but the user is not in at least the role "User Level 2", the user is auto...
{ "language": "en", "url": "https://stackoverflow.com/questions/427598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How to decrease the font size in dial charts I am using jfreechart to plot dial charts, and I want to decrease the font size. How can I do this? A: I use jfreechart to generate a dial image for a monitor and there are three different fonts on it. * *The title font. *The dial ticks font. *The "legend" font at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Amazon Web services - retrieving a wishlist I've been tinkering with Yahoo Pipes and the Amazon Product Advertising API (formerly ECS) SDK to retrieve my wishlist. The problem is that although I can get all the items on my wishlist just fine, it seems to include items that I've deleted too. Has anyone else used this...
{ "language": "en", "url": "https://stackoverflow.com/questions/427604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Guidelines to write C# applications for .NET and mono Mono claims to be compatible with .NET. Have you tried it? Can you share any tips or guidelines for making a running .NET application compatible with mono? A: Might be MoMA helps you A: See these documents for in-depth answers: * *General document about A...
{ "language": "en", "url": "https://stackoverflow.com/questions/427607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Lazy Load External Javascript Files I am trying to write a javascript class that loads script files as they are needed. I have most of this working. It is possible to use the library with the following Syntax: var scriptResource = new ScriptResource('location/of/my/script.js'); scriptResource.call('methodName', arg1...
{ "language": "en", "url": "https://stackoverflow.com/questions/427609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Search all tables in Oracle DB I am using Oracle 10g at the moment. I want to search through all the tables for a certain word or phrase. How would I go about searching all the tables for the word of phrase? Cheers A: Check out Oracle Text(10g edition).
{ "language": "en", "url": "https://stackoverflow.com/questions/427637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ to SQL: Mapping a subset of an association During our initial development we haven't worried about scaling concerns, just getting the bare bones of the system working as a cohesive whole. We are now looking at refining screens where the quantity of records will become too large to be displayed. For example, we ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to add Assembly Information to a Web Site/App in Visual Studio 2008 Can anyone tell me how to add an AssemblyInfo.vb file to a Web Application converted from NET2.0 to NET3.5. I'd like to add the manifest information but cannot find a way to do for the Web Application's compiled DLL. I am using Web Deployment Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/427647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: scrolling and css align with "right: 0px" In an HTML page, if I align some <div>s with "right: 0px", they all look very nice, as I expect. However, if I make the browser window smaller and the horizontal scroll bar appears, when I scroll the page to the right, I see an unexpected white space (instead of the backgrou...
{ "language": "en", "url": "https://stackoverflow.com/questions/427648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Consistent handling of DateTimes in different RDBMSs I'm planning a distributed system of applications that will communicate with different types of RDBMS. One of the requirements is consistent handling of DateTimes across all RDBMS types. All DateTime values must be at millisecond precision, include the TimeZone in...
{ "language": "en", "url": "https://stackoverflow.com/questions/427651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best way to map the main urls in a django project? I've got a django project that contain some apps. The main urls.py includes the urls.py from the apps I've enabled, and all is good. Now I want to configure the project so that when you go to http://testsite/, you'll get the same page that you get when y...
{ "language": "en", "url": "https://stackoverflow.com/questions/427652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Arguments or parameters? I often find myself confused with how the terms 'arguments' and 'parameters' are used. They seem to be used interchangeably in the programming world. What's the correct convention for their use? A: There is nice section in parameter Wikipedia article about this subject. In short -- paramete...
{ "language": "en", "url": "https://stackoverflow.com/questions/427653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "197" }
Q: regex implementation to replace group with its lowercase version Is there any implementation of regex that allow to replace group in regex with lowercase version of it? A: If your regex version supports it, you can use \L, like so in a POSIX shell: sed -r 's/(^.*)/\L\1/' A: In Perl, you can do: $string =~ s/(som...
{ "language": "en", "url": "https://stackoverflow.com/questions/427654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Going bananas with loose coupling and dependency injection With the latest additions to our dependency injection framework (annotations in spring), the marginal cost of creating DI-managed components seems to have hit some critical new threshold. While there previously was an overhead associated with spring (tons of...
{ "language": "en", "url": "https://stackoverflow.com/questions/427659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Design of a polling event API Say you were designing a C++ windowing library. It may or may not provide a callback API, but needs to provide a polling API to facilitate a functional style of programming. What would the polling API look like? Some options SDL style struct Event { enum { MousePress, KeyPress } typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript (via Greasemonkey) failing to set "title" attributes on tags I have the following (fairly) simple JavaScript snippet that I have wired into Greasemonkey. It goes through a page, looks for <a> tags whose href points to tinyurl.com, and adds a "title" attribute that identifies the true destination of the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/427679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you install files in the assembly in Windows Server 2008? Typically what I used to do is drag and drop the files onto the GAC folder. This works in Windows 2000 & 2003, however when I try to do this in Windows Server 2008 I get 'Access is denied'. The user that is doing this is a local administrator. The only...
{ "language": "en", "url": "https://stackoverflow.com/questions/427686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How can I install PowerCommands for Visual Studio 2008 Express? I have Visual Studio 2008 Express SP1 installed on my machine. I tried to install PowerCommands today, but it said that Visual Studio is not installed. Is there something I can do to get it to install? A: Visual Studio 2008 Express does not allow add-i...
{ "language": "en", "url": "https://stackoverflow.com/questions/427688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How would you build this daily class schedule? What I want to do is very simple but I'm trying to find the best or most elegant way to do this. The Rails application I'm building now will have a schedule of daily classes. For each class the fields relevant to this question are: * *Day of the week *Starting time ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use a program which is not in the source code's folder? For example: I'm on MS DOS, I have a source code in the folder C:\Documents and Settings\Programs. Can i make my source code use a program (for example gnuplot) that is in a random folder? A: http://www.codeproject.com/KB/system/newbiespawn.aspx ShellEx...
{ "language": "en", "url": "https://stackoverflow.com/questions/427693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to remove package protection with error 0x80131940 I'm trying to open a password protected package in SQL Server BIDs and I keep getting the following error message each time I pu in the correct password: Failed to remove package protection with error 0x80131940 "(null)" This occurs in the CPaqckage::LoadFro...
{ "language": "en", "url": "https://stackoverflow.com/questions/427697", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Overwrite executable in C:\Program\MyProg on Windows Vista I would like my program to update itself (downloading a new exe and/or some other files from ftp) and I used the recipe in the accepted answer to this question. Recap: * *Rename running program to old-mp.exe *Download the update as mp.exe directly *Rest...
{ "language": "en", "url": "https://stackoverflow.com/questions/427700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Report Direct3D memory usage I have a Direct3D 9 application and I would like to monitor the memory usage. Is there a tool to know how much system and video memory is used by Direct3D? Ideally, it would also report how much is allocated for textures, vertex buffers, index buffers... A: You can use the old DirectDra...
{ "language": "en", "url": "https://stackoverflow.com/questions/427707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Toggle data display inside table cell I have a table that's generated by a normal PHP loop. What I want to do is create a form in the first column of each row that's hidden by default but appears when you click a toggle link in that row. I can make a normal toggle-able div by creating a CSS id called hidden and s...
{ "language": "en", "url": "https://stackoverflow.com/questions/427717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Alternatives to illegal or within * tags on a hover? Does anyone have a suggestion for creating paragraph-type line spaces within a <li> tag that includes a hovered pop-up pseudo-class? I have a <span> that pops up on a:hover and I want the text that pops up to be broken into 2 paragraphs. It works with <br> in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to put an encoding attribute to xml other that utf-16 with XmlWriter? I've got a function creating some XmlDocument: public string CreateOutputXmlString(ICollection<Field> fields) { XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; settings.Encoding = Encoding.GetEncoding(...
{ "language": "en", "url": "https://stackoverflow.com/questions/427725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Showing the current date using JSTL formatDate tag I am trying to show the current date in my JSP page using JSTL. below is the code I am using. <jsp:useBean id="now" class="java.util.Date" scope="request" /> <fmt:formatDate value="${now}" pattern="MM.dd.yyyy" /> But the above code is not producing any results? Am ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How do I pass a String into a function in an NVelocity Template? I'm using the NVelocity Templating engine to produce a fixed-length field output - you know the kind of thing: Field Start Pos Field Length Notes ---------- --------- ------------ --------- Supplier 1 7 Leading ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to limit RDLC report for one page in a PDF ? I have a RDLC report and I am displaying it on the Report Viewer Control in my front end application. I am able to view the report perfectly. But the problem arises when I try to export the report to a PDF (using the built-in option). I print the report in 3 pages whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/427730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Can I join to a table in ORACLE (10g) using a CASE clause in the ON statement (or even where clause as it's an inner join) I'm trying to make the following code smaller. Is this possible? select a.* from table1 a WHERE a."cola1" = 'valuea1' UNION ALL select a.* from tablea1 a inner join tablea2 b on a."cola2" = b."...
{ "language": "en", "url": "https://stackoverflow.com/questions/427736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Form doesn't get updated In my application (Main form is TTntForm, C++Builder 2006): void __fastcall TForm1::Button1Click(TObject *Sender) { Caption=L"1st caption"; // This works. Form1->Caption=L"2nd caption"; // But this doesn't work, // Caption of the form remains "1st ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Desktop sharing application in Flex? I want to make an application in Flex for desktop sharing. How should I proceed? A: You won't be able to access desktop via Flex, you'll have to use some server app on the user machine to simulate mouse/keyboard events. For example, you can use any VNC server (http://www.realvnc...
{ "language": "en", "url": "https://stackoverflow.com/questions/427745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.Net MVC form, with unknown parameters for Controller I'm building a questionnaire mvc webapp, and i cant figure out how to pass an unknown number of arguments to the controller from the form. My form is something like: <% using (Html.BeginForm()) { %> <div id="Content"> <% foreach (var group in ViewData.M...
{ "language": "en", "url": "https://stackoverflow.com/questions/427746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using PowerMock or How much do you let your tests affect your design? I've been a fan of EasyMock for many years now, and thanks to SO I came across references to PowerMock and it's ability to mock Constructors and static methods, both of which cause problems when retrofitting tests to a legacy codebase. Obviously...
{ "language": "en", "url": "https://stackoverflow.com/questions/427750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Blog engine that is multiblog capable and (optionally) has a Debian package? I am sharing a Debian server with a friend, and we host multiple wordpress blogs on the server. The multiblog mechanism for Wordpress provided by Debian doesn't take care of having multiple "content" directories, though. As a result, we can...
{ "language": "en", "url": "https://stackoverflow.com/questions/427753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should you write junit test cases for multiple implementation of the same interface? Before asking question, let me explain the current setup: I have an service interface, say Service, and one implementation, say ServiceImpl. This ServiceImpl uses some other services. All the services are loaded as bean by sprin...
{ "language": "en", "url": "https://stackoverflow.com/questions/427755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Overriding a super class's instance variables Why are we not able to override an instance variable of a super class in a subclass? A: He perhaps meant to try and override the value used to initialize the variable. For example, Instead of this (which is illegal) public abstract class A { String help = "**no hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/427756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: When to use If-else if-else over switch statements and vice versa Why you would want to use a switch block over a series of if statements? switch statements seem to do the same thing but take longer to type. A: If you are switching on the value of a single variable then I'd use a switch every time, it's what the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/427760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "109" }
Q: Variable sized class - C++ I've seen a class which is a class which is defined like this.. class StringChild : public StringBase { public: //some non-virtual functions static StringChild* CreateMe(int size); private: unsigned char iBuf[1]; }; The static factory function has the following impleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/427761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wix and .NET Framework (prerequisites) How can I have my Wix package to download the required .NET Framework when it's not yet installed in the client's machine? I already have the condition to check for the installed .NET version but I'm not sure how to have it downloaded and installed when not found. ClickOnce doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/427775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to retrieve files changed in range of revisions in Subversion? How would I retrieve all files from the repository, along with the folder structure, changed in a range of revisions, say from 1000-1920? A: Not sure if this helps, but if you're using Windows, and you have TortoiseSVN installed. It has this functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/427781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Flash/Flex Cursors I work on a Flex app that loads external Flash resources created in CS3. I've just been reading about how I can use the Flex mx.managers.CursorManager class to change the mouse cursor explicitly. But what I'd ideally like to do is to set a mouse cursor property on some elements in the loaded Flash...
{ "language": "en", "url": "https://stackoverflow.com/questions/427789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Approximating nonparametric cubic Bezier What is the best way to approximate a cubic Bezier curve? Ideally I would want a function y(x) which would give the exact y value for any given x, but this would involve solving a cubic equation for every x value, which is too slow for my needs, and there may be numerical st...
{ "language": "en", "url": "https://stackoverflow.com/questions/427796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Iterating over unknown data structure? Duplicate: C# Accessing data in System.Object[] When I run the following code: foreach (object bar in list) { Console.WriteLine = bar; } I get the following output: System.Collections.DictionaryEntry System.Collections.DictionaryEntry System.Collections.D...
{ "language": "en", "url": "https://stackoverflow.com/questions/427799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the effect of changing system time on sleeping threads? If you take a look at the clock_gettime() function, which is available in all BSDs and is actually defined as part of the POSIX standard, you see that there is support for at least three types of clocks (many systems support more than these clocks, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Are there any good googlemaps plugins for rails? There are some good geocoding plugins (e.g. geokit) but can you recommend a googlemaps plugin for "the view" in rails? I used YM4R/GM before but I don't know if its still up to date... A: I've always just used GeoKit for all things GoogleMaps... it's a little old, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Best way to implement an SFTP server solution? I'm currently setting up a commercial SFTP server and I'm just looking for some of your opinions on the set-up I'm currently thinking of implementing, as well as a recommendation as to what commercial Secure FTP server software would be best to suit. Bear in mind that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/427821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OSX: Environment variables pointing to application bundles? I want cscope to open files in MacVim instead of vim, so I'm trying to have the path to MacVim as the Value of the EDITOR environment variable which is used by cscope: $ export EDITOR=/Applications/MacVim.app/Contents/MacOS/MacVim If I'm now trying to edit ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Attach to IIS7 with a macro? I used a handy macro with keybindings in Visual Studio to attach to Windows XP IIS 5.1: Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports System.Diagnostics Imports System.IO Public Module AttachDebugger ' This subroutine attaches to the first IIS Web Server f...
{ "language": "en", "url": "https://stackoverflow.com/questions/427831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I manage the ClassPath in WebSphere I have a problem with my web module classpath in Websphere v6.1. In my WEB-INF/lib I have a largish number of jar files which include xercesImpl.jar and xmlparserv2.jar. I need both jars to be present, but they appear to confict with each other. Specifically, each jar cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/427837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a service for monitoring secured WCF endpoints in the same way that HTTP monitoring services do? A service I have in WCF occasionally goes down due a problem with a COM component. While I am troubleshooting I would like to setup another host to make regular calls to this service to monitor availability. It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF v/s System.Drawing I have to code a simple control in .Net that draws geometry that looks like following image and the geometry doesn't get any more complex than shown in this image, i.e. it will be a few filled polygons and some dashed lines. This is not a static image however, that is drawn once and forgotten....
{ "language": "en", "url": "https://stackoverflow.com/questions/427848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I configure WinCE to use wildcard SSL certificates? Our Windows CE 5.0 application has a problem with our wildcard SSL certificate (*.domain.com) - it won't accept it as valid. I understand that Windows Mobile 6.0 has support for wildcard certificates (earlier versions don't) and that is built on WinCE 5 whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/427850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Query to replace a comma in SQL? I have a table with the columns employee, address, city, state and zipcode. I have merged address, city, state, zipcode to a single column 'address' separating each field by comma. My issue is, if one of the fields is null, an extra comma will be inserted. For example if city is nul...
{ "language": "en", "url": "https://stackoverflow.com/questions/427851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Difference between "struct foo*" and "foo*" where foo is a struct? In C, is there a difference between writing "struct foo" instead of just "foo" if foo is a struct? For example: struct sockaddr_in sin; struct sockaddr *sa; // Are these two lines equivalent? sa = (struct sockaddr*)&sin; sa = (sockaddr*)&sin; Thank...
{ "language": "en", "url": "https://stackoverflow.com/questions/427853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jquery toggle display I'd like to create a list and be able to toggle the display of children items on click. Should be simple but i can't get it to work. Any thoughts? <script> $(document).ready(function(){ $("dt a").click(function(e){ $(e.target).children("dd").toggle(); }); }); </script> <sty...
{ "language": "en", "url": "https://stackoverflow.com/questions/427858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Saving object with ManyToMany relation I have models (simplified example): class Group(models.Model): name = models.CharField(max_length = 32) class Person(models.Model): group = models.ForeignKey(Group) class Task(models.Model): group = models.ForeignKey(Group) people = models.ManyToManyField(Person) d...
{ "language": "en", "url": "https://stackoverflow.com/questions/427859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an alternative of ajax that does not require polling without server side modifications? I'm trying to create a small and basic "ajax" based multiplayer game. Coordinates of objects are being given by a PHP "handler". This handler.php file is being polled every 200MS, by using ajax. Since there is no need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/427861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Refresh problems with databinding between Listview and ComboBox I am wrestling with a binding problem in WPF/Silverlight. I have a Listview witch is filled by a DataContext form an EF linq query. In the same usercontrol are textboxes. When changing their values, the listview gets refresht and the data is changed in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I add Silverlight 2.0 projects to my web app and still target .NET Framework 2.0? Can I add new Silverlight 2.0 projects to my ASP.NET 2.0 web app and still target .NET Framework 2.0 in Visual Studio 2008? ScottGu doesn't mention Silverlight in his post on multi-targeting. Michael Scwartz's posts on Silverlight ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do I receive file share error if Sql Compact allows multiple connections? Here, it is said that Sql Server Compact allows up to 256 connections. But when I try to open 2 connections, I receive a file sharing error. How can I solve this? SqlCeConnection c1 = new SqlCeConnection("Data Source=testDB.sdf;Encrypt Dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/427888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How close can you identify a user using asp.net and webservices The task is simple, and the answers might be many. But here goes: On my website I'll make an InfoAboutYou.aspx page. So far i got the IP and the browser name and version, but ill like to expand, with just about every thing i can look up about the curre...
{ "language": "en", "url": "https://stackoverflow.com/questions/427891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best approach for using an Enum as a singleton in Java? Building on what has been written in SO question Best Singleton Implementation In Java - namely about using an enum to create a singleton - what are the differences/pros/cons between (constructor omitted) public enum Elvis { INSTANCE; privat...
{ "language": "en", "url": "https://stackoverflow.com/questions/427902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "87" }
Q: storing first byte as string from network stream I need to store the first byte of data read from the network stream as a string, so I can call it back later. prinf(" While 1 Dim tcpListener As New TcpListener(IPAddress.Any, 80) ' Listen to port given Console.WriteLine("Waiting for connection..."...
{ "language": "en", "url": "https://stackoverflow.com/questions/427909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to programmatically manipulate an EPS file I am looking for libraries that would help in programatically manipulating EPS (Encapsulated PostScript) files. Basically, what I want to do is following: * *Show / Hide preexisting layers in the EPS file (toggle them on and off) *Fill (color) named shapes in the EP...
{ "language": "en", "url": "https://stackoverflow.com/questions/427920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to remove all text from an XML document How can one remove all text, but leave the structure intact? for example: <animals> <animal id="1"> <type>cat</type> <food> <fav>miauwmjam</fav> <quantity unit="day">50g</quantity> </food> </animal> </animals> transformed into <animals> <anim...
{ "language": "en", "url": "https://stackoverflow.com/questions/427926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Library to Convert HTML to PDF? I am looking for a C/C++ library to convert HTML (Actually XHTML + CSS) documents to PDF. It is for commercial use and source would be nice but not essential. Anybody have any recommendations or experience doing this? UPDATE: To clarify, I am targeting the Windows platform only. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/427927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: internal constructors in a C# library I'm writing a data access library in C#, the structure of my data model classes are as follows (within the DataAccess assembly): public abstract class DataModel {...} (protected constructor) public abstract class DataClass {...} (protected constructor) public abstract class Data...
{ "language": "en", "url": "https://stackoverflow.com/questions/427941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IIS HttpModule unable to set Session I am trying to set Session values using a IHttpModule. I have set the HttpModule to be used for all requests, not just managed/ASPX pages. I found however, that when a request for a non-ASP.NET page came in (such as gif) the Session member of the HttpApplication would throw an ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/427951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF sessions with HTTPS I cannot figure out how to enable per-session instances for my WCF service while using HTTPS. (I'm not an ASP.NET expert but don't want to use ASP.NET session state if possible.) I am using .NET Framework 3.0. I have arrived at the following contradiction and am hoping that someone can tell m...
{ "language": "en", "url": "https://stackoverflow.com/questions/427954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Flex Command Line compiler capablities Although the Flex command-line compiler (mxmlc) can compile MXML+ActionScript files into SWFs, I need specific insights into its capabilities, via the command-line switches. * *Configure which language you're writing in, ActionScript 2 / 3 *Configure which Flash Player vers...
{ "language": "en", "url": "https://stackoverflow.com/questions/427957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Slow refresh on panel scrolling I'm developing an user control that I need for a project, the control have around 13 rows, 7 columns of textboxes, comboboxes... everything on a form autoscrollable. The problem is that in execution time when scrolling the content refreshing is very very slow. Some idea? Using a datag...
{ "language": "en", "url": "https://stackoverflow.com/questions/427960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VB6 ADO Connection Pooling We have a bunch of VB6 apps at our company. We are trying to debug a random SQL timeout error and did a trace with SQL Server Profiler on the Audit Login event. We noticed that the connections were coming in as nonpooled. We use the SQLOLEDB provider with SQL Server 2000 & 2005. I searched...
{ "language": "en", "url": "https://stackoverflow.com/questions/427966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Flash / TileList component I have a problem and I hope that someone can help me I hava Flash project with TileList in it I need to change background of some items (not all) in this TileList to red and some to blue Do you know how to do this? Thanks A: Hmmm, tricky one. I tried to solve this in a clean way, but Flas...
{ "language": "en", "url": "https://stackoverflow.com/questions/427971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you extract IP addresses from files using a regex in a linux shell? How to extract a text part by regexp in linux shell? Lets say, I have a file where in every line is an IP address, but on a different position. What is the simplest way to extract those IP addresses using common unix command-line tools? A: M...
{ "language": "en", "url": "https://stackoverflow.com/questions/427979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: How does object reuse work in .NET? I've recently moved from VB6 to VB.NET and I am finally getting there with understanding the inner workings. I've been looking at my company's existing codebase and I am a little suprised. I understand that when VB.NET creates a string it see's if the string is in memory and if n...
{ "language": "en", "url": "https://stackoverflow.com/questions/427980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Silverlight Architecture Guidance - Lazy Loading Background: We have an offshore group working up a Silverlight 2 prototype for us. There is the conception that we need to be very concerned with lazy loading of various "screens"/parts of the application. The offshore group has decided to dynamically load assemblies ...
{ "language": "en", "url": "https://stackoverflow.com/questions/427996", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I use MySql for free on my machine for developing my application? I have one query related to mysql licensing. I am developing a desktop application for commercial purpose and using mysql community server (5.0) as backend database server. We dont install mysql server and driver from our application installer. If...
{ "language": "en", "url": "https://stackoverflow.com/questions/427999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Dropdowns filled with same list item I have a Gridview in which i have two templatefields of dropdownlist. I bound them on runtime with same list item. li = new listitem ("1","1"); dl1.items.add(li); dl2.items.add(li); li = new listitem ("2","2"); dl1.items.add(li); dl2.items.add(li); li = new listitem ("3","3"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: method redefined warning while running Merb 0.9.3 I get numerous "method redefined" warnings while running an application under Merb 0.9.3. Of course, I get this only when I run my script using the ruby -w option. Is there any way to get rid of the methods getting redefined (repeated loading of files) again and agai...
{ "language": "en", "url": "https://stackoverflow.com/questions/428004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best/fastest MySQL Table Schema for temporary/rotating storage, e.g. for session management? When it comes to writing custom MySQL database-driven PHP session management for a VERY dynamic website, what is the best (fastest read/write access) structure for your session table? Bad Example (Not Optimized):...
{ "language": "en", "url": "https://stackoverflow.com/questions/428012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regex Replacing : to ":" etc I've got a bunch of strings like: "Hello, here's a test colon&#58;. Here's a test semi-colon&#59;" I would like to replace that with "Hello, here's a test colon:. Here's a test semi-colon;" And so on for all printable ASCII values. At present I'm using boost::regex_search to match &#(\...
{ "language": "en", "url": "https://stackoverflow.com/questions/428013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I add an edit mode to jEdit? While looking for a light-weight Scala development environment, I came upon an Scala edit mode for jEdit. I don't know how to put it to use, though. How does one put a new edit mode in jEdit? A: All of this can be found inside jEdit's help, Using jEdit -> Writing Edit Modes -> In...
{ "language": "en", "url": "https://stackoverflow.com/questions/428021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: CSS coding style Are there any good CSS coding style/standards? A: There's no standard standard, as it were. There are most certainly plenty of in-house standards and conventions. And there are certainly known best practices. I stick to the following: * *Structure your CSS according to it's purpose That may invo...
{ "language": "en", "url": "https://stackoverflow.com/questions/428022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: SQL Server 2005, turn columns into rows I am trying to turn a table 90 degrees: make columns rows. No PIVOT is allowed since PIVOT requires aggregate functions. Example: I have a table with the columns: ID int, ISO char(2), Text varchar(255). So I have this: ID ISO Text -- --- ---- 1 DE Auto 2 EN Car I'd ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Enterprise-grade template printing system I'm looking for an enterprise-grade template printing system. I'm interested in every software I can get my hands on to evaluate. Commercial or not. What I need - a separate system ready to receive tags in order to print (digital or paper) a template (like a contract, invoi...
{ "language": "en", "url": "https://stackoverflow.com/questions/428051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the simplest way to return the first line of a multi-line string in Perl? When I say simple, I mean, within an expression, so that I can stick it in as a value in a hash without preparing it first. I'll post my solution but I'm looking for a better one that reminds me less of VB. :) A: This isn't as simple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/428065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }