Vote count: 0 I'm having trouble passing data from a custom cell by a user tapping a button in that custom cell. I sometimes get the wrong cells data since the cell is being reused. I was wondering if there was a full proof way to always get the right cell data to its button in each cell no matter which cell is currently on the screen. Below is my code. Any help is greatly appreciated. My Custom Cell: protocol CustomCellDelegate { func segueWithCellData() } class CustomTableViewCell : UITableVie...
ادامه مطلبVote count: 0 I am new to AJAX, i came from a code in inteet about sending Ajax to php file. The problem is i dont know if the data is submitted or what happen. The alert box doesn't pop up if it was submited success: function () { alert('form was submitted'); } Here is the full form from html : Name Email...
ادامه مطلبVote count: 0 I have installed cassandra CQL shell on my local system, i am using jmeter v3.0 for testing the queries per second(QPS) on cassandra CQL shell. I have installed "cassandra support" plugin available in "plugin manager" with jmeter. I have created keyspace in cassandra(keyspace1), created a table(student) and added some data in CQL shell. I have added "cassandra properties" from config elements and entered the properties in jmeter.cassandra properties i have added "cassandra get" sam...
ادامه مطلبVote count: 0 I have a table that is listed like this: Table name: test |--------------------| |------Column 1------| |--------------------| |John,Raul,Matt,Tyler| |Tim,Haah----------| |Zeke,Brady,Tim,Tyler| |Elliot,Zeke---------| |Matt,Andrew,Idda----| ... And I need to get all of those names into a PHP array, without multiple cases of the same name. Would I be better off getting each unique name via SQL, or should I just pull the column, and then parse through it via PHP? The final PHP array w...
ادامه مطلبVote count: 0 I have created new user in SQL Server 2012 on one of my cloud machines. But when I try to access any database other than the system ones, they are not accessible. Showing dialog "The Database XXX is not accessible". How can I access all the tables which are created by other users? OR how can I make user who has all the database object access? edited 9 secs agomarc_s asked 1 min agoRajaram Shelar Let's block ads!...
ادامه مطلبVote count: 0 let toggleForm = function() { // code here } document.getElementById('one').addEventListener("click", toggleForm, false); document.getElementById('two').addEventListener("click", toggleForm, false); In toggleForm I'd like to know whether element one or two fired the event. How would you go about doing that? asked 1 min agouser1904218 Let's block ads!...
ادامه مطلبVote count: 0 I have a text file in which 50000 email ids are stored. I need to filter data from this file by deleting email ids of unsubscribes. I have tried this code but no luck How can I delete the different number of email ids from a file and keep the other ids remain in file? asked 25 secs agoShaun Let's block ads!...
ادامه مطلبVote count: 0 I'm having problem with Selenium driver, because it freezes my form which contains crucial data for the rest of the task. Here is part of the code where problem occurs : element.SendKeys(OpenQA.Selenium.Keys.Enter); SendKeys.Send("{TAB}"); driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(15)); MainForm FormN = new MainForm(); FormN.Show(); It freezes here and it skips PerformClick(); action and proceeds to "FindElement(By.Id..." FormN.btnCopy.PerformClick(); FormN.C...
ادامه مطلبVote count: 0 i write a program for retrieve a entire list from mysql database but while i executing the program it gets all value in list view but i want the whole coloumn in one item in list view, pls help me this is my parser class,, Parser.java public class Parser extends AsyncTask { Context context; String data; ListView listView; ArrayList allData=new ArrayList(); ProgressDialog pd; public Parser(Context context, String data, ListView listView) { this.context = context; this.data = data; t...
ادامه مطلبVote count: 0 I have a data frame which can be created with this code: input...
ادامه مطلبVote count: 0 We have a preexisting SQL database that holds our data and will be updated from time to time. I've just stumbled across Realm and don't quite understand how it works at the moment. From the examples I've seen it looks as if Realm creates the database locally on the mobile device (please correct me if I'm wrong). This is not what we want. We want our data to live on some server and then pull that into the application. Can this be done purely with Realm? Or should we somehow pull fro...
ادامه مطلبVote count: 0 I need to crop 20px from top and 20px from bottom. Is it possible in PHP with Imagick? asked 18 secs agoTadeáš Jílek Let's block ads!...
ادامه مطلبVote count: 0 Here is my problem: I have a container A (Node.js) and a container B (nginx). In the Dockerfile of container A, I build several files from the sources, as they are needed to run the server into a folder named build. I want to access this folder from container B to serve the static files. The purpose is to have a simple workflow were you could just git clone the repo with the sources and run docker-compose up --build and everything is ruing. In this scenario, the host does not have ...
ادامه مطلبVote count: 0 my web application is ruing but when I submit the html form data, the galsfish server4.1.1 throws an exception -java.lang.NullPointerException . My servlet code: package com.amir; import java.sql.*; import java.io.IOException; import java.io.PrintWriter; import java.sql.DriverManager; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.*; publi...
ادامه مطلبVote count: 0 I'm getting a UNIXTIME stamp from MySQL and I would really like to compare it to now, and see how much time is in between the two; as in xx sec ago. I'm not at all sure to even look, simple Google search help me nowhere. A push into the right direction would be really appreciated! asked 52 secs agouser5740843 Let's block ads!...
ادامه مطلبVote count: 0 I've been having a problem using Visual Studio to coect to a networked sql server with a networked user, a local administrator, and a domain administrator. Here's the coection string in Visual Studio: string coecitonstring = "Server=development;Database=testdb;User Id=TestUser;Password=TestPassword;"; co = new SqlCoection(coecitonstring); 1) Ruing Visual Studio as non-administrator and as an administrator, I get the following error. {"A network-related or instance-specific error oc...
ادامه مطلبVote count: 0 From this given value, I have: $valueDollar = US$400.00; or $valueEuro = EU€400.00; How can i separate the characters from number. The output will be look like this: Array ( [0] => US$ [1] => 400.00 ) asked 25 secs agoAmboom Let's block ads!...
ادامه مطلبVote count: 0 I would need to store a code in the Firebird database. This code is encrypted and for more security, I want to avoid to store it in a regular table. Is there a place where I can put it?I am thinking to store it as an exception text in Exceptions section of Firebird but maybe there are other better places. asked 38 secs agokokokok Let's block ads!...
ادامه مطلبVote count: 0 I'm new to Android development. My project has an existing website hosts by Squarespace platform, users can register by filling a form in the website and it will send these information to Google sheets(which is a default function for Squarespace). I am developing an android app that both existing users and new users can register via app. To get the existing user information I need to pull the data from Google sheets, and for new users I need to update their information in the Googl...
ادامه مطلبVote count: 0 I select data from sql table into txt file. It looks like : Apple 10 Orange 19 Pear 8 Now I want to loops throught this data and pass parameters like (name:"Apple", amount:"10") into my function. (Get-Content D:powerShellTest.txt) -split 's+' I've tried to split data by whitespaces, which works, but I have every "word" with different index in array. I want that every row will have different index and then I can get name like arr[i][0] and amount like arr[i][1] asked 45 secs agodemo...
ادامه مطلب