text
stringlengths
8
267k
meta
dict
Q: What's the Solaris equivalent to the BSD's 'tail -n100'? I've looked this up a thousand times, and I always forget it, so, here for eternity: Solaris has a bit of an awkward syntax for tail. How do I do the equivalent of BSD's tail -nN? What I want are the last N lines from tail's input. A: Or you can use: /usr/xpg...
{ "language": "en", "url": "https://stackoverflow.com/questions/314321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Getting rid of "There is no source code available for the current location." OK, this is my own fault, but I can't seem to rescue myself. Whenever I try to step into a class that has fields with assignments calling into .NET code, I get a dialog box that contains the text "There is no source code available for the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/314329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: Which is a better way to force GC on ThreadLocal instance? Which is a better way to force GC on ThreadLocal instance? A: Simple answer: you can't force the GC in java. Some may posts tricks but all in all you simply can't. Well, in fact you can. With exit! A: The simple and ugly answer: System.gc(); This does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/314332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get the last lines of a file except the first 20? Say I have a file with any number of lines, say, 125. I want to get all the lines except the first n, say, 20. So, I want lines 21–125. Is there a way to do this with with tail/head, or some other tool? A: Try sed -i 1,20d filename if you want to delete th...
{ "language": "en", "url": "https://stackoverflow.com/questions/314334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to generate the Symbols file of a PowerBuilder program for dump analysis? How to generate the Symbols file of a PowerBuilder program for dump analysis? A: Are you running into a problem with a compiled PowerBuilder application? I've never used the Microsoft debugger, however, I have used Dependency Walker and r...
{ "language": "en", "url": "https://stackoverflow.com/questions/314336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: DotNetNuke upgrade I need to upgrade my current version of DNN this week. I am currently using 2.1.1. I don't want to do everything twice, so, I have several questions. * *Is there an upgrade tool or some scripts somewhere that will help me to do an upgrade. *Am I better off installing 4.9 or 5.0. It is producti...
{ "language": "en", "url": "https://stackoverflow.com/questions/314348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Which event is raised on check change of checkbox in Infragistics UltraGrid? I am using an Infragistics UltraGrid in a WinForms application. Which event is raised on "check change" of checkbox in Infragistics UltraGrid? A: Use the CellChange event to raise the UltraGrid.PerformAction(UltraGridAction.ExitEditMode) e...
{ "language": "en", "url": "https://stackoverflow.com/questions/314357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to force a screen orientation in specific view controllers? My application is pretty simple: it starts up with a view controller that holds a table view (in grouped view layout) with a few options. When the user taps on one of the options, I push another view controller onto my navigation controller. This second...
{ "language": "en", "url": "https://stackoverflow.com/questions/314382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Parsing a CSV file using gawk How do you parse a CSV file using gawk? Simply setting FS="," is not enough, as a quoted field with a comma inside will be treated as multiple fields. Example using FS="," which does not work: file contents: one,two,"three, four",five "six, seven",eight,"nine" gawk script: BEGIN { FS=...
{ "language": "en", "url": "https://stackoverflow.com/questions/314384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Tab Index in Windows Forms In my current application I have a form that requires the user to enter TONS of data. There are about 30 Textboxes and it happens that during development new ones get introduced or old ones get kicked out. One Requirement by my customer is that they are all navigable through pressing Tab, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: In ASP.NET, What is the 'ASP' code called? More detail to my question: HTML and JavaScript are called "client-side code". C# and VB in the code behind files are termed "server-side code". So what is inline-asp, and 'runat=server' code blocks called? <!-- This is called "client-side" --> <p>Hello World</p> <script>al...
{ "language": "en", "url": "https://stackoverflow.com/questions/314397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to read a line from the console in C? What is the simplest way to read a full line in a C console program The text entered might have a variable length and we can't make any assumption about its content. A: You need dynamic memory management, and use the fgets function to read your line. However, there seems to...
{ "language": "en", "url": "https://stackoverflow.com/questions/314401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "122" }
Q: In Ruby on Rails how can I combine multiple Javascript files at runtime? I am building a Facebook App which is heavy on Javascript. For this I have multiple Javascript files. Since in Facebook development, the page is served over a tunnel, there is excessive latency added while requesting multiple javascript files. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: designing a badge system, where to fire business logic? In code or stored procedures? or both? If you were to build a badge system similiar to how SO does it, would you put the logic/business layer in the database directly (via stored procedure, scheduled sql jobs) or put it in the server side? From what I can think...
{ "language": "en", "url": "https://stackoverflow.com/questions/314412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Why use a GlobalClass? What are they for? Why use a GlobalClass? What are they for? I have inherited some code (shown below) and as far as I can see there is no reason why strUserName needs this. What is all for? public static string strUserName { get { return m_globalVar; } set { m_globalVar = v...
{ "language": "en", "url": "https://stackoverflow.com/questions/314415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MbUnit Integration Testing Newbie Question I've been tasked with integration testing of a large system. Presently, I have a COM dll that I'm testing useing a UI that I created that kicks off a series of unit tests that call into the dll. This works, but I'm wanting to migrate this over to MbUnit. When I start the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/314423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Viewing Word Docs READ ONLY I have a report reading records out of a DMS system and I thought it would be nice to have a link to the documents that it is listing so that the users could view the actual documents. However when it displays a Word doc it allows you to make changes and then save them, which rather unde...
{ "language": "en", "url": "https://stackoverflow.com/questions/314424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to iterate through each property of a custom vb.net object? How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects? For Each entry as String in myObject ' Do stuff here... Next There are string, integer and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Starteam will not check-in a new file added to a project I am using Visual Studio 2005 and StarTeam 2008 (cross-platform client and VS integration). At some point, I added an 'App.config' to a project. I notice now that this file will not check-in. * *The 'StarTeam Pending Checkins' window in VS reports the file ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you wait/join on a WCF Web Service called from Silverlight? If you call a web service from Silverlight like this: MyServiceClient serviceClient = new MyServiceClient(); void MyMethod() { serviceClient.GetDataCompleted += new EventHandler<GetDataCompletedEventArgs>(serviceClient_GetDataCompleted); serviceC...
{ "language": "en", "url": "https://stackoverflow.com/questions/314433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AS3 - How to assign names or tags to loader? I have a list of images that i’ve loaded with the Loader class, but I’m having a tough time assigning them unique names. I need unique names because I want to remove certain images after a while. Is there a way to assign loaders a name or some unique tag so i can remove t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does the use of the fieldset HTML tag have meaning beyond grouping forms? Usually, I've seen it with forms, but I've found it helpful to group related sets of data (eg when you have multiple tables on a page, using a fieldset around each table or group of related tables to define a visible meaning and a group name (...
{ "language": "en", "url": "https://stackoverflow.com/questions/314457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Connections will not close when using Transaction Binding=Explicit Unbind; in connection string I´m using Transaction Binding=Explicit Unbind in the connection string as recommended here since I´m also using TransactionScope with timeout. The problem is that the connections does not seem to close after being dispose...
{ "language": "en", "url": "https://stackoverflow.com/questions/314459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I override DropLocation target to avoid network latency? In Team Build 2008, the Drop Location for a build is no longer specified in the .proj file, and instead is stored in the database and maintained in the GUI tool. The GUI tool only accepts a network path as a drop location (i.e. \\server\share) and will not...
{ "language": "en", "url": "https://stackoverflow.com/questions/314463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS styling of infopath forms Is there a way to CSS style an InfoPath 2007 form rendered by Forms Server 2007? It seems to be somewhat of a "black box", but the formatting options in the Infopath client are pretty limited. A: Here is a blogpost related to your question. http://www.infopathdev.com/blogs/greg/archiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/314464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: loop through drop down list in content page - VS2008 I have a MasterPage and a Content Page My Content Page has a number of controls, - dropdownlist, text boxes, radio buttons. I want to loop through all the control and if its one of the controls above then i want to obtain the selectedvalue, text etc I know I can a...
{ "language": "en", "url": "https://stackoverflow.com/questions/314465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Generating an array of letters in the alphabet Is there an easy way to generate an array containing the letters of the alphabet in C#? It's not too hard to do it by hand, but I was wondering if there was a built in way to do this. A: for (char letter = 'A'; letter <= 'Z'; letter++) { Debug.WriteLine(letter); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "111" }
Q: SharePoint and thread safety I'm looking for articles, forum or blog posts dealing with SharePoint and thread safety? I'm quite sure there are some special aspects regarding thread safety that have to be considered when working with the SharePoint object model. Actually I didn't find many information about this, yet...
{ "language": "en", "url": "https://stackoverflow.com/questions/314467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Workspace problem once the user name has been changed in TFS Source Control For some reason the system admin changed my user name from XxXx to XxXx1 in the source control system. Then the problems started. I had to delete all local files and re-download them from source control just to open the project. And after I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Display Headers in Infragistics ULTRAGRID when no data in table I am fetching data in from an SQL table using a DataSet in VB.Net. When there is data in table, it displays the data properly in the grid, but when there is no data in the table, it only shows the UltraGrid's basic view. How can I display the column na...
{ "language": "en", "url": "https://stackoverflow.com/questions/314481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Adding Custom Autotext for MS Word I need to know how to add a custom, dynamic Autotext entry for Microsoft Word. I want to be able to Insert>Autotext>Header/Footer>"Last Friday" and have last Friday's date show up in the spot and keep it updated like inserting the Date Autotext updates each time the document is op...
{ "language": "en", "url": "https://stackoverflow.com/questions/314487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an easy way to sort an array of char*'s ? C++ I've got an array of char* in a file. The company I work for stores data in flat files.. Sometimes the data is sorted, but sometimes it's not. I'd like to sort the data in the files. Now I could write the code to do this, from scratch. Is there an easier way?...
{ "language": "en", "url": "https://stackoverflow.com/questions/314492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I have a foreign text in subject line? I have an xml web service which I use at work to make a request to. This request, an xml document, includes information such as recipients, subject, body, etc (as a newsletter would contain). I have an ASP.NET form to enter the above information to, to form the Xml docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/314493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: < ajaxToolkit:TabPanel - would like to set "focus" on a different tab i have a < ajaxToolkit:TabPanel initially when the page loads, the first tab is "open" ("focused on") can i do something (preferably server side) so my second tab would be the "default" selected tab? A: Set the TabPanel's ActiveTabIndex to 1 in y...
{ "language": "en", "url": "https://stackoverflow.com/questions/314494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to prevent/cancel a combobox's value change in c#? I have a combobox at the top of a form that loads editable data into fields below. If the user has made changes, but not saved, and tries to select a different option from the combobox, I want to warn them and give them a chance to cancel or save. I am in need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to mark a class as Deprecated? Possible Duplicate: How do I mark a method as Obsolete/Deprecated? - C# How do you mark a class as deprecated? I do not want to use a class any more in my project, but do not want to delete it before a period of 2 weeks. A: As per Doak's answer, but the attribute's second param...
{ "language": "en", "url": "https://stackoverflow.com/questions/314505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "236" }
Q: How does one set up multiple accounts with separate databases for Django on one server? What options are there for installing Django such that multiple users (each with an "Account") can each have their own database? The semantics are fairly intuitive. There may be more than one User for an Account. An Account has a...
{ "language": "en", "url": "https://stackoverflow.com/questions/314515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I get Visual Studio's "Publish Website" to 1. not overwrite web.config & 2. promote copies of dlls that were referenced from my GAC I started using a a library which I reference from the GAC during development. I want the dll included in the project bin directory when I promote it to the webserver. I also nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/314524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Windows GDI: horizontal/vertical DPI When obtaining the DPI for the screen under Windows (by using ::GetDeviceCaps) will the horizontal value always be the same as the vertical? For example: HDC dc = ::GetDC(NULL); const int xDPI = ::GetDeviceCaps(dc, LOGPIXELSX); const int yDPI - ::GetDeviceCaps(dc, LOGPIXELSY); a...
{ "language": "en", "url": "https://stackoverflow.com/questions/314531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: When are API methods marked "deprecated" actually going to go away? I'm code reviewing a change one of my co-workers just did, and he added a bunch of calls to Date.toMonth(), Date.toYear() and other deprecated Date methods. All these methods were deprecated in JDK 1.1, but he insists that it's ok to use them becau...
{ "language": "en", "url": "https://stackoverflow.com/questions/314540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: How to format a number string in gridview? In C# I have a processing time number data column in the database which is in in this format "###" or "##" ( eg: "813" or "67") When I bind it to the grid view I wanted to display it in this format "0.###" (eg: "0.813" or "0.067") I tried using {0:0.000} and other formating...
{ "language": "en", "url": "https://stackoverflow.com/questions/314549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to use makefiles in Visual Studio? I heard a lot about makefiles and how they simplify the compilation process. I'm using VS2008. Can somebody please suggest some online references or books where I can find out more about how to deal with them? A: I actually use a makefile to build any dependencies needed bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/314553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "67" }
Q: How can I confirm NHibernate is actually using a transaction using SQL Profiler? I am using the following generic code to save entities. using (ITransaction tx = session.BeginTransaction()) { try { entity.DateModified = DateTime.Now; session.SaveOrUpdate(entity); session.Flush(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Linqtosql - joined rows In Linqtosql how do I show items from multiple rows in a single field. eg I have a 3 table setup for tagging(entity, tag, entitytag) all linked via foreign keys. For each entity I would like to return the name in one field and then all relevant tags in 2nd field. eg Item1, tag1; tag2; tag3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can Asp.Net Mvc Route Constraints throw a 404 instead of InvalidOperationException? I'm trying to use route constraints in an Asp.Net MVC Application. routes.MapRoute( "theRoute", "MyAction/{page}", new { controller = "TheController", action = "MyAction", page = 1 }, new { page = @"[0-9]" }); When ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows domain changed cause sql2005 login fail My company change the domain from abc to xyz and now i can't log into my local sql2005 via Windows login nor sql login. both login gave me this error: An error has occured while establishing a connection to the server. blah blah blah...Sql server does not allow remote ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bug in eclipse compiler or in javac ("type parameters of T cannot be determined") The following code public class GenericsTest2 { public static void main(String[] args) throws Exception { Integer i = readObject(args[0]); System.out.println(i); } public static <T> T readObject(String fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/314572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "74" }
Q: Need an example of a primary-key @OneToOne mapping in Hibernate Can somebody please give me an example of a unidirectional @OneToOne primary-key mapping in Hibernate ? I've tried numerous combinations, and so far the best thing I've gotten is this : @Entity @Table(name = "paper_cheque_stop_metadata") @org.hibernate....
{ "language": "en", "url": "https://stackoverflow.com/questions/314578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I perform a Unit Test using threads? Executive Summary: When assertion errors are thrown in the threads, the unit test doesn't die. This makes sense, since one thread shouldn't be allowed to crash another thread. The question is how do I either 1) make the whole test fail when the first of the helper threads ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: performance of web app with high number of inserts What is the best IO strategy for a high traffic web app that logs user behaviour on a website and where ALL of the traffic will result in an IO write? Would it be to write to a file and overnight do batch inserts to the database? Or to simply do an INSERT (or INSERT...
{ "language": "en", "url": "https://stackoverflow.com/questions/314581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Comparing multiple dictionaries in Python I'm new to Python and am running to a problem I can't google my way out of. I've built a GUI using wxPython and ObjectiveListView. In its very center, the GUI has a list control displaying data in X rows (the data is loaded by the user) and in five columns. When the user sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/314583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Do you declare your module specific functions as static? I am thinking it is a best practice to declare them as static, as it makes them invisible outside of the module. What are your thoughts on this? A: If it is truly an function which is internal only to that .c file, then yes. It should help avoid polluting the...
{ "language": "en", "url": "https://stackoverflow.com/questions/314584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Air application created with Flex - How do I create a fly-out window to the left/right I have an Air application with a main window. I would like to have a new window fly out from the side of the main window when the user clicks on a button in the main window. The window that appears needs to display information bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/314591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to achieve speedy inserts of large amounts of data in MySQL? I have written a program in C to parse large XML files and then create files with insert statements. Some other process would ingest the files into a MySQL database. This data will serve as a indexing service so that users can find d...
{ "language": "en", "url": "https://stackoverflow.com/questions/314593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Use HTTPWebRequest to get remote page's title I have a web service that acts as an interface between a farm of websites and some analytics software. Part of the analytics tracking requires harvesting the page title. Rather than passing it from the webpage to the web service, I would like to use HTTPWebRequest to cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/314594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why doesn't this generic interface stack work? I have a bunch of generic interfaces and classes public interface IElement { // omited } class Element implements IElement { // omited } public interface IElementList<E extends IElement> extends Iterable { public Iterator<E> iterator(); } class ElementList implem...
{ "language": "en", "url": "https://stackoverflow.com/questions/314600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static members need special synchronization blocks? I have a class which looks something like this: public class Test { private static final Object someObject = new Object(); public void doSomething() { synchronized (someObject) { System.out.println(someObject.toString()); } } } Can I consider th...
{ "language": "en", "url": "https://stackoverflow.com/questions/314607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: php includes in html files-directories Do all php include files have to be in an include directory, or is that just an organizational convenience? Can I include files from any directory using the path to that directory? Do html files that contain php includes have to have a php extension? If so, I guess that would m...
{ "language": "en", "url": "https://stackoverflow.com/questions/314616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sharepoint List View Settings We have created a new List View Style that shows thumbnails from a picture library, we have added a HyperLink Column and made the View style map the HyperLink url to an anchor tag. The intention is that when the Content Managers want to create a image based list of hyper links they just...
{ "language": "en", "url": "https://stackoverflow.com/questions/314617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you select a particular option in a SELECT element in jQuery? If you know the Index, Value or Text. also if you don't have an ID for a direct reference. This, this and this are all helpful answers. Example markup <div class="selDiv"> <select class="opts"> <option selected value="DEFAULT">Default</option...
{ "language": "en", "url": "https://stackoverflow.com/questions/314636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "818" }
Q: Need a regex to exclude certain strings I'm trying to get a regex that will match: somefile_1.txt somefile_2.txt somefile_{anything}.txt but not match: somefile_16.txt I tried somefile_[^(16)].txt with no luck (it includes even the "16" record) A: The best solution has already been mentioned: somefile_(?!16\.txt...
{ "language": "en", "url": "https://stackoverflow.com/questions/314639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Mod-rewrite shenanigans I have this rewrite rule RewriteEngine On RewriteBase /location/ RewriteRule ^(.+)/?$ index.php?franchise=$1 Which is suppose to change this URL http://example.com/location/kings-lynn Into this one http://example.com/location/index.php?franchise=kings-lynn But instead I am getting this htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/314647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the best way to write a Perl CGI application? Every example I've seen of CGI/Perl basically a bunch of print statements containing HTML, and this doesn't seem like the best way to write a CGI app. Is there a better way to do this? Thanks. EDIT: I've decided to use CGI::Application and HTML::Template, and us...
{ "language": "en", "url": "https://stackoverflow.com/questions/314654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What is the meaning of "I cosay"? Search the web for the phrase "I cosay". I run across this phrase being used from time to time by individuals in tech forums, but for the life of me, I cannot figure out what it means or how it makes sense in the context of the conversations where it is used. Am I just way behind t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to inject a Jakarta enums in a Spring application context? I have a class which constructor takes a Jakarta enums. I'm trying to find how I can easily inject it via an Spring XML aplicationContext. For example : The enum : public class MyEnum extends org.apache.commons.lang.enums.Enum { public static final M...
{ "language": "en", "url": "https://stackoverflow.com/questions/314664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to redirect output of an entire shell script within the script itself? Is it possible to redirect all of the output of a Bourne shell script to somewhere, but with shell commands inside the script itself? Redirecting the output of a single command is easy, but I want something more like this: #!/bin/sh if [ ! -t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "268" }
Q: Why aren't my SQL Server 2005 backups being deleted? I've got a maintenance plan that executes weekly in the off hours. It's always reporting success, but the old backups don't get deleted. I don't want the drive filling up. DB Server info: SQL Server Standard Edition 9.00.3042.00 There is a "Maintenance Cleanup Ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/314679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Which tags are not in the database? Given a collection of user specified tags how do I determine which ones are not in the tags table with 1 SQL Statement? Assuming a table schema tags (id, tag) and I'm using mysql, if there's an optimization I'm unaware of. thanks A: SELECT Tag FROM UserSpecifiedTags LEFT O...
{ "language": "en", "url": "https://stackoverflow.com/questions/314682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Gwt-ext window positioning How do I make an instance of gwtext.client.widgets.Window appear at specific DIV in my html ? I tried window.anchorTo(DOM.getElementById("Some_Div"),"left", new int[]{0,0}), thinking the window will anchor itself to div id="Some_Div" in my html. it didnt. A: I haven't used the gwt-ext...
{ "language": "en", "url": "https://stackoverflow.com/questions/314683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cross-database queries with different DB names in different environments? How would you handle cross database queries in different environments. For example, db1-development and db2-development, db1-production and db2-production. If I want to do a cross-database query in development from db2 to db1 I could use the...
{ "language": "en", "url": "https://stackoverflow.com/questions/314684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you store cell phone numbers in a database? With the age of text messages and things like that, what's a good way to store phone numbers in a database? In the USA, text messages are handled by phone numbers but in other countries I hear they use email addresses so I guess there needs to be a way to differenti...
{ "language": "en", "url": "https://stackoverflow.com/questions/314686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Aspx change causing a reload? We have a setup here that is less than ideal, We have our webserver configured so that there is a global application and then we have each web applications dll ( hundreds ) in WEBROOT/bin Recently I made a change to a ASPX page in .NET 1.1. and we I went to check the change it was compl...
{ "language": "en", "url": "https://stackoverflow.com/questions/314695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the raw xml returned from a webservice request? Does anyone know of a simple way of getting the raw xml that is returned from querying a webservice? I have seen a way of doing this via Web Services Enhancements, but I don't want an added dependency. A: You have two real options. You can create a SoapExte...
{ "language": "en", "url": "https://stackoverflow.com/questions/314696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Create discrepancy between size on disk and actual size in NTFS I keep finding files which show a size of 10kb but a size on disk on 10gb. Trying to figure out how this is done, anyone have any ideas? A: You can make sparse files on NTFS, as well as on any real filesystem. :-) Seek to (10 GB - 10 kB), write 10 kB ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flash Media Server/PHP Application I need help finding resources that would help me or at least point me in the right direction in building a Flash media server/PHP application. I basically want to improve my current application by instead of progressive download using flash media server so that the videos will not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the best way to specify whether InstallPrivileges is limited or elevated at the command line in WIX? I want to create an MSI in WiX such that it can take a command line parameter to indicate whether it is a per-machine or per-user installation and consequently whether to raise a UAC dialog. What is the best ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Logging to temporary directory in a cross-platform manner I have an application for which log4j logging is configured in a log4j.properties file. Currently, this application runs on UNIX and creates a log file in /tmp. This application needs to run on Windows, and on that platform I would like for it to select the...
{ "language": "en", "url": "https://stackoverflow.com/questions/314713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Good book or other resource on integration testing? There are enough books on how to do unit testing. Do you know any good books (or other good resources) on integration testing? What I am particularly interested in is * *Define scope (unit testing < integration testing < automated func. testing *What is a goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/314722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: ASP.NET GridView second header row to span main header row I have an ASP.NET GridView which has columns that look like this: | Foo | Bar | Total1 | Total2 | Total3 | Is it possible to create a header on two rows that looks like this? | | Totals | | Foo | Bar | 1 | 2 | 3 | The data in each row will...
{ "language": "en", "url": "https://stackoverflow.com/questions/314736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: How can I use Template Toolkit on a string instead of a file? I have some strings that I am pulling out of a database and I would like to use Template Toolkit on them, but I can't seem to figure out how to use strings as TT input. Any tips? Thanks! -fREW A: From the docs: # text reference $text = "[% INCLUDE heade...
{ "language": "en", "url": "https://stackoverflow.com/questions/314737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Re-attatching an X server view of a lost process I'm running Xorg and my (Qt) program daemonises itself. Now I log out and restart the X server. When I log in again my process is still running fine, but I can't see it. Is there a way of attatching the new incarnation of the X server to the old process? If I don't re...
{ "language": "en", "url": "https://stackoverflow.com/questions/314739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is there a way to expand the code window in VS.NET to maximum size? In Eclipse you can double-click on the tab of the code window and expand it to full size, e.g. if you will be working on just the code awhile and want maximum size on a smaller monitor, etc. Is there a way to expand the code window in Visual Studio....
{ "language": "en", "url": "https://stackoverflow.com/questions/314740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python 2.5.2 and Solaris 8 (gcc 3.4.2) build issues I'm trying to build python 2.5.2 on Solaris 8 using gcc 3.4.2. I can't see any immediate errors in the ./configure step but, once built and i enter the python shell doing an import time errors with : Python 2.5.2 (r252:60911, Nov 21 2008, 18:45:42) [GCC 3.4.2] on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there an eclipse plugin for developing in m4? Googling has turned up little to nothing. I need to develop some heavy stuff in m4 and I'd love to do it in my favorite environment with all the bells and whistles thereof. There are packages for running m4 on just about every platform, such as windows. So I know at t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: DTS- Debugging Tips In a legacy project that I'm on, we have several processing that are preformed via DTS. DTS is not something I worked with a lot back in its hey day.... I was in college. More specificity, these process are in ActiveX code blocks -- which is basically VBScript for database. It is really hard to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do you disable cookies in Internet Explorer 7? I've tried disabling cookies in Internet Explorer 7, I've changed the settings under Internet Options->Privacy and this did nothing, when I reloaded the page. I read somewhere that you need to restart IE7, than physically delete the Internet cache and cookie files f...
{ "language": "en", "url": "https://stackoverflow.com/questions/314763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java ActiveMQ client fails to receive messages I am trying to implement performance testing on ActiveMQ, so have setup a basic producer and consumer to send and receive messages across a queue. I have created a producer with no problems, getting it to write a specific number of messages to the queue: for(int i = 0;...
{ "language": "en", "url": "https://stackoverflow.com/questions/314765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: nhibernate class implementation based on value I'm creating a blog library using nHibernate and I have a BlogEntry class that has a CreatedBy property of type User (User is an abstract class). The two concrete implementations of the User class are RegisteredUser and UnknownUser. I'd like nHibernate to instantiate U...
{ "language": "en", "url": "https://stackoverflow.com/questions/314769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting innodb_log_file_size crashes MySQL So, I'd like to be able to set the max log file size to 64M, but after doing so with innodb_log_file_size=64M MySQL starts OK, but nothing seems to work properly. EDIT: and by properly I mean not at all. Setting other InnoDB variables aren't causing any problems. How shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/314774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to print out the HttpWebRequest in C#? I'm having a problem with a POST I'm doing using the HttpWebRequest object from C#. In order to analyze the problem I would like to know exactly what is being sent over the wire. The problem is that I'm also using HTTPS so I can't sniff the wire. I need some way of printing...
{ "language": "en", "url": "https://stackoverflow.com/questions/314776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Testing controller methods protected from forgery in Rails I'm trying to test a method I have in my application, but I don't know how to unit test a method that is being protected from forgery, take a look at this: def index @alumnos = Alumno.paginate :per_page => 20, :page => params[:page], :order =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/314777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Custom Attributes and Exceptions in .net while writing a custom attribute in C# i was wondering if there are any guidelines or best practices regarding exceptions in attributes. Should the attribute check the given parameters for validity? Or is this the task of the user of the property? In a simple test I did the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/314779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I use the find method of a datatable with a compound key? I am working on a windows form application. How do i use the find method of a datatable to find a row if the datatable has a compound key? Table Structure Col A, Col B, Col C Col A and Col B make up the compound key. I want to find the row where the va...
{ "language": "en", "url": "https://stackoverflow.com/questions/314781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Using a batch file to loop through Oracle SQL scripts I have two SQL scripts which get called within a loop that accept a number parameter. Here is what I'm currently using: for /l %%i in (1, 1, 51) do ( sqlplus u/p@name @script.sql a%%i.html %%i sqlplus u/p@name @script.sql b%%i.html %%i ) Everything works...
{ "language": "en", "url": "https://stackoverflow.com/questions/314783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the cleanest way to override ActiveRecord's find for both models and collections? I have library code that overrides Ar's find method. I also include the module for all Association classes so both MyModel.find and @parent.my_models.find work and apply the correct scope. I based my code off of will_paginate's:...
{ "language": "en", "url": "https://stackoverflow.com/questions/314786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to: Export events into a single iCalendar file? Can I export multiple calendar events into a single iCalendar file? A: You simply make an iCalendar file with multiple VEVENT sections. For example: BEGIN:VCALENDAR BEGIN:VEVENT DESCRIPTION: DTEND:20071202T220000Z DTSTAMP:20081124T220920Z DTSTART:20071202T200000...
{ "language": "en", "url": "https://stackoverflow.com/questions/314792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best way to define true, false, unset state If you have a situation where you need to know where a boolean value wasn't set (for example if that unset value should inherit from a parent value) the Java boolean primitive (and the equivalent in other languages) is clearly not adequate. What's the best practice to achi...
{ "language": "en", "url": "https://stackoverflow.com/questions/314800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Why would HttpRuntime.AppDomainAppPath return the path with incorrect casing? I have an application in which HttpRuntime.AppDomainAppPath returns the correct path with the wrong casing. I am then trying to use this in a String.Replace and it does not find the path in the filename due to casing. I am aware that I can...
{ "language": "en", "url": "https://stackoverflow.com/questions/314804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: T-SQL: Opposite to string concatenation - how to split string into multiple records Possible Duplicate: Split string in SQL I have seen a couple of questions related to string concatenation in SQL. I wonder how would you approach the opposite problem: splitting coma delimited string into rows of data: Lets say I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/314824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "139" }
Q: Crystal Reports group name error I am grouping on a date field. The tree explorer for the report when data is displayed shows the date as 3 days before the date that is in the records. The detail in the report lists the correct date. I have verified the field shown in the report and the Group field are pointing to t...
{ "language": "en", "url": "https://stackoverflow.com/questions/314839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }