159 Topics
| |
**Requires:** 1. Python version 3.8 or newer 2. wxPython version 4.0 or newer 3. exif module 4. Windows with NTFS file system To ensure you have the required packages please run the following 1. python -m pip install --upgrade pip 2. pip install exif 3. pip install wxPython I have … | |
Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket … | |
I've been looking tutorials and examples of setting the value field of a input tag. I'm trying to enter two IP addresses into the text fields on [this](https://www.ipaddressguide.com/cidr) website, under IP Range To CIDR. But my code won't enter anything. There's no ID tag, so I can't use the getElementById … | |
Consider my post in this thread... https://www.daniweb.com/programming/software-development/threads/508038/how-to-change-this-program-to-fully-oop Consider this code... int main() { srand(time(NULL)); char enter; // game starts Player player; // title cout << "Welcome to Zombie War." << endl << "Press [ENTER] to start."; cin.get(); // player name cout << "Please enter your name: "; cin >> player.playerName; … | |
See this thread. https://www.daniweb.com/programming/software-development/threads/506236/may-i-please-have-help-with-a-cannot-find-symbol-error The first line of my response is code and I did not forget to indent. I also used the `</> Code` button. It turned green like it should, so it looked fine. Then I hit submit and the code was in regular text. Edited it a … | |
I have this: <div class="to_remove"> <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> </div> I need preg_replace to edit like this: <div class="widget widget-list"> <div class="panel panel-default"> <div class="panel-heading bold">Menu</div> <div class="panel-body"> content </div> </div> </div> I need to remove <div class="to_remove"></div> but … | |
Hi, I have one CSS. .buttonSize { min-width : 58% } Actually, I have two buttons, with text "Hovers" & "Copy". My button without any css taking spaces which can wrap the text size. This way size of two buttons is not same. What I tried: a) I have hacked … | |
I am storing the formatted text in the table which contains html tags (<br />, <strong>, etc). If I use raw attribute in the div, it show perfectly but not in textarea. How I can display the formatted content in the textarea? | |
Raise of hands, who here **likes** the tagging system? | |
The php/html file I am working on is laid out in this way. <?php // connect to DB $connection ?> html html html <?php foreach($connection-query($sql) as $row) do stuff ?> I'm getting the error 'Invalid argument supplied for foreach()' when I run this page. Can I not break out of … | |
I think I find a few points that are quite good to utilize: index.php <meta name="keywords" content="Branding, Web Design, Packaging, Illustration" /> <meta name="description" content="This is One, a multipurpose website" /> <meta name="author" content="Davy Gunarso"> Another thing that I would like to ask is what is the purpose of using … | |
I have a website with the url to be entered in TextBox2 . I want to extract names, email ID and mobile numbers of people from the website. The url in TextBox2 contains the names and the email IDs, however the mobile numbers are present on another webpage (profile page) … | |
Hello. This is my code: from bs4 import BeautifulSoup import urllib2 url = urllib2.urlopen('http://www.website_address.com') soup = BeautifulSoup(url) images = soup.find_all('img') Now how can I get the "src" of img tags? | |
| In this thread: https://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/495011/jquery-gallery/3 I tried to format the html in the editor without success. I narrowed it down to <script> tags. All lines prior to the <script> tags seem to be missing a new line and HTML looks as if it's been posted as one long line. If a … |
I see in phpbb template system it has <!-- PHP --> code <!-- ENDPHP --> tags in template and you can include php code inside them <!-- PHP --> = start tag of php <?php <!-- ENDPHP --> = ?> I want to use something else in mustache php, like: … | |
Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 … | |
Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too? | |
Hello. How can i get the html tags and texts of a web page in php? | |
Hi. In my CMS, when i type a content for a new post in the textarea, like this: one two three four five six and then click the submit button, it will save in the db table like the way i have typed, every word in a separate line. But … | |
Hi everybody. I have a page with some post's title in it. I have put every title in an <a> tag. I want to click on each title and enter into an other page (single-post-page.php) to see the content of that post's title. The script of that page (single-post-page.php) should … | |
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the name of singers that their names starts with the letter "A". Now i need a little help for this step. … | |
Hi. How i can ask my crawler to print only the text of all <li></li> tags in a url page? I want to save the text of all <li></li> tags in a text file (without` <li></li>` words.) | |
I know i just posted below, but i have another question. Is it dangerous to have the <head> tag be included using PHP include? Is it dangerous to have the <body> tag or <html> tag or doctype to be included using PHP? | |
It seems that all of a sudden, some threads have 50 or more tags (e.g., the [C++ forum](http://www.daniweb.com/software-development/cpp/8)). They seem to have just appeared, and take up a significant space in the listing (6 or 7 rows of tags below each post). Shouldn't there be some limit or something? | |
[CODE] .content { padding:24px 0 40px; Width:100%; } .content_left { float :left ; width:15%; } .content_second_left { margin-left:15%; width :20%; background-color :Black; } .content_third_left { margin-left:35%; width :50%; background-color :Red; float :left ; } .content_right { margin-left :85%; width:15%; } [/CODE] [CODE] <div class="content"> <div class ="content_second_left" > <asp:ContentPlaceHolder ID … | |
what is abstract meta tag? why we use it on website. | |
I seem to not be able to identify why the styling does not appear at all on my page... Did i reference something incorrectly? It all appears right to me... syntax, quotes, tags all look right. Does anyone have an idea what may be happening? Sorry if my question is … | |
Ladies and gentlemen, I've been studying SEO and writing articles consistently for well over a year now and there are a ton of topics that still perplex me. One of them in particular is the "focused" keyword element in combined with the title tag, the description tag, H1 and H2 … | |
Following our recent discussions about mandatory tags, why not force users to use tags, but also help them along..? Say I create a discussion with the title "Sharing a variable between PHP scripts on same page" Something like Javascript would automatically place into the textbox: `sharing` `variable` `PHP` `scripts` `same` … | |
If I want to search for some tag, and I have not any so tagged post in front of me, how I open posts with that tag? I know that if I have one similarly tagged I can only click the tag. |
The End.