There could be 10 different reasons to have a specific pattern of domain name considering brand value, technical architecture, personal liking, search engine optimizations, etc.
Understand, this blog is just to help you achieve the results and not about explaining each bit of code.
- This tutorial assumes that you have enough technical knowledge about setting up a website on apache.
- If you are using Linux make sure you have superuser privileges, i.e. sudo or root, on the server that is running Apache.
- It is assumed that you have Apache installed.
- You must be able to add records to the DNS that is managing your domain. If you do not already have a domain, you may purchase one from a domain registrar, and manage it with the registrar’s DNS.
- Enable Rewrite Module: In order to perform the 301 redirect, we will use the Apache mod_rewrite, or Rewrite, module. Doing so will ensure that your users can access your site with or without the www. prefix, and be redirected to the domain that you prefer.
- Created an .htaccess file on the web server root folder.
Apache htaccess configurations to redirect from www to non-www and vice-versa with https options on/off.
If you are reading this post, it means you are technical enough to understand about this topic. So let me quickly jump to specific solutions to different requirements:
Condition 1: To get www without https
- http://example.com ⇨ http://www.example.com
- https://example.com ⇨ http://www.example.com
- https://www.example.com ⇨ http://www.example.com
Continue reading Configuring redirections with apache htaccess for www, non-www, http and https | All patterns
World knows how to be cruel and becomes more cruel when you have no answers in adverse situations. For product companies, this is no myth. You should consider this article as a guide for startup companies running internet business who face a lot of post launch challenges due to inefficient server infrastructure plan.
NOTE: This article does not belong to big data administrators and developers who are working with distributed systems, Hadoop, Hbase or other such technologies.
Businesses run with high inspirations and on huge costs. Even the smaller setups need to maintain a lot of trust and breakthrough service so that customers can be pleased. When a business is starting on pre-defined rules everything goes smoothly as planned. However one’s the business multiplies or let’s say the traffic on website or application increases, uncertainties creates doom days for stakeholders.
If you are reading this article I assume you to be a business owner or a product manager or a product developer who knows how an internet business works and the meaning of an internet product.
Continue reading Post Launch Challenges: A guide for startup companies to minimize risk with server infrastructure plan
Setting up environment for God sake
Guys, I will be blunt. I am not teaching 100s of available ways to install Python, Django and Cassandra and to develop applications around it. My development environment is just defined below and everything is practiced around it. Because there are many ways to do things using these languages I have chosen the favorites that made me think is good for beginners to start with.
This content has been updated and tested with the versions defined above. I have been periodically updating the content to match the pace of new releases.
- OS: UBUNTU 14.+ or 15.+
- Python: 2.7
- Level: Beginners Guide
- Type: Getting Started
- IDE: Brackets 1.5 (Experimenting with this one these days)
- Environment: VirtualEnv 13.1.2
- Framework: Django 1.8.6
Continue reading Setting up Python framework Django and no-sql database Cassandra for web development – Step by Step Tutorial
There are plenty of Python libraries who really counts in projects and dramatically help-out programmers to reach a standard maturity level.
The list below is with my over all experience with python. I fond these 50 libraries to be basic for a programmer to use and build efficient applications. Many of these are now industry standards, and others are some nice geek stuffs. Just explore all of these and I am sure if you have these on your tips than you are among the best developers out there. And yeah you are fabulously costly priced 😀
Continue reading 50 Python Libraries and Add-ons programmers cannot live without
Ubuntu is beautiful. Too sexy to use with full power of GUI and terminal. I am a person who drives from Windows to Linux and the experience with Ubuntu is fabulous.
I have a checklist of 60 such applications that I always need to have o my system without fail. There are kind of my heart packages, and I have finally made my own UBUNTU custom disc which installs all these packages once for all together 🙂
Programming and Development Environment
- Apache, PHP, Mysql, Python, PIP, SetupTools, Django, VirtualEnv, Node.js, hadoop, mongodb
- Ubuntu SDK
Continue reading 60 Apps and things my Ubuntu system must have
Here we will see some known and easy way of computing different mathematical and sequential things.
NOTE: This post is in continuation to the PART 1, however its not necessary to refer part I and you could take it as an independent post also.
Calculate the average of a series
# For an arbitrary sequence
def average(seq, total=0.0):
num = 0
for item in seq:
total += item
num += 1
return total / num
# For a sequence type such as a list or a tuple
return float(sum(seq)) / len(seq)
Continue reading Python with Mathematics and Sequences – PART 2 & tricky cool Integer calculations
Sequence is a particular order in which related things follow each other. Its fun and its very intuitive and so called logical. So lets start.
NOTE: Here we are not going to discuss what are different types of sequences are. We will see how we can achieve different sequences using Python.
In a Geometric Sequence each term is found by multiplying the previous term by a constant.
2, 4, 8, 16, 32, 64, 128, 256, …
This sequence has a factor of 2 between each number. Each term (except the first term) is found by multiplying the previous term by 2.
Continue reading Python with Mathematics and Sequences – PART 1
NOTE: This part is independent and doesn’t require PART-1 to be referred compulsorily, but its advisable 🙂
Slicing in Python is a mechanism to select a range of items from Sequence types like strings, list, tuple, etc.
>>> L = range(10)
[0, 2, 4, 6, 8]
mylist[::-1] # will reverse a list
# Reverse a string
>>> S = 'Abhilash'
Continue reading Guidelines for young python developers – PART 2 | Fun with happy coding
There are many things that we could consider under this subject. My motto is to make you aware with some of the important features, methods and pythonic stuff that you could refer from here and then do more Google for advanced learning. I will just give you a start.
NOTE: I consider you to be a Python developer. If you are just starting with Python, then I guess this post will become confusing for you. You could go through for quick reference on what to read next when you are done with your first Python tutorial.
Python is cool. Its trending and its obviously self-intuitive. Learning curve with python is awesome.
Continue reading Guidelines for young python developers – PART 1 | Things you should know being a programmer
Security is more often an artist job than engineering. Its a vital organism for an ethical growth of a responsible application.
The information provided here will be focused towards web based applications; however, some of the concepts can be universally applied to all application development platforms.
While there are 100s of articles and discussion about securing a website and developing a safe authentication system, there are less of synchronization from topic to implementation.
My motto is to provide a pin point to help you start researching and blending into this subject. Note, this blog doesn’t covers learning programming languages, it gives an overview and basically some ideologies on security precautions.
Continue reading Website security and authentication – Things every developer should know (An overview)