• Breaking News

    Monday, April 2, 2018

    How to Generate A Free Wildcard SSL Certificate with Let’s Encrypt for Your Domain web developers

    How to Generate A Free Wildcard SSL Certificate with Let’s Encrypt for Your Domain web developers


    How to Generate A Free Wildcard SSL Certificate with Let’s Encrypt for Your Domain

    Posted: 02 Apr 2018 06:44 AM PDT

    Drupal (6, 7 and 8) ‘Highly critical’ CMS bug has left over 1 million sites open to attack

    Posted: 02 Apr 2018 06:42 AM PDT

    Brainstorming: Best approach to implement fast & user friendly Retina/HiDPI ready [IMG] BBCode

    Posted: 02 Apr 2018 11:28 AM PDT

    Hello /r/webdev Community!

    I hope this is the right place for this topic. I wasn't sure if I should post it in a more WebDesign or Programming focused community, but with possible solutions and ideas coming from multiple fields of the whole webdev spectrum I thought this community would be the best place for this little discussion/brainstorming. :) - Sorry in advance if my English is not the best, I'm not a native speaker.


    Little tl;dr background info

    I'm the project leader and developer of one of the lesser known commercial Bulletin Board systems (I don't say wich one and use my personal Reddit account here, because I don't want to promo something here, just seeking for a good exchange of knowledge between colleagues). One major focus of our project is to bring a very fast, secure and modern BB system to our customers wich makes a wide usage of new web technologies and advanced features without cluttering the UX too much to give even beginners a system they can easily understand and use. And we're always open for new ideas and try to learn as much as we can to make the product better with every update.

    Last year we released a completely new major version wich not only brought the whole system to the new PHP7+ standard but also made use of all the new web standards like integrated https assistant, automatic service to encrypt user images from external sources, better designed data protection and of course a fully responsive HTML5/CSS3 template with less and compressed resources and support for Retina/HiDPI displays.

    The Retina/HiDPI support is implemented in all sections of the board system starting from user avatars over smilies/emojis, attachments and all the icons and stuff from the theme itself. - The only thing thats still a bit "under the radar" is the IMG BBCode where users are able to inline-post external images. For content-focused sites we also offer a free Plugin wich has an integrated image uploader with the possibility to activate "Retina ready" or "Gallery & Thumbnail" mode to post HiDPI/Retina ready images, but we're still looking for a good "onboard" solution for the default IMG BBCode itself, but we still didn't find a good enough method to implement it, that would still fit our very strict "performant", "compatible" and "easy to use" requirement we have for all features we bring into the system.

    I see that even a lot of other web softwares out there (even though they also have modern designs and Retina/HiDPI readyness) haven't implemented a solution for the classic external image tag / IMG BBCode for their users so maybe this topic could also be an inspiration for other web developers with the same problem.


    Now back to the actual topic

    What do you think would be the best way to give users the possibility to use the IMG-BBCode in a forum or blog system for retina images also? It should give the users the flexibility to control when an image should be processed that way and when not to. And at the same time it should be implemented in a way that beginners who never heard from things like "Retina" or "HiDPI Ready" are not wondering what they should do. - On the code side it should be as compatible as possible with all current browsers (forget the old ones if you want, they don't understand much HTML5 and CSS3 anyway ;)) and it should be implemented as performant as possible (no super huge JavaScripts working around the whole page every time you load something and maybe cause elements to flicker when doing a resize etc.). I'm curious wich ideas and inputs other webDevs here have in mind! :)

    Some ideas with their advantages (+) / disadvantages (-) I already had to solve this

    For the BBCode in general

    I'm still a bit unsure what would be a good way to give the users a clear and convenient way to decide if they want their image posted retina ready or not.

    Maybe use two seperate BBCodes for that matter?

    [IMG] = regular image [RIMG] = retina image (50% of original image size) 
    • + would be a very clear separation of the functions
    • + you could add more detailed help texts for each BBCode to explain beginners the differences
    • - since we already have separate IMG BBCode Tags for left- or right-floating images it would add 3 more buttons to all our BBCode editors wich doesn't look good
    • - multiple icons with "embed image" could be weird

    Using a BBCode parameter for retina ready implementation?

    [IMG]...[/IMG] => regular image [IMG=hires]...[/IMG] => retina/HiDPI image 
    • + cleaner way of handling it without the need for extra buttons and stuff
    • - is a bit "hidden" so if nobody reads the help-texts maybe less users stumble upon that possibility

    Technical handling of embedded retina images

    The next question is: What could be the best way on the technical side of the system to work with external retina-ready images that get posted?

    CSS Solution?

    Rescaling an image with CSS seems to be the fastest way of doing it but unfortunately its also a way that seems to be the most difficult for all browsers around there. I know you can use commands like zoom or transform: scale(0.5), but not all browsers support it the same way. Another problem is, that if you use transform the browsers rescale the image correctly, but the image container still stays at the original size of the image in the DOM, so it could get weird empty spaces where a retina image is used. Working with "width" or even the new CSS3 based calc() operations on width or height doesn't work that good in our tests. Because CSS uses the container width if you do it that way and not the image dimensions. So:

    • + very fast processing
    • + template designers could further work with a CSS class for that purpose
    • - many browsers interpret contemplable styling commands in a different way wich makes the results look different on each browser used

    JavaScript solution?

    You could for example add a special class for inline-retina-images posted by the user and use jQuery to re-process those images after they got loaded. Unfortunately this is a way where a script has to rework the whole page in each topic wich makes the pagespeed a bit slower, especially on mobile devices or older computers with not much CPU power. Beside that:

    • + should work in every modern browser
    • + easy to implement
    • - makes the page slower
    • - you have to wait for the image to be loaded completely wich basically would be an 'asynchronous' JavaScript event if you want to call it that way. Beside that you would get little "flicker" effects on the page because container spaces will change when images are getting pushed to half their size after they already loaded up in their full size. I think that makes the user experience very bad. Especially if you already scroll down and the page pulls up again until everything is loaded. I totally hate pages that do that. ;)

    PHP / ServerSide solution

    This is IMO the worst solution for that problem: Basically you have to at least one time fetch the image from an external resource to get the image dimensions and store them. This causes more traffic for the server itself. And beside that more needed "power" for the page-interpretation. And if users get the idea to post very very large images it could also "blow" the defined memory_limits or runtime limits of a server wich would cause the script to crash. And I haven't talked about possible security concerns ("DDoS" via XXXL images, etc.) and the fact, that additional things like curl or external getimagesize would be necessary for it to work. Since there is no good way to work with percentages on img-tags (see CSS idea) you would need the real image dimensions to do any work. So I think a server side solution would in general be the worst idea no matter how you do and secure it. But maybe someone has a good alternate idea I haven't seen.


    I'm curious what you think about the different ways you could do that and I'm also curious if somebody comes up with some better ideas and inputs to my first thougts I shared with you here. And I hope this topic is something that could also help other webdevs with similar problems to maybe get some helpful ideas and inspirations out of that topic here.

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

    Tensorflow just came to JS and the browser

    Posted: 02 Apr 2018 10:56 AM PDT

    GoDaddy, Nameservers, and Office365

    Posted: 02 Apr 2018 10:35 AM PDT

    I have a Web client who bought their domain via GoDaddy. They also have Office365 hosted via GoDaddy. When I went in to change their nameservers (to direct it to DigitalOcean for hosting), they stopped receiving their e-mail.

    Is it possible to have Office365 work but also have hosting on DO?

    Thanks

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

    Should I learn Javascript on FreeCodeCamp or CodeCademy?

    Posted: 02 Apr 2018 12:35 PM PDT

    Hello, I learned HTML and CSS on Codecademy and then I finished the HTML and CSS course on Freecodecamp. Should I learn Javascript on Freecodecamp or FCC?

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

    Progressive Web Apps on iOS are here

    Posted: 02 Apr 2018 11:05 AM PDT

    Leverage browser caching on a html/css site

    Posted: 02 Apr 2018 10:51 AM PDT

    I just launched a site and ran it through pagespeed and pingdom. the largest bottleneck seems to be browser caching. I have tried to google how to do this but the only solutions seem to be for cms. Is there a way to do this for a normal site?

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

    Pluralsight to Conduct an Initial Public Offering of its Class A Common Stock

    Posted: 02 Apr 2018 10:39 AM PDT

    Is it possible to recognize and block upsampled content?

    Posted: 02 Apr 2018 10:36 AM PDT

    I think every social media site could benefit from blocking upsampled content. How many times a day across different platforms do we see images with digital artifacts? Is there any way for the computer to recognize that an image (or video, etc) has been upscaled (ie taken from 480p to 1080p)?

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

    5 Things To Learn From Building Our Weekend GitHub Projects

    Posted: 02 Apr 2018 09:38 AM PDT

    Just Received A Dev Test And... I Have Questions.

    Posted: 02 Apr 2018 08:59 AM PDT

    Hi guys,

    I recently started looking for jobs in WebDev, finally got a response for a junior backend position along with a link to take a dev test.

    That's cool, I don't mind; I knew this is how it works. My question is this: Since it's a link to a github repo... when someone sends a link to a test in a github repo, is there a time limit?

    That doesn't seem likely as I've never seen anything like that on github.

    Basically, because I doubt they'd actually let me look at the test and study the questions before taking the test... I'm hesitant to to open the link because I feel like any test would be timed.

    What's the standard operating procedure for these things?

    I'm fine with taking the test, I just don't have the time at the moment (no details for time were given in the email, but I'm going to work soon).

    Any and all answers are appreciated, thanks!

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

    Disable javascript without a refresh?

    Posted: 02 Apr 2018 08:55 AM PDT

    I am wondering there is a clever way to disable javascript on a page without a page refresh? I am posting in this sub, because I imagine it would have to be done with javascript, either by running something that causes a js error that prevents anything else from running, or something that overrides a very core level function (or many functions), such that any javascript would be routed to those functions and die there?

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

    Integrating multiple leaderboards

    Posted: 02 Apr 2018 08:50 AM PDT

    Hey all, I need assistance in developing my next website. Its primarily a fantasy sport website, I need help integrating a few leaderboards from other websites that keeps my target statistic updated in real time into one real time updated leaderboard on my website.

    So really I need a solution as to do the list of a couple things:

    1. How do I combine multiple leadersboards?

    2. How can I keep this ultimate combined leaderbaord constantly up to date with the other leaderboards?

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

    Super-powered layouts with CSS Variables + CSS Grid

    Posted: 02 Apr 2018 08:47 AM PDT

    Calling all web developers: here’s why you should be using Firefox

    Posted: 02 Apr 2018 08:38 AM PDT

    Example freelancer contract covering liability for loss of data, downtime, and security breaches?

    Posted: 02 Apr 2018 12:41 AM PDT

    Any one got a clause in their freelance contract covering these kind of issues?

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

    How would you describe a good intern ?

    Posted: 02 Apr 2018 07:56 AM PDT

    Hello, I just would like to know what you senior developers and mentors out there would describe as 'good intern behaviour', and how can an intern make the most out of their internship.

    submitted by /u/Life-in-Shambles
    [link] [comments]

    Using Webpack, LESS styles take a fraction of a second to load. Is there any solution to this?

    Posted: 02 Apr 2018 03:30 AM PDT

    I'm using HTMLWebpackPlugin to generate my html file as well as style-loader, css-loader and less-loader to load my less styles.

    For a fraction of a second I see my unstyled website before the styles are loaded. I googled around and all of the solutions were incredibly complicated. Isn't there are simple solution to this?

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

    Vue Design System

    Posted: 02 Apr 2018 06:59 AM PDT

    Website doesn't show up with www. prefix.

    Posted: 02 Apr 2018 06:52 AM PDT

    I created a website (zvaigznes.xyz) for a school project and included it in my University resume. Since I'm a bit of a perfectionist, i would like it to be as good as it can be. Unfortunatlelly I can't figure out why the website only opens when I open it without the www.

    I am using 000webhost (Free version). I can provide the settings or whatever is needed.

    Thank you!

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

    Whats the secret to landing a junior front end position?

    Posted: 02 Apr 2018 06:39 AM PDT

    I've been looking and applying every day for about 4 months now and I get interviews all the time and I have no problem passing the whiteboarding or the "talk" about my past projects and work experience. I was st a startup for 11 months before this, building components with Polymer.js for the company before they lost funding. But I am finding it impossible to land another job, I just literally never get picked amd cant figure out why. If you'd like to check out my portfolio website I will leave a link below for suggestions/tips.

    Website - http://garrettschultz.me/

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

    No comments:

    Post a Comment