text
stringlengths
8
267k
meta
dict
Q: What is "SQLiteDatabase created and never closed" error? I have closed the database in my adapter class, so whay is this error showingup on logcat but my application is not forcr closing but only error is showing on log cat..where i shuold have to close the database for ignoring this error...? my errors are...below...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Make Google Charts adapt the vertical axis to the data I want Google chart to make better use of the vertical space available for this graph: https://chart.googleapis.com/chart?chs=300x150&cht=bvs&chxt=x%2Cy&chd=t:7,8,5,6 QUESTION: How to make the vertical axis adapt to the range of values automatically? For insta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to load another page inside a div? I have created a number of divs using a loop, and then inside it there's a hidden field where the value is the url I want the div to be loaded. I have tried the load() function but turns out to be slow. Like when I used iframe, it takes a very long time to load and the height a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling Inherited IUnknown::Release() in a destructor Why does calling the inherited IUnknown::Release() function on a IWICImagingFactory object in a destructor cause a "CXX0030: Error: expression cannot be evaluated" to be shown each entry in the object's virtual function table (__vfptr)? This is in reference to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Color issue in MATLAB I'm writing a function file which is used to draw a line in an image. Now I'm facing the color issue. If I set color=[255 255 255] or color=[128 128 128] in the command window, the lines that appears in the image are both white. For [128 128 128], it should be gray color, right? Which is not co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open office files in Blackberry app I want to open office documents, like Word, Excel and PowerPoint, from my BlackBerry app. I am able to download the files from the server, but I am not sure how to open them. A: On BlackBerry devices there is a trial version of DataViz DocsToGo pre-installed. And you can use Doc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get an auth token on Android device I am developing an application which stores local data on cloud. I want to use a permanent authentication token as primary key. How can we generate authentication token from android device which should not expire after a session. Please help me. Thanks in advance.
{ "language": "en", "url": "https://stackoverflow.com/questions/7632072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: generating hash table using perl script I am trying to create hash table using perl. please can help me because i am begginer to perl and i am reading but i am not able to implement. i need to create hash table from below code data number as a key and description as value. A: For a common data format like XML, don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Buggy image resizing with CSS on Chrome, any way to fix it? I'm displaying some favicons from external domains in my site. The problem is that when the favicon is anything different than 16px and I resize it the output is not always perfect. Randomly I get just the top or bottom half of the image, when I refresh sud...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WebDriver in C# (work with windows and synchronization) I work with webDriver in #IE9 and I find one problem. If I started tests in Run mode, then all test fail because webDriver not exists (two window ie), but if I put breakpoint in tests and start tests Debug mode I have passed all tests. Please tell me, what do, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632077", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server, TimeSpans I am having a trouble in querying my database.. I have a table : **Room** +----------------------------------+ |RoomNo---RoomStatusID---RoomTypeID| | 1 --- 1 --- 1 | | 2 --- 1 --- 1 | +----------------------------------+ **ClientRoom** +-------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net Mvc 2 How to reroute to www.example.com/my-profile i would like to reroute this address www.exmaple.com/my-profile to a profile controller i have in my mvc application. There is my global.aspx, as you can the the default routing is routes.MapRoute( "Default", // Route name "{...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting error on calling SaveAs method I'm trying to create a csv file from an excel file using MS Excel Interop in my C#/Winforms app. Am getting this error on SaveAs method in the code below. 'The file could not be accessed. Try one of the following: • Make sure the specified folder exists. • Make sure the folde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: pop up detail view out of tableviewcell I am working on a app where I want to expand a tableviewcell to cover almost all the screen with animation when it is selected by user. I am looking to create a uiview on the tableviewcell and expend it to cover major portion of the screen when user selects the row. The main ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using fread to read into int buffer I would like to know if I can use fread to read data into an integer buffer. I see fread() takes void * as the first parameter. So can't I just pass an integer buffer (typecast to void *) and then use this to read howmuchevery bytes I want to from the file, as long as the buffer ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Refreshing every minutes In a form, there is a label. It shows whether web service is connected or not at every minutes. How to code to repeat this process? Will I use the thread or timer? Please share me. A: You will need a timer object in order to run the code every X minutes. Using a separate thread to check th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: linq expression error:cant display column? i am trying to join my linq query with another table. How can I display the name in the Customer table? I am getting an error: does not contain a definition for 'Name'? from p in Purchases join c in Customers on p.CustomerID equals c.ID group p by p.Date.Year into Sales...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tools to work with visual studio project on server? i want tools like Team foundation or SVN subversion to work with the team in same project by putting source project on the server. i want program that do it but i don't want svn and team foundation . are there another tools like them? Thanks A: There's GIT, it's n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Asp.net Postback issue I have Department Dropdown on change of this I made jquery-ajax request to get the Department Details. I'll be binding this result to a Div. that works well till here. When I click an asp.net button or any server side control after post back the div element is emptied. How can I get the previo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a sample source code for home automation on android? i wanted to know how the home automation is done in android. if anyone has a sample code of a single switch button for a light to switch on or off..??? it would be helpful for me..i wanted to know how the coding is being done of this. Thanks in advance A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hibernate Session.save issue Hi I have a domain object lets say Student and its Roll no as a primary key here is the sample mapping for it. @Id @Column(name = "Roll_NO", unique = true, nullable = false) @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "Roll_NO_SEQ") @SequenceGenerator(name = "Roll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: embedding an X11 widget in Cocoa I'm working on pythonocc, which exposes the OpenCasCade API in a pythonic manner. OCC is coupled to either the windows or X11 gui environment. This is somewhat problematic on OSX; I need to build [Py]Qt4 for X11, rather than Cocoa, which makes distribution much harder than it should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scope vs life of variable in C Could someone exactly explain the concept of scope and life of variable in C. Is it different in C++? I'm confused between scope and life. A: Scope is the region where the variable is accessible. Life time is the time span during which an object remains valid. An simple example: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Searching Apps in App Store I want to search Apps in App Store by a keyword. Lets say if i type in "poker" and press enter then, it should open all the apps in App Store having the string "poker" in there name or in description. i looked for Search API of apple but i am not able to find the specific term to search a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trigger a click event on an inner element A row in a table where each first cell contains a link needs to be clicked and open a url. <table> <tr> <td><a class="fancybox" href="detail.aspx?CID=67525">LT5C260A436C41</a></td> <td>more data</td> </tr> <tr> <td><a class="fancybox" href="detail.aspx?CI...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Maximum size of HashSet, Vector, LinkedList What is the maximum size of HashSet, Vector, LinkedList? I know that ArrayList can store more than 3277000 numbers. However the size of list depends on the memory (heap) size. If it reaches maximum the JDK throws an OutOfMemoryError. But I don't know the limit for the numb...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: JBlend with LWUIT I have made some applications on J2ME using LWUIT, CLDC 1.1, MIDP 2.0 and they are working great on Nokia handsets. But when I tried to install these applications on Huawei G7206 (JBlend) some of the applications gives error (NOT SUPPORTED) and some crashes without displaying anything. I have teste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what is Reads and Writes in Sys.dm_exec_requests DMV of SQL Server As per explaination given on MSDN at link http://msdn.microsoft.com/en-us/library/ms177648.aspx I am not able to understand the meaning of Reads and Writes fully.whether it is physical or logical or database Reads and Writes. Please help me out in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to make newly added main menu option in magento admin section "selected" I have developed a new custom extension for magento admin section. Main menu option of this extension in admin section is visible. When I click on that menu option, functionality of this extension is working as per development/expected. But...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a hash of a file on iOS? I'm trying to create unique file names by renaming them using their hashed value in iOS. How can I do that? A: you could achieve this by extending NSString, Try this in your .h: @interface NSString(MD5) - (NSString *)generateMD5Hash @end and this in your .m - (NSString*)g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Text box display when click on the edit button I have to display the text boxes and list boxes when click on the edit button. Please give suggestion to how to do that things. HTML: <div class="textboxes"> <ul> <li><input type="text" id="txt" /></li> <li><input type="text" id="txt" /></li> <li><input type...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pixel color calculation 255 to 0 I have been using the algorithm from Microsoft here: INT iWidth = bitmap.GetWidth(); INT iHeight = bitmap.GetHeight(); Color color, colorTemp; for(INT iRow = 0; iRow < iHeight; iRow++) { for(INT iColumn = 0; iColumn < iWidth; iColumn++) { bitmap.GetPixel(iColumn, iRow, &c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I get APK file on phone of the installed applications I am trying to develop a application for backing up the files. I need to extract the APK files of installed applications like the Astro manager does. If anyone know how to extract please give me the solution. A: They are stored in /data/app/ but unless your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery Optimize link "href" selection I'm changing the class of "a" tag according to "href" file type. It works fine. Here's the code: $('#divComment a[href$=".pdf"]').removeClass().addClass("pdf"); $('#divComment a[href$=".doc"]').removeClass().addClass("word"); $('#divComment a[href$=".docx"]').removeC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Xcode: Adding transition animation on UITabBar Can we add transition animation on UITabBar when clicking on tab bar item? A: The similar kind of problem has been solved here: http://haveacafe.wordpress.com/2009/04/06/animated-transition-between-tabbars-view-on-iphone/
{ "language": "en", "url": "https://stackoverflow.com/questions/7632165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery AJAX response find div returns Null I have a table that gets sorted by a certain column when the user selects an option from the drop-down. It is a self-referencing PHP script that contains an IF clause for a GET request. Since it is a self-referencing file, it returns the entire HTML content of the page, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: wired scala type design my env is : Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26). watch this example first: scala> var a = 1 a: Int = 1 scala> var c = 'c c: Symbol = 'c scala> var d = 1.1 d: Double = 1.1 scala> var b = "123" b: java.lang.String = 123 scala> val e:String = "234" e:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Intent.FLAG_ACTIVITY_CLEAR_TOP causes activity to pop-up even when application is on background? I'm using Android 2.2. I have an application which logouts (causing the application to return to the login page) after a certain period of inactivity. I am using Intent.FLAG_ACTIVITY_CLEAR_TOP for my Intent. However, I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Interactive visualization of a graph in python I have a program written in python using the module networkx to create a dynamic graph. It is a planer graph where the vertices remain constant but the edges change. Now I'm looking for a library that allows me to do two things, in a fast and quick manner preferably: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: From a list of li, how do I tell which one is active using jquery? From a list of li, how do I tell which one is active with a highlight class using jquery? For example, I have the ul list <ul> <li> 11111111 </li> <li> 22222222 </li> <li> 33333333 </li> <li> 44444444 </li> <---- h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 404 error handling with mako template Trying to display template rendered by mako on 404 errors, but it still displays standart error page with cherrypy footer and additional message: |In addition, the custom error page failed: TypeError: render_body() takes exactly 1 argument (3 given)" The code: def error_page_404...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Multiple DAO's vs One DAO with configuration file I'm currently in the process of creating a data access layer for an application. This application will initially connect to an Oracle database but will later also connect to a DB2 database. For connecting to the database I will use JDBC. At this time I'm considering ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to authenticate iOS/iPhone users with remote web application and re-use authentication ticket in future requests to the same web application? I am building an iOS application and I need to be able to make authenticated requests to a Rails 3 application for various bits of data. The Rails 3 application is using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Why won't Oracle use my index unless I tell it to? I have an index: CREATE INDEX BLAH ON EMPLOYEE(SUBSTR(TO_CHAR(EMPSHIRTNO), 1, 4)); and an SQL STATEMENT: SELECT COUNT(*) FROM (SELECT COUNT(*) FROM EMPLOYEE GROUP BY SUBSTR(TO_CHAR(EMPSHIRTNO), 1, 4) HAVING COUNT(*) > 100); but it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL for selecting a cluster of records from a huge table with optimum SQL I'm trying to paginate using MS SQL Server 2005 in one of my ASP net applications. To fetch 10 records from the employee table I'm running the following SQL. ;WITH CTE AS ( SELECT EmployeeID, [Name], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unit Test Friendly way of using membership details inside the controller Here is a piece of code from one of the controller inside my ASP.NET MVC 3 App : _destinationdetailRepository.Add(new DestinationDetail { DestinationID = destination.DestinationID, CreatedOn = DateTime.Now, CreatedBy = User.Ident...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you access the ui.item children in jQuery? I'm trying to access the following rectangularized item using the jQuery sortable plugin: Currently my jQuery code looks like this (Note the question is about the even in the receive section): $( "#listA, #listB" ).sortable({ connectWith: ".connected_sortable", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can i interact directaly with data using UIB-Unified Interbase (http://www.progdigy.com/?page_id=5)? in my current application i can set dataset of datasource to table component (IBdac component from Devart.com)which enable me editing the data in the dbgrid directly . uibdataset is read only which that is means ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to construct Dynamic Dependent Combo series in jqGrid? I have two combos in my jqGrid. One has the listing of Countries and the other has the listing of states of that country. I want a system where when I change the Countries combo the corresponding value of that Country's State will construct the second combo....
{ "language": "en", "url": "https://stackoverflow.com/questions/7632233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom Object/Class in XCode 4 Interface builder Im using Xcode 4. In interface builder of my project, I pulled a custom Object (gold cube) from library. I named its class as MyController and did the same for its label. I saved these settings then. But I'm not able to write this class to the project's class files. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue in serializing a vector of deques using Boost How do I serialize a vector of deques using Boost Serialization library. Currently, I have the following code for this purpose: #include <boost/serialization/deque.hpp> //in includes Item1(6128, std::deque<float> ()), //constructor initializations Item2(6128, std:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Free & private version control hosting website Any good Git or Subversion for non-public/non-open project. I have narrowed it down to these three. Now which of the 3 would you recommend. I am looking for secure, with a good up-time, private, support for 3-4 users and 1 repository and a space of about >200-300 MB *...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How place background-image to the top of the div with padding In Html I've this code <div class="page"> <div id="header"> ... </div> </div> And here is my css .page { width: 1028px; background-color:#103250; margin-left: auto; margin-right: auto; } #header { backgrou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to put text in border I'm trying to insert some text in border but don't know how to do. How can i put some text in middle of border. Below is the screen-shot it should look like A: use legend inside fieldset The HTML Legend Field Element (<legend>) represents a caption for the content of its parent <field...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: What about object instances reuse? I am wondering if there is any convention in Java (through Javadoc or implicit convention) to indicate that a given same class instance can be reuse in several contexts ? I am asking that because in the SWT layout context I don't know if I am allowed to reuse the same GridLayout ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP DATE strtotime date "0001-01-01" Hello guys is there a way to convert the date 0001-01-1 to a time format? I am trying to to use the php function strtotime("0001-01-01"), but it returns false. My goal is to count the days from the date: 0001-01-01 to: 2011-01-01. A: Use DateTime class. strtotime returns a time...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Postfix decrement I have a very simple question. in this piece of code when will the value of n be decremented? #include<stdio.h> void func(int n) { //text// } int main() { int n=10; func(n--); return 0; } now when func() is called is the value of n decremented when control comes back to main() or is it d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In dealloc method set any delegate to nil is needed or not needed I have created tableview in my view by programmatic like below table = [[UITableView alloc] initWithFrame:CGRectMake(0, 44, 320, 370) style:UITableViewCellStyleDefault]; table.delegate = self; table.dataSource = self; table.separatorStyle = UITabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why this jquery code is not working on blackberry? I am developing phonegap app using jquerymobile. but in blackberry 9780 it does not show me alert, my code is document.addEventListener('deviceready', run, false); function run(){ $.getJSON('http://twitter.com/users/usejquery.json?callback=?', function...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery UI: adjust width of div by slider change I use jquery UI slider and want onchange to adjust a width of a div: $('#slider').slider({ value: [17], change: handleSliderChange }); function handleSliderChange(){ ... } here t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Non Blocking Client I´ve a question concerning non blocking Sockets: I understand how to register for example, two socketchannels for write/read events. But how does such an event look like? If I want to write some data on SocketChannel1 (for example when I press a button) to a server how can I do this? All exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: json parsing from an url in phonegap app for an android mobiles Hi friends so far i have been worked only in android native app. First time i am trying to create an app in Phone gap for android devices. I want to hit an url and there i get a return data in json format. I dont know to write a code in javascript to h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to show all content of an array in Java this is my first post on this web site, so please be patience :) I'm studying java and I'm trying to create a small program that storage in two arrays the name of player and the attendance of them. I'm using JOptionPane for the 'user interface'. I would like, when the user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot implicitly convert type 'int' to 'int[]' I have declared my int[] as follows int[] iroleID = new int[] { }; My code for getting the values from database and assigning to iroleid is as follows if (oAuthenticate.getTaskID(out m_oDataSet1, "uspgetTaskID")) { for (int iTaskid = 0; iTaskid < m_oDataSet1.Tables[0...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Migrating from "Linq to SQL" to Entity Framework 4 Problem In the past, our development team decided to create a new enterprise application and decided to use "Linq to SQL" since the Entity Framework "sucked". (Not my opinion!) They used Visual Studio 2008 and the EF wasn't part of the default setup but required an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does DirectShow manage default filters? When I render a media file with DirectShow (allowing DirectShow to build the graph automatically) I see that DirectShow has a set of default filters it uses. I also observed that installing 3rd party filters may change some default filters (usually 3rd parties set their ow...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C#, Finding 2 columns sum together in linq I am bit new to linq . How do I get the total sum of two columns in my data table. Let say 2 columns are A& B . I want numeric sum of entire column A and entire column B (i.e totalSum= sum(A)+sum(B)) IMP : If I have any field in either of 2 columns a non numeric field (eg...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CacheDependency from 2 or more other cache items. (ASP.NET MVC3) I'm a little puzzled over the possible cachedependencies in asp.net, and I'm not sure how to use them. I would like to add items to the HttpRuntime.Cache in a way, that the elements should invalidate if I change other elements in the cache. The depende...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Application Net 1.1 about w3wp.exe memory leak in server I have application web based net 1.1 Every three or four hour I have the restart my iis server because the performance becomes so slow , nothing will function with message memory leak. I traced the problem to the w3wp.exe in windows server 2003, Using the task...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django test client gets 404 for all urls I am doing my first experiments with django testing and I am having the problem that I always get the 404 template regardless which url (even /) I am using. If I throw the very same code into the django shell it's working as expected and always presents me the contents of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Use MultiThreading to read a file faster I want to read a file of 500 Mb with the help of 2 threads, so that reading the file will be much faster. Someone please give me some code for the task using core java concepts. A: Instead of trying to multi-thread the reading, you may benefit from multi-threading the proces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read a file from WEB-INF/resources folder? I am using Icefaces for webapplication development. I wish to read a file from the resources folder and use it in the sessionbean. Actually I wish to setup Jasper Reports. I have already setup the libraries in the classpath. The problem I get is while fetching the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Share button and comment plugin conflict In my blog I need to implement both a Facebook share button (with a counter) and comment plugin. I just used the code below. FACEBOOK SHARE <a name="fb_share" type="button_count" href="http://www.facebook.com/sharer.php"> Share </a> <script src="h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange #_=_ appear at the end of url after response.redirect ASP.NET Anyone here using Response.Redirect() method, do have you encountered some strange characters attached to the end of the uri on the browser address bar? The strange characters are hash, underscore, equal sign and underscore (without spaces) such a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: BBCODE, preg_replace and double quotes preg_replace('/\[quote\=(.*?);(.*?)\](.*?)\[\/quote\]/ms', '<blockquote>Posted by: \1 at \2.<br/>\3</blockquote>', $text); This is what I use to replace the [quote=user;id]content[/quote] bbcode. Anyway, it works fine only, if there is one quote in post. If I got: [quote=user1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems with git after cvsimport I'm currently trying to migrate our cvs repository to git so all old data is needed but I am running into some problems. Importing works. First make a local cvs using cvs init in CVSREPOLOCAL Copy the projectname there from the old drive then git cvsimport -d /home/git/CVS_REPOLOCAL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android root directory in centos 6 I've installed eclipse, ADT plugin for it and I get an error "Location of the Android SDK has not been setup in the preferences". I go to preferences but I can't find the root directory of android SDK. Where is it? edit: I've set the location to the preferences. Now I get the error...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS box-shadow did not work at IE or Safari #keyboard { position: fixed; background: #eee; display: none; border: 1px solid #ccc; border-radius:7px; width: 950px; height: 300px; padding: 5px; cursor: move; background-image:url('BackgroundImage.jpg'); box-shadow: -5px -5px 5px 5px #888; -moz-border-radius: -5px -5px...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display the values into Android Client from MySQL using PHP Web Service I have question regarding on how to display the values into the Android Client from online database in MySQL using the PHP Web Service. The idea is such that initially when the activity is displayed, the first record must be displayed in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Send custom complex objects to Silverlight RIA services I've created a complex object which itself include a list of another object. Example: public class MyClass1 { private List<MyClass2> myClass2List [Key] public long Id { get; set; } public string Name { get; set; } [Include] [Associati...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Call ffmpeg via PHP but dont wait on it I have my upload script that handles the file upload and then calls exec(ffmpeg -i...... I call ffmpeg 3 times. One to convert to mp4, one to convert to wemb and one to get thumbnail. Problem is that if an investigator uploads ALL his footage, he doesnt want to have to sit the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why do I need a javascript compiler if I always precompile my assets? I am runnning rails 3.1 on my heroku server (but with the bamboo stack). Since 3.1, I had to add a javascript compiler for uglifier. So I'm using therubyracer-heroku for now. The reason I'm wondering is that I'm always precompiling my assets, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ITelephony.aidl not compiling in eclipse I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that. But this aidl file not compiling. Is there any other step which are required? A: First create a package in the src folder in your project named com.android.internal.t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to redirect requests to www.example.com/admin to different module in Zend I have a problem with redirecting requests in my application. My rules: * *employer.domain.com - should point to a page of the employer - uses default module *employer.domain.com/panel/ - should point to a administration page of specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send email reminders on different conditions? I have a table called reservations which has columns start_date and end_date. If date_diff(start_date and end_date) is 30 then I need to send an email on 8,2 and 1 days before end_date. same with the below.. 60 – 15,4 & 1 120 and above – 30, 8, 2 & 1... any id...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Model View Control in C# Designing a presentation type application which consists of 2 forms, the first form will be used to control the presentation so it can be manipulated on the fly, it will be based off the first monitor of the pc, the second form will be on the second monitor (or projector). I need to update t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recover deleted rows from SQL Server 2000 A script accidentally deleted few rows from the database with the following query: DELETE FROM that_table WHERE id IN (100, 101, 102) More rows have been added in the mean time. Is there a way for me to recover the three rows into the same table (or perhaps another database...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: init, alloc and retain and "the initial value is never read" Ive have used the static analyser to look through my code and have arrived at the following question. NSString *string = [[NSString alloc] init]; string = [object name]; This give me a memory error saying that the initial value is never read. I replaced i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I show nested data into a tree? Further progress. Please see at http://www.sencha.com/forum/showthread.php?153986-Empty-column-something-I-can-t-get-with-Ext.data.TreeStore-and-or-Ext.tree.Panel I always appreciate any further advise. I am trying to develop a simple extJS Ext 4.0.2a script to display some n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to change Aptana3 html template?? learning js by using aptana, aptana2 can initial html file content in "Windows - Preferences - Aptana - HTML" But in aptana3 i couldn't find this setting. so i add new html file in project explorer by rightclick menu "new from template - html - xhtml 1.0 transitional template"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I return an image in an M-file? (MATLAB) My function file starts with function drawline(point1,point2,color,img). At the end, I'm supposed to return an image. How do I code the return line? I posted codes in another Stack Overflow question, Color issue in MATLAB. A: In your code, you should be returning the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server: Endless WHILE EXISTS loop I have problem with the following WHILE EXISTS loop. Could you consider what can be reason why it is endless loop and why it doesn't update values? declare @part varchar(20) while exists ((select top 1 * from part1 p where isnull(brojRacuna,'')='')) begin set @part='' set @part...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: what is the need for the explicit "return" keyword when using onsubmit in a form using Javascript? I have a C/C++ programming background, and while casually learning Javascript through the @3C webpages on JS, I found this piece of code - <html> <head> <script type="text/javascript"> function validateForm() { var x=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JTextArea only with numbers, but allowing negative values I have a JTextArea which only has to accept numbers. This is my code: DocumentFilter onlyNumberFilter = new AxisJTextFilter(); final JTextArea areaTextoXMin = new JTextArea(String.valueOf(xMin)); ((AbstractDocument)areaTextoXMin.getDocument()).setDocu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Git and Subversion in parallel (Tortoise) At work we use Subversion, I often use it with Tortoise. I want to start to use Git for non-official changes. One problem is we seem to use both SVN Git and Tortoise Git on the same directories. What would be the appropriate Git software to install? How to work? Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't get my datagridview to write back to MS Access database I am using MS Access 2003 and vb.net to develop a windows application of inventory management. I have used datagridview in the form and using FillBytoolstrip option, can filter data using type. But i have no idea as to how can i update the database to ref...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to keep html new line in textarea I am reading a column content using $("#myText").text($.trim($(this).closest('tr').next('tr').find('.mytext).text())); However, though there is multiple new lines, the text being copied doesn`t show the lines as new line but rather shows it as a line in the textrea. if my tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i create a User control of my asp.net web solution? I have asp.net Web Solution with WCF services. How do I convert the solution to a User control so that I can use it in my other applications uniformly. Actually I want to convert my application to a user control.what is the easiest way of doing it. its an A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get address out of a paragraph with regex Alright, this one's a bit of a pain. I'm doing some scraping with Python, trying to get an address out of a few lines of poorly tagged HTML. Here's a sample of the format: 256-555-5555<br/> 1234 Fake Ave S<br/> Gotham (Lower Ward)<br/> I'd like to retrieve only 1234 Fake ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Best way for Interpreter Executing I am writing a scripting language, i've done the lexer and parser and i want to dynamically execute in the memory. Lets say i have something like function Hello(World) { Print(world); } var world = "World"; var boolean = true; if(boolean == true) { Print("True is True");...
{ "language": "en", "url": "https://stackoverflow.com/questions/7632409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }