I beginner learning Swift 3 - UISwipe gesture but cannot work if using Array. This my code. How can I code so the Label only change from "hello1" to "hello2" then swipe left again to "hello3". Also reverse swipe to right back
When I try to type text (between "") in javascript, I have to write everything on 1 line. I can't press enter because my code woudn't be valid then. Appearantly you can't type on multiple lines in javascript. Is this correct or did I make a mist
I have to show pageviews which i do using google analytics. Below is the html where i will show the page views Pageviews: <span id="pageViews"></span> <span id="loadingGA"> <img height="12" alt="Load
I have a Java question about generics. I declared a generic list: List<? extends MyType> listOfMyType; Then in some method I try instantiate and add items to that list: listOfMyType = new ArrayList<MyType>(); listOfMyType.add(myTypeInstance);
We're implementing a widget screen that consists of multiple widgets/modules: Products: Lists products Product Details: Loads product details from server once selection in "Products" changes. Related Products: Loads related products from server
I am interested in Natural Language processing. I am wondering if there is a good known algorithm that in a text one can determine first and last name as one entity. For example If we have this: Last week John Wayne went to Europe. I want to have a t
Even though I have copied the whole code from angularfire main repository but the code just doesn't work. I have gone through the code many times. The error says that angular is not defined even though all my files are connected and angular must be w
Code: public static void main(String[] args) { Map<String,String> map= new HashMap<String,String>(); map.put("a", "s"); map.put("a", "v"); System.out.println(map.get("a")); } Now, as per my und
I understand when a branch is easily predicted its better to use an IF statement because the branch is totally free. I have learnt that if the branch isn't easily predicted, then a CMOV is better. However, I do not quite understand how this could be
I am writing code for a course. We are meant to scan lines from a file specified by the user, search each line for one or more words specified by the user, and report how many times in the whole file (having processed line by line) these words are pr
We are trying to create an if/elseif statement for the variable $day. We defined the variable and its values in the HTML code associated with this PHP. I will paste the PHP section to this page. The problem is that the results page is only giving the
This question already has an answer here: How to determine if the type is one of the Action/Func delegates? 2 answers I want to check if (obj is Action) but don't know its parameters? so I want to execute this code whether the obj is Action, Action<s
I have sku numbers in column 1 and qty in column 2. I need a formula to be able to look at all the product numbers in column 1 and add up the qty in column 2 so the same sku and qty is all on one row. Example: SKURCD QTY 100095 1 100095 1 100121 1 12
i've tried to install the extension mbstring but i have the following error: Error: Package: php-mbstring-5.4.16-23.el7_0.3.x86_64 (updates) Requires: php-common(x86-64) = 5.4.16-23.el7_0.3 Installed: php-common-5.4.38-1.el7.remi.x86_64 (@remi) php-c
Renewing the bounty AGAIN because I really need to know how to get this to work, or a definitive answer about why it won't. I've added an alternative explanation of the problem here. Having a hell of a time getting a two-way (IsOneWay = false) WCF cl
I am going to make a 2D iPad game today, but I do not want to use a game framework. I am more interested in how the framework is created, how to program the physics, and other low level topics. So, if I'm not using a framework, how do I start? Is the
My CSE graduation project I chose to be a simulation of a search engine that uses sentiment analysis to evaluate whether comments/reviews is positive/negative/neutral I am not sure how would I be doing this yet, But I understood that it uses classify
whats wrong with this code and i am getting this error: Compiler Error Message: CS1502: The best overloaded method match for 'RenderName(string, string)' has some invalid arguments <ItemTemplate> <asp:Label ID="lblName" Text='<%# Ren
I want to use a custom dialog box for Pin Authentication. Here is my code: public void fetchUI() { add=(Button)findViewById(R.id.pinButton); add.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated meth
In MPI, is it possible to immediately throw out received data without allocating a buffer to hold it? I'm using MPI_Allgather to collect data from several processes, but at some point, one or more processes have no useful data to send. My original so
I want to extract data from several .csv files and combine them into one big dataframe in pandas.To do this I created one dataframe that should be filled with the data of the incoming dataframes. final_df = DataFrame(columns=['Column1','Column2','Col
I am looking for visualization and charting in my project. So Suggest all possible comparison for d3.js and zingChart Please also consider following factors : 1.Layout adjustments on webpage 2.Learning simplicity 3.Documentatin available 4.Ease of Im
Well i'm submitting form through onChange of select <form name="selForm" id="selForm" type="POST> <select name="sel_status" id="sel_status"> <option value="one">one</option> &l
My problem statement is very simple. I have one Arduino Uno and another Arduino Mega Board. Both have got Zigbee Shield mounted on them. One of them is working as Transmitter (Uno) and another (Mega) as a receiver. Code for Tx: void setup() { Serial.
I'm using a set of Constant.m files, one per target, to define specific things for each target. For example: // Constants.h extern NSString * const kDatabaseFileName; //Constants.m NSString * const kDatabaseFileName = @"target_one.sqlite"; I'd a
I am creating a search results page in C# in an ASP.NET 1.1 page. In my data layer I have a DataSet that stores the result of a plain old ADO.NET stored procedure call. The DataSet has two DataTables and I'm using a DataVIew to filter and sort the co
I've got a really weird problem with my shared preferences. I'm using them to store the user-ID, different settings and so on. I'm using an activity which switches fragments if a user has clicked an item in my menu (I'm using Menu-Drawer). After ever
Actually I'm always using Generic Collections and I frequently use List<>. Some scenarios I think that new List<string>() is very ugly and I prefer to use string[], but I don't use it, because as far as I know, Generics has a better performanc
I'm working on a horizontal menu with a logo in the middle on a project. I've been using Chrome and Safari mostly during the coding to view it. Today though I switched over to Firefox to check things out and my menu went crazy. Then I checked IE and
I have created a new JAR but I cannot see my changes made. It seems like its caching the old JAR. When I do a javaws -viewer I see the date modified column for that JAR as April 7, which is old. Is there another way to remove java JARS from cache? I