text
stringlengths
8
267k
meta
dict
Q: Why is User (as in User.Identity.Name) null in my abstract base controller? I was asking a related question but messed the title up and no-one would understand it. Since I am able now to ask the question more precisely, I decided to reformulate it in a new question and close the old one. Sorry for that. So what I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/430704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How can I extract images from a PDF file? I need to extract all the images from a PDF file on my server. I don't want the PDF pages, only the images at their original size and resolution. How could I do this with Perl, PHP or any other UNIX based app (which I would invoke with the exec function from PHP)? A: pdfima...
{ "language": "en", "url": "https://stackoverflow.com/questions/430707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How do I erase printed characters in a console application(Linux)? I am creating a small console app that needs a progress bar. Something like... Conversion: 175/348 Seconds |========== | 50% My question is, how do you erase characters already printed to the console? When I reach the 51st percentage, I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/430713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Learning Erlang? speedbump thread, common, small problems I just want know all the small problems that got between you and your final solution when you were new to Erlang. For example, here are the first speedbumps I had: * *Use controlling_process(Socket, Pid) if you spawn off in multiple threads. Right packet t...
{ "language": "en", "url": "https://stackoverflow.com/questions/430726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Performance benchmark: PHP Generated content VS. javascript and DOM over AJAX For the following pretty straightforward task: query a list of products from a DB and present it on a webpage, consider 2 setups: Setup1: PHP script queries. All content is built on the server and the entire page is served back to the clie...
{ "language": "en", "url": "https://stackoverflow.com/questions/430733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Read Mapping Xml file generated by FluentNHibernate API How can I read mapping Xml file generated by Fluent NHibernate API? A: After you configure FluentNhibernate Configuration config = new Configuration(); config.Configure(); PersistenceModel persistenceModel = new PersistenceModel (); persistenceModel.Configure...
{ "language": "en", "url": "https://stackoverflow.com/questions/430734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the best way to manage dates across PHP, MySQL, etc? My server is in Dallas. I'm in New York City.. and both PHP and MySQL have configuration variables for setting the timezone. How do I get them all to work together? What dates should I store in MySQL? How do I get PHP to handle changing the date based on...
{ "language": "en", "url": "https://stackoverflow.com/questions/430736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: connecting between two separate socket connections I wrote a c# app that listens to port 8000 and 8001. There are two different applications that connects to 8000 and 8001. I have used socket arrays so that any number of connections are accepted. Will I be able to some how attach one 8000 connection and 8001 connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/430745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP/Apache blocking on each request? Ok, this may be a dumb question but here goes. I noticed something the other day when I was playing around with different HTML to PDF converters in PHP. One I tried (dompdf) took forever to run on my HTML. Eventually it ran out of memory and ended but while it was still runnin...
{ "language": "en", "url": "https://stackoverflow.com/questions/430750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: All of these words feature I have a "description" field indexed in Lucene.This field contains a book's description. How do i achieve "All of these words" functionality on this field using BooleanQuery class? For example if a user types in "top selling book" then it should return books which have all of these words i...
{ "language": "en", "url": "https://stackoverflow.com/questions/430751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jar resources in jnlp are not signed by the same certificate I've been working with web start for a couple years now and have experience with signing the jars and what not. I am taking my first attempt at deploying a RCP app with web start and though I have in fact signed all of the jars with the same certificate I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/430755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Regex for managing escaped characters for items like string literals I would like to be able to match a string literal with the option of escaped quotations. For instance, I'd like to be able to search "this is a 'test with escaped\' values' ok" and have it properly recognize the backslash as an escape character. I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/430759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What's a Good First Open Source Project? I'm currently studying computer science and looking for a good way to practice and hone my programming skills. Contributing to an open source project seems like a natural way to do this to me. I currently know Java, Python, and some C, but wanted to open this up to any esta...
{ "language": "en", "url": "https://stackoverflow.com/questions/430767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Ocaml List: Implement append and map functions I'm currently trying to extend a friend's OCaml program. It's a huge collection of functions needed for some data analysis.. Since I'm not really an OCaml crack I'm currently stuck on a (for me) strange List implementation: type 'a cell = Nil | Cons of ('a * 'a llis...
{ "language": "en", "url": "https://stackoverflow.com/questions/430771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Apache Ant + Ivy build of a web application which is deployed to a local Tomcat I will use Apache Ant and Apache Ivy to build a web application which is deployed to a local Tomcat instance (during development). I have some questions: * *I want to grab most of my dependencies from the Maven2 repositories which wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/430787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Exposure Lock in iSight I am creating object-detection program on Mac. I want to use iSight in manual exposure mode to improve detection quality. I tried iGlasses & QTKit Capture to do that and it worked but program runs very slowly and unstable. So I want to try other solution. In PhotoBooth.app, iSight seemed to b...
{ "language": "en", "url": "https://stackoverflow.com/questions/430794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: REST interface for finding average Suppose I want to create a REST interface to find the average of a list of numbers. Assume that the numbers are submitted one at a time. How would you do this? * *POST a number to https://example.com/api/average *If this is the first number a hash will be returned *POST a numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/430809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Enumerate or list all variables in a program of [your favorite language here] A friend asked me last week how to enumerate or list all variables within a program/function/etc. for the purposes of debugging (essentially getting a snapshot of everything so you can see what variables are set to, or if they are set at a...
{ "language": "en", "url": "https://stackoverflow.com/questions/430811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "80" }
Q: How to map a domain to another domain's subfolder? I have a very fast web server (IIS6, ASP.NET) that I want to use for several sites. Now, I already have a domain that maps directly to the IP address of the server, but how can I get another domain to map to a subfolder (i.e., a separate ASP.NET application) on that...
{ "language": "en", "url": "https://stackoverflow.com/questions/430812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Prevent mutually recursive execution of triggers? Suppose you have the tables Presentations and Events. When a presentation is saved and contains basic event information, such as location and date, an event will be created automatically using a trigger. (I'm afraid it's impossible for technical reasons to simply kee...
{ "language": "en", "url": "https://stackoverflow.com/questions/430830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Cocoa Touch: What to release, when to release it? I'm trying hard to understand when and what I must relase in Cocoa Touch as it doesn't have garbage collection. This code block is from apples iphone sample PeriodicElements and they release anElement and rawElementArray but not thePath, firstLetter, existingArray an...
{ "language": "en", "url": "https://stackoverflow.com/questions/430839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to query (LINQ) multiple table association link? I have tables association such as (CaseClient is a bridge table): * *Cases has many CaseClients *Client has many CaseClients *ClientType has many CaseClient The easiest way just use the view in database but I heard that with linq you can join this somehow? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/430840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to bind a custom value to the Text property of a TextBlock inside of a ListBox DataTemplate? I would like my ListBox to number each ListItem using its index + 1. How would I do that to the Text property of a TextBlock in a DataTemplate of the ListBox? A: If each ListBoxItem uses SelectedIndex + 1, they will all...
{ "language": "en", "url": "https://stackoverflow.com/questions/430849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby on Rails running on a vps slice What are the major gotchas and tricks when running Rails on a small slice (256MB)? What is the best server setup for cramped quarters? Passenger, Nginx, Mongrel? What is the best background task processor in this kind of environment? What do you need to watch out for? I'd lov...
{ "language": "en", "url": "https://stackoverflow.com/questions/430853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: File Locking (Read/Write) in ASP.NET Application I have two ASP.NET web application. One is responsible for processing some info and writing to a log file, and the other application is reponsible for reading the log file and displays the information based on user request. Here's my code for the Writer public static ...
{ "language": "en", "url": "https://stackoverflow.com/questions/430879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: String search What is the best way to search strings for something like forum? i seen horrible string search and typically get worse the more strings you use rather then better. I also may implement a title search so if the way to search title that is better then a body of string i'd love to hear that too A: Take a...
{ "language": "en", "url": "https://stackoverflow.com/questions/430882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AjaxControlKit in .NET 2.0 from Visual Studio 2008 I am working on a project which was developed in Visual Studio 2005 (.NET 2.0). I have Visual Studio 2008 and on opening the solution the files are converted to older framework. But the project uses a AjaxControlKit which I guess is not available by default in ASP.N...
{ "language": "en", "url": "https://stackoverflow.com/questions/430898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: StaleObjectStateException ERROR Anyone can point me to the error please? Note: this is a simplified test case extracted from my real app. Thus the weird usage of 3 entity managers and em1.getTransaction().begin(); em1.clear(); em1.close(); at the end of each section. In real app it happens in different times. Hibern...
{ "language": "en", "url": "https://stackoverflow.com/questions/430899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: is it possible to make nant run a publish on web application project is it possible to make nant run a publish on mvc project or a good old web application project and after the publish make nant FTP the files to the web server UPDATE: found the solution to the ftp problem Nant ftp task thanks Paco what i mean by pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/430904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to upload PHP and MySQL into a webserver I am developing a site in vertigoserver. Now I need to test the webpage in webserver. I am using the webserver Host-Europe VirtualServer 3.0. * *Now what are the steps I need to upload the PHP pages? *What is the software needed to upload MySQL queries? *Are there an...
{ "language": "en", "url": "https://stackoverflow.com/questions/430912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to calculate difference between tables in MySQL? What is a good way to calculate difference (in a sense what should be added and deleted from one table to get another) between tables in MySQL? A: Neither of the answers posted so far (from BrynJ and Vadim) does a very thorough job. And doing the thorough job is...
{ "language": "en", "url": "https://stackoverflow.com/questions/430922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the proper and complete steps to deploy a .NET application from Visual Studio for public use? I usually write C# programs for myself, or just parts of other applications. Now, I have been working on a project that I would like to eventually commercialize and I am interested in the easiest way to deploy a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/430927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to capture an event trigger when a flash movie successfully loaded? I'm currently using jQuery, as well as swfObject to dynamically embed the swf movie into my web page. I currently having a problem on embeding immem's music player into my web page, as their embed code doesn't have any loading screen. So, when I...
{ "language": "en", "url": "https://stackoverflow.com/questions/430928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipse plugin for Apache Axis2 to create webservice please give me the link to download plugins for apache axis, i tried in some sites but the link was not current so i was not able to download. thanks in advance, Mahesh A: the best would be to download the Eclipse J2EE package which already includes all the stuff...
{ "language": "en", "url": "https://stackoverflow.com/questions/430936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to tell users of my library functions that passed variables are not of the correct type I'm currently in the creation of a javascript function library. Mainly for my own use, but you can never be sure if someone else ends up using it in their projects, I'm atleast creating it as if that could ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/430937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C# PDF Printing Library Are there any free libraries that would "print" to a PDF without actually having to install a PDF printer on the system. I want something that can be completely self contained in my application. The reason I say I want it to "print" is that I've tried and tried to find a solution for direct...
{ "language": "en", "url": "https://stackoverflow.com/questions/430941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Resizable UILabel which scrolls across the screen Right, I'm trying to get a label with text in it (done already obviously), which scrolls across the screen. The text that is input into the label is done by a UITextField and a UIButton. This updates fine. But I'm trying to get the UILabel to resize accordingly to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/430942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: .net / c# test wanted for a non techical MD Dear all i am looking for an half finished .net application to test my .net c# applicants. As I come from a differnt coding background, it is difficult for me to assess people skills hence a great test would do a good job! Regarding checking candidates' test performance, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/430949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the best wiki engine with good authorization features? What is the best wiki engine with good authorization features? A: DokuWiki is a great open source PHP Wiki, clean syntax, straightforward install, simple report for read-only and private pages, plus a full ACL system, and a active community of plugin d...
{ "language": "en", "url": "https://stackoverflow.com/questions/430951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the fastest way to open a form from a form? What is the fast and effective way to open Form2 from Form1? I work in WinCE (limited memory and CPU power) so this becomes important. A: Depending on your requirements, you might trick your users to see a splash screen when your application loads. During this tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/430955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linked Server Error using MSDTC I am Showing An example of Stored Procedure For Data Transaction using "Linked Server" Between Two System Through Internet Alter Proc [dbo].[usp_Select_TransferingDatasFromServerCheckingforExample] @RserverName varchar(100), ----- Server Name @RUserid Varchar(100), -----...
{ "language": "en", "url": "https://stackoverflow.com/questions/430956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex for links in html text I hope this question is not a RTFM one. I am trying to write a Python script that extracts links from a standard HTML webpage (the <link href... tags). I have searched the web for matching regexen and found many different patterns. Is there any agreed, standard regex to match links? Adam...
{ "language": "en", "url": "https://stackoverflow.com/questions/430966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Create zip style file without compression I know that there are many free and not so free compression libraries out there, but for the project i am working on, i need to be able to take file data from a stream and put it into some kind zip or pack file, but without compression, because i will need to access these fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/430973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linux system to manage configurations of servers? I need a software to manage configurations of linux servers in one central location. It should be able to push changes to servers automaticly. Version control would be an advantage... A: I've heard good things about Puppet (as matli suggested) and Cfengine, which ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/430980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET application architecture: bet practice for lenghty background processes? I'll try to be brief. What is the best practice for calling a routine from an asp.net web application that initiates a lengthy 'background' process that must be run? For example, I want to click a button on my webpage that says "Run da...
{ "language": "en", "url": "https://stackoverflow.com/questions/430981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the significance of trailing slashes in a namespace URI? I have been studying SOAP and WSDL in preparation for implementing a web service. One thing that I have encountered that puzzles me is that some of the URIs that I have seen use a trailing slash such as: http://www.w3.org/some-namespace/ while other ...
{ "language": "en", "url": "https://stackoverflow.com/questions/430990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Updating a class after changing its Interface Say I add a function to an outstanding Interface. In Visual Studio, within a class which implements it I can right click the Interface declaration and re-implement it. This will update the code to reflect the changes made. Is there anyway to do the same thing in eclipse?...
{ "language": "en", "url": "https://stackoverflow.com/questions/430993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In rails, whether to use form helpers or not to? In rails, is it recommended to use form helpers? Internally, everything boils down to plain html then why not write the html directly? Performance will obviously be better in writing direct html than using helpers. Is using form helpers like a convention or something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/430997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there an open source C visual debugger for windows? Is there an open source C visual debugger for windows? I have heard about the visual C++ express free edition, but does it have a visual debugger? Thanks. A: It's not open source (but then does it really need to be?) Visual C++ 2008 Express Edition is an IDE wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/431000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: MSDN Licensing? Simple question, but one I can't find an answer to on the MSDN subscriber site: As an MSDN Professional Subscriber, can I install the same copy of Windows 2008 in multiple VMs at the same time? The MSDN keys state that they can be used for "multiple activations", but they don't state whether these ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/431005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Common libraries in a large team Assume you have five products, and all of them use one or more of the company's internal libraries, written by individual developers. It sounds simple but in practice, I found it to be very difficult to maintain. How do you deal with the following scenarios: * *A developer uninte...
{ "language": "en", "url": "https://stackoverflow.com/questions/431007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Linq to SQL: Is it better to have a small DataContext for each page or a global one? I am trying out Linq to SQL in an ASP.NET application that uses a large database with lots of foreign keys (100+ tables). I am impressed with how Linq permits you to create a datacontext with all of your relationships intact and to...
{ "language": "en", "url": "https://stackoverflow.com/questions/431008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Domain Driven Design question I would like to ask for a reccomended solution for this: We have a list of Competitions. Each competition has defined fee that a participatior has to pay We have Participators I have to know has a Participator that is on a Competition paid the fee or not. I am thinking about 2 so...
{ "language": "en", "url": "https://stackoverflow.com/questions/431010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to restrict access by IP address? For an ASP.NET C# application, we will need to restrict access based on IP address. What is the best way to accomplish this? A: Here is an article from Microsoft on how to do this. Setting Folder Security by IP Address or Domain Name Apache uses the Allow and Deny directi...
{ "language": "en", "url": "https://stackoverflow.com/questions/431013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: MySQL Replication - one website, many servers, different continents Consider a reasonably large website (2M+ pageviews / m, lots of users) with 2 frontend servers: one front server in the US, and one in Europe. Two dedicated URL bring the visitors on one of the server, one in the french language, the other one in en...
{ "language": "en", "url": "https://stackoverflow.com/questions/431025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I run that database backup and restore scripts from my winform application? I am developing a small business application which uses Sqlserver 2005 database. Platform: .Net framework 3.5; Application type: windows application; Language: C# Question: I need to take and restore the backup from my application. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/431033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache (xamp) and IIS cannot work together I have XAMP 1.6.8 and IIS 5.0 installed on my PC(Windows XP SP3). I'm unable to run them simultaneously. If IIS service is running, Apache throws the following error: (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/431041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make full screen java applets? I am designing a psychology experiment with java applets. I have to make my java applets full screen. What is the best way of doing this and how can I do this. Since I haven't been using java applets for 3 years(The last time I've used it was for a course homework :) ) I have f...
{ "language": "en", "url": "https://stackoverflow.com/questions/431044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Linux device driver unsafe FXSAVE/FXRSTOR bug -- any precedents? There's a nasty problem that has temporarily stumped a number of engineers at my company trying to debug it. The C++ program is normally run on a cluster of multicore computers with MPI. It will run for a very long time -- perhaps days -- and then sudd...
{ "language": "en", "url": "https://stackoverflow.com/questions/431045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How much low-level stuff to expose in an API? When designing the public API of a generic library, how much of the low-level stuff that's used internally should be exposed? On the one hand, users should not depend too heavily on implementation details, and too many low-level functions/classes might clutter the API. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/431049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Reflection: Getting the fields of a DataRow from a Typed DataSet I am currently building a method that takes an object that is of type DataRow from a typed DataSet, and then returning a string in JSON format of the fields in the DataRow (for use in a Web Service). By using System.Reflection, I am doing something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/431050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the best way to generate ranks in MYSQL? What's the best way to get the rank of the rows in addition to the row data in MYSQL? For instance, say I have a list of students and I want to rank on the GPA. I know I can order by the GPA, but what's the quickest way to have MYSQL return the rank as well in the row...
{ "language": "en", "url": "https://stackoverflow.com/questions/431053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Oracle recovery problem I execute the following command and the error occurs: recover database until time '2009-01-09 12:26'; ORA-00283: recovery session canceled due to errors ORA-19907: recovery time or SCN does not belong to recovered incarnation; How can I solve this problem? A: There's a suggested action here...
{ "language": "en", "url": "https://stackoverflow.com/questions/431076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Better way of returning the values of a column in Active Record? Quick one, but thought I'd ask. Is there a better way of getting the column values from a model's column than something like this? Item.count(:all, :group => 'status').reject! { |i, e| i.blank? }.collect { |i,e| i} A: Item.find(:all, :select=>:status...
{ "language": "en", "url": "https://stackoverflow.com/questions/431080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are coding conventions for using floating-point in Linux device drivers? This is related to this question. I'm not an expert on Linux device drivers or kernel modules, but I've been reading "Linux Device Drivers" [O'Reilly] by Rubini & Corbet and a number of online sources, but I haven't been able to find anyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/431081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: pthread_join - multiple threads waiting Using POSIX threads & C++, I have an "Insert operation" which can only be done safely one at a time. If I have multiple threads waiting to insert using pthread_join then spawning a new thread when it finishes. Will they all receive the "thread complete" signal at once and spa...
{ "language": "en", "url": "https://stackoverflow.com/questions/431082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delphi Components for Face Identification and Tagging Are there any good components, free or commercial, available for Delphi (I use Delphi 2009) that will allow me to easily implement face detection and tagging of the faces in photos (i.e. graphics/images)? I need to do something similar to what Google Picasa's Web...
{ "language": "en", "url": "https://stackoverflow.com/questions/431086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Unexpected T_CLONE using Math_Matrix PEAR library I've not used PEAR before, and so I'm probably doing something dumb. I've installed the Math_Matrix library, but when I include it I just get an error. My entire code is this: <?php $path = '/home/PEAR/Math_Matrix-0.8.0'; set_include_path(get_include_path() . PAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/431090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a C# equivalent to access-modifier regions in C++ It's possible to declare variables with the below structure in C++ private: public: protected: float bla1; float bla2; float bla3; Is there an equivalent in C#? It seems rather tedious having to repeat yourself; protected float bla1; protected f...
{ "language": "en", "url": "https://stackoverflow.com/questions/431091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spring context files organization and best practices We have started using Spring framework in my project. After becoming acquainted with the basic features (IoC) we have started using spring aop and spring security as well. The problem is that we now have more than 8 different context files and I feel we didn't giv...
{ "language": "en", "url": "https://stackoverflow.com/questions/431107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Mocking Objects Containing SubObjects With Rhino Mocks Assuming an IMouvement Object which contains some subobjects like ITache, IStockPalette. public interface IMouvement : IObjectBase<Guid> { ITache Tache { get; set; } IStockPalette StockPalOrigine { get; set; } } How can I Mock this using Rhino M...
{ "language": "en", "url": "https://stackoverflow.com/questions/431113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML2PDF Conversion We're developing software for both Linux and Windows that requires CVS files to be generated into PDF reports. I've written a program in C to turn the CVS files into HTML files (td, tr etc.) and am then converting the HTML into PS using html2ps and then ps2pdf under Linux. However as mentioned a...
{ "language": "en", "url": "https://stackoverflow.com/questions/431117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: On your very first program, which construct hooked you on programming? To me it was the If statement, I'm psyched up, since then I believed that computers are very intelligent, or I can at least make it appear intelligent because of it. A: Making the computer obey me. Awesome. I also love (love to hate) that the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/431119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Flash upload image resize client side Does anyone got an ideia on how to get client side image resize using flash. Example: Client chooses an image with 1200x800 and before it uploads it flash will turn it into half of it or something. Any thoughts? A: http://www.shift8creative.com/projects/agile-uploader/index.htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/431120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: JSF dataTable query can some one help me with the following JSF dataTable? here I am getting data from database table and I used dataTable binding, but I don't know why it displays the rows 3 times in the screen, but if I remove the binding then it displays only one time. <h:dataTable binding="#{threadController.da...
{ "language": "en", "url": "https://stackoverflow.com/questions/431123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should you lock resources when reading values? When doing thread synchronization in C# should I also lock an object when I read a value or just changing it? for example I have Queue<T> object. Should I just lock it when doing the Enqueue and Dequeue or should I also lock it when checking values like Count? A: Depen...
{ "language": "en", "url": "https://stackoverflow.com/questions/431138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Error highlighting in Visual C++ When using Eclipse or NetBeans IDE on a Java project I get to see where errors in my code are, before and after compiling. The line causing the issue is shown. I remember that back in the old days, the Visual C++ 98' edition did do underlining of errors in the code. Is there a way to...
{ "language": "en", "url": "https://stackoverflow.com/questions/431154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I identify language of a text document in Java? Is there an existing Java library that could tell me whether a String contains English language text or not (e.g. I need to be able to distinguish French or Italian text -- the function needs to return false for French and Italian, and true for English)? A: Did...
{ "language": "en", "url": "https://stackoverflow.com/questions/431159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: iPhone SDK: Orientation (Landscape and Portrait views) Okay, I've got my normal app which is in portrait mode. I can force my app to go to landscape mode for a view (using navigationcontroller and viewcontroller) like this: - (void)viewWillAppear:(BOOL)animated { [[UIDevice currentDevice] setOrientation:UIInterf...
{ "language": "en", "url": "https://stackoverflow.com/questions/431165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Visual Studio Text Box Wrap Function How can I make my text wrap automatically to the next line when I am writing text in a textbox rather than keeps on typing in one line? A: Make your text box multi-line in the property settings. A: I've done that but although the textbox grows the typing keeps going in a straig...
{ "language": "en", "url": "https://stackoverflow.com/questions/431194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git: How to maintain two branches of a project and merge only shared data? Suppose I have two branches of a project IMClient-MacOS and IMClient-Windows, and their code only differs by (let's say) one directory main/. All the other directories contain system-independent code and are interchangeable. Some workers wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/431201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does the order of fields in C# matter? This question is inspired by Jon Skeet's answer: Is there a c# equivalent to c++'s access-modifier regions He makes a comment that it is possible for the order of fields in a file to matter. I am guessing that this has to do with the order that the fields are initialized, but I...
{ "language": "en", "url": "https://stackoverflow.com/questions/431203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I programmatically change the background in Mac OS X? How would I go about programmatically changing the desktop background in Mac OS X? I'd like to use python, but I'm interested in any way possible. Could I hook up to Terminal and call a certain command? A: Building on dF.'s answer, you could do it with...
{ "language": "en", "url": "https://stackoverflow.com/questions/431205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: No type definitions in pre-defined IDL FILE Firstly, Using plain C++, without ATL, MFC attempting to use COM Object interface. Using oleview (OLE/COM Object viewer) - used to engineer the IDL code. At this stage, using MIDL Compiler, now I'm having trouble trying to produce the following: Syntax on cmd line: midl /n...
{ "language": "en", "url": "https://stackoverflow.com/questions/431206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selecting random records for use on a web page HI Guys, I own a website I have a section called "mobile Section" this section contain many catagories (Nameoftheobject + a picture + little description and a download link) Now the section is considered as an internal section. I want to view random records from that se...
{ "language": "en", "url": "https://stackoverflow.com/questions/431208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Brace placement after init list in C++ For anyone who places braces thus: void f() { stuff(); } How do you prefer to place braces after long initializer lists? The same way? Object::Object() : foo(1) , bar(2) { stuff(); } Or make an exception so you actually see where the init list ends? Object::Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/431217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Weird Behavior when using between? method for dates Open up a Rails console and enter this: 2.weeks.ago.between? 2.weeks.ago, 1.week.ago Did it give you true or false? No really, try it a few more times and it will give you different answers. Now, I'm thinking that because we're comparing 2.weeks.ago with 2.weeks.a...
{ "language": "en", "url": "https://stackoverflow.com/questions/431230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cassini Error: "This type of page is not served" I'm trying to use the Server class from Cassini to include a basic web server in my own application. I just started playing around with it to get familiar with the way the server works and I setup a simple app that is as follows: static void Main(string[] args) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/431233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is an "Abort trap" & how do I debug it? I'm getting this message each time I compile my project: RunIPhoneUnitTest.sh: line 92: 31389 Abort trap "$TARGET_BUILD_DIR/$EXECUTABLE_PATH" -RegisterForSystemEvents I understand is a problem in my code, but then I don't figure how solve or found it. The st...
{ "language": "en", "url": "https://stackoverflow.com/questions/431235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Best practices if your Build is taking too long in Visual Studio I have moderate size solution in Visual Studio which takes around 5 minutes to build (It take that long because of FxCop and other post build steps). My problem is, Visual Studio stops responding while it's building. You can't continue working as VS al...
{ "language": "en", "url": "https://stackoverflow.com/questions/431249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Parsing a Quickbook IIF format file I'm working with Quickbook's IIF file format and I need to write a parser to read and write IIF files and I'm running into some issues reading the files. The files are simple, they're tab deliminated. Every line is either a table definition or a row. Definitions begin with'!' and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/431254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C, HTTP 1.1 and Socket Send troubles As an addition to my previous post on Creating a web server in pure C, I'm having some trouble with the Sending function. Here's two code snippets: int Send(char *message) { int length, bytes_sent; length = strlen(message); bytes_sent = send(connecting_so...
{ "language": "en", "url": "https://stackoverflow.com/questions/431281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I take more control in ASP.NET? I'm trying to build a very, very simple "micro-webapp" which I suspect will be of interest to a few Stack Overflow'rs if I ever get it done. I'm hosting it on my C# in Depth site, which is vanilla ASP.NET 3.5 (i.e. not MVC). The flow is very simple: * *If a user enters the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/431296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: How to decide where to handle an exception - in scope of function it been thrown or in global one? I`m writing client-server app for windows using WinSock and I have class for server. while initialising server I have such code: class Server { static const int MaxClients = 10; std::vector connections; CR...
{ "language": "en", "url": "https://stackoverflow.com/questions/431311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Anybody interested in possible operation/use of quantum computers? I went through a period of being interested in how quantum computers work and what they might be good for if they ever become practical. I know they are talked about for code-breaking. I was interested is using them for validating software by essenti...
{ "language": "en", "url": "https://stackoverflow.com/questions/431327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Including a VB project within a VC++ project I'm looking for some help with a dependency issue. In a nutshell, I've included a makefile project within a larger VC++ workspace, but the sub-project always rebuilds, even when it's not necessary. The Details I've inherited a large project that consists of several diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/431329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alternatives to the Turing Test So we learned a bit about the Turing Test in my AI class. This got me thinking about it. I can see a few limitations with it: * *It's limited to a certain context. What if I'm not designing an AI to converse with humans? *It favors acting humanly over acting rationally. For ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/431331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Look for new versions of dependencies Is there any way to make maven look for new versions of dependencies? for example, i have commons-lang commons-lang 2.3 version 2.4 could be out, I dont know. i'd rather not check is manually(by writting 2.4 in this case), be...
{ "language": "en", "url": "https://stackoverflow.com/questions/431332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Is it possible to have a custom webpart listen to default SharePoint search box? SharePoint has a search box by default at the top of the Portal. I want my WebPart to be able to intercept that search and provide search results. Is this possible, and if so any tips or links on how to do this? A: On the result pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/431335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Appending to XML with XMLStreamWriter Basically the app writes the contents of a Collection to XML. I'm using XMLStreamWriter (XMLOutputFactory.newInstance().createXMLStreamWriter(...)) for this purpose. Works great except for the fact that I can't get how to append data to an existing file. Don't really like the id...
{ "language": "en", "url": "https://stackoverflow.com/questions/431338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }