[Solved] When i tried to add the library it gives an error of versions .. help me to solve it please [closed]

[ad_1] this is not an error in fact. It is a warning telling that you are using one version of android support library (26.1.0), and your library is using another version (27.0.2) To solve this warning you should use version 27.0.2 too. But it might be not required. You may try building the app as … Read more

[Solved] how to display values in jsp through java class [closed]

[ad_1] i think you should try this public class EmpBean { public java.util.List dataList(){ ArrayList list=new ArrayList(); try{ Class.forName(“driver”); Connection con = DriverManager.getConnection(“url”, “user”, “pwd”); Statement st=con.createStatement(); System.out.println(“hiiiii”); ResultSet rs=st.executeQuery(“select * from employee”); while(rs.next()){ list.add(rs.getString(“name”)); list.add(rs.getString(“address”)); list.add(rs.getString(“contactNo”)); list.add(rs.getString(“email”)); } System.out.println(rs.getString(“contactNo”)); } catch(Exception e){} return list; } } Assuming this class working fine and it is … Read more

[Solved] PHP average by group of n elements in an array

[ad_1] First of all, you should redesign your data structure. You aggregate the values in strings in $values and then it’s difficult to extract and use the individual components. $values = array(); for($i=1;$i<=$arrayCount;$i++){ $date = trim($allDataInSheet[$i][“A”]); $dir = trim($allDataInSheet[$i][“B”]); $sinvalue= sin(deg2rad($dir)); $cosvalue= cos(deg2rad($dir)); $values[] = array( ‘date’ => $date, ‘sin’ => $sinvalue, ‘cos’ => $cosvalue, … Read more

[Solved] How to arrange items in a flexbox?

[ad_1] Simple flexbox approach: #item1 { height: 200px; } #item2, #item3 { height: 100px } #item1 { background: yellow; } #item2 { background: green; } #item3 { background: blue; } .parent { display: flex; flex-direction: column; flex-wrap: wrap; height: 200px; } <div class=”parent”> <div id=”item1″>Item1</div> <div id=”item2″>Item2</div> <div id=”item3″>Item3</div> </div> Simple float and no flexbox … Read more

[Solved] Live Update Get Request [closed]

[ad_1] I strongly advice to call the function again inside the success of the api call. A solution using setInterval may hammer the site even when it gives errors. Also the request can take longer than 2 second to execute Here I use jQuery for simplicity’s sake Use setTimeout inside the success: function getIt() { … Read more

[Solved] How to add columns using Scala

[ad_1] val grouped = df.groupBy($”id”).count val res = df.join(grouped,Seq(“id”)) .withColumnRenamed(“count”,”repeatedcount”) Group By will give count of each id’s. Join that with original dataframe to get count against each id. [ad_2] solved How to add columns using Scala

[Solved] Hyperlink not working on

[ad_1] Why you are keeping 4 submit button inside a form. Search is the only submit button. Change rest of the button type to button only. I) And, add onlick=”location.href=”https://stackoverflow.com/questions/33014996/Your URL””. Like this, <input type=”button” style=”background-color: red” value=”Login” onclick=”location.href=”http://localhost/login/”;”> II) Add , onclick=”javascript:window.open(‘http://www.facebook.com/’, ‘_blank’);”> for opening in new tab. <input type=”button” style=”background-color: red” value=”Facebook” onclick=”javascript:window.open(‘http://www.facebook.com/’, … Read more

[Solved] How to put PHP variable in array

[ad_1] If you want a string instead of an array of numbers, you can use the join method http://php.net/manual/en/function.join.php. $str = join(‘,’, array(1, 2, 3)); If you are wanting to create an array out of a string like ‘1,2,3’ you could use the explode method http://php.net/manual/en/function.explode.php. $arr = explode(“,”, “1,2,3”); [ad_2] solved How to put … Read more

[Solved] HasNextInt() Infinite loop [closed]

[ad_1] Based on your comment A user can input multiple integers the amount is unknown. Ex: 3 4 5 1. There is a space inbetween them. All i want to do is read the integers and put it in a list while using two scanners. You are probably looking for: scanner which will read line … Read more

[Solved] isset(SESSION[‘user’]) not working [closed]

[ad_1] see this post for how to handle passwords… it uses mysqli but you should be able to easily see how it would work with pdo. https://stackoverflow.com/a/26321573/623952 insert your passwords like this: $password_to_insert_into_db = password_hash($plaintext_password, PASSWORD_BCRYPT); I changed variable names and things. b/c it was easier for me. <?php session_start(); // for my testing… $_POST[‘username’] … Read more

[Solved] Cannot convert value of type ‘NSMutableArray’ to expected argument type ‘[Any]!’

[ad_1] There’s no reason to be using NSMutableArray here. Just use native Swift data types: let data = [“1”, “2”, “3”] self.personDownPicker = DownPicker(textField: self.servicioTextField, withData: data as NSMutableArray) [ad_2] solved Cannot convert value of type ‘NSMutableArray’ to expected argument type ‘[Any]!’

[Solved] Inheritance of a template class [closed]

[ad_1] You can maybe do something like this: template <typename T> class store_impl { public: store_impl(T value) : value(value) {} private: T value; } // default class accepting any type // provides the default methods template <typename T> class store: public store_impl<T> { public: store(T value) : store_impl(value) {} } // specialization for int with … Read more