text
stringlengths
8
267k
meta
dict
Q: Open file from within a WebBrowser control? Does anyone know if it's possible to open a file in the file system via a link in a WebBrowser component? I'm writing a little reporting tool in which I display a summary as HTML in a WebBrowser component with a link to a more detailed analysis which is saved as an Excel f...
{ "language": "en", "url": "https://stackoverflow.com/questions/325512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Strongly typed viewdata I created a strongly typed LocationViewData with a properties like public Location location { get; set; } Location itself is model, with the properties Address, Country, and so on. In the controller I have: public ActionResult Edit(int id) { LocationViewData ld = new LocationViewData(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Code Reusability: Is it worth it? We all write reusable classes and code. We factor in configurability to allow us to reuse this fantastic new class again and again. We tell our bosses that spending this extra time now will save us time and money later. But in reality, for those of us who don't write third par...
{ "language": "en", "url": "https://stackoverflow.com/questions/325514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: MVC ASP.NET Best way to get 52 textbox key/values from View to Controller I'm hoping that it isn't to pass each as a parameter to the controller post method.. Have a grid of 52 text boxes representing weeks in a year, each will be containing a decimal value, need ALL of these passed back to the controller for mass u...
{ "language": "en", "url": "https://stackoverflow.com/questions/325515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reading Unicode with Console.ReadKey Is it possible to provide Unicode input to a console app, and read the Unicode char/string via Console.ReadKey()? I know Unicode works when reading the input via other methods, but unfortunately I need to use the 'interception' feature provided by ReadKey. Update: When pasting a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Load balancing based on proximity I'm working on a project were we have number (5 at the moment) of servers spread across the world. Clients connect to one of those servers through a centralized broker. We know the originating country of the client but nothing else. We have full control of the servers so we can have...
{ "language": "en", "url": "https://stackoverflow.com/questions/325523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Where to put the external jars? I use Eclipse (3.4) and my class compiles without warning or errors. My project uses an external jar file. Where do I need to put this external jar file in order not to get a java.lang.NoClassDefFoundError when using this class from another project (not in Eclipse)? I could just extra...
{ "language": "en", "url": "https://stackoverflow.com/questions/325524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: How many projects you know uses Velocity framework Do you have idea how many sucessful projects used Velocity framework for developing their UI ?.The reason I am asking is Velocity is replaced in most of the cases by JSP tags, but in our product we still use Velocity frmaework. A: Usually it's the other way around....
{ "language": "en", "url": "https://stackoverflow.com/questions/325537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: c# Retrieve reference to Project Resources (VS2008) I currently have a listview and I want to add an appropriate icon to each entry. I have created an icon within the Project resources and called it 'errorIcon.ico'. How can I reference this icon/resource and use it within a listview? A: First you need to create an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Console Application - Can't Catch Unhandled Exception I have written a very simple C# Console Application which will open a Crystal Report, refresh it and save it as a PDF to a specified location. When running within VS2005 everything runs fine; the pdf file is generated as expected. When I copy the .exe to my root ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Static member method call on class instance Here is a little test program: #include <iostream> class Test { public: static void DoCrash(){ std::cout<< "TEST IT!"<< std::endl; } }; int main() { Test k; k.DoCrash(); // calling a static method like a member method... std::system("pause"); r...
{ "language": "en", "url": "https://stackoverflow.com/questions/325555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: Aspect-oriented programming examples Can anyone post an example of Aspect-oriented programming (AOP) that is not logging? I've looked at several resources but all the examples are trivial logging. What is it useful for? A: Validation: [NotNull] public string Property1 { get; set; } [Length(Min = 10, Max = 20)] pub...
{ "language": "en", "url": "https://stackoverflow.com/questions/325558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Using psql to run an update I've a table with two columns are a unique key together and i cannot change the schema. I'm trying to execute an update using psql in which i change the value of one of the column that are key. The script is similar to the following: BEGIN; UPDATE t1 SET P1='23' where P1='33'; UPDATE t1 S...
{ "language": "en", "url": "https://stackoverflow.com/questions/325559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing interface as a parameter to an extension method I have used extension methods to extend html helpers to make an RSS repeater: public static string RSSRepeater(this HtmlHelper html, IEnumerable<IRSSable> rss) { string result=""; foreach (IRSSable item in rss) { res...
{ "language": "en", "url": "https://stackoverflow.com/questions/325561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Linux filesystem benchmarking best practices (Not really a programming question, sorry) I'm working on benchmarking various filesystems (most importantly: ext3) with various filesystem options (for instance: noatime, relatime etc.) for specific situations on a Linux box. For raw filesystem benchmarks, I'm looking in...
{ "language": "en", "url": "https://stackoverflow.com/questions/325565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JSP or PHP for Java server components? I have to choose a server pages technology for a few server components that are written in Java and hosted by Tomcat, like Lucene search service and a flex BlazeDS graphic component. Not sure whether to use JSP or PHP. On one hand JSP can integrate with the components Java API ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: retrieve email using PHP and pop3 - what is your technique? I can see some options available: 1) Use PEAR's POP3 class --> tried it, having some weird weird issues like FF choking to death on their sample code!!! 2) Use PHPClasses (here) --> seems to be the viable option at the time, still working on it 3) Write my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Run-time error 0 when populating a combo box in vb6 Strange error specific to a particular machine... I have a app in which a combo box's text value is set to the path of a document (i.e... cmbAIDFile.Text = clsTonyToolkit.GetSetting("ExportAIDFile",gtypmetadata.gcnnCentral) & "" Forget about all the GetSetting pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/325583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Integrated authentication for mysql When working with MSSQL on Windows I was used to a very convenient feature called integrated authentication. In short, being authenticated in Windows can give you access to the database, so no need to give any specific password. Now I am developing an application on Linux with no ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I need some help in Undo function in Java I write a Text Editor with Java , and I want to add Undo function to it but without UndoManager Class , I need to use a Data Structure like Stack or LinkedList but the Stack class in Java use Object parameters e.g : push(Object o) , Not Push(String s) I need some hints or...
{ "language": "en", "url": "https://stackoverflow.com/questions/325590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best resizable circular byte buffer available in Java? I need a byte buffer class in Java for single-threaded use. I should be able to insert data at the back of the buffer and read data at the front, with an amortized cost of O(1). The buffer should resize when it's full, rather than throw an exception ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Difference between value and itemvalue What is the difference between the value and itemValue attribute of the radiobutton in Jsf? A: The value is meant to send in a SelectItem object and not a String like itemValue is. The itemValue is the items value, which is passed to the server as a request parameter, but the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Do you know any open-source free Idea/Suggestion Management tool? I include myself in a group of thinkers in this "small" company. In order to gather suggestions and improvement ideas from my development team members, I was put in charge of mounting an Idea/Suggestion Management system. Some of the enjoyable feature...
{ "language": "en", "url": "https://stackoverflow.com/questions/325623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mediums to try out algorithms? By definition algorithms are independent from the medium they run on. E.g. I use Excel tables to play with data structures and to do some move/shuffling/marking experiments before implementing an algorithm in a programming language. What tools and techniques do you use to design and s...
{ "language": "en", "url": "https://stackoverflow.com/questions/325627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to avoid race condition when using a lock-file to avoid two instances of a script running simultaneously? A typical approach to avoid two instances of the same script running simultaneously looks like this: [ -f ".lock" ] && exit 1 touch .lock # do something rm .lock Is there a better way to lock on files from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: How do I reliably tell that two Inspector references point to the same inspector instance? [continued from Is there a way to tell whether two COM interface references point at the same instance?] I've got references to Inspector objects from two different sources and need to be able to tell which item from one sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/325629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Windows Key in my Application Like: Windows Key + E Opens a new Explorer Window And: Windows Key + R Displays the Run command How can I use the Windows Key in a KeyDown event of my Application? A: If you want to process these keys in your event handlers, use Keys.LWin and Keys.RWin Generally I woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/325636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Secure Java SOAP web service - Active Directory authentication Trust I want to build a secure web-service betweeen a Java producer and a Java consumer. I want to authenticate using Active Directory using the domain accounts that the producer and consumer are running under. Could you give me an example of this? (ie...
{ "language": "en", "url": "https://stackoverflow.com/questions/325637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Aspect-oriented programming in Java What is the best tool for Java for aspect-oriented programming? The requirements for a tool are of course IDE support, expressiveness and proper documentation. A: JBossAOP and AspectJ are two commonly used, mature frameworks for AOP. Another popular choice is Spring AOP, but it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: TextField "umlauts" are not shown on linux Java 1.5, Linux I do have a screen which contains different textareas and textfields. I do have acess to the application frame, but not to the components inside the frame, because i only get an implementation of an interface. When i try to add german umlauts i see a rectang...
{ "language": "en", "url": "https://stackoverflow.com/questions/325648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change background color of Datagrid Header in Silverlight I want to change background color of Datagrid header in Silverlight. A: Although the DataGrid does not expose a Header Background property, it does have a property for the ColumnHeaderStyle. Using the technique that DaniCE has previously suggested for a sing...
{ "language": "en", "url": "https://stackoverflow.com/questions/325654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How can I check if a server has ssl enable or not Does anyone of you know, if and if so, how can I check, with my application code, if a server has ssl enabled or not? A: You don't specify a programming language, but you could do this from the command-line. bash-3.2$ echo ^D | telnet www.google.com https Trying 66....
{ "language": "en", "url": "https://stackoverflow.com/questions/325667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Codeigniter - how to reuse code to generate a block of HTML I think I might be approaching this in the wrong way, so I would appreciate any comments/guidance. Hopefully I can explain coherently enough what I am trying to achieve: * *I want to create a block of HTML (e.g. a box containing a user's profile), which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Eclipse coding style checks as an Ant Task? In Eclipse I can set all kinds of preferences for coding style. I'd like to be able to enforce these as an ant task to make the build break. Can anyone give me an example of how to enforce eclipse coding styles in an Ant task? (I KNOW about PMD, checkstyle etc - none of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/325671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing TRY...CATCH in SQL Server Management Studio Solution: I've misinterpreted the example from SQL Books Online. Yes, that below the section Errors Unaffected by a TRY…CATCH Construct ... I'm so sorry :( I was just trying to execute this simple example in SQL Server Management Studio: USE AdventureWorks; GO ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get keypressed, keydown events from DataGridView data cells I need to receive the key press events during cell editing in DataGridView control. From what I have found on the net the DataGridView is designed to pass all key events from DataGridView to the cell editing control and you cannot get these events ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/325677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: RegExp match one Word or Multiple Words in Quotes I need a RegExp which matches a word or multiple words in quotes. [\w]* matches a word "[\w\W&&[^"]]*" matches multiple words in quotes. (btw, not sure why \w\W works, but not a simple . (which should match all characters) So how do i combine these two regexp? A: Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/325682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Ajax POST method I am new to Ajax.Net. I want to know how to access data send from Ajax POST method. (ie)AjaxObject.send("Some Data") How to access that "Some Data" in form? I can access same when i used GET method and passed data in Querystring. like Request.Querystring("name") in ASP. A: You need to define a Webs...
{ "language": "en", "url": "https://stackoverflow.com/questions/325685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: binary .dat file how can access the binary data file(.DAT). i am using geonames API. can anyone help me? A: If you are referring to the binary flat file format used by MaxMinds GeoLocation database, they offer some handy utility classes in C# and Java to access it. http://www.maxmind.com/app/api A: Assuming you a...
{ "language": "en", "url": "https://stackoverflow.com/questions/325690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Default implementations of Abstract methods I am dealing with a large codebase that has a lot of classes and a lot of abstract methods on these classes. I am interested in peoples opinions about what I should do in the following situation. If I have a class Parent-A with an abstract method. There will only be 2 c...
{ "language": "en", "url": "https://stackoverflow.com/questions/325692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Installer::OpenDatabase() produces a type error with msiOpenDatabaseModeTransact The following code produces an error hr=0x80020005 (wrong type). #import <msi.dll> using namespace WindowsInstaller; main() { ::CoInitialize(NULL); InstallerPtr pInstaller("WindowsInstaller.Installer"); DatabasePtr pDB = pInsta...
{ "language": "en", "url": "https://stackoverflow.com/questions/325706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can breakpoints be used in ISRs? Can breakpoints be used in interrupt service routines (ISRs)? A: Yes - in an emulator. Otherwise, no. It's difficult to pull off, and a bad idea in any case. ISRs are (usually) supposed to work with the hardware, and hardware can easily behave very differently when you leave a gap o...
{ "language": "en", "url": "https://stackoverflow.com/questions/325718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is a process design really declarative programming? I've heard from someone that they´re using a business process automation tool (like Weblogic Integration) as a programming language (what sounds like something kind of stupid) to make things declarative. Then they put all the logic inside a process, every single if...
{ "language": "en", "url": "https://stackoverflow.com/questions/325721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selectively remove from where clause in LINQ expression tree Starting with the following LINQ query: from a in things where a.Id == b.Id && a.Name == b.Name && a.Value1 == b.Value1 && a.Value2 == b.Value2 && a.Value3 == b.Value3 select a; How can I remove (at runtime) one or more of the conditions in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/325725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the deal with NSZoneFree in -(void)dealloc? In Apple's NSObject documentation, NSZoneFree is called in the - (void)dealloc example code: - (void)dealloc { [companion release]; NSZoneFree(private, [self zone]) [super dealloc]; } You can find it in context over here. I never had the notion that I s...
{ "language": "en", "url": "https://stackoverflow.com/questions/325733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Grouping similar types of member variables together When writing a class do you group members variables of the same type together? Is there any benefit to doing so? For example: class Foo { private: bool a_; bool b_; int c_; int d_; std::string e_; std::string f_; ... }; As opposed to:...
{ "language": "en", "url": "https://stackoverflow.com/questions/325734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to automate or facilitate multiplatform build/test before committing? Our software is built on linux and windows platforms. Depending on the preference of the developer a contribution is developed and tested on either platform and then committed to our subversion repository. It then turns out that the contributi...
{ "language": "en", "url": "https://stackoverflow.com/questions/325743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I take a GUID as an attribute parameter? I need a Guid property in some attribute class like this: public class SomeAttribute : Attribute { private Guid foreignIdentificator; public Guid ForeignIdentificator { get { return this.foreignIdentificator; } set { this.foreignIdentificator = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Sharepoint search, redirect from OSSSearchResults.aspx to Search centre i have a question about configuration fo search pages in sharepoint. There are two types of searches: * *contextual which searches just in current page or list (they are labelled like: This site: Name of site or This list: Name of list), the...
{ "language": "en", "url": "https://stackoverflow.com/questions/325757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery AJAX - made browser request new location in redirect header Can jQuery ajax made browser request a new location in redirect header send by server? A: You should parse the code and use Javascript to set the document.location $.get('page.php', { GETvar : 'redirectUrl' }, function(data, textString){ if (text...
{ "language": "en", "url": "https://stackoverflow.com/questions/325765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delphi ADO connection to DBF files hangs when debugging I'm connecting to DBF files using Delphi 2009 ADO components and this connection string: Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=c:\mypath; If c:\mypath doesn't exist, and I run the application inside the debugger, my app hangs. No exception i...
{ "language": "en", "url": "https://stackoverflow.com/questions/325774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to update assemblyBinding section in config file at runtime? I'm trying to change assembly binding (from one version to another) dynamically. I've tried this code but it doesn't work: Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); ConfigurationSection a...
{ "language": "en", "url": "https://stackoverflow.com/questions/325788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Which is the best way to bi-directionally synchronize dynamic data in real time using mysql Here is the scenario. 2 web servers in two separate locations having two mysql databases with identical tables. The data within the tables is also expected to be identical in real time. Here is the problem. if a user in eith...
{ "language": "en", "url": "https://stackoverflow.com/questions/325791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is there a major performance gain by using stored procedures? Is it better to use a stored procedure or doing it the old way with a connection string and all that good stuff? Our system has been running slow lately and our manager wants us to try to see if we can speed things up a little and we were thinking about c...
{ "language": "en", "url": "https://stackoverflow.com/questions/325803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: best way to obtain a lock in php I'm trying to update a variable in APC, and will be many processes trying to do that. APC doesn't provide locking functionality, so I'm considering using other mechanisms... what I've found so far is mysql's GET_LOCK(), and php's flock(). Anything else worth considering? Update: I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/325806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: MVC ASP.NET Getting back my ViewData.Model in my View when I submit to a Controller So I've return View(object);'d, and I press submit on that page, how do I get that object back in the controller? any ideas? my viewpage is public partial class Index : ViewPage<List<Models.Pricing>> and public ActionResult Ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/325809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wanted : review of collection libraries features / issues / performance I know there are couple 3rd party collection libraries out there (C5, PowerCollections and I guess loads more of other not so complete libraries) as well as the System.Collections.Generics classes. I am however quite unsure which library use to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Erlang - code analysis I have to analyse some existing Erlang code. Does anybody knows about a tool able to visually / graphically trace the modules calls ? The behaviour should be : give a directory containing the source code, and get a gui / picture / file of the calls (module1->module2->module3....). Something li...
{ "language": "en", "url": "https://stackoverflow.com/questions/325818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ORACLE 10.2 Pro*C precompiler not reading header file I'm pre-compiling a C program containing Pro*C code with Oracle 10.2 and AIX 5.2 The Oracle precompiler reads the $ORACLE_HOME/precomp/admin/pcscfg.cfg file which contains the definition of the sys_include variable (set to /usr/include). The Pro*C compiler compla...
{ "language": "en", "url": "https://stackoverflow.com/questions/325826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Statistical Analysis of Server Logs - Correctness of Extrapolation We had an ISP failure for about 10 minutes one day, which unfortunately occurred during a hosted exam that was being written from multiple locations. Unfortunately, this resulted in the loss of postback data for candidates' current page in progress. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Certificate Trust Lists and IIS7 I need to generate a CTL for use with IIS7. I generated a CTL file using MakeCTL (on Win2k3 SDK) and put only my own RootCA certificate in the CTL. However, when I then use adsutil.vbs to set my website to use this CTL, I get: ErrNumber: -2147023584 (0x80070520) Error Trying To SET t...
{ "language": "en", "url": "https://stackoverflow.com/questions/325829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to re-initialize a session in PHP? I am attempting to integrate an existing payment platform into my webshop. After making a succesful transaction, the payment platform sends a request to an URL in my application with the transaction ID included in the query parameters. However, I need to do some post-processing...
{ "language": "en", "url": "https://stackoverflow.com/questions/325836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: creating a popupwindow from html, not a file I have a php page that displays rows from a mysql db as a table. One of the fields contains HTML markup, and I would like to amke this row clickable and the html would open in a new popup window. What is the best way to do it, and is there a way to do it without writing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the Constant Value of the Underline font in Java? What is the Constant Value of the Underline font in Java ? Font.BOLD bold font Font.ITALIC italic font What is the UNDERLINE font Constant ? I try all the available constants but it didn't work . A: Underlining is not a property of the font but of the text...
{ "language": "en", "url": "https://stackoverflow.com/questions/325840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Where can I get a VB.net - WPF - Trending Graph Control We're trying to show 4 trend graphs and will be adding data to them them at a rate of about 1 point every second. In the end each trend needs to show around 600 points. Currently we are using the graphing tools from Syncfusion but they are unable to redraw th...
{ "language": "en", "url": "https://stackoverflow.com/questions/325843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle join operator How to rewrite this: select tab1.id, tab2.id, tab3.id from tab1, tab2, tab3 where tab1.col1 = tab2.col1(+) and tab2.col2 = tab3.col2(+); using OUTER JOIN syntax? A: select tab1.id, tab2.id, tab3.id from tab1 left outer join tab2 on tab1.col1 = tab2.col1 left outer join tab3 on tab2.col2 = t...
{ "language": "en", "url": "https://stackoverflow.com/questions/325852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to use C# Object Initializers with Factories I'm looking at the new object initializers in C# 3.0 and would like to use them. However, I can't see how to use them with something like Microsoft Unity. I'm probably missing something but if I want to keep strongly typed property names then I'm not sure I...
{ "language": "en", "url": "https://stackoverflow.com/questions/325859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Excel Conditional Formatting Self Reference I'm trying to do some conditional formatting in Excel 2003, what I want to do is have a cell go red if the next cell is "Yes" and go bold if it, itself, contains "Yes". So if both cells are "Yes" the current cell will be red and bold. I want to do this for a group of cells...
{ "language": "en", "url": "https://stackoverflow.com/questions/325865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to check for current date in where clause of sql query I'm trying to find out the most efficient (best performance) way to check date field for current date. Currently we are using: SELECT COUNT(Job) AS Jobs FROM dbo.Job WHERE (Received BETWEEN DATEADD(d, DATEDIFF(d, 0, GETDATE()), 0) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Detect an internet connection activation with Delphi I've been using a 3G wireless card for a while and every time I connect, my anti-virus fires up the updates. I'm wondering what is the Win32 API set of functions that I can use to, either, get notified or query about the event of an Internet Connection coming up? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Improve asp script performance that takes 3+ minutes to run I use an SQL statement to remove records that exist on another database but this takes a very long time. Is there any other alternative to the code below that can be faster? Database is Access. email_DB.mdb is from where I want to remove the email addresses...
{ "language": "en", "url": "https://stackoverflow.com/questions/325873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I execute a sql command with a blob param in dbx? I have a TSqlDataSet which has a blob field, I need to get the data of this blob field in the BeforeUpdateRecord event of the provider and execute an update command, I've tried this: Cmd := TSQLQuery.Create(nil); try Cmd.SQLConnection := SQLConnection; Cm...
{ "language": "en", "url": "https://stackoverflow.com/questions/325874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the difference in displaying xml data using html browsers? What is the difference in displaying xml data using html browser such as firefox,internet exporer,netscape navigator etc. in terms of how text, images etc are display on a computer screen? A: The question is a little bit confusing, since XML is a ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/325875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which particular software development tasks have you used math for? And which branch of math did you use? I'm not looking for a general discussion on if math is important or not for programming. Instead I'm looking for real world scenarios where you have actually used some branch of math to solve some particular pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/325879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: cant display image from database outside of table in php I have this code <?php session_start(); if (isset($_GET["cmd"])) $cmd = $_GET["cmd"]; else die("You should have a 'cmd' parameter in your URL"); $pk = $_GET["pk"]; $con = mysql_connect("localhost","root","geheim"); if(!$con) { die('Connection failed becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/325887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BizTalk SOAP port password in binding file I've inherited a BizTalk 2006 application that uses several SOAP ports to request data from a 3rd party web service. The web service is secured by "basic" authentication - username / password. After making a few enhancements to the application I deployed to an integration t...
{ "language": "en", "url": "https://stackoverflow.com/questions/325892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a framework for running unit tests on Apache C modules? I am about to make some changes to an existing Apache C module to fix some possible security flaws and general bad practices. However the functionality of the code must remain unchanged (except in cases where its fixing a bug). Standard regression test...
{ "language": "en", "url": "https://stackoverflow.com/questions/325894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Visual Studio 2005 Javascript debugging Is it possible to stop visual studio from debugging external javascript? We have a window which displays external webpage. If the page contains bad javascript then my entire session comes to a halt and breaks. Hitting continue won't move past the problem. It's really irritatin...
{ "language": "en", "url": "https://stackoverflow.com/questions/325903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Most used parts of Boost When I discovered boost::lexical_cast I thought to myself "why didn't I know about this sooner!" - I hated having to write code like stringstream ss; ss << anIntVal; mystring = ss.str(); Now I write mystring = boost::lexical_cast<string>(anIntVal); Yesterday, on stackoverflow, I came acr...
{ "language": "en", "url": "https://stackoverflow.com/questions/325906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: Can this mapping be done with (Fluent) NHibernate? I have an Events table whose goal is to store actions done by web site users. An action basically alters or create a new row in a table X. This will allow me to store an history of all actions done by a user. As such, Events contains: * *a primary key column *a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325908", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find out which version of the .NET Framework an executable needs to run? I've got an executable file, and I would like to know which version(s) of the Microsoft .NET Framework this file needs to be started. Is there an easy way to find this information somewhere? (So far I tried ILDASM and DUMPBIN without any...
{ "language": "en", "url": "https://stackoverflow.com/questions/325918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "113" }
Q: Is the only way of passing POST parameters in HTML through a form? In HTML, you can send data from one page to another using a GET request in a couple of ways: http://www.example.com/somepage.php?data=1 ...or... <form action="somepage.php" method="get"> <input type="hidden" name="data" value="1" /> <input type=...
{ "language": "en", "url": "https://stackoverflow.com/questions/325929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Getting actual file name (with proper casing) on Windows with .NET I want to do exactly the same as in this question: Windows file system is case insensitive. How, given a file/folder name (e.g. "somefile"), I get the actual name of that file/folder (e.g. it should return "SomeFile" if Explorer displays it so)? Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/325931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Determine Whether Two Date Ranges Overlap Given two date ranges, what is the simplest or most efficient way to determine whether the two date ranges overlap? As an example, suppose we have ranges denoted by DateTime variables StartDate1 to EndDate1 and StartDate2 to EndDate2. A: The solution posted here did not wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/325933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1566" }
Q: Is there any (real) Office 2007 look and feel for Java/Swing? I'm aware of the Substance look and feels and that they have a Office 2007 look-a-like look and feel. But this look and feel doesn't look like the Office 2007 design at all, the colors are a lot different for example. Are there other look and feels which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are areas where you can program artificial intelligence? Welcome! I very enjoyed programming artificial intelligence in my studies - neural networks, expert machines and other. But in work I develop mainly web applications. And now I think about returning to such programming, maybe in hobby, or maybe in work. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: RegEx to match text and enclosing braces I need to loop through all the matches in say the following string: <a href='/Product/Show/{ProductRowID}'>{ProductName}</a> I am looking to capture the values in the {} including them, so I want {ProductRowID} and {ProductName} Here is my code so far: Dim r As Regex = New Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/325952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I replace newlines using PowerShell? Given test.txt containing: test message I want to end up with: testing a message I think the following should work, but it doesn't: Get-Content test.txt |% {$_-replace "t`r`n", "ting`r`na "} How can I do a find and replace where what I'm finding contains CRLF? A: If y...
{ "language": "en", "url": "https://stackoverflow.com/questions/325953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Using List.Exists and Predicates correctly All I am currently trying implement something along the lines of dim l_stuff as List(of Stuff) dim m_stuff as new Stuff m_stuff.property1 = 1 m_stuff.property2 = "This" if not l_stuff.exists(m_stuff) then l_stuff.add(m_stuff) end if This fails obviously as the Ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/325965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: HTML & CSS Coding Guidelines We are contracting an external consultant out to generate XHTML (Transitional) and CSS for most of the major pages of a new project we are currently working on. I've been asked to put together a list of guidelines for them so that we can be sure that a certain level of quality can be exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/325979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Does the ASP.NET MVC AjaxHelper deal with degradation? Does anyone know if the AjaxHelper in the ASP.NET MVC framework deals with degradation? For example, if you have an ActionLink that updates the content of a div, if JavaScript unavailable, will the page do a full postback by renderubg the page (via an action on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/325981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Service Layers and Repositories I've been using MVC frameworks for a short while now and I really like how the concerns are separated out. I've got into a bad habit of letting the controllers do quite a bit of work. So I'm really looking for some advice. When I first started using MVC I quite often had the control...
{ "language": "en", "url": "https://stackoverflow.com/questions/325984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Developing as a programmer I have been learning C++ for three months now and in that time created a number of applications for my company. I consider myself fairly comfortable with C++ / MFC and STL, however I don't just want to be an OK programmer, I want to be a good programmer. I have a few books on best practice...
{ "language": "en", "url": "https://stackoverflow.com/questions/325988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How do I Insert or Update (or overwrite) a record using NHibernate? I need to write a row to the database regardless of whether it already exists or not. Before using NHibernate this was done with a stored procedure. The procedure would attempt an update and if no rows were modified it would fallback to an insert. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/325990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Distributed filesystem sanity check I'm in need of a distributed file system that must scale to very large sizes (about 100TB realistic max). Filesizes are mostly in the 10-1500KB range, though some files may peak at about 250MB. I very much like the thought of systems like GFS with built-in redundancy for backup wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/325993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating an FTP Hosting Server Website? I recently bought a new web server 2008 for our company and require a FTP Hosting site that allows customers to upload files and host websites from our server, The site must have the shopping basket / Monthly rates built in. If I purchased the correct template that is designed...
{ "language": "en", "url": "https://stackoverflow.com/questions/326009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use library org.hibernate in java? I create new project in Netbeans, but when I look the library it still using JDK 1.6 (default) I want to change into JDK 6 Update 10 but how? I already instal JDK 6 Update 10 but when I import org.hibernate the neatbeans didn't know which library that org.hibernate. someone ...
{ "language": "en", "url": "https://stackoverflow.com/questions/326010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lucene.Net features Am new to Lucene.Net Which is the best Analyzer to use in Lucene.Net? Also,I want to know how to use Stop words and word stemming features ? A: I'm also new to Lucene.Net, but I do know that the Simple Analyzer omits any stop words, and indexes all tokens/works. Here's a link to some Lucene info...
{ "language": "en", "url": "https://stackoverflow.com/questions/326015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dojo Parameters for Tabs I'm having trouble with the Dojo documentation (as usual). On their TabContainer API, they list the second argument as an object called "params", but they never say what you can actually put in this params object. Can I specify the width? The height? Do I specify the id's of the divs I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/326048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to order by more than one field in Grails? Is there a way to get a list ordered by two fields, say last and first names? I know .listOrderByLastAndFirst and .list(sort:'last, first') won't work. A: Hates_ criteria answer didn't seem to work for me; putting "last,first" in order will only cause exceptions saying...
{ "language": "en", "url": "https://stackoverflow.com/questions/326053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }