Asw connect 10

Page 1

www.atlassoftweb.com

Volume 2

Issue 2

April 2017 - June 2017


IN THIS ISSUE

1.

Editorial

2.

Depression at work is serious and you shouldn’t ignore it!

- Khushali Dutt

3.

Steve Jobs

- Tanvi Rathore

4.

Varnish Cache ACP

5.

Tips for a Successful Remarketing Campaign

6.

Most Useful Browser Add-ons & Extensions

7.

What are Custom post types and taxonomies and how to create them in WordPress.

8.

Most Useful Browser Add-ons & Extensions

9.

12 Most Effective SEO Tips for Website Optimization

10.

What Is Cron Jobs?

11.

Happy Hours @ Atlas

- Mr. Royson Rajan

- Ishan Contractorr

- Akash Khialani

- QA Team

- Kevin Dudani

- QA Team

- Trushal Prajapati

- Chirag Modi

The Editorial Team Editor In Chief

Content Editors

Proof Reader/Content Writer

Creative Designer

Royson Rajan

Bejini Sajan Edwin Raju Tanvi Rathore

Khushali Dutt

Rakesh Sathawara


EDITORIAL Message from our CEO & Co-Founder Mr. Royson Rajan This quarter has marked a number of milestone achievements and successes at Atlas Softweb, setting us firmly on our path to achieving our long-term goals. But other than that, this quarter (July-September) has also been an auspicious one for Atlas. From celebrating the independence of our great country to celebrating the pious festival of Paryushan and Onam, we have had a truly blessed time. Just like Onam marks the celebration of harvest and future prosperity with the beginning of a new harvest season, this quarter for Atlas has also been quite like it. We have celebrated our accomplishments and hard work and have also welcomed new beginnings with open arms. We have made efforts to reach out to the community and achieve a holistic growth of Atlas by venturing into different areas both technical and non-technical. In my attempt to be of service to the youth, I have started a new undertaking called Campus Freshers. Campus Freshers is a startup initiative which helps students and fresh graduates in their quest of achieving gainful employment. In this age of competition, freshers have to be vigilant and skillful in many areas. I was also invited by Nirma University to deliver a lecture on the same topic on 30th August 2017. Hopefully, this initiative will also be a successful one. I would like to end this message by congratulating all members of Atlas Softweb. As we know this year we had heavy rainfall due to which many problems were faced and many localities of the city also came to a standstill. But despite the difficulties, we have lived up to our responsibilities and expectations. Many more festivals, celebrations, accomplishments and also difficulties will come to greet us in the future, but I am firm that Atlas will continue to grow, deliver exceptional work standards, innovate and will continue to bring a positive change in the communities in which we work and live.


Depression at work is serious and you shouldn’t ignore it!

- Khushali Dutt

In a study conducted by 1to1Help.net, a professional counseling company, on ‘The Mental Health Status of Employees in Corporate India, it was found that one out of every two employees in corporate India suffers from anxiety and depression. The figures are alarming but yet nothing has quite changed about the way Indians look at Depression or how they deal with it. We have plenty of tactics and tricks to cure even a common cold. Tell a relative that you are having abdominal pain since some days and you will get a long list of probable diseases with their home remedies from the same relative who happens to be a mechanic by profession. We have “Nuska” for all kinds of physical illnesses. But, when you tell a close friend that you have been feeling low or depressed since some days, his advice will probably be, “It will pass, it’s just a phase.” In the same study conducted by 1to1Help.net, it was revealed that 55 percent workers with symptoms of depression, were going through it for over a year without doing anything about it. Good health is not just the absence of deformities or illness, but it’s the state of complete physical, emotional, mental, and social wellbeing. It’s high time that we started giving importance to mental health as a prerequisite for a happy and successful life! It is all the more important today as the cutthroat competition of today’s world, the quest for being the best, busy lifestyles and city life, is taking a huge toll on physical and mental health and wellbeing. According to WHO report, around 60 million Indians are found to be suffering from mental disorders which is more than the population of countries like South Africa as per the study in September, 2016 Depression at work is serious and it is not just a phase, and it will not pass until you take concrete steps!

According to the study of 1to1Help.net, the precipitating factors for depression among employees include: Fear of job loss, termination, disciplinary actions, and ongoing inquiries Financial concerns, huge debts Unable to meet expectations, deadlines Feelings of failure and unfairness Job dissatisfaction, unhappy with the job location (homesickness), no clear job profile (stagnation and frustration) Harassment (physical and mental) Excessive burnout, emotional exhaustion, overwork, and sleep deprivation. What can be done? How to prevent or treat Depression Recognize the signs. These signs can be low interest in working, low productivity, aloofness, frequent breakdowns, lack of motivation and more. Don’t over burden yourself. Take care of your body and mind. Devote yourself to doing something you enjoy every day. The most important in the list is accepting that you are depressed. There is nothing to be ashamed of and there are chances of being completely healthy again if the person accepts that he is ill. Once you have accepted it, reach out to friends and family and talk about what’s happening to you. Don’t be afraid to seek professional help. In India, visiting a psychiatrist is a taboo. People fear that they’ll get the tag of being “insane.” Depression is a disease and it can be cured if you seek help. You may fear that speaking about your condition will affect your job, but if you speak up you may realize that “you are not alone”. You may find many other sympathetic coworkers who are going through the same condition.


Steve Jobs - Tanvi Rathore

24 and over 100 million when 25. Forbes consider him as one of the nation's richest and youngest people to make it to the Forbes list. In 1978, with Apple growing, Steve Jobs and Steve Wozniak hired Mike Scott from National Semiconductor to serve as CEO.

My favorite things in life don't cost any money. It's really clear that the most precious resource we all have is time. A person with a clear vision, an inspiring figure, an enterpreneur, businessman, inventor, an industrial designer and a true fighter who taught the world that its never too late to attempt something new. Steve Jobs was the chairman, the Chief Eexecutive Officer(CEO) and co-founder of Apple Inc; CEO and majority shareholder of Pixar, a member of The Walt Disney Company's board of directors and founder, chairman and CEO of NeXT. Jobs was born on February 24,1955 to Joanne Carole Schieble and Syrian-born Abdulfattah Jandali who were unmarried at that time. Jandali who was teaching when Steve was born, said he had no other choice but to give their baby for adoption because his girlfriend's family objected to their relationship. Later Steve Jobs was adopted by Paul and Clara Jobs. While talking about his adoptive parents, Jobs would say, “They were my parents 1000%” and would become upset when his parents were referred as “adoptive parents.” Jandali has also stated that "I really am not his dad. Mr. and Mrs. Jobs are, as they raised him. And I don't want to take their place." The Ups and Downs in Steve Jobs’s Life In 1976, Jobs and Wozniak invented the Apple I computer. In 1977, the Apple II was introduced at West Coast Computer Faire. It was one of the most successful microcomputer products. Jobs and Apple were growing and by the age of 23, Apple was worth a million dollar in 1978, 10 million dollars when he was

In 1984, Apple introduced the Macintosh, which was based on Lisa(Local Integrated Software Architecture). Shortly after it released in 1985, Bill Gates' then-developing company, Microsoft threatened to stop developing MAC applications unless it was granted a license. Microsoft was developing its GUI(Graphical User Interface) Windows, and didn't want Apple to sue it over the similarities between Microsoft and Mac operating system. In late 80's Microsoft Windows was getting better and better and thus gaining more shares than Apple. In 1985, Steve Jobs decided to leave the company as Sculley proposed a plan which removed Steve Jobs from the Macintosh group and put him in "New Product Development". This move left Jobs powerless within Apple. And Finally on September 17, 1985, Jobs submitted his resignation letter to the Apple Board. Five additional senior employees also resigned and joined Jobs in his new venture. NeXT In 1985, NeXT was founded by Steve Jobs with $7 million. When he was running out of money, he attracted the attention of billionaire Ross Perot, who invested in the company. NeXt workstations were released in 1990 which were technologically advanced and designed for the education sector. Then second generation NeXTcube was released and soon NeXT transitioned fully to software development with the release of NeXTSTEP/Intel. In 1997, NeXT was acquired by Apple Inc and Jobs was asked to come back in the leadership role. He was the interim CEO from 1997 to 2001 and became the permanent CEO until his eventual resignation in 2011. Pixar and Disney In 1986, Steve Jobs took interest in The Graphics Group from Lucasfilm's computer graphics, where with the partnership of Disney in 1995, Toystory was produced and it took him to fame. For years, Pixar and Disney worked in collabration and gave many hit films. In 2003 and 2004, Pixar's contract with Disney ran out and finally in 2005, Disney agreed to acquire Pixar worth $7.4 billion. After this Jobs became the largest single shareholder with 7% of the company's stock.


Return to Apple Until 2001, NeXT was acquired by Apple Inc. and much of its computer technology found its way from Apple Products. But by this time Windows based PC's were owned by the vast majority of consumers. However this all changed when in 2001 Apple launched iPod, which could store thousands of songs in a small device, smaller than cd disks. This was the time when Apple was again on everyones’ lips. Within few years, Apple came up with the technology that everyone wanted to own. Apple launced Iphone in 2007, which had all the features which anyone could ever dream of, also it included the features of Ipod. This was yet another crushing victory for Steve Jobs. Over the years Iphone got better and better and now everyone knows how the company has marked its position. Family Steve Jobs was adopted in a family of an engine-room machinist Paul Jobs and his wife Clara, an accountant. Steve had a biological sister, Mona Simpson whom he met when he was 31. He got married on 18th March 1991 and had four children. Son, Reed Jobs and daughters, Lisa, Erin and Eve. Heath Issues In October 2003, Steve Jobs was diagnosed with pancreatic cancer. He resisted nine months for medical intervention. His doctors sais that if he would have gone for proper medication and went for a surgery on time, he could have recovered. He underwent surgery and it appeared to have removed his tumor completely. But in 2008 his health started detoriorating, so he took six months leave to focus on his health. In his absence, Tim Cook was working as CEO. In 2009, he went for a liver transplant in Methodist University Hospital Transplant Institute in Memphis, Tennessee. Resignation On 24 August, 2011 Steve Jobs announced his resignation, writing to board "I have always said if there ever came a day when I could no longer meet my duties and expectations as Apple's CEO, I would be the first to let you know. Unfortunately, that day has come." declaring Tim Cook as his successor. Death

Jobs died on 5th October 2011 at his home around 3p.m due to respiratory arrest. Honors and awards 1985: National Medical of Technology 1987: Jefferson Awards for Public Service 1989: Enterpreneur of the Decade by inc. Magazine. 1991: Howard Vollum Award by Reed College. 2012: Grammy Trustees Award How Steve Jobs changed the world? 1) He made PC's The initial MAC computers were called PC ’s as they were developed to be used by every individual in their homes. Although today computers are classified as PC's or MAC but they all evolved from the original PC prototype. This is the reason we should thank Steve Jobs. 2)He always loved to keep it simple. For his love of keeping things simple, easy to use; he kept only one button on the iphone. Also users began to start loving MACs more as they realized that MACs froze less, glitched less, crashed less and were easier to navigate. 3) Innovative Advertising In a famous commercial that ran during the Super Bowl, which costed Steve Jobs a lot of money and was really a risky move: an athlete runs into a room straight out of a dystopian novel and throws a hammer at a projector screen full of propaganda, and then the screen reads – On January 24, Apple Computer will introduce Macintosh and you’ll see why 1984 won’t be like ‘1984.’ Steve Jobs was known for putting a lot of resources and money in his ads, and that’s why Apple always had the best ads. 4) Motivation that the world always needs He was a great motivator. If you check his quotes, his speeches; you will definitely end up being motivated. To support my lines I would like to share a part of his speech which he delivered just a year after his initial diagonsis with pancreatic cancer. Sometimes life hits you in the head with a brick. Don’t lose faith. I’m convinced that the only thing that kept me going was that I loved what I did. You’ve got to find what you love. And that is as true for your work as it is for your lovers. Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven’t found it yet, keep looking. Don’t settle.

Reference link: https://motivationgrid.com/people-who-changed-the-world-steve-jobs https://en.wikipedia.org/wiki/Steve_Jobs


Varnish Cache ACP - Khushali Dutt

