text
stringlengths
8
267k
meta
dict
Q: What is the best default transaction isolation level for an ERP, if any? Short background: We are just starting to migrate/reimplement an ERP system to Java with Hibernate, targeting a concurrent user count of 50-100 users using the system. We use MS SQL Server as database server, which is good enough for this loads...
{ "language": "en", "url": "https://stackoverflow.com/questions/364265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Free MySQL synchronization tool does anybody know some free tool for synchronization MySQL database (data and structure) like in Navicat for Windows ? I'm using Structure and Data synchronization. Sometimes Data transfer. I was just wondering if there is not any software like this for free. Found only HeidiSQL (whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/364291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: SQL Server 2005 - Select top N plus "Other" I have a table for which I want to select top the 5 rows by some column A. I also want to have a 6th row titled 'Other' which sums the values in column A for all but the top 5 rows. Is there an easy way to do this? I'm starting with: select top 5 columnB, columnA fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/364292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: System.Addin & ClickOnce I have a annoying build process from using System.Addins API with ClickOnce. Using System.Addins requires a specific directory structure, and the main project does not reference the adapters, view, and contract directly, which doesn't work well with the ClickOnce architechture. The annoying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Determining the default message store under Windows Mobile The following piece of test code runs under Windows Mobile. It's objective is to seek out the default message store so I can get the proper account name for programmatically compiling an email. IMAPISession *mapiSession; HRESULT hr = S_OK; MAPIInitialize (N...
{ "language": "en", "url": "https://stackoverflow.com/questions/364300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Solr: Using Regex fragmenter to extract paragraphs I posted this message to the Solr mailing list, but I'm trying here too in case there's a Solr expert lurking around. I am trying to use the regex fragmenter and am having a hard time getting the results I want. I am trying to get fragments that start on a word char...
{ "language": "en", "url": "https://stackoverflow.com/questions/364301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is a good resources to add content snippets (widgets) to many sites like iGoogle, Facebook and MySpace, etc I have found services like ClearSpring and Widgetbox for putting content snippets onto a widget range of social networking web sites, but I would like to build my own widgets without a third party depende...
{ "language": "en", "url": "https://stackoverflow.com/questions/364308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ASP.net IHttpHandler to execute .aspx file What is the proper to make an IHttpHandler to have an existing .aspx page process the request? I would like to be able to compile the .aspx file into an IHttpHandler and then have it process the request. There is the PageParser.GetCompiledPageInstance method, however in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/364318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can you recommend a good php Gantt charting development? I would like to add a simple Gantt chart to my development, was wondering if you could recommend any that seem good to you. I don’t need anything really flash (I’m not trying to reproduce MS Project) just need to plot a number of projects over a 24/7 timeframe...
{ "language": "en", "url": "https://stackoverflow.com/questions/364322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Markup-based GUI for python I want to get myself into programming some serious GUI based applications, but when I look at things like Swing/SWT from Java, I can't help but HATE programming a GUI interface by creating "widget" objects and populating them and calling methods on them. I think GUI design should be don...
{ "language": "en", "url": "https://stackoverflow.com/questions/364327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Access to the path 'c:\ApplicationFolder' is denied I am getting a strange error on a remote windows clients (WinForm application using C# 2.0) Error Message: Access to the path 'c:\ApplicationFolder' is denied. Stack Trace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.Fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/364336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create a Generic StateManagedCollection? One example is described here. But the author apparently forgot to include the code for download. Another example is shown here. However, this one doesn't quite work (as described in comments). How do you do this correctly? A: The second example you found almost wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/364347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Accessing http query string in a xaml file If an HTTP request is made to an asp web page, then the asp code can access the query string via the Request.QueryString object. What's the analagous way to do this in XAML? For example, say that I wanted to write a simple XAML page that just echoes the query string back i...
{ "language": "en", "url": "https://stackoverflow.com/questions/364357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Threaded code on mod_python I have written a Django app that makes use of Python threading to create a web spider, the spider operates as a series of threads to check links. When I run this app using the django test server (built in), the app runs fine and the threads seem to start and stop on time. However, running...
{ "language": "en", "url": "https://stackoverflow.com/questions/364358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Message: Object required error when querying XML in JavaScript test[_nObjectives].pool[j].feedbackCorrect = oQuestions[j].getElementsByTagName("feedbackCorrect")[0].firstChild.data; and the XML in this case contains this: <feedbackCorrect> </feedbackCorrect> When executing that line of code the following err...
{ "language": "en", "url": "https://stackoverflow.com/questions/364360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading from dynamically created tables with LINQ We create tables in runtime. They have the same schema layout as tables that exist in our DBML but with an alternate name. We want to set the table names in runtime in our use of Linq to Sql. Using wrapper classes on the Metadata as outlined in https://forums.microso...
{ "language": "en", "url": "https://stackoverflow.com/questions/364365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Fastest way to move files on a Windows System I want to move about 800gb of data from an NTFS storage device to a FAT32 device (both are external hard drives), on a Windows System. What is the best way to achieve this? * *Simply using cut-paste? *Using the command prompt ? (move) *Writing a batch file to copy a...
{ "language": "en", "url": "https://stackoverflow.com/questions/364367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Using Javascript to render data onload This post probably will need some modification. I'll do my best to explain... Basically, as a tester, I have noticed that sometimes programers who use template-based web back ends push a lot of stuff into onload handlers that then do stuff like load menu items, change display v...
{ "language": "en", "url": "https://stackoverflow.com/questions/364392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Associating data to a DOM element for jQuery In a previous life, I might have done something like this: <a href="#" onclick="f(311);return false;">Click</a><br/> <a href="#" onclick="f(412);return false;">Click</a><br/> <a href="#" onclick="f(583);return false;">Click</a><br/> <a href="#" onclick="f(624);return fals...
{ "language": "en", "url": "https://stackoverflow.com/questions/364412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Web based Software Distribution Currently at my job, we are distributing installers for our windows base software via an apache web server on a Ubuntu server using apache authentication. When we initially started doing this we only had 3 projects to distribute and as such, 3 htpasswd files to manage. Since then, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/364426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is a good way to implement an agile database process, which is in synch with the code base, especially in regards to continuous integration? The project I am working on were are trying to come up with a solution for having the database and code be agile and be able to be built and deployed together. Since the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/364428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do I generate an SSL Certificate with Microsoft Certificate Services and then install / configure it to work with Apache? I've generated a certificate request, submitted it to the Microsoft Certificate Services program. It issues the certificate. I downloaded it to conf/ssl/server.cert I configured it in apache ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a form object from 2 different model objects in Django? I have 2 objects, both from different Model classes, and want to show a form containing some fields from each one. How can I do this? A: The way I do it is by creating two ModelForm classes that use the fields Meta attribute to specify which subs...
{ "language": "en", "url": "https://stackoverflow.com/questions/364440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.NET TreeView auto expand? Does anyone know how to show a asp:TreeView always expanded to the leaves? So if I have a 2-level tree, I want it to be expanded at all times. Is there a property on TreeView that does this or could you show the code snippet on how to do this? Thank you very much! Ray. A: aspx.cs: pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/364448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Findbugs warning: Equals method should not assume anything about the type of its argument When running FindBugs on my project, I got a few instances of the error described above. Namely, my overriding versions of equals cast the RHS object into the same type as the object in which the overriding version is defined. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Is there a standard template for AS3 documentation? I've seen it used a couple places: * *http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/ *http://developer.yahoo.com/flash/astra-flash/classreference/ Is this just a coincidence or is it somewhere I can grab? I'd love to use it for a new project I'm wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/364461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Output SQL query results to flat-file with Java Is there an easy or straightforward way in Java to output the results of a DB Query to a file (either csv, tab, etc). Perhaps even in Hibernate? I know that a query results can be dumped to a flat file on the DB Server. I am looking for a way that an application can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Poll: Correct behavior of equality when passed object does not match LHS type? I asked a related question about findbugs, but let's ask a more general question. Suppose that I am working with an object-oriented language in which polymorphism is possible. Suppose that the language supports static type checking (e.g.,...
{ "language": "en", "url": "https://stackoverflow.com/questions/364478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Determining the alignment of C/C++ structures in relation to its members Can the alignment of a structure type be found if the alignments of the structure members are known? Eg. for: struct S { a_t a; b_t b; c_t c[]; }; is the alignment of S = max(alignment_of(a), alignment_of(b), alignment_of(c))? Searching th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Which Eclipse distribution is good for web development using Python, PHP, or Perl? I'd like to try out Eclipse, but I'm a bit baffled with all the different distributions of it. I mainly program in Python doing web development, but I also need to maintain PHP and Perl apps. It looks like EasyEclipse is a bit behind....
{ "language": "en", "url": "https://stackoverflow.com/questions/364486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Would you consider using an alternative to MS SQL Server Management Studio? At work we recently upgraded from Microsoft SQL Server 7 to SQL 2005. The database engine is a lot more advanced, but the management studio is pretty awful in a number of ways. Most of our developers decided they preferred to stick with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Non-GUI Emacs with cscope So, i'm running emacs over a crappy ssh connection and I have it set up to use cscope. I can not use X because of this...hence I'm running emacs inside putty. However, when I search for something with cscope and it opens up the other buffer, I can not follow the links where cscope tells me ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What to program for a gadget that can deduce what I'm doing? The ultimate life-hack? This isn't really a programming question, more of an ideas question. Bear with me. My sister gave me a well-used Nokia N95. I don't really need it, but I wanted it to do some programming for it. It supports a few languages, of which...
{ "language": "en", "url": "https://stackoverflow.com/questions/364497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Does system.net.mail.smptclient disconnect from the server? We've got a few pages in our web systems that use the .net system.net.mail control to send emails. The thing has been working great, except it's now starting to look like the smptclient class may not actually be disconnecting from the server, such that the...
{ "language": "en", "url": "https://stackoverflow.com/questions/364501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What additional "standard" VB6 controls can I enable through Project There are lots of additional control "packs" (libraries) that you can enable in VB6 via Project>Components. I'm trying to find good replacements for the Sheridan SScommand and SSframe controls. But I also want to find additional controls like a Tab...
{ "language": "en", "url": "https://stackoverflow.com/questions/364503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you submit a dropdownlist in asp.net mvc <% using (Html.BeginForm() { %> <%=Html.DropDownList("TopItemsList", ViewData["ListData"], new { onchange="[???]" })%> <% } %> In the above example, what value should you set onchange to? Or, how do you get the correct form? Is there any difference with Ajax.Begin...
{ "language": "en", "url": "https://stackoverflow.com/questions/364505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What method gets called when iPhone app exits? I know that -applicationWillResignActive gets called upon an incoming call, but is there a standard method that gets called if the user hits the "exit" button (the only button on the front of the iPhone)? A: - (void)applicationWillTerminate:(UIApplication *)applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/364514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: In Python, how do I iterate over a dictionary in sorted key order? There's an existing function that ends in the following, where d is a dictionary: return d.iteritems() that returns an unsorted iterator for a given dictionary. I would like to return an iterator that goes through the items sorted by key. How do I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/364519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "226" }
Q: How do I use frame on ASP.NET page? How do you correct use frame on a asp.net page, so I have a left frame and a right frame, when I click the links on the page presented in the left frame, it loads the according page in the right frame? On top of this, I need to have a master page on all the right frame's pages. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/364522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a general "back-end" library for Java reflection I'm currently working with a specialized, interpreted, programming language implemented in Java. As a very small part of the language, I'd like to add the ability to make calls into Java. Before I dive into all of the nitty-gritty of reflection, I was wonder...
{ "language": "en", "url": "https://stackoverflow.com/questions/364523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to include directory structure in an ant jar file? I am a bit of an ant newbie, and I'm having trouble making a jar correctly. As an example, say I want to make a jar with my StringUtil class. Using the following ant directive, I can create the jar, but the problem is that the directory structure is lost. It sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/364531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Fastest way to share data objects between a Java server and a C# client What is the fastest way to share data structures between Java and C#? I want something where I can literally send a "car" object or a "foo" object and have it serialized and deserialized on both server and client. A: WSDL (SOAP) is fairly inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/364535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I benchmark editor productivity objectively? I'm not sure if Vim makes me more productive compared to other editors/ide's like Eclipse for example. But somehow I get an empowering feeling when using Vim and noticed resistance to trying others editors. Example: As soon a I see some cool feature in an other ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/364539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: NHibernate session management in ASP.NET MVC I am currently playing around with the HybridSessionBuilder class found on Jeffrey Palermo's blog post: http://jeffreypalermo.com/blog/use-this-nhibernate-wrapper-to-keep-your-repository-classes-simple/ Using this class, my repository looks like this: public class UserRep...
{ "language": "en", "url": "https://stackoverflow.com/questions/364540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do I fix the error that occurs during data transfer between SQL Server and MySql? I have an SSIS package that connects to a mysql server and attempts to pulls data from different tables and inserts the rows into a SQL Server 2005 database. One issue i notice is that at any given time it runs, regardless of what ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Find a "best fit" equation It's been a while since I was in college and knew how to calculate a best fit line, but I find myself needing to. Suppose I have a set of points, and I want to find the line that is the best of those points. What is the equation to determine a best fit line? How would I do that with PHP? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to get the output of an OS X application on the console, or to a file? I am writing a Cocoa application with Mono embedded. I want to run and see my debug output in Terminal. On the Cocoa side I am using NSLog(), and on the Mono side I am using Debug.Write(). I can see my debug output in Xcode's console, but n...
{ "language": "en", "url": "https://stackoverflow.com/questions/364564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: QueryInterface for interface VBA._Collection failed We are randomly seeing this error during long executions of our system. The error is caught by our alarm system, and we successfully retry, and continue running the system. The only hits we found on Google seem to mention corrupt installations. We do not think this...
{ "language": "en", "url": "https://stackoverflow.com/questions/364600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: static linking on AIX with pthread I've been reading and researching this for a couple of days now, and decided I need some outside assistance! (and this site seemed like a nice place, so I thought I'd post my question here and see how it goes) our little company hasn't built our applications on AIX for several year...
{ "language": "en", "url": "https://stackoverflow.com/questions/364605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: best practices to import text into html What is the best practice for importing text into html from a multipage InDesign document, from designer to non-designer. Document designed on a mac going to CMS on PC - hand off the InDesign File or strip text into word file? Supplying all images and pdf as go-by? A: More pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/364610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET Sample VCF Reader Does anyone know of a good sample (inline in reply, or web tutorial) for extracting data from a VCF file using C#/.NET? Does anyone use VCF files anymore? Is this even worth doing for a contact management system? A: I'm a little surprised that this isn't built into the .NET Framework anywher...
{ "language": "en", "url": "https://stackoverflow.com/questions/364612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: In red-black trees is top-down deletion faster and more space efficient than bottom-up deletion? Per this page http://www.eternallyconfuzzled.com/tuts/datastructures/jsw_tut_rbtree.aspx "Top-down deletion" is an implementation of a red-black tree node removal that pro-actively balances a tree by pushing a red node ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to get item's position in a list? I am iterating over a list and I want to print out the index of the item if it meets a certain condition. How would I do this? Example: testlist = [1,2,3,5,3,1,2,1,6] for item in testlist: if item == 1: print position A: Here is another way to do this: try: id...
{ "language": "en", "url": "https://stackoverflow.com/questions/364621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "184" }
Q: memory management, should release be used in this case? Given the following code snippet from inside a method; NSBezierPath * tempPath = [NSBezierPath bezierPathWithOvalInRect:pathRect]; [tempPath retain]; [path release]; [self setPath:tempPath]; Am I responsible fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/364631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a WYSIWYG section on a web page? I want to know the basic principle used for WYSIWYG pages on the web. I started coding it and made it using a text area, but very soon I realized that I cannot add or show images or any HTML in the text area. So I made it using DIV, but I did not understand how I could ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/364642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use my standard python path when running python scripts from xcode macros I'm trying to run Python scripts using Xcode's User Scripts menu. The issue I'm having is that my usual os.sys.path (taken from ~/.profile) does not seem to be imported when running scripts from XCode the way it is when running them a...
{ "language": "en", "url": "https://stackoverflow.com/questions/364655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you restrict access to certain paths using Lighttpd? I would like to restrict access to my /admin URL to internal IP addresses only. Anyone on the open Internet should not be able to login to my web site. Since I'm using Lighttpd my first thought was to use mod_rewrite to redirect any outside request for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I create a foreign key which references an entire composite key? I have two tables one has a three column composite key. The other needs to reference this composite key. What is the syntax for creating a foreign key which references multiple columns. I tried googleing, but I couldn't find it. A: FOREIGN K...
{ "language": "en", "url": "https://stackoverflow.com/questions/364665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I quickly create a complex select query using Zend_Db? Let's say have something like: SELECT energy_produced, energy_consumed, timestamp1 AS timestamp FROM ( SELECT max(energy_produced) AS energy_produced, mid(timestamp, 1, 10) AS timestamp1 FROM tbl_energy WHERE site_id = 1366 AND mid(timestamp, 1, 10) >= D...
{ "language": "en", "url": "https://stackoverflow.com/questions/364666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Help with many-to-many relation I have a problem with a many-to-many relation in my tables, which is between an employee and instructor who work in a training centre. I cannot find the link between them, and I don't know how to get it. The employee fields are: * *employee no. *employee name *company name *depa...
{ "language": "en", "url": "https://stackoverflow.com/questions/364671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find missing data either in array or in mySQL table? I have an array filled with values (twitter ids) and I would like to find the missing data between the lowest id and the highest id? Any care to share a simple function or idea on how to do this? Also, I was wondering if I can do the same with mySQL? I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/364676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading lots of upfront data. . sync or async . so i have a winforms apps that downloads a set of data syncronously on startup. This obviously takes a while but then when any of the services or GUI classes load, they all have this data. I could change this to put on a background thread but then every component th...
{ "language": "en", "url": "https://stackoverflow.com/questions/364687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Authenticating ASP.NET users against Active Directory: who manages users and groups? A project I'm working on supposed to authenticate users agains AD. I've never worked with AD before, neither did I work in organizations that use AD, so here's my stupid question: in case if AD involved, who manages roles, groups an...
{ "language": "en", "url": "https://stackoverflow.com/questions/364692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I use an ASP.net asp:RangeValidator to validate a date properly? Here's my code: <asp:TemplateField HeaderText="* License Setup Date"> <EditItemTemplate> <asp:RequiredFieldValidator ID="LicenseSetupDateRequired" ErrorMessage="License Setup Date can't be blank." ValidationG...
{ "language": "en", "url": "https://stackoverflow.com/questions/364701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Choice of embedded database? We are building an application on an embedded platform that needs a reasonably high performance database (very low select speeds on tables with > 500,000 entries). The database needs to be able to : * Store atomic commit information in NVRAM so that such information is preserved if pow...
{ "language": "en", "url": "https://stackoverflow.com/questions/364719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: positioning logo and navigation links not aligning Screenshot of the problem: The yellow block is the logo and the blue box is the nav links (I have blanked them out). I would like to align the links at the bottom so they are stuck to the top of the body content (white box). How would I do this? Here is the relevan...
{ "language": "en", "url": "https://stackoverflow.com/questions/364730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Maps API--Can't get info window data to load properly I have this code that generates markets I want to be clickable with a pop up info window. for (i = 0; i < marker_array.length; i++) { var point = new GLatLng(marker_array[i][0], marker_array[i][1]); var marker = new GMarker(point, markerOptions);...
{ "language": "en", "url": "https://stackoverflow.com/questions/364731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq 2 SQL or Linq Entities I am starting to design a new application and what I am wondering is peoples opinions on Linq2SQL or Linq2Entities and what they feel is the better technology for rapid development. I am also doing some research into ADO.net data services. A: I'm a big fan of LINQ to SQL if you meet the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.NET toolkit Accordion double click issue I am using a accordion control which has nested gridviews within the content section and a series of buttons. When the page is first loaded, it requires 2 clicks before any button or linkbutton's events are fired. For the buttons I have hacked together a fix using extern...
{ "language": "en", "url": "https://stackoverflow.com/questions/364741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Force compile error if function argument out of range I am restricted to C (cannot use C++). I wish C had stricter type checking. Is there a way to get compile errors on the commented lines? If it helps, the enum values cannot overlap. enum hundred { VALUE_HUNDRED_A = 100, VALUE_HUNDRED_B }; enum thousand ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Should we use Nexus or Artifactory for a Maven Repo? We are using Maven for a large build process (> 100 modules). We have been storing our external dependencies in source control, and using that to update a local repo. However, we are ready to graduate to a local repo that can cache central so that we don't have to...
{ "language": "en", "url": "https://stackoverflow.com/questions/364775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "120" }
Q: Extract column of doubles from a DataTable Is there an easier way to achieve the following? var obj = from row in table.AsEnumerable() select row["DOUBLEVALUE"]; double[] a = Array.ConvertAll<object, double>(obj.ToArray(), o => (double)o); I'm extracting a column from a DataTable and storing the column i...
{ "language": "en", "url": "https://stackoverflow.com/questions/364788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery select descendants, including the parent Consider the following HTML: <div class="foo" id="obj"> I should be changed red <div class="bar" style="color:black;"> I should not be changed red. <div class="foo">I should be changed red.</div> </div> </div> Given a DOM element obj and an expres...
{ "language": "en", "url": "https://stackoverflow.com/questions/364791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What does Java use to determine if a key is a duplicate in a Map? My first instinct is to say each key is an object, and has a hash code, which is what is used to determine if a duplicate is being inserted. However, I can't find anything to back that up for sure. Can someone provide a link that says that, or provide...
{ "language": "en", "url": "https://stackoverflow.com/questions/364794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How exactly does a generator comprehension work? What does generator comprehension do? How does it work? I couldn't find a tutorial about it. A: List/generator comprehension is a construct which you can use to create a new list/generator from an existing one. Let's say you want to generate the list of squares of ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/364802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "133" }
Q: Batch Printing PDFs from ASP.NET I have a situation where in a web application a user may need a variable list of PDFs to be printed. That is, given a large list of PDFs, the user may choose an arbitrary subset of that list to print. These PDFs are stored on the file system. I need a method to allow users to print t...
{ "language": "en", "url": "https://stackoverflow.com/questions/364803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Please critique the design I want to gather data from different data servers located in Europe and Asia. Rather than running a plain data query task that will clog up the undersea network I am thinking of a couple of machines that will be available for me at the local sites. I am thinking to design the master packag...
{ "language": "en", "url": "https://stackoverflow.com/questions/364809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the number of rows with a GROUP BY query I have a query to the effect of SELECT t3.id, a,bunch,of,other,stuff FROM t1, t2, t3 WHERE (associate t1,t2, and t3 with each other) GROUP BY t3.id LIMIT 10,20 I want to know to many total rows this query would return without the LIMIT (so I can show pagination in...
{ "language": "en", "url": "https://stackoverflow.com/questions/364825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: PHP+MySQL: searching using wildcards So, I have the following rows in the DB: 1 | /users/ 2 | /users/admin/ 3 | /users/admin/* 4 | /users/admin/mike/ 5 | /users/admin/steve/docs/ The input URL is /users/admin/steve/, and the goal is to find the URL match from the DB. I want to return #3 as the correct row, since the...
{ "language": "en", "url": "https://stackoverflow.com/questions/364832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I run a Perl script from within a Perl script? I've got a Perl script that needs to execute another Perl script. This second script can be executed directly on the command line, but I need to execute it from within my first program. I'll need to pass it a few parameters that would normally be passed in when i...
{ "language": "en", "url": "https://stackoverflow.com/questions/364842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: How do you change a connection string dynamically in an object datasource in asp.net? how to change connection string dynamically in object datasource in asp.net ? A: protected void ObjectDataSource1_ObjectCreated(object sender, ObjectDataSourceEventArgs e) { if (e.ObjectInstance != null) { SqlConn...
{ "language": "en", "url": "https://stackoverflow.com/questions/364847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ROR: To scaffold or not? I love scaffolding and it extremely helpful for prototyping. But Should we use scaffolding for developing application as such? A: The name "scaffolding" is sort of a misnomer in Rails now (post 2.0). The structure generated through scaffolding generator is more of a base application to buil...
{ "language": "en", "url": "https://stackoverflow.com/questions/364860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Oracle XE for Linux...? Is there a Linux version of Oracle XE? I could not find any info on Oracles official site. A: Yes, it's available here. You will find it in RPM and Deb packages. A: You can download it @ http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html A: Not sure wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/364867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I measure runtime memory requirements of an application on windows platform? How can I measure runtime memory requirements of an application on windows platform? A: Perfmon.exe will monitor the usage of a process. Run perfmon.exe, right-click Add counters, pick Process for the Performance Object, then choos...
{ "language": "en", "url": "https://stackoverflow.com/questions/364881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Stomp.framework iPhone linking. Anyone have experience? Having trouble linking the Stomp.framework into an iPhone SDK application. http://code.google.com/p/stompframework/ I follow the instructions, adding it to the project, adding a Build Phase for Copying the Files, and including it via #import . I keep getting "i...
{ "language": "en", "url": "https://stackoverflow.com/questions/364893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Register an application to a URL protocol (all browsers) via installer I know this is possible via a simple registry change to accomplish this as long as IE/firefox is being used. However, I am wondering if there is a reliable way to do so for other browsers, I am specifically looking for a way to do this via an i...
{ "language": "en", "url": "https://stackoverflow.com/questions/364895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is it possible to retroactively turn a set of commits into a branch? Say I have a git repository and I've been working on master, can I retroactively create a branch. For example: A - B - C - A1 - D - A2 - E I want to make it look like this: A - A1 - A2 \ \ B - C - D - E The specific use case is wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/364925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: WPF How to get a UserControl to inherit a Button? I created a UserControl which consists of a couple ellipses and labels. I added it just fine to another form and things were looking pretty snazzy. Then I went to start adding some event handlers and discovered that the control I made did not expose a Click event. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Problem with self-referential has_many :through associations in Rails I was reading about self-referential has_many :through data situations today, because I'm trying to build a Rails application that uses them. I found this example situation on the Internet, and I have a question about it. Let me post this example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Input and Output Stream Pipe in Java Does anyone have any good suggestions for creating a Pipe object in Java which is both an InputStream and and OutputStream since Java does not have multiple inheritance and both of the streams are abstract classes instead of interfaces? The underlying need is to have a single obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/364936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Clicking and draggging a user control in VB .NET creates object reference error message Failed to create component 'User Control 1'. the error message follows: 'System.NullReferenceException : Object reference not set to an instance of an object. at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is Multiple Inheritance Evil? Possible Duplicate: What is the exact problem with multiple inheritance? Why is multiple inheritance considered to be evil while implementing multiple interfaces is not? Especially when once considers that interfaces are simply pure abstract classes? (More or less) duplicate of What...
{ "language": "en", "url": "https://stackoverflow.com/questions/364941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to make PDF file downloadable in HTML link? I am giving link of a pdf file on my web page for download, like below <a href="myfile.pdf">Download Brochure</a> The problem is when user clicks on this link then * *If the user have installed Adobe Acrobat, then it opens the file in the same browser window in Ado...
{ "language": "en", "url": "https://stackoverflow.com/questions/364946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "145" }
Q: stopping sharepoint workflow programmatically well the thing is i am having a scheduled script that checks some changes in a different database (Oracle), if the change happens I need to cancel /kill/ stop a workflow if it is in progress on a specific item of my list How to do that? A: I did not try, but the SPWorkf...
{ "language": "en", "url": "https://stackoverflow.com/questions/364947", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Online PDF reader for my own site other than Scribd? I am using Scribd API (www.scribd.com) to display the PDF files in my website. I just want to know is there any other PDF API which i can use to embed the PDF in my website. FASTER and MORE customizable than Scribd, Mainly i want to put my company logo in that API...
{ "language": "en", "url": "https://stackoverflow.com/questions/364949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web development workflow with svn I set up my svn in assembla, and I code and test on my local machine that is set up identical to the production server. THen, I commit changes to assembla svn and also ftp upload to my production server. How can I improve my workflow? I would like to keep my svn on assembla because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364951", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I access the contents of an iframe with JavaScript/jQuery? I would like to manipulate the HTML inside an iframe using jQuery. I thought I'd be able to do this by setting the context of the jQuery function to be the document of the iframe, something like: $(function(){ //document ready $('some selector', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "848" }
Q: Access the id from iframe Here I had build a HTML page with an iFrame. I had an id within the iFrame src page. Is it possible to access the id from my current page through JavaScript. Please help me. A: You must be careful if you are accessing an iframe's script from your parent page, to make sure that your iframe ...
{ "language": "en", "url": "https://stackoverflow.com/questions/364959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Assign connection string to table adapter from session My application is already developed and now we are going to change the connection string whatever stored in the session object (Bcoz of Distributed Database Management System (DDBMS)) Problem is here..... In that application There are so many **ObjectDataSource...
{ "language": "en", "url": "https://stackoverflow.com/questions/364962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with caching I have an a aspx page, but all content is generated by hands(yes I know that I need to make a handler, I have another question) I want to cache output in client browser. Problem is that it's cached only for one query. public static void ProceedCaching(string etag, string lastModify, stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/364963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }