SameSite cookie updates by Chrome

SameSite cookie updates by Chrome

Blog, Tips
Google Said: In May 2019 Google announced that cookies that do not include the "SameSite=None" and Secure" labels will not be accessible by any third parties, in Chrome version 80 and further. The Secure label means cookies need to be set and read via HTTPS connections. Chrome SameSite cookie default is: "None" which allows third-party cookies to track users across sites. But from February 4 2020, cookies will default into "SameSite=Lax" which means cookies are only set when the domain in the URL of the browser matches the domain of the cookie. Any cookie with the "SameSite=None" label must also have a secure flag, meaning it will only be created and sent through requests made over HTTPs. Meanwhile, the “SameSite=Strict” designation restricts cross-site sharing altogether, even between different domains that…
Read More

Top 10 Most Important Things To Do After Installing WordPress

Tips, Tutorials, WordPress
What do you do after installing WordPress? This is a common question asked by beginners. In this article, we will show you the top 10 most important things you must do after installing WordPress. 1. Change The Title, Tagline, Time zone, and Favicon The first three steps can be combined into one because you can quickly make those changes in the same area of your WordPress Admin Dashboard. To change these, go to your Settings in your dashboard and choose General. Change both your site title and tagline to something that relates to your site. Now scroll down the page to update your timezone. This functionality is important to show the most accurate date on your site, and it also helps with scheduling posts. Towards the middle of the page…
Read More

6 Free Plugins to Speed Up Your WordPress Site

Tips, WordPress, wordpress plugins
Site speed plays a very important role in online business. It can increase or decrease the revenue of your online business, depending on how much time your site takes to load. There is a shocking relation between site speed and conversation rate, which is particularly true for e-commerce sites. There are a dozen of reasons to improve the site speed, but the two most important ones are search rankings and user experience. Search Rankings When Google first announced site speed in web search rankings, it played a minuscule part. But overtime it has become one of the main development factors Google takes into account for ranking websites. While page speed isn’t the only factor Google takes into account, pages that load faster and follow Google’s best practices for performance tend…
Read More

Google Blocks Thousands Of WordPress Sites Following Malware Attack

Internet and Media, News, Tips
Security firm Sucuri reports that Google has blacklisted over 11,000 malware-infected WordPress domains, and over 100,000 sites in total have been affected by a new malware campaign from SoakSoak.ru. By using a vulnerability found in the WordPress plugin RevSlider, SoakSoak modifies a file in a site’s WordPress installation and loads Javascript malware. RevSlider is often used in WordPress themes, so many site owners may not even know they’re using the plugin, let alone that they need to update it to prevent a malware attack. Moreover, it’s not a plugin that’s easily updated, as Sucuri’s Daniel Cid points out: “The biggest issue is that the RevSlider plugin is a premium plugin, it’s not something everyone can easily upgrade and that in itself becomes a disaster for website owner. Some website owners…
Read More

Simple HTML5 Charts using the Canvas element

Techniques, Tips, Tutorials
An Easy, object oriented client side graphs for designers and developers This allows you to create rich dashboards that work on all devices without compromising on maintainability or functionality of your web application. Simple and flexible HTML5 Based 6 types of Charts Easy to use HTML5 & JavaScript Charting library built on Canvas element Line Charts Bar Charts Radar Charts Pie Charts Polar Area Charts DoughNut Charts Show your statistic data in different ways. Each of them animated, fully customizable and looks great, even on retina displays. Chart.js uses the HTML5 canvas element. It supports all modern browsers, and polyfills provide support for IE7/8. Chart.js is dependency free, lightweight and offers loads of customization options. Source: http://www.jqueryrain.com/
Read More

Learn to Say “No”

Tips
Here’s a mantra to help you re-learn this important word: “It’s okay to say no.” Some people, unfortunately sometimes even our supervisors, seem to think that saying no is an excuse or some kind of cop-out. It’s funny. We spend the first two or three years of our lives being told no, and then the rest of our days, especially at work, forgetting everything we have learned about that little three-letter word. Saying the word “no” is something you have to learn again if you hope to gain a good work-life balance. They make us feel like saying no is a personal failing, or even worse a personal insult. Whenever they try that on you, just repeat the mantra: “It’s okay to say no.” It’s okay to say no when…
Read More

Process browser events on the server using AJAX

Ajax, PHP, Techniques, Tips
RSPA stands for Really Simple PHP and AJAX. It is a framework with components for processing browser events on the server using AJAX to provide interaction between the browser and the server without page reloading. It can be used for calling PHP class functions from the browser side. It provides means to manipulate JavaScript objects on the browser page. It can be used to manipulate common HTML page elements. It also provides custom page elements such as labels and auto-complete inputs. It now works with PHP 4 and PHP 5 Download files from here
Read More

Compress your HTML code using PHP

Software Development, Techniques, Tips
When we write code we love to format it nicely adding tabs, line breaks and indentations, but the end user isn’t interested in how lovely the source code is, they just want the page content, so this script strips out all the line breaks and spaces in your code and puts it on one line, compressing your code and making it faster. <?php // start output buffer ob_start('compress_html'); ?> <!-- all xhtml content here --> <?php // end output buffer and echo the page content ob_end_flush(); // this function gets rid of tabs, line breaks, and white space function compress_html($compress) { $i = array('/>[^S ]+/s','/[^S ]+</s','/(s)+/s'); $ii = array('>','<','1'); return preg_replace($i, $ii, $compress); } ?>
Read More

Use PHP to Gzip CSS files

PHP, Techniques, Tips
Minimising the time a client needs to sit tight for a site page to load is significant. Utilizing Gzip and Php we can minimise document sizes of Css records. This method is a compelling and basic path to lessen page download examine and speed your webpage that will work with generally Php establishments, even those on imparted hosting that don’t have mod_deflate turned on in their Apache setup. Just add the code below at the top of your page. You then need to change the links to point to your CSS files. if(extension_loaded('zlib')){ ob_start('ob_gzhandler'); } header ("content-type: text/css; charset: UTF-8"); header ("cache-control: must-revalidate"); $offset = 60 * 60; $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT"; header ($expire); ob_start("compress"); function compress($buffer)…
Read More

What is a Responsive Design?

Software Development, Tips, Web Design & Programming
A website that can be easily viewed and used in all types of devices or in other words "A Website That Can Responds to Various Screen Sizes". Responsive web design(Rwd) is a web outline approach pointed at making destinations to give an optimal survey experience—simple perusing and route with at least resizing, panning, and scrolling—over an extensive variety of apparatuses (from desktop Pc screens to versatile phones). A site outlined with Rwd acclimates the layout to the survey environment by utilizing liquid, extent based grids, adaptable images, and Css3 media queries, an amplification of the @media rule. The liquid lattice notion calls for page component measuring to be in relative units like rates, instead of supreme units like pixels or points. Adaptable pictures are additionally measured in relative units, to anticipate…
Read More