Web Development

I built a recommendation search engine for Amazon shoppers. Feedback need.

webdev: reddit for web developers - Fri, 06/22/2018 - 21:58

Hi, guys. I am a web developer and love shopping on Amazon.BUT, every time, I will spend at least 20 mins to go through different pages and products, compare their ratings and reviews. The whole research process is tedious and time-coming. I am an engineer so I built a solution to this problem. Best10 is recommendation search engine for Amazon shoppers. This is how it works: if you wanna buy a book about Python, you enter the keywords, then it will gather top 10 items for you based on customers' reviews, ratings, satisfaction, and popularity. It does all the research for you, then you can find the top items with no effort. Is it cool? Please give me some feedback. Best10: https://www.best10.store/

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

Do you guys, as developers, ever found or find it extremely hard to find work as a developer?

webdev: reddit for web developers - Fri, 06/22/2018 - 21:33

I only ask because when I first began, and even after I had a lot of knowledge in the career, I would get stuck with many recruiters, companies and clients that would look at my past resume and would later say they had found someone better.

Now this issue does not happen but for some reason, I always felt as if I was the only one with this issue while other developers, after their first or second year, would find a great paying career.

Let me know.

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

How to learn backend development through examples?

webdev: reddit for web developers - Fri, 06/22/2018 - 21:26

I have studied a bit of javascript and php but the theory or the few easy exercises don't help too much, I need to practice but in order to do so I need a platform where I can add my code and test it, how can I find such a platform?

Also, I would like to get ready codes from the web, add them to the platform and analyze them so I can get a better idea about how each important thing that makes up a site is created, where can I find such codes accompanied by tutorials preferably?

Right now, I can't find a platform where I can test my or other codes and it's not fun.

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

Building website from jade source files

webdev: reddit for web developers - Fri, 06/22/2018 - 20:56

Hello everyone. I have been trying to rebuild a website from jade source files and i have been having a very difficult time. I have some knowledge in html and css and understand that jade (or now pug) is a templating language used to incorporate html in js.

Listed below are the (source?) files i have for the website. I've looked into the .jade files and have seen the html/js integration, but am unsure how to deploy the site. I have installed npm and the necessary dependencies for the project within package.json and have tried to run the initialize.js file with no luck.

this is the error message when i run "node initialize.js"

ReferenceError: $ is not defined at Object.<anonymous> (C:\Users\CoEfficient Labs\Desktop\website\app\initialize.js:1:63) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

app assets fonts img videos initialize.js contacts.jade index.jade partials _base.jade _footer.jade work.jade jade contacts.jade index.jade partials work.jade less _variables.less bootstrap.less styl _fonts.styl _vars.styl modules screen.styl sections

bower.json brunch-config.js package.json README.md vendor css fullscreen-overlay-effect.css js adroll.js fb.js ga.js headroom.js heap.js jquery.animateNumber.js jquery.cycle2.js

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

How do I make a link not refresh the page, just change the body of the webpage?

webdev: reddit for web developers - Fri, 06/22/2018 - 19:46

Starting to teach myself webdev, and I want to try and re-make my dad's website but cleaner and not so bland. He does pest control and has a list of like 15 different animals and a description about the process of what they do for each one.

Right now their webpage has each link reload the page and change the body, along with the side navbar so you can no longer click on another animal unless you go back.

I want literally everything to stay the same. The header, the footer, the navbar on the side, and only display a new body for a description of each animal. Basically, hide all the detail except for the animal that is clicked, that way it doesn't keep reloading everytime you lick a new "link".

So I guess I actually want each one to be like a button that hides everything else except the one that was clicked.

I am learning HTML, CSS, and Javascript. So anything involving those would be a great help. I also need to learn GIT, though. Those are what I was told to learn to get into deb design where I know someone works.

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

Looking for image galleries for inspiration. Does anyone have any suggestions? (CSS Grid)

webdev: reddit for web developers - Fri, 06/22/2018 - 19:27

Looking for image galleries for inspiration. Does anyone have any suggestions? (CSS Grid)

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

CouchCMS not loading proberly

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

Hello guys, i tried to install Couchcms on my vps and it is actually working but not loading correctly.


I tried to reinstall it like 5 times already and i used different versions but that didnt really help.

All the folders and files are having the right permissions so thats not the problem.

I would really appreciate some help since im really kinda lost :D

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

I’d like to create a series of web apps. What legal stuff do I need to know?

webdev: reddit for web developers - Fri, 06/22/2018 - 19:03

Over the next few years I plan to create several web apps, each with a user base and subscription model. I’ll also be creating iOS and android apps of these. Do I need to create an LCC? What about TOS and license?

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

What is your web development workflow? Do you use Git?

webdev: reddit for web developers - Fri, 06/22/2018 - 18:57


I'm familiar with and have used two methods to develop websites. The first is directly editing files on the development/production server. The second is developing a website locally and then pushing updates manually with FTP.

