text
stringlengths
8
267k
meta
dict
Q: PHP Regex match words in a string excluding one specific word I have a text ($txt), an array of words ($words) i want to add a link and a word ($wordToExclude) that must be not replaced. $words = array ('adipiscing','molestie','fringilla'); $wordToExclude = 'consectetur adipiscing'; $txt = 'Lorem ipsum dolor sit a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Strange behavior when loading mdi winform c# .net I´m getting a strange behavior in a c# MDI WinForms application. When i open a specific form together with any other form, this specific form locks up. Somehow its grouping the ControlBox of both forms into one, looking like this: As the forms has stopped respondin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UScrollView lazy loading unload view I have a question regarding the page control sample code from apple. in the scrollViewDidScroll method there's a comment: // A possible optimization would be to unload the views+controllers which are no longer visible I wonder how to unload the views+controllers. As I have proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML5 Javascript API Intellisense support in visual studio I started playing with HTML5/CSS3 and the new JavaScript API something i noticed in VS 2010 is it doesn't have any support for the new JavaScript API i was wondering if there is anything i can do about it so in Vs2010 if i type : var canvas = document.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can i get list of files which are matching search keyword Doing a global search box, need to get filename & directory path of matching pattern inside the file content, Can anybody help with the code? I'm new to PHP can anybody help plz. A: set a new variable depending on the path to the document ie. if (dirnam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: google app engine is detecting python25 as default hi i am trying to install Google app engine with windows MSI i have two python version on my windows one is python25 and other is python26, and i have python26 path set in my environmental variables, but Google app engine is detecting python25 as default prerequisit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 and Google maps api v3 incompatibilities I have a rails 3.1 application with this simple code in the home page (rhtml file), * *If I run the same code in a html file it works. *If I run this in my rails app it doesn't and I do not get any kind of errors using firebug. Also: I have jquery-rails gem. Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add an Array element to an NSMutableArray which already contains another array Values? I have three different NSMutableArray, lets say A,B,and C. I am adding the A array to the C and from array B I need only one element. So i need to add that element to the C array. Please give me an idea. A: NSMutableArr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wait for the result of an external webservice inside a task I need to write a bunch of tasks where every task needs to query an external web service. The web service always replies with a 202 ACCEPTED status and points in the Location header to the URI where the result can be polled. The time it takes for this web s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Complex Insert Stored Proc unsuitable for EF? I'm trying to build a new app on top of an existing DB. User Credentials are retrieved via a separate system and return a GUID to the client app identifying the user, however this database uses a bigInt for user identification, to get around the problem that each SP in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mobile web app and offline access to audio files Is it possible to cache audio files for an offline access in a mobile web app using an HTML5 cache manifest ? I also don't understand how size limitations works. (I read 5MB limit for iOS) I don't find resources for that or best practices. Thanks for your help A: Yep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android WebVIew WebViewClient I have a webView in my application. When a person loads a url, the webpage is loaded in the browser and not in my application as the options menu is the default and not what I have assigned. How can I stop this and make it load in my webview and not the browser? I tried webViewClient bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Manipulating Excel Spreadsheats using C sharp I need to manipulate Excel Spreadsheets in C sharp .net 2010. The sum total of what I need to do is loop through an excel spreadsheet, add three columns to the left of the original columns based on some calculations from the other spreadsheets plus some other functions....
{ "language": "en", "url": "https://stackoverflow.com/questions/7514599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: same provisioning profile in sample app and the original I want to add in-app purchase to my application. For this I tried a sample code to check how it is working with my provisioning profile. But now, when I tried to do it in my application, an error occurs, and the error is, Terminating app due to uncaught excep...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Server Client Program in C In server-client program server can listen for a number of clients. listen(sockfd,5); Does it mean that server can handle 5 clients at the same time. Or I have to use multi threading for that? A: No, it means 5 clients can connect without you calling accept. After those 5 clients connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update an XML column with value from T-SQL built-in function? I have a MS SQL 2008 R2 Standard database. I have a column with varchar(250) data and a column with xml. CREATE TABLE [dbo].[art]( [id] [int] IDENTITY(1,1) NOT NULL, [idstr] [varchar](250) NULL, [rest] [xml] NOT NULL, CONSTRAINT [PK_art] PRIMAR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to display data in android page using Accordion? I need to display details of a customer. I need to use Accordion to display the details. Can anybody suggest how to do that in android? Please help me regarding this. A: It is possible. There are a lot of ways to do it. For example visit Android - accordion widge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: CONCAT() result unexpectedly truncated when LEFT JOIN or GROUP BY is used in query A MySQL query containing a CONCAT() is truncating the result unexpectedly and returning only 5 of the anticipated 6 characters ('abcd2' instead of abcd21'). A trimmed down version of the actual query follows: SELECT c.cid, c.club, c.c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Count processed records of a table at the runtime of a script? I have a php script and its running and using two mysql tables for processing. Now i want to check that how many records has that script processed so far as my tables are having huge amount of data more than 90 lakhs. How can i check this at the same tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress theme code in simple PHP website I have a php website, in which I have used a lot of jquery plugins and accessing another database for header and footer contents dynamically.Now I have to add a blog for which I am checking wordpress. I can create the theme, but cannot access the header and footer dynamic c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Collections via MXBeans I need to define and implement an MXBean interface. One of the methods would return a Collection. This seems to be not supported by MXBeans. I get an OpenDataException saying "Cannot convert type: java.util.Collection". If I change it to List or Set then it works. I have not found any documen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can i made a text file (.txt) from my database data and store in on any particular folder on server? i have a task assigned that i have to create a text file (notepad) from database table email which have more than 12000 rows and each row have a email-id,the table just have ID int identity primary key and email nvar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In need for free flash "image player" do you know about some free flash web application which can load images directly from folder and animate them (as a video player)? I mean, I have a folder with set of images and I want to animate them (switch one by one) in e.g. alphabetic order. Set of images will be randomly c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook share shows correct share url when I use domain name and on ip address when I share something like mydomain.com/mypage/xxx facebook gives me correct share link but when i try 111.222.333.444/mypage/xxx it shares the home page of my site insted of the page I referred to A: Sharing ip-based url's sounds li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove items from Activerecord query resultset? I get a resultset from a Rails find query. I want to iterate over that resultset and depending on certain criteria drop records from that resultset before passing it on for further processing. The additional criteria are external to the data held in the databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: PHP script run via cron does not connect to database I am trying to connect to mysql database in a PHP script run via cron job. It does not connect to the database somehow. I run the same script in my browser and everything works well. I use free BSD and following is the piece of code I try to run: ini_set(max_execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to call JQuery CheckBox Changed Event inside a Jquery Accordion Header? Thanks for all your valuable responses to the questions that I have asked before, those suggestions helped me a lot. I have one more question here. I am using a JQuery accordion control in my page,and the accordion header contains a checkbox...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Crm dynamics custom action after clicking Invoice Paid In MS CRM When user clicks Invoice Paid, I need to notify external site that this invoice was paid Is this possible to achieve this? A: Yes. There are two separate ways I can think of to do this: * *Hide and recreate the Invoice Paid button via the CRM's Ri...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Entry selection list with tkinter How can I generate a normal selection list (like the "State" field in any HTML form for postal addresses) using Python tkinter? As illustrated below, the Listbox widget displays all the selections in a large box all the time, and if you reduce the height to 1, it does not expand th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Override Output Caching duration for Client caching I have a REST based WCF service which returns JSON data as response. To improve performance Output Caching is enabled with location as ANY and duration 1 hr. I want to allow clients to cache the response for a period of 1 month while keeping the data cached on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Connect app users with a mutual friend I'm looking to create an app that allows people to create connections with each other. I'd like to be able to recommend that somebody connects to another user who has authorised the app if they have a mutual Facebook friend. I do not need or really want to pull out any informat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Branching points(OpenCV,C++) I want to identify the branching points of the lightning in this image: http://i.stack.imgur.com/PXujf.jpg What I did first was threshold the image such that I get the lighning part of the image and discard the backround. This is the result http://i.stack.imgur.com/IYNTi.jpg I used the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get coordinates (CGRect) for the selected text in UIWebView? I have simple UIWebView with loaded html. I want to show the PopoverView pointed to the selected text. I can get the menuFrame of the UIMenuController and use its rect, but the result isn't as accurate at the corners of the screen as I need. I can c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: select count of field by group I have a table with the following table: id | score | type 1 | 1 | "a" 2 | 4 | "b" 3 | 2 | "b" 4 | 53 | "c" 5 | 8 | "a" I need to select the count of score based on the type. So my results will be: totalScore | type 9 | "a" 6 | "b" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: StartActivityForResult I have 4 activities A,B,C,D. I need to start activity 'A'(It Consists of a textview,button) initially and from activity 'A' i need to start activity 'B'(With the help of a button). Now,From 'B' i need to start 'C' & 'D' activities (Condition: Button1(Activity 'B') is hit then it should start A...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: friend function, cpp We had an assignment in school implementing a Matrix class that overloads all arithmetic operators. What I did was to (for example) define += as a member function, and then define + as a non-member function that uses += function (both in the same file, but + outside the class). The school staff...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: not able to get the id of the word from sqlite android I am getting the word from the text view and passing to DB to get its id, i am able to get the word but not able to get the id. please look at my code and tell me what is the mistake and help me correct it public void onClick(View v) { // TODO Auto-gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create Django Apps with life cycle? We are developing a huge application on Django contains lot of apps with dependency in between. We want to implement a life-cycle(install,onload,unload,uninstall) for apps, since it is must have feature(after deployment); is there any frameworks or packages existed ? What i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create draggable widgets? Background I am tasked with developing the front-end to an analytics product that presents the information to the user in a customizable dashboard like the one used by Google Analytics: - Dashboard is comprised of draggable widgets arranged in a grid layout - Widgets have a drag ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android - Problem with ViewFlipper I am making a game that requires multiple views within an Activity, and i decided to use Viewflipper to do. The thing is. I need to have 3 views in in the viewflipper, and the LAST view will transfer back to the first one. My problem is that the buttons are acting weird, and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disabling layout for AJAX module How can I disable the layout for AJAX module? I have crated the module and tried to add the entry to view.yml referring to the module as ajax:, but it didn't work. Currently, I use $this->setLayout(false), which is not really nice... Also, according this doc, view.yml is deprecated....
{ "language": "en", "url": "https://stackoverflow.com/questions/7514665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: phonegap android ajax call not appending data I'm new to phonegap and android. I am trying to create a project which fetch pages/data from webserver but it is not working. The code i have used is shown below, facing problem in appending data from ajax call. when application starts in emulator it shows the alert with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Condition in read() function CakePHP In CakePHP function edit I use read() function as: $this->data = $this->Article->read(null, $id); It brings all fields of $id. Now, what I am trying to tweak to give one more condition in read() to get articles only if user logged in is related to it. eg: $this->Article->user...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get a SPNEGO / Kerberos Session key -and implement HTTP Authentication:Negotiate on my own client I was recently exposed to a new authentication method i had no idea of. After reading a bit and researching to understand it,I understood it has something to do with SPNEGO, or maybe it is just spnego. Im running...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery failure in javascript_include_tag during migration to Rails 3.1 I am trying to migrate an application from Rails 3 to 3.1 and having problems with jQuery. The error is bellow. If I remove 'javascript_include_tag "application"' all works fine (with no javascript), so something javascript-related is missing. Sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Help to solve Apple's crash-reports logs my app was rejected for a crash that i didn't notice on the simulator. Here are the logs, (already imported on XCode > Organizer ) can someone help me with this? Incident Identifier: 88AD655D-3540-419C-A883-EFCEEB8CFE16 CrashReporter Key: 6b6d313765323bdd8ad35c9b99c487d423...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Actions: Create and View button disappeared in cugar crm in custom modules I have added several new custom modules in SugarCRM via the module builder. Now the problem is, that in the menu tab under Actions, Create ... and View ... disappeared. Is it possible getting these two buttons back again? Thanks for help! No...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I fix the indentation in a facebook like-box? I can go to facebook and get the code for a "like box". Very handy. Problem is, the display of this box is lame. it's not consistent. The first article in the 'stream' is displayed with this sort of indentation: The next article in the stream is displayed w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Fluid Yet Restricted Layout I have a need where I need to show 3 lines of tags. Tags are just android button elements with some background and padding. So assume my web service returns 7 tags and their size is unknown unless they are added to the view. Once they are added to the view they result into 4 line...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UPDATE MySQL table that contains comma (,) in the field Imported into a MySQL table is a report that contains a user generated field value. Possible field values include: * *PREFIX,1234 *PREFIX1234 *PREFIX_1234 All the example values represent the same thing but are typed in differently (I don't control the i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jUnit test for addAll method For my assignment, I have to develop several jUnit tests for the method: addAll(int index, Collection c) This method is part of the class ArrayList - built in to java. I figured out how to create the tests and run them in Eclipse IDE, but I'm a little confused as to exactly how I'm sup...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Package updating another package from another repository I've created repository where I store my own packages. System uses my and some other public repositories. So now I've a package in my repo which I want to be as an update for some other package from another repository. The repositories are rpm package based. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mvc3 EditForModel I'm trying to get the EditFor or/and the EditForModel to work in mvc3, but it does not render anything on the page. I can get LabelFor and TextFor to work, but not the model level stuff. Any help would be great. My controller event is this: public override ViewResult Index() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why isn't my data getting saved in Core Data? I am trying to save multiple rows into my coredata database using the following code. It only saves the last row. Why is it doing that? nsManagedObject1.column1 = @"First row"; nsManagedObject1.column2 = @"Test 2"; //insert first row if (![context save:&error]) { NS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DIVs overlapping. Need to move it over so they don't Basically what the title says. Though the spacing needs to be the same on any resoulution. I tried to do it with css but on different resolutions it moves around a bit. It dosn't matter how you do it (javascript, css, html), as long as it works. You can view the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: System.TypeInitializationException using Emgu.CV in C# At this point I have a function which calls for an image from my camera interface. This image is then saved to hard drive and also displayed in the Windows Forms GUI. The function inside the camera interface which returns the image is as follows: height and widt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Enable and disable button using javascript and asp.net I am checking if user exists in database if exists I am showing message as "existed user" and then I need to disable the signup button if not I need to enable it. I am unable to enable and disable the sign Up button. Can anyone help me in this issue? Here is my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: "Web service call failed: 0" when calling from DynamicPopulateExtender I am calling a web service from an ASP DynamicPopulateExtender, but seem to get the "Web Service Call Failed: 0" error, as if it's not finding the web service. Is there another reason why error code 0 would apply? Here's the .aspx file: <as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: phone gap adding contacts problem iam just practicing with phone gap for android app. I found a piece of code in docs.phonegap.com, regarding adding contacts function onDeviceReady() { alert('onDeviceReady: PhoneGap1'); var myContact = navigator.contacts.create({"displayName": "Test User"}); alert(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best way to profile my javascript code ? I am interested in know how much memory my JavaScript code running inside a browser is consuming and how it is increasing decreasing with time. How do I do it ? A: http://getfirebug.com/javascript Firebug includes a powerful JavaScript debugger that lets you pau...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What are the benefits available in itextsharp.dll commercial license than in open source I am developing a tool. i want to know the benefits available in itextsharp.dll commercial license than in open source. thanks in advance... A: Open source license is AGPL. If you extend their source or link to the binary you n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is one memory leak normal for an app? I tested my app with the Leaks tool to determine leaks. I resolved all leaks but one. This one seems difficult to remove. I am working on it but not sure what will remove the leak. Is it normal for apps to have one or two leaks which don't leak that much memory over the usage of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NPM Keeps Having Issues Finding My Node Path Here's an example for me trying to install Node-Proxy because NowJS needs it: sudo npm install node-proxy > node-proxy@0.5.2 install /home/jennifer/node_modules/node-proxy > make BUILDING: C++ Component Checking for program g++ or c++ : /usr/bin/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SolrJ's UpdateRequest worth trying instead setting autoCommit in config? I am getting sometimes timeouts while inserting documents into Solr with SolrJ. Now I am searching for a solution and thought, maybe the autocommit could be a possible approach. I can set it directly in the solrConfig.xml or I can use CommitWit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the locale from a string if have a problem getting the locale out of a string like: menu_title_en_US menu_title_en The locale in this string would be "en_US". The string that i have to deal with only have alphanumeric characters and underscores. Like variable names in Python. I have tried the following regex so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML & Javascript Code within PHP How's that for a title! Once again I find myself stumbling through lines of code that I don't really understand, and in doing so failing at almost every hurdle. I have a php file xxxxx.php and what I'm trying to do is: from within a javascript function, set the properties of a div, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514753", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get css values in IE7 when "auto" is returned I'm trying to read the height of a div in IE7. Element.currentStyle returns "auto". How do I now calculate the height of this element? How does jQuery accomplish this? Its height() function is able to retrieve the value(http://api.jquery.com/height/) when IE devel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select Case query not working New to SQL and in the process of developing query, with the to replicate part of an ETL process. A billing code1 = bf, is then set to debt code 1. If billing field (debt code) exceeds 100 characters then add '*' as prefix. However query will fall down because billing code1 = bf returns...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: which method to choose for jmx communication I am developing a monitoring management java application using jmx api.I have seen examples in internet and be able to make remote calls from client application to server.My question ath this point is what will be best practise for communication parameters of remote metho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Weblogic 10.3.4 jsf 1.2 encodes special characters We have a web application, which uses weblogic jsf 1.2 implementation from deployable-libraries(jsf-1.2.war). We started to use weblogic jsf impl after having some problems with compatibility of packed jsf-impl and weblogic 10.3.4. So the problem is that, we have ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way for C++ application function to turn on the computer? i need to find away to turn on the pc from c++ application , is there any way to do this? Thanks A: If the computer is off, it can't be executing code, and therefore can't turn itself on programmatically. ACPI changes that somewhat, but for us ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shortest way to generate a string from objects values in JavaScript I've got an object : var obj = { a: 'hello', b: 32, c: 'foo' } I need to extract to following string: 'hello, 32, foo' My current method is: var ar = []; for (var key in obj){ if (obj.hasOwnProperty(key)){ ar.push(obj[key]); } } var ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XML attribute Parsing in Android I have an Xml.may i know how can i parse it. i need to get all OfficeName in to an Dictionary/array from the below XML. eg: Dictionary[key:tblOffice1]= "!-Everett Corporate Office" Dictionary[key:tblOffice2]= "!-Fullterton SCE Call Center" etc.. . the above thing is not a exact...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get a number in one table and print the number's referenced name in another table I need to create a friend system, but my loop always skips the first match and sometimes it prints copies of the same name $result = mysql_query("SELECT * FROM tbusers INNER JOIN tbfriends ON tbusers.id = tbfriends.username_id"); whil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scrollable Divs inside web page independent from main scroll I have a series of scrollable divs on a page. When a DIV gets scrolled to say the top and the user keeps scrolling it starts to scroll the page up instead (not so much on Firefox) but on Safari and Chrome it does. This is annoying, and I notices that on F...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to guarantee the existence of static members in a type? Since C# has not provided support of static members for interfaces It is very hard to guarantee of existence of certain static members in class. I know that there is abstract class-ancestor for it, but I can't use it because in such case static members will...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Protect user's information in the referral URL I decided to refresh my site today with a pair of upgrades. One of them is referring availability. So, as I method of referrer recognition, I am going to use special URL with referrer ID in it (if there is some other but better method, feel free to let me know about it)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CheckBox Listener I have some CheckBoxes which are made of my database table names if(event.getSource()==connect){ CheckBox check; Connection connection = null; try { Class.forName("org.postgresql.Driver"); String url = "jdbc:postgresql://localhost:5432/db"; String username = "use...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Convert image to png byte array in Matlab I would like to take a 512x512 image and convert it into a png byte array in Matlab so that I can stream it via a socket. At the moment I take the array, write it to a png file using imwrite(I,'file.png'), then read it as a binary file and send it through the socket. This is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to remove UISearchBar's tint image? i have to hide searchbar tint. i write foll0wing code UISearchBar *searchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 15, 270, 15)]; searchBar.delegate = self; searchBar.barStyle = UISegmentedControlStylePlain; searchBar.placeholder =@"search"; searchBar....
{ "language": "en", "url": "https://stackoverflow.com/questions/7514791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: node, session store remove expired sessions I am trying to implement a session store for an express.js node app My question are : * *How do you delete cookie that have a browser session lifetime (marked with expires = false according to connect doc) *Should I store session data as a json string or directly as an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: YouTube API and the video tag Is there a way to use something like this: <video width="320" height="240" controls="controls"> <source src="http://www.youtube.com/v/YJp7tqRyJAI" type="video/mp4" /> <source src="http://www.youtube.com/v/YJp7tqRyJAI" type="video/ogg" /> Your browser does not support the video tag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strange Timezone issue with Tapku Library Calendar I have a weird problem with the Tapku Library Calendar. I am showing events in Tapku Library Calendar. I am getting date from my server in America/Toronto Time zone. ie. -500. My system and calendar time zone set to Toronto,Canada in Setting app. So, the problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: simpleHTMLdom - Using multiple URLs from an array In my UI there is a text area that has a list of URLs separated by new line. I am getting this into a string and exploding it using newline character. I am getting this error: Fatal error: Call to a member function find() on a non-object in C:\xampp\htdocs\apps\lt\t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is margin-top off by 2px on a Mac? If you view my website on a PC, the image under the links should fit snugly under the links. However, if you view it on a Mac, the image is about 2px overlappin the links above it. Do Mac browsers interpret CSS values differently? Such as margin-top, which is what I'm usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Monodroid tabs view After implementing the Tabs Widget Sample I tried to play with it and add the third tab only after changing to the second tab protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Reso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I monitor COM calls to my VisualBasic 6 ActiveX control? I wrote a little ActiveX control in VisualBasic 6 which is going to be used as a plugin for some 3rd party framework. The framework expects that my control exposes a few properties and methods. It all seems to work well except that one of my properties see...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement MAC-DOCK-like selection behavior with vertical sections scrollbar in UITableViewController? Currently, I'm displaying vertical section scrollbar in my table view: -(NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView{ return [SectionModel getAllSectionNames]; } I need to zoom-in the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to receive notification from web to android? In the app I am developing, I need to receive notification from a php server without using c2dm. Help me anyone. A: You can't have push notifications without C2DM. The "other way" is to make the client pull the server for info every X minutes..which is by several re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON Webservice calling repeatedly iphone sdk I have two webservices (JSON), one is called at the ViewDidLoad and it returned a array of values and loaded into Array1. And I need to call another webservice, by parsing each values of Array1. I tried something like this: for (pointer=0; pointer<=[Array1 count]; pointe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is this part of the script is safe from sql injection? Is this part of the script is safe from sql injections? Because i used this foreach(array_keys($_POST) as $key) { $clean[$key] = mysql_real_escape_string(trim($_POST[$key])); } the guide of web said it should work more effectively and faster. <? sessio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cassandra for storing of Documents I am currently running a project where we need to annually store 40 billion documents (PDF,TIFF) for roughly 200 million accounts and was wondering if it is possible to use Cassandra for that? this is mainly because of the scalability, stability and multiple datacenter use in the C...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it OK to find out what the method returns calling the method itself inside it? I know the question sounds confusing, but it should sound simpler if I just show it with code: Is it OK to do the following: - (void)foo { if (bar()) { // do something } } BOOL bar() { return [self foo]; } A: This will be c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ArgumentException (parameter is not valid) error when instantiating Bitmap object I have the following code: Bitmap bitmap = new Bitmap(pathtoimage); Pathtoimage is the full, absolute path to a jpg. I get an ArgumentException (parameter is not valid) error. What am I doing wrong? CODE: Bitmap bitmap = new Bitmap(i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android web request to string I want to collect the text from a webpage, put it into a string and then show it on my device's screen. This is my WebRequest activity: package com.work.webrequest; import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache.h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Help with hover jquery The below code hides .titlerow on hover of .row. How do I change the code so if the mouse isn't hovered on any row then the first .titlerow is hidden? echo "<div class='row'><div class='titlerow'></div></div> <div class='row'><div class='titlerow'></div></div> <div class='row'><div class='ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: browser is not reflecting changes, wordpress installed. Can you please help I have strange problem. For a project we are using following cloud hosting. http://www.rackspace.com I have installed wordpress on four sub-domains on this server. Now i am facing a strange problem. Sometimes when i make changes in theme fli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why does this ptrace program say syscall returned -38? It's the same as this one except that I'm running execl("/bin/ls", "ls", NULL);. The result is obviously wrong as every syscall returns with -38: [user@ test]# ./test_trace syscall 59 called with rdi(0), rsi(0), rdx(0) syscall 12 returned with -38 syscall 12 ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: JSON Array Loop Inserting into Android SQLite Database I have the following snippet the loops through a JSON Array and inserts the data into a database. My problem is that it's not inserting all the records. If I have 6 records it will only inserts 5 of the 6. If I have 5 records it will only insert 4? When I de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding Header in ListView in android I need add header in my listview and header should always displayed even scrolling list. Is it possible in android list view? A: you can add header in list view like this: View headerView = ((LayoutInflater)Activity.this.getSystemService(Activity.this.LAYOUT_INFLATER_SERVICE)).i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7514844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }