text
stringlengths
8
267k
meta
dict
Q: How to instantiate a generic list without knowing the type I created a method to organize a generic list without know the type, it will sort if its int or decimal. However the code that retrieves the values from textboxes uses List I tried to convert it to List, but it doesnt work. I want this code to work if they t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any parameters passed with multiviews? Given /group/14/ with multiviews enabled on group, I get a redirect to /group.php, but is 14 passed to PHP in any form besides the $_SERVER variables? Ideally, I could get this in a query string of some kind. I read parts of the Content Negotiation article on it, but I can't...
{ "language": "en", "url": "https://stackoverflow.com/questions/7570998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asp.net - trigger updatepanel on pressing the return key I have a page with an updatepanel which contains a small login form - it runs fine when the user clicks on the submit button, but if the user presses the return key after entering their password, it does not run. Here's the code... <asp:UpdatePanel ID="Upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Eclipse: Define multiple working sets all at once I have to define 10 working sets in Eclipse and repeat it over a couple of workspaces. * *Is there a way to define the 10 working sets all at once? Rather than trudging thro the select working set drop down ten times? *Is there a way to copy working set defs from...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiler doesn't complain when I ended a line with two semicolons. Why? I thought bad thing would happen when I ended a line like this. But compiler didn't even complain. Does anybody have an idea, why this is legal in java. displayDataMap.put("dateInterval", getDateInterval());; Edit: The reason Eclipse wasn't comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Latest technologies in java I'm have an experience of 2+ in java development. I worked on corejava,toplink(db framework),sql. I have knowledge on servlets,jsp and struts. I would like to move to another company. What are the latest emerging technologies in java?? A: A master is a master not because of his knowledge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571012", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: When to use enums? I'm currently reading about enums in C. I understand how they work, but can't figure out situations where they could be useful. Can you give me some simple examples where the usage of enums is appropriate? A: They're often used to group related values together: enum errorcode { EC_OK = 0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maven project worked before "clean install". Why? I have two maven projects and both are working fine independently. I am able to create a jar file and run it from console as well as from eclipse. I copied over some classes from the second project into the first and made a few changes so that it runs as a single pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Chrome swf issue with allow button Please take a look at the image am attaching, as you can note its not readable nor it is clickable am only facing this issue in google chrome an idea why is that happening ?!! * *Google Chrome 14.0.835.186 (Official Build 101821) m *OS Windows *WebKit 535.1 (bra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Broadcast Receiver for Sent SMS Is there a Broadcast Receiver in android to listen to the SMS sent event? In my application I want to count the number of SMS sent every predefined time interval. If its not possible to listen to sent sms, can anyone share code to count SMS and for specified time for example last 30 m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I count the days between two dates in javascript? Possible Duplicate: How to calculate the number of days between two dates using javascript I have those dates : 27/09/2011 29/10/2011 and I'd like to return the days between those dates (in the example, should be 33 days). How can I do it on javascript (o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to add a dynamic images in ViewFlipper ??? I am using this code. to access the particular folder in order to get a list of images and add it into a ViewFlipper. but i have problem with this, i can't add it into the ViewFlipper.So please if any one know how to resolve this problem, i will appreciate his help . S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mahout servlets per data model I am implementing the Mahout user-based recommendation engine where the recommendations will be served via RecommenderServlet running in Tomcat. So far looks like a basic setup, but it has some extra properties: * *Recommendations will be served from 100 different data models, depen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run a command on file system change in Visual Studio 2010? I use a tool for validating JavaScript syntax, called JavaScriptLint (javascriptlint.com). I'd like my Visual Studio to react to my save, CTRL-S and automatically trigger a command that runs javascript lint analyzing my current file. Currently I do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Actually this line of code `ptr=(char *)&a;` does? I have the code : #include<stdio.h> void main(){ int i; float a=5.2; char *ptr; ptr=(char *)&a; for(i=0;i<=3;i++) printf("%d ",*ptr++); } I got the output as 102 102 -90 64. I couldn't predict how it came, I get confused with this line ptr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java - Properties: Add new keys to properties file in run time? Is it possible to create a new properties file and add keys and values in run time? I want to add new keys to properties file depending on user input while installing my application. I checked out Java Properties class but it seem it can set values to e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Git - compare local and remote without fetching first? I've searched around and found no answer to this question. I have an app running on Heroku. From my local machine I typically implement and just: git add . git commit -m "whatever change, I know I can add and commit at the same time..." git push <the-heroku-rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: asp.net assembly redirection windows server 2008 Can anyone tell me where the Asp.net Assembly Configuration is so I can set the assembly bindings for the GAC on Server 2008? A: You can put the assembly redirect in the machine.config or web.config to have it apply globally. see c:\Windows\Microsoft.NET\Framework\v4...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trim node inside views I have a view (Drupal 7), filled with nodes. And I got a trimmer on 200 chars on the body. But as it happens, somethimes a word is cut in half. How do I get to trimm Drupal on words in stead of chars? A: Inside the Rewrite results field options and underneath the checkbox entitled Trim this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Realtime Socket.IO scaling problem - python I'm trying to do something like the stream on Facebook, with socket.io 0.6 and tornadio. Each user has is own comet channel/group in his wall. I'm sending a comet message to the wall of all my friends (even if they aren't online). The problem is about scaling: what if i ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SDL Moving my character I've a problem with my source code. basically, I tried to move a sprite character in 2D map here's my warrior class: class Warrior { private : int HP, SP; int xPos, yPos; int status; char *name; SDL_Surface *warri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create Stencil buffer with texture (Image) in OpenGL-ES 2.0 Can I have Stencil prepared with a texture (Image) in OpenGL 2.0 So that some part of the Image will be transparent and as a result it will be transfered as is to Stencil buffer and then will use this use this stencil buffer for further drawing. EDI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What cms/ecommerce cart is store.barackobama.com run on? What shopping cart / ecommerce cms does http://store.barackobama.com use? I'm curious as to see what shopping cart his team uses. P.S. I'm not trying to advocate any affiliation or allegiance; as i feel political opinions are off topic. A: http://store.barack...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: The AlertDialog is invisible when the Activity back to foreground This question is related to The AlertDialog is invisible when the Activity back to foreground post. I have the same problem. The previous post is old, and have no answer. Any suggestions how to solve that problem ? Thanks... A: For some reas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: VisualStudio Multi Item Reports with multiple repeated subreports I am working on a C# project in VisualStudio 2010 and am trying to generate a more than simple report with multiple datasources (lists of business objects). I'm not using crystal reports. I have an inventory of items with data about sales for each it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS border radius will contain inner elements unless position is added I have noticed a problem with CSS3 rounded corners. They contain inner elements perfectly but when the container has a position:relative applied to it they no longer contain elements. I have set up 2 fiddles to explain. This has the container set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .htaccess issue, existing .php files and search.php I'm new to playing with .htaccess for nicely formatted urls and I'm just not sure I'm doing it right. My current .htaccess file looks like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^search/(.*) search...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Div won't fill size of parent container I have a problem in which I am making a website which will have a main content section and a "Updates" bar on the right side. Here is the link. http://bebiafricanhairbraiding.com/ You should be able to get the code from the website itself but if you need the code I can post it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MySQL JOIN based on dynamic LIKE statement between multiple tables I have a table called faq. This table consists from fields faq_id,faq_subject. I have another table called article which consists of article_id,ticket_id,a_body and which stores articles in a specific ticket. Naturally there is also a table "ticket" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IOS: random paging scrollview I have this code for a scrollView (with paging enabled) - (IBAction) random{ CGRect frame = scrollView.frame; frame.origin.x = frame.size.width * (arc4random() % (numberOfPage - 1)); frame.origin.y = 0; [scrollView scrollRectToVisible:frame animated:YES];} It make a random paging scrol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to combine flags using RewriteCond? I am using ISAPI-Rewrite on IIS7. How can we combine [NC] and [OR] in a RewriteCond ? [NC,OR] ? What is the simple way to match domains with and without "www." ? Here is a draft : RewriteCond %{HTTP_HOST} ^old-one.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.old-one.com$ [NC,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Count messages in an msmq sub-queue Is there any way (C# or native) of counting the messages in a message queue (sub queue). Using a queue name of "DIRECT=OS:slc11555001\private$\file-queue;retry" I want to know how many messages are in the sub queue. At the moment I can see using the management console that there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how this code work ?? and what is the right code This is my current code that doesn't seem to work correctly. echo date("h:i", 1*60*60) ; /* 1*60*60 mean 1 hours right */ The result is 03:00 when it should be 01:00. Where is this going wrong? i want to do this 1- employee come in time admin select it 2- empl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building Sphinx Autodoc on a Google App Engine project I have a Google App Engine project that I am trying to document with Sphinx. I am trying to use the autodoc feature for many of my modules/classes/functions. My Sphinx reST markup: .. automodule:: urls :members: Urls When I run make html, I get the error: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery :contains(), but to match an exact string As said in the title, I'd like to find something like :contains() but to match an exact string. In other words, it shouldn't be a partial match. For example in this case: <div id="id"> <p>John</p> <p>Johny</p> </div> $("#id:contains('John')") will match both Jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Procedure execute inside SQL Developer, but not inside a script I had a procedure that was not working. If I tried to run: "BEGIN proc_name; END;" in SQL Developer or via script I had the same error. I've fixed the procedure and now when I run that same command in SQL Developer, it's fine, but the script returns an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: linux linker/loader search order This question is related to the way libraries are looked up during compilation and dynamic linking. Consider this small project: * *project * *liba * *a.hpp *a.cpp *libb * *b.hpp *b.cpp *main.cpp a.hpp: int AAA(); a.cpp: #include <b.hpp> int AAA() { return BBB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can you get a pointer to a {System.Array} that is inside a System::Object^? Ok so I have this program that accepts files the user drags and drops onto a label box. The program is currently able to accept files that are dropped. I then save the files into a System::Object^. Inside the System::Object^ is a {System....
{ "language": "en", "url": "https://stackoverflow.com/questions/7571142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ibatis / mybatis caching within a restful webservice I am using mybatis within a Jax-RS (Jersey) restful web app. So automatically, I dont have a session or state management. Question is how can I use the caching features of mybatis ? A: Caching in MyBatis is very straight forward. Per the documentation (pg 42 of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Contact Picker People.Name,People.Number Error? I want to get number from contacts in my project. I use this code http://www.androidsnippets.com/select-a-contact-from-the-from-address-book-using-people-provider-and-uri What is People.Number or People.Name? Android doesnt accept it? THX for advice. A: Now instead o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I evaluate performances of a lockless queue? I have implemented a lockless queue using the hazard pointer methodology explained in http://www.research.ibm.com/people/m/michael/ieeetpds-2004.pdf using GCC CAS instructions for the implementation and pthread local storage for thread local structures. I'm now tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Yet another routing error in Rails3.1 when I tried to nest the resource This is my error: No route matches {:controller=>"accounts", :format=>nil} and this is the url: users/1/accounts/new this is code in the routes.rb file: resources :users do resources :accounts end OK, now I'm still confused about associatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert 'a list to a Set? Is it really true that OCaml doesn't have a function which converts from a list to a set? If that is the case, is it possible to make a generic function list_to_set? I've tried to make a polymorphic set without luck. A: If you don't mind a very crude approach, you can use the polymorphic h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Custom MBean in Tomcat - cannot find javaURLContextFactory when creating InitialContext I've written a custom MBean that deploys in Tomcat 6. One of its tasks is to query a database value. I'm doing this by loading up the database resource using JNDI - the resource is defined in Tomcat's server.xml. The problem is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: OAuth with DotNetOpenAuth? Ok here is my question. I understand the process of the OAuth protocol, however I have some confusion around it. I'm trying to take advantage of DotNetOpenAuth.Here is where I don't get things. Suppose a user (a new user), attempts to login to my website using Twitter. The process goes lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why do I need to set up the aspNetCompatibilityEnabled twice? Could anyone please explain why when creating a WCF webservice in which you want to use HttpContext.Current.Items you need to add some code in 2 places? One in the webservice itself ([AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS Access to ASP.NET MVC 3 via SharePoint: using Linq to SharePoint I am trying to see if you can use Microsoft Access Services, as available in Access 2010, to synchronise data between an MVC web app, and a Microsoft Access desktop solution. If you publish the Access app backend via Access Services to a sharepoint....
{ "language": "en", "url": "https://stackoverflow.com/questions/7571163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Format currency in a language, regardless of country I want to format an amount of money (in Euros) in the user's language in Java, regardless of the country the user is in: final NumberFormat currencyFormat = NumberFormat.getCurrencyInstance(loc); currencyFormat.setCurrency(EUR); currencyFormat.format(new BigDecima...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: InvalidKeyException: Cannot decrypt OpenJDK/JRE-encrypted string with Sun JRE I encrypted and stored some data to a db using the OpenJDK JRE and also successfully decrypted with OpenJDK when retrieving back from db. Today I replaced the OpenJDK JRE with Sun's JRE and now I get the following exception when I try to d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Attaching popup to bottom of a div I am trying to have a clickable div so that when its clicked it appends to the bottom of the div that is clicked. I have it so when i click it appears where the mouse is but i want it to be right below the div that is clicked and is right up against the bottom border. I tried usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should i go for the EF 4.2 update through nuget or a standalone installer? I would also like to know how the GAC works when i am using a standalone installer ? Will it override my existing assembly int the project ? if i have the express edition vs 2010 which does not have nuget ,how do i best make use of these pac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get label value from dynamically created menu items [tkinter] I have a cascade menu in a parent menu. The cascade items are created dynamically with add_checkbutton method. A user should be able to "check" menu items and select/confirm them. However, I don't know how to access text in the menu items, to decide which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: problems using GridView with soft keyboard My program's main panel is a GridView .But when I touch an item of it and type in some words by soft keyboard,every item of the GridView changes its position.Then exit the program ,it amazes me that the items is just fine when I launch the program again , Any suggestion...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does Eclipse opens http://localhost:8080/de.vogella.jersey.first/WEB-INF/web.xml I followed the following tutorial (although I installed Glassfish Open Source Edition, instead of Tomcat, and using Eclipse Indigo) : http://www.vogella.de/articles/REST/article.html. The webservice is ok, but when I "Run" the proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Website Product Specification Narrow Down URL List I am looking for a simpler or elegant solution in object oriented (C#) or functional (F#) programming language to solve the following problem. Given many thousands of products with specifications on an eCommerce website, consider the permutations of specification na...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Expression Trees as an argument constraint Can I use an Expression Tree as an argument constraint in a FakeIteasy CallTo assertion? Given a method on an interface with the following signature: interface IRepository<TEntity> { TEntity Single(Expression<Func<TEntity, bool>> predicate); Being called in code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Model with none MVC application I'm trying to use a Model with my Asp.net page. But im not using MVC. I get an error when trying to inherit the model from a customcontrol. The error is ViewModel: interface name expected. public partial class CustomControl : UserControl, ViewModel A: You cant do multiple ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I access web.config from my Azure web role entry point? I have an Azure web role and I want to store some settings in web.config under <appSettings> tag. Yes, I'm aware of service configuration files, yet I have reasons to prefer web.config. When I execute (from here): System.Configuration.Configuration rootWebC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Memory SPIKE - Boost ASIO ASYNC read Wrote a Server which just reads data from a client: Using a boost::array buffer Started the server and system monitor shows 1MB of usage. 1.) Just do an async_read_some and do a handleRead in which I again call the asyncRead function. void asyncRead() { m_socket->async_read_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can XML/XSLT substring-before take more than one match-string as a second argument? XML/XSLT Newb question. I apologise for this. I got handed a chunk of code and asked to 'have a look at this', and I'm not particularly familiar with XSLT :( I've got an .xsl file that transforms a chunk of story text, and plucks out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regexp matching except I'm trying to match some paths, but not others via regexp. I want to match anything that starts with "/profile/" that is NOT one of the following: * */profile/attributes */profile/essays */profile/edit Here is the regex I'm trying to use that doesn't seem to be working: ^/profile/(?!at...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to create vertical cyclic image views in android...? I want a view, where 5 images scroll vertically and repeatedly (loop). How to achieve this in android..? I tried Gallery view but it will not support vertical view. I tried transition animation, it shows vertical but not in a loop. I tried dynamically adding v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Divs Floated "Cards" in Wrap I have this basic scenario setup where I am trying to float divs inside of a wrap. It is working nicely, however the simple effect I am trying to achieve isn't cooperating when the divs have variable heights. I have researched this a bunch tried to apply a clearfix to the 3rd card ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Images working/showing in my new Rails app Update: o.k. this is strange, in the brower, i can access the images at localhost:3000/assets/images/rails.png but when I put that path in the seeds.rb file and then load the page, it shows that it's trying to find the image in /assets/rails.png i.e. it's skipping over the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sunspot Solr in production I have need to deploy my app to production now that uses sunspot for search. I see some sources saying not to run the sunspot solr instance in production but to setup on tomcat, but others have said you can run sunspot in production ? Please can anyone tell me which is best to use in produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: FormsAuthentication working in every browser except for IE This certainly is a strange one... I have an ASP.net 4.0, C# website that has a login page using FormsAuthentication to handle user access. There's also code throughout the site that boots the user back to the login page whenever a session times out or some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a way to create Eclipse plugins with Python? As far as I understand Eclipse doesn't provide user with python bindings by default. Nor any projects of such kind was I able to find with google. Are there any third-party plugins for that? Any tutorial? May be with Jython?.. A: As far as I know, you need to us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: ClickOnce connection string encryption I'm working on my first real WinForms application, and my boss has asked that I figure out a way to encrypt the connection string inside the app.config. I've read some of the suggestions in other questions about connection string encryption, and I recognize that it isn't a silv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to use FormsAuthentication to connect to SharePoint Lists service to fetch all the Lists I have a sharepoint server which uses Forms Authentication. Now i want to connect to that server to fetch all the List via Lists Webservice. i am able to connect to the SharePoint server which uses Windows Authentication, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "dynamic constructor" in c++ i am new to classes in C++ and i need to create a class "Plot" which has a method that reads in data from a file and creates a 3d grid. i understand that you can make "default" constructors with default values or you can create a special constructor with predefined values. in my "private...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Eclipse gdb expression: what is shown in "default"? Stepping through C code in gdb using Eclipse, I noticed that for a variable char* sval gdb prints (in Expressions tab): * *Expression: sval *Type: char* *Value: 0x7fffd9d79840 "BIDPRICE" However I know that the value should be something different (say, "BIDZ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unique constraint violation during insert: why? (Oracle) I'm trying to create a new row in a table. There are two constraints on the table -- one is on the key field (DB_ID), the other constrains a value to be one of several the the field ENV. When I do an insert, I do not include the key field as one of the field...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Remote profilling java application I'd like to ask how I can profile REMOTELY a java application. For debugging I can say which port the JVM must listen etc since the machine I'm trying to access is behind an ssh gateway so I manually create an SSH tunnel but I've been googling about the same thing but when profilin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using awk/sed to parse out multiple strings from a MySQL error I have a bash script that needs to identify some important sub-strings within a MySQL error generated from a SHOW SLAVE STATUS\G command run from the terminal. In particular, the line starting with Last_Error: ... is of significant importance. As as ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Final keyword in method signatures Possible Duplicate: Final arguments in interface methods - what’s the point? While trying to experiment a few things, I've ran into a problem that it's described in this page. interface B { public int something(final int a); } abstract class C { public int other(final i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Create clickable URL in PHP Trying to create a clickable URL in PHP. If you visit www.wheels4rent.net/test00.html and input location and date clicking the 'quote' will take you to the list_car5.php page. At right of this page is a 'book now' button that does not work and the text hyperlink below this. problem is whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to call a web service with a configurable URL I wrote a web-service. I wrote a website. I want the website BLL code to call the web-service. I have a config table with this service URL. I inject the web-service URL to the calling code. What web client or socket in C# should I use that can receive a dynamic web-s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get drupal webform module submitted value programmatically? I want to get the Webform submitted value using Webform module API. How can I do that? A: I've got these link regarding webform hooks Working with the Webform API (version 3.x only) that contain these links http://drupalcode.org/project/webform.git/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Count number of operators in an expression - Cannot infer instance I'm working on a function that can count the number of operators used in an expression. My code is as follows: data Expr = Lit Int | Expr :+: Expr | Expr :-: Expr size :: Expr -> Int size (Lit n) = 0 size (e1 :+: e2) = 1 + (size e1) + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need to exclude a dependency from eclipse using a gradle build file I'm trying to exclude a dependency, mainly "slf4j-simple" from my gradle build. It works well, but is not reflected when I run "gradle eclipse". I have the following code in my gradle build file: apply plugin:'war' apply plugin:'eclipse' apply plugi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Javascript SHIFT and POP on Associative Array Using a regular array I am able to grab the image src from an array using shift() and pop(); I would like to do the same thing using an associative array to add a name and id. Single Array var products = ['product1.jpg']; $('#products').append('<img src="' + products.shi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I define string constants in C++? Possible Duplicate: C++ static constant string (class member) static const C++ class member initialized gives a duplicate symbol error when linking My experience with C++ pre-dated the addition of the string class, so I'm starting over in some ways. I'm defining my header ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: JMockit NullPointerException on Exceptions block? Having already spent a lot of time on this test and unable to reason my way out of it, i have no other choice than ask for your help :) Using JMockit to test some of my own JDBC "Wrapper" classes, i came to a dead end. This is the class im testing: public class JdbcC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Looking for tools on Sexp expressions in Ruby I am a recent fan of s-exp expressions in Ruby. I discovered Sexpistol parser for instance. Are you using other dedicated tools around them (schemas etc ) ? A: You might check out Lispy: https://github.com/ryan-allen/lispy It's no quite s-expressions, but similar in co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Move value from local stack to heap? (C++) How can I take an object-as-value result from a method call and place it on the heap? For instance: The Qt QImage::scaledToWidth method returns a copy of the QImage object. Right now I'm doing: QImage *new_img_on_heap = new QImage(old_imgage_on_heap->scaledToWidth(2000))...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Binding to instance of ItemsSource I have a ListBox on a WPF User Control that is defined as <ListBox Grid.Row="1" ScrollViewer.CanContentScroll="False" Background="#00000000" BorderThickness="0" ItemsSource="{Binding BuyItNowOptions}" ItemTemplate="{DynamicResource BuyItNo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set the DataContext of a ViewModel in MVVMLight I've got a question of the MVVM-Pattern. So I'm not sure, that I've had understand it completely. My scenario: * *ViewModelLocator : Provide the requested ViewModel to a specified view. *LoginViewModel: ViewModel for the LoginView *MainPageViewModel: ViewModel for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: This cobol Grammar doesn't handle --9 picture I'm using the grammar on this site in my javacc. It works fine apart from some picture statements. For example ----,---,---.99 or --9. http://mapage.noos.fr/~bpinon/cobol.jj It doesn't seem to like more than one dash. What do I need to change in this to support my pic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to align a div bottom of a dynamic div I have a div called content which comes as an ajax content. so how to align a div called footer after the ajax content has loaded using jquery? A: Use absolute positioning. Set the bottom: property instead of top: A: Have you parent div be position: relative and the child...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Specifying system properties in Grails 2.0 interactive mode Is there a way how to specify system property in (already started) grails interactive mode ? For example I would specify environment in command line: grails -Dgrails.env=staging run-app but in interactive mode it is not possible this way (since JVM is alre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the fundamental difference between those two constructs? Possible Duplicate: Difference between method and function in Scala scala> val x1 : (Int) => Int = (x) => x + 1 x1: (Int) => Int = <function> scala> def x2 (x : Int) = x + 1 x2: (Int)Int scala> x1(1) res0: Int = 2 scala> x2(1) res1: Int = 2 What'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Using Cubeset To Create Top 10 Items List For a Specified Time Period I am using Excel 2010 to create a list of the top 10 vendors by sales during a specified time period. The catch is that I need to consider only customers that are a member of a particular set. I found this article which has helped me get the Top 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: mysql not in issue I have a select statement that I am trying to build a list of scripts as long as the users role is not in the scripts.sans_role_priority field. This works great if there is only one entry into the field but once I add more than one the whole function quits working. I am sure I am overlooking som...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Error using UTL_MAIL in a SQL procedure I am attempting to send an email using a sql procedure, and am getting some errors. Here is my relevant code: IF cur_email%FOUND THEN stu_email := schema.get_person_email_adr(v_id); IF send_email = 'Y' THEN UTL_MAIL.SEND (sender => v_email_from, -- line of error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does dividing two int not yield the right value when assigned to double? How come that in the following snippet int a = 7; int b = 3; double c = 0; c = a / b; c ends up having the value 2, rather than 2.3333, as one would expect. If a and b are doubles, the answer does turn to 2.333. But surely because c alrea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "136" }
Q: How do you decouple a web service that requires an authheader on every call? I have a service reference to a .NET 2.0 web service. I have a reference to this service in my repository and I want to move to Ninject. I've been using DI for some time now, but haven't tried it with a web service like this. So, in my cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: getting out of memory error I am trying to load a 12mb txt file into memory as a HashMap to make it available for the application to use it but I am getting an OutOfMemoryError 09-27 15:42:17.560: ERROR/AndroidRuntime(19030): ... 11 more 09-27 15:42:17.560: ERROR/AndroidRuntime(19030): Caused by: java.lang.OutOf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to track down the actual code that causes this memory leak, in Xcode? I am having a dickens of a time trying to find the code that causes the memory leak you see in this image: In Xcode, how to you go from this information in Instruments to finding the actual code? When I run Analyze, I do not get any warnings ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to compare two objects in generic implementation? I have a generic class which will be Long, Float, Integer and String types. In the cases of Number (Long, Float and Integer), I want to compare two of them to see which one is bigger or smaller. Is it possible? A: Its possible with a moderately complex Comparato...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing hostname in Shindig's container I'm using Shindig 2.0 with its default container. When the container renders the gadget, it calls the servlet: /gadgets/ifr?url=http://iltlvl094:8080/sample-gadget/spec.xml&libs=rpc&parent=http://iltlvl094&debug=1&#rpctoken=54612318 This servlet returns HTML code that imports...
{ "language": "en", "url": "https://stackoverflow.com/questions/7571338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }