• Breaking News

    Friday, March 27, 2020

    Am I crossing a line here? or just being paranoid? web developers

    Am I crossing a line here? or just being paranoid? web developers


    Am I crossing a line here? or just being paranoid?

    Posted: 27 Mar 2020 06:53 AM PDT

    My city has a public bus system and on their website, they allow a user to click on a button for a bus, and see the bus location on a map. This is somewhat difficult to use, so I made my own solution.

    I dug into their website and found an API they were calling which returns some HTML for those buttons. The button elements contained data attributes which had the gps coordinates for each bus.

    So I wrote my own script to call their api, do a little web scraping, and then use each set of coordinates for each bus to place markers on a google map. This way I can track every bus all in one place.

    I now have the map publicly available to others in my city because I thought it was useful.

    Is this something that could land me in trouble with the organization that runs the busses? All I did was take the information they have publicly available on their own website (if you dig for it) and represent it in my own way.

    Feels wrong for some reason.

    Edit: added disclaimer to the web page:

    This application is not affiliated, associated, endorsed by, or in anyway officially connected with COMPANY. The official COMPANY website can be found at https://company.com

    Edit 2: Emailed the company to ask if I could use their API for my own purposes. Honesty is the best policy.

    Edit 3: Company responded to me and said they had no issues with this.

    Edit 4: They warned me that the API was not permanent and could change without warning which I figured already. They then said they would keep me in the loop for when they release a more stable version. Super cooperative

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

    What happens when the maintainer of a JS library downloaded 26m times a week goes to prison for killing someone with a motorcycle? Core-js just found out

    Posted: 26 Mar 2020 11:43 AM PDT

    What to do and know before and when creating a big website?What technologies are used?

    Posted: 27 Mar 2020 07:06 AM PDT

    First of all thank you all for contributing to this subreddit and to anything on internet. I appreciate all the help to whether it's open source or a simple advice.

    A little bit background: I have been developing websites for a year and am procifient in front-end and somewhat comfortable with back-end. Technologies I am used to:

    • HTML/CSS/Sass/BootStrap
    • JAVASCRIPT/Node/JQuery
    • EJS/API's/NPM/Express
    • GIT/Heroku
    • I am still learning React.

    To this day I have always been building simple websites with a few pages. All of them are static websites without any CMS. Web Development is not my job or major. I do this as a hobby and wish to get a job in Web Development.

    I am not proficient and I don't know many things a web developer should know. I feel very ignorant. But I am learning everyday. And now especially this month I have a lot of time because of COVID-19.

    Now I want to build a big website with:

    • many pages,
    • course sections,
    • profile and membership system,
    • mobile first design
    • dynamic pages and so on.

    My QUESTION is : where should I start? What technologies do I use? What do developers use to create huge websites? What to use to change the content on a website everyday as in a blog or courses. What is the best way to include a profile system so that users can see their courses individually. The website I am trying to build is very much like UDEMY.

    For example I recently learned how to integrate header and footer for every page so I don't have to put them on all the pages one by one.

    Sorry it is a long question. I appreciate even a little bit of advice. Thank you in advance. Have a nice day! Take care.

    Edit: grammar and spelling.

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

    Fancy text hover effects, just add a class to any text element

    Posted: 27 Mar 2020 03:25 PM PDT

    Everything About Auto in CSS

    Posted: 27 Mar 2020 04:19 AM PDT

    The Expert Blind Spot In Software Development

    Posted: 27 Mar 2020 02:55 AM PDT

    Hello everybody!

    Throughout my career, I saw many experienced developers trying to pass their knowledge to others, sometimes without much success. After doing some research to understand why, I stumbled upon the expert blind spot.

    Since teaching is the best way to learn, I think it's very beneficial for every developer out there to improve their teaching skills. This article will help you doing so, showing you how to go against this expert bling spot.

    This article will answers these questions:

    • What's the expert blind spot?
    • How do we learn, and why the expert blind spot is a consequence of our learning process?
    • How to go against the expert blind spot in order to pass efficiently our knowledge?

    Let's dive in!

    https://thevaluable.dev/expert-blind-spot-software-development/

    tl;dr:

    • The expert blind spots are pieces of knowledge an expert is not anymore conscious of, but he can still use to perform. Thus, he'll have difficulties to explain it to another, who might needs it to understand a concept.
    • The working memory, used to understand, learn, and perform, is limited. Consequently, an expert needs to abstract his knowledge ("chunking") and brush away its details. The benefit is to save place in the working memory to learn new concepts, or to accomplish tasks.
    • Informal communications and friendly relationships can give precious information about what a learner doesn't know. It will help the teacher not falling into the expert blind spot.
    • Writing or representing the steps and layers of your knowledge (via mindmaps, blogs, or journals) can remind you the details you might have chunked, and consequently avoiding the expert blind spots when you need to explain these concepts.
    submitted by /u/phantaso0s
    [link] [comments]

    Front end engine for GraphQL query (github schema example)

    Posted: 27 Mar 2020 05:17 AM PDT

    Are you guys worried about the imminent recession?

    Posted: 27 Mar 2020 08:03 AM PDT

    The title is pretty self-explanatory, is anyone else worried that they might lose their jobs soon, it looks as if there will be a severe recession if things do not improve.

    Perhaps a few old salty seadogs can offer up some advice for those of us who haven't weathered a recession yet.

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

    Separating DOM structure from visual structure - flat DOM + CSS Grid scaffolding is awesome

    Posted: 27 Mar 2020 04:53 AM PDT

    Design pattern for “locking” with a server REST API with multiple clients

    Posted: 27 Mar 2020 04:40 PM PDT

    Say I have a simple REST api that multiple clients make calls to.

    Client 1: Gets record for Person A

    Client 2: Gets record for Person A

    Client 1: Updates record Person A

    Client 2: Attempts to update

    That last step is my question. What's an appropriate design pattern or algorithm to ensure "locking" of a record, so that changes aren't overwriting each other?

    My thought process is that you would have a date associated with the record. If that date matches, you can update. If the date doesn't match the most recent record, you get a response indicating the record has been updated and that you must get the most recent record to update.

    I'm guessing this is a common problem, so I wanted to ask.

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

    tsParticles 1.11 released today!

    Posted: 27 Mar 2020 04:34 PM PDT

    Tools for team developing

    Posted: 27 Mar 2020 04:22 PM PDT

    Im a developer by hobby and always been working alone. My projects are not big or complicated so I never really got into Git and I just run my web projects on RaspberryPi in LAN. After development I put them on a webhost or to a VPS.

    I might get into a project with my brother and I have been checking out my chances with my tools. I just got into Visual Studio Code and I use some SSH extension to connect to the raspberry and edit the files. Its great comparing to the FTP extension solutions.

    So what if my brother gets Visual Studio Code and SSH to the same files, I assume we would be pretty blind about editing the same files at the same time.

    What I`m asking here is a solution when the project in development is running on a dedicated server (raspberry here), should we use VSC or some other IDE, or get into GIT perhaps? If its VSC, any extensions in recommendation?

    The project includes a database so its necessary to run on a server while working on it.

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

    Is this layout possible to achieve using vanilla CSS Flexbox? If not, how should I approach this?

    Posted: 27 Mar 2020 04:17 PM PDT

    What is an 'instance'?

    Posted: 27 Mar 2020 04:16 PM PDT

    What does it mean when we say something like "it creates a new instance of a class" Or an "instance of an object", What does this mean?

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

    Hypothesis: It’s 100% okay to store your auth token in localstorage. Discuss.

    Posted: 26 Mar 2020 08:47 PM PDT

    I hear all the time that you shouldn't store auth tokens in localstorage, because if you get hit by an XSS attack, the attacker can pull the token right out of localstorage. Instead you should store it in a secure, HttpOnly cookie which can't be accessed by JavaScript.

    I get that. But if an attacker gets malicious scripts executing on your site, they could still send authenticated requests and take the HttpOnly cookie along for the ride, right? So either way, if you get hit with XSS it's game over.

    Therefore, I think it doesn't matter where you store your auth token. Please tell me why I'm wrong.

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

    Are these the proper ways to position/place elements anywhere with CSS?

    Posted: 27 Mar 2020 04:04 PM PDT

    Hi! So I use top,left,bottom,right and translate x and y to place elements anywhere on the page. I also use margin to make text go slightly to the right but not centered. I hardly center text and there's less tutorials on how to place it elsewhere.

    Are these proper practices?

    Someone schooled me and taught me a lot about things I was doing wrong like I shouldn't use h2 without having h1, etc etc. So I wondered if I was doing this "wrong" as well. Flexbox and grid are seemingly difficult right now and I can't imagine being able to plop elements anywhere I want with them.

    side note:if anyone wants to practice their tutoring skills with me, i'm down.

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

    Classes Vs 'function factories' - JavaScript

    Posted: 27 Mar 2020 03:56 PM PDT

    What's the difference between using classes and so called function factories when it comes to creating objects in Js?

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

    Should I use a CMS or hand-code?

    Posted: 27 Mar 2020 03:25 AM PDT

    If I wanted to make a professional looking website (a blog for a university magazine), should I use a CMS, or hand code? If I should use a CMS, which one should I use/do professional web developers use?

    For background: I've learnt HTML/CSS/JavaScript and React, and did a bit of back-end (node) through the FullStack Helsinki Open course as a hobby in my freetime.

    I offered to do this for a friend for free so they wouldn't have to pay someone - but I think they really want it to look professional and not janky, and I'm not really sure what professionals use. Do they hand-code stuff?

    Anyway thanks for reading/replying

    submitted by /u/sub-brick
    [link] [comments]

    WordPress Site to Mobile App

    Posted: 27 Mar 2020 03:14 PM PDT

    Hey guys, I built a WordPress site for an organization and now they want to translate those services and features on the site to mobile apps so people can access them from the convenience of their phones. I am lost with where to start and how to proceed. Any advice would be much appreciated.

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

    Working with PDFs in a Web Application

    Posted: 27 Mar 2020 09:00 AM PDT

    Webmentions on a static site with GitHub Actions

    Posted: 27 Mar 2020 02:47 AM PDT

    Need help with getting advanced YouTube analytics data

    Posted: 27 Mar 2020 02:12 PM PDT

    I can get info on average views, view duration, but I need to look at data on individual viewer basis. I want to at least figure out for each person who watched the video how long did they watch it for. For example, if 200 people watched a video, I want a list of 200 watch times, one for each viewer. I would love even more info about each viewer but if someone can help me out with this that would be great.

    these are the URLs I've been looking at if someone has experience with this and knows how to do it or can point me in the right direction please let me know. You're also welcomed to message me

    https://developers.google.com/youtube/analytics/data_model

    https://developers.google.com/youtube/reporting/v1/reports/

    https://support.google.com/youtube/answer/1714329?hl=en

    https://support.google.com/youtube/answer/9088722?hl=en

    https://developers.google.com/apis-explorer/#search/youtube/youtubeAnalytics/v2/youtubeAnalytics.reports.query

    https://developers.google.com/youtube/analytics/sample-requests

    https://developers.google.com/apis-explorer/#search/youtube/youtubereporting/v1/

    https://www.youtube.com/watch?v=ipU_Fx035HY

    https://groups.google.com/forum/#!forum/google-analytics-spreadsheet-add-on

    https://developers.google.com/analytics/solutions/google-analytics-spreadsheet-add-on

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

    Need help, table with timers on each row?

    Posted: 27 Mar 2020 02:04 PM PDT

    Hi all,

    I am working on a quick turn around project for our company. We have a table with an entry on each row. One of the columns contains a timestamp.

    Is there a quick and easy way to use javascript to show a count-up timer on each row updated each second to show how long a row has been in the table? Basically, we want the column to be "waiting for" and show a read out of hh:mm:ss that is live and counting as you look at the page.

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

    Website Advice

    Posted: 27 Mar 2020 01:52 PM PDT

    I'm looking to build a simple 4-5 page website for a family members tree service business. I'm looking in advice as far as which service/services I should use. I'm currently using godaddy and their website builder which work great, but I'm not crazy about having to pay a monthly fee for eternity just to keep the website live. Hosting I understand, but not a monthly fee after the website has already been developed.

    I'm relatively familiar with HTML, PHP, and CSS but have been out of the loop for 7-8 years. I don't have the time to refresh, research, and build from scratch. I've been told Wordpress is a good platform but know nothing about it. Any advice on where to start and what services to use would be greatly appreciated.

    TIA

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

    How do you store and use OAuth 1.0 tokens with serverless backends?

    Posted: 27 Mar 2020 01:43 PM PDT

    I'm using GCP as my serverless backend, and my application involves allowing users to login w/ Twitter and using the given OAuth1.0 access tokens/secret to check their profile, tweet for them, etc.

    Where is it safe to store these access tokens and secrets? I've done some googling but haven't found a straight answer especially re: serverless setups.

    I assume storing them unencrypted in my DB isn't okay, so should I be using GCP Secret Manager perhaps? Encrypting them at rest with a Cloud Functions env variable as the secret and then decrypting at runtime? Something else?

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

    No comments:

    Post a Comment