text
stringlengths
8
267k
meta
dict
Q: Accessing a HTTPS website using a Flex/AIR HTML component? Is it possible to access remote pages through https when using the HTML component inside a Flex AIR application? I'm looking to build a credit card payment integration into an AIR application and the easy way would be to send the user to a payment service wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/341292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 64 bit portability issues All this originated from me poking at a compiler warning message (C4267) when attempting the following line: const unsigned int nSize = m_vecSomeVec.size(); size() returns a size_t which although typedef'd to unsigned int, is not actually a unsigned int. This I believe have to do with 64 b...
{ "language": "en", "url": "https://stackoverflow.com/questions/341303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List all files changed by a particular user in subversion Is it possible to get a list of all files modified/added/deleted by a particular user? The goal is to get an idea of what a user did for the day (or date range). A: Shek's response helped me with what I needed to do, but I found I got more accurate results w...
{ "language": "en", "url": "https://stackoverflow.com/questions/341310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: Need SQL help - How can I select rows to perform an insert? I tried to make the title as clear as possible... here is my scenario: I have 2 tables (let's call them table A and table B) that have a similar schema. I would like write a stored procedure that would select specific columns of data out of table A, and ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/341315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server Express: User Instance Issue Greetings – To automate testing of our database SPROCs, we’ve been using dynamically created databases inside of a User Instance. This has been working very well – the build server and, until very recently, all the developers could all run the tests. However, one of our deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/341325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asp.net - build linkedin style photo cropper On linkedin.com, the photo that you can manage for your profile has the ability to select a "region" from the photo to crop and use as your profile picture. I assume that it uploads the original picture to a server, and then stores the x,y of the top left corner, and the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL changing a value to upper or lower case How do you make a field in a sql select statement all upper or lower case? Example: select firstname from Person How do I make firstname always return upper case and likewise always return lower case? A: SQL SERVER 2005: print upper('hello'); print lower('HELLO'); A: Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/341338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: Viewing language (C/C++) reference/documentation in CodeBlocks My first question on StackOverflow... Does anybody know a way of viewing the reference/documentation manual of a language through CodeBlocks? Specifically for C/C++. Example: Say I want to look up the reference for strncpy(). In a very old Borland system...
{ "language": "en", "url": "https://stackoverflow.com/questions/341345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to grab control collection like the Table class does? How do I grab the controls inside of a UserControl tag? So if this is on a Page: <ME:NewControl ID="tblCustomList" runat="server"> // ... these controls will be used in my UserControl.aspx </ME:NewControl> How do I access those controls in my UserControl? Fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/341347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DSL Tools: How to create the DLL as weak-named I have a DSL Tools solution. I need to add a weak-named reference to this project. Because the DSL Tools project DLL is strong-named i cannot used the weak-named DLL. I cannot make the DLL strong-named because i cannot recompile it. I tried to make my DSL Tools project ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adjust Sharepoint URL field length Is there anyway to change the length of the field that Sharepoint uses to store URLs. Its default is 255, which is just not long enough to hold links to content within the sharepoint site. A: No, this is a hard limit in SharePoint. Studying the schema of the content database revea...
{ "language": "en", "url": "https://stackoverflow.com/questions/341350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using only std::exception in exception specification It seems it is general accepted that exception specifications are not helping as much as one thinks. But I wonder if a specification which only uses std::exception might be a good compromise: void someFunction() throw ( std::exception ); * *It documents th...
{ "language": "en", "url": "https://stackoverflow.com/questions/341370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I create powershell 2.0 modules? I've heard powershell 2.0 CTP has modules, but I can't find much example code or instructions. I've read what little help there seems to be online... But I just keep getting "The term 'Add-Module' is not recognized as a cmdlet..." when I try and load a module. Any help would b...
{ "language": "en", "url": "https://stackoverflow.com/questions/341372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Using jQuery how do you prompt a message with a select menu option? I need to prompt an alert message when a user selects a particular option in a select menu. Is there a way to do this using jQuery? A: assuming your select has an ID of myselect, and the value you want to check is "myval" $("#myselect").change(fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/341373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why AbstractCollection does not implement equals()? Did you know that : Map<Object,Object> m1 = new HashMap<Object, Object>(); Map<Object,Object> m2 = new HashMap<Object, Object>(); System.out.println("m1.equals(m2) = "+m1.equals(m2)); System.out.println("m1.keySet().equals(m2.keySet()) = " +m1.keySet()....
{ "language": "en", "url": "https://stackoverflow.com/questions/341377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best Environment For Large Web Application We are developing a web application, which will have a database with over 5 millon documents, all of them will be in various languages. The site is planned to have more than 3 million visits per month (hopefully more). We need a stable and scalable solution. We are now usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/341378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Decorators run before function it is decorating is called? As an example: def get_booking(f=None): print "Calling get_booking Decorator" def wrapper(request, **kwargs): booking = _get_booking_from_session(request) if booking == None: # we don't have a booking in our session. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: UITextField in UITableViewCell's and proper usage I have a complex settings style table where individual cells represent different aspects of a data model class. Users can click into a cell and edit individual attributes, such as say if I have a user class, a name, date of birth, etc. My question is, do I need to ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/341380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: rtftextbox and hyperlinks/anchors inside document A few hours ago I found that it's really easy to display *.rtf document using standart .net 2.0 winforms control (RichTextBox). It's really cool that it can display even pictures, but for me there's one missing feature - hyperlinking. I prepared *.rtf document with a...
{ "language": "en", "url": "https://stackoverflow.com/questions/341381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert an interval like "1 day 01:30:00" into "25:30:00"? I need to add some intervals and use the result in Excel. Since sum(time.endtime-time.starttime) returns the interval as "1 day 01:30:00" and this format breaks my Excel sheet, I thought it'd be nice to have the output like "25:30:00" but found n...
{ "language": "en", "url": "https://stackoverflow.com/questions/341384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Adding a directory for the headers in a Makefile Hello I would like to ask you, If someone knows how can I add a directory for the header files in the Makefile to avoid the error *.h not found, I have tried this option but does not work: INC_PATH := -I /directory/to/add A: At least for GNU make, try the implicit v...
{ "language": "en", "url": "https://stackoverflow.com/questions/341387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Basic php form help (2) This is an extension of a question I had yesterday. I am trying to make a little php calculator that will show how much people can save on their phone bills if they switch to VoIP, and how much they can save with each service. I have a form that will spit out the right amount for a monthly bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/341393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Knowing which process produced a sound My computer often produces a "ding" sound, and I can't associate it with anything. Is it possible to programmatically determine the source of the beeps? For example can I hook the sound driver? If so, can you point out some examples or references? A: Omer, this isn't a prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/341397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Handling Web User Control error on asp.net page How do you handle the Web User Control event? I notice my custom web user control have a event call OnError but it never fire when i tweak the control to fail. The control is basically a custom gridview control. I search for web user control event handling over the net...
{ "language": "en", "url": "https://stackoverflow.com/questions/341417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linux Kernel Programming: "Unable to handle kernel NULL pointer dereference" I'm writing a Linux module and getting: Unable to handle kernel NULL pointer dereference What does it mean? A: Sounds like a pointer which currently has the NULL value (zero) is being dereferenced. Assign an address to the pointer before ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Javascript's setTimeout function not calling The setTimeout function always seems to give me trouble. Right now I have a function that is recursive (calls itself through setTimeout) and changes the elements height. The function is sent two arguments: the element to be altered and that elements maximum height. The pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/341423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ITransactionLocal interface is not supported I have a .NET 3.5 C# library that uses OleDb to pull data from an Excel file and return it in a DataRowCollection which is used by a CLR Table-Valued Function in SQL Server 2005. The function works fine when I use SELECT on it. But if I want to use its output as a source...
{ "language": "en", "url": "https://stackoverflow.com/questions/341424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use SGI STL hash_map? I am trying to use the SGI STL implementation I have downloaded from their site. I want to use a hashmap, because I have to store around 5.000.000 records, but it should be good: I need to be able to access it very quickly. I've tried stedext::hash_map, but it was very slow because I cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/341429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF Service hosted in IIS6 gets 404 in Production I have built a simple WCF Service and deployed it to IIS6, and I'm noticing that it works in my Dev and Staging environments, but not Production. Every time I try to hit the service metadata link, I get a 404 page. I've checked IIS config everywhere I can think of a...
{ "language": "en", "url": "https://stackoverflow.com/questions/341438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ASP.Net Script Controls, Returning False from OnClick, and FireFox Short Explanation: I have a script control that has the click event being handled in the script file. The Click handler pops up a confirm prompt and returns the prompt's value. Problem: IE sees the return False (Cancel is selected on the confirm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: End user tool for generating a regular expression We have a SaaS application requirement to allow a user responsible for building a CMS site to define up to 10 custom fields in a form. As part of this field definition we want to add a field validation option which we will store (and apply at runtime) as a reg-ex. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/341455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Long to short pathnames without p/invoke Does anyone know how to convert long to short pathnames in .net 3.5 without p/invoke? I can do it with p/invoke if I have to, but I'd rather not. A: I think that P/Invoke is the only way.
{ "language": "en", "url": "https://stackoverflow.com/questions/341458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Editing Included Content In Customized X-Cart PHP Page My clients home page is https://www.quakereadykit.com/store/home.php This was given to me by a previous designer, and I cannot figure out how to do the simple task of changing the small photo next to the "Welcome" text. I have used Firebug in FF to try and disse...
{ "language": "en", "url": "https://stackoverflow.com/questions/341461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between BSTR and _bstr_t? Can anyone explain the difference between the types mentioned above and some sample usage to clearly explain the difference between the two? Any help would be highly appreciated! Note: this question is a spin-off from this other question A: BSTR is the string data typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What are the alternatives to JSTL? Are there any alternatives to JSTL? One company I worked for 3 years ago used JSTL and custom tag libraries to separate presentation from logic. Front-end developers used EL to do complex presentation logic, generate layouts in JSP pages and it worked out great. Perhaps new technol...
{ "language": "en", "url": "https://stackoverflow.com/questions/341464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How do I handle EndProcess events in a Vista Console app? I have a console application. In XP, I can use SetConsoleCtrlHandler() to register a callback that receives CTRL_LOGOFF_EVENT, CTRL_C_EVENT and a few others. It works great. When the callback is called I can cleanup before I return from the call. Problem is,...
{ "language": "en", "url": "https://stackoverflow.com/questions/341467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Variable/Ram viewer for .NET? I'm using Office Automation in .NET. It is leaving behind the excel.exe program. I know the fix - it is all about explicitely defining the variables. Once defined, I can properly de-allocate the ram and the GC will clean them up. The problem is, I have literally thousands of lines of co...
{ "language": "en", "url": "https://stackoverflow.com/questions/341470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: powershell : how to format get-date to string and remove 0's? I'm attempting to eliminate leading any leading zeroes in my date when I run the get-date cmdlet by trying: $filedate = get-date -uformat "%m-%d-%Y" $filedate = $filedate.ToString().Replace("0", "") this returns "01-04-2008" I want to the output to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is an efficient way to create a W3C DOM programatically in Java? Although I know how to build a DOM the long, arduous way using the DOM API, I'd like to do something a bit better than that. Is there a nice, tidy way to build hierarchical documents with, say, an API that works something like Hibernate's Criteri...
{ "language": "en", "url": "https://stackoverflow.com/questions/341474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Generic Generics in Managed C++ I want to create a List of KeyValuePairs in a managed C++ project. Here is the syntax I'm using List<KeyValuePair<String^, String^>^>^ thing; but I'm getting the following error: error C3225: generic type argument for 'T' cannot be 'System::Collections::Generic::KeyValuePair ^', it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I find which file Perl loaded when I use a module? in Perl, when I do use <module name> <ver>;, the system finds the .pm file for the library somewhere in the @INC path. Is there a reliable way to which file was actually loaded? A: If the module has pod documentation, and if you can guarantee that the perldo...
{ "language": "en", "url": "https://stackoverflow.com/questions/341484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Is calling AsyncOperation.PostOperationCompleted required? I'm using the AsyncOperation class to avoid having to write tons of "if (control.InvokeRequired) then/else" methods (as opposed to its traditional role in the Event-Based Asynchronous Pattern). In some cases, I don't really care about getting a notification...
{ "language": "en", "url": "https://stackoverflow.com/questions/341496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set version with AssemblyInfoTask from a file I'm completely new to this MSBuild tool (and still somewhat lost) but nonetheless I have a question someone might be able to answer: I am trying to auto-generate version info into AssemblyVersion.cs files by the contents of a file. To set the verion info I found the Asse...
{ "language": "en", "url": "https://stackoverflow.com/questions/341498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "The creator of this fault did not specify a Reason" Exception I have the following code in WCF service to throw a custom fault based on certain situations. I am getting a "The creator of this fault did not specify a Reason" exception. What am I doing wrong? //source code if(!DidItPass) { InvalidRoutingCodeFau...
{ "language": "en", "url": "https://stackoverflow.com/questions/341512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: What point should you cache a value for a Property? I've always wondered about when and where is the best time to cache a property value... Some of them seem pretty simple, like the one below... public DateTime FirstRequest { get { if (this.m_FirstRequest == null) { this.m_FirstRequest = Date...
{ "language": "en", "url": "https://stackoverflow.com/questions/341516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use libapt (or libept) in debian-like system to list packages and get their infos? Somebody used libapt or libept to list packages and get informations about package in a debian-like system? Libapt is not well-documented at all, and i've found few examples and tutorials about libept. Can someone explain me be...
{ "language": "en", "url": "https://stackoverflow.com/questions/341520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Convert a text file with Embedded HP Printer Codes to PostScript I have an application that prints by generating text files with embedded printer codes, then basically just copies the file to the printer to print. I need to take that print file and convert it to an image - just as if it was printed then scanned. My...
{ "language": "en", "url": "https://stackoverflow.com/questions/341521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Statistics engine for Java EE Web Application We are working on a Java EE Web Application, and the people from marketing need some really detailed stats for our site. Something similar to Google Analytics, gathering the user's information, and their navigation through the site (where they come from, what they click,...
{ "language": "en", "url": "https://stackoverflow.com/questions/341530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Regular expression : Match anything but full token I have the following snippet where I would like to extract code between the {foreach} and {/foreach} using a regular expression: {foreach (...)} Some random HTML content <div class="">aklakdls</div> and some {$/r/template} markup inside. {/foreach} I already have: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to build a DLL in C++ that has no dependencies? I would like to deploy a very simple DLL with my C# application, but any DLL that I build in Visual Studio 2008 seems to have a dependency on "Microsoft.VC90.CRT". Is it possible to build a DLL using VS2008 without this dependency? How can I tell what is...
{ "language": "en", "url": "https://stackoverflow.com/questions/341536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: On Windows, when should you use the "\\\\?\\" filename prefix? I came across a c library for opening files given a Unicode filename. Before opening the file, it first converts the filename to a path by prepending "\\?\". Is there any reason to do this other than to increase the maximum number of characters allowed i...
{ "language": "en", "url": "https://stackoverflow.com/questions/341550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Rails RESTful controller and rendering after custom action How can I render after executing an action in a restful controller instead of redirecting. I have a controller with standard actions, and I added a special action that adds data to the resource in question, via a form on the #show page (Think comments on a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/341571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there any add-ons for Visual Studio to help manage todo comments? Our solution has a lot of todo comments, but unfortunately it seems the only way to sort them is by file. Sorting by project would give me a much better overview of what I'm actually responsible for. Just wondering if there's any way to do this or...
{ "language": "en", "url": "https://stackoverflow.com/questions/341578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Security in Java EE Application with JBoss What would be the basic and obvious security considerations and recommendations in a Java EE Web application? A: * *Use HTTPS *Use Jasypt to simplify some stuff. *Limit external access point. *Make sure you don't have a single point of failure. *Make sure communicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/341585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what to do when we may need to save slave data first In a one-to-many relationship what's the best way to handle data so it's flexible enough for the user to save the slave data before he saves the master table data. * *reserving the row ID of the master so the I can save de slave data with the reserved master id...
{ "language": "en", "url": "https://stackoverflow.com/questions/341592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I read system information in C++? I'm trying to get information like OS version, hard disk space, disk space available, and installed RAM on a Linux system in C++. I know I can use system() to run different Linux commands and capture their output (which is what I'm currently doing) but I was wondering if the...
{ "language": "en", "url": "https://stackoverflow.com/questions/341594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Best way to implement a last-modified column in Sql Server 2005? How do you implement a last-modified column in SQL? I know for a date-created column you can just set the default value to getdate(). For last-modified I have always used triggers, but it seems like there must be a better way. Thanks. A: Triggers are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MySQL config file location - redhat linux server What is the default location for the MySQL configuration file on a redhat linux box? A: All of them seemed good candidates: /etc/my.cnf /etc/mysql/my.cnf /var/lib/mysql/my.cnf ... in many cases you could simply check system process list using ps: server ~ # ps ax | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: implements in UML Any idea how I express 'implements' in UML? I'm trying to write some actionscript classes in starUML with the help of this handy little template tool: http://blog.flashmech.net/2008/09/generate-actionscript-3-with-staruml/ I want the tool to generate 'implements Iblah' in the classes but am not su...
{ "language": "en", "url": "https://stackoverflow.com/questions/341614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: T-SQL varchar comparison question I'm using MS Sql 2005. Why does this give me the correct results (returns 169 rows)... select * from [import_Data] where [import_Data].name not in ( select [import_Data].name from [import_Data] inner join [resource] on [import_Data].name = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Accessing the iPhone's Call log with the iPhone SDK I am building application that required some data from iPhone's Call log(read only). The call log is a sqlite db located at "/User/Library/CallHistory/call_history.db". I used a jailbroken device to extract the log. However trying to open this location using the sq...
{ "language": "en", "url": "https://stackoverflow.com/questions/341622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to convert from HBITMAP to .NET's Bitmap class? I am using some C++ code that employs the CreateDIBSection function to create a bitmap and return a HBITMAP handle. What is the best way of getting this information into my .NET assembly? A: The static method Image.FromHbitmap(IntPtr hbitmap) might be what you are...
{ "language": "en", "url": "https://stackoverflow.com/questions/341623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AOP problem running Spring unit tests I have a Spring web application which is configured to use JDK proxying for AOP. The AOP annotations (such as @Transactional) are declared on the interfaces, rather than the implementation classes. The application itself works fine, but when I run the unit tests, it seems to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I apply a dynamic style in code at runtime? I need to apply a style in code ike this: TextBlock.Style = TryFindResource("MyStyle") as Style; that will be updated dynamically when the resource dictionary is changed (i.e. skin is replaced at runtime). In other words I need the equivalent to using a dynamic res...
{ "language": "en", "url": "https://stackoverflow.com/questions/341629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reporting Services Rendering format restriction Is there any way I can restrict my rendering format to PDF for one of my report in Report Manager? Thanks, brijit A: Wrap the report server call and use URL access (or SOAP etc) to deliver a PDF. http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=PDF&r...
{ "language": "en", "url": "https://stackoverflow.com/questions/341633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Reporting - Can you have a group inside a group? I'm trying to produce a report that has multiple grouping but does not just show the group as the single field being grouped. I think it may be best shown with an example: > Date <- Grouped, broken by page > Meeting type <- grouped > Meeting_Time Meeting_...
{ "language": "en", "url": "https://stackoverflow.com/questions/341635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MappedSuperclass Alternatives in Grails In many past projects, I used this JPA / Hibernate approach to add auditing capabilities to a system. It's very effective and unobtrusive. Is there a Grails @MappedSuperclass alternative (short of coding domain model objects in Java instead of Groovy)? How can one declare a pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/341646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.NET MVC Ajax.ActionLink with Image is there anyway to have an image act as an ajax actionlink? I can only get it to work using text. Thanks for your help! A: From Stephen Walthe, from his Contact manger project public static class ImageActionLinkHelper { public static string ImageActionLink(this AjaxHe...
{ "language": "en", "url": "https://stackoverflow.com/questions/341649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Vista's IIS Instance doesn't have SMTP (Solutions?) Presently, I am working on a project using classic ASP. My development machine is Vista Enterprise. Although Vista does allow you to have multiple Web Sites (not without a workaround in XP), it has removed the SMTP service from IIS. Is there a standard workaround ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C++: invalid conversion from ‘BaseNode*’ to ‘Match*’ All objects in my program inherit from a Container class. The Container class has a virtual BaseNode* getParent() const; method and a virtual void setParent(BaseNode *p); method. I have a Set class (Set in a tennis match, not a data structure) which has the Match...
{ "language": "en", "url": "https://stackoverflow.com/questions/341668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reducing CPU processing time by using nice? My hosting provider (pairNetworks) has certain rules for scripts run on the server. I'm trying to compress a file for backup purposes, and would ideally like to use bzip2 to take advantage of its AWESOME compression rate. However, when trying to compress this 90 MB file, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/341682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are your favorite features of a C/C++ performance profiler / analyzer? I'm trying to pick a perforamnce analyzer to use. I'm a beginner developer and not sure what to look for in a performance analyzer. What are the most important features? A: If you use valgrind, I can highly recommend KCacheGrind to visual...
{ "language": "en", "url": "https://stackoverflow.com/questions/341691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatic Bot Detection I need to write some code to analyze whether or not a given user on our site is a bot. If it's a bot, we'll take some specific action. Looking at the User Agent is not something that is successful for anything but friendly bots, as you can specify any user agent you want in a bot. I'm a...
{ "language": "en", "url": "https://stackoverflow.com/questions/341695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Explaining SVN to non-programmers I work with a number of new tech support folks. Sometimes, they like to fix small issues which may not be a high priority for our developers. This requires teaching SVN basics to non-programmers, which I've found can get a little tricky. What resources have you found useful? Are...
{ "language": "en", "url": "https://stackoverflow.com/questions/341696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to handle UTF-8 email headers (like Subject:) using Ruby? I'm an email n00b but I am working on an application that sends HTML email with Unicode characters (as my friend noted "enjoy encoding hell"). The Subject: header comes from user input and therefore may contain Unicode characters. Some mail clients (like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Event handlers inside a Javascript loop - need a closure? I'm working with a bit of html and Javascript code that I've taken over from someone else. The page reloads a table of data (via an asynchronous request) every ten seconds, and then re-builds the table using some DOM code. The code in question looks something...
{ "language": "en", "url": "https://stackoverflow.com/questions/341723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: With NUnit, what project type in Visual Studio do I need to use to create my test project? When I am creating a test project in Visual Studio, do I just create a C# console project type, then import Nunit? Does the GUI then hook into this project somehow? There seems to be tons of nunit related .dll's, which ones do...
{ "language": "en", "url": "https://stackoverflow.com/questions/341728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Suggest logic to handle freeform movement over tile based system I've got no experience with this, so i suspect my logic is overly complicated, or perhaps not complete enough to do what I want. I have a basic tile based system, but want to move units over the terrain in a coninuous fashion. Right now they are "t...
{ "language": "en", "url": "https://stackoverflow.com/questions/341734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL - Changing the query to be distinct on just 1 column I have the following query which works except that I would like it to behave differently. Now it looks for all the duplicate rows on url and returns it in the order of number of duplicate urls. I use GROUP_ CONCAT to seperate all the different screen_name's....
{ "language": "en", "url": "https://stackoverflow.com/questions/341737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ string that can be NULL I'm used to passing around string like this in my C++ applications: void foo(const std::string& input) { std::cout << input.size() << std::endl; } void bar() { foo("stackoverflow"); } Now I have a case where I want the string to be NULL: void baz() { foo("stackoverflow"); foo(NU...
{ "language": "en", "url": "https://stackoverflow.com/questions/341743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Javascript onchange functioning in a textarea (Symbian browser) This may apply to other mobile operating environments than just Symbian... However, the issue is that when changing a text area field I'd like to update a count as I type. This is easy to accomplish in most browsers with something like this on the texta...
{ "language": "en", "url": "https://stackoverflow.com/questions/341744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ContextMenu on WindowsFormsHost control So, I have a WindowsFormsHost control in my WPF app (hosting a Dundas Chart) and I want to put a ContextMenu on it. I can successfully attach a ContextMenu to any normal WPF control, but it's not working for the WindowsFormsHost. I suspect this is becuase it's "special" in som...
{ "language": "en", "url": "https://stackoverflow.com/questions/341747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Parameterized Insert statement with transaction throwing an error I had a parametrized insert statement that was working well and I needed to add a select statement and wrap it all in a transaction in order to get data for one of the fields for the insert. I'm not sure if I've hit a limitation with ASP/ADO or if I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/341761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Close all modal dialogs in Dojo Does anybody know how I can close all modal dialogs created by Dojo ? Apparently there used to be a dojo.popup.closeAll function, but this is no longer available in the latest version of the Dojo API that comes with Spring JS. A: That's right.... the reason that method isn't there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/341781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Static memory allocation in Vista results in crash? I'm using Microsoft Visual C++ 2008 Express, and have a pretty annoying problem. It doesn't seem to happen in XP but in Vista I can't find a way around it. Whenever I declare variables non-dynamically, if their combined size exceeds about 30mb, the program will cra...
{ "language": "en", "url": "https://stackoverflow.com/questions/341782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using IDataErrorInfo in M-V-VM If my domain objects implement IDataErrorInfo, and I am using M-V-VM, how do I propagate errors through the ViewModel into the View? If i was binding directly to the model, I would set the "ValidateOnExceptons" and "ValidateOnErrors" properties to true on my binding. But my ViewModel d...
{ "language": "en", "url": "https://stackoverflow.com/questions/341792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: CheckBoxField in GridView won't bind to a string field in the database How do I bind a CheckBoxField in my GridView to an underlying db field that is a string. The string is either "1" or "0" but all the same the GridView won't willingly bind to it. What do I do. What is the best way to have a checkbox in the GridVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/341807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET 2.0 - Tokenizing space separated text Suppose you have output like this: Word1 Word2 Word3 Word4 Where the number of spaces between words is arbitrary. I want to break it into an array of words. I used the following code: string[] tokens = new List<String>(input.Split(' ')) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a replacement for unistd.h for Windows (Visual C)? I'm porting a relatively simple console program written for Unix to the Windows platform (Visual C++ 8.0). All the source files include "unistd.h", which doesn't exist. Removing it, I get complaints about misssing prototypes for 'srandom', 'random', and 'g...
{ "language": "en", "url": "https://stackoverflow.com/questions/341817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "218" }
Q: MS CRM 4 - Get queue that a case assigned to I am looking for a solution to my problem. Is there a way to grab the value of the queue that a user assigns a case to on the case form. I would like to add the queue name to a custom attribute for further use during the save. I am using CRM 4 enterprise Thanks J A: C...
{ "language": "en", "url": "https://stackoverflow.com/questions/341822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple HTML layout engine to convert HTML to an image I need a tool to automatically convert simple HTML into an image. I will be controlling the HTML input which will consist of simple text formatting tags and possibly image links--I don't need to be able to render arbitrary HTML. Is there a simple way to do this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: .NET2.0 Remoting - Why Is Registering A ClientChannel Necessary? I have a client/server application that must use .NET Remoting (not WCF because the project is using Framework 2). The following code (copied heavily from MSDN) works: _clientChannel = new IpcClientChannel(); ChannelSer...
{ "language": "en", "url": "https://stackoverflow.com/questions/341837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Redirect Multiple Domains with Same IP Address Our company has for many years had multiple domain names to protect our product name. When our webiste was first set up we had all these domain names resolving to on IP address which worked fine until now. We rewrote the site with ASP.NET MVC and now use Recaptcha. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Google (Search Engine) Indexing advice for asp.net pages I am working on a course leaflet system for the college I work at, leaflets are stored in a database with primary key course_code. I would like the leaflets ideally to get indexed by google how would I achieve this assuming i develop the system in asp.net 2.0....
{ "language": "en", "url": "https://stackoverflow.com/questions/341847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Decimal rounding problems Given that Decimal.MaxValue = 79228162514264337593543950335m Why does the next line give me 7922816251426433759354395034M in the Local window instead of 7922816251426433759354395033.5m as expected? Decimal target = Decimal.MaxValue / 10m; A: I suspect this is a compiler error, actually. He...
{ "language": "en", "url": "https://stackoverflow.com/questions/341848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Display and Use Advanced Find for Product Subscriptions by Account in Microsoft CRM 4.0 By default when viewing an account in edit mode you have access to Opportunities, Invoices, and Quotes which contain the products being shopped by the account and/or the sales department. I'm trying to determine where to store, d...
{ "language": "en", "url": "https://stackoverflow.com/questions/341852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML Sanitizer for .NET I'm starting a project that will be public facing using asp.net mvc. I know there are about a billion php, python, and ruby html sanitizers out there, but does anyone have some pointers to anything good in .net? What are your experiences with what is out there? I know stackoverflow is a site ...
{ "language": "en", "url": "https://stackoverflow.com/questions/341872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: mysql update statement behaves differently based on whether a user variable exists I'm reseting a sort column that has duplicate or missing values like so: set @last=''; set @sort=NULL; update conf_profile set sort= if( @last=(@last:=concat(org_id,',',profile_type_id,',',page,',',col)), (@sort:=@...
{ "language": "en", "url": "https://stackoverflow.com/questions/341877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A simple way to send mails from a C application on Unix I am designing a system which will at some point require to send email notifications. So I am looking for a simple way to do this. Some background: the system will be running on Linux platform, there will be a working SMTP server somewhere on the network, the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/341891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: spring bean configuration I want to specify a file system path as part of a Spring bean configuration. I know that I can set a path such as: <bean id="myBean" class="com.example.BeanImpl"> <property name="path" value="/WEB-INF/jsp"/> </bean> An the path /WEB-INF/jsp is interpreted as being relative to the web ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/341897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }