r/web_dev • • Sep 05 '15

Is IIS 10, php and ms sql server 2014 a good mix?

2 Upvotes

r/web_dev • • Aug 17 '15

Store an image file in a database

2 Upvotes

I am fairly new to web development and I have a form that users fill out and everything is getting stored to a mysql db. One of the form inputs is a file upload. I want to allow users to be able to submit images.

I know that allowing users to upload files is not the best practice but it is kind of important to the goal I am trying to accomplish. I need to be able to see the image that they submit along with the rest of the information.

What is the easiest way to store files in database?


r/web_dev • • Aug 11 '15

I'm a beginner and I'm looking for a free and simple HTML editor for mac.

2 Upvotes

I just learned HTML and css (starting javascript now) and I'm looking to start bulding my own webpages. My friend recommended downloading NetBeans to use as I'm building this but first of all, I'm just doing HTML and css at this stage so it seems like NetBeans is much more than I need and on top of that, it's really confusing and I don't feel like spending a lot of time just learning how to use that software while I'm still learning coding.

So can anyone recommend a free and easy to understand and use HTML editor for the mac? Thank you!


r/web_dev • • Aug 07 '15

.htaccess redirect non-www to www not working for interior pages, only homepage...

2 Upvotes

I am having trouble getting any page on the other than the homepage to redirect to www. Im using the code below:

RewriteEngine On

RewriteCond %{HTTP_HOST} !www.

RewriteRule .*$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Im not super experienced with editing .htaccess so Im sure it is something totally stupid. Thanks in advance for anyones help.


r/web_dev • • Aug 07 '15

Is there a decent alternative to CodePen?

2 Upvotes

I've googled around a bit and I'm not finding anything that will work on an old version of IE.


r/web_dev • • Aug 03 '15

Need help for intro/starting first actual project

2 Upvotes

I've read up on tutorials concerning basic web development like javascript, jquery, mysql, mongodb, php, and html/css but I want to start my first project. My idea is to create a basic image board. What is a good way to test/develop this without a server? Xampp works but doesn't feel like I will learn all the in's and out's to web development. What I want to learn by doing this big project is setup in a gnu/linux environment and how to juggle parsing information to and from a database(decided on mongodb).What I want to in this post is how to configure the software and make scripts that communicate between the database and the client because I have no idea and no experience to do so. Also to develop an understanding of how the web server handles using interpreters to execute scripts.

EDIT: content


r/web_dev • • Jul 22 '15

Can I speed this process up?

2 Upvotes

I have a bunch of similar objects I wish to add. Each object has two photos, a table with information, and a name. I also need to create a new webpage for each object.

I have been inputting all of these data manually and I was wondering if there was an easier way to do this?

The amount of work isn't too much as it stands because I only add new objects once every month and usually inputting 2-4 but very curious.


r/web_dev • • Jul 15 '15

Please Help A Student

2 Upvotes

I am talking classes on wed development at my local collage. We are looking for people to help us to a card sort. If you wouldn't mind taking just 5 min you would do me and my whole team a big favor! Thanks againhttps://conceptcodify.com/studies/IWA0HihewtvazGLnKfFZX8h7/via/1rRzd9Cgp21yVOXHBU2ve9gR/


r/web_dev • • Jul 09 '15

Any way to hide information when people go to view source?

2 Upvotes

I am adding an instagram feed to my site, and I want to know if it's possible to hide the userId and accessToken part of the instagram api code?


r/web_dev • • Jul 01 '15

Looking for site comparison tool, any suggestions?

2 Upvotes

So ideally, I'd like to find an automated tool that lets me input two websites and get a comparison report to show that the two pages are identical. This is mostly to hand off to the client.

I've been digging around and I haven't quite found anything that fits what I'm looking for, do you guys have any suggestions?


r/web_dev • • Jun 29 '15

How hard would it be to implement a Multi-Tenant store front.

2 Upvotes

I'm still quite the newbie when it comes to web application development. The situation is something like this, we have two store owners that are closely allied but separate entities. We want to display all items from both store owners in a single site and single cart, but we want all transactions from each to go directly to each separate entity. I understand that this would cause checkout to happen multiple time depending on the contents of the cart. I'm not too worried about scalability at this point as the number of store owners isn't likely to increase quickly but, I would like to keep it on mind. Most of my experience has been with a java backend using spring mvc. My question is mostly how you would approach this problem, is there a framework that would be better suited to the task? The payments would be through PayPal. I have zero experience with php and don't see that changing soon, and definitely would not want to jump in head first on this without any experience. Maybe a rails frame work or .net. thanks for your time.


r/web_dev • • Jun 03 '15

second major project, help!!!

2 Upvotes

I've been tasked to build a wiki page and a simple CMS (buttons with links to pdf's) that is constantly updated. The client wants both the wiki page and CMS to be downloadable so his clients can read through the wiki and simple CMS to get information when they are onsite in rural areas (mining company). The online wiki and CMS are constantly updated online. What's the best way to go about this? The site is on wordpress.


r/web_dev • • May 31 '15

Getting started with webdev, my first project.

2 Upvotes

Hey guys, I recently switched from a business analist job to a webdev one, before the switch I started working on a little project to get the hang of web development. It's a little idea I wanted to try out and I think it worked out pretty well. Basically it allows you to make lists of websites, pretty simple right? See it as your favourites but online and all in one place. I decided to go for symfony as a framework, which I have absolutely fallen in love with btw. Anyway I'd love to get some feedback on this!

P.S.: Here's a simple example of a list


r/web_dev • • May 31 '15

Dynamic form Javascript dropdown/input

2 Upvotes

I am using a plugin for my crowdfunding plateform which is working fine and is helping me a lot as I am not quite confortable with coding yet.

However I'd like to tweak a JavaScript function. When a customer chooses how much he wants to contribute, the customer can either decide the amount or the reward level he wants

Here is basically how the form is made:

<div class="form-row inline left twothird"> <label for="level_select">Contribution Level <span class="dropdown "> <select name="level_select" class="dropdown__select"> <option value="1" data-price="5.00">Reward 1</option> <option value="1" data-price="15.00">Reward 2</option> <option value="1" data-price="25.00">Reward 3</option> </span> </label> </div> <div class="form-row inline third total"> <label for="total">Total</label> <input type="text" class="total" name="total" id="total" value=""> </div>

From there I want to bind levels with the amount entered by the user. Currently, it is partially working as changing the amount depending on the selected level is pretty easy. Where I'm stuck is with changing the selected option depending on the input.

In the plugin I found the following lines which seems to be what I'm interested in:

jQuery(document).bind('price_change', function(event, price) { jQuery('input[name="total"]').val(price); var levelIndex = jQuery('select[name="level_select"]').prop('selectedIndex'); var levelPrice = jQuery('select[name="level_select"] option').eq(levelIndex).data('price'); if (price < levelPrice) { jQuery('input[name="total"]').val(levelPrice); } });

Based on this I started to tweak it a bit but with my fairly low knowledge of jQuery here is where I am at the moment:

