text
stringlengths
8
267k
meta
dict
Q: javax.faces.application.ViewExpiredException after upgrading to icefaces 1.7.2 Hello I've just upgraded icefaces 1.7.1 to 1.7.2 and started to get javax.faces.application.ViewExpiredException exceptions after clicking twice on the same link. I'm using JBoss Seam 2.0.2 and I suppose that it is some stupid mistake I'v...
{ "language": "en", "url": "https://stackoverflow.com/questions/271698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing HtmlHelpers in ASP.NET MVC Is there any way to (unit) test my own HtmlHelpers? In case when I'd like to have custom control (rendered by HtmlHelper) and I know requierements for that control how could I write tests first - and then write code? Is there a specific (nice) way to do that? Is it worth? A: If a...
{ "language": "en", "url": "https://stackoverflow.com/questions/271699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: JBoss AS / Wildfly community version corresponding to Red Hat EAP version? As far as i know the EAP editions of JBoss Application Server (AS) are just a bunch of community edition JBoss projects with some sugar. So, what is the community edition of the JBoss Application Server that JBoss EAP 4.3.0 corresponds to? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/271700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Busting out of an iframe using meta-refresh or javascript? I basically have a page which shows a "processing" screen which has been flushed to the browser. Later on I need to redirect this page, currently we use meta refresh and this normally works fine. With a new payment system, which includes 3D secure, we pot...
{ "language": "en", "url": "https://stackoverflow.com/questions/271706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Collection versus List what should you use on your interfaces? The code looks like below: namespace Test { public interface IMyClass { List<IMyClass> GetList(); } public class MyClass : IMyClass { public List<IMyClass> GetList() { return new List<IMyClass>(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "182" }
Q: Completely Disabling WCF Proxy How can I configure WCF service and client to completely bypass proxy settings configured in IE. My application works in a LAN and I use both BasicHttp and NetTcp endpoints. A: In the binding configuration set useDefaultWebProxy to false.
{ "language": "en", "url": "https://stackoverflow.com/questions/271714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What should I do while I'm waiting for the build / the tests / the database migrations to run? As best-behaved as I try to be about keeping my unit tests disconnected from the database, etc. etc, it still seems inevitable that my day will be interrupted by small regular enforced breaks while I wait for my machine to...
{ "language": "en", "url": "https://stackoverflow.com/questions/271716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Loading a value on the insert command of a detailsview In a detailsview, how can I prepopulate one of the textboxes on the insertcommand (When the user clicks insert and the view is insert). I think this would work for codebehind: Dim txtBox As TextBox = FormView1.FindControl("txtbox") txtbox.Text = "Whatever I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/271718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to consume data from an ASP.NET MVC from a different website? I am playing around with ASP.NET MVC for the first time, so I apologize in advance if this sounds academic. I have created a simple content management system using ASP.NET MVC. The url to retrieve a list of content, in this case, announcements, loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/271724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is causing the LIKE statement to disregard html-tags, words after commas, or end in periods? I'm working on a search module that searches in text columns that contains html code. The queries are constructed like: WHERE htmlcolumn LIKE '% searchterm %'; Default the modules searches with spaces at both end of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/271725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Am I supposed to be able to alter other controls from an ASP.NET page event handler? I'm trying to disable a label control from the CheckedChanged event handler of a checkbox. Should I be able to do this? At the moment if I set Enabled to false nothing changes when the page reloads. If I do the same thing in Page_Lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/271727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to select maximum 3 items per users in MySQL? I run a website where users can post items (e.g. pictures). The items are stored in a MySQL database. I want to query for the last ten posted items BUT with the constraint of a maximum of 3 items can come from any single user. What is the best way of doing it? My p...
{ "language": "en", "url": "https://stackoverflow.com/questions/271730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Remove the Query String from a Url in HTML with a Regular Expression Given a html document, what is the most correct and concise regular expression pattern to remove the query strings from each url in the document? A: You can't usefully parse HTML with a regexp. If you know the format of the page in advance — eg. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: regex for html parsing (in c#) I'm trying to parse a html page and extract 2 values from a table row. The html for the table row is as follows: - <tr> <td title="Associated temperature in (ºC)" class="TABLEDATACELL" nowrap="nowrap" align="Left" colspan="1" rowspan="1">Max Temperature (ºC)</td> <td class="TABLEDATACE...
{ "language": "en", "url": "https://stackoverflow.com/questions/271741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Asp.Net MVC: Server Controls vs Html class to render controls? What are the advantages of rendering a control like this: <% Html.RenderPartial("MyControl") %> or <%=Html.TextBox("txtName", Model.Name) %> over the web Forms style: <uc1:MyControl ID=MyControl runat=server /> I understand that performance can be one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the difference between and , and ? What's the difference between <b> and <strong>, <i> and <em> in HTML/XHTML? When should you use each? A: Here's a summary of definitions together with suggested usage: <b> ...a span of text to which attention is being drawn for utilitarian purposes without conveying any e...
{ "language": "en", "url": "https://stackoverflow.com/questions/271743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "909" }
Q: ModelBinding in asp.net mvc Beta1 I converted my web application from preview 3 to beta1 and am now trying to put the new functions of the framework to use. One of them is ModelBinding. For this particular situation I created a class that is (for now) just a container of a bunch of simple-type properties. If I creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/271745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Someone knows a mail (SMTP) delivery library for Java? I'd like to send mail without bothering with the SMTP-Server which is used for delivery. So JavaMail API doesn't work for me because I have to specify a SMTP server to connect to. I'd like the library to find out on its own which SMTP server is responsible for w...
{ "language": "en", "url": "https://stackoverflow.com/questions/271747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Regular expression for search terms not preceded or followed by [a-z] and [A-Z] Can someone supply me with a regex to match a search term that is not preceded or followed by [a-z] and [A-Z]? (Other characters are OK.) I.e., when searching for key, I don't want keyboard in my search results, but key. is okay. A: Sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/271762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WebClient.DownloadDataAsync is freezing my UI I have in my Form constructor, after the InitializeComponent the following code: using (WebClient client = new WebClient()) { client.DownloadDataCompleted += new DownloadDataCompletedEventHandler(client_DownloadDataCompleted); client.DownloadDataAsync("http://exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/271767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Moving sharepoint installation to a different port / URL We've installed Windows Search Server Express on one of our servers, which apparently runs on top of sharepoint. Sharepoint was installed on port 80, where our "normal" intranet runs. When I disable the intranet and run the sharepoint site, everything works as...
{ "language": "en", "url": "https://stackoverflow.com/questions/271772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Java: Determine receiving address when receiving with MulticastSocket I am using MulticastSocket to receive UDP Multicast packets. How can I determine to which address such a packet was sent? With the methods provided, I am only able to determine the sender address. Of course, I am the one who sets the To-Address wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/271800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Home-grown ORM vs. DataTables? This is a simplification of the issue (there are lots of ways of doing things), but among applications that need to talk to a database I have usually seen one of two patterns: * *Object-Relational Mapping (ORM), where (usually) each table in the database has a corresponding "row wra...
{ "language": "en", "url": "https://stackoverflow.com/questions/271806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Write Unit tests into an assembly or in a separate assembly? When writing unit tests, do you place your tests inside the assembly you wish to test or in a separate test assembly? I have written an application with the tests in classes in a separate assembly for ease of deloyment as I can just exclude the assembly. D...
{ "language": "en", "url": "https://stackoverflow.com/questions/271808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Best way to show default values for empty fields returned from a database query? Is there a better way to write this code? I want to show a default value ('No data') for any empty fields returned by the query: $archivalie_id = $_GET['archivalie_id']; $query = "SELECT a.*, ip.de...
{ "language": "en", "url": "https://stackoverflow.com/questions/271815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A question of style - approaches to styling and stylesheets I have a site that usually has news items at the top of the homepage, and sometimes (for specific periods) will have one or more 'quicklinks' beneath the news items, to guide users to pages of topical interest. Beneath those is the usual blurb. We have alte...
{ "language": "en", "url": "https://stackoverflow.com/questions/271821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How should I stress test / load test a client server application? I develop a client-server style, database based system and I need to devise a way to stress / load test the system. Customers inevitably want to know such things as: • How many clients can a server support? • How many concurrent searches can a server...
{ "language": "en", "url": "https://stackoverflow.com/questions/271825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: VS Solution, projects vs dlls best practice Whenever I have a library that use across different websites/ applications I've always just added the library's project into the same solution and reference it from there. This is great when needing to debug within the solution but in all other situations it seems pointles...
{ "language": "en", "url": "https://stackoverflow.com/questions/271828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is it possible to start a custom thread in an IIS hosted C++ application? We host a C++ based WebServices application in IIS and we're finding that when we try to start our own C++ threads IIS has a fit and crashes. The threads are based on boost.thread which clearly dribbles down to the standard Windows threading ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DoubleBuffered property being added in the dfm in Delphi 2009 does not exist in Delphi 2007 Does that mean that I can't share a Form between delphi 2007 and 2009? A: Yes. It is not possible unless you remove the properties that are not published in Delphi 2007 from the DFM. A: Delphi projects have always been extr...
{ "language": "en", "url": "https://stackoverflow.com/questions/271843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MFC: Changing font of a List control I need to at run time change the font of a List Control so as to used a fixed width font. I have seen some examples which suggest I should trap the NM_CUSTOMDRAW message, but I was wondering if there was a better way of doing it. Thanks. A: Create an appropriate CFont object, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/271845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to track down tricky memory leak with fastMM? After upgrading a project from Delphi 2007 to Delphi 2009 I'm getting an Unknown memory leak, so far I've been tryin to track it down using fastMM, here is what fastMM stack trace reports: A memory block has been leaked. The size is: 20 This block was allocated by t...
{ "language": "en", "url": "https://stackoverflow.com/questions/271850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: where to get files for cd for clickonce I have created a clickonce deployment and published it to a website. I want to put the installer (version 1.0.0) on a cd for distribution to clients. A setup.exe was created in the route of the published folder but this is very small and cannot be the whole thing required for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to scan a webpage and get images and youtube embeds? I am building a web app where I need to get all the images and any flash videos that are embedded (e.g. youtube) on a given URL. I'm using Python. I've googled, but have not found any good information about this (probably because I don't know what this is call...
{ "language": "en", "url": "https://stackoverflow.com/questions/271855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sharing JavaScript code between .NET desktop and browser I have a set of core, complicated JavaScript data structures/classes that I'd like to be able to use both in the browser as JavaScript and run on the desktop with .NET 3.5. Is it possible to compile web-friendly JavaScript into assemblies that my C# code can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to test a webapplication? If I have java-webapp (servlets), what is the best way to create automated tests for this application? Should I start a server? But that is very fragile. Should I call the servlets directly? But how can this be done? I don't know how to create a ServletResponse/ServletRequest. And what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Best way to connect to MySQL locally? MySQL offers many ways (on Windows) to connect to it, those are: * *Shared memory *Named pipes *TCP/IP My question is, if MySQL will be run on the same machine of the web server, then which method is best for security and performance? P.S. This is a one web server scenari...
{ "language": "en", "url": "https://stackoverflow.com/questions/271864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Enabling controls at moment of opening a form in Access I have a form whose controls I want to enable/disable depending on the values in a ComboBox control. This ComboBox control is linked, like all the other controls in the form, to a table. Inside the ComboBox's Change event, I placed the code that enables/disab...
{ "language": "en", "url": "https://stackoverflow.com/questions/271870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: auto scolling of JEditorPane I am using a JEditorPane as an editor to write comments in my application. The content type is set "text/plain". When I am writing text in it and the text fills the available space and I go on typing, the text is not moving upward to show the cursor. So I dont know where I am typing and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best practice for handling null strings from database (in Java) In my database application I sometimes have to deal with null strings in the database. In most cases this is fine, but when it comes do displaying data in a form the Swing components - using JTextField for example - cannot handle null strings. (.setText...
{ "language": "en", "url": "https://stackoverflow.com/questions/271888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there any fast way to get an from a by value, using JavaScript? I have a <select>. Using JavaScript, I need to get a specific <option> from the list of options, and all I know is the value of the option. The option may or may not be selected. Here's the catch: there are thousands of options and I need to do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/271892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Integrating PayPal checkout I have a shop system that integrates PayPal in the usual way, i.e. the user is redirected to paypal.com to log in and confirm the payment after which the user is directed back at a confirmation page in my shop system. Now my customer is asking if the entire process can be run inside the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/271899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Can you detect if a C# field has been assigned a default value? Say you have a class declaration, e.g.: class MyClass { int myInt=7; int myOtherInt; } Now, is there a way in generic code, using reflection (or any other means, for that matter), that I can deduce that myInt has a default value assigned, whereas ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to detect using c# if a pendrive is plugged into a USB port? Is there a way to find out when in a LAN anyone plugs in a pendrive to the USB port? Programatically (in C# preferably) or through some tool. Basically I'd imagine a client application sits on each terminal and monitors the USB ports and sends the inf...
{ "language": "en", "url": "https://stackoverflow.com/questions/271907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Best way to make a flash "popup" On my website I want a small flash banner which the user can activate somehow and it grows a lot larger to display a lot more information. I've seen advertising banners which annoyingly do this when you mouse over them although I'd want to ask the user to click a specific "more" butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/271916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do I add a SQL Server 2008 service instance? I upgraded from SQl server 05 to 08 and had a few issues. After uninstalling 05 and a few restarts later 08 installed okay, but now I don't have any SQL Server services running. I can't connect to (local)\SQLExpress or .\SQLEXPRESS via SQL Server management studio and...
{ "language": "en", "url": "https://stackoverflow.com/questions/271923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is your favourite plugin in Emacs? I find the following things extremely useful in my daily work: * *ido *emacs muse *Cscope *desktop *tabbar A: * *anything - its an easy to extend quicksilver for emacs. Nuff said. *Cedet *nxml + nxhtml *ecb *yasnippets *Org (jsut started, already awesmoe) *All...
{ "language": "en", "url": "https://stackoverflow.com/questions/271924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to install packages locally? Background: I have a kubuntu laptop right now that I can't use wirelessly, i.e. I haven't got wireless assistant installed. But I have a windows laptop that I can download the debian packages seperately on a USB memory stick. How do I install a debian package on the computer locally?...
{ "language": "en", "url": "https://stackoverflow.com/questions/271938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Singleton getInstance in thread worker methods This question is about using getter methods of a singleton object in worker threads. Here is some pseudo code first: // Singleton class which contains data class MyData { static MyData* sMyData ; int mData1[1024]; int mData2[1024]; int mData3[1024]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Storing temporary user files in ASP.NET in medium trust I have a scenario where users of my ASP.NET web application submit testimonials consisting of text info and images. The submit process has the following steps: * *First the user inputs the content and chooses a path to an image *When he clicks preview, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Oracle synonyms selection Got into a situation where in a schema i have a table, say table ACTION , while i got a synonym called ACTION as well which refers to another table to another schema. Now, when i run the query select * from ACTION it will select the records from the table, but not the synonym. Anyway for me...
{ "language": "en", "url": "https://stackoverflow.com/questions/271953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Anyone know the magic to connect Access 2007 to SQL Server 2008? I never use Access 2007 - until today. I want to connect to an existing SQL Server 2008 database. I have tried using: * *External Data ODBC option - but get DSN errror *Upsizing wizard with ODBC - get an error *Upsizing wizard with SNAC - get ODBC...
{ "language": "en", "url": "https://stackoverflow.com/questions/271954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server 2005 - get an XML field into a file; some xml fields into their own files I got a row structure looks like ID bigint, ScanRept XML I want to wind up with a file named 4.xml containing just the xml from the ScanRept column where the ID number is 4. I don't want to do it interactively (by going into Manager...
{ "language": "en", "url": "https://stackoverflow.com/questions/271957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting mouse position Is there a function in glut which moves the mouse to a specific position? There is a similar function in SDL (SDL_WarpMouse) but I want to stick to glut. A: I've just found it, you just have to ask the right question and google helps :D Its glutWarpPointer(middleX, middleY); A: Unless you al...
{ "language": "en", "url": "https://stackoverflow.com/questions/271965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: About using F# to create a Matrix assembly usable from C# There are no builtin matrix functions in C#, but there are in the F# powerpack. Rather than using a third party or open source C# library, I wonder about rolling my own in F#, and exposing the useful bits to C#. Wondered if anybody has already thought of thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/271966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I improve/replace sprintf, which I've measured to be a performance hotspot? Through profiling I've discovered that the sprintf here takes a long time. Is there a better performing alternative that still handles the leading zeros in the y/m/d h/m/s fields? SYSTEMTIME sysTime; GetLocalTime( &sysTime ); char b...
{ "language": "en", "url": "https://stackoverflow.com/questions/271971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is more efficient - server calls with ASP.NET AJAX or jQuery? I used jQuery exclusively on my last project to do all my AJAX calls. I used both $.ajax and $.getJSON calls to return data to the page. However, I see a ton of examples online using jQuery to handle UI and data formatting, but using ASP.NET AJAX to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/271972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: GAC Problem: Keep getting old version I've created a simple httpModule, registered it on GAC and added it to the global web.config. I've made some changes to the module, updated the version and changed it also on the web.config. What happens is that i keep getting the old version. I've restarted the computer, remove...
{ "language": "en", "url": "https://stackoverflow.com/questions/271976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copying BLOB values between databases with pure SQL in SQL Server I need to pull some BLOB data from a SQL Server 2005 database and generate a SQL script to insert this same data in another database, in another server. I am only allowed to do this using SQL scripts, I can't use any other utility or write a program i...
{ "language": "en", "url": "https://stackoverflow.com/questions/271979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Signing a desktop application I'd like to know how to have a desktop application signed as a product from my company. I'm not sure of the details.I think the process is I have to purchase a certificate from a company like verisign Thanks A: You need to sign the code with an Authenticode certificate. Full informatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/271980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting Windows XP colours in .NET I am trying to get a specific colour used by Windows XP in my .NET application. In Windows XP, if you go the Control Panel in 'category view', on the left hand side you have some 'See Also' options (Windows Update, Help and Support, Other Control Panel Options). The colour I'm try...
{ "language": "en", "url": "https://stackoverflow.com/questions/271992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Authenticate user in a ms-access database I have a MS-access database. But it is on the shared drive. And it is required that only some selected number of people can use it. Is there a way to authenticate the user? A: Yes, open the database then run the Tools->Security->User-Level Security Wizard. It will step you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: modify the installation popup for clickonce Having sorted out an issue with clickonce deployment the client has asked whether we can modify the installation sequences and pretty them up. Can anyone shed any light on how to customise the look and feel of the clickonce initial installer? A: Are you are talking about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting the ID of an embedded ASP Object using JavaScript and jQuery I am using jQuery to try and trigger a method when an ASP.NET (2.0) dropdown list's change event is handled by jQuery. The problem is that the drop down list is located inside a gridview and even then only when a user has decided to edit a row with...
{ "language": "en", "url": "https://stackoverflow.com/questions/272007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Searching for the best PHP nested sets class (PEAR class excluded) I'm looking for a PHP (with MYSQL) nested sets class with all needed functions. For example: createLeftNode, createRightNode,createRootNode, createSubNode,deleteNode and moveTree. Not only 1 left, 1 right, 1 up and 1 down but also a part of a tree i...
{ "language": "en", "url": "https://stackoverflow.com/questions/272010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C# Float vs. VB.net Single - Namin' complainin' Why is it called a single in VB.net? I'm sure there is a good reason but it doesn't seem intuitive to a non formally trained programmer like me. A: The reason is that both single and double are both Floating Point numbers. single is short for Single Precision Floatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/272013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to limit the number of users that can access a SharePoint site collection? We're implementing a hosted Windows SharePoint Services 3.0 system and I need to limit the number of users that a customer can give access to a site collection. A customer should be able to manage his entire site collection. He should jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/272028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Shadow Copying, and mixed C# and C++ DLLs loading from arbitrary folders I have a VS 2005 C# project that uses a special Plugin folder to load extra DLLs (for use as nodes in an asset conversion process). I have a mixture of C# and C++ DLLs in this folder. The issue I have is that when Shadow Copying is enabled, the...
{ "language": "en", "url": "https://stackoverflow.com/questions/272030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get the icon associated with a file type? I have a form that displays file information in a TabControl, and I'd like the pages to have the file's icon in their tab. How do I get the icon associated with a file type? I'd prefer solutions that don't involve looking things up in the registry, but if that's th...
{ "language": "en", "url": "https://stackoverflow.com/questions/272035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Alternative to GetProcessID for Windows 2000 I've accidentally removed Win2K compatibility from an application by using GetProcessID. I use it like this, to get the main HWND for the launched application. ShellExecuteEx(&info); // Launch application HANDLE han = info.hProcess; // Get process cbinfo.han = han; //Ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/272036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Conditionally wrap HTML elements In my Seam application, I have a Seam component that returns a (@Datamodel) list of items I want to transform into a set of <li> HTML elements. I have this working without a problem. But now, I want to split up the list according to an EL expression. So the EL expression determines ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: User Authentication in Django is there any way of making sure that, one user is logged in only once? I would like to avoid two different persons logging into the system with the same login/password. I guess I could do it myself by checking in the django_session table before logging in the user, but I rather prefer u...
{ "language": "en", "url": "https://stackoverflow.com/questions/272042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I delete all the records in a table that have corresponding records in another table I have two tables A and B. I would like to delete all the records from table A that are returned in the following query: SELECT A.* FROM A , B WHERE A.id = B.a_id AND b.date < '2008-10-10' I have tried: DELETE A WHERE i...
{ "language": "en", "url": "https://stackoverflow.com/questions/272045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to put BIDS solutions under source control? I am starting to work with Microsoft BI suite: Analysis services 2005, Business Intelligence Development Studio 2005, stuff like that. Of course my first wish was to set up the same source control/automated testing environment I have for my .NET projects. But xml fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/272090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: .net dynamically refresh app.config How do I dynamically reload the app.config in a .net Windows application? I need to turn logging on and off dynamically and not just based upon the value at application start. ConfigurationManager.RefreshSection("appSettings") does not work and I've also tried explicitly opening ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Embedding a YUI Treeview inside a menu I want to have a website navigation menu, where whenever someone clicks on it, a treeview with checkboxes appears, where they can select nodes in the tree. Is this possible with YUI Treeview (http://developer.yahoo.com/yui/treeview/ ) or will I have to make it myself? A: Yes, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I remove and transform selective HTML tags? I have a csv file of the format: 270291014011 ED HARDY - TRUE TO MY LOVE - Cap NEU 2008 NEU 0,00 € 0,00 € 0 1 0 22.10.2008 03:37:10 21.11.2008 02:37:10 21.11.2008 02:42:10 50 0 0 0 39,99 € http://i7.ebayimg.com/02/i/001/16/0d/68af_1.JPG?set_...
{ "language": "de", "url": "https://stackoverflow.com/questions/272109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: User Interface Privilege Isolation in XP SP3 Just after a bit of confirmation really: Does XP SP3 implement the User Interface Privilege Isolation (UIPI) mechanism found in Vista? Back story for human interest :) I've recently been handed the C++ source to a fairly large application. Sadly the sole developer of this...
{ "language": "en", "url": "https://stackoverflow.com/questions/272112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: One or multiple servlets per webapp? I know, it depends on the webapp. But in the normal case, what do you do: one servlet, that serves different pages (like an standalone-application with changing content) or for every page a single servlet. Take for instance a blog. There is the start-page with the most recent blo...
{ "language": "en", "url": "https://stackoverflow.com/questions/272118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Mach-O binary editor for OSX? py-macholib does not work properly on osx (using darwin ports). I have not found any other alternative. Any ideas? A: Try this: MachOView
{ "language": "en", "url": "https://stackoverflow.com/questions/272121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to implement tooltips for JTree? since JTree & TreeModel don't provide tooltips straight out-of-the-box, what do you think, what would be the best way to have item-specific tooltips for JTree? Edit: (Answering my own question afterwards.) @Zarkonnen: Thanks for the getTooltipText idea. I found out another...
{ "language": "en", "url": "https://stackoverflow.com/questions/272124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Buildfarms : Options We use Incredibuild here to compile our code in a distributed fashion. I was wondering if there are any open source (or free) alternatives to use on a home network? Failing that, are there any other simple solutions with good integration with Visual Studio out there? EDIT: I should say that I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/272128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Dynamic resizing / repositioning of divs for multi-column viewing Setup I have a website that draws RSS feeds and displays them on the page. Currently, I use percentages on the divs that contain each feed, so that multiples can appear next to each other. However, I only have two next to each other, and if the window...
{ "language": "en", "url": "https://stackoverflow.com/questions/272131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use the iPhone's built-in PDF viewer to display a document I would like to create an application that downloads a PDF document from the Internet, and displays it to the user. I would like to re-use the iPhone's builtin PDF viewer that is used throughout the core apps to view a PDF document. Is there a way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What do I have to do to convert a DIB to a BMP? What do I have to do to convert a DIB to a BMP? A: The documentation of the Bitmap Header Types is at http://msdn.microsoft.com/en-us/library/dd183386%28VS.85%29.aspx. In code, the difference between a bmp file and a dib memory representation is the presence of the BI...
{ "language": "en", "url": "https://stackoverflow.com/questions/272152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is it necessary to call :this() on a struct to use automatic properties in c#? If I define a struct in C# using automatic properties like this: public struct Address { public Address(string line1, string line2, string city, string state, string zip) { Line1 = line1; Line2 = line2; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Lighting issues in OpenGL I have a triangle mesh that has no texture, but a set color (sort of blue) and alpha (0.7f). This mesh is run time generated and the normals are correct. I find that with lighting on, the color of my object changes as it moves around the level. Also, the lighting doesn't look right. When I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET MVC can't find route programmatically I have the following one route, registered in my global.asax. routes.MapRoute( "Home", // Unique name "", // Root url new { controller = "Home", action = "Index", tag = string.Empty, page = 1 } ); kewl. when I start the site, it correctly picks up t...
{ "language": "en", "url": "https://stackoverflow.com/questions/272159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I use static members, for example static structures, in my classes in VS2008? When I write code like this in VS 2008: .h struct Patterns { string ptCreate; string ptDelete; string ptDrop; string ptUpdate; string ptInsert; string ptSelect; }; class Q...
{ "language": "en", "url": "https://stackoverflow.com/questions/272161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it possible for an ASP.NET server to generate the same GUID to more than one user? I have seen the GUID Collisons discussions but just wanted your thoughts on whether there could be a GUID collision if both clients accessed the same web page that generates the GUID at exactly the same time (- probably down to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/272169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it feasible to make iPhone apps using just OpenGL and not Cocoa Touch? I'd much rather code an app using pure C api such as OpenGL, rather that Cocoa Touch. So I'm wondering: is it feasible? Will I be able to maintain the same user experience that you get with Interface Builder? A: None of the UI components have...
{ "language": "en", "url": "https://stackoverflow.com/questions/272175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Code Coverage and Unit Testing of Python Code I have already visited Preferred Python unit-testing framework. I am not just looking at Python Unit Testing Framework, but also code coverage with respect to unit tests. So far I have only come across coverage.py. Is there any better option? An interesting option for me...
{ "language": "en", "url": "https://stackoverflow.com/questions/272188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: SQL: Complex Deletion I basically created some tables to play around with: I have Two main tables, and a Many-Many join table. Here is the DDL: (I am using HSQLDB) CREATE TABLE PERSON ( PERSON_ID INTEGER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, NAME VARCHAR(50), MAIN_PERSON_ID INTEGER ) CREATE TABL...
{ "language": "en", "url": "https://stackoverflow.com/questions/272190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Abort java webapp on startup My webapp is part of a larger EAR that is deployed into a websphere server. The server hosts number of other apps on the same virtual server. My webapp has some initialisation/health checks in a servletContextListener->contextInitialized method. I want to make the webapp unavailable if i...
{ "language": "en", "url": "https://stackoverflow.com/questions/272194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does it make sense to "fake" bitmap indexes? I'm planning software that's an OLAP application at its heart (it helps analyse metering data) and is going to have some kind of star schema for its database, because the stored values will be looked at from different angles (time, source, type etc.) and the requests will...
{ "language": "en", "url": "https://stackoverflow.com/questions/272196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why am I missing assemblies from the bin directory when compiling with MsBuild? I have a solution which contains many class libraries and an ASP .NET website which references those assemblies. When I build the solution from within the IDE, all assemblies referenced by the website end up in the bin directory. Great! ...
{ "language": "en", "url": "https://stackoverflow.com/questions/272199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: PDO try-catch usage in functions I'm thinking of using PDO in all of my future webapp. Currently (using what I've learned from SO so far), what I have in my site to handle database connection is a Singleton class like this : class DB { private static $instance = NULL; private static $dsn = "mysql:host=...
{ "language": "en", "url": "https://stackoverflow.com/questions/272203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: .Net 3.5 WebService can't be called by .Net 1.1 Windows App I have a weird issue. I had a web service that was compiled under the 2.0 framework that was being consumed by a windows app that was compiled with the 1.1 framework. This worked just fine. Now, after upgrading the web service to the 3.5 framework, the wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/272207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL Statement indentation good practice What is the accepted practice for indenting SQL statements? For example, consider the following SQL statement: SELECT column1, column2 FROM table1 WHERE column3 IN ( SELECT TOP(1) column4 FROM table2 INNER JOIN table3 ON table2.column1 = table3.column1 ) How should this be i...
{ "language": "en", "url": "https://stackoverflow.com/questions/272210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: "File -X: does not exist" message from ipy.exe in Windows PowerShell If I type this line in an MS-DOS command prompt window: ipy -X:ColorfulConsole IronPython starts up as expected with the colorful console option enabled. However, if I type the same line in Windows PowerShell I get the message: File -X: does n...
{ "language": "en", "url": "https://stackoverflow.com/questions/272233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }