text
stringlengths
8
267k
meta
dict
Q: Linq to SQL: How can I Order By a composite object? I have the following Linq to SQL query, in which I'm trying to do a multi-column GROUP BY: return from revision in dataContext.Revisions where revision.BranchID == sourceBranch.BranchID-1 && !revision.HasBeenMerged group revision by ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/322614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating a com dll We have an application which uses COM dll.Now, we are pushing updates of this dll.We copy the new dll ( overwriting the existing one) and register the dll. Is this a good practice.Or, should we first unregister the dll already on clients machine. A: As long as your old COM dll implements the exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/322639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Calendar with Drag select for multiple days Anyone know of a Javascript Calendar that supports drag selection for multiple days? Need to be able to do it over months as well, not just restricted to one month. Thanks a lot in advance, the ones here are no good for my problem: http://www.javascript-example...
{ "language": "en", "url": "https://stackoverflow.com/questions/322652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery: Select which points to the current URL In jQuery, how do you select the <a> which href is pointing to the current URL For example: URL = http://server/dir/script.aspx?id=1 I want to select this <a> <a href="/dir/script.aspx">...</a> I tried this but it doesn't work: var url = window.location.href; $('#ulTop...
{ "language": "en", "url": "https://stackoverflow.com/questions/322657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sendmail and MX records when mail server is not on web host This is a problem I'm sure is easy to fix, but I've been banging my head on it all day. I'm developing a new web site for a client. The web site resides at (this is an example) website.com. I have a PHP form script to email visitors' requests to requests@...
{ "language": "en", "url": "https://stackoverflow.com/questions/322659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rails JOIN TABLES I have a following SQL QUERY: SELECT articles.name, articles.price, users.zipcode FROM articles INNER JOIN users ON users.id = articles.user_id WHERE vectors @@ to_tsquery('crime') ORDER BY articles.price ASC And I Would like to write it inside of a find method from an ActiveRecord Class named Arti...
{ "language": "en", "url": "https://stackoverflow.com/questions/322687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex and embedded XML I'm using Parsley IoC in my current Flex project. So I'd like to embed the container configuration XML onto the result SWF. How could I load embedded XML file into action script XML object? A: Do you need to use XML? If you configure Parsely via AS or MXML it will be compiled in and will be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Multiple installs of Django - How to configure transparent multiplex through the webserver (Lighttpd)? This question flows from the answer to:How does one set up multiple accounts with separate databases for Django on one server? I haven't seen anything like this on Google or elsewhere (perhaps I have the wrong voca...
{ "language": "en", "url": "https://stackoverflow.com/questions/322694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A packing algorithm ... kind of Given an array of items, each of which has a value and cost, what's the best algorithm determine the items required to reach a minimum value at the minimum cost? eg: Item: Value -> Cost ------------------- A 20 -> 11 B 7 -> 5 C 1 -> 2 MinValue = 30 naive solution:...
{ "language": "en", "url": "https://stackoverflow.com/questions/322699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Matching inexact company names in Java I have a database of companies. My application receives data that references a company by name, but the name may not exactly match the value in the database. I need to match the incoming data to the company it refers to. For instance, my database might contain a company with na...
{ "language": "en", "url": "https://stackoverflow.com/questions/322701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Servlet being called twice! sorry but I do not have the actual code with me, but I will try to explain: I have a servlet mapped to the following: /admin/* So, this goes to a servlet: public class AdminController extends MainController { public void doPost(HttpServletRequest request, HttpServletResponse respo...
{ "language": "en", "url": "https://stackoverflow.com/questions/322702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP memcache design patterns We use memcache basically as an after thought to just cache query results. Invalidation is a nightmare due to the way it was implemented. We since learned some techniques with memcache thru reading the mailing list, for example the trick to allow group invalidation of a bunch of keys. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: When to use LinkedList over ArrayList in Java? I've always been one to simply use: List<String> names = new ArrayList<>(); I use the interface as the type name for portability, so that when I ask questions such as this, I can rework my code. When should LinkedList be used over ArrayList and vice-versa? A: See the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3545" }
Q: Why do directory listings contain the current (.) and parent (..) directory? Whenever I list the contents of a directory with a function like readdir, the returned file names also include "." and "..". I have the suspicion that these are just normal links in the file system and therefore indistinguishable from actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/322719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How does Flash work? Right now I'm developing a small canvas oriented 2D graphics engine for a game, and have been looking into several sources for hints to apply to my system's design. But obviously the most battle proven solution out there is flash, so I was wondering how is Flash architectured. I found some sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/322740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: websites urls without file extension? When I look at Amazon.com and I see their URL for pages, it does not have .htm, .html or .php at the end of the URL. It is like: http://www.amazon.com/books-used-books-textbooks/b/ref=topnav_storetab_b?ie=UTF8&node=283155 Why and how? What kind of extension is that? A: More spe...
{ "language": "en", "url": "https://stackoverflow.com/questions/322747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Retain precision with double in Java public class doublePrecision { public static void main(String[] args) { double total = 0; total += 5.6; total += 5.8; System.out.println(total); } } The above code prints: 11.399999999999 How would I get this to just print (or be able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/322749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "178" }
Q: Is there a difference in the underlying protocol for ODBC, OLEDB & ADO.NET When communicating to a SQL Server database using one of the typical systems, ODBC, OLEDB or ADO.NET, is the underlying basic protocol the same? Are all the differences between these systems basically just client side issues? Is this all jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/322766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Finding relative libraries when using symlinks to ruby executables Imagine you have an executable foo.rb, with libraries bar.rb layed out in the following manner: <root>/bin/foo.rb <root>/lib/bar.rb In the header of foo.rb you place the following require to bring in functionality in bar.rb: require File.dirname(__F...
{ "language": "en", "url": "https://stackoverflow.com/questions/322769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C#: Side effects with Directory.GetFiles in a foreach statement and deleting files? I have following foreach-loop: using System.IO; //... if (Directory.Exists(path)) { foreach(string strFile in Directory.GetFiles(path, "*.txt")) { // do something, possibly delete the file named strFile } } Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/322772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does Gmail recognize email signatures (alternatively, "What's the best way to recognize email signatures?") Gmail automatically greys text that looks like a signature. Anyone have any guesses how it does this? (I've noticed that it depends on the presence of the sender's name, but I think that's only part of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/322779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: best name for object for collection of semantically-related inputs? I'm writing an HTML form generation library. There's a top-level Form class, and at the bottom there are classes for each type of HTML form input object (Select, Textfield, Radio, etc.). There's a class in between, that holds groupings of 1 or more ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use Java to edit a template document (form letter) from a file? I'm playing with Java for the first time and need to be able to replace some words in a template. example template - "Dear PUT_THEIR_NAME_HERE, I'm contacting you ..... bla bla bla Regards, PUT_COMPANY_NAME_HERE" What's the simplest way (prefera...
{ "language": "en", "url": "https://stackoverflow.com/questions/322784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I save a DataTable to a .DBF? I've been working on a program to read a dbf file, mess around with the data, and save it back to dbf. The problem that I am having is specifically to do with the writing portion. private const string constring = "Driver={Microsoft dBASE Driver (*.dbf)};" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Floating-point precision when moving from i386 to x86_64 I have an application that was developed for Linux x86 32 bits. There are lots of floating-point operations and a lot of tests depending on the results. Now we are porting it to x86_64, but the test results are different in this architecture. We don't want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Configuration: When does IsReadOnly take effect? This is a simple question, but one I'm not finding much information for in the docs. When dealing with custom configuration sections, collections, elements, etc., when does the IsReadOnly setting actually mean "read only"? With IsReadOnly returning True, I can still d...
{ "language": "en", "url": "https://stackoverflow.com/questions/322803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Droppable hoverClass option is not working in Internet Explorer I can't seem to get it to work. It works fine in Firefox, but in IE nothing happens when the droppable has an item held over it. I tried using the hoverClass option, and also tried just manually changing the class in "over" and "out" events. Both metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/322804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which software development practices provide the highest ROI? The software development team in my organization (that develops API's - middleware) is gearing to adopt atleast one best practice at a time. The following are on the list: Unit Testing (in its real sense), Automated unit testing, Test Driven Design & Deve...
{ "language": "en", "url": "https://stackoverflow.com/questions/322807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Maven2 life cycle help I’ve built a custom Maven2 plug-in using Ant. I would like to call another maven plug-in in particular the Cargo Maven2 plug-in immediately after the custom Ant plug-in successfully completes. However, I do not want to attach the Cargo plug-in to another goal or phase. Is there a way to have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/322835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: synch enumeration with static data from a database I have an enumeration of delivery status codes. And when I save delivery data to the database they are stored with a foreign key to a table containing the same data (i.e. the same delivery codes) What is the best strategy for keeping an enumeration in synch with da...
{ "language": "en", "url": "https://stackoverflow.com/questions/322836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Easy jQuery Question - Selecing a div with the same class as the a I want to do this, but haven't figured it quite out yet... $(document).ready(function() { $("a.whateverclass").click(function() { $("div.whateverclass").show(); return false; }); Basically when a link with...
{ "language": "en", "url": "https://stackoverflow.com/questions/322837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL count matching words How to query to get count of matching words in a field, specifically in MySQL. simply i need to get how many times a "search terms"appear in the field value. for example, the value is "one two one onetwo" so when i search for word "one" it should give me 3 is it possible? because currently...
{ "language": "en", "url": "https://stackoverflow.com/questions/322839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP 3 to PHP 5 Upgrade... Variables in 3 didn't have $ in front... is there a setting for back compat? OK, this is an odd request, and it might not even be fully true... but I'm upgrading someone's system ... and they are using OSCommerce (from a long time ago). It appears their variables are referrenced without a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/322842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to update my asp.net application / database after changing the schema? One of the core fields present on several of my app's major database tables needs to be changed from varchar(5) to varchar(8). The list of stored procedures that depend on these tables is extremely long, not to mention the cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/322845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert Fortran to C or C++ I have some numeric code that I need to convert to C or C++. I tried using f2c, but it won't work on the Fortran code. f2c complains because the code uses C style preprocessor directives (#include). The code's readme states that it is Fortran77, that works with the fort77 linker, that wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/322846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: intel compiler on vista: "unable to obtained mapped memory" I'm getting the following error when trying to compile C++ projects using intel compiler version 10.0.025 on vista business edition (sp1) in vs2008: unable to obtain mapped memory (see pch_diag.txt) There is no such file as pch_diag, so that's a bit dishea...
{ "language": "en", "url": "https://stackoverflow.com/questions/322866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TortoiseSVN Repo-Browser urls How do I remove the urls of repositories that no longer exist in the dropdown in the TortoiseSvn repo-browser? A: Open regedit go to hkey_current_user\software\tortoisesvn\history\repourls\ change the urlX value to "" for whatever you want to delete. A: Just move the mouse over the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/322870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can you enable variable highlighting with Eclipse PDT? I'm using version 3.3.2, I know that regular Eclipse for Java does variable highlighting. Notepad++ does it regardless of what language you're using (if you select any text, it highlights similar text) I know it's not critically important, and a back/forward inc...
{ "language": "en", "url": "https://stackoverflow.com/questions/322877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Have Google maps center around geo-locs and zoom in appropriately I would like to pass an x amount of geo-locations to the Google Maps API and have it centered around these locations and set the appropriate zoom level so all locations are visible on the map. I.e. show all the markers that are currently on the map. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/322895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: .NET ClickOnce and Vista start-up We have some software we use internally which is released via ClickOnce from VS 2008. The app needs to run on everyones computer all the time so the obvious solution is to have it in the Start Up folder of their start menu. This works fine on XP machines. But, as was inevitable, peo...
{ "language": "en", "url": "https://stackoverflow.com/questions/322898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Insert a dependent jar into an installer jar I have a multi-module maven project with an installer sub-project. The installer will be distributed as an executable JAR. It will setup the DB and extract the WAR file to the app server. I would like to use maven to assemble this jar like so: /META-INF/MANIFEST.MF /co...
{ "language": "en", "url": "https://stackoverflow.com/questions/322907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is Teredo Tunneling Pseudo-Interface? Running ipconfig /all shows a Teredo Tunneling Pseudo-Interface. What is that? Does this have something to do with IPv4 vs IPv6? Should I get rid of it? If so how? A: Is to do with IPv6 All the gory details here: http://www.microsoft.com/technet/network/ipv6/teredo.mspx...
{ "language": "en", "url": "https://stackoverflow.com/questions/322910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: jQuery to find all previous elements that match an expression Using jQuery, how do you match elements that are prior to the current element in the DOM tree? Using prevAll() only matches previous siblings. eg: <table> <tr> <td class="findme">find this one</td> </tr> <tr> <td><a href="#" cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/322912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Check if page is in partial rendering mode ASP.NET 2.0 + AJAX.NET I need to determine in the page is loading in a partial rendering mode (when posting back from within an UpdatePanel). Any suggestions? A: You can use the IsInAsyncPostBack property of ScriptManager to check if the page is loading through a partial ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to re-use a UITableView with dynamic data? My application has a series of table views based on some hierarchical data. For example, the user selects "Browse by XYZ" on my CategoryListController, and then I load my DocumentListController based on that selection. Right now I'm getting the list through a web s...
{ "language": "en", "url": "https://stackoverflow.com/questions/322923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: Retrieve this for methods above in the stack How would you get a reference to an executing class several stack frames above the current one? For example, if you have: Class a { foo() { new b().bar(); } } Class b { bar() { ... } } Is there a way to get the value that would b...
{ "language": "en", "url": "https://stackoverflow.com/questions/322926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: word wrap in css / js I'm looking for a cross-browser way of wrapping long portions of text that have no breaking spaces (e.g. long URLs) inside of divs with pre-determined widths. Here are some solutions I've found around the web and why they don't work for me: * *overflow : hidden / auto / scroll - I need the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/322929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "40" }
Q: How to split data over MySQL tables I have a website with members who message each other. There are getting to be a few members and they like to send messages - I'm sure you can see where this is going. Currently I have said messages stored in a nicely relational table cunningly titled "messages" with different stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/322931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Common GNU makefile directory path I'm trying to consolidate some build information by using a common makefile. My problem is that I want to use that makefile from different subdirectory levels, which makes the working directory value (pwd) unpredictable. For example: # Makefile.common TOP := $(shell pwd) COMPONENT_...
{ "language": "en", "url": "https://stackoverflow.com/questions/322936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Recommended way to initialize srand? I need a 'good' way to initialize the pseudo-random number generator in C++. I've found an article that states: In order to generate random-like numbers, srand is usually initialized to some distinctive value, like those related with the execution time. For example, the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "76" }
Q: WriteOnly Property or Method? Is there a particular scenario where a WriteOnly property makes more sense then a method? The method approach feels much more natural to me. What is the right approach? Using Properties: Public WriteOnly Property MyProperty As String Set(ByVal value as String) m_myField = valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/322941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: URL Etiquette: can all my urls end with .php? Given my new understanding of the power of "includes" with PHP, it is my guess that ALL of my pages on my site will be .php extension. Would this be considered strange? I used to think that most pages would be .htm or .html, but in looking around the net, I am noticing t...
{ "language": "en", "url": "https://stackoverflow.com/questions/322944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need for Abstract Class as well as Interface? An interface is a 100% abstract class, so we can use an interface for efficient programming. Is there any situation where an abstract class is better than an interface? A: Yes, there is a place for both abstract classes and interfaces. Let's go with a concrete example. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/322945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Retrieving sibling control from Repeater on event I have a DropDownList on a repeater control, as well as a button. The button is disabled until a valid item is selected on the DropDownList, when I want to enable the button. Unfortunately I can't seem to get to it. Found the repeater by: (.As() method is an extensio...
{ "language": "en", "url": "https://stackoverflow.com/questions/322953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: An Easy Way to Consume a Twitter Search Feed With ASP.Net Anyone have an pointers on an easy way to consume a search.twitter.com feed with ASP.Net? I tried using the RSSToolKit, but it doesn't provide anything for parsing the and other tags in the feed. For example: I want to parse this feed: http://search.twitter...
{ "language": "en", "url": "https://stackoverflow.com/questions/322959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a type of object, to which I can cast both Buttons AND MenuItem objects in order to access their Tag properties? I want to cast both MenuItem objects and Button control objects to an object type of whose "Tag" property I can reference. Is there such an object type? E.g. void itemClick(object sender, EventAr...
{ "language": "en", "url": "https://stackoverflow.com/questions/322971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hook to WM6 sound How can I hook into the window mobile sound (driver?) and read the data while it is passing data to the speaker? A: While creating a new wavedev audio driver might do what you want (it's not 100% clear how you want to acheive your goal) what you're probably after is the Mixer API. You might take a...
{ "language": "en", "url": "https://stackoverflow.com/questions/322988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio Project References inside solution What is the best way to reference a project inside solution. I added references via Add Reference --> Projects. However it links to either release DLL or Debug dll. I want to have project itself in the reference, when we compile the projects, all the references projec...
{ "language": "en", "url": "https://stackoverflow.com/questions/322992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to programmatically add portlet to the JBoss Portal dashboard How can I programmatically add portlet to the JBoss Portal dashboard of specific user? Is there any remote API of the JBoss Portal to do this? SOAP web service, may be MBean-based API? Of course, as a last resort I can implement such service myself an...
{ "language": "en", "url": "https://stackoverflow.com/questions/323003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: In ruby, why does my IRB interactive debugging session always say "No sourcefile available" Just trying to get my irb sessions to actually list the current line of code, and those around it. Similar to what Perl's -d debugging mode lets you ddo. A: Its because, when you are doing it interactively, your "sourcefile...
{ "language": "en", "url": "https://stackoverflow.com/questions/323010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Facebook Connect and ASP.NET I'm at step 8 of the authentication overview found here: http://wiki.developers.facebook.com/index.php/How_Connect_Authentication_Works In particular, the user has logged into facebook via Facebook Connect and their web session has been created. How do I use the facebook developer toolk...
{ "language": "en", "url": "https://stackoverflow.com/questions/323019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Static Class Vs. Class with private constructor and all static properties and methods? When I create utility classes I typically create a class that has a private constructor and exposes all of it's methods and properties as static. What's the best approach for this? What's the difference between the way I do or cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/323022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: Does C# have anything comparable to Python's list comprehensions? I want to generate a list in C#. I am missing python's list comprehensions. Is there a C# way to create collections on the fly like list comprehensions or generator expressions do in python? A: List<T>.ConvertAll behaves just like list comprehensions...
{ "language": "en", "url": "https://stackoverflow.com/questions/323032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: OpenGL 3d stereo viewing for aerial stereo image (left, right images) My purpose: - display overlapping area with whole left right satellite or aerial image - rotate image using roll, pitch yaw angles -image format is Tiff image Now i'm doing OpengGL 3d stereo viewing for aerial stereo image (left, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Whats the best way to set a dropdown to selected in ASP.NET MVC markup? I have this html... <select id="View" name="View"> <option value="1">With issue covers</option> <option value="0">No issue covers</option> </select> It won't let me insert code like this... <select id="View" name="View"> <option value...
{ "language": "en", "url": "https://stackoverflow.com/questions/323063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to convert Gridview to Datatable I am using GridView in my application for populating datas. Is there any easy way to copy a gridview to datatable ? Actually, in my GridView one of the control is textbox. So I can edit that control at any time... What I need is on the button click whatever changes I made in Gri...
{ "language": "en", "url": "https://stackoverflow.com/questions/323064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to version control a record in a database Let's say that I have a record in the database and that both admin and normal users can do updates. Can anyone suggest a good approach/architecture on how to version control every change in this table so it's possible to roll back a record to a previous revision? A: Two...
{ "language": "en", "url": "https://stackoverflow.com/questions/323065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "200" }
Q: Generating a token that I can prove I generated I need to generate random tokens so that when I see them later I can determine absolutely that they were actually generated by me, i.e. it should be near impossible for anyone else to generate fake tokens. It's kind of like serial number generation except I don't need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to retrieve mapping table name for an Entity in Entity-framework in program is there any way to retrieve mapping table name for an Entity in Entity-framework in program? I know you can use .ToTraceString() to get the command text and then extract the table name, but ToTraceString() method is very slow. is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: vc++ MFC Project In Vc++ 6.0 mscomm control,please any body explain this function How it works ,what it does if (m_comm.GetCommEvent()==2 ) { VARIANT in_dat; in_dat = m_comm.GetInput(); CString strInput(in_dat.bstrVal); m_input = m_input + strInput; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Querying Complex Data Structure in Memory First time posting to a questions site, but I sort of have a complex problem i've been looking at for a few days. Background At work we're implementing a new billing system. However, we want to take the unprecedented move of actually auditing the new billing system against t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC Folder Controller Html.ActionLink I have the following code in my Site.Master page of an almost empty ASP.NET MVC Project. <li> <%= Html.ActionLink("Home", "Index", "Home")%> </li> <li> <%= Html.ActionLink("Feed List", "FeedList", "Home")%> </li> <li> <%= Html.ActionLink("Monitored Feeds", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static vs global in terms of speed and space consumption in C I would like to know difference between static variables and global variables in terms of access speed and space consumption. (If you want to know my platform: gcc compiler on Windows. (I am using Cygwin with Triton IDE for ARM7 embedded programming on wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/323094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best javascript combo box? A combo box is an auto-complete text box that is also a dropdown (i.e., you can choose from a list if you prefer). "Best" means combination of: stable, look/feel, API / customizability, maturity. A: ExtJS has a very powerful combo box that provides dropdown, auto-complete, and filtering o...
{ "language": "en", "url": "https://stackoverflow.com/questions/323112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to use GetHBITMAP method? I have a gdi+ bitmap, and I want to convert bitmap into HBitmap. I write the following code. HBITMAP temp; Color color; img->GetHBITMAP(color, &temp); But It do not work, How can I get a HBitmap? A: Check the return value of the GetHBITMAP function. A: Demonstration code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is best way to read CSV data? I am using C# and trying to read a CSV by using this connection string; Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\rajesh.yadava\Desktop\orcad;Extended Properties="Text;HDR=YES;IMEX=1;FMT=Delimited" This works for tab delimited data. I want a connect...
{ "language": "en", "url": "https://stackoverflow.com/questions/323131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHPSpec - fail to run, anyone using it for php development? Searched stackoverflow for this and found no answer Coming from Ruby On Rails and Rspec, I need a tool like rspec (easier transition). Installed it through PEAR and tried to run it but it's not working (yet) Just wanna ask around if anyone's using it have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: System.BadImageFormatException: Could not load file or assembly (from installutil.exe) I am trying to install a Windows service using InstallUtil.exe and am getting the error message System.BadImageFormatException: Could not load file or assembly '{xxx.exe}' or one of its dependencies. An attempt was made to load a...
{ "language": "en", "url": "https://stackoverflow.com/questions/323140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: How to close a file descriptor from another process in unix systems You can use command lsof to get file descriptors for all running processes, but what I would like to do is to close some of those descriptors without being inside that process. This can be done on Windows, so you can easily unblock some application....
{ "language": "en", "url": "https://stackoverflow.com/questions/323146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Flex: Database driven DataGrid: arrows disappearing In Flex I'm using the following code to allow sorting in a DataGrid (the data is paged and sorted serverside). private function headerReleaseHandler(event:DataGridEvent):void { var column:DataGridColumn = DataGridColumn(event.currentTa...
{ "language": "en", "url": "https://stackoverflow.com/questions/323147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: URL Redirection for Coming Soon Page? I have a site with over 100 pages. We need to go live with products that are soon available, however, many site pages will not be prepared at the time of release. In order to move forward, I would like to reference a "coming soon" page with links to pages that are current and av...
{ "language": "en", "url": "https://stackoverflow.com/questions/323148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using javax.naming.spi.DirObjectFactory to lookup objects from an LDAP I've implemented an object factory to lookup LDAP objects, but the supplied context does not return the DN (via nameCtx.getNameInNamespace()) from the LDAP. Am i doing it wrong in some way? public class LdapPersonFactory implements DirObjectFacto...
{ "language": "en", "url": "https://stackoverflow.com/questions/323161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SharePoint Webparts and Ajax Please, I am new to webparts and I need help!! I have a custom web part that I created. I added MS Ajax to it using an UpdatePanel which works fine. I add all my controls to the CreateChildControls method. As soon as I add a UpdateProgress control my page breaks with the following error:...
{ "language": "en", "url": "https://stackoverflow.com/questions/323163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Saving WPF Adorners I am relatively new to WPF and I have an issue with Adorners. I have an inkcanvas that contains an image, I can save the image with the strokes added by the user. The issue I have is that I have a requirement that allows the user to add text over the image, and to print/save the text without d...
{ "language": "en", "url": "https://stackoverflow.com/questions/323178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CruiseControl.Net switch from console to service I have set up a cruisecontrol.net build server. When running it in console mode it works fine, but when trying to run it as a windows service it doesn't work. The log file shows the following message: ThoughtWorks.CruiseControl.Core.CruiseControlException: Source con...
{ "language": "en", "url": "https://stackoverflow.com/questions/323179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IRC Bot: Error - Registration Timeout I'm making a simple IRC Bot in C. And I finally got the bot connecting and receiving information. My code is supposed to be sending as well, but the server is acting as if it is not sending anything. When The bot connects, I receive this: Recieved: :roc.esper.net NOTICE AUTH ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SpeedUp Database Updates There is a SqlServer2000 Database we have to update during weekend. It's size is almost 10G. The updates range from Schema changes, primary keys updates to some Million Records updated, corrected or Inserted. The weekend is hardly enough for the job. We set up a dedicated server for the job,...
{ "language": "en", "url": "https://stackoverflow.com/questions/323193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: linq, mvc and partial class I have dbml with single table users i want add partial class for User and add another property like so: public partial class User { public string FullName { get { return FirstName + " " + LastName; } } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is a HTTPS query string secure? I am creating a secure web based API that uses HTTPS; however, if I allow the users to configure it (include sending password) using a query string will this also be secure or should I force it to be done via a POST? A: From a "sniff the network packet" point of view a GET request is...
{ "language": "en", "url": "https://stackoverflow.com/questions/323200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "419" }
Q: How to design extensible software (plugin architecture)? I need some resources that talk about how to design your software to be extensible, i.e. so that other people can write add-ons/plug-ins that adds functionality to it. What do you recommend? Any books out there that discuss the subject? I would prefer somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/323202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Workaround .net application domain only passing objects by value I am developing an .net application which heavely depends on plugins. The application itself contains an connection to a remote server. Recently I digged into Application domains and see them as the ideal solution for isolating the plugin code from the...
{ "language": "en", "url": "https://stackoverflow.com/questions/323212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Microsoft.DirectX.Vector3.Normalize() inconsistency Two ways to normalize a Vector3 object; by calling Vector3.Normalize() and the other by normalizing from scratch: class Tester { static Vector3 NormalizeVector(Vector3 v) { float l = v.Length(); return new Vector3(v.X / l, v.Y / l, v.Z / l);...
{ "language": "en", "url": "https://stackoverflow.com/questions/323226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading byte stream returned from JavaEE server We have a JavaEE server and servlets providing data to mobile clients (first JavaME, now soon iPhone). The servlet writes out data using the following code: DataOutputStream dos = new DataOutputStream(out); dos.writeInt(someInt); dos.writeUTF(someString); ... and so...
{ "language": "en", "url": "https://stackoverflow.com/questions/323230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where to begin and how to participate in .NET community? I'm new to .NET and I would like to participate with .NET community to grow my skills (selfish, I know), contribute something (not so selfish) and I thought its just nice to be part of a community. I can start a blog but considering I'm a beginner I can't poss...
{ "language": "en", "url": "https://stackoverflow.com/questions/323235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I disable HTTP Methods for Tomcat 5.5.27 Please let me know how can I disable HTTP MEthods like OPTIONS, PUT, DELETE for the web server Apache Coyote HTTP 1.1 Connector (Tomcat 5.5.27) A: There is a similar question for Tomcat 6. I believe it is also applicable for Tomcat 5.5. Have also a look at this threa...
{ "language": "en", "url": "https://stackoverflow.com/questions/323241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disabling weak Ciphers for Tomcat 5.5.27? Please let me know how can I disable weak Ciphers for Tomcat 5.5.27 A: See the ciphers attribute in the HTTP connector definition: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html Alternatively if you're using APR, see the SSLCipherSuite directive as documented in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/323245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Processes and threads 1a)Are MS Word and MS PowerPoint different processes or threads of a single process? b)How does a spell checker routine (common to both, word and PowerPoint) used? I mean is the code copied 2 times for each of the processes in the main memory, * *if they are different processes *if they are...
{ "language": "en", "url": "https://stackoverflow.com/questions/323250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: How can I disable basic authentication on Tomcat 5.5.27 Please let me know how can I disable basic authentication on Tomcat 5.5.27 A: Authentication is there only if you configure it yourself. By default web applications do not use authentication. A: But if, as I suspect, you didn't put it there yourself, it would...
{ "language": "en", "url": "https://stackoverflow.com/questions/323252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I remove default banner of web server from response - Apache http1.1 coyote Please let me know how can I remove default banner of web server from response - Apache http1.1 coyote A: If you're talking about the generated line at the bottom of apache generated pages, you have to update your httpd.conf with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/323260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Standard web services v Secure web services I ask this question in anticipation as part of a project. I have experience of developing and consuming web services in the past and am au fait with those. However I have been told that as part of this next project I will need to use "secure" web services. Can you provide ...
{ "language": "en", "url": "https://stackoverflow.com/questions/323262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }