159 Topics

Member Avatar for
Member Avatar for Reverend Jim

**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 …

Member Avatar for kimwel
4
966
Member Avatar for bprosic

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 …

Member Avatar for Diafol_2
1
1K
Member Avatar for Start4me

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 …

Member Avatar for Start4me
0
2K
Member Avatar for AssertNull

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; …

Member Avatar for Reverend Jim
0
563
Member Avatar for AssertNull

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 …

Member Avatar for AssertNull
0
452
Member Avatar for Ivan_10

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 …

Member Avatar for Ivan_10
0
328
Member Avatar for nitin1

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 …

Member Avatar for rproffitt
0
244
Member Avatar for abhi10kumar

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?

Member Avatar for diafol
0
411
Member Avatar for Dani
Member Avatar for lewashby

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 …

Member Avatar for lewashby
0
499
Member Avatar for davy_yg

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 …

Member Avatar for minitauros
0
271
Member Avatar for mridul.ahuja

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) …

Member Avatar for mridul.ahuja
0
416
Member Avatar for Niloofar24

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?

Member Avatar for Gribouillis
0
17K
Member Avatar for diafol

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 …

Member Avatar for cereal
2
355
Member Avatar for grakovski

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: …

0
146
Member Avatar for Niloofar24

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 …

Member Avatar for Niloofar24
0
426
Member Avatar for Niloofar24

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?

Member Avatar for diafol
0
601
Member Avatar for Niloofar24
Member Avatar for Niloofar24

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 …

Member Avatar for Niloofar24
1
1K
Member Avatar for Niloofar24

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 …

Member Avatar for Niloofar24
0
2K
Member Avatar for Niloofar24

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. …

Member Avatar for iJunkie22
0
374
Member Avatar for Niloofar24

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.)

Member Avatar for Niloofar24
0
3K
Member Avatar for jonow

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?

Member Avatar for Squiva
1
2K
Member Avatar for mike_2000_17

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?

Member Avatar for Dani
0
317
Member Avatar for praveendasika

[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 …

Member Avatar for Abdhesh_1
0
341
Member Avatar for Ravi Rajput
Member Avatar for <M/>

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 …

Member Avatar for shashikumar s g
1
696
Member Avatar for HoverportMedia

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 …

Member Avatar for Ketul_1
0
411
Member Avatar for mattster

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` …

Member Avatar for Dani
0
478
Member Avatar for TrustyTony

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.

Member Avatar for pritaeas
0
240

The End.