jQuery(document).ready(function() { jQuery(document).bind('price_change', function(event, price) { var price = jQuery('input.total').val(); var levelIndex = jQuery('select[name="level_select"]').prop('selectedIndex'); var levelPrice = jQuery('select[name="level_select"] option').eq(levelIndex).data('price'); var nextLevel = jQuery('select[name="level_select"] option').eq(levelIndex + 1);//got to check if exist, else NULL if (nextLevel){var nextLevelPrice = jQuery('select[name="level_select"] option').eq(levelIndex + 1).data('price');} var prevLevel = jQuery('select[name="level_select"] option').eq(levelIndex - 1);//got to check if exist, else NULL if (prevLevel){var prevLevelPrice = jQuery('select[name="level_select"] option').eq(levelIndex - 1).data('price');} while (prevLevel!=NULL && price < levelPrice) { jQuery('input[name="total"]').val(prevLevel); } while (nextLevel != NULL && price < nextLevelPrice){ jQuery('input[name="total"]').val(nextLevel); } });

Am I on the right track or is their an easier way to proceed?

Thank you for your attention, any advice appreciated

Edit : I suck with reddit formatting, let's put a jsffidle in there, even tho it won't work it will at least be readable : https://jsfiddle.net/gpykmetb/


r/web_dev • • Apr 16 '15

Question about converting USD to EUR dynamically

2 Upvotes

I'm working on a real estate website for a client which lists his properties in USD and Euros.

Is there a way to automatically change the value of the Euro on the website using some kind of javascript or php?


r/web_dev • • Apr 15 '15

Is $40/hour too high?

2 Upvotes

I'm finding I get turned down at $40/hour for freelancing but in a lot of places I see that referred to as the lowest a freelancer should price. I've seen a lot of comments on this sub and others that pricing too low is doing a disservice to yourself and other freelancers trying to maintain a stable market rate.

For clarification it was design and development of a relatively small HTML/CSS/JS site incorporating some API's. I quoted 20 hours to be safe, assuming 6-10 for the design/approval process and another 10 for the build, making the total around $800.

Am I way off and should lower my idea of what a reasonable rate is?


r/web_dev • • Apr 08 '15

Is it too early to learn bootstrap?

2 Upvotes

I'm in college right now taking my first html/css class. Next semester will be javascript and php while continuing to practice html/css on my own time. I'm interested in web development mostly because of seeing bootstrap templates online and it inspired me to want to make stuff like that. I'm wondering if I should start learning bootstrap right now or am I too much of a noob? I feel like I might use it as a crutch instead of fully understanding what I'm doing, but I dont know how much I need to understand before I can dive into bootstrap without that being an issue. Like right now I only know basic html and css. And I know bootstrap uses javascript so should I wait until I at least learn javascript?


r/web_dev • • Mar 23 '15

Looking for a script that extracts parts of web page when URL entered (like Facebook when posting a link)

2 Upvotes

Looking to update our news aggregator site and was thinking something like Facebook or Hootsuite uses to get an image (or several to pick from) plus article title and relevant text from a web page when the URL is entered. I've found a couple old tutorials but they seem to be a lot of work and progress and abandoned scripts.


r/web_dev • • Mar 21 '15

Any good Swift and Android tutorials?

2 Upvotes

Are there any good tutorials that run through building the same basic app on both iOS and Android? I'm interested in how that process would work from a planning perspective, how someone would go about implementing similar features in both Swift and Android/Java as efficiently as possible. Also I'm not thinking about cross-platform tools like Cordova, but rather native apps, or cross-platform apps with some native components.


r/web_dev • • Mar 17 '15

How exactly does google expect us to compress images?

2 Upvotes

I've been running into this these last few weeks and I just can't seem to find a straight up answer.

When I run my page through google's speed test, it tells me ridiculous saving numbers like: Losslessly compressing could ave 70% or 80% in size etc.

I've run my jpg's through jpgmini and I've tried all kinds of online tools for compressing images, yet somehow google still says they are not just a little too big...but apparently HUGE.

There doesn't seem to be any tool that google provides to actually compress these images as they claim, so what is the deal with this? How are we supposed to comply with this requirement?


r/web_dev • • Mar 17 '15

Organizing files - very little MVC experience

2 Upvotes

I'd like to find the best way to organize my files. I have very little MVC experience, but I've tried to mimic some of the organizational structure.

For example, my directory structure looks like this:

/
    /app (all non-"module" server-side code)
    /docs (documentation)
    /public (public folder, including assets)
        /index.php
        /css, js, text, etc.
    /src (contains the modules)
        /ModuleA
            /Controller (controls the actions of this module)
            /Views (contains templates for this module)
        /ModuleB
            /Controller
            /Views
    /vendor (third party libraries)

Right now, the assets are stored in the public folder, which means I am not using an asset manager such as assetic to minify, combine, etc. I'm thinking they should be moved into an "Assets" folder or similar within each of the modules, but it gets more complicated when you look at the structure inside of my CSS folder:

/css
    /main.css
    /bootstrap.css, etc.
    /ModuleA
        some-page.css
        some-other-page.css, etc.

So, I've tried to structure individual css files in the same way that the modules are structured. I create individual css files when necessary in order to help keep down on the clutter of having everything in a single CSS file. However, I think that if I tried to combine all of these using an AM, it would create a huge headache (i.e. what happens when I've styled an H1 differently for individual pages?)

So, it's probably a simple solution that I've overcomplicated, but I'd appreciate your tips. Is there some way I can re-organize all of this into a more MVC-like or sane approach?

Thanks!


r/web_dev • • Mar 12 '15

Can anyone tell me how to create a map for a subreddit where the users can add a pin for their own location?

2 Upvotes

I've seen them online before. You can put in a pin for your home location, and then see where all the other pins are all over the world. It's usually done via Google Maps, but I can't find any explanation of how it's done online.

Help?


r/web_dev • • Feb 22 '15

Choosing Backend software

2 Upvotes

Hi apologies if this is relatively simple, but I'm new to this and I learning by jumping in and doing. So I'm building a site(using the Materialize Framework for the front end) with a fixed header and footer and a grid of cards displayed in between them. Each card is a single item in an array with some data associated with it. I'm using jquery to load the cards so the most relevant ones will be displayed first and the rest loaded as the user scrolls. The trouble I'm having is figuring out what software I'm going to use to store the card data, receive user input and add that input to the main database.

-Card1

--Name(String)

--Other names(Collection of Strings)

--Effects(link to discription of effect+intensity of effect+success rate) : "Firebolt" (6) (50%)

--Pictures

--Etc

So the Effect field for each card will contain a link to each effect, the specific intensity of that effect on that card (that must vary between cards) and the success rate of that card. Now I'm mentioning cards and effects, but its not a game or an app in any sense, more like a review site. I'd also like the user to be add data to the secondary database and that input to be added to the main database after some logic is applied to it. Finally I think there should be a third database for each effect. So what software should I use to create and manipulate a main database of ~ 300 cards each with the above rough structure?


r/web_dev • • Feb 17 '15

How do partner programs help your business? [x-post /r/freelance]

2 Upvotes

I'm trying to understand how freelancers leverage partner programs from companies such as NationBuilder and Atlassian to build their business.

Have you found these programs to be useful to your business? How could they be improved?


r/web_dev • • Jan 20 '15

Is there something like musicbrainz.org for comics? If not, anyone interested?

2 Upvotes

I'm thinking about making a web app for comics, but I would need a database with metadata for existing comics.

Is there something like that? If not, would it be appealing to any developer/comics lover to have an open source database of comics structured like musicbrainz with titles, editions, authors, etc.?