[Solved] want to remove the space between two divisions using css

[ad_1] For the start do li { margin-bottom: 0; margin-top: 0;} since by default li element has bottom/top (depending on a browser) margin. If you need to “squeeze” the elements even more, then go with the negative values for the margin. 1 [ad_2] solved want to remove the space between two divisions using css

[Solved] Unable to capture records name , price and rating and image in Requests Python [closed]

[ad_1] You have to scrape the adidas site and use regex: import requests import re endpoint = “https://www.adidas.com.au/continental-80-shoes/G27707.html” headers = { ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36’ } response = requests.get(endpoint, headers = headers) data = response.text pricereg = r”(?<=\”price\”:)(.*)(?=,\”)” namereg = r”(?<=\”name\”:)(.*)(?=,\”co)” ratingreg= r”(?<=\”ratingValue\”:)(.*)(?=,\”reviewCou)” price = re.search(pricereg, data, re.MULTILINE).group() … Read more

[Solved] User/Admin login in PHP

[ad_1] Could you try this out? $conn = mysql_connect (“localhost”, “root”,””); mysql_select_db(“a_blub”,$conn); $result = mysql_query(“SELECT password FROM user WHERE username=””.mysql_real_escape_string($_POST[“theusername’]).”‘ LIMIT 1”, $conn); $row = mysql_fetch_assoc($result); if ($_POST[‘thepassword’] == $row[‘password’]) { if ($row[‘admin’] == 1) { header(“Location: hit-counter.php”); exit; } else { header(“Location: index_loginsuccesful.php”); exit; } } else { header(“Location: index_loginfailed.php”); exit; } 2 [ad_2] … Read more

[Solved] SQL Rows into Columns

[ad_1] You cannot achieve this with transpose. rather try using natural full outer join WITH T AS (SELECT P.*, ROW_NUMBER ( ) OVER (PARTITION BY PERSON, LEVELS ORDER BY LANGUAGE) R FROM PROGRAMMER P) SELECT PERSON, SENIOR, MID, JUNIOR FROM (SELECT PERSON, R, LANGUAGE SENIOR FROM T WHERE LEVELS = ‘SENIOR’) NATURAL FULL OUTER JOIN … Read more

[Solved] Recover damaged lotus [closed]

[ad_1] Well…try this steps: Open the “Start” menu and click “Computer” or “My Computer” depending on your version of Windows. Navigate to the C drive. Open the “Notes” folder. Double-click on the “Notes.ini” file to open it in Notepad. Place a semicolon (;) in front of the following two lines to temporarily disable VirusScan: AddInsMenus=NCMenu … Read more

[Solved] Remove text that starts with [closed]

[ad_1] You could use the following regex to replace from the first – character and any characters there after. $(“.colsborder h3″).each(function(){ var str = $(this).text(); var replaced = str.replace(/-.*/, ”); $(this).text(replaced) }); <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js”></script> <div class=”colsborder”> <h3>Startoftext-needtoremove</h3> </div> This method would be faster than using the substring or split methods. 1 [ad_2] solved Remove text … Read more

[Solved] Take input from keyboard and edit existing text file

[ad_1] You need to write to your file using the file stream you have defined once you have taken your inputs and you can do that using fout as follows. Additionally, there are different modes in which you could open a file for writing to it, which you can go through here. fout.open(“FootballTeam.txt”); cout << … Read more

[Solved] How I can showing div element after I hover another div? [closed]

[ad_1] You can solve this without JS, with pure css. HTML <div id=”button”> hover me </div> <div id=”my-menu”> my menu </div> CSS #my-menu, #button{ padding: 5px; border: 1px solid #000; } #my-menu{ display: none; } #button:hover + #my-menu, #my-menu:hover{ display: block; } Here is a JSFiddle: http://jsfiddle.net/p8pqquc9/ You will have a problem with this solution, … Read more

[Solved] Save value of a drop-down list and reassign it

[ad_1] var lastValue; $(‘#qty’).live(‘change’, function () { if ((this.value) == 10) { $(this).replaceWith($(‘<input/>’, { ‘type’: ‘text’, ‘value’: +(this.value) })); } else{ lastValue = this.value; } }); And then use lastValue to reset the value of the selectbox when you have to show it. EDIT : modified the jsfiddle, you jsut need to create the list … Read more

[Solved] Unit Testing (e.g.Specflow) vs Selenium [closed]

[ad_1] This would deeply depend on the whole development lifecycle approach. In an ideal world, developers write unit tests. But someone else needs to test their work (2nd pair of eyes). So a tester would also write tests (whether automated or manual test scripts). Cucumber & TestNG basically work like Unit Tests do, Cucumber specifically … Read more

[Solved] Find an easy web server framework for mobile game [closed]

[ad_1] You should try out Firebase (https://www.firebase.com/) if you’re looking for something relatively easy to store game data with. If you’re looking for something to manage logins and storing simple data, either Twitter’s Fabric (https://get.fabric.io/) and AWS Cognito (https://aws.amazon.com/cognito/) can also be used as well 2 [ad_2] solved Find an easy web server framework for … Read more