Re: Read, Edit and Write to File Programming Software Development by Ram_034 With this code we able to modify the first line of text. For example i have text file with 5 text lines and i want to modify first 5 chars of first word then how handle this Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’ Community Center by Reverend Jim Based on the proliferation of AI generated content, and the age-old rule of garbage in, garbage out, what will be the result of AI models being trained on ever increasing amounts of content generated by other AI platforms? Will we get into a negative feedback loop where the output will become so polluted with bad input that it will be effectively … Re: ‘Advanced AI should be treated similar to Weapons of Mass Destruction’ Community Center by jwenting Even worse: the junk being deliberately fed to AIs is already at the stage where the results are useless BUT those results are blindly believed by many people BECAUSE they're generated by AI and therefore supposedly automatically correct! Think Google's disastrous launch of their image generator which would under no condition generate Caucasian … Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by m_624 In RayCasting, you may observe wider vertical lines on a square grid due to the …of the algorithm. This phenomenon occurs because the vertical lines represent intersections of rays with grid cells, and …multiple grid cells horizontally, resulting in wider lines compared to the horizontal lines. Adjusting the algorithm parameters or implementing anti… RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho … MapY = GetPositionMap(HorizY) 'Get all Vertical intersection lines until hit a wall: Do If MapX <…MapY = GetPositionMap(VertY) 'Get all Vertical intersection lines until hit a wall: Do If MapX <… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by rproffitt When I work such an issue I set the breakpoint where the trouble is and examine variables. There's some variable that controls the output so that's what you look at. You've posted a lot about ray-tracing and that's all good but setting breakpoints to see what's going on seems to be the challenge. Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho debug print line height: Line Height : 1452 Line Height : 1441 Line Height : 1430 Line Height : 1419 Line Height : 1407 Line Height : 1397 Line Height : 1386 Line Height : 1375 Line Height : 1364 Line Height : 1353 Line Height : 1342 Line Height : 1331 Line Height : 1321… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho i can see: 1 - maybe some are too much height(but they are converted to 300 of max); 2 - on some they are repeated... and maybe the problem is there... i can save the previous Height for test the actual Height.... but i see a problem: if i avoid them, i can lose some height, unless i continue add angle and don't count the rays ;) ... but maybe i… Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho will be rounded numbers problem or something? yes i'm testing more, but no success :( Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho maybe you have right... but, for now, i don't understand why and where i'm fail :( i'm learning from: https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/ theres several tutorials, but not all are so good :( Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho yes i must test more... and, like you see, that vertical bar have another color.... that means the code problem can be here: 'Get the horizontal Ray Distance: HorizDist = Math.Abs((player.PosX - HorizX) / Math.Cos(RayRadians)) 'Get the vertical Ray Distance: VertDist = Math.Abs((Player.PosX - VertX) … Re: RayCasting: why i get a more width vertical lines on square grid size? Programming Software Development by cambalinho what make me more crazy is that i'm using a code, converted and works, from VB6 lol Re: Need help with Lem-in Project Programming by toneewa … + textfile) if err != nil { return farmInfo, err } lines := strings.Split(string(content), "\n") for i, line…Contains(line, "##end") { roomDetails := strings.Fields(lines[i+1]) farmInfo.endRoom = roomDetails[0] } else if strings… Need help with Lem-in Project Programming by Oven …/" + textfile) if err != nil { return farmInfo, err } lines := strings.Split(string(content), "\n") for i, line… := range lines { if line == "##start" { farmInfo.startLine = i + 2… ‘Advanced AI should be treated similar to Weapons of Mass Destruction’ Community Center by Johannes C. … all R&D to an **international agency** (along the lines of [IAEA](https://www.iaea.org/publications/factsheets/iaea-safeguards… minimal-mvc: Frugal PHP micro-framework with basic routing and templating Programming Web Development by pyeri … an even smaller micro-framework for PHP? Something along the lines of Flask or Bottle? Something you can use to develop… Re: Need help with Lem-in Project Programming by rproffitt This assignment would get a failing grade if you used GPT or found code. Toss all that out and write it yourself. Re: Need help with Lem-in Project Programming by Oven Sadly, like i said GPT is not working anymore. My team coded this one. And AI & Ready code is acceptable. But it has to simple because we must understand the code. I found the working code but its 800 rows. So no we cant use it either. Even if anybody can explain the algorithm, that would help a lot too. Its like onion, we are thinking we … Re: Need help with Lem-in Project Programming by rproffitt Then you have to design and create the algorithm before you write code. There's a lesson here about writing code before the design is done. Re: Need help with Lem-in Project Programming by Oven True. Wish we had able to. We cant manage it, thays why im seeking some help. Re: Need help with Lem-in Project Programming by rproffitt This is some academic assignment so the lesson isn't about fixing this found or GPT generated code, it's not even about coding. It's about designing before code. Without a design, how would we code? Or if we use AI to write code, it's a lesson about how we still have to understand the code that it generates. Now for those that just want it … Re: minimal-mvc: Frugal PHP micro-framework with basic routing and templating Programming Web Development by pritaeas Why would I choose this over a package like [Slim](https://www.slimframework.com/)? Re: minimal-mvc: Frugal PHP micro-framework with basic routing and templating Programming Web Development by pyeri @pritaeas Most modern PHP frameworks like Slim make heavy use of OOP which introduces cruft and bloat. As you can see in that example itself, just for printing a simple Hello string, they ended up creating one Factory class and two other classes for request and response. While OOP certainly has its uses, not all use cases need this level of … Re: minimal-mvc: Frugal PHP micro-framework with basic routing and templating Programming Web Development by Dani When I first created the platform that powers DaniWeb, I did so only after many years on phpBB, and learning that framework inside and out, and making lots of phpBB mods, and then many years on vBulletin, and learning *that* framework inside and out, and making lots of vBulletin plug-ins. Despite DaniWeb being my first web development app that I've… Re: minimal-mvc: Frugal PHP micro-framework with basic routing and templating Programming Web Development by Dani > In the case of DaniWeb, there are Post objects, Thread objects, Forum objects, and Member objects, and pretty much all functionality can be accomplished with methods that act upon any combination of those four things. I just want to also add that I rolled my own ORM such that each instance of any of these classes maps directly to a row in a… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … `use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception;` lines (come before the require lines). This also caused the program to crash. I… Re: What are the key components of an effective email marketing campaign? Digital Media Digital Marketing by AndyBeohar Based on my experience and observations in my professional career, I believe the following elements should be essential to make email marketing effective and successful: Engaging subject lines, Personalized content, Clear calls-to-action, Mobile optimization, Segmentation/Targeting, and Regular performance tracking/analysis. Re: What are the key components of an effective email marketing campaign? Digital Media Digital Marketing by KomalBhatt 1. Clear objectives and audience segmentation. 2. Attention-grabbing subject lines and personalized content. 3. Engaging design optimized for mobile devices. … Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani … like cPanel, etc.? At first glance, I see that on lines 11-18 in the code you posted above, you don… Re: What are the key components of an effective email marketing campaign? Digital Media Digital Marketing by trueframe Key components include compelling subject lines, personalized content, clear call-to-action, mobile optimization, segmentation, analytics tracking, and consistent engagement with subscribers.