• Breaking News

    Wednesday, April 25, 2018

    Browser wars 2018: Microsoft Edge falls behind ... Internet Explorer? web developers

    Browser wars 2018: Microsoft Edge falls behind ... Internet Explorer? web developers


    Browser wars 2018: Microsoft Edge falls behind ... Internet Explorer?

    Posted: 25 Apr 2018 02:06 AM PDT

    Best. Answer. Ever.

    Posted: 25 Apr 2018 06:27 AM PDT

    How do you keep yourself from logging on to Reddit each time your code compiles?

    Posted: 25 Apr 2018 09:13 AM PDT

    All in all, the compile process for my webpack project only takes about 35s but in that time I log onto reddit so it usually takes 10m. Why am I incapable of just waiting 35 seconds?

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

    I'm really lost on what email service to use

    Posted: 25 Apr 2018 11:00 AM PDT

    I'm cheap and using freehostia for hosting, but there's something weird going on with their email service in that html messages have massive padding. So I'm trying to find alternatives.

    Zoho mailing doesn't seem to support auto reply or html emails.

    Mailgun just doesn't work at all for me.

    I'm looking at Amazon SES but it's still setting me up.

    I'm considering running a mail server off a cheap pi or something, I only really need my email for my portfolio, which I don't expect mass amounts of email for.

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

    How To Work with Git - The Pros' Way

    Posted: 25 Apr 2018 11:46 AM PDT

    NodeJS 10 released

    Posted: 24 Apr 2018 08:01 PM PDT

    Any discord groups where you can work on group projects and gain experience?

    Posted: 24 Apr 2018 10:36 PM PDT

    A pretty clever way to debug mod_rewrite

    Posted: 25 Apr 2018 01:59 PM PDT

    Once upon a time, I decided I needed some rewriting. Long story short, I needed a powerhorse: append ".php" to allow for simple "/file" calls that aren't folders, prepend this, append that, mess around.

    Debugging this was a hot mess.

    First, to the rescue came the obvious setting,

    LogLevel alert rewrite:trace6 

    That filled my error_log with hundreds of lines showing matching of ".*" against my URLs, prepending, appending path parts, all in all: it didn't produce a very clearly readable log. At least not to the picky old me. So I came up with two ways to tag the log with comments.

    General comment

    RewriteRule "$--------------------------- START OF SECTION" - 

    This will obviously never match any URL, but it WILL show up in the error log:

    [perdir /home/.........../] applying pattern '--------------------------- START OF SECTION' to uri 'index.php' 

    It's good for marking sections of the rewriting code.

    RewriteRule firing indicator

    RewriteCond "=========== THE RULE HAS FIRED!" !="" 

    This one, when inserted as the LAST (or only) condition of a RewriteRule, will also nicely show in the log. It'll be an obvious match, so it won't interfere with whatever the conditions were. Apache applies conditions in the rule-cond1-cond2-cond3 order, and aborts on a mismatch, so if this is evaluated, the rule will surely fire.

    Example:

    RewriteCond %{REQUEST_FILENAME}.php -f RewriteCond "=========== APPENDING .php! ============" !="" RewriteRule ".*" "$0.php" 

    This shows in the log as:

    [perdir /home/.........../] applying pattern '.*' to uri 'foo/bar' [perdir /home/.........../] RewriteCond: input='/home/user/www/foo/bar.php' pattern='-f' => matched [perdir /home/.........../] RewriteCond: input='=========== APPENDING .php! ============' pattern='!=""' => matched [perdir /home/.........../] rewrite 'foo/bar' -> 'foo/bar.php' 

    One can, of course, insert various %{VARIABLES} in the comments, and see them printed into the log for inspection.

    I hope this ends up useful for someone. :)

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

    Introducing the Microsoft Edge DevTools Preview app - Microsoft Edge Dev Blog

    Posted: 25 Apr 2018 10:57 AM PDT

    Creating a web front end to an API?

    Posted: 25 Apr 2018 04:37 PM PDT

    I'm working on an assignment which asks me to create a web front end to the Reddit API, listing features such as Topic List, Subreddit List, and Subreddit View.

    This is my first time working on this sort of task and haven't been successful finding any tutorials that cover this topic.

    Any good resources out there that could help me out?

    submitted by /u/absolut-throwaway
    [link] [comments]

    Here's my short journey going from 59 to 89/100 on Google's PageSpeed Insights just by following the order : "Eliminate render-blocking CSS in above-the-fold content"

    Posted: 25 Apr 2018 03:56 AM PDT

    Completely new to sockets with Node. What's the best way to handle emitting without cluttering up my route files?

    Posted: 25 Apr 2018 04:11 PM PDT

    For some context, I have a page that will contain a live feed of donations at certain times. Using socket.io seemed like a perfect way to handle this, because without sockets I am continually pinging an API endpoint for new donations. It is very messy and costly.

    I have never used sockets before, and am wondering what the best way is to set it up. I really only want the socket to be active on this one donation page, which I know I can do easily with some explicit route logic. The problem comes up when I need to emit new donations to the socket as well from a different endpoint.

    I have an API endpoint setup for creating new donations in my database. This endpoint is being hit by by payment processor with new donations, and it works really well. I am trying to figure how to cleanly give this route access to the socket.

    Should I make the socket variable global, and therefore my donation routing logic can determine if it is active and emit or not? I have always heard globals are bad, but in this case it seems necessary for both my client route and donation route to use the socket.

    Another solution I came up with was to create a little socket emitter API endpoint. That way my donation route can send an emitter object to that endpoint instead of accessing the global socket variable, and the routing logic on the emitter endpoint will determine whether to emit or not, based on if their is a socket connection open. I can include the socket object and emitter route logic in one file to keep it clean.

    I hope I'm being clear. How have people handled this in the past? Am I really overthinking things? Just want some guidance on a new project. Thanks!

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

    Hey, r/webdev! Any tips for a smooth transition from Linux to macOS?

    Posted: 25 Apr 2018 03:11 PM PDT

    As I've never worked with a Macbook I wonder if the sub has any tips to get up and running in the new OS. As for now the only tricky part I can think of is the keyboard layout.

    Thanks!

    Why I am switching: mobile development.

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

    Wix Coding Question!

    Posted: 25 Apr 2018 02:43 PM PDT

    I have a spotify player that I'd like to modify the size for, but wix doesn't allow me to do that. Does anyone know if it's possible through the coding feature in wix? I'm not a coder. Thanks!

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

    Have a SiteGround site, my domain registered with Amazon. SiteGround has a little email server built in, but can I really rely on it? What if I need to send or receive some huge files? Can I just use gmail for free instead with my addresses like "sales@mydomain.com"?

    Posted: 25 Apr 2018 02:27 PM PDT

    SiteGround recommends POP3 and using an alias in gmail so it looks like emails are being sent from "sales@mydomain.com", is this what I should do? I don't think I can afford another $5 a month in dedicated email service, I'm just junior freelancing a few hours a week for some extra money, and my rates are effectively barely above minimum wage. My website is just a single page default theme, but I do need to send and receive a lot of attachments or large attachments. It'd be nice to be able to keep all those emails and attachments forever too, which I can't do with my 2GB email storage allotment with SiteGround, but I can do with gmail.

    So is POP3 and send from alias for a fresh gmail account a good solution? And just combine all my "@mydomain.com" accounts into the one gmail account, and I guess that means SiteGround is just forwarding all those emails to me and then deleting them so they won't take up space? There's no chance emails could get lost without me knowing? Will all the emails be secure enough?

    this is site grounds recommendation.

    EDIT: Oh dear, it looks like I was under the mistaken impression that gmail has unlimited storage. It actually has only 15GB storage. I could download the attachments and save them in client folders in my OneDrive as a permanent backup, and set up the SiteGround to gmail POP3/alias just so I have a convenient place to access all those emails on my phone or any desktop browser?

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

    Webpack - Extracting CSS from node_module dependencies.

    Posted: 25 Apr 2018 02:00 PM PDT

    My current setup is a VueJS application written in TypeScript and using Single File Components.

    I have my webpack.config setup with ExtractTextPlugin so that all my CSS (both from my global styles and my components) ends up in an app.css file which I then include in the <head> of my HTML.

    However, whenever I've imported any external components I've installed via NPM their CSS is included in my JS output and injected as a <style> tag. I tested earlier today with a simple project containing only an App.vue component which had import Spinner from 'vue-simple-spinner', which I found on the awesome-vue Github repository.

    I guess that this is because the components I'm importing are already compiled and the author of the component chose to bundle the CSS into the JS, but is there any way for me to extract the CSS so that half of my styles don't end up being injected, while the other half is in the .css file?

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

    Get accurate shadows from Google maps?

    Posted: 25 Apr 2018 01:56 PM PDT

    Noticing that Google maps has rendered everything (buildings, sheds, trees, fences, cars) in 3D, it seems like it should be possible to render accurate shadows based on lat/lon, date/time, and 3D object dimensions. Google Earth Pro does something kind of like this, but its shadows are pretty impressionistic. I'm thinking about being able to see, in a binary manner, which spots have direct sun and which don't. Useful for designing landscaping, agriculture, solar. Has anyone developed this?

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

    Developing Web Apps with ASP.NET Core 2.0 and React

    Posted: 25 Apr 2018 12:00 AM PDT

    Is it better to use ids and classes or nested tags? #top-banner-button vs section>banner>button

    Posted: 25 Apr 2018 09:47 AM PDT

    Just wondering which one is better, faster or a better practice.

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

    Just wrote my first Medium article! I hope it will inspire others to continue web dev or come into web dev.

    Posted: 24 Apr 2018 08:41 PM PDT

    Can't get border line to properly position at the bottom

    Posted: 25 Apr 2018 09:42 AM PDT

    Hello, i'm working on a simple photo grid that serves as a blog/portfolio page. The issue is I made a div element to serve as a horizontal line similar to the one I made for the p element at the top of the page.

    Yet the div element either disappears or fails to align at the bottom, I've tried using fixed and absolute position, bottom:0; and nothing has worked. If I could get some insight on what to do that would be greatly appreciated.

    https://gist.github.com/BlueRobot46/707babe6a4d0cd8f4a990085112c4345

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

    These 6 essential tools will maintain your NPM modules for you

    Posted: 25 Apr 2018 01:11 PM PDT

    No comments:

    Post a Comment