text
stringlengths
8
267k
meta
dict
Q: Why does Aquatic Prime fail to validate file on second attempt? I have the Objective-C version of Aquatic Prime working in my app. When I swap out the Objective-C class for the CoreFoundation functions, I can validate the license file once, but subsequent validation attempts in other parts of my code (using the sam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Corona SDK Memory Leak I'm writing a game using Corona for a game design class and though I'm still learning, I've got most of the basics down. Right now, I have a situation where the program slows down after about two minutes or so of playing, and I'm not entirely sure why. I've already implemented code to remove a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: app crashes right after splash screen in xcode 4 / ios 5 beta i am having problems with the new xcode 4.2 and beta ios 5. My app compiles and works in Debug mode both on the simulator and a device. When i build an adhoc build, archive it and install it on the device - the app crashes right after the splash screen gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use uint or int Definitely, I know the basic differences between unsigned integers (uint) and signed integers (int). I noticed that in .NET public classes, a property called Length is always using signed integers. Maybe this is because unsigned integers are not CLS compliant. However, for example, in my static funct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: trigger Android application from Web Application Hello all my problem is : We have to create a system in which we need to create both web(ASP.NET C#) and android application and we have to synchronize data on both interface. So is there any method/Way to trigger Android application from Web Application(ASP.NET C#). ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows explorer get list of selected items and pass it to another process I have to create File/Folder management system. In which user can select multiple files/folder and from context menu execute an command. That command sends list of all selected files/folders list to invoke a process. So that, process can work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why can't install the xdebug? my op system is XP. the PHP Version 5.3.6. the php path is D:/php i downloaded the PHP 5.3 VC6 (32 bit) version from the http://www.xdebug.org/download.php i added the following code to the php.ini: [Xdebug] zend_extension="D:/php/ext/php_xdebug.dll" xdebug.collect_params=On xdebug.col...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: endcoding error my code has a trouble with encoding error: File "test.py", line 1 SyntaxError: encoding problem: with BOM I attached the code below. is there any clear idea to fix it? the input and the output file contain Korean words, numbers, and english charaters. I try to run this code in Mac and windows, it doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set ASP.NET version to 3.5 in the IIS 6 Default Web site properties (ASP.NET tab) How to set ASP.NET version to 3.5 in the IIS 6 Default Web site properties (ASP.NET tab)? From what I can see was version 2 (even though I have install version .NET 3.5) A: There isn't a true "ASP.NET 3.5". "ASP.NET 3.5" is really "A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551034", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get instance of object from XML file? I have XML file of object.I want to get instance of that object.But i dont have class.I must read XML and create dynamically how to say class. How to do? A: See this page, it can help but you need .NET 4. A: I guess you want to read data from an XML into your class. If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HashPasswordForStoringInConfigFile - Different Hashes for same password I have recently implemented Hashing for my passwords in a project I am working on, and I cant seem to figure out what is going wrong. It seems that the HashPasswordForStoringInConfigFile() function is returning different values for the same pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Different MD5 hashes for .net and java `I want to encode my string using .net and pass it to a java program. I am using the same program for encryption and decryption on both the sides. But the java program and .net programs are returning different MD5 hash codes. Here are the codes for both my programs : VB.net md5...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Android have a standard Add/Edit/Delete list convention? Similar question, but this one is about Android. On the iPhone, there is a standard convention for editing lists. There is an Edit button and the + button above the list. You click on the Edit button and the list changes slightly notifying the user of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Vector rotation problem I'm working on a program with IK and have run into what I had at first thought was a trivial problem but have since had trouble solving it. Background: Everything is in 3d space. I'm using 3d Vectors and Quaternions to represent transforms. I have a limb which we will call V1. I want to rot...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RoR, page can not be redirected if the action contain thread I am trying to put some log from the sever to the browser. Here was what I had done: * *step1. start the websocket server in the action create. *step2. render the view which contain the websocket client to connect with the server. step1 works but the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pass httpcontext to WCF via Castle Windsor We are trying to inject the current http context (so we can get authentication info, e.g the forms authentication etc...)from our asp.net mvc web site into our service constructors. Our services are WCF and we are using Castle Windsor at the client and service layers. Is it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP, ping a list of IPs? I have a list of IPs which I want to ping via PHP (to save me the trouble of manually doing it via SSH). I can run exec, escapeshellarg, system etc on my server - how would I create a script to ping an IP once and return the response time? Any help would be greatly appreciated. Thank you :) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert timezone name to city name (remove continent part) I was wondering if anyone could help me figure out to to remove part of a string. I am using the java.util.TimeZone to retrieve time zone "ids" but I want to delete the continent/ prefix, basically stripping out the city name. I also have to replace all unde...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there another way for replacing except for Replace() function? In c programming language, I can do printf("%d\n", value); But in c#, how can I do it? For example string is "Good %s everybody" I want to replace %s with the variable. Are there any solution except for str.Replace("%s","good morning"); A: strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Listview rows order changes randomly on scroll of listview in android I have one ListView and one BaseAdapter.I am downloading Products from webservice and display on listview.It displays properly on listview. But when I scroll ListView displays rows in random position means sometimes third row display in first posi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Update UI using swingworker thread I want to use the swing worker thread to update my GUI in swing. pls any help is appreciated.I need to update only the status of 1 field using the thread i.e setText(). A: I just answer similar question on another forum for a question about SwingWorker: import java.awt.FlowLayout;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Master pages with Sharepoint 2010 I am new to sharepoint 2010, any one could share steps/links to create and use master pages in share point 2010. A: You need to enable publishing features on your site to change the master page. After that I recommend using http://startermasterpages.codeplex.com/ to customize your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to find anchor tag in a div and push it to an array using jquery how to find anchor tag in a div and push it to an array using jquery. i tried it but my result shows arry=[jquery(a1,a2,a3,a4,a5)] and if i tried to check the array length it shows only one but not 5. please help. Iam getting the anchor tag by $(el...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add a new column to the Documents library upload form? I have added a column to the documents library of my SharePoint site and it appears on the edit form but it does not appear on the upload form. How do I get my new column to appear on the upload form? A: It should appear once the document has been uplo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why my jquery code works in IE9 but not in IE8? <script> $(document).ready(function() { $("#various2").fancybox({ 'width': 800, 'height': 570, 'type':'iframe' }); }); </script> I'm getting error in IE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Create a Global Level Function with UI capability I have a function to find an employee's id number from my sqlite database. The function allows the user to look up by id or name (first and/or last); therefore it creates several dialog boxes and finds the data through an If Else Then tree. Here's the code f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check if app is in top charts How can I check in iTunes Connect if my app(s) is in any top lists/charts in the App Store? A: I'm using appannie.com : Sales. Reviews. Rankings. 24/7. Global.. You can monitor all your AppStore and Mac AppStore applications. Ranks and reviews all over the world AppStores. And ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you use ImageMagick in Perl? I'm trying to get the command line equivalent of "identify image.png" to work in Perl. How do you go about doing this? Thanks. Update: I have the following code use Image::Magick; $image = Image::Magick->new; open(IMAGE, 'image.gif'); $image->Identify(f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Displaying Bar Chart (and other funky graphics) Any suggestions on freely available libraries to display a bar chart and other "cool" graphics in Visual C++? PS: Please don't say MFC. MFC-based libraries are fine! A: Although not a graphing library, Qt should work pretty nicely for drawing basic graphs, more advan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to generate a video signal from Android device via USB? Is it possible to create an application for Android, which can generate a video signal (HDMI or VGA) via USB? Any Android device has miniUSB port. Theoretically it's possible to create a small commutator device on microcontroller or microscheme, which will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating a WCF webservice with a single standard response object I've been asked to implement a webservice using WCF that will return a single standard response object that indicates whether the webservice call succeeds or fails and an error message if one occurs. It looks to me like this is not how WCF is intended...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Queries based on forms and MS Access development i have 2 questions when i use access: * *i create a form with comboBox and calenders, i want to choose an employee from combobox and from date and to date and when i click ok i will send these parameters to a query to return the result in a query (result is the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: This XML file does not appear to have any style information associated with it I have deployed my webservice into Tomcat. The WSDL has got some operations like ViewOptions, but when I ran that, I got this error: This XML file does not appear to have any style information associated with it. The document tree is sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP Regex Match Troubles I have some data in a string in the format key: value key: value key: value etc... I'm trying to turn it into an array using a regex match. The keys are all uppercase letters directly followed by a colon. Then there is a space and the value starts. This is then followed by a space and then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any CSS file that has the following properties? I am looking for CSS template that has the following properties: * *Website title, menu bar and search box at the top of the page *Tree-based view for the the folders or sub pages on the left *body and the main content on the right I googled about it bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I set path while saving a cookie value in JavaScript? I am saving some cookie values on an ASP page. I want to set the root path for cookie so that the cookie will be available on all pages. Currently the cookie path is /v/abcfile/frontend/ Please help me. A: document.cookie = "cookiename=Some Name; path=/";...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: Is Hudson a mature continuous integration tool now? I have searched the SO site for question about Hudson but some of it are a little dated now say 2 years or more. Some comments link Hudson as 'newbie' ing the CI Field I just would like to know if Hudson is mature right now and is the best option for a CI tool. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Jersey + Oauth 2.0 I'm working on the creation of a REST API using Jersey + Spring 3.0. Jersey is set up and is working correctly however I'm at the point where I need to add authentication to the service. Initially I was asked to look into Oauth however I am considering Oauth 2.0 due to it (apparently) being quite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting IPad App to Universal App We currently have an app that targets the IPad. We now would like to target the IPhone aswell. Im just wondering how we go about this? UI layout and functionality will be different but under the hood they will be sharing a lot of the same code. Am I best creating a Universal app?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set character encoding to a request in Restlet Framework? I am using the Restlet Framework to receive and send the data. //Receiving the Request. Request helpReq = new Request(); Here is my code where I want to send(set) the character encoding along with the response(helpRes).. //Responding to the Request Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: setHorizontallyScrolling causes text to restart in TextView I have added marquee effect in my TextView and appending text to this TextView at run time. After appending I call setHorizontallyScrolling to avoid text overwriting. But this call causes the text to restart again. Is it possible to stop this restart and co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery get call complete function not working I have a web application that gets data with a get call. When it is called, it sets a static variable. After the call is complete I want to get the value, but the complete function that I call is not working, its calling it to fast because its null. $.get('../Controls/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I overwrite file contents with new content in PHP? I tried to use fopen, but I only managed to append content to end of file. Is it possible to overwrite all contents with new content in PHP? A: $fname = "database.php"; $fhandle = fopen($fname,"r"); $content = fread($fhandle,filesize($fname)); $content = st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551132", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: Itransact payment gateway Does itransact allowing to set trial period for individual transactions?
{ "language": "en", "url": "https://stackoverflow.com/questions/7551141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to calculate correlation of two variables in a huge data set in R? I've got a huge data set with six columns (call them A, B, C, D, E, F), about 450,000 rows. I simply tried to find the correlation between columns A and B: cor(A, B) and I got [1] NA as a result. What can I do to fix this problem? A: You mig...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: print preview in wpf with telerik document in rich text box telerik rich text box doesnot support print preview,so im trying to implement print preview but im getting the follwing error Cannot implicitly convert type 'Telerik.Windows.Documents.Model.RadDocument' to 'System.Drawing.Printing.PrintDocument' So how can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I implement digit grouping input mask using InputFilter? I am using InputFilter class to make a masked EditText supporting digit grouping. For example when the user inserts" 12345" I want to show "12,345" in EditText. How can I implement it? This is my incomplete code: InputFilter IF = new InputFilte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ObjectDataSource SelectParameter is an Object? im using C# under Visual studio 2010 i have an object datasource that does performs a certain function taking 2 parameters the first is int, the 2nd in a list how can i pass this list of ints to the object datasource!???? List<int> a = new List<int>(); a=Some Function t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programming languages supported by meego What are the programming languages supported by Meego ? Where Can I get any sample library built in meego for some basic analysis in ubuntu environment... I am going to test libraries built in meego...I am trying to analyse the type of libraries I may be getting.. A: The pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Navigate on mouse click and change colour on mouse over of div using jquery <c:forEach items="${pagedListHolder.pageList}" var="user"> <div class="dataName" id="userlist" onclick="DoNav('${pageContext.request.contextPath}/secure/user/${user.id}');" > <div class="dataName1"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pushed icon in toolbar I put on bevel button in toolbar, set image for this button and uncheck checkbox bordered. How make pushed icon in toolbar like this? A: Return your item identifiers in the delegate of the toolbar: - (NSArray*)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar { return _toolbarIdentif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jquery function undefined for IE9 Iam new @ jquery - Thats working for almost all versions of IE except IE9 it says "Error: 'f' is undefined" i didnt know why ?? and if its not recommended to giving function name like that way then what should i do ? $(document).ready(function f(txtName) { $("#ctl00_Conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find out if my Open Graph app has already been added to the Timeline programmatically? Assume, that besides using the "Add to Timeline" Social Plugin I want to show a specific message to the user only if she did not yet add my app to her Timeline. Is there any method in the JavaScript SDK that lets me check...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the correct procedure to deploy a Visual studio 2008 Web Application to IIS 6 Currently, I have a Visual Studio 2008 Web Application using .NET Framework 3.5 and I want to deploy to my IIS 6 server. I have try to use the Build > Publish menu to publish my site to IIS 6 but it keep on giving me this error: V...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I keep the selection in ListBox when reloading ItemsSource I am experimenting with WPF and MVVM in our system. However iam having a problem with keeping things selected in lists using only MVVM ( without doing extra CollectionViews ). What i currently have is the list ObservableCollection<ReservationCustomerL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Groovy Builder support How can i build the above pattern using groovy builder support emp = empFileFactory.root() { emp(id: '3', value: '1') emp(id:'24') { emp(id: '1', value: '2') emp(id: '6', value: '7') emp(id: '7', value: '1') } emp(id: '25') { emp(id: '1', value: '1') emp(id: '...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Table with no more than 30k records needs index rebuilding after a handful of inserts I have a table with 20 or so columns. I have approximately 7 non-clustered indexes in that table on the columns that users filter by more often. The active records (those that the users see on their screen) are no more than 700-800...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: No module named registro.forms in my own local django server [edited] im setting Django Server in my Ubuntu machine, apache/wsgi, but im getting a error in my view: was No module named registro.forms now after some code in my wsgi is No module name forms #registro.views from registro.forms import ComercioForm In ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inheriting from an instance of a template class I have two classes as follows in a header file template<size_t N> class Parent{ protected: char array[N]; size_t i; public: virtual void operator()(int i); }; template<size_t N> void Parent<N>::operator()(int i){ this->i = i; } class Child: pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: push an array of references to any number of hashes [ perl ] suppose i have an array: @array = { 'A' => "", 'B' => 0, 'C' => 0, 'D' => 0, }; i can add an element by: $count = 0; $array[$count]->{A} = "abcd"; $array[$count]->{B} = 789; $array[$count]->{C} = 456; $array[$count]->{D} = 123; an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I read SMS messages from the inbox programmatically in blackberry? I want to read SMS messages from Inbox,Draft,and sent from my blackberry device programmatically. Would any one will help me. A: There is only way to access SMS messages, implement MessageListener and intercept messages when they are sending...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Read Users Wall using Facebook Graph API for iPhone I want to retrieve all the feeds in the users wall Posts by my friends, Posts from the Page I Liked, Pictures, Videos Posted basically everything my wall shows. I used this [facebookObj requestWithGraphPath:@"me/feed" andDelegate:delegateObj]; But this results ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Getter and Setter for arraylist in java I have a problem that I want to set and get an ArrayList from setter and getter methods of android. But I am new to android and Java and don't know how to do that? Can anyone help me regarding this problem? A: For better Encapsulation / OO design I would do following im...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Deleting columns from a file with awk or from command line on linux How can I delete some columns from a tab separated fields file with awk? c1 c2 c3 ..... c60 For example, delete columns between 3 and 29 . A: This is what the cut command is for: cut -f1,2,30- inputfile The default is tab. You can change that wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: instruments xcode4 not working? Im following Ray Wenderlich tutorial for instruments, but I don't know why the profiling is not showing the leaked object?? - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString * sushiName = [_sushiTypes objectAtIndex:indexPath.row];...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Find location using Android and keyword search in Google Maps How do I use the Google Maps API to search the destination by some keywords and get a list of options of destination? I'm developing an Android application that uses using Google Maps.
{ "language": "en", "url": "https://stackoverflow.com/questions/7551227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to place a button at a position little above the bottom in android I need to place a button at the bottom of screen, leaving some space below it. In other words I am using these two attributes for my button - android:layout_alignParentBottom="true" android:layout_marginBottom="20dp" but the margin attribute wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which performances better in a query, 'LIKE' or '='? I am using asp.net mvc3. Which of the two '=' or 'LIKE' will perform faster in my SQL query. A: = will be faster than LIKE because testing against exact matches is faster in SQL. The LIKE expression needs to scan the string and search for occurrences of the give...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to fire an event from thickbox without closing it? I'm working with thickbox where i need to use asp controls and have to call the events of the corresponding controls as well. Recently i faced an issue like, asp control's events are not getting fired when used within the thickbox. Following are the step by step...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bind to an exported value by pinvoke I have a dll that exports not only functions, but also values. The dll I'm interested in is from the R Project (http://www.r-project.org/), it's in the R.dll that contains the r language runtime. The declaration in the header file is: LibExtern SEXP R_GlobalEnv; And when whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Workaround for passing parameter to jQuery ready() I have some code called on jQuery document.ready() which is used in multiple HTML files. Now the difference is each of these HTMLs uses a different div id. I know one option is to just check for hardcode div ids inside $(document).ready() . But I wanted to write a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set the disabled property of the drop down list based on the state of the check boxon loading the page In my application I want to enable a dropdown list box only when the check box is checked and disable it when the check box is unchecked. I am able to achieve this through jquery. The issue I am seeing if I had sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass two dimensions array to a function and how to call it I've tried many time to pass the array to a function then do some calculation such as getting the total of the columns, the problem is I don't know how to call the result form the function, usually I get errors. this is just one code I'm trying to sol...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Github multiple machine with single user I am trying to access a github repository from my desktop and laptop with the same user. Could it be possible, if yes then how? I am thankful to you for your cooperation and time. Yours, A: Create a key pair on each machine to push to Github, and you can add as much ssh key...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create navigation bar with navigation back button in a sub view page in iphone Here i developing simple application iphone. I need to create navigation bar with navigation back button in iphone. I'm using view controller page. I want to implement navigation controller. But i could not create back button in ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert SQL Server 2005 database file into Excel Possible Duplicate: Can you connect to sql server from Excel? I have my application which I am saving data into SQL Server Express Edition. I want to upload the same data in excel. Please help if any tool available. A: There are quite a few ways to import d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems during generating pdf report because of huge data I have this problem during generating pdf reports. I have some huge data in my database. When I generate the report as HTML, I could use pagination to filter the results so that less data is there to process and show the user. However, in the case of pdf rep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Training data for sentiment analysis Where can I get a corpus of documents that have already been classified as positive/negative for sentiment in the corporate domain? I want a large corpus of documents that provide reviews for companies, like reviews of companies provided by analysts and media. I find corpora that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Can anyone explain what is happening in this bit of Javascript? I was looking through a jQuery smooth-scrolling tutorial, and trying to figure out how it worked, when I hit this line of code: $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']'); I can't figure out what it does. It looks lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there a way to see if two lists are the exact same without looping in python? Say I have: a = [1, 2, 3] b = [1, 2, 3] is there a way to test the lists to see if they are the same, without having to loop through each entry? Here's what I was thinking..I know to check if two variables are the same I could use: id(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Creating a Smudge tool effect in ipad apps How to create a smudge tool effect in ipad apps using core graphics?. A: Andy Finnell wrote a blog post about implementing smudge and stamp tools. Some of the code uses Core Graphics; some of it uses AppKit, which is Mac-specific. Even so, it should be possible for you to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Instant Alert notification feature using PHP Need to display incoming mails when the user is currently logged in. Can we use socket server programming concept for this requirement. Need help? A: http://code.google.com/p/phpwebsocket/ Avoid using PHP's native socket support. They're an absolute mess, you will end up...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extension-less URLs: Url Rerwrite or Routing? I would like to make my ASP.NET web page URLs without .aspx extensions. I can do it in two ways, use IIS7 URL Rewrite module or ASP.NET URL Routing. Which method to choose? A: Use ASP.NET Routing. It's the most up-to-date and right way to do that, since .NET 4.0. Read...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Pointer to vector of vectors of ints Hi I am trying to create a pointer to a vector of vectors of int, that is to achieve an effect similar to 2-d arrays. I use the following initialization - vector< vector<int> >* v = new vector< <vector<int> >(10, vector<int>(5, 1)); However, gcc complains- $ c++ test.cpp test.cp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any source for learning phonegap? I am new to phonegap and I am searching for a source such as websites to learn how to use it. I was searching on http://wiki.phonegap.com but there is only basic information such as installation of eclipse and sdk etc. I need some source code for accessing contacts, camera, accelero...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Keep android alarms alive, even after process killed by a task manager I am writing an alarm program. My problem is task managers, like advanced task manager or Samsung task manager, remove my alarms when clearing memory. Is there any way of preventing task managers from removing my alarms? Or a way to be notified o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Optimize SELECT ... WHERE IN (...) I'm receiving a sequence of product IDs from external system. I have to show the product information preserving the sequence. I'm using the following select to do so: SELECT * FROM products WHERE prodid in (10331,11639,12127..) ORDER BY Field(prodid, 10331,11639,12127...); Seque...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I make an position: relative nested in a position: absolute clikable with? I am translating a flash carousel to JavaScript and I am having problems with the position. This is the CSS of the div that contains the images. #tiovivo{ height:382px; width:793px; background-color:#F5F5F5; z-index:-100...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Gmail account to authenticate the app in android? In android how can I authenticate the user by Gmail account. Is their any api or support available for android. Thanks... A: Yes, you can use OAuth in Android. There's a fairly detailed post on this: * *OAuth in Android using the Google APIs Client Lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Connecting to MS SQL Server on Linux in php $server = 'x.x.x.x\SQLEXPRESS'; $link = mssql_connect($server, 'username', 'password'); if (!$link) { die('Something went wrong while connecting to MSSQL'); } else { echo "Connected!"; } It works on windows operating system. but when run linux show "Something we...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't margin-top using percent work in IE7? IE7 doesn't seem to understand top: 106%: .flex-caption { width: 76%; margin-left: 170px; position: absolute; left: 0; right: 0; top: 106%; color: #b8b8b8; font-size: 14px; line-height: 48px; } http://www.juxt2.com/test/skeleton/index.html What kin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to decode json in android this is my json data [{"FeedbackId":"1","Phoneid":"9774d56d682e549c","feedbackdate":"2011\/9 \/24","GuestName":"sdf","Address":"sdf","Phone":"456","Email":"sdf","suggestion":"sdf","grievances":"sdf","visitAgain":"0","purposeofvisit":"sdf","flag":"1"},{"FeedbackId":"2","Phoneid":"9774d5...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Checkboxes inside dropdown menu php I want to create dropdown menu with multiple checkboxes using framework of cakephp. For example: I have a dropdown having four options respectively-- a b c d Now I want checkboxes before each option. Please help me to solve this problem. A: You can't do this with the default <se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problems when assigning values via JavaScript to Asp.net labels and then passing via C# session object I am assigning variables to asp labels via javascript with a simple innerHTML call example: document.getElementById('labelName').innerHTML = parseFloat(var).toFixed(2); It appears in the label fine, and I am able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#: Accessing files added to project folder how can i access files I've included in the project folder in Visual C# Windows Application... I've created a folder in the solution and I've added some files. Now, My problem is how to access them? In ASP.NET C# there is ResolveUrl / Url.Content... etc... In Visual C#? wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: best way to secure sessions (consulting) Ok, yes, I've read the other Qs regarding this topic, but I have several questions more and some Qs were several years old. Anyways, I'm building an admin cp for an insurance company that contains sensitive client info. Such as passwords, social security numbers, and drivers ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with selecting a nested last element I have this HTML code with applied CSS. I need all div with cnt-list-box in red but ONLY the LAST div cnt-list-box with different color. Any ideas? <div class="cnt-box-1"> <div class="cnt-list-box">content 1</div> <div class="cnt-list-box">content 2</div> <div...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++: Is it safe to move a jpeg around in memory using a std::string? I have an external_jpeg_func() that takes jpeg data in a char array to do stuff with it. I am unable to modify this function. In order to provide it the char array, I do something like the following: //what the funcs take as inputs std::string my_g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ASP.net EF Code First - 2 tables (ASP.net MCV 3 Razor View) Hey, my problem is this: I have in the models 2 classes, one called X, one called Y. X has a property for class Y. Now, I seeded them and I have a database with 2 tables for each. I need to use both of them in a single page so I passed them with a 3rd clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using VB.net and C#.net in a ASP.net Webapplication I am new to ASP.NET, and I am working on a project which contains two C# and one VB.NET projects. I want to put it all in a single project. How would I do it? A: You can't mix different languages within a same project - but it's simple enough to have a class libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7551329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }