The post Website Design Company in Bangalore | StudyObject appeared first on StudyObject.
]]>We have a team of experts working on end to end solution . We provide Linux based hosting for our clients at most affordable prices. Our web Design workflow is simple and scalable. We use PHP & mysql for all the projects.
Following are our free offerings
1.Free theme*
2.Free e-commerce payment setup
3.6 month free support
Please talk to us
WhatsApp us or give a call at +919916957797 or + 917892694513
The post Website Design Company in Bangalore | StudyObject appeared first on StudyObject.
]]>The post How to Do Email Marketing Free of Cost | StudyObject appeared first on StudyObject.
]]>Email marketing has been most effective marketing outreach as it allows to send email directly to customers with specialised offers. Also, unlike other ads you can track if the known recipient( the customer which you are sending email to) actually have clicked and landed on the website or not. In email marketing you must have email ids of the potential customers.
Let’s discuss the most interesting part! In WordPress there are so many plugins offering email marketing to any no of subscribers, but this comes with huge cost associated with it. It is not possible for a startup to spend this much amount on email.
We will discuss about how can you avoid these expensive plugins until you have deep pockets.
Download any free email marketing plugin which supports multiple email Gateways. You can configure this email marketing plugin with Email gateways like SMTP(check with your host provider), Sparkpost(0.85 cent per thousand), sendgrid, postmark, mailgun or elastic email.
I would suggest to use SMTP gateway , as it comes with Host and it is free of cost. All other email gateway providers except SMTP are chargeable but still these gateways costs less than expensive email marketing plugins.
The only challenge with SMTP is that if it is not configured properly, most of your emails may land into the spam folder. So take extra precautions while configuring SMTP with email plugin.
Google Email ads are good to use as it gives you plenty of customisation options. Google Email ads are chargeable.
Which Email Marketing techniques/plugins/gateways you are using ! Share your thoughts!
If you are looking to set up Email Server for sending unlimited emails , Please reach us at [email protected]
Author: Rajnish K
About Author :
Rajnishk is R&D Expert ,passionate for Web Stack & an Entrepreneur . He can be reached at [email protected]
The post How to Do Email Marketing Free of Cost | StudyObject appeared first on StudyObject.
]]>The post Have you met this Worker, It performs! | StudyObject appeared first on StudyObject.
]]>We are going to discuss PHP MPM Worker which gives a big performance boost to the user requests while doing the scaling. It is gold when it comes to supporting huge web traffic. We will dig into Apache MPM performance side !
Apache has two types of MPM
Server version: Apache/2.4.43 (cPanel)
Server built: May 5 2020 18:56:17
Server's Module Magic Number: 20120211:92
Server loaded: APR 1.7.0, APR-UTIL 1.6.1
Compiled using: APR 1.7.0, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
httpd -t -D DUMP_MODULES | grep mpm
mpm_worker_module (shared) //if loaded module shows worker then it is MPM worker type
We will do a quick summary of apache MPM prefork, it implements non threaded and preforking web server. Apache maintains a directive named MaxRequestWorkers in its configuration which defines the Maximum number of connections that will be processed simultaneously. We suggest to choose this value based on RAM size.
Apache httpd always tries to maintain several spare or idle server processes, which stand ready to serve incoming requests. In this way, clients do not need to wait for a new child processes to be forked before their requests can be served.
Let’s discuss how exactly Apache MPM prefork uses few directives to process the requests. Following directives are used to control the request. These are configurable, I am keeping some default values to explain.
There is difference in meaning of few directives when Apache MPM worker is in use.
You can compare serverlimit with no of cores, so lets say your CPU has 4 cores then Ideally you should set serverlimit as 4.
You may try to set serverlimit as 8 if 4 core supports hyper threading(Meaning CPU is 4 core/8 threads)
Try above combinations and share your experience in comment section. Apache MPM Worker makes use of precious CPU better than prefork.
Author: Rajnish K
About Author :
Rajnishk is R&D Expert ,passionate for Web Stack & an Entrepreneur . He can be reached at info@studyobject.com
The post Have you met this Worker, It performs! | StudyObject appeared first on StudyObject.
]]>The post Do you need cron? | StudyObject appeared first on StudyObject.
]]>WordPress cron is a mechanism defined to trigger a scheduled event on every page load. On every page load (Page load happens when anyone visits your website) wordpress cron, which is defined in wp-cron.php file checks the list of scheduled tasks which needs to run.
We will discuss today on the Linux cron job versus WordPress con job and which one is better and how to schedule wordpress cron to optimise the use of expensive resources like CPU and RAM.
There is a catch here, with the Linux scheduler, if the time passes and the task did not run, it will not be re-attempted if Linux scheduler is not scheduled to run with an interval. So make sure the Linux scheduler executes the cron command on an interval. Usually it makes sense to maintain a small regular interval .
Set up the linux cron job for wordpress every five minute.
Add following in wp-config.php in public_html folder
define(‘DISABLE_WP_CRON’, true);
2. Add below command and schedule it to run at a regular interval.
Assuming xyz is your website.
You can set up command via cron job tool in your account using either of below mentioned commands.
or
Author: Rajnish K
About Author :
Rajnishk is a Serial Entrepreneur, R&D Expert and is passionate for Full Stack. He can be reached at [email protected]
The post Do you need cron? | StudyObject appeared first on StudyObject.
]]>The post Database tricks which will blow your mind ! | StudyObject appeared first on StudyObject.
]]>In one of the articles I mentioned about the memory optimisation for WordPress to handle high traffic. We will continue to mention many steps to use the hosting resources optimally so that maximum no of users can be supported by a website.
Today we will discuss about mysql configurations which limits the no of concurrent users on your website and how can we change those to allow many more concurrent users with limited hardware resource.
We will also look at why do we get “too many connection error” on a website when there is a sudden surge in traffic. This is seen because all connections between mysql daemon is occupied by users and mysql daemon can not service any further connection request.
The no of connections to mysql is limited by max_connections global variable. The default value you can display by executing below command in mysql command line or via phyMyAdmin client. You can also use mysql terminal. I am using phpMyadmin. The default value of max_connection is set to 150.
The Actual allowed connection is max_connections+1 , so a total of 151 connections is allowed with mysql. The extra connection is reserved for user with connection_admin privilege. The reason why one extra connection has been provided is to debug the issues by admin even if max no of connection is under use by unprivileged users.
Most Database connections are open and closed in fraction of seconds. According to data provided by hosting provider , the maximum no of users which can be supported on say 25 connections limits(max_connections) can be around 500. So with 150 default max_connections total no users, which can be supported can be benchmarked at 3000.
Usually most of the website traffic falls under 10000 concurrent users. We recommend to set the max_connections value at 350 so at least it can cater to 7000 users concurrently.
Please use following command to set the max_connections
This change will not persist if mysqld is killed or the system is rebooted. You must update it in the /etc/my.cnf file if you have CentOS. On Some other operating systems the config might be in mysqld.conf.
Setting max_connections to higher value makes sure that the database can handle those many concurrent users. There are other factors like Bandwidth which should also be taken into account while calculating the overall number of users a site can support.
You can check no of connections with mysql db with following command
netstat | grep “mysql” | wc -l
We will be publishing another series where we will discuss few more ways to optimise the mysql database.
Author: Rajnish K
About Author :
Rajnishk is a Serial Entrepreneur, R&D Expert and is passionate for Web Stack. He can be reached at [email protected]
The post Database tricks which will blow your mind ! | StudyObject appeared first on StudyObject.
]]>The post How to Optimise WordPress for High Traffic | StudyObject appeared first on StudyObject.
]]>While working on WordPress over a decade, we always wondered if a WordPress site can handle huge traffic. The answer is yes. WordPress is built on mysql and PHP. WordPress has done huge improvement over time.
We will discuss few important steps to optimise your WordPress site to handle huge traffic.
WP_MEMORY_LIMIT allows to specify the amount of memory that can be consumed by a single PHP script. This setting also needs to be changed in the event you receive a message such as “Allowed memory size of xyz bytes exhausted”.
WP_MEMORY_LIMIT is defined in wp-config.php and The default value of WP_MEMORY_LIMIT is 40MB.
define( 'WP_MEMORY_LIMIT', '40M' );
WP_MEMORY_LIMIT variable limits the usage of memory (RAM) by a single PHP script to 40MB.
Let’s say your WordPress website has multiple plugins. Each plugin needs to run to provide different features. With the WordPress default setting each PHP script (theme, plugin etc) can get a maximum of 40 MB of memory to run. Many plugins might not be able to run with 40 MB memory limitation. Heavy plugins like woocommerce needs minimum of 128MB of memory to run. Check woocommerce memory req here.
Change the value of WP_MEMORY_LIMIT to higher value depending on the plugin/theme requirement.I am changing as per woocommerce memory requirement.
define( 'WP_MEMORY_LIMIT', '128M' );
After update, 128MB is the maximum memory which can be used by any of plugins/ theme.
Does it mean that WP_MEMORY_LIMIT value should be very high like 1024 MB? The Answer is no.
Because it will allow each plugin/theme to use 1024 MB of RAM. Poorly optimised plugin/theme can use more memory and exhaust the ram.
It is advisable to keep the value of WP_MEMORY_LIMIT to as low as possible.
The best approach is to keep it to a value required by a plugin which needs highest memory.
The updated value will not take effect if php memory setting is not updated.
memory_limit = 128M ;
php_value memory_limit 128M
WordPress has provided another variable WP_MAX_MEMORY_LIMIT in wp-config.php for memory optimisation. WP_MAX_MEMORY_LIMIT is mainly used for admin activity in the backend which is not that concurrent in nature.
INTERESTING FACT
You must set WP_MEMORY_LIMIT for applying memory restriction on each php script so that the WordPress website does not face memory exhaustion even if many concurrent front end users are accessing the website. If any front end activity takes place which causes a plugin and theme to use more memory than WP_MEMORY_LIMIT , then WordPress uses WP_MAX_MEMORY_LIMIT to redefine the memory restriction.
The WP_MEMORY_LIMIT defines the default limit set mainly for front-end task initiated by visitors of the WordPress website, but it can also be raised up to WP_MAX_MEMORY_LIMIT for high end task executed in the backend due to the front-end visitor or for any backend admin activity.
What is your thought, we will love to hear in comment section.
We recommend a site audit . For more optimisations , Give it a Read Here.
Author: Rajnish K
About Author :
Rajnishk is a Serial Entrepreneur, R&D Expert and is passionate for Web Stack. He can be reached at [email protected]
The post How to Optimise WordPress for High Traffic | StudyObject appeared first on StudyObject.
]]>The post How much Traffic can a WordPress Site handle ? | StudyObject appeared first on StudyObject.
]]>I have been a big wordpress fan and fell in love with this CMS as soon as i started using it a decade back. I have seen wordpress growth since the time it was a pure blogging platform. I must admit that with the support of biggest CMS ecosystem in the world it stands out clearly from the rest.
I have used this CMS for many of our websites and achieved amazing results . One of my wordpress site loads in 0.8 seconds. There was never a time when i felt wordpress was not robust enough as a CMS. There have been many major updates in wordpress . It is getting better everyday with new features. The best part is that any feature needed in wordpress comes as a plugin.
It becomes easier to plug or unplug the feature with plugin. One need to have clear understanding of the requirement for a website to be built in wordpress. I started digging more on the wordpress scaling part as one of my site needed to clock 10000-100000 requests per hour. I was waking up everyday with questions like whether wordpress will support this kind of traffic. I searched across Google and found mixed response. Most of people on quora suggests that wordpress is not a capable platform for scaling specially when it comes to e-commerce. Keep Reading..
I have been with wordpress for long and have not found anything that makes it difficult for wordpress to handle that kind of traffic. It is made of simple architecture with php and mysql database. Unless there is any limitation with php and mysql there can not be any limitation with wordpress. The developer of wordpress website must understand the underlying concept fully to harness it’s full capability.
If you are using it, use it well with required capacity like ram and hard disk (better use ssd) as per requirement of the website. There are so many hosting providers offering good deal with respect to storage. One need to have good experience at analysing right hosting provider.
Once you get to have good hosting provider, it is second tough task to get everything working perfectly on wordpress. I had a situation where with VPS hosting with 1000 person trying to do shopping on wordpress site , we were getting error as “error establishing database connections”. We had CDN configured but we were still getting this issue. It was a shopping website which was seeing this kind of traffic and was expected to handle even more traffic.
One thing is very clear that more server resources like RAM and Hard Disk are needed to support traffic like this. But it is always advisable to optimise web resources to handle spike in traffic.
It always helps to build your website with minimum of plugins and light theme. Wordpress site remain soft target of hackers as most of the site admins do not update their website regularly.
Updating wordpress website is again a difficult task. The new update in plugin or theme can break your website. So maintain caution and never update those on live website. One must update and test on staging site before making any change on live website.
If your website is growing and hitting traffic like 10000-100000 per hour then it needs optimization on plugins , theme and sever resources.You can also avail CDN service. It is good to place load balancer on hosting side.
One must do a site audit of a wordpress website to handle that much traffic.
I recently did a video session on handling high volume traffic on WordPress.tv and youtube channel
Supercharge your website ! Reach us for more details !
Author: Rajnish K
About Author :
Rajnishk is R&D Expert and is passionate for WordPress Stack. He can be reached at [email protected]
The post How much Traffic can a WordPress Site handle ? | StudyObject appeared first on StudyObject.
]]>The post C Interview Questions | StudyObject appeared first on StudyObject.
]]>C questions are mostly of program type so practice these questions.
#include<stdio.h>
int main()
{
char a[]=”hello”;
char *p=”hello”;
printf(“%d—%d—“,sizeof(a),
printf(“%d—%d”,sizeof(p),
return 0;
}
Output:
6—5—4—5
Pointer always returns its size with sizeof
Sizeof operator includes “null” at the end of string
#include<stdio.h>
#include<string.h>int main() {
char A[100]=”ITTINA”, temp;
int i, j = 0;printf(“nEnter the string : %s” , A);i = 0;
j = strlen(A) – 1;while (i < j) {
temp = A[i];
A[i] = A[j];
A[j] = temp;
i++;
j–;}printf(“nafter reversal: %s” , A);}
#include<stdio.h>
#include<string.h>void reverse(char* p);int main()
{char p[]=”hello”;reverse(p);printf(“%s”,p);return 0;
}
void reverse(char* p)
{
char *start = p;
char *end = p+strlen(p)-1;
char tmp;
while(end>start)
{
tmp=*end;
*end=*start;
*start=tmp;
start++;
end–;
}
}
#include<stdio.h>char * rev(char *);
int main()
{
char A[10] = “HELLO”;
printf(“%s”,A);
char *p = rev(A);
printf(“—–>%s”,p);return 0;
}char* rev(char *p)
{
static int i=0;
static char m[10];if(*p)
{
rev(p+1);
m[i++]=*p;}return m;
}
#include<stdio.h>
int main()
{
int *p=NULL;
printf( “printing p %d”,*p);
}
NULL points to 0x00 which is protected by kernal so it does nt allow it to derefence
Output:-
Segmentation fault
#include<iostream>int main()
{char *p=”HELLOn”;printf(“%s”,p);printf(p);printf(“HELLO”);}Output:-
HELLO
HELLO
HELLO
#include<stdio.h>
int main()
{
int a= 0x12345678;
char *p=(char*)&a;
printf(“%x”,*p);
if (*p==0x78)
printf(“little endian”);
}
Output:
78little endian
atoi converts string to integer value
#include <stdio.h>
int Atoi(char *mystring)
{
int result = 0;
int i;
for ( i = 0; mystring[i] != ‘�’; ++i)
{
result = result*10 + mystring[i] – ‘0’; // ‘0’ is 48 – we need to subtract 48 from each assci to get the integer
}
return result;
}
int main()
{
char mystring[] = “194567”;
int finalvalue = Atoi(mystring);
printf (“%d “, finalvalue);
return 0;
}
Output-
194567
Always remember original atoi in std lib does nt process characters like abcd and if given alongwith integer it silently ignores it
#include <stdio.h>
#include <stdlib.h> /* atoi */
int Atoi(char *mystring)
{
int result = 0;
int i;
for ( i = 0; mystring[i] != ‘�’; ++i)
{
result = result*10 + mystring[i] – ‘0’;
}
return result;
}
int main()
{
char mystring[] = “123a”;
int finalvalue = Atoi(mystring);
printf (“%dn “, finalvalue);
int at =atoi(mystring);
printf (“%d “, at);
return 0;
}
Output:-
1279
123
#include<stdio.h>
int display();
int main()
{
int (*functionPtr)(); //declaration of function pointer
functionPtr=display;
(*functionPtr)(); //making a call to function via function pointer
}
int display()
{
printf(“Function pointer
}
Output:-
Function pointer explained
The post C Interview Questions | StudyObject appeared first on StudyObject.
]]>The post Internship at Studyobject appeared first on StudyObject.
]]>Qualification Needed:-
1.Solid understanding of algorithms, operating system. Good knowledge of html, css, php, mysql .Experience in writing high quality code.
2.Proactive with eager to learn new technologies.
3.Students in 3rd year/ final year of B.TECH/ Fresh B.Tech Pass-out from Tier- 1/Tier-2 college
4.Personal Interview will be done remotely via videocall.
5.The internship period is for 3 months.
1.Internship includes real life problem solving and building blocks for career.
2.Learn from industry experts
3.Learn more in startup culture.
4.Internship Experience Certificate
Contact – [email protected]
The post Internship at Studyobject appeared first on StudyObject.
]]>