What is Varnish? Varnish Cache, also known as a caching HTTP reverse proxy is a web application accelerator. Varnish can increase a website’s speed while simultaneously reducing the load on the web server. You install it in front of any server that speaks HTTP and configure it to cache the contents. License and origin Varnish is a free software licensed under a two-clause BSD license, also known as the FreeBSD license. The project was initiated in 2005 and Varnish Cache 1.0 was released in September 2006. Pre-built packages Varnish Cache is widely available in package archives for different operating systems. Here is a list of the ones we know about: ArchLinux package and ArchLinux wiki Alpine Linux Installation on Debian and Ubuntu Installation on FreeBSD Installation on Red Hat Linux Installation on CentOs EPEL repository is necessary for installing Varnish. You can do this by running the following command: sudo yum install -y epel-release Once the installation is finished you will be able to install Varnish. sudo yum install -y varnish sudo systemctl start varnish sudo systemctl enable varnish Configure Varnish The Varnish configuration file will be located in the /etc/varnish directory in CentOS 7. By default, Varnish is listed on port 6081. You will need to change port 6081 to 80 so that the website request can access the Varnish cache first. You can do this by editing the varnish.params config file. sudo nano /etc/varnish/varnish.params How the HTTP request processes

Client

Request

Hash

Request is cacheable, look up cache entry

Hit Cache_Hit++ Retrieve data from backend

Cache entry found

MissCache_Miss++ Cache entry not found

Request is not cacheable

HitpassCache_Hitpass++ VARNISH

Deliver

Fetch


Varnish Configuration Language – VCL While most other systems use configuration directives, where you basically turn on and off lots of switches, varnish uses a domain specific language called Varnish Configuration Language, or VCL. Varnish translates this configuration into binary code which is then executed when requests arrive. The VCL files are divided into subroutines. The different subroutines are executed at different times. One is executed when we get the request, another when files are fetched from the backend server. Requests, responses and objects In VCL, there are three important data structures. The request, coming from the client, the response coming from the backend server and the object, stored in cache. In VCL you should know the following structures. req The request object. When Varnish has received the request the req object is created and populated. Most of the work you do in vcl_recv you do on or with the req object.

the backend. In this example, we’re setting the TTL variable on the object to five minutes (5m). Values can be in seconds (120s), minutes (2m) or hours (2h). Your ideal TTL may vary depending on how often the content of your site is updated, and the amount of traffic you need to handle. Pros: 1- Faster load time 2- Less bandwidth usage 3- Less stress on the server 4- User Flexibility to configure via VLC files. 5- increase conversion rates. 6- Reduce abandoned carts Cons: 1- High technical expertise required for setup. 2- Sometimes caching does not work with pages that are user specific, like user account page. 3- Cached pages do not show new changes. For that we need to configure TTL and purge cache page.

In beresp The backend response object. It contains the headers of the object coming from the backend. Most of the work you do in vcl_fetch you do on the beresp object. Obj The cached object. Mostly a read only object that resides in memory. obj.ttl is writable, the rest is read only.

ABCs of the new engagement are Achieve results, Build relationships and Cultivate well-being.

Varnish Configuration Language When you want to exclude specific parts You’ll need to override the vcl_recv subroutine in our VCL file, which is run each time Varnish receives a request, then add a conditional: sub vcl_recv { if (req.http.host == "example.com" && req.url ~ "^/admin") { return (pass); } } Configure Cache Time-to-Live (TTL) sub vcl_backend_response { set beresp.ttl = 5m; } This subroutine is called after a request is fetched from

Reference link: https://varnish-cache.org/ http://www.varnish-cache.org/docs/2.1/tutorial/vcl.html https://www.varnish-software.com/wiki/content/tutorials/varnish/vcl.html https://www.drupal.org/project/varnish https://wordpress.org/plugins/vcaching/ http://devdocs.magento.com/guides/v2.0/config-guide/varnish/config-varnish-magento.html https://www.magentocommerce.com/magento-connect/turpentine-varnish-cache.html


Tips for a Successful Remarketing Campaign

AD

Remarketing is a great way to drive those visitors to your website who may not have made an immediate purchase or inquiry. More elaborately, Remarketing is a technique of showing ads to people who have visited your website or used your mobile app. This strategy is a particularly cost-effective way to increase your sales conversions because you're reaching out to customers who have already expressed interest in your products or services.

- Akash Khialani

BUY

products or services that people have viewed on your website. Few Tips for launching a successful remarketing campaign; spread your campaign to multiple channels. Segment your remarketing lists. Make multiple ads sizes with images and copy to match. Bid more on shopping cart and conversion abandons

In the words of Jeni Garrett, Founder of The Woodhouse Day Spas, "Remarketing helps to encourage those lost conversions to come back."

Offer coupons to repeat visitors or product page viewers.

