The process is quite simple and can be done via GUI.
Step 1:
Click on the top right buttons and click on the WiFi option. in the dropdown select Wifi-settings.
Linux, OpenSource, Programming And Hacks
a = input("Enter 1st binary number: ") b = input("Enter 2nd binary number: ") #converting a and b into integer a = int(a,2) b = int(b,2) #adding the integers s = a + b #sonverting the sum into binary s = bin(s) print(s)
cd project_folder source env/bin/activate cd project python manage.py runserver
. script.sh
nano .bashrc
alias dj='. $HOME/script.sh'
sudo apt install gummi
sudo add-apt-repository ppa:gummi/gummi sudo apt-get update sudo apt-get install gummi
pip install Ipython
aman@vostro:~$ ipython Python 3.5.2 (default, Nov 23 2017, 16:37:01) Type 'copyright', 'credits' or 'license' for more information IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
<div class="row"> <div class="col-sm-8 col-sm-push-2"> <div style="background-color:red;color:#fff">main-content</div> </div> <div class="col-sm-2 col-sm-pull-8"> <div style="background-color:blue;color:#fff">left-sidebar</div> </div> <div class="col-sm-2"> <div style="background-color:blue;color:#fff">right-sidebar</div> </div> </div>
tmux
pip install django_compressor
INSTALLED_APPS = ( # Add compressor to the installed apps "compressor", ) COMPRESS_ENABLED = True STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', # other finders.. 'compressor.finders.CompressorFinder', ) COMPRESS_ENABLED = True #add filters COMPRESS_CSS_FILTERS = [ 'compressor.filters.cssmin.CSSMinFilter' ] COMPRESS_JS_FILTERS = [ 'compressor.filters.jsmin.JSMinFilter' ]
{% load compress %} {% compress css %} <link rel="stylesheet" href="/static/css/example.css" type="text/css"> <style>p { font-size:5px; color:green;}</style> <link rel="stylesheet" href="/static/css/example2.css" type="text/css" charset="utf-8"> {% endcompress %} {% compress js %} <script src="/static/js/example.js"></script> <script> console.log("some msg"); function sample() { console.log("some function definition") }</script> {% endcompress %}
<link rel="stylesheet" href="/static/CACHE/css/07786f58by27.css" type="text/css" /> <script type="text/javascript" src="/static/CACHE/js/70850ie6975h.js"></script>
pip install django-annoying
from django.contrib.auth.models import User from annoying.fields import AutoOneToOneField class Profile(models.Model): user = AutoOneToOneField(User, primary_key=True) name = models.CharField(max_length=255, blank=True) age = models.IntegerField(blank=True, null=True)
def saveprofile(request): u = User.objects.get(username=request.user) print(u.player) #accessing child object
mystring = "Hello World" rev = mystring[::-1] print(rev)
sudo apt-get update sudo apt-get install sqlite3 libsqlite3-dev