text
stringlengths
8
267k
meta
dict
Q: displaying django form error messages instead of just the field name I have a form and I want to display the errors in a for loop. {% for error in form.errors %} <tr><td>{{ error }}</td></tr> {% endfor %} By doing this the {{ error }} only contains the field name that has an error, but not the error message. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Parsing JSON for GOOGLE API Returning Images iPhone SDK Just wondering if I am doing this correctly, It seems a lot of code for something so simple... Passing the google json request with my key to this function using ASIHTTPREQUEST NSString *url4Google = [[NSString alloc] initWithFormat:@"https://www.google...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSF Streaming PDF on iOS devices I have a JSF page that uses a backing bean to stream a PDF document to the browser. This functionality works great and I haven't had any problems with it until now when testing this functionality on iOS devices. On Safari on both an iPad and iPod Touch, the PDF stream ends up just b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Embedding chaco in GTK Embedding Chaco into Qt and Wx seems to be no problem. Does anyone have an example or an idea how to embed Chaco into GTK? A: I use python with matplotlib. To have a graphic inserted in the GUI, I need a "backend" : http://matplotlib.sourceforge.net/faq/installing_faq.html#backends Code snipp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Django planmember_set issue I have a question that I hope someone can help me with. I'm using a form to have the user select a "plan". Now I want to list all the members in the plan, in the form. I have a function 'get_owners' that grabs all the members in the plan, by using this function: def get_owners(self): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WP7 - Detect 'Click' event on a MapPolygon I am developing an app for windows phone 7. I have an overlay on the standard Map object that contains several MapPolygon objects. What is the best and/or simplest solution for knowing if the user has tapped one of the polygons? A: Using the Silverlight Toolkit is probably...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google gauges in python (reportlab) I am currently writing a program that will automatically generate PDF files using reportlab (a python module). I would like to know if it would be possible to put google gauges in but not as an image, instead as a request sent to google which outputs the correct gauges based on in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extracting -Strings from a ByteBuffer - I'm getting all confused I've been sitting with this problem for some hours now without getting it to work the way I want it to work. I'm creating a server which reads data from a telnet client. The server uses java.nio (ServerSocketChannel) and reads into a ByteBuffer. After ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange behavior with the method getUploadedBlobs I've a problem with the methode blobstoreService.getUploadedBlobs(). I've a JSP page in wich one I set an uploader like this : <formname='form' action='<%= blobstoreService.createUploadUrl("/Edit_Engine") %>' method='POST' enctype='multipart/form-data' > <input lab...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create adsense ads using only the users account id? I have a website with articles and I want to share the adsense revenue of the articles with the article writers (in percentage of 90%). Iwe created a PHP code that rotates the ads, but I have a problem. Iwe discovered that It`s not enough the account ID, i n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Precedence of post and pre incrementation operators There is code: #include <iostream> class Int { public: Int() : x(0) {} Int(int x_) : x(x_) {} Int& operator=(const Int& b) { std::cout << "= from " << x << " = " << b.x << std::endl; x = b.x; } Int& operator+=(const Int& b) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calling static methods from Spring Security Expressions? I'm looking for a way to extend Spring Security Expressions to support an existing security infrastructure. I'm aware you can extend the MethodSecurityExpressionRoot as described here, but I also found reference to directly calling static methods through Spri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: Android: How to pass data from android native code to jquerymobile My android app is getting session id as part of login service response, for the subsequent requests i have to pass this sess id. Now I'm using jquerymobile pages as webview content. I have to call some services from jquerymobile page using ajax. Can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the loading order for fixtures files in Symfony 1.4 In my current project, I have multiple fixtures files. I would like to assign each files with data related to my tests. ie: * *Articles has one Author *Articles has many tags Fixtures: test/fixtures/commonAuthor.yml # Contains Common authors, with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pulling unique values from an array of custom objects i have an array list of custom objects. each object contains a value i need to pull out, claimNO, but is not a unique value, meaning say 5 objects may have the same claimNO. what i need to do is make an array that only has unique claimNO's. i need to display thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: protobuf-net's [ProtoInclude(1, "MyClass")] did not work I am using protobuf-net v2 beta r431 for C# .net 4.0 application. In my application I have a Dictionary<int, IMyClass> which i need to serialize. A class MyClass implements IMyClass interface. As per protobuf's documentations I wrote the code as under: [ProtoC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Automatically call class method in objective c my situation: * *a dashboard controller who register the widgets inside it and automatically builds the view. *widget classes that are going to populate the dashboard, who adopt <widget> protocol(some informal methods required), and need to be registered in the dash...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: youtube videos on iphone phonegap app I'm sorry to come back to this topic again, but i'm really frustrated!! I've read every resource i've found, googling around the web, but i couldn't come up with a definitive answer to my problem. Problem description I'm creating an iphone app with phonegap 1.0. In this app, on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: General Android semi transparent bug I use anti aliasing to make my images more smooth. When using anti aliasing a dark border will be drawn around the images. This happens because Android uses the color black and mixes it with the yellow from the images. This is a gernal problem! When I draw a rectangle and set th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: "simple" PHP script to display progress upload using no modules, no package, no flash I am trying to make a 'simple" php+ajax script to show progress of multiple uploaded files. I have found on this website and on other pages, packages ready to use, etc.... I want to start from scratch for several reasons, and one o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why does LLVM complain about missing function prototypes? LLVM 2.1 has an option that enables warnings for "missing function prototypes." When enabled, the warning will complain about a file like this: double square( double d ) { return d*d; } void main() { // ... } The function "square" will trigger a warn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spring MVC and Encryption at Rest Sorry for the newbie question, I'm trying to use the Spring MVC framework to upload files. I am trying to maintain encryption at rest, however the MultipartFile states that the uploaded file may be stored on disk during the upload(1). I do not encrypt the file until after the uploa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Installing Ext JS 4 - Where to put files? Hi to all from Córdoba !. My question would be the following one... How to configure my Ext JS 4 files so as to start working ?. Coz although I manage to show a window, the close button when I put: "closable: true" doesn't appear or for instance when I put "frame:true" the w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Validation of DropDownListFor element in MVC3 I use jQuery Unobrtusive Validation with MVC3 to validate a DropDownListFor form element, but it doesn't work. It validates very well if I modify DropDownListFor to TextBoxFor - and it also validates the other fields of the form. I have multiple DropDownListFor elements,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UserControl ContentProperty, Content objects are null I created a custom silverlight UserControl. I need to be able to set its content through a "Child" property. So I used the "[ContentProperty("Child")]" class attribute : [ContentProperty("Child")] public partial class SizeableCheckBox : UserControl { publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get in one query an item and another item having one of its value nearest of the former one? Imagine I have the following table : ID || Order ----------- 1 || 1 2 || 2 3 || 5 4 || 20 5 || 100 6 || 4000 (no specific rule applies to the order value). I want to "move up" ou "move down" items by swapping o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AnimationDrawable frame duration problems i need to create an animation frame by frame but i have some problems I have 30 png images that compose my animation, i load my AnimationDrawable with this code: mCurrentAnimation = new AnimationDrawable(); mCurrentAnimation.setOneShot(true); int resI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: image saving from a URL problem I am trying to download an image from URL: http://appworld.blackberry.com/webstore/servedimages/340582.png?t=2 I am using HttpWebRequest webRespose Stream BinaryReader FileStream BinaryWriter this works for other websites and images but the url I gave on the above gives me an empty 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Plot n GPS coordinates on the screen with respect to each other and not *NOT* to any map Suppose I am on location M(latitude, longitude), and I have 3 More GPS coordinates A(lat, lon) ,B (lat, lon), and C(lat, lon) which are in range of 500 meters radius around M. NOTE: I want to plot them on screen with respect to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ Operator Problem I don't know if this question is already answered on stackoverflow. But I simply can not find the right keyword to search for. I inserted some stripped down version of my code below. So basically what I'm trying to do in my main(), is to subtract 122 from t2. I suppose my compiler converts the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What is the format of the deltas in a subversion respository, and how badly can I blow it up if I change them in a pre-commit hook? Help me do some damage! I'm tired of just a half-dozen Google hits that tell me never to do this. Let's muck things up real good! I'm pretty sure that I can get ahold of the actual file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Will clearing an already empty vector lead to undefined behavior? What happens if I clear a vector which was already cleared before? I tried it out in Visual Studio and it did not lead to any run-time errors. But I'm hunting for a possible cause to an exception (below) And wanted to know if this could be the reaso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there any way how to use Java window and input with Ogre3D and c++? I'm not very familiar with wrapping between Java and C++. But i need to wrap Java window input to c++ and get window context, that i assign to ogre. I know it's possible, because Ogre4J uses something similar. "Use Ogre4j" isn't answer. A: I nev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List of useful environment settings in Java I've been wondering a long time if there was a comprehensive list of (probably static) methods/fields that store runtime information for the JVM. An incomplete list of examples: * *System.out / System.in *System.currentTimeMillis() *System.getProperty() *System.getCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Add data to sharepoint form programmatically on client I have a need to edit a Sharepoint form programmatically to update a text box on a form. The url of this form is https://sharepointserver/NameOfList/DispForm.aspx?ID=141. Using the sharepoint web services how can I add data to a field called "Description" on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use Aspectj to find List of classes implementing a certain interface Is it possible using AspectJ to find a list of all Classes which implement a certain interface. For e.g I have an interface MatchRule. Then I can have classes DefaultMatchRule and CustomMatchRule concrete clases which implement MatchRule interface....
{ "language": "en", "url": "https://stackoverflow.com/questions/7585707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery Mobile URLs are not updated I am using jquery mobile and am finding the when i redirect users to new forms the urls are not updated correctly. I recognize that there is some ajax operations going on however, the ulrs are still not being updated when i disable ajax form submits and/or links. The following js ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can we know how many albums there are in the iphone's camera library? I have a small question. We want the user to the able to choose an image from his device's library. If he has more albums apart from the camera roll, we use UIImagePickerControllerSourceTypePhotoLibrary, so he could browse all the albums. The prob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does "multiple scopes" mean in when talking about MEF (Managed Extensibility Framework) and .NET 4.5? In What's new in .NET 4.5 microsoft says that MEF will now support "multiple scopes". What does this mean? I can't find documentation on that anywhere. A: I belive you question is anwered fully in this blog: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android smoothScrollTo not invoking onScrollStateChanged I am using smoothScrollBy() to scroll to a specific position in a ListView. I would like to be notified when the ListView is done scrolling to integrate it with the current onScrollStateChanged() event that is fired off when the user scrolls with their finger....
{ "language": "en", "url": "https://stackoverflow.com/questions/7585718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Namespace value not being set when GAE app invoked from Google Apps I have integrated the app with google apps marketplace. When the app is invoked from drop down "more" link on google apps(universal navigation bar), i expect the apps namespace key to be automatically set to the domain value but it's not happening. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating an Icon with a Tranparent Background I'm using ImageIcons that I downloaded from a free icon site in my JButtons. Two of them have white backgrounds, and the other one has a black background. I would prefer not to have a background color clash, so I want to make all the backgrounds transparent. I've seen wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: I need to modify a table structure and need to find specific columns in database I need to modify a database and need to find all the tables that contain the column name of 'sysnames'. I also need to search for views and stored procedures that also contain 'sysnames' in their statements so I can update them accord...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: f:convertDateTime not being strict in pattern match? I have a f:convertDateTime with a pattern of mm/dd/yyyy. However, people are able to enter 2/19/78 and it would be 0078 rather then 1978 or 2078. I want to force people to enter in all 4 digits. I tried using a regexPattern validator, but that is complaining beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RenderControl method not rendering self-closing tags Having a strange problem with the RenderControl method. I have UserControl (an ASCX file) with this mark-up: <ul> <asp:Repeater ID="rptImages" runat="server"> <ItemTemplate> <li> <a href="<%# ((Image)Container.DataItem).Url %>"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to make the MapView a button (iPhone/iPad)? I currently have a map view in my app that is locked so that the user can't interact with it (i.e. scroll, zoom etc.), however I want to make it into a UIButton. The idea being the the can press the map view and it will call a function, the same way pressing a UIButton...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What Kind Of Macro Is this? I came across this following code: #include<stdio.h> #define d(x) x(#x[3]) int main(){ d(putchar); } Which prints c as the output. I wonder what does the macro #define d(x) x(#x[3]) does? In C language is there an operator like #? I can see this inside the macro body i.e here x(#x[3]). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Defining spring security http element in two different files? Is it possible to define the security:intercept-url elements and security:custom-filter elements for a single security:http in two different Spring configuration files? This is so we can cleanly reuse the security:custom-filter definitions which will be c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to pass a parameter of type pointer to PVOID from LabView to DLL? I'm calling a DLL written in C++ from LabView. The function prototype is: ULONG DAQ_Open(PVOID *pHandle); How can I pass the correct parameter from LabView? Is it just impossible to pass parameters of type pointer to pointer from LabView to DLL?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Date (Calendar) calculating the start of a day in local time given a date time All, Having a hard day in the office with this one... I am trying to workout the start of a day in Local Time, i.e. Midnight 00:00:00, given any calendar date. Given the following days, I want to calculate the start of the day at lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to create a standalone Windows Silverlight Embedded Application for CE 6.0 R3? We are investigating using Silverlight as our UI creator. We can get a subproject running from the Platform builder but would like to pull this code to a standalone VS project. I have an SDK built from Platform builder wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CGRectApplyAffineTransform then CGAffineTransformInvert doesn't return to original position This does not seem possible and I'm sure there's a simple solution but I cannot work it out. My High School matrix math is a bit rusty :) I'm building a CGAffineTransform to do translation-rotation-translation of a CGRect an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Rendering UIWebView as Image/PDF Has Visual Artifacts I'm rendering a UIWebView's layer into a graphics context and then using the UIGraphicsBeginPDFPageWithInfo() family of functions to include it in a PDF. My problem is that the output includes an extra set of gray lines that aren't part of my data set. I'm hoping...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jasper report pdf name problem I am creating pdf report in spring mvc 3 using dynamic jasper report. I am setting these headers before writting report to stream. response.setHeader("Content-Disposition", "inline; filename=" + fileName); response.setContentType("application/pdf"); Report is generated and display cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing JSON feed with Ruby on Rails I know this has been covered over and over but I just can't understand how to get started. Am too much of a JSON virgin to know what's going on. I'm trying to get some data from a json feed on a remote server into a rails3 application. I understand I need the json gem but I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which is the equivalent of the StringToColor function for a TAlphaColor? I'm looking for the equivalent to the Graphics.StringToColor function to convert a string to an TAlphaColor (Color type used by Firemonkey). I searched in the online Rad Studio help as well as in the related firemokey units without luck :(. I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Delphi XE - SendText through ServerSocket returns Chinese or vietnamese characters on the other end I wrote a simple file transfer program that runs on Windows 7. I run this program as a server on one computer and client on the other. Client sends out a request for a file transfer and then server sends out the name ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Role Playing Game program: calling input variables from another class I have been searching for a solution for this for hours and I'm stumped. I'm very new to Java, but I am currently programming a very easy role playing game engine. In this game, the user is to type in the level of his stats. My question is: how ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why Form_Load event already catches all the Exceptions? Ive put my initialization code at form load, since it is not a good idea to leave it at the constructor because the designer can crash. The problem is that Ive just realized that any exception inside the form load event will be catch internally! Why? How should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Greendroid import Im trying to use the Greendroid library inside eclipse. In the moment i import it as a library the project brakes. The generated R file disappears and my application cant compile (Due to this behavior). I import the Greendroid framework as a normal android project. When using Greendroid my applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is there an easy free way to create test case management in Jira I think the only part I dont get is how you handle the run results. So if I set up a new project in Jira for test cases how would I make it so I can run mark a test case as pass or fail but not close out the jira. So I basically want the original jira...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PowerDesigner - vbs script to run other scripts I have a few PowerDesigner 15 vbs scripts that perform various cleansing/transformation tasks on physical data models. I'd like to be able to run all of them at once rather than one at a time (there are 10 scripts now, possibly more in the future). Also, I'd like to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to mix applicative functors and arrows i read on Andrew Birkett’s blog Applicative arrows for XML &&& return to pure that we could mix arrows and applicative functors. I tried it by my own but i don't have what i expect. i would like this result: [Scenario {scenario = "11111", origin = "333", alarm = "Sonde1"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JPQL and clausole IN, not found i have the following situation: In the dao class: ... Query q = em.createNamedQuery("myQuery"); q.setParameter("attr", "value"); List<MyObj> listMyObj = q.getResultList(); ... In my file orm.xlm, i defined this query: <named-query name="myQuery"> <query><![CDATA[ select m f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Executing Javascript in background using Phonegap I've created an application that will need to fire Javascript events every "X" minutes. I'm using phone gap build to deploy on Android/iPhone/Blackberry, but I'm of course stuck, as the Javascript timer doesn't fire in the background (when they minimize the app). I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Trying to center my web page Possible Duplicate: page will not align center I'm trying to center my web page using asp.net. When I use the <center> tag it only centers the content placeholder. But when I use the CSS attribute margin: 0 auto, it doesn't do anything. Is there a way to center the whole page? A: In...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an OR combinator in jQuery/Sizzle? Possible Duplicate: jQuery OR Selector? I would like to for each select in the matched set find the first option that either has a class placeholder or an empty value something along the lines of $(selectorOrJquery).find('select').andSelf().filter('select') .find('(op...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DMA copy in splice() I am new to linux kernel. And recently, i've went through the sendfile syscall in kernel 2.6.33. The following is the sequence of my journey: do_sendfile() => do_splice_direct() => splice_direct_to_actor() => do_splice_to() => do_splice_from() => splice_read,splice_write Throughout this sequ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ios programming using uitextview as text editor I'm developing an application for ipad that works like a text editor where you can input text without any limitations into a uitextview. However the problem I have is that after a while when the text gets quiet large (about 20 pages) there is big lag when entering new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem placing a button inside a MKAnnotationView I'm trying to put a little button in my AnnotationViews to show some info about some places on a map. Sounds super basic? Well. I must be an idiot then... I've looked at multiple examples, searched the whole internet, and I have ripped of 95% of my hair. It just doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I host a WCF service in an existing ASP.NET application? The service has been debugged and is running in its own website. We already have the SSL certificate and DNS configured for the application. It would save some work if we could host the service in the application. Application is hosted and used behind ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Idiomatic functional way to move disc in Towers of Hanoi I am learning Scheme and as a toy example I am doing a solution verifier (not a solver) for Towers of Hanoi. I want to use a purely functional style (just to get into the mindset) and I represent the tower as a simple list of three lists. The starting state ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I cancel an asynchronous operation in Silverlight/WCF? I am calling an asynchronous service from my Silverlight app and I want to be able to cancel that call after it is made. There is an option for e.Cancelled once the service has finished (i.e. If e.Cancelled Then), but how to you set that cancelled to true...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: 500KB json file parsed in Android environment I need to find a faster solution to parse a json file with 500KB. the structure is something like { "response": { "code": 0, "msg": "OK", "searchparameter": { "bikes": { … }, "cars": { "a":{ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android googledocs app component name I am planning to provide menus for my app similar to the sliding menu shown in the below image when clicking on the button in the list view. Could you give me some pointers on, how it can be achieved. Is it SubMenu ? http://static5.businessinsider.com/image/4db84baeccd1d58435080...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SDL OpenGL C++ problem I'm trying to make a simple game of pong using SDL and OpenGL in C++ and I'm having trouble displaying any sort of OpenGL image onto the screen and was wondering if anybody could help: Initialization: void init_everything() { SDL_Init( SDL_INIT_EVERYTHING ); SDL_SetVideoMode( width_o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CDN Images don't Load (OpenGraph) I setup in my wordpress blog OpenGraph. For image I insert this code (wordpress): http://dl.dropbox.com/u/21385868/codeog.jpg the result in site page (html is): http://dl.dropbox.com/u/21385868/resog.jpg if I share article on the facebook, image don't appear. But, if I disable my cd...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Split only text on special characters, but not on numbers with decimal points I'm thinking about a special regexp problem in PHP, but I can't find an solution. I try to split some text into terms to get simple words, numbers and web addresses. So i decided to split on every non alphanumeric character ( \w ). To work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connecting 2 Textboxes values temporarily I want to create 2 Textboxes (txt1, txt2) and when I write in txt1 then txt2 should reflect the same text what i typed in txt1. For ex. When we create a new Solution in Visual Studio Professional, what name we give to Project, same name appears for Solution. But if we edit s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTTP ETag reproduction Having recently discovered problems relating to the HTTP ETag and our CDN I've tried to capture some in Fiddler for well known sites. However it appears that whatever combination of browser / website I use I'm not seeing any pass by. Is there any reason for this? Can you suggest a combinatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JQuery / XML - problem with & character in XML attribute I'm trying to parse an XML document that has an attribute called "link" which provides a URL string. The problem is, whenever the URL string includes an & symbol - for example: http://www.site.com/segment/page.html#/?view=viewName&model=4 The xml parsing brea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to view and remove cron jobs in drupal 7 I'm new to drupal 7 and I need to see what cron is running. I had a cron Feeds scheduled to run once a day and it is no longer needed. I deleted the feed but the cron is still running. Thanks A: Drupal has an auto-cron implementation, to disable it go to mysite.com/adm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem with id tweet, when tweet has been delete (Jtwitter) My code is: for(int i=0;i<listTweetId.size();i++){ if((status = twitter.getStatus(listTweetId.get(i)))!=null){ ... My problem is that exist some tweetId into listTweetId that are Id of tweets deleted and I don't know how it verify, because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to fetch rss feed month wise from other website I have a question regarding RSS feeds. I am using wordpress ver 3.2.1 and using other website rss feeds in my website. My requirement is to fetch the feeds month wise and to show in my website side bar. Currently i am using rss widget and showing the feeds in sideb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do i get different information in a field based on what i select in a dropdown menu? I want to add this functionality to my form. when a option from a dropdown menu is selected i want it to input the text field above with the corresponding info. For example: <form name="form1" action="formhandler"> <input type=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's a recommended way to put CouchDB views under source control? I'm writing a node CRUD app that requires a few CouchDB views (I'm using express and cradle). I've got the node app itself controlled with git, but my DB views are currently uncontrolled. What's the recommended way to put these under source control?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Upgrading Android application data with multiple tables (without destroying unaffected tables) In my Android application; I have a single database with multiple tables. Each table is more-or-less separate from each other, but figured (for best practice?) to just have one DB file. When it comes to Upgrades, it's cur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error publishing Website VS 2005 I'm trying to publish a ASP.NET Website using VS 2005 and i am running into some trouble. The Publish always fails and it does not present any error messages. The Output is as follows: ... Publishing folder bin/pt/_vti_cnf... Publishing folder bin/ru... Publishing folder bin/ru/_vti_...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: splitting a string in VB I have a ComboBox which I assign to a variable: Dim var as String = ComboBox1.SelectedValue Dim name As String = var.Split(",") This gives me the error Value of type '1-dimensional array of string' cannot be converted to String Any ideas as to where I'm going wrong? A: Split returns an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I get rid of this nasty query in my Rails view template? Yuck. It's bringing me down. In my controller: @assessor = Assessor.find(params[:id]) @assessor.answers.build if @assessor.answers.empty? In my view: = simple_form_for @assessor do |f| - @assessor.candidates.each do |candidate| - @assessor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: looking for a slight variant of GROUP BY I have a table like so: id attr 1 A 2 A 3 C 4 C 5 D 6 F I want a count of all the A's B's (but not the C's D's, etc..) Note that my table has zero B's. So I want a command like this: SELECT count(attr=A, attr=B) FROM table; or this: SELECT count(*) FROM table GROUP_B...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to select date from date fileds using watin framework Can any one tell me how to select a date in these date fields automatically by using WatiN (http://www.meanfreepath.com/javascript_calendar/livedemo.html) I have given this site as an example. I have tried to select a random date as foreach (SelectList sl i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript library for logic programming Do you know of any good javascript library for logic programming? I'm interested in something like jsprolog, but I want to use javascript to communicate with the lib, and not a different language (such as prolog in this case). Many thanks. A: In addition to jsprolog, there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Understanding a Big and Complicated ASP.NET Web Application You might not like these kinds of questions, but I rely on the professionalism of StackOverFlow. I have a very big ASP.NET web application, it contains many projects, a container (father) project, and multiple module projects. Obviously it's connected to a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSV Writer writing over itself I am trying to create a CSV file with a list of URLs. I am pretty new to programming, so please excuse any sloppy code. I have a loop that runs through a list of places to get the list of URLs. I then have a loop within that loop that exports the data to a CSV file. import urllib, csv,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connect to Team Server on launch of VS? I deal with multiple Team Foundation Servers and collections. Is there a command line I can send to VS so I don't have to manually switch between the TFS servers every time I launch VS? A: The way I do it is use the start page from Visual Studio. It lists my recent projects a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Help with Date Conversion in JavaScript I have a string in the format MM/DD/YYYY. Can someone tell me how to convert it to: January 1, 2011? A: If you haven't already, check out date.js - http://www.datejs.com/ It's great for any date related functions, and has tons of examples on their site to do everything you ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to redirect to paypal with Soap instead of Simple Form I have my own shopping cart. When the client click on Submit Order, I Redirect the user to paypal page where the client will be able to pay the order. Here is my form <form name="paypalform" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List of Records in F#? How do you work with a List of Records in F#? How would you even pass that as an argument in a function? I want to do something like this: type Car = { Color : string; Make : string; } let getRedCars cars = List.filter (fun x -> x.Color = "red") cars; let car1 = { Color = "red"; Mak...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can a class still be pure abstract if it has a non-pure destructor? I am working on an exercise which asks me to take a base class Rodent and make it a pure abstract class. My understanding of a pure abstract class is that it acts as an interface and only contains pure virtual functions. Although this is an easy exe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7585918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }