37 Solved Topics
Remove Filter 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? | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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! 😊* | |
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 … | |
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 … | |
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.! | |
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? … | |
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 | |
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? | |
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 … | |
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: … | |
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. | |
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 … | |
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 .... ? | |
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 … | |
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 … | |
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) … | |
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 … | |
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! | |
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 … | |
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 … | |
# 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 … | |
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 … | |
# 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. … | |
# 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 … | |
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 … | |
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 … | |
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")) … | |
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 … | |
![]() | I want to learn ethical hacking anyone's here to help me? |
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 … |
The End.