text
stringlengths
8
267k
meta
dict
Q: How to inherit keyboard property? Hi I have created my own keyboard and added my keyboard to the inputview of the uitextview it is working properly. Now I want to inherit all the property of uitextview like Auto-correct,word-capital etc etc.How can I inherit all that property. I have tried like this [uitextview conf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Code - NullPointerException I'm making a game and it is giving me a NullPointerException which I believe means the variable or what I'm trying to do is not returning a value? I'm using the code below: package OurGame; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListene...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Waiting for an update What is the best way to wait for an event/update. For example, I am waiting for this data structure to be updated before doing something. Implementing it inside a loop is not the best way since it consumes much CPU time like: while (true) { // keep checking the data structure // if data s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to traverse a JSON file? The JSON I have is mentioned below :- { head: { link: [], vars: [ "CompanyName", "Company_Name", "Foundation_URI", "Foundation_Name", "Latitude", "Longitude" ] }, results: { distinct: false, ordered: true, bindings: [ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A C program to crash the system A few days back I had an interview, and I was asked to write a program in C which crashes the system/which shuts down the system. Needless to say I felt pretty dumb having no clue on how to even approach :( Still I gave it a try, writing programs which use a lot of memory. But my int...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: IE does not recognising .less file I create a less file which is working fine in chrome and firefox, but not even recognising in IE 9. Can anyone please suggest what needed to run it in IE 9.0. below is the css sample.. @import "../core/variables.less"; @import "Mixins.less"; .classname { @fontweight:bold; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any XMPP Jingle Implementation in Javascript Is there any XMPP Jingle Implementation in Javascript, I only see libJingle library written in C++. A: I know that this post is old, but there is one now: https://github.com/legastero/jingle.js
{ "language": "en", "url": "https://stackoverflow.com/questions/7631428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how can get response from There is a simple web page which sends request, handles & manipulated by a servlet class and send back the response text.while i want ajax type handleing the request at client side that is why i am giving the response target to a invsible iframe. *but i want to print success on the page af...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook Graph Api pagination not working I have been trying to retrieve the wall feed of a facebook user using the graph api with the url https://graph.facebook.com/me/feed?access_token=ACCESS_TOKEN where ACCESS_TOKEN is the access_token used for querying. The first query, i.e using the above url works fine, but it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Is there any way to reuse / make serializable LatLng and LatLngBounds types in GWT? Any alternatives? I was so excited to use GWT Maps API that wrote a service which takes LatLng and LatLngBounds in its interface... Only to find out at runtime that those classes do not implement Serializable, probably because they a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Maven2:List return type methods not getting generated from .xsd files while using xmlbeans plugin I am tring to build my project using maven2.This project was succesfully build using ANT in netbeans IDE. Now the problem is, I am able to generate the .java files from .xsd files using xmlbeans maven plugin.But some ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: U-boot 1.6.6 : I am trying to Edit the Source code to Enable PCI for MPC8640 Custom Board I have gone through the Source Code . The CONFIG_PCI is defined in the u-boot/include/configs/MPC8641HPCN.h file [General]. This MACRO has been Enabled in the .h file which says if i compile the configuration for this board the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drawing charts on html5 canvas using jqplot I am using jqplot charts for drawing different charts on html5 canvas. All charts are working well in all browsers but vertical bar(stacked and clustered) and line charts are getting overlapped in safari. Any reason why is this happening? The following code lines i have us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery alert hello Plugin doesnt work Im trying to make simple Jquery plugin. I went through the Jquery documention and I reduced the layout to make a simple alert. This is my Jquery Plugin code. (function($){ $.fn.foo = function(){ alert("HI"); }; })(jQuery); Than on my main page I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to install another exe(only if it is not already installed) while installing winform application using windows setup in VS2010? I have created a window setup file for my window project in visual studio 2010. this setup file is running properly and installed the software in computer. but for running my this softw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CursorAdapter 's ViewBinder lifecycle? Can someone help me understand SimpleCursorAdapter.ViewBinder lifecycle in terms of methods: setViewValue, bindView when are they called? Are instances re-used? Any source to understand all of it? I basically have a ScrollView that that uses setViewValue to populate items but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Clear datagrid in MVVM ViewModel On my MVVM silverlight application I have a dataDrid (in the View) and the dataGrid ItemsSource is binding to a Domain Service Classes Sql stored procedure 'results' in the XAML file. The stored proc 'Results' is defined in ViewModel which calls the WCF's stored proc on a 'Model' cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pause an animation with OpenGL / glut To achieve an animation, i am just redrawing things on a loop. However, I need to be able to pause when a key is pressed. I know the way i'm doing it now its wrong because it eats all of my cycles when the loop is going on. Which way is better, and will allow for a key p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to add new items to enum in Objective-C? Possible Duplicate: Possible to add another item to an existing enum type? Say I have a class Car with the following enum defined: typedef enum { DrivingForward, DrivingBackward } DrivingState; Then, let's say I have a subclass of Car called Tesla a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: startsWith autocomplete jsf Ill just why is it this error apperars when i add this code to my autosuggest "CANT INSTANTIATE CORE.BEAN" while(rs.next()) { String s = rs.getString("name"); if(s.startsWith(text)){ data.add(s);} here's my xhtml file <p:autoComplete id="input" value...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IPhone Custom UIButton Cannot DismissModalViewController I have a custom UIButton class in my IPhone navigation application. When the user clicks the button I present a modal view which displays a tableview list of records that the user can select from. On click of the button I create my viewController and show it u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding Menu in Action Bar I have a Action Bar where i want to add one help button using Menu. I am using Android 3.0. My Menu code is like below: <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/help_btn" android:icon="@drawable/help" android:title="Help" and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: PHP: Hashing code not working any longer? I used this hash function for a while (got it from the internet). The thing is it used to work immediately but now it is complaining about a paramter. The following is the code: function generateHash($plainText, $salt = null) { if ($salt === null) { $salt = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to format a date in java? How can change this date format "2011-09-07T00:00:00+02:00" into the "dd.MM." i.e "07.09." Thanks in advance! A: here is a sample edited the code: public static void main(String[] args) throws ParseException { String input = "2011-09-07T00:00:00+02:00"; SimpleDateFormat inputD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Vim cursor goes line down when esc mapped to jk I have imap jk <C-[> in my vimrc, but when I use it on the end of line (when cursor is on $ when list is on) cursor goes to beginning of next line. How to fix it? A: It works normally for me. I assume interfering mappings or settings. First you should try :inoremap ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Need to apply a css class to all textfields using Zend Framework I'm doing some bit of redesigning here for which we hired an outsourced freelance designer. He sent in the designs however he's used css class styles for the textboxes as opposed to my earlier attempts to apply a ganeral style to the inputs tag which h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rewrite rule for dynamic subdomain redirecting each file with subdomain arguments I want to redirect all the calls to files in a subdomain with an extra variable. like if a user access www.domain.com/news.php and in the subdomain he accesses the same page then it should add an extra argument to the url like xyz.doma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Scala: using Nothing for singleton instances of polymorphic types Given a polymorphic trait like trait Transform[T] { def apply( t: T ) : T } one might like to implement various specialized instances, such as case class Add[Double] extends Transform[Double] { def apply( t: Double ) ... } case class Append[Strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Suggestions for range slider plugin for jQuery I've seen already standart jQuery range slider on jQuery website, but this is not quite, what I'm looking for. I've also found very nice range slider http://blog.egorkhmelev.com/2009/11/jquery-slider-safari-style/, but this plugin is bit buggy and hard to fix, since it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails - Functional testing of redirect_to(request.referer) Maybe I just missing the forest for the trees again, but I can't seem to figure out a way to write a functional test that tests a :destroy action that redirects to request.referer. Code is: def destroy @step = Step.find(params[:id]) @step.destroy ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: use 'as' in query I have a table like this and type is innodb and id and sid are indexed. id | sid ########## 1 | 100 1 | 101 1 | 102 1 | 103 1 | 104 1 | 105 2 | 100 2 | 101 3 | 100 3 | 101 I need id's have sid 100,...105 like id=1. I have this query select t1.id from test as t1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make two tableview cell in one controller class in iphone I am making two tableview cell in one controller class on vertical style. I have different value both the cell. Left cell have some name value for eg(name :pradeep),and right side cell have some price value so if select on left cell on 3row and right s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: +colorWithPatternImage: should preserve transparency in Cocoa I have a custom NSView that is used for displaying a background color. This works. However, I have shadows in that image that are not preserved. All transparent or semi-transparent areas of the image are rendered as black. How do I fix this? - (void)drawR...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery fancybox width issue The jquery fancybox width is abnormal. means it is equal to the width of the page. If i change the class name to 'iframe' width works fine else width is miss behaving. $(".iframe_reg2").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'speed...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Safari browser input text field display value error @@Edit I have a link which is showing on screen keyboard. http://designshack.co.uk/tutorialexamples/vkeyboard/ By using this link and Safari browser, I click keyboard link button and press any key not less than round about 30 times. At that time, password text box...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ant colony behavior using genetic programming I'm looking at evolving ants capable of food foraging behaviour using genetic programming, as described by Koza here. Each time step, I loop through each ant, executing its computer program (the same program is used by all ants in the colony). Currently, I have defined s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Datagridview cellcontent click event not working properly I wrote an event to retrieve the first cell value of the clicked cell's row on CellContentClick event in datagridview. but the event is getting raised only when i click the third cell and not getting raised when i click the first or second cell of datagridvie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: not able to create a dynamic form in Delphi 7 I have put together this code for creating a dynamic form unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: no such file to load -- RMagick.rb Rails, Ubuntu I have ruby and my gems installed in my home directory using rvm. 'require RMagick' works from the console and irb, but not from within my Rails app. I have the gem listed in my Gemfile. require 'RMagick' class PetsController < ApplicationController def image i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple function onSubmit? I'm trying to call a simple function onsubmit. I tried using onsubmit and also a listener with jQuery. My problem is that when the user presses enter he gets redirected to mysite.com? <form id="teleport"> <input id="tInput" type="text" value="Type a location" /> <input type="button" id="tS...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Read/ Parse Data of Signed_Request from Registration Script in Php 5.1.6 I'm trying to implement the Facebook registration script. The form is getting submitted fine and the server is receiving the signed request. However, it is not able to read/parse the signed request. I used the script recommended on the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I access a file in a systems jboss bin, from other system I have a file in the jboss bin folder, on a system. I have to access this file from other system. How can I achieve this ? Thanks -Aj A: Make the file available via a webapp or an ejb
{ "language": "en", "url": "https://stackoverflow.com/questions/7631519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Which Project Type to select in InstallShield : Basic MSI or C#.Net Wizard for WPF application? I have created one WPF application... Now, in installshield, i want to make installation package for the same, so which project type i should select? Actualy, now i have used basic MSI project.... but m still struggling ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can not transform correctly using XSLT I tried to use a XSLT transformation (below) to a RSS with this type with no result. Why is that ? <?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: is flexunit is really required for Flex application? I have a doubt on Flex unit. Unit test cases are really required for flex application for displaying data. A: So, you should remember that not everything in Flex is a UI Component. I, personally, find that FlexUnit (or a unit testing framework) is great for tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Where I can subscribe a list of Javascript API to be obsoleted before the browser release? I am just hitting a bug due to Firefox 7 has removed some non-standard attribute (they have no moz- prefix) and cause my scripts fail on Firefox7. Ref: https://developer.mozilla.org/en/DOM/File In order to prevent it happen ag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stats based on Access Token? My app stores the Facebook Access Token for offline use. The main purpose of the app is to allow users to automatically posts on the walls of people within a specified number of days of their friends birthday. My app has been blocked by Facebook due to spam (some users are sending market...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TimerTask start stop only executing once Problem, I can only execute my timer once. I know its because I called the function timer2.cancel(); and timer1.cancel(); :: Cancel being "Never run this ever again". I need a replacement function, one that actually stops a timer, but can be started back up again when I resch...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: what's the best Rules Framework that can work in conjunction with Spring Batch ( 500k objects)? I've used both spring-batch and drools on previous projects, separately. In my current project, I have a design where I need to process upto 500k xml objects, convert them to jaxB, apply rule on each of the object (the ru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create form that contain data from 2 tables and save data to one table i have 2 tables: Employee: ID SalaryPerDay Name (unique) ..... ..... Schedule: ID EmployeeID Date Attending (boolean) loan discount overTimeHours and a query EmployeeNameQuery: that return...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework - Row size greater than allowable maximum row size of 8060 I have an entity with a binary datatype and a corresponding varbinary(max) column in SQL Server. EF creates this: CREATE TABLE [dbo].[Attachments] ( [Id] INT IDENTITY(1,1) NOT NULL, [FileName] NVARCHAR(255) NOT NULL, [Attachment...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: get tomcat installation path in pom.xml i want to get the root directory of apache tomcat installed in my system in the pom.xml for example my tomcat is installed in c:\apache-tomcat-6.0.32 <execution> <id>generate.bat</id> <phase>test</phase> <goals> <goal>exec</go...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .htaccess to two subdirectories I am trying to make a .htaccess control the access to my websites. I have two websites: one with a wordpress blog and other with a wiki-site placed mydomain.com/wordpress and mydomain.com/wiki. I want my domain to access /wordpress without showing this in the http-adressebar. (wordpre...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PowerShell: how to get if else construct right? I'm trying to learn powershell and tried to construct a if else statement: if ((Get-Process | Select-Object name) -eq "svchost") { Write-Host "seen" } else { Write-Host "not seen" } This ends up into "not seen", although there is svchost processes....
{ "language": "en", "url": "https://stackoverflow.com/questions/7631564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: PopupScreen not show after pushing I push the pop screen using following code, what pop screen not displays. Please tell me what I missed.? LabelField statusMsg = new LabelField("Hello"); PopupScreen statusScreen = new PopupScreen((fieldHFM)); UiApplication app = UiApplication.getUiApplication(); app.pushScreen(sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to solve orientation issue? I want to make 480x800, 600x800, 600x1024 and 800x1280 resolution layouts. i have to show both orientation(portrait and landscape) with resolution 600x800, 600x1024 and 800x1280 and resolution 480x800 show only landscape mode. Right now it is showing both orientation mode. <?xml versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to control the status of BeginInvoke? I have a function as below. private void AddPrice(String value) { Delegate del=new Action<String>(AddToCollection); this.Dispatcher.BeginInvoke(del,DipatcherPriority.Background,value); } In AddToCollection method, the value will be added to Observable Collection. "AddPric...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I've just deleted one week of work! How to undo git rm -r --cached? I commited a wrong file, so I wanted to clean it up, but accidentally I overwrote all my files in the directory with last files committed to git. Help please! What I did: git add fileIdidnotwanttoadd git rm -r --cached . git reset --hard HEAD resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to implement double tap for Android live wallpapers? I want to implement a double tap event for a Android live wallpaper. Sadly, I couldn´t find any specific code how to do that. At the moment I´ve found a workarround using the onTouchEvent-method of the Engine-class: public void onTouchEvent(MotionEvent event) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL User Defined Java Function (Character conversion between CCSID 65535 and CCSID 1200 not valid) I have been having a problem with an iSeries Function whereby it is not connverting data properly becuase my default user profile is using CCSID 65535. I can change the job to CCSID 37 and everything works fine. I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: creating a CustomView I am trying to implement this game, and I am confused about how to start. Should I use ImageButtons and implement this game, or should Icreate some custom view? I am not asking you the code, but what custom view I should create. Basically, I need a plan as to how to implement this game. A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to handle back button in windows phone 7? I have an application, the main page contains few functions. To explain in detail - I have save, color palette button in my main page. When any of these buttons are clicked, save pop up or color palette appears. How to handle back button of the device, when color palette...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JQuery. Remove element by attribute name. How? Is there a way to remove a DIV based on it's custom attribute comment_id? I have the following code but it does not quite work yet. <script type="text/javascript"> $('.delete_comment').live('click', function() { // Url we request data from $.get( "ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: C#. Security and Efficiency Loopholes When Uploading Files through a .Net Application via SFTP I need advice from developers who have either faced or have experience dealing with a situation similar to the one described below; just to avoid reinventing the wheel. Situation: We have a C# Winform application running ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error when use UIAplication.getUIApllication.pushScreen(screen) on Blackberry? I have a "Back" button that I created. Action for it is ----- UIAplication.getUIApllication.pushScreen(screen1) I did so because I want to refresh screen 1 when I cick "Back ". But there have an error that " OutOfMemoryError" when I clic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to scroll ListBoxes naturally on the touch-screens in WPF application? I am developing WPF application which will be executing on the 21-inch touch-screen. Along with ListBoxes in my application I have vertical scroll-bars for each of them. What I want is to get rid of those scroll-bars and just allow user to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to upgrade from grails 1.2.2 to 1.3.7? I tried to upgrade my current project to grails 1.3.7 (from 1.2.2) I tried to grails upgrade first, and then I tried to update all the plugins. I use ofchart, jsecurity and liquibase. When I tried to run the grails (with grails run-app) it won't start the apps instead it sh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Windows Phone 7 browser control with additional script running in browser I am developing a windows phone application in visual studio (Silverlight in C#) and I added a browser control to the application that i develop to show some random website. Now i need to run a javascript along with that page in the browser co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook Publishing Score I am trying to publish scores from my app. But unfortunately I am unable to do so. I even tried using the code snippet at http://developers.facebook.com/blog/post/539/ but for some odd reason it didn't work for me. If someone can provide me with some basic guidelines I would really be helpf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to play Next song Automatically when First one is finish? In my app I am using AudioStreamer to play a song through server, I am refering this tutorial, http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html How to play next song Automatically when using AudioStreamer? A: In the tutorial is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set Values for other columns in gridview based on selected value of dropdownlist inside gridview(edit mode) in ASP.Net I have gridview with Employee Name, Emp Code, Designation. I am populating Employee Names dropdownlist with values in rowdatabound event. In edit mode of, on selection of a value in Employee Names d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery Mobile, can i create a function that emulates a tap screen My Goal is to set a function that fires every 30 seconds that emulates a tap on the screen so that the screen stays on. Is this at all possible, or what is the best way to enable this without having to program it natively in Java. I'll be happy if i c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mixing cell types in a DataGridViewColumn Is it possible to have both DataGridViewComboBoxCells and DataGridViewTextBoxCells in a single DataGridViewColumn? Or am I absolutely restricted to having one type per column? A: There is a weird solution for this. By default create the column as TextBox. Handle the cell cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Needing jQuery listener for input field - keyup and change not working I need to enable a submit button on my form once the user enters some text into the email address field. Problem is they may be on the form for the second or third time, and the browser saves their email addresses in a drop-down menu under the in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FullText INDEXING on MyISAM is really slow I have a table CREATE TABLE `dataFullText` ( `id` int(11) NOT NULL, `title` char(255) NOT NULL, `description` text NOT NULL, `name` char(100) NOT NULL, `ref` char(50) NOT NULL, PRIMARY KEY (`id`), FULLTEXT KEY `fulltext` (`ref`,`name`,`title`,`description`) ) ENGINE=MyISAM...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NullReferenceException using AutoMapper and StructureMap So, I get a NullReferenceException thrown on a production server. It's not reproducible and happens once every ~100 request. This is the code. var userInfo = Mapper.Map<UserSubscribedEvent, UserInfo>(userSubscribedEvent); var subscription = repository.GetActiv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When not to use MySQL or other relational DBs? Simple question, when should one not use MySQL? There are two facets to my curiosity: * *When to avoid MySQL in particular? *When to not use relational databases in general? I wanted to be sure of my choice of MySQL (with PHP on Apache) as my employer was insisten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Synchronize video to openGL animation I am trying to sync a video to an animation drawn using openGL on iPad, and there are two things I am not sure how to do: * *Find the currently playing video frame. *Make sure the update of the video and update of the openGL drawing occurs at the exact same time, as even a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how to express this in regex I have this : <title>Title</title> All I want to do is express this in regex. I have: /<[A-Za-z]>\w<\/[A-Za-z]> Can anyone help A: You need a + after each of the [] and after the \w to represent "one or more". /<[A-Za-z]+>\w+<\/[A-Za-z]+>/ But it looks like you're trying to parse HT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I ensure that a workflow is triggers email notification only after user clicks OK and not when the edit properties is clicked I have a custom workflow built using SP DEsigner and the SP sites is created using wss 3.0. I have a customer column and values associated with it which is checked for teh workflow to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use the AWS SDK for IOS? Iam developing one application.In that i want to use the amazon web services.I downloaded the AWS SDK for IOS.But i dont know how to write the code for access the AWS.In this i want to use the AWS S3.SO please tell me how to do this. A: Here's a simple sample app showing how to up/do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Android Sqlite database - constraint failes I have a problem with inserting data in my sqlite database. I'm getting JSON data over the internet and then trying to put that data in sqlite database, but it's throwing me an constraint fails error. I know that means I've already inserted the same data, or at least with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I clean up this query? I am generating queries which carry out tag searches on the following tables: entry : id, name, desc tag : id, name entry_tag : entry, tag, val The query is generated from a user-entered predicate such as: (year >= 1990 and year < 2000) and (status = 'complete' or status = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble displaying texture in OpenGL ES with C++ I'm trying to write a small, portable 2D engine for iOS to learn C++ and OpenGL. Right now I'm trying to display a texture that I've loaded in. I've been successful displaying a texture when loading in the with CoreGraphic libraries, but now I'm trying to load the fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iOS: How to remove object from memory with ARC enabled? I am developing an iOS app with the iOS 5 SDK, Automatic Reference Counting is enabled. But I have a specific object that is being created in large numbers and must be released after a second because otherwise the device will become very slow. It looks like the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Jquery selectbox script not auto-initializing I am trying to implement the jquery selectbox script. I have made all the changes needed to css and html markup and the selectbox is working and appearing fine. the problem is. It is not initializing automatically at page load. I have to manually run $("SELECT").selectB...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Searching for Java library or 3rd party library thorugh which I write GUI componets to PDF I am searching any java library or 3rd party library using which I can make the PDF. Basically I need to generate the documentations which can contain Swing or SWT components. One option is to convert the GUI in Image the conv...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieving a million records from a database There is a database it contains 2 million records approx in a table . and i ran the query from my java code like this " select * from table" . will it fetch the complete data from the database in the result set . or not . If yes then how it will work i want to learn the w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unit-testing an action which calls session object How can I unit test a method which uses a session object inside of its body? Let us say I have the following action: [HttpPost] public JsonResult GetSearchResultGrid(JqGridParams gridParams, Guid campaignId, string queryItemsString) { var queryItems = new JavaScr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ruby on Rails 3 Tutorial: Chapter 2 Section 2.2.1 A User Tour I am new to Ruby on Rails and am working through this tutorial book. I am on Windows Vista and using Cygwin. Here are the versions of the software that I am running: Ruby version 1.9.2 (i386-cygwin) RubyGems version 1.8.10 Rack version 1.3 Rails ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: git svn and working with private branches? new git user here. I want to use git, but i'm in an SVN environment. From some books I've read and some simple experimenting, I've hit some troubling pitfalls and am hoping to get clarification on how to get starting without my colleagues wanting to kill me. I want my work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the two precondition on Binary search? i have been asked in an interview what are the two preconditions of the binary search .I have told them array should be sorted in ascending order but i didn't know what could be the second precondition of binary search? Anyone can tell me about the second precondition ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to define a rotates function How to define a rotates function that generates all rotations of the given list? For example: rotates [1,2,3,4] =[[1,2,3,4],[2,3,4,1],[3,4,1,2],[4,1,2,3]] I wrote a shift function that can rearrange the order shift ::[Int]->[Int] shift x=tail ++ take 1 x but I don't how to genera...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: jQuery - Store drop down values from multiple selects in an array The following code populates the second select statement with HTML data. The problem I'm facing is that I clone the two select statements and on submission of the form, I'd like to save all of the selected option values from the two selects into an Ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Volume control for ios in flex mobile 4.5 or phone gap I am trying to develop an application for IOS in which the application needs to have control over the phone's volume. Please do suggest if flash 4.5 mobile or phonegap is suitable for the following requirements. * *Increase/decrease volume *Mute *Play audio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: no launcher activity was found even if i had declared one in the manifest i declared the report file as my launcher. so its supposed to launch first when the app is started first. or do i get something wrong. i get the error. no launch activity was found. thx guys <activity android:name=".report" android:label...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: celery task does not terminate I've created a task where the program uploads a file and the task acts as expected i.e it successfully uploads the file but even after the task does its work, the task does not "terminate", the state still remains PENDING. How can I fix this? A: From the celery docs: PENDING: Task is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to start with Programming in VB.Net? So far I have worked with C Programming and C++ Programming. I am fairly new to DOT NET environment and my current project requires VB.Net skills. I need to know 1)Which books to refer for starting with VB.Net language? 2)How to Start with VB.Net Programming? 3)Are there any...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AS3 Crazy Drop Down Menu Jittery Issue I have a few flash errors on my website. I started playing around with AS3 and created a list that expands when mouse is over and goes down when mouse is out. Kind of like a drop down menu. Problem is sometimes it acts really spastic. Anyone have any solutions? Here is my websi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I collapse elements in a list with jQuery? I have the following list: <div class='sidebar-listview ui-listview' data-role='listview' data-theme='c'> <li class='ui-li ui-li-static ui-body-c ui-li-has-icon io-sidebar-section io-sidebar-section-collapsed io-sidebar-section-advanced-toggle' id='0aa210f2-e8...
{ "language": "en", "url": "https://stackoverflow.com/questions/7631692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }