text
stringlengths
8
267k
meta
dict
Q: How to populate SYSTEMTIME value? On Windows Mobile (but I guess it's the same on Windows) in a native C++ app, how would I go about setting a SYSTEMTIME structure correctly? Assuming I have int year, month, dayOfMonth, hour, minute, second; I obviously should set the wHour, wYear, etc members of the SYSTEMTIME st...
{ "language": "en", "url": "https://stackoverflow.com/questions/286897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Icon size of button in Flex How to find the width of the icon which is embedded in a button? A: Try this: var icon:DisplayObject = button.getChildByName("upIcon"); trace("icon (width: " + icon.width + ", height: " + icon.height + ")");
{ "language": "en", "url": "https://stackoverflow.com/questions/286900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using data binding to launch animations in WPF I am trying to adapt a simple WPF application to use the Model-View-ViewModel pattern. On my page I have a couple of animations: <Page.Resources> <Storyboard x:Name="storyboardRight" x:Key="storyboardRight"> <DoubleAnimation x:Name="da3" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/286904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Efficiently replace all accented characters in a string? For a poor man's implementation of near-collation-correct sorting on the client side I need a JavaScript function that does efficient single character replacement in a string. Here is what I mean (note that this applies to German text, other languages sort dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/286921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "128" }
Q: Html.BuildUrlFromExpression with reference type parameters for action I hope my terminology is right. Edit if not. From my Linq2Sql classes I have a Color class. One of my controller's actions accepts an instance of this Color class. I want to create a link to this action so I use <%=Html.ActionLink<ColorController...
{ "language": "en", "url": "https://stackoverflow.com/questions/286923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I build a VB6 Console App I did some googling to try to answer this question but even after that I'm not quite clear about something. Is it possible to create a console app from VB6? I've got a VB6 app that doesn't put up a window. I always assumed that it was a console app. However, I want to be able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/286924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WCF access through script manager Question: 1 I am a beginner to WCF , I have taken a web application and hosted on IIS(with some port(250) and added a new WCF file, added an operation contract and tried to call the WCF service from the client web app through javascript, i was not able to get the jsdebug file itself...
{ "language": "en", "url": "https://stackoverflow.com/questions/286927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to test User Control with unit that relies on the Session object I'm using ASP.NET to build an application and the latest version of NUNIT framework to test it. I'm constructing a User Control to build a custom menu. That control at some point checks whehter a specific object exists in the Session Collection or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/286929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get the user response regarding SaveFileDialog in Javascript? The following code is implemented in Page_Load event to show SaveFileDialog to the user string targetFileName = Request.PhysicalApplicationPath + "Reports\\TempReports\\FolderMasters" + Utility.GetRandomNumber() + ".pdf"; FileInfo file = new Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/286932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to password protect folder/page using php without a db or username What is the best way to password protect folder using php without a database or user name but using. Basically I have a page that will list contacts for organization and need to password protect that folder without having accoun...
{ "language": "en", "url": "https://stackoverflow.com/questions/286938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What interface should I implement to create step driven events for my class? I want to create a similar behavior to the data reader class but for a bespoke emailer program so that I can do the follow Dim sender As New EmailSender(emailTemplate) While sender.Send() Response.Write(sender("HTMLContent")) End While I...
{ "language": "en", "url": "https://stackoverflow.com/questions/286940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: software documentation templates Does anyone know any source of examples and templates for software requirements, build environment description and other kind of documentations that are common for software development? Thanks! A: The ReadySet templates from tigris are quite comprehensive though you need to know ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/286944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What is the JSON format? What is the JSON (JavaScript Object Notation) format? A: JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Stand...
{ "language": "en", "url": "https://stackoverflow.com/questions/286945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Oracle Default Values I've got a quick question about default values in PL/SQL functions in Oracle. Take this program as an example; create or replace FUNCTION testFunction ( varNumber IN NUMBER DEFAULT 0 ) RETURN NUMBER AS BEGIN dbms_output.put_line(varNumber); RETURN varNumber; END; The idea here being that...
{ "language": "en", "url": "https://stackoverflow.com/questions/286946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any AOP support library for Python? I am trying to use some AOP in my Python programming, but I do not have any experience of the various libraries that exist. So my question are: What AOP support exists for Python? And what are the advantages of the differents libraries between them? Edit I've found some, but I...
{ "language": "en", "url": "https://stackoverflow.com/questions/286958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How to get color space of a jpeg/tiff in java? the title sums it up really. Using the standalone exiftool program to dump all image metadata to a console I can see a line Color Space Data : RGB It looks like this is taken from the ICC-header I want to get the same data programatically in java. I've tried the drew no...
{ "language": "en", "url": "https://stackoverflow.com/questions/286959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Profiler connection details When you startup a standard trace the first settings you see will be the current database connections. In my case there is about 10 entries, all of whome are the same username, however some are dateformat dmy and some are mdy. The asp website seems to pick a connection from the pool a...
{ "language": "en", "url": "https://stackoverflow.com/questions/286960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I "cut" out part of a string with a regex? I need to cut out and save/use part of a string in C#. I figure the best way to do this is by using Regex. My string looks like this: "changed from 1 to 10". I need a way to cut out the two numbers and use them elsewhere. What's a good way to do this? A: Matching o...
{ "language": "en", "url": "https://stackoverflow.com/questions/286964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Getting values between quotes How can I get the value between quotes with an RegEx for example I want to find all the parameters from the function test <html> test("bla"); print("foo"); test("moo"); </html> The result must be { "bla", "moo" } A: If you just want the args to test, you'll need to include th...
{ "language": "en", "url": "https://stackoverflow.com/questions/286971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java control IP TTL? In Java, is there a way to control the TTL of the IP header for packets sent on a socket? A: Apparently only on Multicast sockets, which have: MulticastSocket.setTimeToLive(int ttl); A: Setting the TTL using MulticastSocket.setTimeToLive(int ttl); is only going to work if you have enabled ...
{ "language": "en", "url": "https://stackoverflow.com/questions/286972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Curl post data and headers only I want to get the headers only from a curl request curl -I www.google.com All grand. Now I want to do that but to pass in post data too: curl -I -d'test=test' www.google.com But all I get is: Warning: You can only select one HTTP request! Anyone have any idea how to do this or am I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/286982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: Git - pulling changes from clone back onto the master I cloned a Git master and made a lot of changes on the clone. I have since committed these changes on the clone and now want the master to be a carbon copy of what is on the clone. I've tried Git push on the clone to push the changes to the master - but nothing I...
{ "language": "en", "url": "https://stackoverflow.com/questions/286988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Do you know eclipse plugin to change localised text into html entities? I have resource bundle with my country characters - how to change them into html entities. I prefer plugin integrated with Eclipse to have all tools in one place. A: You might try: http://andrei.gmxhome.de/anyedit/ Further down the page one of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/286990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to monitor / log files access to remote folders under windows? I would like to log the name of all the files I access from a particular network share (and the process accessing the the file). What are the solutions in C++ / Win32 preferably ? A: You need ReadDirectoryChangesW and the FILE_NOTIFY_CHANGE_LAST_ACC...
{ "language": "en", "url": "https://stackoverflow.com/questions/286994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Launch ASP Development Server Manually? There has to be a way to do this, I was googling information but I can't seem to get it to work. The sites I checked out said to do something along the lines of start /B %WINDIR%\Microsoft.NET\Framework\v2.0.50727\webdev.webserver.exe /path:"D:\MyFolder" /vpath:/HelloWorldWe...
{ "language": "en", "url": "https://stackoverflow.com/questions/286995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: reference path re javascript intellisense I am trying to get intellisense in VS2008 in a js file, foo.js, from another js library/file I've written but cannot figure out the reference path ?syntax?/?string? The library is in a file called common.js which is in the same folder as foo.js I'm working on. Here's the pat...
{ "language": "en", "url": "https://stackoverflow.com/questions/287000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: ASP.Net MVC Loading In Progress Indicator I have an MVC Controller that runs through a process, sets some View Data, and then returns the results of this data back to the user in a View. The process time is dependent on the amount of data that is being processed. I need a good way to display an animated .gif withi...
{ "language": "en", "url": "https://stackoverflow.com/questions/287014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Closing the browser should actually clear the session variables an ASP.net session id I have an ASP.net page. When I am closing the webpage I need to clear the session variables. How to to handle this I need to maintain the timeout to 20 minutes. If he closes and login for any number of times in the 20 minutes timed...
{ "language": "en", "url": "https://stackoverflow.com/questions/287022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I declaratively insert a property value of a page into it's rendering? I would like to have an aspx page that contains something like.... <form id="form1" runas=server > Hello <%= Me.UserName() %> </form> and a code-behind something like... Public Class Somepage inherits SomeOtherPage Private Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/287035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does the choice of language affect who will use the application, especially in terms of web applications? I think this mostly applies to web applications, since you often see things like language and database vendor in regards to web applications, but not so much on desktop applications. If a web application is crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/287037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Forms .NET 2.0: How to draw a PNG icon? Note: Question Using 256 x 256 Vista icon in application deals with using a "Vista" icon as the application's icon. This question deals with manually painting a Vista icon. Note: Question WinForms .NET 2.0: How to paint the proper sized icon? deals with painting a Vist...
{ "language": "en", "url": "https://stackoverflow.com/questions/287041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to determine video dimensions of an mpeg-2 program stream file How do I programmatically find out the width and height of the video in an mpeg-2 transport program stream file? Edit: I am using C++, but am happy for examples in any language. Edit: Corrected question - it was probably program streams I was askin...
{ "language": "en", "url": "https://stackoverflow.com/questions/287053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to insert/embed images in dynamically generated MS Excel file using PHP? I need to export a report to Excel file using PHP i.e. on the fly. I am actually getting data from MySQL and presenting it in HTML tables. I am able to export all this data into Excel file format, except images. I can't point the image sour...
{ "language": "en", "url": "https://stackoverflow.com/questions/287054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scheduled run of stored procedure on SQL server Is it possible to set up somehow Microsoft SQL Server to run a stored procedure on regular basis? A: I'll add one thing: where I'm at we used to have a bunch of batch jobs that ran every night. However, we're moving away from that to using a client application sched...
{ "language": "en", "url": "https://stackoverflow.com/questions/287060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: Canceling request validation using HttpHandler on IIS 7 I have an application that has to deal with getting "special" characters in its URL (like &, +, %, etc). When I'm sending a request to the application using these characters (of course I'm sending them escaped) I'm getting "Bad Request" response code with the m...
{ "language": "en", "url": "https://stackoverflow.com/questions/287065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you use couchDB for web apps like ebay? I mean, can you use couchDB for: * *CRUD of items, users *bids and auctions resolutions *bidirectional califications *forum *items comparison A: You could try to use CouchDB for an application - as to whether you would be successful is another question. Something...
{ "language": "en", "url": "https://stackoverflow.com/questions/287073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Iterating unregistered add-ins (.xla) I need help in * *figuring out how to iterate through currently open Excel add-in files (.xla) that have not been registered in Excel using the Tools > Add-ins menu path. *more specifically, I am interested in any workbook that doesn't appear in the Add-In dialog, but has Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/287077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Git - master working copy the same as clone working copy I've made lots of changes on a cloned git repository. Now I want the master to look exactly like the cloned copy - what command do I need to execute to that the master syncs with the clone? Duplicate of: Git - pulling changes from clone back onto the master A...
{ "language": "en", "url": "https://stackoverflow.com/questions/287081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What do *args and **kwargs mean? What exactly do *args and **kwargs mean? According to the Python documentation, from what it seems, it passes in a tuple of arguments. def foo(hello, *args): print(hello) for each in args: print(each) if __name__ == '__main__': foo("LOVE", ["lol", "lololol"]) T...
{ "language": "en", "url": "https://stackoverflow.com/questions/287085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "289" }
Q: Code coverage targets for APIs What number would you give someone who wants a concrete target number for API code coverage? UPDATE: To clarify, statement/line code coverage. I realize concrete numbers don't make much sense, but this is for the situation where you tell people that concrete numbers don't make much sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/287089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What architecture can I use to handle a shopping cart where each product requries different attributes to be saved I am building an application that is very similar to a shopping cart. The user selects a product from a list, and then based on that product, a few properties need to be set and saved. Example. If the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Inventory database design This is a question not really about "programming" (is not specific to any language or database), but more of design and architecture. It's also a question of the type "What the best way to do X". I hope does no cause to much "religious" controversy. In the past I have developed systems that...
{ "language": "en", "url": "https://stackoverflow.com/questions/287097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: Setting up SSL in Active Directory how-to I need to set up SSL over Active Directory. I googled a lot but could not found a decent write up about how to do this. Please if you know some good resources about this let me know. Thanks! A: Sounds easy - but I ran into quite a few problems getting trusted connections wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/287100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: MySQL strip non-numeric characters to compare I'm looking to find records in a table that match a specific number that the user enters. So, the user may enter 12345, but this could be 123zz4-5 in the database. I imagine something like this would work, if PHP functions worked in MySQL. SELECT * FROM foo WHERE preg_r...
{ "language": "en", "url": "https://stackoverflow.com/questions/287105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: LINQ-to-SQL: Stored Procedure that returns a single scalar value? I am using LINQ-to-SQL for an application that queries a legacy database. I need to call a stored procedure, that selects a single integer value. Changing the stored procedure is not an option. The designer creates a method with this signature: privat...
{ "language": "en", "url": "https://stackoverflow.com/questions/287106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to post SOAP Request from .NET? I have the SOAP request in an XML file. I want to post the request to the web service in .net How to implement? A: I've done something like this, building an xml request manually and then using the webrequest object to submit the request: string data = "the xml document to submi...
{ "language": "en", "url": "https://stackoverflow.com/questions/287126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Retrieving SQL Server Full Text Index terms Using Lucene, one can retrieve the terms contained within in an index, i.e. the unique, stemmed words, excluding stop-words, that documents in the index contain. This is useful for generating autocomplete suggestions amongst other things. Is something similar possible with...
{ "language": "en", "url": "https://stackoverflow.com/questions/287133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Is there a tool to generate web pages based on Java beans? Is there a tool that will take you java beans (pojos) and automatically make them a form for a webpage? To be more clear I have a bunch of Jaxb objects that I want to be able to display in a form without having to code a bunch of html. Is there a tool that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: QuickStart basic layout/template for web development? I'm looking for a quick start or template, or something, to get a web site's basic layout done quickly and looking fairly professional, and then let me do the coding. I don't want a CMS, as this is for a highly customised reporting application, but I need someth...
{ "language": "en", "url": "https://stackoverflow.com/questions/287141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Invoke() is blocking From time to time my applications GUI stops redrawing. There a lot of threads that are firing all kinds of events (like timers or network data ready etc.). Also there are a lot of controls that are subscribing these events. Because of that, all the event handlers play the InvokeRequired/Invoke g...
{ "language": "en", "url": "https://stackoverflow.com/questions/287142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Need a good regex to convert URLs to links but leave existing links alone I have a load of user-submitted content. It is HTML, and may contain URLs. Some of them will be <a>'s already (if the user is good) but sometimes users are lazy and just type www.something.com or at best http://www.something.com. I can't find ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Silverlight and WCF or not? When developing an application wich will be used inside an intranet do you think Silverlight and WCF is a good solution ? Whould you use WCF Services or WCF Web Services to expose your model to the client ? When consuming a WCF Service the proxies will be generated under a reference and y...
{ "language": "en", "url": "https://stackoverflow.com/questions/287165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Contains() and how to implement it Say a class Person +Name: string +Contacts: List<Person> I want to be able to check if a person has a contact with a certain name without having to create a dummy Person instance. person.Contacts.Contains<string>("aPersonName"); This should check all persons in the Contacts ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Transaction level, nolock/readpast and concurrency We have a system that is concurrently inserted a large amount of data from multiple stations while also exposing a data querying interface. The schema looks something like this (sorry about the poor formatting): [SyncTable] SyncID StationID MeasuringTime [Da...
{ "language": "en", "url": "https://stackoverflow.com/questions/287179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Extend a CFC using a relative path I want to extend a CFC in a different directory and I have a couple of options, but can't figure out how to do this: A) Use a dynamic mapping (this will have to be dynamic based on the site, e.g. for the live site it would be cfc.myPackage.MyCFC but on a dev site it would be myCfcR...
{ "language": "en", "url": "https://stackoverflow.com/questions/287187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to know when all ajax calls are complete I have a table style page with rows. Each row has a checkbox. I can select all/many checkboxes and click "submit" and what is does is a Jquery ajax call for each row. Basically I have a form for each row and I iterate over all the checked rows and submit that form which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: How to unit test a grid with paging A common web UI design is to display a sortable grid (GridView, ListView, DataGrid) with paging. That is, the user can click on any column header to cause the records to be sorted in ascending or descending order on that column's data. And, the user can navigate among the pages of...
{ "language": "en", "url": "https://stackoverflow.com/questions/287192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a wizard control in WPF? Are there any wizard type controls in WPF? I need functionality where I can go forward and back and use tabs to select a particular item which will show the details of the nested items. I can use the TabControl control but the tab items are dynamic so I cannot nest the region inside...
{ "language": "en", "url": "https://stackoverflow.com/questions/287193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How to add items to a collection while consuming it? The example below throws an InvalidOperationException, "Collection was modified; enumeration operation may not execute." when executing the code. var urls = new List<string>(); urls.Add("http://www.google.com"); foreach (string url in urls) { // Get all link...
{ "language": "en", "url": "https://stackoverflow.com/questions/287195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add my linq query resultset to a dataset, c# asp.net 3.5 My query is: var query1 = from u in dc.Usage_Computers.AsEnumerable where u.DomainUser == s3 orderby u.OperationTime descending select new { u.ProgramVersion, u.OperationTime...
{ "language": "en", "url": "https://stackoverflow.com/questions/287199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to persist a property of type List in JPA? What is the smartest way to get an entity with a field of type List persisted? Command.java package persistlistofstring; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.Basic; import javax.persistence.Entity; imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/287201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "218" }
Q: Python program start Should I start a Python program with: if__name__ == '__main__': some code... And if so, why? I saw it many times but don't have a clue about it. A: If your program is usable as a library but you also have a main program (e.g. to test the library), that construct lets others import the file as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Suitable data storage backend for Erlang application when data doesn't fit memory I'm researching possible options how to organize data storage for an Erlang application. The data it supposed to use is basically a huge collection of binary blobs indexed by short string ids. Each blob is under 10 Kb but there are man...
{ "language": "en", "url": "https://stackoverflow.com/questions/287233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can a JavaScript modal dialog be modal only to the tab and not to the whole browser window? Modern browsers have multi-tab interface, but JavaScript function window.showModalDialog() creates a modal dialog that blocks all of the tabs. I'd like to know if there is a way to create a modal dialog that blocks only the...
{ "language": "en", "url": "https://stackoverflow.com/questions/287242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is it possible to develop plugins for Microsoft Office Communicator? Is it possible to develop plugins for Microsoft Office Communicator? If so, where does one start -- is there an SDK? A: The Custom Tabs sample app may be just what you are looking for. A: A good place to start would be the SDK. I'm not sure if y...
{ "language": "en", "url": "https://stackoverflow.com/questions/287248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: minimum c++ make file for linux I've looking to find a simple recommended "minimal" c++ makefile for linux which will use g++ to compile and link a single file and h file. Ideally the make file will not even have the physical file names in it and only have a .cpp to .o transform. What is the best way to generate suc...
{ "language": "en", "url": "https://stackoverflow.com/questions/287259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: asp.net wiki user control I'm writing a asp.net web application in which I want the users to be able to apply simple formatting to the text they enter in text areas. One of the possibilities is to use a javascript wisywig editor (like tinymce). However, to keep the text html-clean and readible, I'd prefer that the u...
{ "language": "en", "url": "https://stackoverflow.com/questions/287266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running unit tests on Team Foundation Server (TFS) builds What are the steps to get Team Foundation Server running unit tests when a given build runs? What are the caveats / pitfalls / workarounds a dev or sysadmin should be aware of when setting up a TFS server to do this for the first time? What are common tro...
{ "language": "en", "url": "https://stackoverflow.com/questions/287271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Rewriting methods within a project As a growing dev team we are beginning to encounter the problem of rewriting functions that behave in similar/identical ways. We are all guilty of failing to write documentation as time is a limiting factor, however the idea of gathering all current functions (duplicates and all) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/287274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Performance metrics on specific routines: any best practices? I'd like to gather metrics on specific routines of my code to see where I can best optimize. Let's take a simple example and say that I have a "Class" database with multiple "Students." Let's say the current code calls the database for every student inste...
{ "language": "en", "url": "https://stackoverflow.com/questions/287278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you unit test a FileSystemWatcher event? I am working on a system that processes documents that are dumped into a target directory. I pick up the files by detecting the FileSystemWatcher OnChanged event. As part of a unit test, how should I go about automating this? How should I organize the input files and...
{ "language": "en", "url": "https://stackoverflow.com/questions/287279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery: Is req.readyState == 3 possible? I am a big fan of jQuery and I use it for 95% of all my Javascript needs. However, I am a loading a live page using a COMET method; where in Javascript I retreive the data using AJAX at the point where req.readyState == 3. I was curious if it's possible to do this with jQuery...
{ "language": "en", "url": "https://stackoverflow.com/questions/287286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ListView Empty Markup Text Vista has introduced a new API to display a text in the list view control when it doesn't have any items. As the MSDN library states, I should process the LVN_GETEMPTYMARKUP notification. In the inherited ListView control the WndProc method is overriden: protected override void WndProc(ref...
{ "language": "en", "url": "https://stackoverflow.com/questions/287298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reducing the overhead of a SQL Trace with filters We have a SQL 2000 server that has widely varied jobs that run at different times of day, or even different days of the month. Normally, we only use the SQL profiler to run traces for very short periods of time for performance troubleshooting, but in this case, that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Find class probabilities in matlab PNN and make ROC plot I have a Probablistic Neural Network classification experiment set up in MATLAB. I can get the classes for unseen data using the sim command. Is there any way I can get the probabilities for the classes that the classifier calculates? Also, is there any direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/287309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to automate importing certificates on a Windows CE device? I'd like to automate importing cert(s) on a Windows CE device. Pushing the certs down to the devices is not a problem, but once they are there I cannot determine how to import them without using the UI. (I'm currently using Avalanche Mobility Center) A...
{ "language": "en", "url": "https://stackoverflow.com/questions/287316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you change a hashed password using asp.net membership provider if you don't know the current password? Problem, there's no method: bool ChangePassword(string newPassword); You have to know the current password (which is probably hashed and forgotten). A: You are not able to change the password if the requir...
{ "language": "en", "url": "https://stackoverflow.com/questions/287320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: How to "select until" a sum is reached I'm looking for a way to select until a sum is reached. My "documents" table has "tag_id" and "size" fields. I want to select all of the documents with tag_id = 26 but I know I can only handle 600 units of size. So, there's no point in selecting 100 documents and discarding 90...
{ "language": "en", "url": "https://stackoverflow.com/questions/287333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Using maven as build tool for Weblogic 10.3 I am trying to setup Weblogic Server 10.3 (and Portal etc.) to use maven as a build tool. I am trying to find a decent tutorial or documentation how to do this. There are some tutorials for older versions like 9.0, but there is little info for version 10. I am looking a wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/287335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Can you use a XML-RPC data source for Adobe Flex applications? Can an XML-RPC call be made and the resulting XML response be utilized by Adobe's Flex? Would Flex be better served by a non-XML response and if so what format? A: You could take a look at the as3-rpclib project if you want to use XML-RPC. The Flex stan...
{ "language": "en", "url": "https://stackoverflow.com/questions/287345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I change the textcolor of an InfoPath textfield? I have a textfield within a repeating table. I am able to validate what's inside but if the text does not pass my validation it should change it's color to red. Does anybody know how I can achieve this goal by code? I have found a solution for a rich text box...
{ "language": "en", "url": "https://stackoverflow.com/questions/287352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you pass a Container.DataItem as a parameter? I'm using a repeater control and I'm trying to pass a parameter as such: <%# SomeFunction( DataBinder.Eval(Container.DataItem, "Id") ) %> It's basically calling: public string SomeFunction(long id) { return "Hello"; } I'm not able to achieve this a...
{ "language": "en", "url": "https://stackoverflow.com/questions/287358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Handling large amount of structures in MATLAB I need to handle massive (tens of millions) of MATLAB structs; I needed a dozen or so fields so I reckoned memory won't be an issue until I discovered this ( explanation ) >> s=[]; >> s.first=1; >> whos Name Size Bytes Class Attributes s ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to prevent Visual Studio from automatically adding from obj/Debug to the changeset? For some solutions, when I open them Visual Studio will get files that aren't in the project (particularly from obj/Debug) and add it to the changeset and I always have to perform a Undo Pending Changes operation on th...
{ "language": "en", "url": "https://stackoverflow.com/questions/287365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use WMI to get current Windows username in VBA I was wondering if there was a simple way to use WMI to get you the current windows user name with domain. The Windows API call just gets you the short username, so you end up doing another call for the domain name. I have some code, but I get an automation error. Any i...
{ "language": "en", "url": "https://stackoverflow.com/questions/287369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP/VBScript "Gotchas" I'm supporting/enhancing a web application written in Classic ASP/VBScript. It has been about 10 years since I have used either in a day to day capacity. I just ran across an issue that I would consider a "gotcha" and was wondering if others had similar things that I should learn to be aware...
{ "language": "en", "url": "https://stackoverflow.com/questions/287370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: WPF: Problem with binding values to ComboBox inside GridViewColumn My Views dataContext is bounded to a presentationModel with two observableCollections Members. In the View I have one listView which ItemSource is bound to is the first observableCollection. In one of the LilstViews column I want to present values fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/287372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can you find the number of occurrences of a particular character in a string using sql? How can you find the number of occurrences of a particular character in a string using sql? Example: I want to find the number of times the letter ‘d’ appears in this string. declare @string varchar(100) select @string = 'sfd...
{ "language": "en", "url": "https://stackoverflow.com/questions/287373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Can I programmatically control the 'Rotate 180 Degree checkbox' option in HP Printer Driver settings with VBA? I'm trying to switch on and off the Rotate 180 degree setting for an HP Laserjet printer (4200/ 4350) using a duplexer unit. The Business has a requirement to "print on both sides", for maximum control I'd ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing C++ preprocessor #if statements I have a C/C++ source file with conditional compilation. Before I ship it to customers I want to remove most of the #if statements, so that my customers do not need to worry about passing the right -D options to the compiler. I have this implemented and working in Python, but...
{ "language": "en", "url": "https://stackoverflow.com/questions/287379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: finding all vertices in a graph with degree smaller than their neighbors I'm trying to write an algorithm that will find the set of all vertices in a graph with degree smaller than their neighbors. My initial approach is to find the degree of each vertex, then work through the list, comparing the degree of each vert...
{ "language": "en", "url": "https://stackoverflow.com/questions/287385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flex dataGrid itemRenderer, access cell width and height When writing a custom itemRenderer, how do you reference the height and width of the grid cell that it will be rendered in? In such a way that it will resize correctly when the grid is resized. I am writing a dataGrid itemRenderer that draws a bar graph in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/287398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MSBuild - can it work out project dependencies in a solution file? If so how? I have an msbuild project which builds a SLN file from visual studio which holds all the projects in (about 70+ project), and a lot of the projects are dependent on each other meaning they need to be build in order - sometimes a developer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Introducing generics to Java code without breaking the build The following code does not compile: public class GenericsTest { public static void main(String[] args) { MyList<?> list = new MyList<Object>(); Class<?> clazz = list.get(0); // Does not compile with reason // "Typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/287401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL optional stored proc parameters In MSSQL, when I want to ignore an empty filter parameter, I do the following SELECT * FROM Table WHERE EmployeeName = ISNULL(@EmployeeName, EmployeeName); How would I achieve this in MySQL? A: You can use coalesce() instead.
{ "language": "en", "url": "https://stackoverflow.com/questions/287403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using regular expressions to do mass replace in Notepad++ and Vim So I've got a big text file which looks like the following: <option value value='1' >A <option value value='2' >B <option value value='3' >C <option value value='4' >D It's several hundred lines long and I really don't want to do it manually. The exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/287404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How to stop title attribute from displaying tooltip temporarily? I've got a popup div showing on rightclick (I know this breaks expected functionality but Google Docs does it so why not?) However the element I'm showing my popup on has a "title" attribute set which appears over the top of my div. I still want the to...
{ "language": "en", "url": "https://stackoverflow.com/questions/287407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Deny login to linux machine for users not in AD "Domain Admins" group? So I've setup an Ubuntu server running the 8.04 release. I set it up to authenticate with our Active Directory using the likewise-open package using these instructions. Part of that setup was giving Domain Admin users who login to the machine sud...
{ "language": "en", "url": "https://stackoverflow.com/questions/287408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle packages in version control? Lucky me, I have to work with Oracle. And packages. I have a package that a lot of different developers are touching and it's scaring me. Is it possible to put a package inside of Version Control? Is there some kind of software out there that already does this? If not, is there s...
{ "language": "en", "url": "https://stackoverflow.com/questions/287409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I set the cachability of static files in IIS? I have some static images in a folder on my IIS 6-based website that I want to be downloaded as little as possible (to preserve bandwidth). I've set the Content Expiration to expire after 30 days. Is there anything else I can do in IIS to try to maximize the cachi...
{ "language": "en", "url": "https://stackoverflow.com/questions/287414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }