text
stringlengths
8
267k
meta
dict
Q: Is Hibernate good for batch processing? What about memory usage? I have a daily batch process that involves selecting out a large number of records and formatting up a file to send to an external system. I also need to mark these records as sent so they are not transmitted again tomorrow. In my naive JDBC way, I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/333198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Runtime issues during developing an Eclipse Plugin Right now, I am trying to create a plug-in of Eclipse which depends on other jar; therefore, I created a plug-in base on the jar and deployed it under my Eclipses' plugin foler. It works well when I start it from my working environment via an Eclipse. However, as so...
{ "language": "en", "url": "https://stackoverflow.com/questions/333201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ui:calendar tag rendering issue I'm new to this JSF world, please bear with me if I'm asking some silly thing i'm using UI tags for my application and I have a scenario that I need to generate a calendar control to make the user to select the date I followed the ui tags documentation and wrote the code like this: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a good pre-existing class for dealing with URLs in PHP? Is there a widely accepted class for dealing with URLs in PHP? Things like: getting/changing parts of an existing URL (e.g. path, scheme, etc), resolving relative paths from a base URL. Kind of like a two-way parse_url(), encapsulated with a bunch of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Linq insert with no primary key I need to insert records into a table that has no primary key using LINQ to SQL. The table is poorly designed; I have NO control over the table structure. The table is comprised of a few varchar fields, a text field, and a timestamp. It is used as an audit trail for other entities....
{ "language": "en", "url": "https://stackoverflow.com/questions/333228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How does Linq work (behind the scenes)? I was thinking about making something like Linq for Lua, and I have a general idea how Linq works, but was wondering if there was a good article or if someone could explain how C# makes Linq possible Note: I mean behind the scenes, like how it generates code bindings and all t...
{ "language": "en", "url": "https://stackoverflow.com/questions/333242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Check to see if Visual Studio can load an assembly I have some user controls that are going to get added into SharePoint through SmartPart. I'm testing on my local machine, but I'm planning on using the SharePoint security. I was wondering if there was a way I could to a quick test to see if the Microsoft.SharePoint...
{ "language": "en", "url": "https://stackoverflow.com/questions/333244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to apply the XPath function 'substring-after' What is the XPath expression that I would use to get the string following 'HarryPotter:' for each book. ie. Given this XML: <bookstore> <book> HarryPotter:Chamber of Secrets </book> <book> HarryPotter:Prisoners in Azkabahn </book> </bookstore> I would get back...
{ "language": "en", "url": "https://stackoverflow.com/questions/333249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Singleton vs Static Class for exposing data read from xml We have a PageRoles xml file which contains the page path and the user role that can access that page. We are maintaining a Dictionary in a static class, which gets loaded int static constructor for the class. The class has a method CheckIfRoleAllowed that ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/333260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex - Match an end html tag if start tag is not present i want to get an ending html tag like </EM> only if somewhere before it i.e. before any previous tags or text there is no starting <EM> tag my sample string is ddd d<STRONG>dfdsdsd dsdsddd<EM>ss</EM>r and</EM>and strong</STRONG> in this string the output sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/333264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What web application framework should I use for a web gallery? I need to create a photo gallery for a website running IIS 4.0 or IIS 5.0 (im not sure which). It needs to display a low resolution version of the gallery to anyone, and it must show both the low and high resolution images for "priviledged" users. So I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/333269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Good resources for learning Factor Having recently come across this introduction to Factor, I've been a bit curious to learn more. Aside from the official FAQ mentioned there, do you have resources for learning the language (as well as the stack-based "paradigm," if that's the right word) that you've found helpful? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Parallelization: What causes Java threads to block other than synchronization & I/O? Short version is in the title. Long version: I am working on a program for scientific optimization using Java. The workload of the program can be divided into parallel and serial phases -- parallel phases meaning that highly parall...
{ "language": "en", "url": "https://stackoverflow.com/questions/333280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Simple efficiency question C++ (memory allocation)..and maybe some collision detection help? I'm writing a little arcade-like game in C++ (a multidirectional 2d space shooter) and I'm finishing up the collision detection part. Here's how I organized it (I just made it up so it might be a shitty system): Every ship i...
{ "language": "en", "url": "https://stackoverflow.com/questions/333285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HttpModule - get HTML content or controls for modifications Tried something like this: HttpApplication app = s as HttpApplication; //s is sender of the OnBeginRequest event System.Web.UI.Page p = (System.Web.UI.Page)app.Context.Handler; System.Web.UI.WebControls.Label lbl = new System.Web.UI.WebControls.Label(); lbl...
{ "language": "en", "url": "https://stackoverflow.com/questions/333287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is it OK to use XSPF for video content? Is it OK to use XSPF for video content? If not, what else should be used? I am targeting flash players, including Jeroen Wijering's JW FLV media player. A: You can stream directly in FLV and I believe this is the most desirable solution. Check out the FLV capabilities (includ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are there any reasons not to use "this" ("Self", "Me", ...)? I read this answer and its comments and I'm curious: Are there any reasons for not using this / Self / Me ? BTW: I'm sorry if this has been asked before, it seems that it is impossible to search for the word this on SO. A: Warning: Purely subjective answe...
{ "language": "en", "url": "https://stackoverflow.com/questions/333291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do you link two arrays? I'm in a basic programming class, and everything is done in pseudo code. My question is this: How do you link two arrays? I have a single-dimensional array that lists students names, and I have a two-dimensional array that lists the top eight scores of each student...this is all fine an...
{ "language": "en", "url": "https://stackoverflow.com/questions/333294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tab spaced data to padded columns Looking for a column formatting script, I have a feeling this could be a one line awk. Ideally, a small shell script is all I am after. The data is tab separated, each cell in each row is of variable length, and of course, may have spaces in it. So we have something like this dasj...
{ "language": "en", "url": "https://stackoverflow.com/questions/333315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Saving user settings/database/cache... in Java (On every OS) My Java application is saving stuff in 'user.home' but on windows this does not seem to be the correct path to save application information (as a friend told me). An other option is using the preferences api but it's not possible to set up the hsqldb locat...
{ "language": "en", "url": "https://stackoverflow.com/questions/333317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Áccess VBA:How to get input in forms and use them in queries HI I have a form with a few buttons. Each button runs a few lines of code.the code have queries also in them like "select * from table where number =6" now if i want to give the number as a input in the form, how do i go about it. A: * *Add an unbound te...
{ "language": "en", "url": "https://stackoverflow.com/questions/333318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CAML queries: how to filter folders from result set? I'm using caml query to select all documents which were modified or added by user. Query runs recursively on all subsites of specified site collection. Now problem is I can't get rid of folders which are also part of result set. For now I'm filtering them from res...
{ "language": "en", "url": "https://stackoverflow.com/questions/333328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Firefox handles xxx.submit(), Safari doesn't ... what can be done? I'm trying to make a pull down menu post a form when the user selects (releases the mouse) on one of the options from the menu. This code works fine in FF but Safari, for some reason, doesn't submit the form. I re-wrote the code using jquery to see...
{ "language": "en", "url": "https://stackoverflow.com/questions/333329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Implementing a search page using url parameters in ASP.NET and ASP.NET MVC Let's say I have a search page called Search.aspx that takes a search string as a url parameter ala Google (e.g. Search.aspx?q=This+is+my+search+string). Currently, I have an asp:TextBox and an asp:Button on my page. I'm handling the button'...
{ "language": "en", "url": "https://stackoverflow.com/questions/333340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to know if is Applet or Application I have this code inside a class that is used by an application and by an applet. static { if (System.getProperty("os.name").startsWith("Windows")) { System.loadLibrary("extmapi"); } } Unfortunately, when the applet loads this code I get an error, because i...
{ "language": "en", "url": "https://stackoverflow.com/questions/333346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Directory Watch Class (.net) I need a quick yes/no answer on this... Is it possible to get a Directory Watch Class to watch a directory and its sub directories (all the way down) or does the Directory Watch Class only monitor changes/events in the parent directory? A: Yes its possible. The property IncludeSubDirect...
{ "language": "en", "url": "https://stackoverflow.com/questions/333357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Querying infopath form library Is there a tool that allows querying (and aggregating data from) a library of infopath forms in MOSS? I can't use promoted fields, since some of the items I want to query are in repeating groups which (AFAIK) cannot be promoted. So I have to query the underlying XML. I realize I can w...
{ "language": "en", "url": "https://stackoverflow.com/questions/333359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading a properties file from Java package I need to read a properties files that's buried in my package structure in com.al.common.email.templates. I've tried everything and I can't figure it out. In the end, my code will be running in a servlet container, but I don't want to depend on the container for anything. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "116" }
Q: In C#, how can I downcast a previously upcasted object without knowing it's type? I have an interface method public void Execute(ICommand command); which needs to pass known subtypes of ICommand to an apropriate Handle(SpecificCommand command) method implementation and do some generic handling of unknown types. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/333364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Books/Tutorials to Learn SVG Does anyone here know SVG? If so, how did you learn it? Any books/tutorial pointer will be beneficial. Also I am a programmer, not a designer, so I want to pick up some skills there too. A: I learned it developing SVG Tiny software, mostly by reading the spec. SVG Tiny is basically a su...
{ "language": "en", "url": "https://stackoverflow.com/questions/333367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Any guides on learning how to interpret a SQL query's Execution Plan in SQL Server 2005? Is there any good article, tutorial or similar references on interpreting the Execution Plan of a query in SQL Server 2005? A: Red Gate offers a free e-book on exactly this :)
{ "language": "en", "url": "https://stackoverflow.com/questions/333383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: information on TAP and TDD for 'C' I am precisely looking for the info like , TAP is for regression and TDD is for Unit Testing ... or are they mutually exclusive( no need to use both of them ) ? bonus for suggesting 'good' Unit Test Frame work for TDD in C (expecting to address good aspect as well :) ) finally cM...
{ "language": "en", "url": "https://stackoverflow.com/questions/333388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to detect what Application Pool I am currently running under? (IIS6) I need to know how I can detect the current application pool I am running under, so I can do a Recycle on it programmatically. Does anyone know how to do this for IIS6? My current code for recycling the app-pool is: /// <summary> /// Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/333391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Master Page Error on New MVC Project I've just create a new MVC project, and have made no changes at all, but when I try and view the ChangePasswordSuccess view in design mode, I get the error: The page has controls that require a Master Page reference, but none is supplied. The page has no controls except for a co...
{ "language": "en", "url": "https://stackoverflow.com/questions/333393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Good Resources on SOA? Have recently been given a project to complete which uses XML quite extensively.Am looking at an existing project which uses SOA. Am eager to get up to speed on SOA and so wondered if anyone coulod recommend any good sites / books etc. I have a book by Thomas Erl called Service-Oriented Archit...
{ "language": "en", "url": "https://stackoverflow.com/questions/333394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to design a simple C++ object factory? In my application, there are 10-20 classes that are instantiated once[*]. Here's an example: class SomeOtherManager; class SomeManagerClass { public: SomeManagerClass(SomeOtherManager*); virtual void someMethod1(); virtual void someMethod2(); }; Instances of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/333400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Symbian S60 - Multiple connections with a single connection dialog My application needs up to 3 simultaneous download connections. I am currently using a (slightly altered) CWebClient class provided in the Carbide UI framework, however using multiple instances of this for each connection prompts me multiple types to...
{ "language": "en", "url": "https://stackoverflow.com/questions/333405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: separate table for picture items with image field I store different items (notes, articles, pictures, files) in a single table (there are many metadata in common for all the item types - for example, categories, tags, rating, statistics etc.). My first design was like this: table Items, plus another "detail" table f...
{ "language": "en", "url": "https://stackoverflow.com/questions/333419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Questions about DB modelling How would you model these relationships in a db? You have a Page entity that can contain PageElements. A PageElement can for instance be an Article, or a Picture. An Article table obviously has other members / columns than a Picture. An article could have ie. "Title", "Lead", "Body" colu...
{ "language": "en", "url": "https://stackoverflow.com/questions/333431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: File Read/Write Locks I have an application where I open a log file for writing. At some point in time (while the application is running), I opened the file with Excel 2003, which said the file should be opened as read-only. That's OK with me. But then my application threw this exception: System.IO.IOException: The...
{ "language": "en", "url": "https://stackoverflow.com/questions/333435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding a UILabel to a UIToolbar I'm trying to add a label to my toolbar. Button works great, however when I add the label object, it crashes. Any ideas? UIBarButtonItem *setDateRangeButton = [[UIBarButtonItem alloc] initWithTitle:@"Set date range" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "99" }
Q: C++ Object Instantiation I'm a C programmer trying to understand C++. Many tutorials demonstrate object instantiation using a snippet such as: Dog* sparky = new Dog(); which implies that later on you'll do: delete sparky; which makes sense. Now, in the case when dynamic memory allocation is unnecessary, is there...
{ "language": "en", "url": "https://stackoverflow.com/questions/333443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "114" }
Q: What is your biggest time saving feature in Visual Studio 2008 The reason for me asking this question is:- I get a real buzz out of discovering features in Visual Studio 2008 that end up saving me oodles of time every day. Recently found a blog by Sara Ford who grinds out a tip each day on her blog. Am wondering wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/333447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unit testing code that basically does persistence - Should I bother? I am using an api which interacts with a db. This api has methods for querying, loading and saving elements to the db. I have written integration tests which do things like create a new instance, then check that when I do a query for that instanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/333454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Intranet Uptime Monitoring Component I have a MOSS 2007 test site, its not public facing, instead its on our intranet, I am looking for an uptime monitoring component thats free and easy to install, any suggestions? Update: I don't need graphs or anything fancy, I just need to make sure that I get a notification via...
{ "language": "en", "url": "https://stackoverflow.com/questions/333461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: rails routing controller action change I'm struggling here with a problem: I have a controller questions which has action new. Whenever I need to create new question, I'm typing /questions/new What changes to routes.rb should I make to change the URI to /questions/ask Thank you. Valve. A: Try this: map.ask_que...
{ "language": "en", "url": "https://stackoverflow.com/questions/333462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can't stop thinking about XSLT in procedural terms... help with apply-templates I know that XSLT does not work in procedural terms, but unfortunately I have been doing procedural languages for too long. Can anyone help me out by explaining in simple terms how things like apply-templates works and help a thicko like...
{ "language": "en", "url": "https://stackoverflow.com/questions/333463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Developing a secure WS client for consuming a Axis2 Web Service with Rampart WS Security module? I have a Axis2 web service secured using Rampart. I do want to develop secure clients for it, preferably JAX-WS based. I tried a lot of tutorials but they are so closed tied with each other, like including Axis2 librarie...
{ "language": "en", "url": "https://stackoverflow.com/questions/333467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can the PostbackUrl be set for a GridView CommandField? I have a GridView control on my page that I have defined a number of BoundFields for. Each row of the databound GridView has a CommandField (Select), for which I want to send the PostBack to a new page. Of course I could easily send the NewSelectedIndex in a Q...
{ "language": "en", "url": "https://stackoverflow.com/questions/333484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript during debugging is not up to date I am using VS 2008 to write my Javascript code ( mostly in JQuery). However the js file was not updated when I was done with the editing and pressed F5 to call out the debugger. I need to close my vs2008 and reopen it in order to see the latest changes in js file. Any id...
{ "language": "en", "url": "https://stackoverflow.com/questions/333485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getting redirect loop for admin_only decorator I've made this decorator, which results in an infinite redirect loop. The problem is this: args[0].redirect(users.create_login_url(args[0].request.path)) It appears to be a perfectly valid URL. So why wouldn't it properly redirect? def admin_only(handler, *args): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is The ASP.NET "DataSourceHelper" Class Essentially The Dal? I've seen the a class named DataSourceHelper, with an attribute of DataObject(true), in a couple of modern open source ASP.NET projects. Is the use of such a class now an ASP.NET idiom, and if so is it the equivalent of the DAL? A: The only use I have se...
{ "language": "en", "url": "https://stackoverflow.com/questions/333495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling external gps app from VB.NET in CF 3.5 and returning back to VB.NET app I'm writing an app in VB.NET that allows the user to call Garmin Mobile XT to get a route. I've got a form that stays open behind Garmin and upon quitting Garmin, allows the user to go back. Sometimes, however, this form is automatically...
{ "language": "en", "url": "https://stackoverflow.com/questions/333498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: If you take IE out of the picture what additional JavaScript functionality is available in the other browsers? I'm just talking about JavaScript here, not CSS or implementation of the DOM. I know getters and setters are now available in the latest release of all major browsers except IE. What other JavaScript featur...
{ "language": "en", "url": "https://stackoverflow.com/questions/333499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can "gem install" be configured to install executables outside /usr/bin/ by default? By default, when you sudo gem install thegemname it will install executables into /usr/bin/ Is there a way to change this? For example, to install them into /usr/local/rubygems/bin (or any other path)? The path doesn't seem to be ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/333508", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: MOSS 2007 KeepAlive File I have a standard MOSS 2007 Web Site (MOSS Terminology: Application and a SiteCollection) I located the home directory (as its setup in IIS) C:\InetPub\wwwRoot\wss\VirtualDirectories\nyMOSSApp.com:80 I created a keepAlive.aspx file in this directory. The contents is very basic... but its a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RDLC: show child collection data without using subreports i'm trying to create a RDCL report with the follow requirements: * *The datasource is a master business object that also has a child business object. *I want to show some data of the master BO using a List. *I want to show the details of the child BO usi...
{ "language": "en", "url": "https://stackoverflow.com/questions/333515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AdventureWorks presentation I want to implement an application (scholar exercise) over the AdventureWorks database. I have downloaded the diagram. Is there a less formal description of the database? Thanks, Lucian A: found it: http://msdn.microsoft.com/en-us/library/ms124659.aspx A: Adventure Works Cycles Business...
{ "language": "en", "url": "https://stackoverflow.com/questions/333517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regular Expression puzzle In (Visual Basic, .NET): Dim result As Match = Regex.Match(aStr, aMatchStr) If result.Success Then Dim result0 As String = result.Groups(0).Value Dim result1 As String = result.Groups(1).Value End If With: aStr equal to (whitespace is normal space and there are seven spac...
{ "language": "en", "url": "https://stackoverflow.com/questions/333518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IIS Configuration. 1 Domain, multiple applications I'm having a bit of a problem here. We have 2 urls let me call them http://www.testUrl.com/ and http://www.test-url.com/ This url points to a server using an "A-Record". In IIS I've appointed these url's through "Advanced Website Identification" to the correct appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/333524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Migrating from Oracle CTL to MySQL I would like to migrate from Oracle to MySQL, and one of the important steps is to replace the actual job built on an Oracle environment. Basically, every day I receive some 'oracle' dump files from another Oracle environment (mainly CTL or Oracle table exports). Today my Oracle jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/333529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cross-site AJAX requests I need to make an AJAX request from a website to a REST web service hosted in another domain. Although this is works just fine in Internet Explorer, other browsers such as Mozilla and Google Chrome impose far stricter security restrictions, which prohibit cross-site AJAX requests. The proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/333532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How can I export Excel files using JavaScript? Is there any way to generate Excel/CSV through Javascript? (It should be browser compaatible too) A: There is an interesting project on github called Excel Builder (.js) that offers a client-side way of downloading Excel xlsx files and includes options for formatting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: Is there a javascript library to produce the top message ribbon in stackoverflow? These ribbon in stackoverflow and uservoice.com looks nice. is there any javascript library/jquery plugin for that effect? A: With some tuning, this is a valid equivalent, you receive notifications with fade-in/fade-out effect and it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: IIS7 / WPAS: Multiple WCF services in same AppDomain? If host my WCF services in IIS7 or WPAS, is it possible to load up two or more services into the same AppDomain so that they can share static variables? A: Sure you can expose as many Endpoints within a Web Application as you want (even of different WCF Services...
{ "language": "en", "url": "https://stackoverflow.com/questions/333557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Eclipse PDE on Mac OS X: Getting the correct font size at runtime? There's an annoying "feature" when using Eclipse PDE on Mac OS X: the font size of the runtime IDE is not the same as the true IDE. If you're developing a plug-in and you launch an Eclipse instance to test it (from within Eclipse), you will notice th...
{ "language": "en", "url": "https://stackoverflow.com/questions/333558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++/Win32: How to get the alpha channel from an HBITMAP? I have an HBITMAP containing alpha channel data. I can successfully render this using the ::AlphaBlend GDI function. However, when I call the ::GetPixel GDI function, I never get back values with an alpha component. The documentation does say that it returns ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Visual Studio 2008 - jump to line number shortcut I can go to a specific line number by double clicking in the status bar in Visual Studio. Is there a keyboard shortcut that does the same thing? A: Ctrl + G Check out all the keyboard shortcuts at: http://www.microsoft.com/downloads/details.aspx?familyid=e5f902a8-...
{ "language": "en", "url": "https://stackoverflow.com/questions/333563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: ASP.NET: System.UnauthorizedAccessException - Access to Path Denied I have an ASP.NET web application which does the following: * *Reads an Excel file. *The excel file will have an image URL located in it that points to somewhere on the internet. *The program reads each image URL and store it into a temporary f...
{ "language": "en", "url": "https://stackoverflow.com/questions/333571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Web-based yahoo-pipes alike plugin or app or ... something I am looking for advice on how to create a drag and drop interface similar to Yahoo Pipes: dragging and dropping elements and linking them together. I really don't care if it's Flash or JavaScript or SVG or Open Source or Commercial (although reasonably pri...
{ "language": "en", "url": "https://stackoverflow.com/questions/333572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SetWindowsHookEx, KeyboardProc and Non-static members I am creating a keyboard hook, wherein KeyboardProc is a static member of a class CWidget. class CWidget { static LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam ); }; I want to call the non-static members of CWidget inside the CWidget::...
{ "language": "en", "url": "https://stackoverflow.com/questions/333575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Image resizing in .Net with Antialiasing I've got some C# code that resizes images that I think is pretty typical: Bitmap bmp = new Bitmap(image, new Size(width, height)); Graphics graphics = Graphics.FromImage(bmp); graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; graphics.CompositingQuality = Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/333589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to detect a Selector.wakeup call If I would write: int selectedChannels = selector.select(); Set selectedKeys = selector.selectedKeys(); if ( selectedChannels != selectedKeys.size() ) { // Selector.select() returned because of a call to Selector.wakeup() // so do synchronization. } // Continue with hand...
{ "language": "en", "url": "https://stackoverflow.com/questions/333593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to include COM components on a published .Net site? How to include COM components on a published .Net site? A: Finally i succeeded to solve the issue : To include the COM component on your published site : * *Include the reference of the assembly in you config file of server [Locally it gets added by itself ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why ASP.NET MVC bothers to have a Default.aspx file? When create a new ASP.NET MVC project in Visual Studio 2008, there is a Default.aspx page by default. It has one line In its Page_Load function, it just redirects to "/" to go through the routing procedure. public void Page_Load(object sender, System.EventAr...
{ "language": "en", "url": "https://stackoverflow.com/questions/333596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Ui automation testing right click menus I am trying to automate testing for wpf application using ui automation. I have problems simulating right mouse click and selecting different option in right click menu. Any suggestions? I also have problems with running other test written using ui automation. Because they jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/333598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Detecting mouse double-click in Flash (AS2) Is there a way to detect mouse double-click on a button object using ActionScript 2.0? A: To make explicit what the other answers imply, there's no built-in way. You just have to listen for two clicks and decide whether they're close enough together to count as a double,...
{ "language": "en", "url": "https://stackoverflow.com/questions/333600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best Practice for Designing User Roles and Permission System? I need to add user roles and permission system into my web application built using PHP/MySQL. I want to have this functionality: * *One root user can create sub-roots, groups, rules and normal users( all privileges) . *Sub-roots can create only rules...
{ "language": "en", "url": "https://stackoverflow.com/questions/333620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "53" }
Q: How to create a Linux cluster for running physics simulations in java? I am developing a scientific application used to perform physical simulations. The algorithms used are O(n3), so for a large set of data it takes a very long time to process. The application runs a simulation in around 17 minutes, and I have to...
{ "language": "en", "url": "https://stackoverflow.com/questions/333626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: UDP Response UDP doesnot sends any ack back, but will it send any response? I have set up client server UDP program. If I give client to send data to non existent server then will client receive any response? My assumption is as; Client -->Broadcast server address (ARP) Server --> Reply to client with its mac addres...
{ "language": "en", "url": "https://stackoverflow.com/questions/333629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Symbian S60 - Scrolling text in a CEikLabel I have a single line CEikLabel in my application that needs to scroll text. The simple solution that comes to mind (but possibly naive) would be something like.. [begin pseduo code] on timer.fire { set slightly shifted text in label redraw label } start timer [end...
{ "language": "en", "url": "https://stackoverflow.com/questions/333630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Classic ASP "Down for Maintenance" page I'm making some changes to a legacy classic ASP application. I've made the changes locally, and now I want to copy the changed files to the server. At the same time, I need to download the Access database, add some fields to some tables, and upload it again. For this reason, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/333632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTTP HEAD Request in Javascript/Ajax? Is it possible to do a HTTP Head request solely using an XMLHTTPRequest in JavaScript? My motivation is to conserve bandwidth. If not, is it possible to fake it? A: Easy, just use the HEAD method, instead of GET or POST: function UrlExists(url, callback) { var http = new XM...
{ "language": "en", "url": "https://stackoverflow.com/questions/333634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "62" }
Q: which is the best .net library for google maps api? I need an up to date and easy to use .net wrapper for google maps. A: Googlemap Control Wraps Google Maps API as ASP.NET custom control. Offers extremely easy and fast way of adding Google Maps API support on your ASP.NET pages. A: If you want to use Google Maps...
{ "language": "en", "url": "https://stackoverflow.com/questions/333635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visio Selected Page Event I want to do something when the selected (active) page is changed in Visio document. Is there any ways that I can do this? Thanks. A: Got the solution... It can be done by handling WindowTurnedToPage event, fired by Window object.
{ "language": "en", "url": "https://stackoverflow.com/questions/333641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run any method knowing only her fully qualified name I've got a name of a method: "Garden.Plugins.Code.Beta.Business.CalculateRest" How to run it? I think about this fancy reflection based solution like RunMethod(string MethodName) A: * *Split it into type name and method name by splitting on the last dot ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Architecture for Reporting Web Site I've alluded to this project before, in this question, but the scope of redesign has been slightly tightened, i.e. I can't redesign the whole thing, so I 'd like some general advice on how to structure the existing artefacts in the application as an incremental step in improving t...
{ "language": "en", "url": "https://stackoverflow.com/questions/333662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I implement basic "Long Polling"? I can find lots of information on how Long Polling works (For example, this, and this), but no simple examples of how to implement this in code. All I can find is cometd, which relies on the Dojo JS framework, and a fairly complex server system.. Basically, how would I use Ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/333664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "804" }
Q: How to prevent closing browser window? I tried the following code to get an alert upon closing a browser window: window.onbeforeunload = confirmExit; function confirmExit() { return "You have attempted to leave this page. If you have made any changes to the fields without clicking the Save button, your changes wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/333665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: SQL Timeout error Getting this error: NativeError = 258 Error = [Microsoft][SQL Native Client]Shared Memory Provider: Timeout error [258]. SQLState = HYT00, NativeError = 0 Error = [Microsoft][SQL Native Client]Login timeout expired SQLState = 08001, NativeError = 258 Error = [Microsoft][SQL Native Client]Unable to...
{ "language": "en", "url": "https://stackoverflow.com/questions/333669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unit testing Anti-patterns catalogue anti-pattern : there must be at least two key elements present to formally distinguish an actual anti-pattern from a simple bad habit, bad practice, or bad idea: * *Some repeated pattern of action, process or structure that initially appears to be beneficial, but ultimately pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/333682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "203" }
Q: what is the best way to update an XML node value in C#? My function iterates through every node of an instance of an XMLDocument. It checks to see if the current node's name is in a lookup list. If it is, it applies appropriate validation to the value of the current node. When the validation method indicates that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any easy REST tutorials for Java? Every tutorial or explanation of REST just goes too complicated too quickly - the learning curve rises so fast after the initial explanation of CRUD and the supposed simplicity over SOAP. Why can't people write decent tutorials anymore! I'm looking at Restlet - and its not the best...
{ "language": "en", "url": "https://stackoverflow.com/questions/333690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: If IE didn't exist, what css, js or html features could we use that currently are not really usable? In a world where IE didn't exist, what things would be easier, less hacky, less buggy and generally more used. What could the internet have been if all features were available cross browser? List one point per post. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: string.split(text) or text.split() : what's the difference? There is one thing that I do not understand... Imagine you have a text = "hello world" and you want to split it. In some places I see people that want to split the text doing: string.split(text) In other places I see people just doing: text.split() What...
{ "language": "en", "url": "https://stackoverflow.com/questions/333706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: What are some guidelines for displaying information to a user in a web-browser? What are some guidelines for displaying information to a user in a web-browser? I am trying to determine some guidelines and best practices for displaying information to a user. The exact case is a confirmation button: once it’s been pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/333721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Midi implementation within .Net Does anyone have any guidance or recommendations for writing a MIDI-based application in C# Winforms? I have recently bought a new effects pedal that has a full MIDI implementation (or so I'm led to believe) but the manufacturers have seen fit to not release a librarian / patch editi...
{ "language": "en", "url": "https://stackoverflow.com/questions/333725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I access Locale from a JSP? I want to include a js file depending on the value of the current Locale. I have tried to access it from JSP as follows: <%@ page import="java.util.Locale" %> <% if( ((Locale) pageContext.getAttribute("org.apache.struts.action.LOCALE",PageContext.REQUEST_SCOPE)).getLanguage().eq...
{ "language": "en", "url": "https://stackoverflow.com/questions/333729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How to build a tree view with PHP / SQL? What's the best way to: * *Get the data from the db using a single query *Loop through the results building e.g. a nested unordered list My table has id, name and parent_id columns. Here's an update to my last answer, with a counter that gives each ul a nesting 'level'...
{ "language": "en", "url": "https://stackoverflow.com/questions/333735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is "Out Of Memory" A Recoverable Error? I've been programming a long time, and the programs I see, when they run out of memory, attempt to clean up and exit, i.e. fail gracefully. I can't remember the last time I saw one actually attempt to recover and continue operating normally. So much processing relies on being ...
{ "language": "en", "url": "https://stackoverflow.com/questions/333736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "75" }