• Breaking News

    Thursday, February 1, 2018

    Google Chrome to Feature Built-In Image Lazy Loading web developers

    Google Chrome to Feature Built-In Image Lazy Loading web developers


    Google Chrome to Feature Built-In Image Lazy Loading

    Posted: 01 Feb 2018 06:35 AM PST

    A guide to create extra small JS libraries

    Posted: 01 Feb 2018 07:21 AM PST

    In a single page application, when sign up and agree to Terms and Conditions by ticking checkbox. Is it legally acceptable to check this in frontend only or does this value have to be sent to backend along with the signup details?

    Posted: 01 Feb 2018 10:24 AM PST

    To clarify:

    • User enter signup page and fills in username, password.
    • If user has not ticked the Terms and Conditions checkbox the submit button is disabled.
    • User ticks checkbox and submit button is enabled.
    • User clicks submit.
    • In the request only username and password is sent.

    Would this hold legally? Could user claim he never accepted terms and conditions since it was not validated in the backend?

    My old buddy google failed me this time, he kept ramble about browsewrap vs clickwrap.

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

    Diving into decoupled Drupal 7 with React and Redux

    Posted: 01 Feb 2018 02:54 PM PST

    Layout with crossed sections made with CSS Grid

    Posted: 01 Feb 2018 04:24 AM PST

    What Do You Do For Logos ?

    Posted: 01 Feb 2018 02:38 PM PST

    I am curious to know what those of you who freelance do for logo design. I am interested in freelance web development and know enough html/css to start building websites but do not have any artistic talent. If you build websites for local businesses do they typically provide you with a logo ? At the rates I'll be charging it won't really be feasible to spend a lot of time on design or outsource the logos to any decent designer, whose logo fees alone will probably be more than I'll charge for the entire site.

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

    Stress Testing React Easy State: The Power of ES6 Proxies

    Posted: 01 Feb 2018 08:36 AM PST

    Apache VirtualHosts & External Connections

    Posted: 01 Feb 2018 02:27 PM PST

    How do I properly configure Apache and/or Apache VirtualHost containers to allow me to browse between two distinct directories inside /var/www/html?

    I have been working to learn Apache server configuration using PluralSight and have a question for any merciful Apache folks here.

    (...the course discussion board has been idle for over a year now, so I'm hoping I might find some more responsive input here.)

    I have 2 directories in [/var/www/html].

    /var/www/html/east

    /var/www/html/west

    Each directory has an [index.html] file with a very simple "Welcome to our Library" home page.

    I've added the following to [/etc/httpd/conf/http.conf]

    NameVirtualHost *:80 <VirtualHost *:80> ServerName east.example.org DocumentRoot /var/www/html/east </VirtualHost> <VirtualHost *:80> ServerName west.example.org DocumentRoot /var/www/html/west </VirtualHost> 

    I've added the following to [/etc/hosts]

    127.0.0.1 east.example.org 127.0.0.1 west.example.org 

    The good news is that when I use a browser native to the web server (ex: http://east.example.org <or> http://west.example.org) I get a perfect response and display of the correct index.html.

    However when I attempt to browse from an external machine by IP address (ex: http://10.60.140.123) I am only returning the page for http://east.example.org.

    I don't understand how Apache is determining which directory to default to and I don't understand how to request the west directory and/or configure the server to provide the west directory to a client request.

    All input is appreciated. Thank you

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

    Looking for a Team

    Posted: 01 Feb 2018 11:50 AM PST

    Hello, My name is Conner, I am a front-end web developer and am looking for a team of people to join. I have worked with other group before such as Psychic Studios and some programming related forums. I am looking for work to keep myself busy and help to better my skills. I am currently attending college and majoring in Computer Science. I hope that someone can take the time to lend me a hand and invite me to a group or give me something to do.

    Thanks, Conner.

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

    Need some advice regarding Laravel and server usage

    Posted: 01 Feb 2018 08:14 AM PST

    So I run an online gaming website which was built using Laravel: https://egn-gaming.com/

    I'm currently with Digital Pacific and the plan I'm on is a VPS with 4GB RAM and 4v CPU. I'm running Laravel version 5.4, PHP 7 and the latest version of MariaDB.

    The site is relatively fast, however load times increase drastically when multiple users are accessing the site, to a point where you're waiting 5-8 seconds for a page to load.

    Most of the content that is being served on the site is dynamic, user generated content that's coming from the database, so naturally there are a bunch of SQL calls being made on every page.

    At 40+ concurrent users (via Google Analytics) my server load average jumps up to around 5.0-6.0, while my memory usage hovers between 3.2-3.5GB. At 60-70+ concurrent users it will jump up to around 10.0+ load average and 3.5GB memory, which is when the site begins to hang and become too slow to use. I use htop to get these stats.

    I've reduced the amount of SQL queries being made to the database, which has definitely helped (it stopped my site from crashing under heavy load), however it's still not good enough.

    I understand that it all depends on the content you're serving, so I'll let you guys know roughly what I'm working with. Using Laravel Debugbar I can see that most pages tend to load in .5 - 1.5 seconds. As for SQL calls, most pages are roughly 30-50 calls, with a few here and there that exceed 50 calls.

    I can provide more details if needed.

    I now have to upgrade to a managed dedicated server, which will cost me around $300 AUD extra per month. I'm happy to pay for that if it's going to solve my issue, but I'm just wondering if it's normal for me to be upgrading to a dedicated server this early, when I'm barely hitting over 100 consecutive users.

    The reason I'm annoyed about this is because I actually used to run an older site, which was a bare bone PHP website that wasn't built with any frameworks: http://www.ausfifa.com

    On my old site I could reach 150+ concurrent users and the site wouldn't slow down at all on $30 per month shared hosting.

    I've gone from paying $30 a month and being able to handle 150+ concurrent users on a bare bones PHP website to having to fork out $450 a month to be able to handle 100+ users on Laravel. It sounds ridiculous when you think about it like that.

    I will be making an effort to optimize the site as much as possible, but if I'm to expect 150+ users to eventually be visiting my site, I just think that any optimizations wont be good enough as long as I'm using Laravel.

    My question is, is it normal for Laravel to be using up this many resources? Is a dynamic, database driven Laravel application simply too heavy for a VPS? Or is my site simply not optimized enough?

    TL;DR: Is it normal for me to be forking out $450 AUD a month for a dedicated server just for my Laravel application to be able to handle 100+ concurrent users? Or is my site poorly optimized?

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

    How do I build app-like sidebars/drawers?

    Posted: 01 Feb 2018 10:53 AM PST

    Right now i'm using Hammer.js and it is good for opening and closing the sidebar. However, native app implementations of the touch and drag allow the user to actually drag and have more control.

    Currently, if i detect a swipe right I open the sidebar completely, and if i detect a swipe left I close the sidebar completely. I'm looking for a more native, natural approach. Does anyone have experience with this?

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

    Anyone else having issues with the chrome console sometimes not loading global vars?

    Posted: 01 Feb 2018 08:59 AM PST

    Pretty much the title. While working on my comany's Angular 1.x app, if I have the chrome console open while reloading the page my global vars are not accessible from the console. The application loads correctly, so the vars are certainly there, they just aren't accessible from the console. Closing the console and reopening fixes the issue, but that's a pretty big pain when I'm trying to get into a flow. Did a quick google/stackoverflow search and didn't see anything, so I figured I'd ask here.

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

    How do you deal with misunderstandings with clients?

    Posted: 01 Feb 2018 04:08 PM PST

    What do you do if a client wants you to build a feature but doesn't explain it well and then is unhappy about the feature? Do you charge them to fix it? I was told to build something and it was signed off on and now it's not what the client wanted.

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

    Building a Full-Text Search App Using Docker and Elasticsearch

    Posted: 01 Feb 2018 08:52 AM PST

    Why is there need for different protocols in application layer of Network programming?

    Posted: 01 Feb 2018 02:42 PM PST

    0 down vote favorite I wonder what are the needs for different protocols like HTTP, FTP, SMTP, etc in the application layer since basically, all we are doing is transferring or receiving files from client to server, client - client, etc. Why can't we just use HTTP instead of SMTP to transfer a file to the receiver?

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

    A Good Example of Cross-Site Scripting Hack

    Posted: 01 Feb 2018 10:32 AM PST

    [Question] How to restrict access to a PHP file?

    Posted: 01 Feb 2018 02:16 PM PST

    Hi,

    I have a small application that utilizes vanilla JavaScript, HTML, CSS, and PHP. I have to submit the data via a form submission on the HTML file.

    I currently have sensitive data that I need to request from my PHP file and then load on a form submission.

    So my idea was to request from a JS function to the PHP file and get the necessary data. This way it makes it harder for screen scrapers to get my sensitive data and hammer away at my API end points etc...

    The issue though is that if someone were to use the dev tools to view the network tab they could simply go directly to my php script and get that data even easier than if they were just scraping my HTML.

    Anyone else ever run into a similar scenario? I'm at a loss for ideas.

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

    Any UK devs? I'm trying to format a UK telephone number, and there seems like so may different ways to display them.

    Posted: 01 Feb 2018 01:38 PM PST

    I'm wondering how people handle it in the UK. I see several different pattern types.

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

    What clause(s) should every web developer include in his or her contract?

    Posted: 01 Feb 2018 01:13 PM PST

    Laptop Advice

    Posted: 01 Feb 2018 01:13 PM PST

    Hey All,

    So I've been doing development professionally for about 8 years and web development for the last 3. Recently my company had a merger and we'll just say that mergers suck. Over the last 3 years I've been technically a "Full Stack" developer but really just a beginner at everything and master at nothing so I want to start doing some personal projects on my own to really hone my craft at web development. Currently I have about a 3 year old Mac pro that I have been using but I managed to spill something on it so am in need of a new PC. I did decide to go back to windows as I use it more frequently for work anyways and was wondering if you guys could lend a helping hand or point me to the right sub-reddit.

    I am basically planning on this being my workhorse with also the ability to play some games at reasonable quality. I just don't know whats the best brand and how much I really should invest in a laptop that will last me a few years.

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

    New Font Awesome Gallery

    Posted: 01 Feb 2018 12:59 PM PST

    Google Analytics setup for Webpage hosted on Heroku

    Posted: 01 Feb 2018 08:55 AM PST

    Hi everyone. I recently posted this on Stack Overflow and was told this was not a programming question and was directed to webapps on stackexchange. However, the amount of users there is significantly lower and I've yet to receive a response, so I decided to post it here hoping someone could help me out with this.

    Recently I received a notification from Google analytics regarding "Redundant host names". The 2 redundant hostnames are www.hostname.com and hostname.com

    The website url for my google analytics has been set as appname.herokuapp.com. So my first question is, is this the correct URL to be putting?

    With regards to multiple domain "issue", the only relevant post I have found is this. However, the analytics link for that answer is outdated. I'm currently using the gtag version for google analytics, and i'm not sure if this is the correct thing to be looking at.

    Lastly, it seems like to get rid of the redundant host names issue, i have 3 options:

    1. Tracking across multiple domains (according to this answer)
    2. Setting up filters on google analytics (as stated here). The thing with this is I am unsure with my analytics URL as appname.herokuapp.com whether it will work?
    3. Redirect my root domain to the wwww one. Similar to point 2, i'm uncertain whether it will work, since my analytics url is my heroku one.

    Could anyone point me in the right direction?

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

    Looking for developers

    Posted: 01 Feb 2018 12:20 PM PST

    Collection of organisations and standards relating to Web/NodeJS/Javascript. Any i've missed?

    Posted: 01 Feb 2018 07:42 AM PST

    No comments:

    Post a Comment