• Breaking News

    Sunday, June 27, 2021

    A small info-graphic I did about preventing SQL injection web developers

    A small info-graphic I did about preventing SQL injection web developers


    A small info-graphic I did about preventing SQL injection

    Posted: 27 Jun 2021 05:54 AM PDT

    Audio Cassette with pure CSS

    Posted: 27 Jun 2021 10:07 AM PDT

    TIL that Steve Jobs in 2010 refused to give flash support on apple devices in favor of HTML5 yet here we are no full support for PWA

    Posted: 27 Jun 2021 08:07 AM PDT

    How to architect simple microservices for a Phaser web-based game

    Posted: 27 Jun 2021 03:47 PM PDT

    Hello! I'm a computer science student hoping to work on a simple web game built with PhaserJS on the frontend, with a microservices-oriented backend. For the backend, I would like to do something simple, since I don't have a lot of experience with socket-programming, microservices, or backend work in general. I'm hoping for some advice on two ideas I had about how to architect things.

    I would like to have separate servers for the game and chat functionality. I have attached links to imgur to show the diagrams of what I had in mind. In Diagram A, every service needs a separate socket connection to the web client, and in Diagram B, only the game server has a socket connection with the web client, and would presumably handle getting any additional information through a pub/sub relationship with the other services. Can I please get advice on what approach seems most common/potentially successful? Are there any aspects of either diagram that are common at all in Backend gaming dev? Thanks so much for reading!

    links to diagrams: https://imgur.com/a/cmyATuz

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

    Go-to sites to stay on top of developments

    Posted: 27 Jun 2021 01:48 PM PDT

    What are some of your go-to resources to help stay on top of recent developments in tech and frameworks? One guy on our team is very good at introducing us to new stuff and he always seems clued-in, and I would like to be in a similar position.

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

    I created a starter template kit for devs to use when you start a new site. It’s got a responsive nav, footer, landing, contact page with form, and working dark mode with dark mode toggle. It’s what I use to start all of my sites and aves me a ton of time. Thought I’d share!

    Posted: 27 Jun 2021 01:10 PM PDT

    Here's the GitHub for it:

    https://github.com/Oak-Harbor-Kits/Starter-Kit

    Also here's how the dark mode works and how to add dark mode styles to your site with it:

    https://www.oakharborwebdesigns.com/blog/2020/december/how-to-add-dark-mode-to-a-website#blog-post

    If you're wondering what the kit looks like without having to clone it, it basically looks like this landing page and contact page:

    https://www.diamondlandscapelv.com

    I know it's not perfect, I built it when I first started out coding and tweaked it a bit since. But it's good enough to use on all my sites and can be modified pretty easily. I do intend on building a new one that's more updated. Once I do I'll update the GitHub and you can just download that too.

    I'll also make some revalue updates to add new pages like interior pages for about and services as well as a portfolio so you have a complete website starter template in which you just create a home page and just add content to the rest and change brand colors and images. No sense in building a whole site from scratch when you can just templetize the interior pages since studies have show no one cares about their designs. They go to those pages for information. The home page is what kept them interested, the interiors fulfill their curiosity. So I'll add those in once it's ready. But for now I just wanted to get a basic starter kit out to everyone so you can have an easier time starting a website from scratch or making something for a small business. It's a lot easy to work with them when you only need to make one page.

    Let me know of any improvements I can make or features you'd like to see.

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

    here is my side project, It's a tiny social media platform, built with vue&nodejs, runs with MongoDB & Cloudinary for data & media storage. It's completely open-source, you can try this out at https://alienbook.herokuapp.com and get source code at https://github.com/varaprasadh/Alienbook . Thanks!

    Posted: 26 Jun 2021 10:20 PM PDT

    Created my first big project in VueJS, Basically I was struggling for build architecture diagram for a project, but I dint fine any suitable solution, either it is not good or you have to pay a lot, so I built my own

    Posted: 27 Jun 2021 09:01 AM PDT

    Indiepen – An independent and privacy-friendly solution to present your code examples to the people

    Posted: 27 Jun 2021 04:11 AM PDT

    Is $100 / month a fair price for hosting a wordpress website?

    Posted: 27 Jun 2021 03:47 PM PDT

    I'm feeling guilty about charging my client $100 / month for hosting since there a many months where I don't touch the site. Am I charging too much?

    Also, do you guys invoice your clients each month or are they just supposed to remember to pay you?

    Thanks!

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

    D3.js is the industry standard for data visualization, yet it seems to be an old library providing functions already present in ES5+ vanilla JS. What am I missing?

    Posted: 27 Jun 2021 09:09 AM PDT

    This might be that I have not spent enough time to explore D3.js, but it seems to mostly provide functions to create SVGs, DOM and CSS selectors and the like. These are already very easy to do in ES5+ JavaScript syntax. Things like querySelector, forEach, document.createElement, etc.

    I am getting the idea that maybe this was created before this syntax was around and those things were harder to do (kinda like jQuery). Is that the case, or am I really missing where the complexity of D3 is?

    P. S. This is not intended as an insult to D3 or its users, I genuinely don't know and am only looking for answers.

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

    How do people handle backend code when building a web app?

    Posted: 27 Jun 2021 01:46 PM PDT

    I'm working on a file sharing web app where you can send files to an AWS S3 bucket and retrieve them later. I have most of the frontend done using React and I thought it was going to be as simple as connecting to my S3 bucket directly from there. Well, I've gotten a lot of advice that I should keep a lot of the info such as file validation and connection to AWS hidden from the client on the backend so now I'm stuck. I've never built a webapp with a backend and I don't really get how it works. Will I need to buy a computer to run 24/7 that hosts this backend code? How do I connect my React code to it? What language do I use?

    I don't come from a CS background so there's a lot I'm missing. Does anyone know what topics I could read up on to get a better grasp of how all this works? Thanks!

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

    Is there any website like Frontend Mentor which gives you a proposal and the content only?

    Posted: 27 Jun 2021 01:34 PM PDT

    I'm an amateur. For personal reasons, I can't work but I hope to one day get into web design/dev as career.

    I just discovered Frontend Mentor. For a while I've been wishing there was something like that but which gave you a proposal and the content only. Similar to a client I assume.

    For example:

    • Create an artist personal website, here's info info (bio, photos, art work)
    • Create a dental practice page, here's the info

    Is there anything of the sort?

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

    I have learned Nodejs and how to build a basic Rest API in express, now what next?

    Posted: 27 Jun 2021 05:23 AM PDT

    I have been trying to learn nodejs for past couple of weeks, and I think I have learned most of the basic stuff in express like routing, connecting to database, implementing crud functionalities. Now I am confused what to learn next? Should I learn how to connect my rest API to frontend first, OR should I learn things like JWT? I am sorry if this seems like a weird place to get stuck at.

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

    How would you go about moving a single file stored locally to a remote server using SSH?

    Posted: 27 Jun 2021 03:14 PM PDT

    I honestly thought this would be easy, but I was completely wrong. I've been trying to figure this out for 30 minutes now but see like fifty different answers. I tried using SSH using this command

    scp /path/of/your/local/filename username@hostname:/path/to/remote/server/folder

    I inserted everything correctly, but it said it was "the wrong kind of file" or something. It was just an ordinary .png file too.

    submitted by /u/Retrofire-Pink
    [link] [comments]

    How feasible is it to be able to display tweets or Reddit posts in a mobile app?

    Posted: 27 Jun 2021 11:27 AM PDT

    I would like to do this in my mobile phone app. Is this allowed by the Reddit and Twitter APIs? It's a subset of tweets I would like to display and certain posts on subreddits as well.

    Is this going to cost a lot of money charged by Twitter or Reddit? Does anyone have experience with these 2 APIs? Do you know rate limits? Does Reddit and Twitter allow for you to display these tweets/posts?

    Thanks for responses, I appreciate it!

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

    Built a chrome extension to turn any number on web into clickable WhatsApp links

    Posted: 26 Jun 2021 10:00 PM PDT

    A cheat sheet for JavaScript's fetch API - Some common use cases

    Posted: 27 Jun 2021 12:58 PM PDT

    Best framework for a constantly updating exchange-traded market?

    Posted: 27 Jun 2021 12:25 PM PDT

    Hi all, apologies if my question is too simplistic, but want to seek some advice on the proper tech stack to use for a project I'm working on. I have a degree in computer science, but all my work in undergrad was theoretical or on non-website-related projects, so I'm very ignorant of the web dev universe out there.

    For my use case: I'm working on a website/mobile app that will be a place where users can buy and sell certain assets (for the sake of an example, let's say trading cards). I need a visually appealing front-end, and then a backend where I can (1) record which trading cards each user has in their "portfolio" and show the user the real-time value of said portfolio, and (2) settle the exchange -- that is, as people submit buy and sell orders, I need to properly determine whose orders get fulfilled and then what the new price of the trading card is. This is similar to a stock market, and I hope to provide "real-time" information to the user so they can see any changes in the portfolio value immediately.

    I have a good working knowledge (I think) of all the algorithms actually needed to build this -- really the "hardest" part is an exchange clearing algorithm which is not too tricky. My problem is that I've only ever written in C/C++/Python, and I'm very unfamiliar with web dev concepts. I've been reading up on the subject and doing a handful of tutorials, so at this point I'm pretty comfortable w/ Javascript/React/NextJS. Now, I'm trying to determine which backend is most suitable for my project. I've vacillated between Django (mostly because I know Python) & MongoDB/GraphQL (suggested by a Wes Bos course). I'm still a little shaky on how all the pieces fit together -- e.g. would I have a Django database for user/portfolio info, and a separate server on which I run a Python program that deals with all the exchanges? Would love if anyone has advice on (1) the optimal tech stack for the use case I'm describing, or (2) any clearer explanation of how this backend work flow would "work", since I've never worked on anything like this. Thanks for any help and let me know if I can offer any clarifications!

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

    Autocomplete js library with a really nice Github example

    Posted: 27 Jun 2021 12:24 PM PDT

    I know there are 10 million autocomplete js libraries, but there's one out there which has a really nice demo for looking up Github repos. It takes the name and shows a dropdown showing the name, number of stars, etc.

    I remember using this library previously - because I liked how it looked - and stripping out all the github-specific stuff from the example because I was using it for a different use case. But now I want an autocomplete library specifically for querying github repos and I can't find it anywhere! I can't bear to recreate it knowing there is the perfect example sitting out there somewhere.

    Any help?

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

    How to Authenticate using Keys, BasicAuth, OAuth2 in JavaScript

    Posted: 27 Jun 2021 08:15 AM PDT

    Is Node Package Manager an essential development tool?

    Posted: 27 Jun 2021 11:51 AM PDT

    Right now I'm using VSCode (with SASS compiler) and Xampp and mostly working on static websites. I was looking at including a Glide.js slider and all the instructions are based around using NPM. I was kind of expecting just a css and javascript file. LOL.

    My current toolset has felt pretty good so far, but I'm wondering if I'm missing out on something that others consider essential.

    If you were me, would you adapt my toolset to something fuller? What would that look like?

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

    No comments:

    Post a Comment