text
stringlengths
8
267k
meta
dict
Q: How to find the location of the icon in the system tray I have a NotifyIcon control that appears in the system tray. How can I find the location (x, y) of the icon on the screen? Thanks A: Actually you can do this, here is code that shows you how and much more. In any Mouse Event from NotifyIcon, simply look at Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/272778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What is the difference between Oracle Streams and Change Data Capture? There are several similar Oracle technologies - Oracle Streams, Oracle Change Data Capture and Database Change Notification. What are the differences between these? Are they related to Oracle Advanced Queueing? A: Oracle CDC is all about captu...
{ "language": "en", "url": "https://stackoverflow.com/questions/272779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Can I create a unique filename based on ProcessID and ThreadID? I have a delphi (Win32) web application that can run either as a CGI app, ISAPI or Apache DLL. I want to be able to generate a unique filename prefix (unique for all current requests at a given moment), and figure that the best way to do this would be t...
{ "language": "en", "url": "https://stackoverflow.com/questions/272783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Consuming a REST service from WCF I'm not that familiar with WCF, but I thought I'll learn while trying to consume an existing service. One of the REST APIs I thought of was the Twitter API. I thought of developing a WPF client that will just output to the screen the last 5 tweets by a certain Twitter user. I was wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/272791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Best Practice for seeing live data on the dev server? Assumption: live/production web app suppresses errors being shown to end-users. Suppose your tech support team wants to see live data but through the eyes of the development-side of the application (maybe you want to see what errors are occurring, or want to see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vertical (rotated) text in HTML table Is there a (portable) way to rotate text in a HTML table cell by 90°? (I have a table with many columns and much text for the headings, so I'd like to write it vertically to save space.) A: After having tried for over two hours, I can safely say that all the method mentioned so...
{ "language": "en", "url": "https://stackoverflow.com/questions/272799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "119" }
Q: How to parse logs written by multiple threads? I have an interesting problem and would appreciate your thoughts for the best solution. I need to parse a set of logs. The logs are produced by a multi-threaded program and a single process cycle produces several lines of logs. When parsing these logs I need to pull out...
{ "language": "en", "url": "https://stackoverflow.com/questions/272803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intercepting requests in the ASP.NET MVC Framework Is it possible to intercept requests in the ASP.NET MVC Framework (beta 1) in order to interact and inspect them? I need to attach some logging and in some cases dynamically work out if the URL needs authorizing (like applying the Authorize attribute - but at run-ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/272806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is a good Visio Enterprise Architect replacement? I've been using Visio 2002/2003 Enterprise Architect to do my database schema design visually and then forward-generate the DDL to create the database. I wanted to switch to Visio 2007, but while it does have database diagramming support, it doesn't have the abi...
{ "language": "en", "url": "https://stackoverflow.com/questions/272816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Magento products by categories Does anyone know how I can get a list of products belonging to a specific category from within a view file in Magento? A: It all depends on which view you're in. ;-) First off, I hope you stayed within your template set (default in my example). Use this as an example: <?php $_cat ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Get executing assembly name from referenced DLL in C# What is the best way to get the application name (i.e MyApplication.exe) of the executing assembly from a referenced class library in C#? I need to open the application's app.config to retrieve some appSettings variables for the referenced DLL. A: You can get th...
{ "language": "en", "url": "https://stackoverflow.com/questions/272821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Python's os.execvp equivalent for PHP I've got a PHP command line program running. And I want to connect to a mysql shell straight from PHP. I've done this before in Python using os.execvp But I can't get the same thing to work in PHP. I've tried the following functions: * *system *passthru *exec *shell_exec ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: 0x800a03ec when calling Select on an Excel range (IRange). Range was returned from the worksheet's usedrange I'm trying to select the "used range". I get the worksheet's UsedRange, then I invoke the Select function on it. I receive HRESULT 0x800a03ec on the select call. Here's the code: COleVariant result; HRESULT...
{ "language": "en", "url": "https://stackoverflow.com/questions/272847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP Replace Images with GD Library Resampled Images in Joomla I am the tech intern for an online independent newspaper, and the writers on the staff are not tech-savvy. They don't quite understand how web pages work, and often they upload and include images straight from their digital cameras, or scanned from origi...
{ "language": "en", "url": "https://stackoverflow.com/questions/272852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF TreeView Binding I've got a class with Parent and Children properties. ADO.NET Entity Framework Hierarchical Page Class http://img148.imageshack.us/img148/6802/edmxxe8.gif I want to display this hierarchy in a WPF treeview. Here's my XAML... <TreeView Margin="12" Name="TreeViewPages" ItemsSource="{Binding}"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to keep domain name in address bar Is there a better way to keep the domain name unaltered in the adress bar besides using a main frame? A: Using a frame (or some other inner window, via Flash or Silverlight, etc.) really is the only way to do it - if you try to modify the main window's location with JavaScript...
{ "language": "en", "url": "https://stackoverflow.com/questions/272862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best solution for the 'Students and Lockers' problem? I thought that it would be fun to present some classic CS problems and let people show their algorithm optimization skills. The hope is that we get to see some clever techniques to solve abstract problems that we may be able to implement in practice. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C's strtok() and read only string literals char *strtok(char *s1, const char *s2) repeated calls to this function break string s1 into "tokens"--that is the string is broken into substrings, each terminating with a '\0', where the '\0' replaces any characters contained in string s2. The first call uses th...
{ "language": "en", "url": "https://stackoverflow.com/questions/272876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: XML and iSeries RPGLE - development tools? I've got a iSeries to .Net compact framework project. It includes rgple programs exposed as web services and a Windows mobile app that uses the webservices. Each iSeries program has a specific webservice wrapper and the .net app reference each. I would like to come up wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/272877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Graphical changelog in mercurial's hgwebdir.cgi I have a set of mercurial repositories being served online with hgwebdir.cgi. I would like to be able to show a graphical representation of the branches and merges in the same way that this site does. I can't seem to find any reference to how to do that though. Does th...
{ "language": "en", "url": "https://stackoverflow.com/questions/272881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Undefined reference to static class member Can anyone explain why following code won't compile? At least on g++ 4.2.4. And more interesting, why it will compile when I cast MEMBER to int? #include <vector> class Foo { public: static const int MEMBER = 1; }; int main(){ vector<int> v; v.push_b...
{ "language": "en", "url": "https://stackoverflow.com/questions/272900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "215" }
Q: Couldn't find 'rspec' generator I'm trying to install RSpec as a gem after having it installed as a plugin. I've gone ahead and followed the directions found here http://github.com/dchelimsky/rspec-rails/wikis for the section titled rspec and rspec-rails gems. When I run ruby script/generate rspec, I get the error...
{ "language": "en", "url": "https://stackoverflow.com/questions/272908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: In Java when does a URL connection close? When does java let go of a connections to a URL? I don't see a close() method on either URL or URLConnection so does it free up the connection as soon as the request finishes? I'm mainly asking to see if I need to do any clean up in an exception handler. try { URL url = ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/272910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "88" }
Q: What is the best way to organize user generated content in a social network? I'm searching for the best way to automatically organize all user generated content in a social network. I'm building a site in ruby based upon lovdbyless' framework. the site is a place for men to share specialised knowledge. I've looked i...
{ "language": "en", "url": "https://stackoverflow.com/questions/272911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is LazyInit restricted to reference types I have a pseudo-realtime data processing application where I would like to use LazyInit<double> so I don't do calculations I don't need, but LazyInit<T> restricts T to classes. I can work around it, but I'd obviously prefer not to. Does anybody know why this is? A: Ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/272927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I create buttons and hook up events from postback I need to generate buttons initially based on quite a processor and disk intensive search. Each button will represent a selection and trigger a postback. My issue is that the postback does not trigger the command b_Command. I guess because the original but...
{ "language": "en", "url": "https://stackoverflow.com/questions/272928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ADO.NET record navigation I've done development in both VB6 and VB.NET, and I've used ADODB objects in VB6 to handle recordset navigation (i.e. the MoveFirst, MoveNext, etc. methods), and I have used ADO.NET to handle queries in a row-by-row nature (i.e For Each Row In Table.Rows ...) But now I seem to have come to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I create flexible unit tests? We are currently using unit tests to test our project. We have the majority of functionality covered but I think our tests are too brittle. I was wondering if there are any specific things we can be doing to make the unit tests more flexible so they don't break for the wrong r...
{ "language": "en", "url": "https://stackoverflow.com/questions/272949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What hardware changes will affect WebLogic performance the most? When requesting hardware for a WebLogic server, what hardware would best improve its performance? Should I give it lots of memory, CPU, fast hard drives? The OS is going to be Redhat 4 either Standard or Enterprise. A: Memory is cheap. Give it as much...
{ "language": "en", "url": "https://stackoverflow.com/questions/272956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will the c++ compiler optimize away unused return value? If I have a function that returns an object, but this return value is never used by the caller, will the compiler optimize away the copy? (Possibly an always/sometimes/never answer.) Elementary example: ReturnValue MyClass::FunctionThatAltersMembersAndNeverFai...
{ "language": "en", "url": "https://stackoverflow.com/questions/272964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What's "in" and "out" of OpenGL-ES? (Porting from OpenGL) It seems that all of the documentation I can find about OpenGL-ES says something to the effect of "OpenGL-ES is just like OpenGL, but without a lot of stuff. For example, there's no glBegin or glEnd." Ok, that's great. So, what ELSE isn't there any of? Or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272970", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: LinqDataSource/ListView for child records - only save when the containing record is saved? I have a single form for editing an event, in which the user can (a) edit the details of the event (title, description, dates, etc.) in a FormView and (b) view and edit a ListView of contacts who are registered for the event....
{ "language": "en", "url": "https://stackoverflow.com/questions/272973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does TThread work differently in a Delphi 2006 console application? We have a pretty mature COM dll, which we test using DUnit. One of our recent tests creates a few threads, and tests the object from those threads. This test works fine when running the test using the gui front-end, but hangs when running as a conso...
{ "language": "en", "url": "https://stackoverflow.com/questions/272987", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Which Memcached client library should I use for .NET? I've noticed there are a few solutions to allow the use of memcached on C# / ASP.NET: * *memcacheddotnet *enyim.com Memcached Client *BeIT Which one should I use? It seems like the enyim port has more active development, but I wanted to see what you guys re...
{ "language": "en", "url": "https://stackoverflow.com/questions/272989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: using a conditional statement modifier in Rails Templates I have a rails template (.rhtml file) generating a Javascript object. It looks something like the following: var volumes = { <% for volume in @volumes %> <%= volume.id %> : <%= volume.data %> <%= ',' unless volume === @volumes.last %> <% end %> }...
{ "language": "en", "url": "https://stackoverflow.com/questions/272993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generating a WSDL using Python and SOAPpy First of all, I will admit I am a novice to web services, although I'm familiar with HTML and basic web stuff. I created a quick-and-dirty web service using Python that calls a stored procedure in a MySQL database, that simply returns a BIGINT value. I want to return this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Moving data from Word to Access seamlessly I am trying to migrate structured documents (i.e. documents that are mostly some metadata and one big table) to a database. When I try to move tabular data from Word to Excel, my main point of pain is handling CRLFs within a cell in Word. Any solution for this? Now, since I...
{ "language": "en", "url": "https://stackoverflow.com/questions/273005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I convert a datetime column to nvarchar with the format DD/MM/YYYY? I need to select a datetime column in a table. However, I want the select statement to return the datetime as a nvarchar with the format DD/MM/YYYY. A: Here is the convert documentation: https://learn.microsoft.com/en-us/sql/t-sql/functions...
{ "language": "en", "url": "https://stackoverflow.com/questions/273009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Connecting to AdventureWorks database (SQL Server 2005 Express) through Visual Studio Professional 2008 I am following the learning ASP.NET 3.5 by O'REILLY to write some ASP.NET 3.5 code using Visual Studio 2008 SP1. I have gotten to the point to where I need to Configure a Data Source using the SqlDataSource contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/273027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to convert a (short) sample in a soundfile to array of bytes In converting from short to a byte array I found the following solution on the web but could not quite understand the logic involved. //buffer is an array of bytes, bytes[] buffer[position] = (byte)(sample & 0xff); buffer[position+1] = (byte)((sample >...
{ "language": "en", "url": "https://stackoverflow.com/questions/273029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it worth it to write a bunch of 2 liner functions in BLL object just to re-route to DAL? It seems pretty silly to me. What don't I get? A: I've run into cases like this where my app calls a business layer to select a list of values. The business layer then calls through to the Dal to do the data access. In a lot...
{ "language": "en", "url": "https://stackoverflow.com/questions/273038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a quick way to build & install to iPhone (from Xcode) without starting the app? In Xcode, I can use CMD-R to run (or CMD-Y to debug), and my app will compile, install on the phone & start-up. (I've already prepped my phone & Xcode so this part works as expected.) What I'd LIKE to do is type CMD-<something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Python memory debugging with GDB We have a Linux application that makes use of OpenSSL's Python bindings and I suspect it is causing random crashes. Occasionally, we see it crash with the message: Python Fatal Error: GC Object already tracked which would appear to be either a programming error on the part of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to determine the last business day in a given month? How can I calculate the last business day of the month in .NET? A: I could think of this simple C# code which gives you the last business day of current month. This only takes Saturday or Sunday as holidays. Country specific local holidays should be handled m...
{ "language": "en", "url": "https://stackoverflow.com/questions/273048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How efficient is element.cloneNode(true) (deep clone)? I'm building the HTML code within an XML DOM object to be used as the contents of the innerHTML of a div element using an XSL template. Traditionally we create a new XML DOM document and add the input parameters as XML Elements for the transform via javascript. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Testing Web Services Consumer Here are some tools that I have found to test web services consumers: http://www.soapui.org/ https://wsunit.dev.java.net/ Are there any others? I would prefer testing frameworks that are written in Java or Python. A: I have used soapui by a maven plugin. It can create junit-linke repor...
{ "language": "en", "url": "https://stackoverflow.com/questions/273060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iPhone SDK - UIWebView has a grey box over it Sometimes, my UIWebView will have a grey box over part or all of the content. I can't make heads or tails of why it's happening. It happens regularly for certain content. Thanks! --Update-- It seems to occur when the webview is not immediately viewable on the screen -- ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Storing static user data in a C# windows application I have an application that needs to hit the ActiveDirectory to get user permission/roles on startup of the app, and persist throughout. I don't want to hit AD on every form to recheck the user's permissions, so I'd like the user's role and possibly other data on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GPRS Information - Mobile I have almost the worst spec in the world. An application that exists and used to work. My aim is to recreate this app and make it work. It's a very simple util that just displays the following information to screen: * *ARFCN - Absolute Radio Frequency Channel Number *LAC - Location A...
{ "language": "en", "url": "https://stackoverflow.com/questions/273086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a good framework for Database Migrations that is compatibile with SQL Server? I've been spoiled by ActiveRecords. So I'm on the lookout for migration system that can be applied to SQL Server, and either is executed as Java application, or a Win32 Executable. (Of course further compatibility with other DB's...
{ "language": "en", "url": "https://stackoverflow.com/questions/273102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to suppress compiler warning for specific function in VS2005 (VB.Net) I have a class that inherits from a base class and implements the following... Public Function CompareTo(ByVal obj As Object) As Integer Implements System.IComparable.CompareTo Now the base class it inherits from also implements this Syst...
{ "language": "en", "url": "https://stackoverflow.com/questions/273103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Google Docs download en masse These days I keep most of my development notes and documentations in Google Docs. There are time that I'd like to download everything. How is this possible on a Mac and Linux computers, without doing each one individually? Google used to have the ability to download all spreadsheets....
{ "language": "en", "url": "https://stackoverflow.com/questions/273119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How is HttpContext being maintained over request-response I am wondering how the HttpContext is maintained given that the request-response nature of the web is essentially stateless. Is an identifier being for the HttpContext object being sent as part of the __EVENTTarget / __EVENTARGUMENTS hidden fields so that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/273126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple domains, same web application on IIS 6 On IIS 6, is it possible to have multiple domain names pointing to the same web application, and conditionally serve CSS from within the web application based on the domain name? I need to host hundreds of different "skins" on the same web application, with the skin be...
{ "language": "en", "url": "https://stackoverflow.com/questions/273136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Regex for numbers only I haven't used regular expressions at all, so I'm having difficulty troubleshooting. I want the regex to match only when the contained string is all numbers; but with the two examples below it is matching a string that contains all numbers plus an equals sign like "1234=4321". I'm sure there's...
{ "language": "en", "url": "https://stackoverflow.com/questions/273141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "409" }
Q: How to insert a LC_LOAD_DYLIB command into a Mach-O binary (OSX) I'm looking to patch a piece of abandonware with some code. The software is carbon based, so I can not use an InputManager (at least, I do not think I can). My idea was to add a dylib reference to the mach-o header, and launch a new thread when the ini...
{ "language": "en", "url": "https://stackoverflow.com/questions/273142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it possible to "decompile" a Windows .exe? Or at least view the Assembly? A friend of mine downloaded some malware from Facebook, and I'm curious to see what it does without infecting myself. I know that you can't really decompile an .exe, but can I at least view it in Assembly or attach a debugger? Edit to say ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "307" }
Q: CMFCToolTipCtrl or CTooltipManager examples? Has anyone tried using these new VS2008 MFC classes yet? I can't seem to find any examples anywhere. Even the VS2008 samples(1) don't mention these classes. (They use CToolTip.) (1) Update: My mistake. I had downloaded the non-SP1 samples. I see that the SP1 samples have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: .NET: Convert .doc to .htm results in funky characters I've used MS Word automation to save a .doc to a .htm. If there are bullet characters in the .doc file, they are saved fine to the .htm, but when I try to read the .htm file into a string (so I can subsequently send to a database for ultimate storage as a strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/273151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I determine if a port is open on a Windows server? I'm trying to install a site under an alternative port on a server, but the port may be closed by a firewall. Is there a way to ping out or in, on a specific port, to see if it is open? A: On Windows Server you can use netstat -an | where{$_.Contains("Yourpo...
{ "language": "en", "url": "https://stackoverflow.com/questions/273159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "517" }
Q: What is the purpose/meaning of the Version property on a FormsAuthenticationTicket? What is the purpose/meaning of the Version property on a FormsAuthenticationTicket? A: Just storing the ticket version number, you can understand the structure of the ticket by this value. It stores 1 for asp.net 1.1 and 2 for asp.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/273165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How do I dynamically invoke a class method in PHP? How can I dynamically invoke a class method in PHP? The class method is not static. It appears that call_user_func(...) only works with static functions? Thanks. A: As of PHP7, you use an array-like way: // Static call only [TestClass::class, $methodName](...$arg...
{ "language": "en", "url": "https://stackoverflow.com/questions/273169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Visual Studio 2008 Test View Panel Not Showing All Tests I have a set of 6 MSTest test assemblies. When I bring up the Test View window and group by Project all of my projects show up save one. I cannot seem to make Visual Studio understand that this project is a unit test assembly. Resharper's Unit Test Runner has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Problems with Opera and TinyMCE I have been having some general problems with TinyMCE inside Opera. Some of these include: * *the save button produces an error *when submitting to a popup with an entire form, including TinyMCE, nothing gets posted to the popup (when TinyMCE is removed it works fine) Has anyone...
{ "language": "en", "url": "https://stackoverflow.com/questions/273181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UPS Worldship Integration and .net Are there any UPS WorldShip integration APIS or Libraries out there for .net? I've been tasked with integrating our Sample Order application (A VB.Net/SQL Server app) with UPS, and having it write .xml files for the auto import feature though serialization has gotten my foot in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/273190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I safely create a directory (possibly including intermediate directories)? I am writing a file using Python, and I want it to be placed in a specific path. How can I safely make sure that the path exists? That is: how can I check whether the folder exists, along with its parents? If there are missing folders...
{ "language": "en", "url": "https://stackoverflow.com/questions/273192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5453" }
Q: xsl:template match doesn't find matches I'm trying to convert some Xaml to HTML using the .NET XslCompiledTransform and am running into difficulties getting the xslt to match Xaml tags. For instance with this Xaml input: <FlowDocument PagePadding="5,0,5,0" AllowDrop="True" NumberSubstitution.CultureSource="User" xm...
{ "language": "en", "url": "https://stackoverflow.com/questions/273199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: WPF TreeView Binding I've got a class with Parent and Children properties. ADO.NET Entity Framework Hierarchical Page Class http://img148.imageshack.us/img148/6802/edmxxe8.gif I want to display this hierarchy in a WPF treeview. Here's my XAML... <TreeView Margin="12" Name="TreeViewPages" ItemsSource="{Binding}"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access second result set of stored procedure with SQL or other work-around? Python\pyodbc I'm using python\pyodbc and would like to access the second result set of a stored procedure. As near as I can tell, pyodbc does not support multiple result sets. Additionally, I can't modify the stored procedure. Are there any...
{ "language": "en", "url": "https://stackoverflow.com/questions/273203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Are memory leaks ever ok? Is it ever acceptable to have a memory leak in your C or C++ application? What if you allocate some memory and use it until the very last line of code in your application (for example, a global object's destructor)? As long as the memory consumption doesn't grow over time, is it OK to trust...
{ "language": "en", "url": "https://stackoverflow.com/questions/273209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "238" }
Q: Is creating a view on SharePoint tables bad style? I have only been working with sharepoint for three months but right from the start I was told that the SharePoint content db was off limits as MS could change the schema at any time. The recommended route is to use the object model, and in most case I kind of unders...
{ "language": "en", "url": "https://stackoverflow.com/questions/273211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: "No suitable driver" problem with Hibernate3, PostgreSQL 8.3 and Java 5 Does anybody know what's going on here: I run hibernate 3.2.6 against a PostgreSQL 8.3 (installed via fink) database on my Mac OS X. The setup works fine when I use Java 6 and the JDBC 4 driver (postgresql-8.3-603.jdbc4). However, I need this st...
{ "language": "en", "url": "https://stackoverflow.com/questions/273217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's a RDF triple? In layman's terms, what's a RDF triple? A: I think the question needs to be split into two parts - what is a triple and what makes an "RDF triple" so special? Firstly, a triple is, as most of the other commenters here have already pointed out, a statement in "subject/predicate/object" form - i....
{ "language": "en", "url": "https://stackoverflow.com/questions/273218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Help with using LD_PRELOAD I want to create a library with a modified version of printf and then call LD_PRELOAD so when my program calls printf it uses my version. Can someone explain to me how to use LD_PRELOAD and if there is a something special I need to do in my code or my library? A: You just set the environ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: FLASH save frame, to image (tiff, bmp, jpg, gif, png) The title sort of explains itself. I am making some 'genrative' artwork in flash. Now I want to save the frame without making a screenshot so-on and sofort. And perhaps one day i would like to save a batch of frames. Is there an AS3 class/library out there that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use GROUP BY to concatenate strings in SQL Server? How do I get: id Name Value 1 A 4 1 B 8 2 C 9 to id Column 1 A:4, B:8 2 C:9 A: This is just an addition to Kevin Fairchild's post (very clever by the way). I would...
{ "language": "en", "url": "https://stackoverflow.com/questions/273238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "471" }
Q: Is there anything like Winsplit Revolution for Mac OS X? Is there anything like Winsplit Revolution for Mac OS X? A: From the Winsplit website I understand more or less the functionality; in the past I actually used to have my window manager (Waimea) configured to do exactly that in linux. You may try using Quicksi...
{ "language": "en", "url": "https://stackoverflow.com/questions/273242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Force telnet client into character mode I have an application where I accept a socket connection from a telnet client and put up a simple, keyboard driven character GUI. The telnet client, at least on Linux, defaults into line-at-a-time mode, so I always have to do ^]mode char manually. A skim of the relevant RFCs s...
{ "language": "en", "url": "https://stackoverflow.com/questions/273261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Best practices with STDIN in Ruby? I want to deal with the command line input in Ruby: > cat input.txt | myprog.rb > myprog.rb < input.txt > myprog.rb arg1 arg2 arg3 ... What is the best way to do it? In particular I want to deal with blank STDIN, and I hope for an elegant solution. #!/usr/bin/env ruby STDIN.read....
{ "language": "en", "url": "https://stackoverflow.com/questions/273262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "323" }
Q: Light weight HTTP Server library in .NET I'm looking for a small and fast library implementing an HTTP server in .NET My general requirements are: * *Supports multiple simultaneous connections *Only needs to support static content (no server side processing) *HTTP only, HTTPS not needed *Preferably be able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Programmatically pull data types for MS SQL table columns for later insertion Rails has an awesome way of looking up column names and expected datatypes from the DB, alleviating a lot of programming. I'm trying to build something like this in C#.NET, because we have large tables that are ever changing. I'll be addin...
{ "language": "en", "url": "https://stackoverflow.com/questions/273275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mixing MFC and WPF: Modal Dialogs I'm adding C# WPF dialogs to an existing C++ MFC app, using a C++/CLI interface layer. I've got things working, except I'm having a problem with modality. For example: * *MFC app shows a WPF dialog using ShowDialog. Works as expected. *That WPF dialog shows a MFC dialog using Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/273276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows Temperature Monitor As part of an application for a client, I need to have a section which reports temperature information (motherboard, CPU, HDD). I know there are standalone applications such as Hardware Monitor by CPUID, but again, these are standalone and I require something that I could interface with....
{ "language": "en", "url": "https://stackoverflow.com/questions/273279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web Site Designing for Mobile I just added printing capability to a web site using a style sheet (ie. @media print, etc.) and was wondering if I could use a similar method for adding support for mobile devices. If not, how do I detect a mobile device? My pages are C# (.aspx) and I'd like to scale back the pages for...
{ "language": "en", "url": "https://stackoverflow.com/questions/273283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Add New Row to GridView without DataBind I have a GridView that allows editing the values in every column, in every row, all the time. The user enters in all their changes, clicks Save once and all changes are commited. The user must also be able to click the New button, have a new row appear in the GridView (yep, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What's your favorite dummy line to put a break point on? Few of us would deny the awesomeness of debuggers, but to make it more useful, some tricks can be used. For example in Python, you can use pass to do absolutely nothing except to leave you room to put a break point and allow you to observe the values in the W...
{ "language": "en", "url": "https://stackoverflow.com/questions/273297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: CallContext vs ThreadStatic What are differences between CallContext and ThreadStatic? I've understood that in an ASP.NET environment data stored in CallContext could be persisted throughout the request until it ends while ThreadStatic may or may not work since the request may switch threads. I've also learned that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Is there a way to use Active Directory pass-through security to SQL Server 2005 and disallow types of connectivity, such as ODBC We have an internal application that is using a service account and fine-grained table and field control is controlled by permissions tables in the application. If we wanted to use pass-th...
{ "language": "en", "url": "https://stackoverflow.com/questions/273306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I need a quick and dirty way to append to a text file in vb.net I've got a very small standalone vb.net app that gets run automatically. Every now and then it hits an error condition that I want to log and then keep processing. But, this is far too minor a thing to store in the system's main log - I really just wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/273307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to allow both a servlet and client-side scripts read the same file? We want to share user validation configuration between a Java validation class (for sanity checking) and a Javascript-enabled form web interface (for usability). What's the best way to deploy this static file in our web applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/273309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Randomize a List What is the best way to randomize the order of a generic list in C#? I've got a finite set of 75 numbers in a list I would like to assign a random order to, in order to draw them for a lottery type application. A: EDIT The RemoveAt is a weakness in my previous version. This solution overcomes that....
{ "language": "en", "url": "https://stackoverflow.com/questions/273313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1086" }
Q: Latex Math Symbol: Vitanyi puts a tiny plus symbol over his equals. How do I do that? For example, in http://homepages.cwi.nl/~paulv/papers/algorithmicstatistics.pdf at the bottom of page 5 and top of page 6, he uses a plus/equal symbol and a similar plus/lessthan symbol. I can't figure out how to make that symbol,...
{ "language": "en", "url": "https://stackoverflow.com/questions/273314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Configuration Management Application Block Anyone have any experience using the Microsoft Configuration Management Application Block? This is an older piece of code off of their website, but seems like it might be useful as a standard way of storing/reading configuration values for .Net applications. Is it a good/ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/273329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What component should I use to draw a dendrogram in Java? Dendrogram is not a regular diagram. Should I use any component from javax.swing.* library, or just draw it with java.awt.Graphics? A: Might also be worth checking: yWorks and JGraph A: I don't think there is a standard component for this. Unless some compo...
{ "language": "en", "url": "https://stackoverflow.com/questions/273333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone and HTML5 Cache Manifest I am trying to build an iPhone web application using ASP.NET. The page is dynamically rendered once for each visitor. At this point the page can be bookmarked and it will never change again for that visitor. For this reason it should be cached locally from that point on so the applic...
{ "language": "en", "url": "https://stackoverflow.com/questions/273350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to avoid circular data-access object dependencies when you need to do lazy loading (and using an IOC Container)? Note: The examples below are C# but this problem should not be specific to any language in particular. So I am building an object domain using a variant of the S# Architecture. For those unfamiliar w...
{ "language": "en", "url": "https://stackoverflow.com/questions/273353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are single quotes allowed in HTML? I am a big time user of using double quotes in PHP so that I can interpolate variables rather than concatenating strings. As a result, when I am generating HTML I often use single quotes for setting tag fields. For example: $html = "<input type='text' name='address' value='$address...
{ "language": "en", "url": "https://stackoverflow.com/questions/273354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "164" }
Q: Best "process" to change over plain HTML pages to ASP .NET aspx pages? I have some pages on my site that are plain HTML pages, but I want to add some ASP .NET type functionality to these pages. My concern is that if I simple rename the .html page to .aspx that I will break links, and lose SEO, and so on. I would thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/273356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: BlendFunc for textured fonts with changing background I am attempting to use Textured fonts as so that I can display text in my openGL scene. However I am having trouble finding glBlendFunc values that will work. The background that the text will be placed on is a grayscale image but will change throughout the exec...
{ "language": "en", "url": "https://stackoverflow.com/questions/273369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Real vs. Floating Point vs. Money Why when I save a value of say 40.54 in SQL Server to a column of type Real does it return to me a value that is more like 40.53999878999 instead of 40.54? I've seen this a few times but have never figured out quite why it happens. Has anyone else experienced this issue and if so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/273371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }