text stringlengths 8 267k | meta dict |
|---|---|
Q: Mocking an attribute change on a parameter - using Moq I am using Moq to mock my Repository layer so I can unit test.
My repository layer Insert methods update the Id property of my entities when a successful db insert occurs.
How do I configure moq to update the Id property of the entity when the Insert method is c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Integrating Prolog with C# Does anyone know of a nice (and preferably free) way to integrate Prolog and C#?
Im looking to create a Prolog dll or similar to call from my managed code, and retrieve an answer once all the processing has been complete. Im looking for it to be predominantly one sided (c# calls Prolog).
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Reporting Services 2008: export instead of regenerate? Is there some way to cache a generated report in the reporting services, so that I could later export it to some other format ?
I.e., currently, I'm generating an HTML version of the report (throught the webservice) and if the users asks for an excel file, I g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Website to practise OOP design skills Is there a website/list of problems which can be used to practice OOP design skills? Let's say if I am a colleague graduate familiar with object-oriented-design theory, these problems should give me a chance to exercise the theory and improve my software design skills.
A: If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Xcode Performance Tool thinks the iPhone simulator has a camera When I run this code in the Simulator in the debugger or standalone
[UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]
it tells me the camera is not available (returns NO), as expected.
However, if I run the same co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181886",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Alter :path_prefix dynamically when calling has_attachment via Attachment Fu plugin By default Attachment Fu stores uploaded files in "public/#{table_name}". I want to modify this to be something like "public/#{table_name}/#{site_id}", where site_id is a property of the model. Note that I've tried using self.site_id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem reading from a device with libusb The situation is this: I have a USB device (a custom device I'm trying to talk to) with two endpoints, one writing to the device, one reading from the device. Both are bulk transfers. Every communication transaction takes the form of (1) Write a command to the device (2) Rea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MySQL - force not to use cache for testing speed of query I'm testing the speed of some queries in MySQL. The database is caching these queries making it difficult for me to get reliable results when testing how fast these queries are.
Is there a way to disable caching for a query?
System: MySQL 4 on Linux webhostin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "383"
} |
Q: Is it possible to use ServicePointManager with Webbrowser control? I want to disable "Alert window" that I get from login page of one HTTPS site with "untrusted certificate".
ServicePointManager is used for WebRequest/WebResponse:
> public static bool
> ValidateServerCertificate(object
> sender, X509Certificate cer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: apache + lighttpd front-proxy concept In order to lighten Apache's load people often suggest using lighttpd to serve up static content.
e.g. http://www.linux.com/feature/51673
In this setup Apache passes requests for static content back to lighttpd via mod_proxy, while serving dynamic requests itself.
My question is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Reflection.Net: how to load dependencies? I try to add an addons system to my Windows.Net application using Reflection; but it fails when there is addon with dependencie.
Addon class have to implement an interface 'IAddon' and to have an empty constructor.
Main program load the addon using Reflection:
Assembly asse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Tool for Scripting Table Data Are there any free tools for scripting MSSQL table data? I'll gladly write one, but am hoping it's been done, and the app matured a bit before/
A: Microsoft SQL Server Database Publishing Wizard is a nice GUI that can script out the structure / data / Procs of a SQL Server 2000/2005 d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: In a layered design with a separate DataAccess layer in .NET where should connection string be managed? There is a long running habit here where I work that the connection string lives in the web.config, a Sql Connection object is instantiated in a using block with that connection string and passed to the DataObject... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Windows SharePoint Services vs. Microsoft Office SharePoint Server? There's Windows SharePoint Services (WSS) and then there is Microsoft Office SharePoint Server (MOSS). MOSS considerably more expensive than WSS (which ships as part of Microsoft Server licensing).
My question is: what does MOSS do that makes it wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Your preferred C/C++ header policy for big projects? When working on a big C/C++ project, do you have some specific rules regarding the #include within source or header files?
For instance, we can imagine to follow one of these two excessive rules:
*
*#include are forbidden in .h files; it is up to each .c file t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: TreeView label editing question I have a treeview with nodes like this: "Foo (1234)", and want to allow the user to rename the nodes, but only the Foo part, without (1234). I first tried to change the node text in BeforeLabelEdit like this:
private void treeView1_BeforeLabelEdit(object sender, NodeLabelEditEventArgs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: SQL Server 2005 Performance: Distinct or full table in WHERE IN statement We have two Tables:
*
*Document: id, title, document_type_id, showon_id
*DocumentType: id, name
*Relationship: DocumentType hasMany Documents. (Document.document_type_id = DocumentType.id)
We wish to retrieve a list of all document type... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Authentication in SQL Sever 2000 for an account not logged into Windows An advantage by using Windows Authentication is that I do not need to provide a username and password to log into the server as the user currently logged into Windows. But in a specific case I would like to log into the SQL Server as ano... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Views vs. inline subqueries SQL Server 2005/2008 In certain areas in my application I need data from several tables in the database (I have an application, the application has many attributes, each attribute has several definitions, and each definition has a value). I need the data from all these tables for an appl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: iframes and redirection I have a webpage (say www.example.com/a.asp) .. I am having an iframe in this page which loads a page from a different website (www.example.net/b.asp)... This b.asp asks few questions to the user and the results are posted to c.asp in my website (www.example.com/c.asp). This page (www.example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Where do you draw the line between code and XAMLin WPF? The more I learn about WPF and XAML, the more I realize that you can do pretty much all of your GUI initialization and event handling glue in either XAML or in code (say C# code or VB.Net code).
My question is to those who have been working on WPF for longer ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Prevent user from resizing columns with WPF ListView How can I prevent a user from resizing GridViewColumns withing a ListView control?
A: For those looking for a quicker and simpler answer.
Set IsEnabled to False in the ColumnHeaderContainerStyle. This will prevent the user from resizing.
Like this:
<GridView.Colu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181956",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: tiles in struts project - better than freemarker? I want to use a template engine in a struts application and would like to know if using TILES can be recommended instead of FREEMARKER or VELOCITY.
A: I've used tiles before on a project. It was good for templating, however it can't really be compared to velocity or... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: electronic leave application database design I am currently working on a leave application (which is a subset of my e-scheduler project) and I have my database design as follows:
event (event_id, dtstart, dtend... *follows icalendar standard*)
event_leave (event_id*, leave_type_id*, total_days)
_leave_type (leave_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Processing Linux SIGnals using Gambas I would like to send a (as yet undetermined) SIGnal from a bash script to a Gambas program when a specific file has been changed.
How can I get my Gambas program to process this SIGnal?
A: The gb.signal component allows you to manage signals. You can intercept them, ignore the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Incorrect function addresses in Visual Studio MAP-file the function addresses (Rva+Base) in my MAP-file from visual studio doesn't match the one I see in the debugger (or when I manually inspect my stack frame).
What could be causing this?
/A.B.
A: Is the problem in an executable or a DLL?
If it's a DLL what is its... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Whirlwind tour of Eclipse? Does anyone know of a whirlwind tour of Eclipse that would help a (former) Visual Studio user get up to speed with it?
I just want something that tells me where all the basic features are and what all the cool stuff I've heard so much about is?
So far I've been using it mostly as a text ed... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: The ways of Database Integration in SOA/ESB? Situation: Some Bank has an old legacy ABS (Automatic bank system).
Bank wants to:
*
*notify old legacy CRM system about client's account changes (Publish operation).
*check PIN codes of client cards (Request/Response operation) - in synchronious mode.
ABS is imple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to organise e-mails in MS Outlook? Every software development professional (and especially project managers) has to deal with a never ending stream of e-mails. What is the best way of organising them in MS Outlook?
Obviously some fancy issue tracking tools give more flexibility but I am interest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Any complete library for Jabber in Delphi? I'm looking for for a Jabber library for Delphi, I can see some COM based jabber components. But I'm looking for a real VCL library.
Somebody knows one?
A: You could compile the code that underlies Exodus into a VCL. That code is called JOPL, and can be found at Google Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Programmatically access currency exchange rates I'm setting up an online ordering system but I'm in Australia and for international customers I'd like to show prices in US dollars or Euros so they don't have to make the mental effort to convert from Australian dollars.
Does anyone know if I can pull up to date excha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "113"
} |
Q: How do you change Visual Studio's default web browser? This is a for a Silverlight project that isn't anchored to an .aspx file, so right clicking, etc. is a bit out of the question. Any ideas?
Edit:
Add an .html file, then click it. Really dumb. Last time I ask a question at three in the morning.
A: Why is right-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Code to verify updates from the Google Safe Browsing API In order to verify the data coming from the Google Safe Browsing API, you can calculate a Message Authentication Code (MAC) for each update. The instructions to do this (from Google) are:
The MAC is computed from an MD5 Digest
over the following informatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/181994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Cast or convert when retrieving data from a database? When accessing an object in a DataTable retrieved from a database, are there any reasons not to cast the object into your desired type, or are there reasons to use convert? I know the rule is cast when we know what data type we're working with, and convert when a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Writing resultset to file with sorted output I want to put "random" output from my result set (about 1.5 mil rows) in a file in a sorted manner. I know i can use sort by command in my query but that command is "expensive".
Can you tell me is there any algorithm for writing result set rows in a file so the content w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Where Windows Explorer gets its “Folder Up” and “Back” icons from? XP-specific answers preferred, but others are welcome too.
A: Many of the icons from Windows, Visual Studio and Office are delivered with Visual Studio. You can find the image library in the Common7 folder. Visual Studio 2005 focuses on Office 2003 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to enhance by CSS an HTML and its on IE 6? Internet explorer 6 seems totally ignore CSS classes or rules on select, option or optgroup tags.
Is there a way to bypass that limitation (except install a recent version of IE) ?
Edit : to be more precise, I'm trying to build a hierarchy between options l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Default segment name in rails resources routing I want to create a route in my rails application along the lines of
/panda/blog
/tiger/blog
/dog/blog
where panda, tiger, and dog are all permalinks (for an animal class)
The normal way of doing this
map.resources :animals do |animal|
animal.resource :blog
end
would... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do Teamcity artifact paths work? Can anyone give me an example of what the Artifact paths setting defined for a build configuration could look like if I want to create two artifacts dist and source where I am using the sln 2008 build runner and building my projects using the default bin/Release?
**/Source/Code/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Setup Python environment on Windows How do I setup a Python environment on windows computer so I can start writing and running Python scripts, is there an install bundle? Also which database should i use?
I should of mentioned that I am using this for web based applications. Does it require apache? or does it use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WHERE IN (array of IDs) I have webservice which is passed an array of ints.
I'd like to do the select statement as follows but keep getting errors. Do I need to change the array to a string?
[WebMethod]
public MiniEvent[] getAdminEvents(int buildingID, DateTime startDate)
{
command.CommandText = @"SELECT id,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: LINQ to SQL Table Dependency If I have two tables... Category and Pet.
Is there a way in LINQ to SQL to make the result of the joined query map to a another strongly typed class (such as: PetWithCategoryName) so that I can strongly pass it to a MVC View?
I currently have Category and Pet classes... should I make an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Serialization problem The situation is like this : Main project A. and a class library B. A references B
Project B has the classes that will be serialized. The classes are used in A. Now, the problem appears when from Project A I try to serialize the objects from B. An exception is thrown that says a class from A ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What would be quicker Flash or Javascript? I have an idea for a website which involves a canvas area which has no limit to its size. Basically you would be able to add items to the canvas (notes, photos whatever really). You would then be able to drag the canvas which would move those items along with the canvas unt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I use oracle.jdbc.driver.OracleLog? I am receiving an error from the Oracle JDBC driver (ojdbc14_g.jar) when trying to obtain a connection to a 10g database. The driver has an oracle.jdbc.driver.OracleLog class which could help but the Oracle documentation is unclear how best to use it. Has anyone had any suc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WPF quickstart documentation I am totally new to WPF and looking for good quickstart documentation to start with. I will buy the book WPF Unleashed from Adam Nathan, but thats more a reference than a quickstart i think.
I just want you to tell me your favorite links and books and maybe demo applications concerning w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Best way to simulate a WAN network Simplified, I have an application where data is intended to flow over the internet between two servers. Ideally, I'd like to test at what point the software ceases to function. At what lowerbound limit (bandwidth, latency, dropped packets) do things stop working to test the reliabi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How to databind a property within a property I cureently have a set up like below
Public ClassA
property _classB as ClassB
End Class
Public ClassB
property _someProperty as someProperty
End Class
what I want to do is to databind object A to a gridview with one of the columns being databound to ClassB._som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: determining points from set of pairwise distances given a matrix of distances between points is there an algorithm for determining a set of n-dimensional points that has these distances? (or at least minimises the error)
sort of like a n-dimensional version of the turnpike problem.
The best I can come up with is us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Web App to best Add, Delete and Edit rows without refreshing the page I am writing a Time Sheeting web application that involves users entering their tasks for the week. I would like not to have the page refresh so I am exploring ways to add/delete/edit tasks using JavaScript on the client browser.
Currently I am u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visual Studio Solution Structure for multiple deployable projects Scenario:
Currently we have a single solution supporting a single deployable entity, a WinForm/WPF client, this solution has a layer architecture with projects representing various layers (Data, Business, UI). We will be introducing other deployable e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL Server 2000 Live data mirroring I am currently working with 2 sql 2000 servers one I can query but not add any databases to which lead to the second one having lots of queries that use the first as a linked server. I would like to improve performance while still querying live data.
Is it possible to mirror the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL - state machine - reporting on historical data based on changeset I want to record user states and then be able to report historically based on the record of changes we've kept. I'm trying to do this in SQL (using PostgreSQL) and I have a proposed structure for recording user changes like the following.
CREATE T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Design of inheritance for Validate interfaces I've never been so good at design because there are so many different possibilities and they all have pros and cons and I'm never sure which to go with. Anyway, here's my problem, I have a need for many different loosly related classes to have validation. However, some o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: A read on mesh algorithm and mesh library I am interested to read and understand the 2D mesh algorithms. A search on Google reveals a lot of papers and sources, however most are too academic and not much on beginner's side.
So, would anyone here recommend any reading sources ( suitable for the beginners), or open s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Spring security: adding "On successful login event listener" I'm new to Spring Security. How do I add an event listener which will be called as a user logs in successfully? Also I need to get some kind of unique session ID in this listener which should be available further on. I need this ID to synchronize with anot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Which template engine and Ajax framework/toolkit can load templates from JAR files? Which Template-Engine and Ajax-Framework/-Toolkit is able to load template information from JAR-Files?
A: If you mean server-side template engines, you can get Velocity to load its templates from the classpath (which includes JAR fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data from Google Analytics So Google Analytics does not have an API that we can use to get our data, so is there an efficient way to programaticly fetch the data collected by Google, without logging it locally?
Edit:
I would prefer a Python or PHP solution but anything will work.
A: Google just announced that they'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: sqlParameter conversion I'm trying to call the SQL statement below but get the following error:
System.Data.SqlClient.SqlException: Conversion failed when converting
the varchar value '+@buildingIDs+' to data type int.
@"SELECT id, startDateTime, endDateTime
FROM tb_bookings
WHERE buildingID IN ('+@buil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182181",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SSL Certificate no WWW Apache (ModRewrite) EV ModRewrite can easily handle stripping the www off the front of my domain.
In .htaccess:
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should new web applications follow the MVC or MVP pattern? Note that I am not asking which to choose (MVC or MVP), but rather if one of the two should be used for a web application.
I realize that it might be too much work to convert an older application from its current design to a MVC or MVP pattern. However, what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I watch a file for changes? I have a log file being written by another process which I want to watch for changes. Each time a change occurs I'd like to read the new data in to do some processing on it.
What's the best way to do this? I was hoping there'd be some sort of hook from the PyWin32 library. I've fou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "402"
} |
Q: What do I need to import to gain access to my models? I'd like to run a script to populate my database. I'd like to access it through the Django database API.
The only problem is that I don't know what I would need to import to gain access to this.
How can this be achieved?
A: This is what I have at the top of one ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I replicate Perl's unpack functionality in C#? I am trying to recreate a Perl script in C# but have a problem creating a checksum value that a target system needs.
In Perl this checksum is calculated using the unpack function:
while (<PACKAGE>) {
$checksum += unpack("%32C*", $_);
}
$checksum %= 32767;
cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Os.path : can you explain this behavior? I love Python because it comes batteries included, and I use built-in functions, a lot, to do the dirty job for me.
I have always been using happily the os.path module to deal with file path but recently I ended up with unexpected results on Python 2.5 under Ubuntu linux, whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Are there any security risks associated with me using OpenID as the authentication method on my site? Is OpenID a secure method of authentication users on a website?
And, if not, what are the security risks associated with OpenID?
A: Actually I always disliked OpenID for various reasons.
*
*I have to trust the O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How to constrain a database table so only one row can have a particular value in a column? Using Oracle, if a column value can be 'YES' or 'NO' is it possible to constrain a table so that only one row can have a 'YES' value?
I would rather redesign the table structure but this is not possible.
[UDPATE] Sadly, null v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Versioning by default in SharePoint How can I modify a SharePoint site so that versioning is turned on by default in Document Libraries?
A: Versioning is not done at the site level, but at the list level.
If you want versioning to be turn on on each new library, you'll have to either:
*
*Use your own library tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Looking for open-source library for editing AAC metadata (M4A files) I'm looking for an open-source library for editing AAC metadata in M4A files (as appearing in iTunes). Specifically, I need to be able to add an album art tag. It should be something similar to id3lib, which works with ID3 tags on MP3 files.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Is there a way to simulate the C++ 'friend' concept in Java? I would like to be able to write a Java class in one package which can access non-public methods of a class in another package without having to make it a subclass of the other class. Is this possible?
A: As far as I know, it is not possible.
Maybe, You c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "234"
} |
Q: Alternative to Html.Button? I know the Html.Button has been moved to the Microsoft.Web.Mvc namespace, but I really miss the generic versions that used to exist in the early Previews.
All I want the Html.Button to do is to hit an action in my controller, but I'd rather not write the JavaScript in the onClickMethod a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Replace Placeholders in word document with c# I have a template in word (.docx) format and want to replace some placeholders in this template with my own data, do you know where I can find the right classes for this project? It would be nice for me to know the namespace. Are there any newer classes for handling word... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can PHP PDO Statements accept the table or column name as parameter? Why can't I pass the table name to a prepared PDO statement?
$stmt = $dbh->prepare('SELECT * FROM :table WHERE 1');
if ($stmt->execute(array(':table' => 'users'))) {
var_dump($stmt->fetchAll());
}
Is there another safe way to insert a table na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182287",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "270"
} |
Q: Subversion versus Vault
Possible Duplicate:
Any tool to migrate repo from Vault to Subversion?
I'm currently reviewing the benefits of moving from SVN to a SourceGear Vault.
Has anyone got advice or a link to a detailed comparison between the two?
Bear in mind I would have to move my current Source Control system... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I print to a Bluebird BIP-1300 thermal printer from C#? My application runs under CF 2.0 locally and i would like to know how to connect and send something to print in the embedded printer of a http://www.milliontech.com/home/content/view/195/95/'>Bluebird BIP-1300 device.
Ideally i would like an example in C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Java: Swing Libraries & Thread Safety I've often heard criticism of the lack of thread safety in the Swing libraries. Yet, I am not sure as to what I would be doing in my own code with could cause issues:
In what situations does the fact Swing is not thread safe come into play ?
What should I actively avoid doing ?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182316",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to Serialize Hibernate Collections Properly? I'm trying to serialize objects from a database that have been retrieved with Hibernate, and I'm only interested in the objects' actual data in its entirety (cycles included).
Now I've been working with XStream, which seems powerful. The problem with XStream is that i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why are functional tests not enough? What do unit tests offer? I just had a conversation with my lead developer who disagreed that unit tests are all that necessary or important. In his view, functional tests with a high enough code coverage should be enough since any inner refactorings (interface changes, etc.) wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Company insists on using a binary format for all our documentation I work at a company that, for some reason, insists that all our development documentation should be in MS Word format. Which, being a binary format, means we cannot:
*
*Diff versions of a document against each other (so peer reviewing them is a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Finding the end of a substring match in .NET I am trying to find the index of a substring in a string that matches another string under a specific culture (provided from a System.CultureInfo).
For example the string "ass" matches the substring "aß" in "straße" under a German culture.
I can find the index of the st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Module versions in a crash dump Is there a way to figure out versions of modules that were loaded into the process' address space when the process crashed from a crash dump that was generated by the process calling the MiniDumpWriteDump function? In other words, is any version information stored inside a dmp file?
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the easiest way using .net to check if events have been logged in the eventlog? What is the easiest way to check if events have been logged in the eventlog during a period of time?
I want to perform a series of automated test steps and then check if any errors were logged to the Application Event Log, ignori... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to do a flicker-free animated C# custom control? I am currently creating a custom control that needs to handle animation in a C# project. It is basically a listbox that contains a fixed number of elements that are subject to move. An element (another user control with a background image and a co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Uppercase first two characters in a column in a db table I've got a column in a database table (SQL Server 2005) that contains data like this:
TQ7394
SZ910284
T r1534
su8472
I would like to update this column so that the first two characters are uppercase. I would also like to remove any spaces between the first tw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Xml configuration versus Annotation based configuration In a few large projects i have been working on lately it seems to become increasingly important to choose one or the other (XML or Annotation). As projects grow, consistency is very important for maintainability.
My questions are: what are the advantages of XM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Manual for cross-compiling a C++ application from Linux to Windows? Is there a manual for cross-compiling a C++ application from Linux to Windows?
Just that. I would like some information (links, reference, examples...) to guide me to do that.
I don't even know if it's possible.
My objective is to compile a program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to JSON decode array elements in JavaScript? I have a JavaScript array that, among others, contains a URL. If I try to simply put the URL in the page (the array is in a project involving the Yahoo! Maps API) it shows the URL as it should be.
But if I try to do a redirect or simply do an 'alert' on the link array... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to add non-nullable columns with default values Often we need to add a non-nullable column to a table, and it is quite a mission. Using a default constraint as is doesn’t work, so we have to create nullable columns, update them to default values, then make them non-nullable. Is there not an easier way to do t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Tool for validating SQL Server database schema Are there any tools available for validating a database schema against a set of design rules, naming conventions, etc.
I'm not talking about comparing one database to another (as covered by this question).
I want to be able to say "What in this database doesn't meet thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: "TryParse / Parse like" pattern: what is the best way to implement it This question is a follow-up from How to indicate that a method was unsuccessful. The xxx() Tryxxx() pattern is something that can be very useful in many libraries. I am wondering what is the best way to offer both implementations without duplicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How can I upload more than one file from a single HTML form in IE? Internet Explorer (from versions 4 to 7, at least) limits the number of files uploaded using a single 'input type="file"' form field to one. What is the best approach to take if I want to upload more than one file in a single HTTP POST request?
A: Y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create documented WSDL using XFire I use XFire to create a webservice wrapper around my application. XFire provides the webservice interface and WSDL at runtime (or creates them at compile time, don't know exactly).
Many of our customers don't know webservices very well and additionally they simply don't read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ColdFusion and trailing comma How do I remove a trailing comma from a string in ColdFusion?
A: Check the rightmost char - if it's a comma, set the string to a substring of the original, with length -1.
Trimming the string ensures that spaces after the trailing comma don't interfere with this method.
<cfset myStr = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to avoid rounding problems when comparing currency values in Delphi? AFAIK, Currency type in Delphi Win32 depends on the processor floating point precision. Because of this I'm having rounding problems when comparing two Currency values, returning different results depending on the machine.
For now I'm using the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I configure the TortoiseSVN 'Global ignore pattern' properly? I would like TortoiseSVN (1.5.3) to ignore certain folders, their contents and certain other files wherever they might appear in my directory hierarchy but I cannot get the global ignore string right.
Whatever I do, it either adds to much or ignore... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: What is the best starting point on the Entity Framework from MS? Please give me the direction of the best guidance on the Entity Framework.
A: Mike Taulty has a series of blog entries here that would be worth reading. But first - make sure you really, really want the complexity of EF; NHibernate, LINQ-to-SQL, etc m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: The best PHP lib/class to generate RSS/Atom I have to produce an RSS/Atom feed in various applications, and I want to know a good library or class which is able to produce both, and which already handles all common problems.
For example, the one I used for years does not put the right format for date, so my feed is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182510",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Regexp: Substituting a version number in an XML file Ok I give up, I've been trying to write a regexp in ant to replace the version number from something that I have in a properties file. I have the following:
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="some.feature.id"
label="Some t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is this how you would structure your CSS stylesheet? Leaving aside the question of whether you should serve single or multiple stylesheets, assuming you're sending just one, what do you think of this as a basic structure?
/* Structure */
Any template layout stuff should be put into here, so header, footer, body etc.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating controls within a Loop I have have some code which adds new cells to a table and fills them with text boxes.
The way I've coded it so far works fine:
TableCell tCell1 = new TableCell();
TableCell tCell2 = new TableCell();
TableCell tCell3 = new TableCell();
TableCell tCell4 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/182529",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.