text
stringlengths
8
267k
meta
dict
Q: DataGridView: DefaultCellStyle working with decimals I am using a Datagidview control on winforms. This is getting filled dynamically. I am trying to display 4 decimal format number in the grid. I applied the DefaultCellStyle property as; dataGridViewCellStyle2.Format = "N4"; dataGridView1.DefaultCellStyle= dataGr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get PathVariable (String) in a Controller method @RequestMapping(value = "/user/search/{email}") public String auditUseremail(@PathVariable("email") String email,Map<String, Object> map) { System.out.println(email); } this is my conroller class function, which is called when the action is http:/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where can i find the jboss-j2ee.jar file in JBoss 6? In jboss 4.0 the file called jboss-j2ee.jar. But i can't find this jar in jboss 6.0's client directory. I need just for compilation to resolve few annotation. I'm not using maven, so adding pom reference would not help. I have to download jar file from somewhere a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wix 3.5 desktop shortcut In my application, a shortcut to desktop is provided. After it's installed, when mouse points to shortcut, it shows location details (installation path). What should do in order to hide this information in wix? My code is: <Component> <File Id ="Scan" Name="Scan.exe" Source="Scan.exe"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Monitor assignment PHP extension I'm trying to figure out if it is possible to make an extension that monitors every assignment that is made in PHP. I want to do some taint detection, I've seen the PHP taint project, but it would be nicer to have it as an extension for my project. Additionally, where can I find API...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL and C#.NET DataGridView, Updates, Inserts and Deletes The other day I started working on a project in C#.NET using Windows Forms and it's been quite a while since I last used Windows Forms so I'm feeling a bit rusty. First off I should point out that I'm using Visual C# 2010 Express which does not have GUI wiz...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload files to Google Docs through Google Data API? I developing an application which works with Google API, according to my understanding. def push_to_ga(request): client = gdata.docs.service.DocsService() client.ClientLogin('account@gmail.com', 'password') entrys = Entry.objects.all() for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to know object locking information In java, I have created an object with global scope. At some point I am in a different thread and need to know whether the global object is currently locked by any threads. * *Krishna A: This is not possible using the synchronized keyword on ordinary Objects. You need a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loop to create form I want to create a for loop to create 10 text inputs with unique names/ids. Currently I am using the following code. <?php for ($i = 0; $i < 10; $i++) { echo "<input name='person'" + $i + "' type='text' id='person'" + $i + "' /><br />"; } ?> Now it just outputs the number in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android, Manifest shows error for android:targetSdkVersion I have defined following line in My manifest file but an error occurs. <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="8" /> and the error message is: error: No resource identifier found for attribute 'targetSdkVersion' in package 'android...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Log4j Multiple Threads I am adding ConsoleAppender to rootlogger for log4j as BasicConfigurator.configure(new ConsoleAppender(layout, "System.err")); But somehow log messages in some loggers down the hierarchy are not reaching console. I have not seen any instance in the hierarchy setting the additivity flag as fal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get an IP camera stream into C#? I've used AForge library to make this little program, that shows live feed from a webcam into a PictureBox. private FilterInfoCollection VideoCaptureDevices; private VideoCaptureDevice FinalVideoDevice; private void Form1_Load(object sender, EventArgs e) { VideoCaptureDevi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: What's the best practice to deploy (manage dependency) the django reusable apps in a real production project? In our project we are using some django reusable apps, we are considering how to make the continuous and automatic deployment easy and painless. We have 2 options: option#1: use "pip install xxx" to insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Javascript - XMLHttpRequest how to send multiple simultaneous requests? I'm encountering a very paranormal problem. I'm trying to implement a shopping cart, whereby I have cookies stored on the client side to identify which items' ID have been ordered and their quantities. When I load the checkout HTML page, I'm re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Customizing a form using Zend_Form_Decorator How can I customize my form using Zend_Form_Decorator? And how can I add a paragraph inside the form? It is just so difficult to do some simple things using Zend_Form :( A: While it's not technically the same question, something very similar was asked not long ago: Using...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Update Couchdb document I have a Couchdb document id and revision id and I would like to update the document. How can I achieve this using CouchRest? I have tried including "_rev" in "put" as suggested somewhere but that doesn't work. This is what I've tried so far: CouchRest.put('connection/db/docid',{"_rev": "id"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AspectJ pointcut not working with external classes and LTW I am trying to use AspectJ (which until yesterday I didn’t know) with LTW in order to understand how an existing framework works. In brief, I am interested at how framework's input XML files get parsed. I have written the following aspect: import org.aspect...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Change Color selected Picked value from pickerview? pickerArray = [[NSArray arrayWithObjects:@"20", @"40", @"60",@"80", @"100", @"120", @"140", @"160", @"180", @"200",nil] retain]; - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { //On Sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Facebook Authentication Finished Open Another App Using Facebook authentication, the procedures are that Facebook library will open either Safari/installed Facebook app for executing the authentication and then return back to the app. I have built multiple apps (Let's say : First App, SecondApp and ThirdApp) and com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: select onclick that contains _blank i select links with a blank target to set a title attribute jQuery('a[target~="_blank"]').attr('title', 'New window'); that works. But when i select the onclick attribute that doesn't work jQuery('a[onclick~="_blank"]').attr('title', 'New window'); any clues? the link looks like...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Open cart site transferred to another host with images broken I have transferred the Open Cart site over to another domain but all the images are broken adn I cannot get into admin. Is there a reason why? I have changed the config database credentials. A: In addition to changing the database credentials, you have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: include from output buffer? I have a dynamically generated page with some BBcode on. For example I have one named [PHP]file.php[/PHP].. The output is buffered using ob_start("parser);. Is it possible to replace [PHP]file.php[/PHP] with include("file.php"); on the output buffer? <?php function parser($buffer){ /...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery: changing the available options in a list based on the selected option <select id="studentinst" size="6"> <option value="1">First Installment</option> <option value="2">Second Installment</option> <option value="3">Third Installment</option> <option value="4">Fourth Installment</option> <o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i get the input content that follows the rake command all. How do i get the content that follows the rake command , for example, when i type this command in terminal # rake make_file myfile so that it will creates a file named myfile.txt, how do i write this rake task ? Thanks in advance. A: rake task_name ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Specialize template for any vector I have got a template method with two specialized versions for type bool and vector<string>. Base version: template <class T> const T InternGetValue(const std::string& pfad) const { ... } Specialized versions: template <> const bool InternGetValue(const std::string& pfad) co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Testing toolkit I've been assigned the job of testing a small Windows application for the company I work for. I'm a little experienced with testing web applications using the Google Chrome Developer Tools. Apart from that, I don't know much. For the moment, I manual test keeping an eye on the Windows Task Manager fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Array increment types in C - array[i]++ vs array[i++] What is the difference between array[i]++ and array[i++], where the array is an int array[10]? A: array[i]++ means ( *(array+i) )++. --> Increments the Value. array[i++] means *( array + (i++) ). --> Increments the Index. A: int a[] = {1, 2, 3, 4, 5}; int i = 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Keep RPM from changing directory permissions is it possible to keep RPM from changing the permissions of a directory when an update is done. I.e. we have some directories that are needed for the application to work correctly. However the user might also add some more features using other applications and for this ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JavaScript Tabs - 2 Instances On One Page I'm using this JavaScript tabbed script: http://net.tutsplus.com/tutorials/html-css-techniques/how-to-create-a-slick-tabbed-content-area/comment-page-2/#comments I have it working 100% if I'm using 1 set of tabs on a page, but I want to add a second set.(It's possible with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Array Reduce PHP I have an : $arr = array(321,0.4,0.8,1.2); $result = array_reduce($arr,create_function('$op1,$op2','return $op1-=$op2;')); echo $result; //the result should be 318.6, but i got -323.4 would you please tell me what's wrong with this? A: The array_reduce function has 3 parameters. The 3rd is $in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cancel multiple SharePoint Workflows using PowerShell How is it possible to cancel all running workflows in a SharePoint (2010) List? I found this script via technet. http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/d3913265-9712-4e61-9e38-1f9b78c8f718/ CODE: using (SPSite oSite = ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: In context of WAS, what is the difference between application bounce and jvm bounce In context of WAS, what is the difference between application bounce and jvm bounce. In case we only want to reload the data at server startup , whch one should we go for. A: The same application can be restarted multiple times whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RESTful Rails controller ans net/http as client - slow on many requests I have an Array populated with potentially lots of records. Every records shall be saved by the server in a RESTful RecordsController. My Solution in the moment looks like this: def self.send! options = nil records = fetch_records records.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pUnkOuter parameter of IClassFactory::CreateInstance method What's the reason behind the pUnkOuter parameter of IClassFactory::CreateInstance method? HRESULT CreateInstance( [in] IUnknown *pUnkOuter, [in] REFIID riid, [out] void **ppvObject ); The MSDN's description of pUnkOuter parameter notes: If the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: is view spec necessary with cucumber Is it necessary to use view spec even if I am using cucumber? I think cucumber takes care of the view and the flow.So is it required to use view spec? A little explanation is appreciated..Thanks A: I prefer to test everything in isolation. So I test the models, the controllers,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parallelization of a quadratic algorithm Let's say I have a vector (array, list, whatever...) V of N elements, let's say V0 to V(N-1). For each element Vi, a function f(Vi,Vj) needs to be computed for every index j (including the case i=j). The function is symmetric so that once f(Vi, Vj) is computed, there is no ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: asp.net mvc 3 load html table with data net mvc 3 with the world first ever razor engine lets say i have an array of string, well call it online users string [] onlineusers --> it has data inside of it now, how can i make a table using razor, and fill out it with the contents of onlineusers array? tnx possible outpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: TFS Team build database build fails intermittently with missing dbschema reference TSD01236 I have a team build that is building a database project. The build has been failing intermittently for a while. Several of the projects build successfully but the "main" project in the solution fails to build because of this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it worth to insert `const`-correctness I'm currently confronted with a C++ project written by some senior programmers consisting of about 400 files and 200 classes. The code is well elaborated, works fine and stable. While I'm adding some features, for me it is just ordinary practice to take care about const-cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Module's source changes don't take effect I am having an issue with python which looks really weird to me. My script starts to be quite big and is suposed to run a test suite for a program. My inclusion tree is: run.py --> Module --> Section --> Test The weird behavior I am having is that when I add a modification...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get the sender touch for ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event How can i find in a multi touch cocos2d app what was the touch that called ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event ? I can get all the touches using [event allTouches] but how can i find which touch called the func...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dojo: javascript execution in page loaded via ajax I have a template loaded via ajax and template contains the following lines: <script type="text/javascript"> alert('11'); </script> But I don't see neither alert window not any errors. Maybe the thing is in request and response Content-type headers? Mine are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iphone app flow diagram map for the bigger picture I have been teaching myself iPhone development for a few months now (actually more than a few!!), when I realised that the information I was getting from text books wasn't sticking and is swimming around in my brain like object soup. I understand bits and pieces, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to limit Interval time between 2 click in jquery? How do I limit Interval time between 2 clicks in jQuery? $('button').click(function(){ // do some stuff } After the first click, how do I wait one second, then the next click will effect. thanks. A: You could do: var clicked = false; $('button').click(functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android google maps groundoverlay In the google maps javascript api you can add a groundoverlay and just pass two points, the point lefttoplat&lefttoplong and the point rightbottomlat&rightbottomlong... (The normal overlays don't stay between these two points, but stay the same size when you zoom in or out.) I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server and SSIS Permission issue? Hi all i'm banging my head against a wall with this one and hope someone can help. I have a ssis package written in BIDS 2005, which basically selects some data rows from a table in DatabaseA and transfers the data to a table in DatabaseB. Its a fairly straightforward and easy S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: javascript does not work in Dynamic ajax content I am trying to use http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/ and modifying it myself, I added fancybox and tinyscrollbar it is working at the first, however, after I switch between some pages it is no longer wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating temporary files in Android with NDK I am currently working on a C-based, NDK-based, Android application. This application needs to create temporary files. On a regular Linux system, I would use tmpfile to ensure that these files are properly created in a temporary directory and cleaned-up at process end. Ho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How can I use AddSubType on a type that is a collection? RuntimeTypeModel.Default[typeof(IMyClass2)].AddSubType(1, typeof(MyClass)) threw "Repeated data (a list, collection, etc) has inbuilt behaviour and cannot be subclassed" exception. Following is the code snippet public partial class TestClass { public TestC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JPA 2.0 native query results as map I run a JPA 2.0 native query like this: Query query = em.createNativeQuery("SELECT NAME, SURNAME, AGE FROM PERSON"); List list = query.getResultList(); now list has all the rows returned by the query. I can iterate over them, but every entry is an Object[] where: * *at ind...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: how do i get jsoup to work? ive been going through these joup bits to get some information from a div: http://jsoup.org/cookbook/extracting-data/dom-navigation Document doc = Jsoup.connect(path).get(); Element cat = doc.getElementById("category_1"); Elements links = cat.getElementsByTag("a"); for (Element link : lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting Sum Of Numbers In Each Line Of File i have a file that there is some numbers that i want to sum number one with number two in each line.here is numbers in my file: -944 -857 -158 356 540 70 15 148 for example i want to sum -944 and -857 what should i do?? i did it like the code below to check whats the nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mapping lists in my Mapper class using using AutoMapper I am using ASP.NET MVC 3 and AutoMapper. In my category controller I return a list of categories and I want to map each category to a category view model which is used in my grid. I have my own mapper class method that accepts the source, source type and desti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jpa2/hibernate c3p0 pool configuration lead connection and thread leaks I am trying to use c3p0 as connection pool provider in my application (jpa 2 and hibernate core 3.3.2) but c3p0 getting too much connection from database.This is same problem but answer not helped.I am getting entitymanager from entitymanager f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add projects to my list of favorites on Google Code? In Google Code there is a list of favorites. How do I add projects to my list of favorites? A: The above answer is not correct. You can "star" a project (upper left corner of project home page, in the sidebar), which adds it to your list of favorites wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++: Logical Comparison as conditional statement? Ran across some code that used this, which led me to wonder. if(condition) foo = bar(); condition && (foo = bar()); Are these two segments of code equal to a compiler? If not, in what ways would they differ? A: Due to operator precendence, the latter is interpret...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Slide functionality with dynamic changing views in it Please have a look on this image The whole review section will slide according to days of week saturday monday etc.. Inside values are dynamic and will come from server accordingly there are also buttons named comment,agreeand report abuse which will update valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone - Getting the lock screen background image Into my app, I need to display the lock screen background image chosen by the user. How can I get that image to display it without using private API ? A: There is no public API to get the lock screen or home screen images.
{ "language": "en", "url": "https://stackoverflow.com/questions/7595354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to properly modelize an object with localized (i18n) properties I have an Entity which has an id and a title. The id is always the same but the title value change given a locale. I found three way to modelize this : class Entity String getId() String getTitle(Locale) or class Entity String getId() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NUnit Tests in generic abstract base class are ignored I have create a generic abstract base class to do some common tests. The test are showing up, but they are ignored. Why? Example public abstract class FooBase<TA, TB> : TestBase<TA, TB> { [Test] public void SomeBaseTest(){} } [TestFixture] public class Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: MySQL Duplicate rows - specify columns How can I run a query that finds duplicates between rows? It needs to not match one field but multiple. Here is the EXPLAIN of the table. +-------------+--------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Open Source application on GAE/Java Is there any Free and Open Source web application which is developed on Google App Engine's Java platform? A: I guess there are many. Here's mine: https://memwords.appspot.com/. Its source code is hosted on Google Code. See http://code.google.com/hosting/search?q=label%3aAppEngin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is there a situation in which Dispose won't be called for a 'using' block? This was a telephone interview question I had: Is there a time when Dispose will not be called on an object whose scope is declared by a using block? My answer was no - even if an exception happens during the using block, Dispose will still b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "66" }
Q: iOS 5 segue implementation While implementing a segue between two view controllers how to change a property of the destination view controller using the segue object? The documentation says that this can be done inside the prepareForSegue: sender: method. i tried it but not was not successful A: I have written a t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How can I add exceptions for sorting Django models? I've got a line in python: streams = Stream.objects.filter(info__isnull = False)\ .order_by('-score', 'info__title') I feed that to a RequestContext c = RequestContext(request, { 'online_streams': streams.filter(online = True), 'offline_streams': s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Threadsafe Guice Binding I am currently refactoring the server side of an existing project. We are using now guice to bind the specific modules and its objects. Over the last 2 weeks we often have a problem which looks like that guice is mixing up some of the used object instances. The problem is a class which is re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android view animation: replacing view by itself In my android app, I have a notion of "trails": a sequence of objects that the user can navigate. The same view, naturally, is used to display all objects, just updating components (texts, images, etc.) when the next object is to be shown. Now, I want to animate the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I see jQuery errors? When an error occurs in jQuery code, IE9, Firefox and Chrome's script debugging tools dont see them - is there a way to make them see jQuery errors? A: I don't know if you got this, but jQuery is plain javascript. Every error that is not caught by the code will be thrown. Wait... caught?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ways to bind model classes in Objective-C (I hope someone will correct my terminology if I get it wrong -- I'm still sorting out terms) I have a series of classes in my model. I need to get some data from a url (SatDataGetter) and combine it with a location and date specific calculation (DayCalculater), do some furt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I just check if a given username exists? I have an application that uses both LDAP and simple database authentication to log users in. Only if the user does not exists in the LDAP context, the application checks if he exists in the database. So I need a way to check if the users exists in LDAP, without knowi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595394", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to dynamically display a list of SubReports from a DataSet in SSRS? Context I am actually working on a project where I need to compose a report which will be designed from our custom tool. The user will compose this report using existing reports that he will put in particular order. So basically, to record the c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: permutation computing in c++ I want to write a program that gets an integer n and prints all the permutations of 1,2,...,n. I know there is a recursive way to do this and I know the overhead of function calls. Is there any way to do this without recursion?? A: Yes, you can do it iteratively with std::next_permutati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP & XML Read element by attribute value $xml = '<?xml version="1.0"?> <entries> <response> <category>client</category> <action>Greeting</action> <code>1000</code> <msg>Your Connection with API Server is Successful</msg> <resData> <data name="svDate">2010-1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to synchronize equal lines in two stringlists I have two stringlists that I wish to synchronize, so that equal lines get the same index, while different lines will be kept in the list where they originally were, and the other stringlist should get a "filler" for that index. Consider this example: SL1: 1,1,2,3,5...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Oracle OCI - failing with ORA-12705 when running as another user I've got a C application using OCI to talk to a database. I'm using the instant client method so there is no standalone Oracle installation on the server - just a couple of libraries that the application is linked against. Normally, the application ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Signing mixed code assembly I have a mixed assambly written in C++ managed and unmanaged. To sign this assembly I use delayed signing with the following Post-build event: sn -R $(TargetPath) $(ProjectDir)Fischer.snk This works without any problems on my own PC (VS2010 english, Windows XP 32Bit). If I transfer this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: String operators C++ I was wondering if you can compare two strings using ==. I have a function which takes in a const value &item and since its a value type there is no way I can determine what type the value is, hence if the value type is a string, == may not work. Hence the question, what would be the best way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Honeycomb ActionBar Title Shadow How can I add shadow under the title text? The following xml doesn't do the trick. <style name="Theme" parent="android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/ActionBar</item> <item name="android:windowBackground">@drawable/background</item> </styl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How do i create a dropdown menu which puts data from an array in a textfield 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. objBMW = { "Sedan":"5-series", "Convertible":"6-series", "Truck"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the way to access the assets-folder in an Android project? I access to an XML file placed in a project folder (for instance 'assets') for open and read data from file. DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); InputStream...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery issues with SharePoint I am having a strange problem with jQuery inside sharepoint. My jQuery code works fine in Web Applications but when I use the same code on a Web Part it creates problem. Here is the problem with jQuery in Web Parts. I have external JavaScript file which I reference on my web part. This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Dictionary To Anonymous Object? First, and to make things clearer I'll explain my scenario from the top: I have a method which has the following signature: public virtual void SendEmail(String from, List<String> recepients, Object model) What I want to do is generate an anonymous object which has the proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: Where to put js files in CodeIgniter Possible Duplicate: Where should someone put the static files such as CS, JS and images in the Codeigniter folder structure? I have few JavaScript files in my codiginter project. Currently the js files are in a direcotry in the app root. I call the js files by "../js/jq.js". I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: how to add percentage completion on parallel nested loops? for example, i wish I can see 1% ~ 100%, how could I do that? Parallel.For<Dictionary<int, long>>(0, r1, () => new Dictionary<int, long>(), (j, loop, tmpWinRange) => { for (int k = 0; k < r2; k++) for (int l = 0; l < r3; l++) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get total memory usage in blackberry How can I get the Total memory usage by all running applications? Basically I want to find whether the memory usage is greater than 30% or above. A: As suggested by Rafael, you can make use of the Memory class. More specifically, you can use the following which will help you: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to load options.html in jQuery-colorbox, upon a context menu item click? I am adding 'options' to my chrome extension. I wonder how can I user colorbox) from background page or content scripts, when context menu item is clicked. I have spent more than a day on this without success. Is there anybody who has done ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone - Can't adjust sound volume with hard buttons When my app is launched (no sound emitted, Ambiant category set for AudioSession), using the up and down volume button on the iPhone does not do anything : - on screen, nothing is displayed (I mean, the iOS black and white "slider" overlay does not appear to show ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How often will calculate works in Orbeon Xforms I have a bind definition as follows: <xforms:bind nodeset="instance('demo')/pointer" type="xforms:integer" calculate=" if($current-page &lt; '2') then '0' else ( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Related to result of eager loading in ROR Active Record I have an Invoice model which belongs to Customer (and of course Customer has_many invoices). If I do: { @invs = Invoice.find( :all, :include => ["customer"], :conditions => ['somecondition'] ) } The class of @invs is an Array and I can see a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: session retrieving on page I have big problem related to login. actually some time it work fine but some time not working. I have setting.php in which session_start() is executing. this file is including in all file. another file is config.php where all variable is defined including session name $siteConfig_session...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should I implement interface composition? I have this situation: public interface IHasValue<T> { T Value { get; set; } } public interface IClickable { void SubscribeOnClick(EventHandler click); } public interface ILoginView : IView { IHasValue<string> Username { get;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trying to count the number of times something comes up on a dice. ruby code This is my code for a dice that shows a direction. It shows either north, south, east or west when rolled. I'm trying to figure out a way to count how many times each one of these appears anytime I roll the dice. Any one any ideas? class Dic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: why resque-web is not showing all running resque workers? question in the title i can see resque workers in htop: resque-1.15.0: Processing low since 1317112029 but they don't show up in resque-web anyone had this issue? A: Check your namespace in resque-web. If you are using redis-namespace in your resque installa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Shell script to rename multiple files and folders I have the following structure Before -1.2.3.4 --1.2.3.4 ---1.2.3.4-->1.2.3.4.file After -5.6.7.8 --5.6.7.8 ---5.6.7.8-->5.6.7.8.file ... I would like to use a bash script that searches files and subdirectories name in a specific directory /home for a specific stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I save my application now-oauth and HTTPS? Well, I am a non-Facebook developer, and a normal .NET programmer who have created a Facebook application for a regular website around one year ago using FBML. I have no time to read the roadmap every day and know what will be next. So I had no idea about OAuth and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C# How to use Interlocked.CompareExchange My goal is the following: There is a certain range of integers, and I have to test every integer in that range for something random. I want to use multiple threads for this, and divide the work equally among the threads using a shared counter. I set the counter at the beginn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Right to left UILabels I need to display a text using a UILabel ( can't use UIWebView ), and it sometimes contains both Hebrew and English. using UILabel's default settings the sentence gets mixed up and doesn't make sense. I have failed to found a way to make UILabel display text rtl. Does anybody know anyway to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Filter some type of data in float how to filter out float values with only zeroes beyond decimal & others having some non-zero values beyond decimal too. for example. 13.000000 13.120001 i want it like this: 13.0 13.120001 A: If your application stores the floating point values in something like C/C++'s float's or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve by value from an Object? This must be a duplicate, but I've been Googling "retrieve by value from object javascript" and "javascript lookup object by value" and every variant and got nowhere, so apologies and here goes. Say I have a JavaScript object like this: var options = {"ford": "red", "citroen": "blu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Configuring Quercus on Google App Engine I am currently working with GAE and was trying to figure out if there was some way that I can run php on GAE. Fortunately, I came across Quercus and was very happy to find that it had all that i needed. But the problem now is that once I include the resin.jar to the WEB-INF/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7595483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }