37 Solved Topics

Remove Filter
Member Avatar for Montasser_1

I try to remove the last character from a string with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩‍🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the characters and shows garbage. How do I fix this?

Member Avatar for Montasser_1
1
47
Member Avatar for Steph102

Hi everyone. I am just learning Python on class so I am really at the basic. I need to write a python program that will flip a coin 100 times and then tell how many times tails and heads were flipped. This is what I have so far but I …

Member Avatar for Reverend Jim
1
16K
Member Avatar for Mr.M

Hi DW, I'm trying to mark attendance register which has the date for which that register is being marked for as well as the date which the register is actually marked on. For Date as well as Marked Date. I also have two time picker textboxs which one is for …

Member Avatar for Dani
0
90
Member Avatar for Dani

How can I identify and delete unused MySQL indexes? I have a large table that has somehow accumulated way too many indexes over the years, and I'd now like to identify and delete indexes that are no longer used by the application.

Member Avatar for Dani
0
118
Member Avatar for lennyli

I have tried to read https://www.daniweb.com/programming/web-development/threads/386380/cannot-run-exe-files-in-asp-net-application but still lost in trying to achieve something. I installed the latest .net framework, and IIS on the latest updated windows 11. I wish to achieve the following: Have a webpage with a button, when pressed, it will launch a webpage that runs a …

Member Avatar for Dani
1
178
Member Avatar for Miles_0

What are the best practices for ensuring data consistency and integrity when using cloud storage for large-scale applications? Specifically, how do different platforms handle issues like eventual consistency, data replication across regions, and conflict resolution in distributed environments? Are there any recommended tools or strategies to optimize these processes for …

Member Avatar for Dani
1
61
Member Avatar for NuGG

I have recently come into possession of 2 second hand Fujitsu RX series servers, and this issue is driving me nuts! When I got them neither had disks, so I popped some disks in and installed a Win Server 2019 hyper-v service. So both servers have entirely clean and activated …

Member Avatar for Dani
0
85
Member Avatar for Romaric Onel

Hey guys, I'm struggling to make my **website faster**, and it's driving me cra*y. 🤯 **What are your best tips to improve speed without breaking everything? Any must-have tools or tweaks? ** *I understand French! 😊*

Member Avatar for Dani
1
114
Member Avatar for steve_55

Hello clever people, Completely new to VB.NET (only installed Visual Studio 2019 in the past couple of days). To start all I want to do is open Excel (office 365) from a button on a userform. The location of the file is on a network, lets say: - \\file-svr01\Rozel\Design\Parts\PNG.xlsx OR …

Member Avatar for Pelorus_1
0
3K
Member Avatar for MasoodDidThat

My website is an ecommerce website and it has more than 500 pages, the SEMRush is only crawling 4 pages and i checked on google search conscole and all the pages there are indexed. My internal linking is also good. Help me understand why semrush is not crawling all my …

Member Avatar for jonathannweyer
1
159
Member Avatar for Krisha03

Hello There, I am looking for MUI React-based admin template in the TypeScript version for my project. Can you guys suggest some React Admin templates that are comprehensive and easy to use? I really appreciate any help you can provide.!

Member Avatar for Pelorus_1
1
243
Member Avatar for Dani

I ran into a bit of a snag in my code, and I'm trying to make heads or tails as to whether this will work. From within my PHP script, can I write to a database using a MySQL connection in the middle of a transaction with a different connection? …

Member Avatar for Dani
0
285
Member Avatar for Mr.M
Member Avatar for Sammi_2

Support for the apple developer enterprise account is required for a long time. Because customers need to distribute the app privately within their company, only an in-house certificate can do this. If you have one, please leave me a message

Member Avatar for Dani
-1
11
Member Avatar for Slavi

I am just wondering, how do browsers actually keep/save usernames and passwords? Is it in plaintext? or encrypted somewhere and then decrypted when a specific page is visitted?

Member Avatar for Dani
1
119
Member Avatar for dgdigital1

As a digital marketing expert, I can say that, Digital marketing is very important for businesses today! Many people spend a lot of time online, looking at social media, searching for products, or reading reviews. With digital marketing, businesses can reach their customers where they are. It helps them advertise …

Member Avatar for DM Karun
-1
184
Member Avatar for Mr.M

Hi DW, I'm trying to get selected option id, the problem with my code is that it is only showing or returning the id of the first select only even if I click other options it doesn't return them. Heres my code var xid = $('#managsel option:selected').attr('id'); alert("The id is: …

Member Avatar for Biiim
0
142
Member Avatar for Mr.M

Hi Dw, I want to get the keys and data of the php json response, heres the response I get {"content":{"1":{"title":"Present","start":"2025,01,29","end":"2025,01,29","backgroundColor":"#f39c12","borderColor":"#f39c12"}}} all I'm interested in starts from title.

Member Avatar for Dani
0
96
Member Avatar for PsychicTide

Hello friends, it's been some times since I've posted here, but this community has always been my "I really need help" place to go. Lets get to the idea... I have a WordPress (dislike WP very much) site I'm customizing. Have a popup iFrame on click that is built into …

Member Avatar for Dani
0
97
Member Avatar for vaishnav2010

What are the new tools to increase the visibility of our website and genrate more business through Digital Marketing ? Which activity will improve the SERP max .... ?

Member Avatar for LMC_705
-3
1K
Member Avatar for cored0mp

A script that was working fine on 100 records per batch choked when I fed it 1,000 records. It gave: mysql.connector.errors.OperationalError: 1040 (08004): Too many connections So I went ahead and made sure to connect.close() everywhere that I opened a connection, and the script made it much further but eventually …

Member Avatar for cored0mp
1
279
Member Avatar for alexxx1

So i'd like to have a **text** saying [Location] which will be shown and changed based on the viewer's location/ip. I tried to follow this video here https://www.youtube.com/watch?v=1KiGKd2XXL4 but i didn't manage to make it to work. I registered on 2 websites to get an API key which i placed …

Member Avatar for toneewa
2
144
Member Avatar for misstj555

Hi. I am a college student and I am in my third year of college. I have an associate degree in general science and i am studying to earn my bachelor's degree in Computer Science. I have been trying to get an internship (basically for job security and work experience) …

Member Avatar for WendyDolan
0
2K
Member Avatar for tjeckley

Hello DaniWeb community. I haven't been on the site in quite some time - it's so intense now that I almost feel a bit silly for asking a simple question but here goes. I have a personal account set up with Microsoft 365 and all is well for the most …

Member Avatar for tjeckley
1
63
Member Avatar for TaraRiddle

Is there any method in java to generate random number (integer, byte or float) ? Please tell me if any i need it in my program. If possible please give full example. Thanks!

Member Avatar for WendyDolan
0
1K
Member Avatar for cored0mp

Hello Gang! I'm grateful once again for the advice to use MySQL over Postgres. It's been a pretty smooth experience so far. Unfortunately I had to migrate to a different host and have been getting an undefined variable error. Mysql is Running. I used the package manager to get python-mysql.connector …

Member Avatar for cored0mp
1
192
Member Avatar for SolidSolutions

I had a difficult time figuring out how to get or test the last character of a string with javascript, so figured I would post it once I found out in case it helps someone else. I found plenty of removing the last character, but not for just checking what …

Member Avatar for Biiim
0
5K
Member Avatar for Chris Hüneke

# Extract Schema.org Data Script # Maybe this is helpful for somebody... ## Description ## This script extracts Schema.org data from a given URL and saves it to a file. ## Usage ## 1. Run the Script: Execute the script in a Python environment. 2. Input URL: Enter the URL …

Member Avatar for Chris Hüneke
0
52
Member Avatar for kothaisaravan

Hi, Am using VB.NET. I have a search page in one form(Search.vb) and another form(Form1.vb) to display the details of selected data from the search form. I already have back button in Form1.vb which returns to some other form say (Action.vb). In case of searching data it returns to Form1 …

Member Avatar for cj10101
0
892
Member Avatar for Chris Hüneke

# Extract and Count Reviews Script # This script was basically the concept for a similar WP Plugin, which automatically counts the amount of all single product ratings in each category and writes the correct amount of total reviews in a category on the category pages "aggregate rating" Schema.org Markup. …

Member Avatar for abuislam
2
45
Member Avatar for Chris Hüneke

# Extract Schema.org Data Script # Maybe this is helpful for somebody... ## Description ## This script extracts Schema.org data from a given URL and saves it to a file. ## Usage ## 1. Run the Script: Execute the script in a Python environment. 2. Input URL: Enter the URL …

Member Avatar for suwaidi
0
44
Member Avatar for cored0mp

Hey Gang! I'm hitting a point with my (python/mysql/linux) app for processing large amounts of network records where I need to make a design decision. I definitely want my app to have high performance. Because optimization as a skill set is so rare there is no reason not to employ …

Member Avatar for Pelorus_1
2
100
Member Avatar for cored0mp

Recently made a decision for an app I'm working on to accumulate data in batches AND THEN to insert it into the database with one statement rather than adding 1,000 records through one thousand separate inserts. Is this done better through file or memory? If I write the segments of …

Member Avatar for DGPickett
1
221
Member Avatar for kamaksha1

Hi.. I've to remove a very long path. I've written the below to try that but its giving WindowsError: [Error 206] (I've pasted it below). I've prepended "\\?\" to the actual path but still I'm getting the exception. Please let me know the solution... ++++ import os import shutil os.rmdir(os.path.realpath(r"\\?\D:\Kamesh\test-1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950\test-1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950\kkkkkkkkkkkkkkkkkkkkkkkkk\kllkppppppppppppp\long_path_test")) …

Member Avatar for Reverend Jim
1
8K
Member Avatar for Freaky_Chris

Hey, im having a problem retrieving information about some files due to the fact either the file name or the extension is too long. For example i want to retrieve the size of a file only i call [CODE=Python]os.path.getsize("somelongfilename.txt")[/CODE] Note that it may not be a .txt extension, but it …

Member Avatar for rory jackson
2
4K
Member Avatar for VAIBHAV_20
Member Avatar for Stefce

Does all .apk files can be decompiled no matter on how they are protected and secured, and recompile back in apk file? I have an apk file which i need the source code to change something a little bit. I tried using [javadecompilers](http://www.javadecompilers.com) but i did not get the main …

Member Avatar for Umar_35
0
2K

The End.