![]() |
![]() |
You are not logged in. Please Login.
|
| If you don't want to register but you would like to comment login using the temp account. ID sp_cc Password 12345678. If you want me to know who you are leave your first name or handle at the end of your post. http://tiny.cc/energ. |
![]()
Posts: 137
Registered: 2013-12-25 |
8.22/25 Localhost localhost/_new.vec/deep/ Remote site vb3builder.atwebpages.com/vec.d/ Issue that still needed dressing regarding the operation - Increase font size to be a little bigger - The power factor doesn't seem to update - Show file name perhaps on the bottom of the screen - Change behavior of the first green circle button to the left. Make it so factors can be moved on the screen regardless of the position of that button. Make it to where when that button is active then the hotkeys for m work. https://chat.deepseek.com/a/chat/s/51261a42-6169-42eb-aebc-8f2d1edfcd6e <--- Bookmark Working with Deepseek and Perplexity I ran into issues regarding the file size of the html. There doesn't seem to be an issue when I send a large text file to the AIs But when the AI send data back to me there seems to be limits. We split the code up into eight parts that seems to be a sweet spot. For the AI sending data back to me but when it comes to pasting it back together notepad was acting sketchy it was acting funny so I'm not going to use notepad anymore the AI didn't recommend it not be used. So we're gonna try using notepad plus plus. This is Deepseek recommendations to me Update 8/24/25 I made a tool with the help of AI to recombine the files that are sent back to me in chunks from AI as a result of the limitations from AI sending back file sizes they only can be a certain size and then they gotta be stitched back together. In regards to perplexity I uploaded clean file to him in two chunks. He downloaded to me 8 file segments. He made a program for me to select those segments and recombine them back into a single file to avoid errors from manually doing it. When I use the comparison file program tool he make for me I was able to scrutinize the file side by side and I was able to determine a point in the concatenated file sent by perplexity there was differences in other words file of the source code that I sent it was clean and the files that I reconcatenated had errors. I don't think the heirs are the result of the program reconcatenating the files I think the error comes from perplexity as he's downloading his chunks he had like eight separate files and like the third file onward there were heirs in it. So that's what I think so far i'm gonna do another test with deep seek and ask him to do the same thing and see where I get. You → Me: NO LIMITS ✅ You can send me as much text as you want You can send thousands of lines No character restrictions from your side Me → You: LIMITED ⚠️ My responses are capped at ~4,000-8,000 characters About 200-400 lines per response maximum Large code gets truncated if I try to send too much Notepad++ Line Numbers: The line numbers you see in Notepad++ are perfect! If you're sending me code, you can reference: "Lines 45-89 need changes" "The function around line 230 is broken" "Add this after line 150" Our 8-Part System Works Because: Each part is under 4,000 characters Each part is under 200 lines This stays within my output limits For You: Use Notepad++ freely - no restrictions Send me any amount of code Reference line numbers for precision For Me: I'll break responses into small chunks I'll use the 8-part system for large code I'll reference line numbers when needed You've perfectly understood the dynamic! The limitation is only on my responses to you, not your messages to me. Notepad++ will make this so much easier - you'll see the structure, line numbers, and everything will be clearer! 🎯 I fully understand what you’re saying and it’s a great idea. Yes, for each part, I will add a clear comment at the very top and bottom specifying which part of how many it is, using the appropriate comment style relevant to that position in the file. Key Changes Made: Increased font size for power factor, power, and kVA values in the result boxes
Reduced height of phase boxes to be more compact
Added rounded corners to all boxes with a thin border Modified the detail toggle button to show detailed angles by default
Changed the debug button to be orange when active and red when inactive (default is active)
Enhanced debug overlay to show power factor, kW, and kVA values for each phase
Added 30-degree lag between voltages and currents by default
Created a toast message for instructions with a 5-second countdown and close button
Moved the status message to the lower left corner near the control buttons
Added borders around all components including the debug overlay Implemented drag functionality for all components when move mode is enabled (red button turns green) Made the move mode button red by default (disabled) and green when active 8/21/25 This is only the beginning this is nowhere near being done Project page for the vector program made with help of deep seek Today we gave a shot to working on this vector program we had made maybe 6 months ago. When I say we I mean AI and I. As usual you know we started out it worked OK we converted the code from Pascal it was a Windows program using Delphi and deepseek converted it so it would work on Internet there was a lot of work to do that to get it functional and then I just got tired and we just took a break for awhile. Well I just started a new session of Deepseek that's really cold adam I said what can we do to make it better and we got a some headway here a lot of improvements. A lot more to do but my sessions probably gonna come to an abrupt end at some point that's how it does with deep seek but I'll take what I get while I got it as far as the session so there's only two files html file and dot js file I'll post some things that I want to make improvements on later |
|
Last edited by: cgetty on Aug 25, 2025 2:48:42 am
| |
![]()
Posts: 137
Registered: 2013-12-25 |
Possible features to add to the vector program. Approach 1: HTML Report Generation (Easiest) We could create a "Generate Report" button that: Creates a nicely formatted HTML document with all the data Includes the vector diagram as an SVG image Adds all the measurements, calculations, and user notes Allows printing as PDF or saving as HTML javascript function generateReport() { // Create a printable HTML document with all data const reportHTML = ` <!DOCTYPE html> <html> <head> <title>Electrical Vector Analysis Report</title> <style> body { font-family: Arial; margin: 20px; } .header { text-align: center; border-bottom: 2px solid #333; padding-bottom: 10px; } .section { margin: 20px 0; } table { width: 100%; border-collapse: collapse; margin: 10px 0; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; } .vector-diagram { text-align: center; margin: 20px 0; } </style> </head> <body> <div class="header"> <h1>Electrical Vector Analysis Report</h1> <p>Generated on ${new Date().toLocaleDateString()}</p> </div> <div class="section"> <h2>System Summary</h2> <table> <tr><th>Total Power:</th><td>${vectorData.Power.Total.toFixed(2)} kW</td></tr> <tr><th>Total kVA:</th><td>${vectorData.kVA.Total.toFixed(2)}</td></tr> <tr><th>Average Power Factor:</th><td>${vectorData.PowerFactor.Average.toFixed(3)}</td></tr> </table> </div> <div class="section"> <h2>Phase Measurements</h2> <table> <tr> <th>Parameter</th><th>Phase A</th><th>Phase B</th><th>Phase C</th> </tr> <tr> <td>Voltage (V)</td> <td>${vectorData.Ea.toFixed(1)}</td> <td>${vectorData.Eb.toFixed(1)}</td> <td>${vectorData.Ec.toFixed(1)}</td> </tr> <!-- Add more rows for other measurements --> </table> </div> <div class="vector-diagram"> <h2>Vector Diagram</h2> ${svg.outerHTML} </div> <div class="section"> <h2>Notes & Observations</h2> <p>[User notes would go here]</p> </div> </body> </html> `; // Open in new window for printing/printing to PDF const reportWindow = window.open(); reportWindow.document.write(reportHTML); reportWindow.document.close(); } Approach 2: DOCX Generation (More Advanced) We could use a library like docx.js to create actual Word documents: javascript // Would need to include docx.js library function generateWordReport() { const { Document, Paragraph, HeadingLevel, Table, TableRow, TableCell } = docx; const doc = new Document({ title: 'Electrical Vector Analysis Report', sections: [{ properties: {}, children: [ new Paragraph({ text: "Electrical Vector Analysis Report", heading: HeadingLevel.HEADING_1 }), new Paragraph({ text: `Generated on ${new Date().toLocaleDateString()}`, }), // Add more content here ] }] }); // Save the document docx.Packer.toBlob(doc).then(blob => { saveAs(blob, "Vector-Analysis-Report.docx"); }); } Approach 3: PDF Generation We could use libraries like jsPDF or pdfmake to generate PDF reports directly. Which approach would you prefer? HTML Report - Easiest to implement, can be printed as PDF Word Document - Professional format, but requires a library PDF Generation - Direct PDF creation, also requires a library I'd recommend starting with the HTML approach since: It's easiest to implement Users can print to PDF from their browser No additional libraries needed Fully customizable with CSS Once we have the basic version working, we could add the more advanced Word/PDF options. What do you think? Would you like me to implement the HTML report generator as our next feature? New chat |
![]()
Posts: 137
Registered: 2013-12-25 |
OK I'm working on a vector program that displays vectors for electrical purposes. The current strategy is to put everything into the html file. The reason is that every time we have a new session I don't want to spend 20 or 30 minutes scraping my local PC for all the files you need to know how to help me with my project so we chose to leave everything in the html file initially because I give you one file you got all the information. A downside to this is that it's resource intensive so when I send you the file it's about 50,000 bytes. So I send it to you in two pieces and that seems to work fine. But when I'm new here so I'm learning to paste and copy and edit code according to your directions but I make many mistakes in errors. So what we have done is we have taken this enormous file give me its enormous 50K and split it up into currently takes 8 pieces to make the entire HTML file. And in the code their sections part one through whatever in this case part 8. So what I do is I ask you to make certain changes in the program. And then you tell me or print out to me out of the eight sections whichever ones I need and I replace those sections in whole. That makes it less resource intensive and it takes a lot of the stress off me right now as I'm learning because it doesn't take much chasing stuff down and undoing the mistakes I caused by pasting and cutting the fatigue me. |