Re: How do I make my code jump back to a previous line? Programming by Dani Organizing code into functions is always important for readability and also to be able to reuse parts of your code as your app gets bigger. Thank you for posting your updated code to share with others :) Dynamic Properties in PHP 8.2 Programming Web Development by Dani … and sort through and refactor a lot of old, crusty code that was not written by you, there's an easy… Re: How to show visa info based on country selection in a travel form? Programming Web Development by Dani … it appropriately. Can you please provide the Javascript code as well as PHP code that is buggy so that we can help… is most likely because of a bug in the PHP code. If the DOM doesn't reflect the new message, then… PHP instead of PHP utilizing a database? Please provide your code :) Re: Dynamic Properties in PHP 8.2 Programming Web Development by Dani Oh, and an important bit I forgot to mention: PHP's built-in stdClass has the `#[AllowDynamicProperties]` attribute already added. In fact, you can see in the [PHP docs](https://www.php.net/manual/en/class.stdclass.php) that the definition of the stdClass is "a generic empty class with dynamic properties." That means that you can always … How do I make my code jump back to a previous line? Programming by trueriver …. Right now, I set the variable to 0 but the code was after the loop. How do I fix this? import… print("Please log in") time.sleep(1) #Login code while n == 0: if incorrectLogin is True: User_input = input("… Re: How do I make my code jump back to a previous line? Programming by trueriver updated my code... everything is fixed :) i made functions import time import sys #… Re: How do I make my code jump back to a previous line? Programming by woooee if sysInfo.lower() in ["exit", "Exit", "EXIT"]: since sysinfo is now lower(), it will never be equal to "Exit" or "EXIT" Need a small footprint desktop with decent power Hardware and Software by wolfyshoo … my workflow, which is mainly web development (multiple browser tabs, code editor, local server), some graphic design work (Figma, Affinity Designer… does it handle multitasking and sustained performance for things like code compilation or rendering video? I'm particularly interested in whether… Re: Hi everyone, I'm IntelliVinj Community Center Say Hello! by menukids … here — love your passion for programming and exploring no-code/low-code tools,That problem-solving mindset is something we value too… Re: How secure is Github? Programming Software Development by kearawill GitHub is generally very secure for hosting code, especially with features like 2FA, security alerts, … AWS Secrets Manager. When it comes to proprietary code or trade secrets (like specialized algorithms or business …, ensure that your team follows best practices for committing code, reviews, and repository permissions. In short: GitHub can… Re: How do I remove the last character without breaking the string? Programming Web Development by MAY_261 … handles multibyte characters and emojis correctly. Here is the correct code: $text = "私の名前はダバーです👩‍🚀"; $length = mb_strlen($text, 'UTF-8'); $new_text = mb_substr….com/tutorials/php/php-remove-last-character-from-string/ This code removes the last character without breaking the text Re: How do I remove the last character without breaking the string? Programming Web Development by Montasser_1 … characters and emojis correctly. > > Here is the correct code: > > > > $text = "私の名前はダバーです👩‍🚀"; > $length = mb_strlen…/tutorials/php/php-remove-last-character-from-string/ > This code removes the last character without breaking the text Thank you… Re: Need Coding Help With A Project Programming Software Development by Dani … one should ever be made to feel dumb for any code they post, no matter how wrong it might be. I… up and ask their own questions or post their own code for fear of being made to look stupid. > I… Convert jQuery to native Javascript Programming Web Development by Dani I know that this is probably a hopeless question, but are there any automated scripts that would *reliably* and *automagically* convert my thousands upon thousands of lines of jQuery code into native Javascript? Can I Use AI to Build a Block Management Website for Ilford Clients? Programming Web Development by kearawill … curious whether AI tools (like ChatGPT, Copilot, or even no-code builders with AI integration) can speed up the development or… How do I remove the last character without breaking the string? Programming Web Development by 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? Re: When Speed Replaces Satisfaction in Coding Community Center Say Hello! by trcooke … you mentioned. Can you develop code quickly while maintaining your values? Is your code well tested? Is your code beautiful? Do you have… confidence in your code? Can you put your code in production and… Re: I looking for long term cooperation possible client. Programming Software Development by Stiven_1 Sorry, I used a code I had practiced before to sign up quickly. This code is This JavaScript code simulates a basic blockchain — like a mini version of Bitcoin — without a network or mining. It helps you understand how blocks are linked and verified. Re: When Speed Replaces Satisfaction in Coding Community Center Say Hello! by Reverend Jim … not what to do with them. ChatGPT gave me the code, saving me from a day or two of experimentation. That… to create the rest of the code to solve my problem. Similarly I prefer to code in higher level languages, not assembler… Re: My php is showing wrong results of time difference Programming Web Development by Dani > Also just one more question regarding your code, I will have to minus 1 hour from the total … figured this out yet, the answer is no :) In my code above, see where I am showing you what $diff looks…: $total_hours = $diff->format('%h') - 1; This is all untested code. :) Re: My php is showing wrong results of time difference Programming Web Development by Mr.M … and the other is for timeout. Let me try your code and see if it does solve the problem I've… been having. Also just one more question regarding your code, I will have to minus 1 hour from the total… Re: Fujitsu Windows Server 2019 Servers Rebooting at 11pm every day Hardware and Software Microsoft Windows by Dani > I have seen too much code written by self-taught programmers who, through ignorance, eschewed good … Re: Error when sign in with Google Community Center Meta DaniWeb by Dani It should be fixed now. Unfortunately it's been broken for quite awhile and I didn't realize it. It broke on the 5th of the month when I went through all the code and mass-added a wrapper that ran some sanitization stuff. So sorry about that! Either way, it's fixed now. Re: Why am I getting a 401 Unauthorized error when calling the Management API? Programming Web Development by Dani … is from using the Auth0 API. Can you post your code that connects to the API please? (And why, as an… Re: I looking for long term cooperation possible client. Programming Software Development by Dani You might want to check out Upwork or Toptal to get freelance development work. May I ask what the code you provided here does? It seems to just be a constructor function with some getters and setters, but is missing the rest of it. Was it written by ChatGPT? Re: My php is showing wrong results of time difference Programming Web Development by Mr.M Thank you, you saved me, I've been trying for weeks now. It works now perfectly with your code. Re: Coin Flip (Python Newbie) Programming Software Development by Reverend Jim When you want to do a loop a given number of times (e.g. 100) but the loop counter is not used you can do for _ in range(100): # rest of code here Re: Error LNK1104 when debugging Programming Software Development by rproffitt Given only this I won't be able to do more than comment how I use the Visual Studio system to debug my app. 1. I open the project. 2. I set the build to "Debug". 3. I set breakpoints on lines of code I suspect to be problematic. 4. I run the app while in Visual Studio. That's usually enough to track down what I did wrong. Re: Android Native - How To Request Notification Permissions Programming Mobile Development by Erussuhsh Hi I'm new android app development can you teach me Re: How to connect to the Pinterest API using PHP? Programming Web Development by geekinformatic Hey! If you're using the CakePHP framework, you can connect to the Pinterest API with cURL and OAuth integration. Just follow Pinterest’s API docs for endpoints and token handling.