What is your web development workflow? Do you use Git at all for development or production servers?

I like to work on two computers so I usually download a copy of the entire project from the remote server each time I start work. Is there a better way to manage live sites?

I appreciate the discussion and help!

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

Could you help me understand WordPress?

webdev: reddit for web developers - Fri, 06/22/2018 - 18:00

I'm trying to figure out WordPress because that's something I'd like to be able to use as a tool some day. I'm pretty new to web dev in general, but i am comfortable in HTML/CSS and can write a decent looking site from scratch.

I think i got the wrong idea about WordPress. I was under the impression that i install a theme, change the content to whatever i wish, then have the ability to manipulate the content with CSS/JS. However, i can't seem to figure out how, as the interface(the Dashboard) only allows me to change some content.

For example, i installed a theme called Pixgraphy today for a test drive. However, what i really got when i ran it was this. Okay, so i guess i don't get the full website look with a theme. What's the point then? How do i add the images, the shiny social media buttons in the top right corner etc? Couldn't even figure out how to make the header image full size like that.

Maybe i just got a crappy free version of a theme? Even so, can i edit in certain elements? Take this website for example. Say i want to edit the pricing table to be a different color, have round borders and do something shiny on hover. Am i able to do that or am i limited to the theme?

Sorry for the long post. Basically, i see all these people creating beautiful and modern looking websites with ease, yet i can't seem to figure out how. Are they all using the Dashboard to add stuff? Or are they just buying better themes?

I'm really confused and seem to be missing the general idea. Could really use some guidance.

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

Is it worth learning php/laravel today?

webdev: reddit for web developers - Fri, 06/22/2018 - 17:34

I know its not the "hip" stack of today but is it still worth learning?

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

Keep track of all client passwords (beyond website) like FTP, MySQL, SSH, etc

webdev: reddit for web developers - Fri, 06/22/2018 - 16:40

I found this post from a few years ago and was curious if anyone had any updated information on how they share sensitive information (beyond website logins). Do password managers do the job? Which ones would you vouch for? Thanks in advance!

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

Google Maps API route/directions question

webdev: reddit for web developers - Fri, 06/22/2018 - 16:34

I have a Google Map that I created with the ACF WordPress plugin. I have a few markers on the map. I have built some functionality that uses directionsService to draw a route between the different markers on my map. My problem is that the directionsRenderer places another marker on the map, but only on the street closest to the actual location which is already marked. I know I can shut off this extra marker (labeled C in my screenshot) by using suppressMarkers. However, I'd love for the route to actually go to the original marker somehow. The Google Maps website represents this with a dashed line from the road to the actual location. Is it possible to do the same thing with the API? Any examples would be awesome!

my map

the google maps way

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

How easy is PDF generation in your language?

webdev: reddit for web developers - Fri, 06/22/2018 - 16:21

Hi guys, Im wondering how are you handling generating pdf documents. What do you think about it? Personally I’m creating PDFs in Java using iText library and I wouldn’t recommend this to anyone, its too complex. Even if I wrap this into some builder design patterns.

I’m looking for a better (easier) way to creating complex pdf files. SaaS solutions or exotic programming languages and create microservice in it for PDFs.

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

Animate Calligraphy with SVG

CSS-Tricks - Fri, 06/22/2018 - 15:35

From time to time at Stackoverflow, the question pops up whether there is an equivalent to the stroke-dashoffset technique for animating the SVG stroke that works for the fill attribute. But upon closer inspection, what the questions are really trying to ask is something like this:

I have something that is sort of a line, but because it has varying brush widths, in SVG it is defined as the fill of a path.

How can this "brush" be animated?

In short: How do you animate calligraphy?

A mask path covers the calligraphic brush

The basic technique for this is relatively simple: draw a second (smooth) path on top of the calligraphy so that it follows the brush line and then choose the stroke width in such a way that it covers the calligraphy everywhere.

This path on top will be used as a mask for the one beneath it. Apply the stroke-dashoffset animation technique to the mask path. The result will look as if the lower path is being "written" directly on the screen in real-time.

The is a case for a mask, not a clip-path — that would not work. Clip-paths always reference the fill area of a path, but ignore the stroke.

The easiest variant is to set stroke: white for the path in the mask. Then everything outside the area painted white is hidden, and anything inside is shown without alteration.

See the Pen Writing calligraphy: basic example by ccprog (@ccprog) on CodePen.

So far, so simple. Things get tricky, however, when the calligraphic lines overlap. This is what happens in a naive implementation:

See the Pen Writing calligraphy: faulty intersection by ccprog (@ccprog) on CodePen.

At the intersection point, the mask reveals part of the crossing brush. Therefore, the calligraphy has to be cut into non-overlapping pieces. Stack them in drawing order and define separate mask paths for each one.

The cut on the mask path and the calligraphic brush must match

The most tricky part is to maintain the impression that the drawing is a single continuous stroke. If you cut a smooth path, ends will fit together as long as both path tangents have the same direction at their common point. The stroke ends are perpendicular to that, and it is essential that the cut in the calligraphic line aligns exactly. Take care all paths have consecutive directions. Animate them one after the other.

While many line animations can get by with rough math on the length for stroke-dasharray, this scenario requires accurate measurements (although small roundings shouldn't hurt). As a reminder, you can get them in the DevTools console with:

document.querySelector('#mask1 path').getTotalLength()

See the Pen Writing calligraphy: divide up intersections by ccprog (@ccprog) on CodePen.

The "one after the other" part is slightly awkward to write in CSS. The best pattern is probably to give all partial animations the same start time and total duration, then set intermediate keyframes between the stroke-dashoffset changes.

Something like this:

@keyframes brush1 { 0% { stroke-dashoffset: 160; } /* leave static */ 12% { stroke-dashoffset: 160; } /* start of first brush */ 44% { stroke-dashoffset: 0; } /* end of first brush equals start of second */ 100% { stroke-dashoffset: 0; } /* leave static */ } @keyframes brush2 { 0% { stroke-dashoffset: 210; } /* leave static */ 44% { stroke-dashoffset: 210; } /* start of second brush equals end of first */ 86% { stroke-dashoffset: 0; } /* end of second brush */ 100% { stroke-dashoffset: 0; } /* leave static */ }

Further down, you'll see how a SMIL animation enables a more fluent and expressive way to define timing. Keeping with CSS, computations done with Sass might be pretty helpful since it can handle some math.

The mask path (left) and its application (right)

A comparable problem appears if the curve radius of the mask path gets smaller than the stroke width. While the animation runs through that curve, it may happen that an intermediate state looks seriously crooked.

The solution is to move the mask path out of the calligraphic curve. You only need to take care its inner edge still covers the brush.

You can even cut the mask path and misalign the ends, as long as the cutting edges fit together.

The radius stays large enough

See the Pen Writing calligraphy: divide up intersections by ccprog (@ccprog) on CodePen.

And, thus, you can even draw something complex, like the Arabic calligraphy in this example:

See the Pen Tughra Mahmud II - text animation by ccprog (@ccprog) on CodePen.

The original design, the Tughra of Osmanic Sultan Mahmud II., is by an unknown 19th-century calligrapher. The vectorized version was done by Wikipedia illustrator Baba66. The animation is my attempt to visualize the position of the Arabic letters inside the drawing. It builds upon an earlier version by Baba66. Creative Commons Attribution-Share Alike 2.5.

The following code snippet shows the advanced method used to run the animations in order and in a repeatable fashion.

mask path { fill: none; stroke: white; stroke-width: 16; } .brush { fill: #0d33f2; } <mask id="mask1" maskUnits="userSpaceOnUse"> <path stroke-dasharray="160 160" stroke-dashoffset="160" d="..."> <!-- animation begins after document starts and repeats with a click on the "repeat" button --> <animate id="animate1" attributeName="stroke-dashoffset" from="160" to="0" begin="1s;repeat.click" dur="1.6s" /> </path> </mask> <mask id="mask2" maskUnits="userSpaceOnUse"> <path stroke-dasharray="350 350" stroke-dashoffset="350" d="..."> <!-- animation begins at the end of the previous one --> <animate id="animate2" attributeName="stroke-dashoffset" from="350" to="0" begin="animate1.end" dur="3.5s" /> </path> </mask> <!-- more masks... --> <mask id="mask15" maskUnits="userSpaceOnUse"> <path stroke-dasharray="230 230" stroke-dashoffset="230" d="..."> <!-- insert an artificial pause between the animations, as if the brush had been lifted --> <animate id="animate15" attributeName="stroke-dashoffset" from="230" to="0" begin="animate14.end+0.5s" dur="2.3s" /> </path> </mask> <g class="brush"> <path id="brush1" d="..."> <!-- The mask is only applied after document starts/repeats and until the animation has run. This makes sure the brushes are visible in renderers that do not support SMIL --> <set attributeName="mask" to="url(#mask1)" begin="0s;repeat.click" end="animate1.end;indefinite" /> </path> <path id="brush2" d="..."> <set attributeName="mask" to="url(#mask2)" begin="0s;repeat.click" end="animate2.end;indefinite" /> </path> <!-- more paths... --> <path id="brush15" d="..."> <set attributeName="mask" to="url(#mask2)" begin="0s;repeat.click" end="animate15.end;indefinite" /> </path> </g>

In contrast to the other examples we've look at, this animation uses SMIL, which means it will not work in Internet Explorer and Edge.

This article is published in German over at Browser…​unplugged.

The post Animate Calligraphy with SVG appeared first on CSS-Tricks.

Categories: Web Development