Web Development

What are the different goals & philosophies of Ruby-on-Rails and Django?

webdev: reddit for web developers - Tue, 11/20/2018 - 11:27

Django and Rails are both incredible web frameworks.

Rather than "which is better?", I'm curious about the different goals and philosophies of the two projects. What is the "Rails way" of doing things and the "Django way"?

submitted by /u/_my_name_is_earl_
[link] [comments]
Categories: Web Development

Is there a way to crawl your whole site for uncompressed images?

webdev: reddit for web developers - Tue, 11/20/2018 - 11:05

Just wondering if I have to throw each page into GTmetrix one at a time, cause that would suck.

submitted by /u/burnyay
[link] [comments]
Categories: Web Development

How to I get from having a zipfile of a (static) website and a SQL database to a functioning site on AWS?

webdev: reddit for web developers - Tue, 11/20/2018 - 11:04

(static website)

Hi all,

I was tasked with a sort of simple assignment but I don't really have any experience with this. I know some command line on Unix but I'm on a PC.

I have our company site as well as the sql file to migrate with it on my computer. I made a free AWS account. What are some basic things I need to do next?

This isn't urgent, it's kind of just a thing to do while there isn't really anything else to do while people are on vacation, but it would be nice to figure it out.

I've done a good bit of googling but I feel like since most of it is already done (the website is already created by other people), I don't quite know what stage I'm at that I should be googling.

The site was made in wordpress. I'm a bit daunted by all of the options in AWS.

Any help would be appreciated.

submitted by /u/ProductCoordinator
[link] [comments]
Categories: Web Development

Strange uppercase L after words ending with r?

webdev: reddit for web developers - Tue, 11/20/2018 - 10:37

When a recent customer was looking around in an interface I made for them I noticed a strange behaviour that I hadn't seen before.

Picture showing the issue

As you can see, the word ending with an r has an uppercase L next to it. I can't seem to recreate this behaviour on any of my colleagues computers/browsers. I can't seem to figure out a good query to figure out if others have this issue either, so I figured I'd post here.

He's using Chrome. My best guess is that it's some sort of accessibility feature? Could be some form of plugin for Chrome, but I can't figure out what value it brings.

Any suggestions or directions on where to look next? P.S. Yes, it's Swedish, and there's no newline or other strange symbol in the HTML.

submitted by /u/Xumbik
[link] [comments]
Categories: Web Development

Push and ye shall receive

CSS-Tricks - Tue, 11/20/2018 - 09:42

Sometimes the seesaw of web tech is fascinating. Service workers have arrived, and beyond offline networking (read Jeremy's book) which is possibly their best feature, they can enable push notifications via the Push API.

I totally get the push (pun intended) to make that happen. There is an omnipresent sentiment that we want the web to win, as there should be in this industry. Losing on the web means losing to native apps on all the different platforms out there. Native apps aren't evil or anything — they are merely competitive and exclusionary in a way the web isn't. Making the web a viable platform for any type of "app" is a win for us and a win for humans.

One of the things native apps do well is push notifications which gives them a competitive advantage. Some developers choose native for stuff like that. But now that we actually have them on the web, there is pushback from the community and even from the browsers themselves. Firefox supports them, then rolled out a user setting to entirely block them.

We're seeing articles like Moses Kim's Don't @ me:

Push notifications are a classic example of good UX intentions gone bad because we know no bounds.

Very few people are singing the praises of push notifications. And yet! Jeremy Keith wrote up a great experiment by Sebastiaan Andeweg. Rather than an obnoxious and intrusive push notification...

Here’s what Sebastiaan wanted to investigate: what if that last step weren’t so intrusive? Here’s the alternate flow he wanted to test:

  1. A website prompts the user for permission to send push notifications.
  2. The user grants permission.
  3. A whole lot of complicated stuff happens behinds the scenes.
  4. Next time the website publishes something relevant, it fires a push message containing the details of the new URL.
  5. The user’s service worker receives the push message (even if the site isn’t open).
  6. The service worker fetches the contents of the URL provided in the push message and caches the page. Silently.

It worked.

Imagine a PWA podcast app that works offline and silently receives and caches new podcasts. Sweet. Now we need a permissions model that allows for silent notifications.

The post Push and ye shall receive appeared first on CSS-Tricks.

Categories: Web Development

Multiple subdomains​ to one SPA with redirecting?​

webdev: reddit for web developers - Tue, 11/20/2018 - 09:18

Hey everyone,

I have a pretty basic question which I’ve never done before but you might have, so I hope you can help me. Basically, we’re writing a single page application (more specially a React app) which has a landing page for example at mydomain.com (or at about.mydomain.com) where the users can register and log in. After the successful sign in, I’d like to redirect them to my app which is at app.mydomain.com with the authentication token (JWT). But I’d like to achieve this in the same React project because we built the landing page with our components from the application’s UI library. Can I use the same SPA project between multiple subdomains and be able to redirect or navigate between those? We’re using React Router for routing, Netlify for continuous deployment and Cloudflare CDN&DNS management.

I hope there’s a​ community standard solution for this kind of scenario!

Thank you, Mate

submitted by /u/matepapp
[link] [comments]
Categories: Web Development

Is Neil Patel's website analysis tool is better than Google's web.dev

webdev: reddit for web developers - Tue, 11/20/2018 - 09:15

Just wanted to know which one to use now. I understand the Google one is still in Beta but do you think it will compare to Neil Patel's one?

submitted by /u/Axwe8
[link] [comments]
Categories: Web Development

It's Triumphant Tuesday! Post your recent Drupal wins and launches

Drupal - Open Source Content Platform - Tue, 11/20/2018 - 09:06

Here's your chance to brag about cool stuff you've done recently and awesome sites you've shipped. Anything happy and Drupal-related goes.

(Check out the weekly post schedule in the sidebar)

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

Complex (batch) WHOIS query (by registrar; domain extension; string;)

webdev: reddit for web developers - Tue, 11/20/2018 - 08:43

Hello, do you know (free or paid) tool to query the public WHOIS by either:

registrar and extension - example "GoDaddy" and ".com"

or

extension and string- example ".com" and "foobar"

*string in any of the record fields like "name", "address" etc.

submitted by /u/sekibe
[link] [comments]
Categories: Web Development

How storing a cookie with just a username is secure?

webdev: reddit for web developers - Tue, 11/20/2018 - 06:39

That's a very common thing it seems. I was thinking that someone without an account but knowing the username of another person with an account could easily create a cookie with that username and access the account, or am I missing something?

submitted by /u/draikin3
[link] [comments]
Categories: Web Development

Any idea why an image preview is showing pink in Google?

webdev: reddit for web developers - Tue, 11/20/2018 - 06:07

I've recently encountered a bizarre issue. If you look at the google images results for one of our clients websites, the images come up pink, but clicking to see the original image shows that the actual image is in fact very normal.

See screenshots: http://imgur.com/a/gj4C6UT

submitted by /u/Dezlad
[link] [comments]
Categories: Web Development

Pages