“Remarketing is so powerful because it allows marketers the opportunity to continue the conversation that otherwise may have only been a 30-second decision on the part of the consumer," said Jason Hobbs, founder of digital marketing company The Found Group.

Don't be afraid to test and fail.

When a visitor browses through the website of a small business, the initial experience may not be enough to compel him to make a purchase. Here’s when remarketing comes in and makes the difference. Remarketing is being widely used these days and now it’s even easier to set up your own remarketing campaigns by using simple-to-use third-party tools available from companies like Google. There are many strategies with different benefits available. For example, remarketing through Google AdWords shows ads to your past visitors as they browse Display Network websites and use Display Network apps. Dynamic remarketing, on the other hand, uses ads that include

Take Advantage of Broad Keywords.

When does remarketing work? You have a high value product Your product or service has a relatively long-time horizon. Remarketing does not work when these criteria are not met, and/or when your own website doesn’t generate enough traffic for Google to build a large remarketing list. That’s when you might turn to retargeting, which usually involves a broker. But, again, that really only works if you have a) a high value product and b) a long-time horizon in the purchase. Remarketing and retargeting are not for everyone but, they can be useful for some situations.

Reference link: http://jm-seotips.org/lists/remarketing/ http://www.businessnewsdaily.com/6354-digital-remarketing-tips.html


Most Useful Add-ons & Extensions (Part -2)

- Compiled by the QA Team {Keyur & Sagar}

Add-ons and Extensions are the most important part of Browsers as they add more functionality as well as some awesome features in a browser which really helps in programming, designing, debugging, and testing of any website with ease. Below are the most useful Add-ons and Extensions Page Ruler Page Ruler lets you draw out a ruler in any page and thereby display the width, height and position of it. Chrome: https://goo.gl/XoE1aY Mozilla: https://goo.gl/Dhyr26 ColorZilla With ColorZilla, you can get a color reading from any point in your browser, quickly adjust this color and paste it into another program Chrome: https://goo.gl/Z3b7cf Mozilla: https://goo.gl/R71taq IE Tab IE Tab exactly emulates IE by using the IE rendering engine directly within browser and tests your web pages with different versions of IE (IE6, IE7, IE8, or IE9). Chrome: https://goo.gl/NM7dzH Mozilla: https://goo.gl/TVsojR Spell Checker It's a tool to check spellings of words and come up with suggestions for misspelled words. Chrome: https://goo.gl/JD6XfV Mozilla: https://goo.gl/vn5dkD Grammarly Grammarly will make sure your messages, documents, and social media posts are clear, mistake-free, and impactful. Chrome: https://goo.gl/TnyZXd Mozilla: https://goo.gl/h8vtN5 Firebug Firebug provides some cool features like inspecting HTML elements with your mouse, and live editing CSS properties. Chrome: https://goo.gl/EvCEh8 Mozilla: https://goo.gl/M8Hysd Clear Cache Automatically clear your browser cache before loading a page. Chrome: https://goo.gl/qZmg9E Mozilla: https://goo.gl/vs8MXu

Resolution Test An extension for developers to test web pages in different screen resolutions, with an option to define your own resolutions Chrome: https://goo.gl/T2VVS6 Mozilla: https://goo.gl/LkUC2D Form Filler This extension is used by tester to make it easy to fill forms while testing web-pages Chrome: https://goo.gl/iZNmcy Mozilla: https://goo.gl/zUNmqD JSONView JSONView chrome extension allows you to view formatted JSON in tree view Chrome: https://goo.gl/pxLc5K Mozilla: https://goo.gl/Smv9qh iMacros Automate your web browser. Record and replay repetitious work Chrome: https://goo.gl/rLL2L3 Mozilla: https://goo.gl/n9HvW7 Copy Plain Text Copy Plain Text without any formatting Chrome: https://goo.gl/AmQEyc Mozilla: https://goo.gl/mrg1XP SQL Injection SQL Inject-Me is an Extension used to test SQL Injection vulnerabilities. Chrome: https://goo.gl/eSGkGR Mozilla: https://goo.gl/56kzLP Cross-Site Scripting XSS-Me is the Exploit-Me tool used to test reflected XSS vulnerabilities. Chrome: https://goo.gl/qbAxSV Mozilla: https://goo.gl/VqNC3V Page Speed Insights Analyze the performance of your web-pages and get specific suggestions on how to optimize them. Chrome: https://goo.gl/7mkqE4 Mozilla: https://goo.gl/1NPu55 Lorem Ipsum Generator Provides an elegant and quick way to create default text or generate Lorem Ipsum. Chrome: https://goo.gl/vWYhyF Mozilla: https://goo.gl/NPzTmm


