Web Development

How do I resize images using slick slider?

webdev: reddit for web developers - Sun, 06/24/2018 - 01:21

How do I properly resize images in slick slider? I tried setting the width & height of the .slick-slide class but it didn't work, even when I define an !important flag :/ Any ideas? setting the width & height for the image tag it self also doesn't work as expected.

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

Is dustjs supposed to be a substitute for React in this series?

webdev: reddit for web developers - Sun, 06/24/2018 - 00:27

Hey all, I'm 19 yo and I've been learning web development and it's been kind of a clusterfuck.

I'll look at things for a month at a time without understanding it, and then one day, it just clicks.

So, I ended up learning Node.js and Express, and finally started to understand React.

Today, I learned how to connect Express with React, and my final step is learning databases.

Databases have been my #1 difficulty this entire time, but I finally found a tutorial where the configuration is easy, and it uses PostgreSQL. The series can be found here: https://www.youtube.com/watch?v=ijSzX3S5Qco&list=PLillGF-RfqbaEmlPcX5e_ejaK7Y5MydkW&index=3

I haven't fully watched the videos, but I believe the guy is using Dustjs for templating which I assume is the way to output data from the database to the webpage.

Can this be replaced with React? Is this still a good series to follow?

Perhaps I am just wording this question oddly. Any feedback would be appreciated.

Thanks!

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

Google Cloud Billing

webdev: reddit for web developers - Sat, 06/23/2018 - 23:40

Hi everyone,

I'm looking to used a google maps javascript API key in my project.

Do you know if there is a way to implement a limit (either on requests or on the billing side) so that I don't rack up more than $200 of fees? $200 is the credit that they are providing monthly.

Right now, I only see that I can set up billing alerts, which would only alert me when I hit a limit. I want a hard stop to my services if I hit $200 in requests.

Thanks!

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

Safe to delete ".old" directories?

webdev: reddit for web developers - Sat, 06/23/2018 - 23:38

I don't log into the FTP for my website very often... probably not often enough... I just did and I noticed that there is a copy of my WordPress site directory with .old tagged on the end. So in my root there is a directory for "mysite.com" and a copy called "mysite.com.old".

I use Dreamhost and I found a message on my control panel that said this copy was created after a WP update in February in case I need to reinstall some themes or plugins. Everything looks fine on my live site so I don't think I need this copy. Is it safe to just delete this ".old" directory?

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

Platform recommendations a web application project

webdev: reddit for web developers - Sat, 06/23/2018 - 21:59

Okay, so it will be running on board running Linux, it will need to display system controls and stats (temps and such), also it will need to be able to display an photo the on-board camera will take.

I've been thinking just javascript but the issue is that I don't really know js that well really. I've heard that node.js is good and used a lot. I also would like reccomendations for how to store data, like configurations, that can be read from the system code and the web app.

Sorry if I'm asking for a lot. Any clarification needed, just ask.

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

How to find side projects for supplemental skill building

webdev: reddit for web developers - Sat, 06/23/2018 - 21:38

I'm currently employed as a tech lead at a shop that mostly works with PHP and node projects. I still spend most of my time developing, but because of the types of clients and projects we get, I feel I'm at a standstill when it comes to keeping up with current tech. We rarely ever deal with front end frameworks aside from jQuery, we never deal with automated testing and I never get to work outside of those two stacks.

Mostly, I keep up by doing side projects and a lot of reading but I'd like to move towards picking up some paid side projects that would let me get deeper into things I don't normally get to work with.

Sites like upwork seem to be a pain if I'm looking to make any real money (seems like there is a majority of developers looking for less than my hourly rate at my day job).

I'm also interesting in collaborations in products or services I could take partial ownership in, but ideas for my own apps are few and far between. Not sure where I would even look for this kind of thing though.

I've considered leaving my job for something more interesting but it's a smallish company that let's me take a lot of ownership, and I really enjoy the people I work with so I decided against it.

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

Why would you go through the trouble of fullstack JS only to choose a templating engine like Pug?

webdev: reddit for web developers - Sat, 06/23/2018 - 20:58

Same question for pretty much any tool/framework that strays away from JS syntax or json format.

Presumably you are using Node partially for the benefit of sticking to one language for the front end and back end. On top of that, if you are coming from PHP, then surely something like ejs feels way more natural?

Are most of the people using Pug/Jade coming from Python backgrounds?

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

WordPress event booking with group bookings?

webdev: reddit for web developers - Sat, 06/23/2018 - 20:51

Hi,

I have a client who wants to sell event tickets on their WordPress site. It is essential that the system handle both individual and group bookings, and in the event of group bookings, allow my client to collect custom information about each member of the group (for example dietary requirements or emergency contacts). Bonus points if the proposed solution has a payment plugin to integrate it with Westpac bank in Australia, but if not, I have no problem integrating this myself. My main interest is making event and attendee management easy for my client and the booking process easy for users. It would also be good but not totally required if the system allowed my client to add additional dates to an event without duplicating the whole event, and kept a max number of seats for each event/date.

I'm hoping someone intimately familiar with this can recommend a specific plugin as opposed to a list of "30 best WordPress booking plugins".

Thanks.

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

Cross-origin warning popups

Drupal - Open Source Content Platform - Sat, 06/23/2018 - 20:41

These started appearing for all users on my site Friday morning and has been driving me crazy.

Chrome: "An error occurred while attempting to process /views/ajax: Blocked a frame with origin "https://mysite" from accessing a cross-origin frame."

Firefox: "An error occurred while attempting to process /views/ajax?filterstuffhere: Permission denied to access property Symbol.toPrimitive on cross-origin object"

Was able to narrow down the cause to LinkedIn's Insights (insight.min.js) code. Not sure what changed, but removing this stopped the warnings from popping.

Still getting cross-origin warnings in Chrome/FF's dev console, but at least no more popups.

Hope this helps anyone else experiencing a similar issue.

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

Stream "Guide" Help

webdev: reddit for web developers - Sat, 06/23/2018 - 20:35

Hello and thank you for taking the time to read my post. So, I am trying to work on something regarding a multi-stream type deal where people will choose what stream they want to display on that iframe. I am looking for the guidance on how I would go about doing it? I have an example here and would like for it to open in the frame, but obviously something a little modern. What would be the easiest (or toughest) way of doing this and any documentation regarding it?

Thank you.

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

How to go back in time?

webdev: reddit for web developers - Sat, 06/23/2018 - 20:32

I had a working JavaScript program but I was editing it and I broke it. I can’t figure out how to get it to go back to the way it was, are their any editors that allow you to go back in time?

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

Is there any free webhosts that allow you to use server side languages?

webdev: reddit for web developers - Sat, 06/23/2018 - 19:26

I am currently hosting a website on Github pages but they don't allow you to use PHP. Is there a different option that will allow me to use server side languages for free?

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

How do you usually work into new frameworks/libraries?

webdev: reddit for web developers - Sat, 06/23/2018 - 19:06

Example: You've always been a backend developer (e. g. Spring Framework) and your job requires you to jump into frontend development (e. g. React or Angular).

  1. What is your source to learn it? And why?
  • Are you the type of developer who primarily learns through the documentation?

  • Do you look for an amazing book about it?

  • Do you learn it primarily through video tutorials (pluralsight, udemy ...)?

  1. What is your way to learn it? And why?
  • Do you usually work completely through [insert answer from (1)] to get used to every main aspect of it before you keep working on a real application? (Attention: By working through a book, I'm not talking about books with 2000 pages of 'everything', more likely I mean something like a 300-500 pages Introduction book which covers the basic knowledge of every 'chapter' of the framework)

  • Do you just learn what you need right now and skip every other part?

I'd like to hear your answers as I often wonder what's best. And by the way: let's assume that your jobs does not require to deliver AS SOON AS POSSIBLE. Let's assume you've got like 2-4 weeks to work into it.

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

Does anyone have an idea why nothing happens when I try to submit this form?

webdev: reddit for web developers - Sat, 06/23/2018 - 19:05

Hi!

This might not be the correct place for this, but I've ran out of ideas.. Please redirect me if you know a better sub.

I've been trying to get into Wargaming's API. To use it, you have to have a Wargaming.net account, and then register an application you're gonna use their API with. The window where you submit the form looks like this. The URL is here but I think you need to first log in to get there.

If I click the button with both name and type selected, literally nothing happens. There isn't a loading icon, nothing freezes and I get no error messages or anything. I tried to make sense of the button source html but I don't quite get why it doesn't do anything.

I tried to google and search their forums but this doesn't seem to be a problem to anyone else. Also posted on wargaming's forum but to no avail.

I've tried multiple different browsers, my phone, and even a vpn (in case of a geolock) but it still doesn't work. I've tried this over a few hours.

Edit: Also tried to add it as a server type, but that didn't change anything either.

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

Struggling more than ever to find a position with the best resume I've ever had

webdev: reddit for web developers - Sat, 06/23/2018 - 18:32

"While you're skills are 'extremely competitive' we have decided to go with someone else we felt was a better fit."

I've received nearly this exact response over and over.

I've been searching for a job for 6 months now, since the company I worked for dissolved due to issues totally unrelated to myself or the success of the company. My resume has many of years of full stack experience including cms, spa, and even modern JS frameworks like Node and Meteor as well as C level, and OPS experience. I only receive interviews 1/10 applications, and I have not received any job offers despite applying over 100 times for jobs from mid-level dev and up. Even though nearly every company that has responded has sent me through 2-3 interviews and often a coding challenge.

I've never had to spend more than two months looking for a development job before. Is there something going on in this market I dont know about? Are others struggling like this? Those of you have had recent success can you share any tips?

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

[Django] Querys that include the parent entity

webdev: reddit for web developers - Sat, 06/23/2018 - 18:21

So I was making this forum app today but came across a problem

That's my forum model

as you can see, a board has multiple threads and a thread has multiple comments to it.

My Urls file

So what I thought I'd do with the urls is to redirect him according to the primary keys of both the board and the thread.

an example to what I am saying is if the user tries this address mywebsite.com/forums he would be redirected to the main forum page having all the boards, futhermore, if he tries mywebsite.com/forums/2 he would be redirect to the board that has the primary key of 2 and same goes with if he tries mywebiste.com/forums/2/3 the user would be redirect to the post that has an id of 3 and with the board_id of 2, that may not be the most efficent way to utilize the urls but I am still learning and thats what I could think so the problem lies when I tried to implemnt the views file

Processing img 2r4lsds8st511...

so thanks to Django, I could use the filter board=pk to do mywebsite.com/forums/2 function, that would redirect the user to the board with id equal to pk. But when I tried to do the same with with the ThreadDetailView class I couldn't wrap my head around it, I want to use the thread to decide on the second number of the url mywebsite.com/forums/2/3 [3 in this case] but how do I get access to the first number which is the 2.

I hope this is not too complicated, I am really stuck right now and have no idea what to do. Thanks in advance

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

Pages