Web Development

  • How to access Python code using Ajax from Javascript
    by /u/moneymakingisEZ on June 7, 2023 at 3:34 pm

    I am currently working on my very first web project. Now I want to use python code to update reload my html, and I want to access this using Ajax in my Javascript script tag inside my html. This is my Javascript inside my html: <script> var checkbox_elements = document.querySelectorAll("input[type='checkbox']"); for (var i = 1; i < (checkbox_elements.length+1); i++) { var checkb = document.getElementById(i); checkb.addEventListener("change", function(e) { $.ajax({ type: "POST", url: "/test", }); })}; </script> This is my python code inside my app.py. @app.route('/test', methods=['POST', 'GET']) def test(): if request.method == "POST": users = db.execute("SELECT * FROM users") return render_template("test.html", users=users) So basically, I want the ajax to go to app.py to the route /test to then execute my commands to reload test.html. I want to to this to later change the code inside def test() to then change my database. I know the eventlistener itself works, and I have just no idea why this isn't working. If anyone could help me out, I would be very thankful, I've been trying this for hours now. submitted by /u/moneymakingisEZ [link] [comments]

  • New version of JBuilder!
    by /u/nedim443 on June 7, 2023 at 3:26 pm

    Still new in box! Come get it while it's hot 🔥 just came out, short 23 years ago. Now with "interactive multimedia training". What better way to create your pure Java 2 Apps! submitted by /u/nedim443 [link] [comments]

  • C# for new website?
    by /u/Paperino75 on June 7, 2023 at 3:22 pm

    Hi! I am a non-tech PM, and I need to find out what way to go in developing a new website. The current site, which needs improvement or a rebuild, is built in C# and I have been under the impression that JS and React is the way to go for new websites. Am I wrong? Could you good people please enlighten me on the issue? submitted by /u/Paperino75 [link] [comments]

  • Sass-like nesting in native CSS
    by /u/speckz on June 7, 2023 at 3:08 pm

    submitted by /u/speckz [link] [comments]

  • Are there any JS libraries for image cropping that allow custom shapes, similar to drawing a path with the pen tool in photoshop?
    by /u/swillis93 on June 7, 2023 at 2:42 pm

    I'm looking for an image manipulation library that allows me to take an image file, draw a shape on it, and then make everything outside the selected area transparent and crop the file to the size of the custom shape. Is there anything like this available, how could I achieve this? The only cropping libraries I've found seem to be limited to rectangular shapes. submitted by /u/swillis93 [link] [comments]

  • Apple makes iOS 17 developer beta free for registered developers
    by /u/magenta_placenta on June 7, 2023 at 2:15 pm

    submitted by /u/magenta_placenta [link] [comments]

  • Double CSS finder - Tiny tool to find obsolete CSS rules on a page
    by /u/no_more_gravity on June 7, 2023 at 1:56 pm

    submitted by /u/no_more_gravity [link] [comments]

  • Before your next frontend pull request, use this checklist
    by /u/sitnik on June 7, 2023 at 1:18 pm

    submitted by /u/sitnik [link] [comments]

  • What browser do you currently recommend for web development?
    by /u/eduuoliver on June 7, 2023 at 12:54 pm

    I currently use Chrome and Brave for web development, I'm between one and the other, but I've seen many talking about Firefox Developer and I'd like to know which one you currently recommend both for personal use / development. submitted by /u/eduuoliver [link] [comments]

  • Implement passkeys on our own sites
    by /u/Vindikator53 on June 7, 2023 at 12:15 pm

    I see dozens of articles showing how we use passkeys to access websites, but I’ve not seen any information on how we code our own sites to accept and use passkeys. Are there any good resources available that discuss this? submitted by /u/Vindikator53 [link] [comments]

  • Opinions on the modules for my personal project - a basic Invoice App.
    by /u/earthdiggingdragon on June 7, 2023 at 11:43 am

    Greetings Devs, As a personal portfolio project, I am working on an Invoice App. Below is the list of all the modules in which the app is divided. Can you please let me know whether the modularization is good enough? Note - I am learning how to create use case diagrams so that I can showcase the use cases in a more presentable way. ​ Modules Customers Responsible for managing customers belonging to a user’s business. User can view, search/filter, add, edit, archive (soft delete) a customer. There is a sub-module to manage customer’s contact agents (M2M relationship between Contact Agents and Customers). Along with this user can manage Credit and Payment terms for each customer. Customers can be tagged on the basis of user-defined tags. A sub-module to manage customer’s account is responsible to view and manage customer’s trade with the user so far. Additional terms and conditions can be customized in this module. Products Responsible for products that user’s business catalogs. User can view, search/filter, add, edit, archive (soft delete) a product. A Pricing and Discounts sub-module will be responsible to manage each product’s price. Each product can have a system level price or have a customer’s level special price, where customer specific price will always be prefered over system price. Products can also have additional discounts, based on [undecided factors]. Analytics submodule will show products’s analytics. Quotations Responsible for creating and managing and tracking quotations or pro-forma invoices for the user’s business. User can view, search/filter, create, edit, archive (soft delete), track, send, download the quotation. Upon successful acceptance by the customer, quotation/PI can be converted directly into an invoice that the user can then manage in the invoice module. Quotation can be saved as a draft (no version tracking) or can be updated (version tracked) multiple times and each version is accessible at any time. Any discounts can be added/removed at quotation level. Quotation line items can be managed individually. Terms and conditions can also be customized at quotation level. Quotations can tracked (using various progress status) and reminder notifications can be set that will be visible in the notification area. Invoice Responsible for creating and managing tax invoices. Tax invoices are the documents which against with the payment is to be made to the user from customer. Furthermore, credit and payment terms will decide the actual method and time of the payment of an issued tax invoice. There are multiple ways in which a Tax invoice can be generated. For instance, getting a quotation accepted by the customer and then converting it into the invoice, a recurring tax invoice can be set up and sent periodically, a tax invoice can directly be created without taking the usual route of getting a quotation accepted by the customer and then converting it into a tax invoice. Invoices can also be tracked and reminders can be set for late payments. Invoice line items can be managed individually. How to create consistency between invoice and quotation is yet to be tackled. For example, when a quotation is accepted by the customer and succesfully converted to invoice, upon any change in the invoice like line item, how can the consistency be ensured between the agreed upon quotation and the recently ammended invoice? Transactions Responsible for tracking all the payments done against the tax invoices. User can view, search/filter, or manage previous transactions in this module. New transcations will be entered at an invoice level and that has to be done in the invoice module. This module also has an analytics sub-module which will display [not yet decided] analytics of all the transactions done so far. ​ This is actually the third version (backend) of the app I am working on. The source code for the second version is here. I am a fresher who wants to build something meaningful to put it in my portfolio while challenging myself to learn things in addition to writing code. Any advice, suggestion, opinions, or constructive criticism are more than welcome. submitted by /u/earthdiggingdragon [link] [comments]

  • Show me your portfolios
    by /u/sleezy47 on June 7, 2023 at 11:15 am

    Hi guys, I'm almost done with Angela Yu's web dev course on Udemy, and I'd like to start putting together a portfolio. Can I see yours? What cool projects have you worked on? What have you built? Thanks in advance! submitted by /u/sleezy47 [link] [comments]

  • Inspirations for new designs
    by /u/Sleepyb0i06 on June 7, 2023 at 11:11 am

    I've a relatively new developer and have got a comple clients that I'm working for. But I can't seem to get any inspiration for unique websites. All i can come up with are the generic design. How do I get ideas for more creative designs? submitted by /u/Sleepyb0i06 [link] [comments]

  • I need some help! I'm pulling my hairs out with learning WordPress.
    by /u/QraizyIOS on June 7, 2023 at 11:05 am

    ​ So i made my first website in wix. but i wanted to recreate it in WordPress. atm i am using DevKinsta to make one localy and i just cant seem to find how to move my image to the place i want it to be. My understanding was that WordPress was very powerful but i feel so limited. I am able to inspect element to get the image where i want it to go ( "position:relative; left:300px; top:50px; ) but ofcourse this doesn't affect it in wordpress permenantly. how do i edit the css in wordpress so i get this result? Best regards, A total noob. submitted by /u/QraizyIOS [link] [comments]

  • News from WWDC23: WebKit Features in Safari 17 beta
    by /u/feross on June 7, 2023 at 11:01 am

    submitted by /u/feross [link] [comments]

  • Thank You for Your Feedback On My Old Portfolio! Check Out New Portfolio.
    by /u/karaky-_- on June 7, 2023 at 10:37 am

    I wanted to thank you all for providing feedback on my old portfolio about a month ago. Your input was invaluable! I'm excited to share that I've now updated and improved my portfolio based on your suggestions. Here's the link to the old version: old portfolio If you come across any weird things in my old portfolio, it's because it was made for both freelance clients and corporate entities. I invite you to check out the updated portfolio: m7mad.dev. I'm eager to hear your thoughts on the changes I've made. Moreover, the new portfolio is now open-source! You're welcome to fork it, but please remember to give proper credit by referring back to m7mad.dev. Github repo: m7mad-v2 don't forget to give me a star :). Thanks again for your support! submitted by /u/karaky-_- [link] [comments]

  • Excel to Website Calculator Framework
    by /u/MilkShakerrr on June 7, 2023 at 10:12 am

    Hello, I am trying to make a website that would be able to do calculations based on values inputted. I currently have an excel sheet with references to other sheets and formulas that calculate everything when I change the data. I am wondering what the best way to be able to do these calculations on a Site would be. I am currently running a Python-Flask site using xywings to do it, but it opens excel every time I want to update the values and I am not sure if it is the best method. If a better way to do this would be moving all the data to a server and doing all the calculations back end, I am fine with that, I am just lost on which framework/method would be able to help me in this area and be the most secure, I am pretty new to the field. Any suggestions would be greatly appreciated! submitted by /u/MilkShakerrr [link] [comments]

  • What are web developers and agencies using to build their clients sites?
    by /u/agent-pickles on June 7, 2023 at 9:55 am

    So I understand that WordPress is still the de facto 'tool' here but I've been doing some research into what would be a good alternative if there is such a thing. I'm looking for the people that are not using WordPress. If not, what are you using and why? I've noticed WordPress has become this jack of all trades tool so if the below do not solve a site that can't be built on it you are welcome to list more than one piece of tech you are using. So far this is my conclusion among the tech options I've looked at: WordPress: I just dislike the experience of building stuff out using this but it does have a lot of positives and it's obvious why it is still the most used. If you are using this, do you do any custom stuff as well? What page builder are you using? Webflow: Really like this but it can be expensive and would probably use something else for ecommerce. Seems like a great choice for cms sites though but I am mostly ignorant to this tool. Jamstack: I'm most interested in this being a developer as it just gives me the most power. I'd love to know if anybody is using this? The problem with this approach or building a site from scratch with any stack is the time to market. I have worked for a few companies tho who have systems in place which I would aim to replicate. Any other tech stacks or no code tools I should be looking at? There are so many ways of building a website but what would you use? I have also noticed some agencies use all of the above but I'm looking for a 'hammer' here. Also I'd rather be really good at one thing and have a niche. Thoughts? submitted by /u/agent-pickles [link] [comments]

  • What is your tech stack for blog websites? (not wordpress)
    by /u/la712 on June 7, 2023 at 9:30 am

    Hello, What is your favorite tech stack and hosting for blog websites that is NOT Wordpress? Preferably something with Next.js. I tried Strapi and then did my hosting on heroku a few years ago but much has changed and I am not a fan. Thanks submitted by /u/la712 [link] [comments]

  • 300ms Faster: Reducing Wikipedia's Total Blocking Time
    by /u/bogdanelcs on June 7, 2023 at 9:00 am

    submitted by /u/bogdanelcs [link] [comments]

  • Why I Think Web Designers Are Underappreciated
    by Eric Karkovack on June 7, 2023 at 6:42 am

    I’m convinced that web designers are underappreciated. We work in a highly competitive (not to mention stressful) field. Yet it feels like our achievements fly under the radar of clients... The post Why I Think Web Designers Are Underappreciated appeared first on Speckyboy Design Magazine.

  • Is a Chromebook enough for development if I have a decently powerful server that I can remote into?
    by /u/Striking-Warning9533 on June 7, 2023 at 6:10 am

    This is for a serious business project not a course project. I am thinking either run vscode on the Chromebook via Linux machine then use the remote plug in to connect to my server or install coder or gitpot on the machine then just use chrome connect to it. I will like run vs code on Chromebook as it provides port forwarding better. I also need to run dbgate to do database design. I cannot use cloud env like GitHub workspace due to my supervisor’s funding policy (no non Canadian cloud server could be involved) We have 2 workspaces I can use, one has 2 cores and 4GB of ram. The other one has 30 cores and 200GB of RAM. The first server has only 22 and 443 ports open and the second one only has 22 port open. The reason I like a Chromebook is that my budget is tight and also I break stuff very easily so I don’t want to go to a powerful machine that is expensive. submitted by /u/Striking-Warning9533 [link] [comments]

  • Roof Repairs Perth
    on June 7, 2023 at 5:17 am
  • Masterclass for all basics related to front end? (HTML, CSS, JS)
    by /u/justeuzair on June 7, 2023 at 1:39 am

    Hi guys, so I’ve been working for the past 6 months as a software release technician for a company and i have the opportunity to get an internal promotion to a front end junior developer position. I am really keen on taking this interview but i know i would have to pass the technical part of the interview, so my question is.. what ressources/videos/udemy courses would you guys recommend to get all the fundamentals as quick as possible. As a reference my company is having the interview next monday and they know it might be a a big jump for me so they are basically giving me 4hrs per day to prepare for it for a week so i have a decent amount of time to give to this. Any help would be appreciated❤️ submitted by /u/justeuzair [link] [comments]

  • What is the tech stack for Amazon Prime Video’s X-Ray feature?
    by /u/1920MCMLibrarian on June 7, 2023 at 12:59 am

    When you’re watching a Prime video, their feature “X-Ray” tells you who is on the screen at that moment, gives you info on the scene, lets you buy related stuff (of course), etc. Is it using some kind of image recognition? I’m curious about how it’s built. submitted by /u/1920MCMLibrarian [link] [comments]