12 Most Effective SEO Tips for Website Optimization - Trushal Prajapati

After developing a new website for a business, the common questions that online businessmen have are, “How to promote my website” or “how to conduct website marketing”. Today internet is the ultimate marketplace and it is brimming over with websites. Hence, to compete with this large number of websites and to make your website visible to consumers, website optimization is important. 1. Keyword Research (Finding Keywords & Finalization) After finalizing keywords, we need to include the keywords in domain name, title, page contents, tagline, keywords, description, , etc. 2. Linking to Internal pages Many of the content management systems automatically do this but, if we don’t have this feature, then we’ll have to link the important pages of our website with the homepage and cross link all other pages. 3. Use a Permalink Structure with keywords Some websites have permalink structure that uses numbers to identify pages. This is a bad SEO technique. Instead of numbers, we must use text in the URL. Here is an example of it.

7. Keep your website updated, very often. You need to update your blogs or articles on a weekly basis because blogs and directories make your websites rank well on search engines.

It should look more like this: https://examplesite.com/coolpage/

8. Check Website Indexing Many search engines will automatically find & index your website content but don’t count on it. We want to be sure that search engines like yahoo, Bing, google are indexing or crawling to your site, hence, self-indexing your website is important.

4. Check Your Website Speed Page Load time is veryimportant for SEO optimization, so we need to fix all errors that increase page load time.

9. Setup Header Tag We need to setup H1 to H4 tags in header tags as per the keywords targeted. It’s useful for keyword ranking.

These may include removing music players, extremely large images, and unnecessary plugins etc.

10. Make sure your content is unique and valuable Our content must be unique & valuable because google rolls out many updates for content every month so if our content is copied from other websites, then google will penalize our website.

So instead of having a page’s URL like this: https://examplesite.com/?p=12

5. Usage of keywords in mages The best usage is the inclusion of various words that reflect the site topic in the alt tag, image title and the description. Also, give an appropriate title to your file name so that it reflects your main keywords. (e.g. reading-tips.jpg instead of d4567.jpg). 6. Link with other relevant content or website link This is called outbound linking. When we include other trusted website links in our content & if people click on that link, search engines would know that you are a trusted authority on that particular topic.

11. Make Social Sharing Button We must add social sharing buttons on website for high social traffic. 12. Build High authority backlink Inbound link that come to your website are the most important SEO factor that has great impact to your website’s ranking. Picking & linking relevant websites that you’d like to receive backlink from will be a good start.


What Is Cron Jobs? - Chirag Modi

A cron job is a command for scheduling a task to be executed sometime in the future. This is normally used to schedule repetitive tasks that can be executed periodically at fixed dates, intervals or time. For example, you can set cron job to send a reminder email before expiry date or you can set it to delete some temporary file at fixed interval.

