3,019 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for ___150

Hi, Is it possible to convert the first letter after @ to uppercase using preg_replace? I tried; preg_replace('/\@(\w+)/', 'ucfirst("$1")', $str) But nothing changed when I sent it... 😞 Already like that... It worked, but I don't know how to add the @ before the name that will be converted. $str …

Programming php
Member Avatar for gce517
0
58
Member Avatar for Virat_4

HTML: <div class="container"> <div class="header">header</div> <div class="leftsidebar">leftsidebar</div> <div class="main-top">main top</div> <div class="rightsidebar">right side bar</div> <div class="bottom-left">bottom left</div> <div class="bottom-right">bottom right</div> <div class="footer">footer</div> </div> CSS: .container { display: grid; grid-template-columns: 1fr 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; grid-template-areas: "header header header header" "leftsidebar main-top main-top rightsidebar" "leftsidebar bottom-left bottom-right rightsidebar" "footer …

Member Avatar for gce517
0
45
Member Avatar for SoniyaJonas
Member Avatar for dimitrilc

## Introduction ## When working with ViewModels, instead of using the default, it is best practice that we inject coroutine dispatchers instead of hard-coding them. The reasoning behind this is that it is easier to switch to a testable dispatcher in tests. In this tutorial, we will learn how to …

1
915
Member Avatar for borobhaisab

Hi, I get the feeling from this forum that simplehtmldom is old stuff. Nevertheless, experimenting with it since a simple tutorial code depends on it. Check this Xml SItemap Link Extractor include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //Works. //$sitemap = 'https://www.rocktherankings.com/post-sitemap.xml'; //$sitemap = "https://www.rocktherankings.com/sitemap_index.xml"; //Has more xml files. //Does not work. Shows blank page. $sitemap …

Member Avatar for Dani
0
209
Member Avatar for hapiscrap
Member Avatar for vegaseat

The Tkinter module comes with the normal Python installation. It allows you to create Python GUI programs for Windows, Linux or Unix on the Mac. In this snippet we put a GIF image (.gif) onto a form's canvas with just a few lines of code. Most of the lines are …

Member Avatar for CodeWorked
1
22K
Member Avatar for dimitrilc

## Introduction ## In a previous tutorial, we learned [how to create a notification on Android](https://www.daniweb.com/programming/mobile-development/tutorials/536756/android-native-how-to-create-a-notification#post2282507). In that tutorial, we did not have to request any permission because applications did not need permission to post notifications on Android 12 and below. It has been almost a year since the release …

1
452
Member Avatar for dimitrilc

## Introduction ## When working with RecyclerView, sometimes we are required to scroll the RecyclerView in code, especially after addition of a list item. In this tutorial, we will learn how to scroll to specific positions on a RecyclerView. ## Goals ## At the end of the tutorial, you would …

1
444
Member Avatar for dimitrilc

## Introduction ## In a previous tutorial, we learned [how to set an exact alarm](https://www.daniweb.com/programming/mobile-development/tutorials/537920/android-native-how-to-launch-activity-from-an-exact-alarm). A permission called `SCHEDULE_EXACT_ALARM` was used in that tutorial. Initially, I thought that it was only a normal install-time permission, but I have recently found out that this specific permission also belongs to a rare …

1
271
Member Avatar for derekrandall139

My site is not much responsive as it used to be after the google updated. Can anyone look into it to see where the problem is?

Member Avatar for Dani
1
88
Member Avatar for srijama

I have been developing WordPress websites for the last five years. My skills include developing plugins and websites such as mouse tests and keyboard tests. Learning more about development interests me

Member Avatar for Dani
1
32
Member Avatar for Husnain_6

I have written code to append, prepend and update a linked list using c++. But I am unable to figure out the problem. Can anyone help me to run it. I will be grateful for the favor. The code is pasted below: #include<iostream> using namespace std; class node { public: …

Programming c c++
Member Avatar for Reverend Jim
0
141
Member Avatar for nouran_2

A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You’re to write an application to assign seats on each flight of the airline’s only plane (the capacity of the plane is 10 seats of the same …

Programming c c++ visual-basic-6
Member Avatar for rproffitt
0
107
Member Avatar for Yaw_905

Hello, My name is Frank from Ghana in the west africa, Please I just started learning python today. Can i get a dedicated mentor i can ask question in case i run to errors. Thanks a lot i will be waiting please.

Member Avatar for CodeWorked
0
79
Member Avatar for Vandiun

How can I make a single dmg file out of many Python files in different folders? I know that's doable for a single file, but how can I do it for several? I can make a dmg for a 1.py file but not for numerous files in several directories.

Programming python
Member Avatar for rproffitt
0
74
Member Avatar for xyzwd

**Write a python program to take 10 values from user. The values are given below: myValues = 3,6,7,9,3,6,8,3,5,10, 19,0,1,0,15** **1. Print the sum of those numbers which are at odd positions and the division of the even index numbers. 2. Remove the duplicate numbers and place some random number between …

Programming database python web-design
Member Avatar for CodeWorked
0
64
Member Avatar for Williams Brown
Member Avatar for HaryBanker
Member Avatar for borobhaisab

Hiya, I need to know something. First I thought Sitemap Xml files will list all .html and .hml and .shtm and .shtml files. All pages of the website. But now I see, Sitemap xml files also list other xml files. Check this one out for what I mean: https://www.rocktherankings.com/sitemap_index.xml So …

Member Avatar for Dani
2
902
Member Avatar for Curious Gorge

I am on the latest version of Windows 10, running with SWI-Prolog 7.6.4, and trying to get JPL (Java <->Prolog) running for a school project. I've not had to deal with path issues much but I have done my best to understand the problem. I've added the necessary import statements …

Member Avatar for ashramvidamvid
1
3K
Member Avatar for borobhaisab

I am still at procedural style programming. And so, oop code samples confuse me. I found this oop style. Any chance you can show me how to convert this to procedural style ? Test the code. It woks fine! https://bytenota.com/parsing-an-xml-sitemap-in-php/ // sitemap url or sitemap file $sitemap = 'https://bytenota.com/sitemap.xml'; // …

Member Avatar for borobhaisab
1
526
Member Avatar for RC_820

i have 3 tables : users, deposit, withdraw **table users :** id , username, referral 1. 1, a1, null 2. 2, a2, a1 3. 3, a3, a2 4. 4, a4, a1 5. 5, a5, a2 **table deposit :** id, users_id, amount, status, approve_date 1. 1, 1, 10000.00, approve, 2022-10-01 14:52:53 …

1
90
Member Avatar for borobhaisab

Hello, I am building a searchengine with php. Nearly finished. Now, I need to build the web crawler. Since most websites have xml sitemap for web crawlers to use to find their site links, I prefer to build an xml site map crawler than a general http crawler. I am …

Member Avatar for Dani
0
611
Member Avatar for usmanmalik57

## Introduction ## In this tutorial, you will see how to convert the text in CSV file columns to other languages using the [DeepL API](https://www.deepl.com/translator) in the Python programing language. DeepL is one of the most popular and accurate text translation platforms. DeepL, as the name suggests, incorporates advanced deep …

0
559
Member Avatar for usmanmalik57

## Introduction ## I was working on a problem where I had to scrape tweets related to the T20 Cricket World Cup 2022, which is currently taking place in Australia. I wanted tweets containing location names (cities) and the keyword “T20”. In the response, I want the user names of …

0
124
Member Avatar for Java5

Overwhelming inboxes are a typical complaint in the modern day. It might be challenging to keep up with the constant stream of communications and choose the most crucial ones, which is why we have put together this guide on how to handle email overload. Constantly checking your inbox throughout the …

Member Avatar for james 1499
0
65
Member Avatar for Stefce

I want to get a string from different website and to display on mine. The website have this HTML code inside it <ul data-v-61cbae47="" class="b-tabs__nav m-tabs-default m-flex-width m-size-md m-mb-reset js-tabs-switchers m-over-separator"> <li data-v-61cbae47="" class="b-tabs__nav__item m-current"><a data-v-61cbae47="" href="/jenawolfy" aria-current="page" class="b-tabs__nav__link m-with-rectangle-hover m-tb-sm router-link-exact-active router-link-active" id="profilePostTab"><span data-v-61cbae47="" class="b-tabs__nav__link__counter-title">130 posts</span></a></li> <li data-v-61cbae47="" class="b-tabs__nav__item"><a …

Member Avatar for rproffitt
1
138
Member Avatar for estherschindler

The job you’re applying for says, “Redis experience required.” Are you ready for the questions a hiring manager is likely to ask? Here’s [how to prepare for the job interview](https://redis.com/blog/redis-interview-questions/)... as inspired by Lord of the Rings. Nominally the article is written for someone getting answers ready for Redis-specific questions, …

Member Avatar for rproffitt
2
57
Member Avatar for 145493ka

Hi there i have a problem with my cart calculations in a website i am making and it only displays the last price of the item i add to tthe cart instead of the total of all items added <?php $select_cart = mysqli_query($conn, "SELECT * FROM `cart`"); $grand_total = 0; …

Member Avatar for gce517
1
173

The End.