Now, Let us create a Django app. From your project’s root directory run this command
django-admin startapp shortenersite This will create a new folder ‘shortenersite’ inside our root directory which is actually a Django app. You can see the following files and folder inside shortenersite:
migrations - Contains database migration file.
admin.py - We will use this file to configure Django Admin settings for this app.
models.py - Contains the model (generally model.
Creating a Django project
django-admin startproject urlshortener Now you will see new directory “urlshortener”. Now our folder structure looks something like:
tutorial/ - py3env - urlshortener - urlshortener = __init__.py = settings.py = urls.py = wsgi.py = manage.py (Folder is denoted as - and file is denoted by =)
The folder “urlshortener” just inside “tutorial” is our root directory. And we will work inside this root directory from now on wards.
I finally got the time to write a Django tutorial. In this tutorial we are building URL Shortener. If you are confused with what we are building then we are building something similar to (bit.ly) or (goo.gl).
We are building the app that will make a shorter URL of a longer URL. (Example) Normally the shorter URL will be localhost:8000/4hh5kr for www.facebook.com
I am using Django 1.7.1 with Python 3.3.2+. Don’t worry if you have different version of Django because we will set up our virtual environment and install latest version of Django.
Jhandi Munda is a gambling game played mostly in South Asian countries including Nepal, India, Bangladesh and Myanmar. It is also known with a different name in different regions such as “Langur Burja”, “Jhanda Burja” and “Khor Khore” or “Khod khode”. I have developed a Mobile game based on this.
Jhandi Munda is mostly played during Hindu’s big festivals like Dussehra(Dashain) and Deepawali(Tihar). We have 6 dices with 6 faces in each die.
By default in Laravel the URL to access your site is http://example.com/public/. It is not good to keep public in URL as it makes URL ugly and longer.
So, let’s talk about the solution to remove /public/ from the URL.
Method I : Using .htaccess Create a .htaccess file your Laravel root directory if it does not exists already. (Normally it is under your public_html folder)
And add the following code to it:
Through JavaScript you can easily write the html code in html document using document.write(). Using document.write() and for loop it is easy to print the table of user input number.
First of all “prompt” box will appear and then this value will be parse to integer and the multiplication table is displayed.
The source code for JavaScript is as follows:
<script type='text/javascript'> var num = prompt("Enter Number", "0") //prompt user to enter the number var num = parseInt(num); //parse the num to number var i = 0; document.
Beautiful Social Widget is WordPress plugins which is useful to link to your social media profiles. This plugins adds the widget in your blog. This plugin supports Facebook, Twitter, Google Plus, Linked In, Pinterest, YouTube, Instagram, Tumblr, Flickr, Rss and Email Me.
Download Beautiful Social Widget.
How to use this plugins ? Well this is very easy to use. First of all install this plugins and then activate it. Then navigate to your Widgets section which is in Appearance tab.
Clean Black is a free WordPress theme. It is black and responsive theme which is easy to customize.
Tags : Responsive, 2 column, Right sidebar, Black, Clean Design.
Download: Clean Black WordPress theme
Theme Update: (22, Jan 2014) From version 1.4 you can show either full post or summary in your Home page and Archive pages.
Customizing Theme Header You can show Blog title and description in the header also you can show the image in the header(size 960*150).
I deleted the archive file which contains important images. And i thought it was gone forever, i did not had any backup too. But i was able to restore the deleted archive file using NtfsUndelete.
It was good that i had archived the photos so it was easy to restore. I was using Ubuntu and i deleted the files that was from another drive which is using Ntfs file system. So, i will explain how i was able to recover my files.
Sweet Tech is a free WordPress theme. It is clean, white, blue theme. It is extremely easy to customize and maintain your site.
Features: Two Column, Right Sidebar
Fully Responsive clean Design
Blue and white color theme
Fastest loading theme
Social Media Icons and Search box built-in
Download Sweet Tech WordPress theme.
Using Sweet Tech theme As mentioned earlier this theme is very easy to use and customize. Let’s discuss about customizing each part of the theme here.