Time Intervals Cron job can be set to run at every minute, hour, day, month or any combination of these. For instance, it can be scheduled for every 5 mins, every 10 days, every quarter of month / days... you can learn more about cron at WIKI (https://en.wikipedia.org/wiki/Cron) How Do Cron Jobs Help WordPress? Normally WP-cron helps wordpress to check for updates of plugins, themes or WordPress itself. Wp-cron also helps to auto-update wordpress to the latest security patch, for auto posting your scheduled post, sending pingbacks and trackbacks. How is WP-cron different than regular cron? Wordpress has its own system for running cron jobs. But there is an important difference between regular cron and wordpress cron. In normal Cron you can specify exact date and time to execute your script and it will run at that time. For example, you can write command that I want to run X script on 30 september at 04:42:32 and your script will But wp-cron works differently WP-cron runs only when someone visits your site. When someone visits wp-cron website to check is there is any scheduled task for that time, wp-cron will see if there is any task that matches the time of site visit, if there occurs a matching task, it will execute it.


But on the other hand, there is a big problem with wp-cron, for example if nobody visits your website during that scheduled time, then your cron script will not be executed. Obviously, if your website has thousands of visitors every hour then this will not be an issue, but if there is low traffic on your website, then your cron will not be executed. For example, if you have scheduled a script which fires emails every morning at 3am and nobody visits your website during the said time then your script will not run. In addition, sometimes caches plugins, DNS issues or any other issues may hinder your WP-cron from running. Possible solution for WP-cron To avoid missing cron job, we can set default way of setting cron job in linux serve (Apache with cPanel as control panel). With setting this as cron job, you have more control on scheduling cron. Before you get into this, make sure that your hosting provider allows you to setup linux default cron jobs. Most of the linux based cpanel supports this feature these days. To setup linux cron job, first you need to disable WP-cron to execute on every page load of your website. You can disable this by adding following command in your wp-config.php file. //Disable internal Wp-Cron function define('DISABLE_WP_CRON', true); Once you disable wp-cron from above command, second step is to setup a real cron function from hosting cpanel. Enter below command in hosting cron command line. wget http://www.website.com/wp-cron.php?doing_wp_cron=1 > /dev/null 2>&1 This will execute any cron function which you have created or which comes default with wordpress. How to add wp-cron job There are two types of Cron-jobs – Recurring and one-time execute. For Recurring cron job An important thing to remember here is wp-cron runs on intervals and not on a particular time. For example, if you have set a task to start from 1pm at an interval of 5 hours, then this task first runs on 1pm and then after an interval of 5 hours.


Here is the snippet to add task for every hour. register_activation_hook(__FILE__, 'my_activation'); function my_activation() { if (! wp_next_scheduled ( 'my_hourly_event' )) { wp_schedule_event(time(), 'hourly', 'my_hourly_event'); } } add_action('my_hourly_event', 'do_this_hourly'); function do_this_hourly() { // do something every hour } In the above example wp_schedule_event takes 3 required and 1 optional parameter. 1. Timestamp (required): The ďŹ rst time you want an event to occur. 2. Recurrence (required): How often the event should occur. By default, there are 3 valid values which WordPress provides, but of-course you can create your own custom recurrence time. 1. hourly 2. twice-daily 3. daily you can learn more about this here at wordpress codex (https://codex.wordpress.org/Function_Reference/wp_schedule_event). Here is the snippet to add task for one time wp-cron job. To add a one time wp-cron job, you can use the following snippet example. unction do_this_in_an_hour() { // do something } add_action( 'my_new_event','do_this_in_an_hour' ); // put this line inside a function, // presumably in response to something the user does // otherwise it will schedule a new event on every page visit wp_schedule_single_event( time() + 3600, 'my_new_event' ); // time() + 3600 = one hour from now. Above example will run a task every one hour from current time.


Food Corner - Instant Recipe

Experience of a lifetime - Saputara Adventure Camp We always make plans of traveling somewhere with friends, but most of the times, such plans never turn into reality and we end up thinking that one day, we will definitely go. We also made one such plan of traveling to Saputara, but unlike most times, we actually went to this trip. Normally, whenever we make such plans, some or the other problem always occurs and ruins our plan entirely. This time too, the weather came to ruin it! Just two days before the trip, the weather got worse. Colleagues and family members told us that we shouldn’t go, but we knew that if we don’t go now, this trip will never happen again. So, despite the conditions, we made a choice of going to Saputara. But, this time our luck was also in our favor and the weather conditions got better on the first day of the trip. On the first day of the trip, we trekked to the Sunrise point and Echo point which was at the height of 600 meters. The view from such a height was heavenly! In the evening, we went for stream walking on the river and played with crabs. Our accommodation was really luxurious, we had set up nice tents for ourselves. The next morning, we went for mountain trekking on Governor Hill and reached a height of 1000 meters. The trek was a risky one as the path was only a few feet wide with deep gorges on both the sides. After completing trekking, we had our dinner and just when we thought that now trekking is over, we had another surprise, night trekking! So, when was the last time you used moonlight to find your way to somewhere? Yes! We did that too. We were told not to use any light source while trekking and rely only on the moonlight. We also visited many other places like Gira waterfall, Rose Garden, Step Garden, Sunset Point, and we also enjoyed boating in the Saputara lake. All the wonderful experiences that we had at Saputara Adventure camp cannot be described in words! This is a once in a lifetime experience. If you wish to spend a close bond with the nature, Saputara is one of the best places to be at.


Happy Hours @ ATLAS Atlas has been growing leaps and bounds since its inception. The organization has been developing and the growth rate has increased and we have been setting several milestones in this process of this growth and development. To further enhance this growth, we had new team members joining our Atlas Family in the last couple of months. We're delighted to welcome Khushali, Sampatlal, Nelson and Akash to the Atlas family. We wish them the best in their careers at Atlas!

Birthday Celebrations@ Atlas

The following staff members celebrated their birthday in the month of July 2017 – September 2017.

Akash, Nilesh Vaghela, Rakesh, Sweta, Thangaraja Thevar, Gajendra, Khushali, Trushal, Bejini

We wish them all a very Happy Birthday and a great year ahead!

Expert Guest Lecture by Mr. Royson Rajan @ Nirma University Mr. Royson Rajan, Founder of Atlas Softweb Pvt Ltd was invited by Nirma University to deliver an expert lecture for the students of Computer Science and Engineering on 30th August 2017. Information Technology is a wide domain that extends from a simple data operation using Computer System to a complex program that performs BIOS level operations. Hence, Freshers in the field of Information Technology often face a conflicting situation of choosing one technology to further their careers in. The expert lecture, revolved around the various technologies involved in this wide domain and the skill sets required to have a successful career in it. The aim of the expert lecture was to help students get an idea about the technical skills and expectations involved in each technology so as to enable them to choose the best one for themselves.


Happy Hours @ ATLAS Along with the Technical Skills, Mr. Royson Rajan also talked about the other skills necessary to achieve a successful professional career. These include, communication, continuous learning and more. Over all, it was a comprehensive lecture, which touched upon the current trends of the IT industry, open source technologies and tips to prepare for a successful professional career in the IT industry.

Independence Day Celebrations Values are what captures the essence of Atlas’s identity. Values, culture and ethics are deep rooted in both our professional and non-professional work. Love for our motherland and respect for our freedom fighters because of whom we are breathing the air of freedom, are also important values for us. To express this love and gratitude, we celebrated Independence Day at Atlas with great zeal and happiness. We celebrated the day by dressing up in colours Orange, white or green, the tricolours of our national flag and played patriotic songs throughout the day to remember our freedom fighters and celebrate the spirit of freedom. Mr. Royson Rajan – CEO of Atlas addressed the members and talked about the deep philosophical values that each colour in our national flag resonates, Orange for Progress, White for Peace and Green for Prosperity; after which we all sang the National Anthem. We captured the happiness and enthusiasm of that day by having a small photo session, where some nice pictures of members wearing the tri-colours were captured. Everyone celebrated and enjoyed the day in the true sense of freedom.


Happy Hours @ ATLAS

Employee of the Week: Atlas SoftWeb has recognized the following employees as the “EOW” for July 2017 – September 2017 for their hard work, commitment and excellent performance.

Mahesh, Ajay, Rakesh, Sampat, Hardik, Rajesh, Raja, Keyur, Chirag

Check your IQ? Quiz Time!

! e m i T Quiz

?

?

IQ?

1. Who is the architect behind Apple's spaceship HeadQuarters?

? Q I r u o y Check

2. Who is Jeff Bezos?

Quiz ?

!

ime T z i u Q

?

3. What is the name of Facebook CEO Mark Zuckerberg's second child?

?

4. Who is the parent company of Google?

5. Which one programming language is exclusively used for artificial intelligence?


Happy Hours @ ATLAS

CROSSWORD

6

Across

7

1.

First Indian movie to be released through internet was?

2. 1

Private browsing mode in Google Chrome is called?

8 2

3.

Letter “E” in 4G LTE stands for?

4.

What material was the cheapest Google Virtual Reality headset made up of?

9

5.

What is the name of Microsoft’s Cloud Computing platform?

3

Downwards 10

6.

Now known as Snapchat, it was launched by the name?

4

7.

The famous Game Boy (hand held video game) belongs to which gaming company?

11 5

8.

The latest version of Mac OS is called?

9.

The smallest unit of data in a computer is called?

10. Orkut.com is now owned by? 11. The first version of Android which was launched in 2009 was called?

Please send in your answers for the CROSSWORD to hrdept@atlassoftweb.com by July 31st, 2017.


www.atlassoftweb.com

For private circulation only. This newsletter is meant for sole use by the recipient and is not for circulation. For more details contact “Atlas SoftWeb Pvt Ltd, Ahmedabad." Email: admin@atlassoftweb.com


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.