How do I make my code jump back to a previous line? Programming by trueriver I'm just coding something for fun right now and I'm stuck on looping. I'm using a while loop that only runs if my variable is 0. Right now, I set the variable to 0 but the code was after the loop. How do I fix this? import time import sys #Global Variables firstTime = True loggedIn = False incorrectLogin = … 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 #Global Variables firstTime = True loggedIn = False incorrectLogin = True admin = False n = 0 n1 = 0 i = 0 #Create login if firstTime is True if firstTime is True: print("… 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" 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 :) JForum release for JakartaEE 10 Hardware and Software Cloud-based Apps by Ulfson … you need Tomcat 10.1 or comparable to run it. Previous versions ran fine using the *webapps-javaee* mechanism of Tomcat… Re: Delete unused MySQL indexes Programming Databases by Reverend Jim … queries were on the current month, 5-10% on the previous month, and only rarely on older months, I created a… of tables for each month, and views that combined the previous, current, and next months. Inserts were only ever done on… Re: Fujitsu Windows Server 2019 Servers Rebooting at 11pm every day Hardware and Software Microsoft Windows by NuGG … has been driving me mad for two weeks. Turns out previous owners had a power on schedule configured, and the management… Re: Cannot run exe from asp.net Programming Web Development by Dani Marking this question as solved. Thanks all! Re: JForum release for JakartaEE 10 Hardware and Software Cloud-based Apps by Dani Congrats on the latest release of your software. May I ask what inspired the decision to host the project on Sourceforge instead of GitHub? I rarely see well-maintained projects on sourceforge these days, sadly. Re: JForum release for JakartaEE 10 Hardware and Software Cloud-based Apps by Ulfson > May I ask what inspired the decision to host the project on Sourceforge instead of GitHub? I rarely see well-maintained projects on sourceforge these days, sadly. JForum had already lived on SF for several years before I became involved. At this point there are just 2 committers, and while we talked about moving to Git, it never seemed … Re: JForum release for JakartaEE 10 Hardware and Software Cloud-based Apps by Dani A bit off topic, but as a developer of one, DaniWeb started on SVN and eventually moved to Git when redoing the platform from scratch about a decade ago. I also really like being in GitHub, despite it being a private repository so I’m not taking advantage of the network effect. Re: Android Native - How To Request Notification Permissions Programming Mobile Development by Erussuhsh Hi I'm new android app development can you teach me Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks Programming Computer Science by usmanmalik57 …achieved using [the GPT-4o model in a previous article](https://www.daniweb.com/programming/computer-science/…the accuracy achieved by [GPT-4o in a previous article]((https://www.daniweb.com/programming/computer-science/…performance achieved by [GPT-4o model in a previous article](https://www.daniweb.com/programming/computer-science/tutorials… DeepSeek R1 vs Llama 3.1-405b for Text Classification and Summarization Programming Computer Science by usmanmalik57 In a [previous article](https://www.daniweb.com/programming/computer-science/tutorials/543028/… models. This is the same dataset we used in the previous article for comparing distilled versions of the `DeepSeek R1` model… Differential Directory, indexing method Programming Software Development by xrjf … the differentiating bit of a key with respect to the previous one and stores only this position in the index. * With… (DiDi) stores only the difference between each key and the previous one (already sorted), rather than storing full keys in each… Re: Differential Directory, indexing method Programming Software Development by xrjf "Just to clarify a previous mistake: the efficiency should be K × N × log₂(N), not K × log₂(N) as I initially wrote." Cannot run exe from asp.net Programming Web Development by lennyli … launch the site with a certain port number, while your previous discussion 13 years ago suggested to use the session state… Re: Buggy career talk :-P Programming by Reverend Jim … comma was in column 72. The next line continued the previous statement. By pushing the comma into the sequence area it… Re: What should I look for in a reliable web design and development agency? Digital Media Digital Marketing by asadalig Must have good track record of the previous projects. Timely submission or completion of the projects. Make sure have expertise in specific domain. and many more things to consider. Re: Differential Directory, indexing method Programming Software Development by rproffitt DiDi appears to be some China based UBER service but then again I can't find a question or much else to discuss here. Re: Differential Directory, indexing method Programming Software Development by xrjf About DiDi DiDi (Differential Directory) was originally developed as part of my thesis project in the early 1990s. The name bears no relation to the more recent Chinese ride-sharing company. At the time, DiDi was a novel approach within its academic context, but a change in legislation unfortunately led to the closure of the school and the … Re: Differential Directory, indexing method Programming Software Development by xrjf For example, as Donald Knuth points out in The Art of Computer Programming, the theoretical lower bound for comparison-based sorting algorithms is K × log₂(N). I developed a very simple method that matches this performance. However, DiDi goes far beyond: its performance is proportional to K × (maximum key length), regardless of the number of … Re: Differential Directory, indexing method Programming Software Development by xrjf As an illustration, consider the theoretical lower bound for comparison-based sorting, as stated by Donald Knuth in The Art of Computer Programming: K × log₂(N). I developed a simple method that matches this limit. For example, to sort the list {2, 5, 7, 1, 4, 3, 8, 6}: Sort pairs: (2, 5) → [1] (1, 7) → [2] (3, 4) → [3] (6, 8) → [4] Merge… Re: Differential Directory, indexing method Programming Software Development by xrjf I've just made an update because some records weren't being added properly. The issue was that the form didn't take into account that the register field (in the call to DiDi) is passed by reference. Re: Differential Directory, indexing method Programming Software Development by xrjf Just a quick update for anyone interested: I have revisited and significantly improved the code, aiming for a more professional structure and better performance. The updated version avoids freezing the UI during long operations and follows more robust programming practices. If you’d like to see DiDi in action, there is also a video … Re: Cannot run exe from asp.net Programming Web Development by pritaeas > while at the same time run the same exe on the local client pc. Not possible. Re: Cannot run exe from asp.net Programming Web Development by pritaeas No, Javascript cannot run/start executables on the client machine. Re: Cannot run exe from asp.net Programming Web Development by rproffitt I see pritaeas has answered so I'll move to the next stage of the discussion which is to ask what you need in your web site. For example there is an "online notepad" which does some basic notepad work. And there are many screensavers that run from a webpage with an example at whitescreen.online . You can get there. Re: Cannot run exe from asp.net Programming Web Development by lennyli Why does the following code dont run and launch the exe I specify (eg, notepad.exe, or ribbons.scr)? <%@ Language="VBScript" %> <!DOCTYPE html> <html> <Body> <% Dim objShell Dim command Dim result ' Path to the executable command = "C:\… Re: Cannot run exe from asp.net Programming Web Development by pritaeas Are you sure IIS is configured to allow running external scripts?