Web Development

Why does firefox shows 8 digit hex code instead of RGB in inspector when using colorpicker?

webdev: reddit for web developers - 7 hours 48 min ago

It annoys me so much. Whenever I try to adjust transparent colors from inspector, it shows 8digit hex for example, #00a3ff80 (where I believe last two digits are transparency percentage). Lot of browsers don't support this format and I need good ol RGB code ( rgba(0,163,255,0.501) for above example) if the color is transparent, if it is solid then hex. I believe there is an option to adjust this but I cant find it. Any idea?

Firefox Quantum 60.0.2 (64bit)

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

Page animations

webdev: reddit for web developers - 8 hours 2 min ago

I really like these animations. Does anybody know how to make the transition after the shoe is clicked? how to achieve the positioning from his origin to the center of de 'left panel' in the new view? If possible with pure css


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

Youtube's URL parameters not working properly

webdev: reddit for web developers - 8 hours 51 min ago

I have this URL:


What I want to achieve:

  • keep looping
  • auto play on every loop
  • on every loop, start from 100th sec and end on 200th sec.


On every loop back video starts from 0th sec, instead of what is given at start parameter.

Does anyone know what I am doing wrong?

OS: Ubuntu 16.04 LTS

Chrome version: 67.0.3396.87 (64-bit)

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

Understanding 301 redirects using htaccess and root to subfolder

webdev: reddit for web developers - 9 hours 57 min ago

I have a question that I've been unable to find a clear answer to online.

Example scenario. Company has had a new website built, which exists under a subfolder. Their old website still exists in the root.

For any pages that have an equivalent I would set up the htaccess file as follows:

Redirect 301 /about https://companywebsite.xyz/subfolder/about-company/ Redirect 301 /business https://companywebsite.xyz/subfolder/business/ Redirect 301 /privacy https://companywebsite.xyz/subfolder/privacy-policy/

The problem is that I can't figure out how to redirect the main index file to the subfolder using the same htaccess file. I've tried following scripts online, but it either crashes the page, or redirects every page to the subfolder which I don't want to happen. I understand the issue could lie with how I've written it, hence my question.

To get around the issue, alongside the .htaccess file I have an index.php file with the following:

<?php Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: https://companywebsite.xyz/subfolder" ); ?>

This feels like a cheat and that I'm breaking some kind of rule doing it. Is there a cleaner way just using htaccess for everything? Also is a there a recommended guide to understand how the structure of the htaccess file works?

Thanks in advance

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

can this shape be achieved with CSS? (triangle with border radius)

webdev: reddit for web developers - 10 hours 59 min ago


it's a basic arrow that I don't want to use an http request for, can I get it done in CSS to have one with border only and another one with background? (selected:filled, unselected:border only)

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

Is PHP a bad language? As a begginer i don't understand why people say it is...

webdev: reddit for web developers - 11 hours 6 min ago

Is PHP a bad language? As a begginer i don't understand why people say it is... And if it acually is a bad language and i should not learn it what should i learn as a alternative?


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

Google Maps and GDPR

webdev: reddit for web developers - 11 hours 9 min ago

Quick question: Does embedding a map from Google Maps require GDPR consent and information? Does this responsibility fall on Google or our sites?

Thank you!

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

Anyone love vim/neovim but use vscode instead ?

webdev: reddit for web developers - 12 hours 49 min ago

When i heard about vim, i'm very excited. I spend weeks to learn how to navigate, insert, copy, paste...Then i spend almost all the time i have to learn how to use plugins. It's really awesome, although i have to spend so much time on it, it worth. ( This is my current configs: neovim ).

But then, i know vscode , it's just like a heaven with integrated terminal, files manage, autocomplete...And it also have vim mappings, snippets, debug..etc...

In work, i'm alway use vscode with vim mappings, i just use vim at home or seft project ( because it not fully work as i need, i need to config and add more plugins ).

The reason i love vim the most is it's so fast, smooth, take less resources from my laptop. In the past, i'v always use vim in ubuntu, but now i use macbook, iterm2 + oh-my-zsh + nvim is awful. Navigate with h, j, k, l is to slow (i think this is because iterm2 is just an emulated terminal)

So, anyone do love vim/nvim but use vscode instead ? Or if you use vim/nvim, what can we do to make it more powerful like vscode. And if you are macbook user, what is your solution for slow emulated terminal like iterm2. :D. Thank you so much

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

ASP.net website

webdev: reddit for web developers - 13 hours 30 min ago

Hi I'm looking to buy a custom ASP.net website for a bespoke project. There are reasons for this, one being profile and image hosting and lots of simultanious users etc.

I'm happy to buy the code, however how todo I edit the site and deploy it on an Amazon AWS setup?

I would want to customise the site to my brand, but I'm used to wordpress... any help would be appreciated.


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

Fairly busy Drupal website how to cache?

So I have a somewhat busy drupal 7 website. Running on mysql database.

For now we have enabled drupal 7 caching via the performance settings.

I read here that the above caching is database caching and not good for heavy traffic.

What then are the best caching options available for me? Thanks!

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

Need help with communication / sending requests between projects on different machines

webdev: reddit for web developers - 15 hours 25 sec ago

My ultimate project is to build a bot in Slack that can query multiple databases / info sources across various machines.

I started off by making sure that my Slackbot works locally. Using Python, I wrote something where you can ask the bot a question, for example "What is the number of files in folder X," and the bot will query my local files and return the answer.

Now I am trying to make it so the bot can query non-local databases, for example an Oracle database, and then also using Elasticsearch to query a database in AWS. I think my querying program will be a daemon that just waits for requests from the Slackbot, but I don't know the best way to receive requests. My current ideas are:

  1. SSH, but I think SSH is more for when the user is actively sitting at the computer, rather than for a daemon.

  2. Someone recommended I look into putting the Slackbot and my querying program on a web server such as Apache. And then Slackbot sends stuff to my querying program in JSON using HTTPS over the Apache server.

  3. cURL. I know cURL is built to work without needing user interaction, and cURL also supports many types of info transfer such as DICT, HTTPS, IMPA, etc. Which may be ideal considering my end project will ultimately be querying from multiple sources (Oracle database, database in AWS), and also be taking in input from many sources (many different users in different locations querying the Slackbot, and then my Slackbot code receiving that info, and sending to my querying program).

tldr: Have a Slackbot that works locally, want to know the best way to have the Slackbot program send requests to my querying program, and the best way for my querying program to access info like Oracle databases, AWS databases that are searched using Elasticsearch, etc.

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

Is it just me or does Firebase seem super unintuitive to use?

webdev: reddit for web developers - 15 hours 17 min ago

I'm taking a tutorial on it for work and it just doesn't seem practical for a large application at all. Maybe for a real-time simple chat app just to store the messages or something similar, but for any kind of even slightly complex or relational data, it seems super restrictive and the querying logic gets really annoying to write when trying to grab data across multiple nodes. One solution seems to be duplicating data wherever you need to so the data doesn't get too nested, but then you have to update that data in multiple places which would become a pain to manage. SQL (and some NoSQL dbs) has none of these problems and you can cache query results somewhere if you need fast data, so I only see Firebase as a decent solution for a really small amount of use cases. But I've heard a lot of praise about it so maybe I'm missing something.

submitted by /u/-_-_-_-__-__-_-_-_-
[link] [comments]
Categories: Web Development