What RAM means to the phone and myths about it.

Everybody is desperate to buy a phone with preferably more RAM. There were days when 256 MB of RAM was more than enough for a phone to work well. But, now even 1 GB can lag the hell out of any phone. Why is that? Well, the answer is simple. As time passed on, the apps developed and got bigger and bigger, they went on adding features and the size of applications got bigger.

It is known fact that when an application is requested to run, first it is transferred to the RAM and only then everything else takes place (because, RAM is fastest place in computation to access and dump the data required in operations). But what if the memory is not big enough?  Then the memory takes in app's files in part by parts and load them as per requirement, but this transfer needs the time, this is when you experience the lags. Had the RAM been more in size, the required files would've already been loaded into the Memory and everything would run smoothly.

Well alright, now the question is how RAM helps in multitasking ?

To answer that, consider this scenario, you are running multiple applications at a time, when you switch between these apps the one which goes into the background enters  into suspended mode. When in suspended mode, the app data has to be saved somewhere, because when you go back to app you don't want the app to be restarted from scratch. So, it stores all its data some place. If this place is phone internal storage, then you know when you return to this app it has to read the complete data from the storage and transfer itself to RAM before it becomes functional, this takes a lot of time, this is where you see the switching lags.

And there are also scenarios where you see apps being shutdown but not resumed. Yes, that happens when you have used up all the RAM and there is no more memory to store data, in that case OS chooses to remove that app from memory and execution line, completely shut it off to run current required apps with higher priority or recent use. And some are resumed but they take time to load. And also there is limit to use the hard disk space as storage for files from RAM.

Another question, can applications still lag even after having big enough RAM?

Yes, totally. It must be seen that those files in memory must be handled real well and done with right timing. So, if the processor isn't powerful enough and Memory management isn't well designed then the apps should lag.

So, what do we learn from this? We learn that memory size doesn't always matters, the bigger the better. But, it also should is understood that the excess memory that isn't handled well by CPU is just a waste. And also the Memory Management factor affects the performance very much.

Ok, Now the serious question ! Does keeping many apps running in RAM or MEMORY cause battery drain?

Well, to be specific, Yes and No.

How yes and how no? Well if you run applications that are active all the timing computing something and always connected to internet, keeping radios active. Then hell yeah, they gonna drain battery.

But if there are apps that aren't CPU hungry and doesn't utilize internet that much, then there is no or very little difference with battery usage.

And powering 100 MB RAM, 1.1 GB RAM or all the RAM module all cost the same amount of charge as rated by the manufacturer. So, it doesn't matter how much is used or free, it uses same power. It is all dependent on kind of apps it has in it.

What is this theory about Don't close apps for the sake of decreasing RAM usage, it will cause battery drain?

We know if apps are already in the RAM then there is no extra procedure to perform to put them in action. And also we learn't that apps don't drain battery if they are in RAM unless they keep working in background.

Now, it is to be understood that if we transfer files between RAM and storage there are some calculations to be done. This calculations cost CPU cycles, hence also charge of the battery. So, whenever you close an app and restart again, it is erased from memory and re-read into RAM. So, that costs charge. If you know that any app you are going to close is to be accessed soon again then better leave it in background. It will do no harm.

If you are worried that it will clog the memory space. Don't worry, as I said earlier, OS clears the app which have remained inactive for longer time and replaces it with current required ones.

 

Clear or Disable Frequent Folders And Recent Files On Windows 10

     As soon as I open my Windows 10 File Explorer I see the list of files I recently accessed and Folders I Frequently use. It is really helpful feature, But sometimes many unnecessary files, and even the files that have been on my removable storage device are shown in that list, in that case it becomes necessary for me to clear those list (for stopping from taking unnecessary space), or I also noticed that even the contents of hidden folders are listed up there. So you might just disable that feature to be on the safer side.

Here is how you can do it.

Clearing the list

Step 1: Open the File Explorer

Windows 10 File explorer quick access.

Step 2: Then click on "View" drop-down menu  which is visible on the top left of the screen. Continue reading Clear or Disable Frequent Folders And Recent Files On Windows 10

Now access your WhatsApp on computer’s browser.

Whatsapp has introduced a new feature, Whatsapp web, using which we can access our Whatsapp on our computer to send and receive messages right from the browser.

How does it work?

All the messages and contacts on our phone are accessed by the Whatsapp server and is shown back to us in plane HTML interface on simple browser.

 

What are pros and cons?

Pros:

  • You can access same number at once on both phone and computer without any problems.
  • Doesn’t need any special software to be installed, except for browser.

Cons:

  • You cannot use Whatsapp on computer only, i.e you cannot remove the WhatsApp app from phone and access that number directly on computer.
  • Internet on phone has to be active in-order to make this thing work.

 

 

How do I do it?

It is real simple, all you have to do is update Whatsapp on your phone to latest version and perform the following steps. Continue reading Now access your WhatsApp on computer’s browser.

Google Has Released Latest Android 4.4.3 Factory Images For Nexus Devices

Much awaited version of Android 4.4.3 has rolled out for nexus line devices, it can soon be updated to your devices on-Air or if you don't want to wait until it comes to your region, you can download yourself the factory images and flash them to your devices.

google factory images android 4.4.3

 

Link to download

Reminder : You must know that if you flash images, you will lose all the data stored on device, so back up everything before you perform the operation.

Missing Photo Sphere on CM11? This how you get it back.

Photo Sphere is great option to capture all the surrounding in a single picture, One of the best feature that is available on stock android ROM. But, what about Cyanogenmod users? They had to compromise. Not anymore, any one can now download a external app from market and start using Photo sphere.  Google has recently made "Google Camera" Available in market, it is new and improved camera app. It is a must have upgrade, and very promising performance.

 

Here are the Screen shots

Google CameraGoogle Camera 2Screenshot_2014-05-16-17-18-28

It also Video recording, Lens Blur.

Download it

 

 

Create your own WordPress theme from scratch [Part 5]

Well, we have coded index.php, header.php, content.php, sidebar.php, and now the one that is left is footer.php . I don't know what all to add to footer.php except this code.

copyright 2014 | Powered by <a href="http://wordpress.org" >Wordpress</a >
</body>
</html>

If you like to add anything more than this to the footer, then please be free to do so.

Now, if you have activated this test theme already in the wp dashboard. Now, just refresh the homepage. You see that there is only a lengthy plain text. Because, we haven't yet coded the theme completely.

(It is better if you add demo content to the wordpress http://codex.wordpress.org/Theme_Unit_Test)

plain

As you can see we haven't add your blog title to the theme yet. So, we gonna open the header.php again and add this code at the end of the previous code.

<header class="blogheader">
	<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name');?></a></h1>
	<h3><?php bloginfo('description');?></h3>
</header>

The aim of the above code is to echo the blog title and description at the top of the page.

Now, after adding the code to the header.php the total code in header.php must look like this.

<!doctype html>
<!--[if IE 7]>
<html class="ie ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 7) | !(IE 8) ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<meta name="viewport" content="width=device-width">
<meta charset="<?php bloginfo( 'charset' ); ?>">

<title><?php wp_title('|',true,'right'); ?><?php bloginfo('name'); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<!--[if lt IE 9]>
	<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
	<![endif]-->
	<?php wp_head(); ?>
       <link rel="stylesheet" href="<?php echo bloginfo('stylesheet_url'); ?>">
</head>
<body>
<header class="blogheader">
	<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name');?></a></h1>
	<h3><?php bloginfo('description');?></h3>
</header>

Basically, we have completed coding our theme here. We shall now start with the styling, with css code. Start adding css code to the style.css page.

/*
Theme Name: TestTheme
Theme URI: http://wisne.co/
Author: Any Name
Author URI: http://wisne.co/
Description: just simple theme from scratch
*/

body{
	margin:0 auto;
}

div#main-contain{
	width: 60%;
	float:left;
}

div#sidebar{
	width:30%;
	float:right;
}

div#footer{
	width:100%;
	float:left;
}

It will make the page perfectly aligned, and fluid. Check it below.

Wordpress theme full page preview.
WordPress theme full page preview.

Now you should start choosing pictures, colors and everything else by yourselves and start adding.

Here completes the creation of WordPress theme. It was totally tested and worked on 2014's WordPress release.

PREVIOUS PART
Create your own WordPress theme from scratch [Part 4]

Create a chat box for your site with HTML/CSS, jQuery, PHP and MySQL

Well, it is fun to chat with the people who use same site I use, we can share informations, updates, even jokes sometimes. All it is possible with chat box, we can also make them be occupied for long on the site using this technique. We can create a chat box for websites, blogs, forums easily using jQuery, PHP and MySQL.

Here is a tutorial to build a totally customized chat box

We will follow this file tree

diretreee

Chatbox.php is the file which contains the main theme and chat box which will operate to show and receive messages from users.

Process.php , here is where the PHP code is present, which does the job of storing and retaining the chat data from the database.

Config.php , here we will store database configuration file.

Script.js, we will store all javascript and jQuery script.

style.css, we will store the css code for the chat box here.

Here is the code for the chatbox.php

 
[html]



Chatbox







[/html]

 

(To be Updated soon....)

 

Extend a partition using unallocated space from any volume

If you are trying to extend volumes in a hard disk, then it is necessary that the unallocated space has to be lying next to the volume which is to be extended. But what if you want to extend another volume? which is not allowing you to extend the volume. There is a very solution for this, we can use MiniTool Parition Wizard Home Edition to do this.

Let's see how we can do it.

First download and install the application software from the official site (Version 8.0 and above is recommended).
MiniTool Parition Wizard Home Edition

Now , Install it and run it.

partion wizard home

 

As you can see there is 3.51 GB of unallocated space below the drive D, which I was unable to use to extend the drive C using default windows partition manager. But it can be really easily done using this application.

To extend C drive am clicking on C: using right mouse button and a drop down menu appeared.

partion wizard home drop menu

And then, I will choose Extend, A new dialogue box will appear asking from where the free space is to be used. From drop down list choose Unallocated space and click ok.

drop downlist partision wizard home

Now,  Apply changes by clicking on Apply Button from the top left side of window. And then when it asked to Apply pending changes click yes.

top left, apply , home partition wizard

apply changes

 

Then the process will start, and it asks you to restart the computer after it, you allow it to restart. Then before the computer boots the window, it process and merge the drive with the unallocated space. Tadah, over.

 

SEO tips with wordpress theme

Many people like to design their own custom theme for their WordPress blog. But, sometimes they commit some small errors while coding, which kills their page ranks. Some people don't even follow standards, and they kinda end up with big disasters.  We can find many tips online about WordPress SEO, some turn into jackpot, and some into awful thing. But here are some guaranteed things, you can follow blindly.

wordpress theme seo

Always Double Check The HTML Tags.

HTML is very easy to learn, and also very easy to make errors. We may sometimes misplace them or use them in different ways other than they meant. These days, browsers are very powerful and advanced, they phrase any errors, and show the site right to you. But, it isn't same about the web crawlers, search engines seem them differently than we normally do. So, it is always nice to see that we take good care of things behind the curtain too.

There are many websites out their to check the HTML or CSS errors, they are free and totally reliable. There are also many IDE which do it for you. It shouldn't be hard for you to find such sites or IDE.

Less Graphic More Traffic.

It is not bad to use the graphics to demonstrate things, they are really useful. But, when they are excursively used, I bet, they are pain to bear. And some people who write in images, they should know that it never helps. How would search engine know what is in the image? it doesn't have OCR. So, less the graphical representation of content, better is the content exploration. You must also include title, alternate name for the images, It is good practice.

Do not Ajax-ify Everything.

Ajax is really cool thing, we can load content without refreshing whole page. Well, it really helps save data. But, have you ever considered how a search engine looks at it? It just sees nothing, it won't try to load the content that isn't there. So, if you are ajax fan then you should limit it or What you can do is use some tricks, like using hash links, that might work.

Use standard tags.

We all know HTML, it is very easy to code. But, when we code the WordPress theme we should always see the we follow the standard tags, you might never use <span> or the <hentry> or <header> tags , they really are helpful for search engine to grasp the right content. You must see this, it might prove helpful to you.  http://microformats.org/wiki/hentry

First Header, Then Content and later is Navigation, Sidebar and Footer.

Well, this is really interesting, but search engine will always give greater importance to the documents top side. So, if you fill your top area of web page with only, navigation bar and side bar, the content is hardly given any attention by the search engine. The question may arise " What can I do if the sidebar is at right? or navigation comes before the Content?", answer would be, " CSS can do many thing." Don't forget to rely on CSS as much as possible.

Create your own WordPress theme from scratch [Part 4]

In previous tutorials we have coded header.php and content.php, now we shall code sidebar.php.

Sidebar is place where you can put widgets, or links or anything which is to be quickly available from every page in the blog/website.

WordPress has special feature to manage the sidebar, you just have to drag and drop the elements in the sidebar from dashboard, and that's it, it will be live.

So, you have to choose what you want to put in side bar. Here am going to add search,categories, recent posts, archives, and web links.

Before doing that we must first register our sidebar, to do that we must first create a file named functions.php and add this code to it.

< ?php 
add_action( 'widgets_init', 'my_register_sidebars' );

function my_register_sidebars() {

register_sidebar(
    array(
        'id' => 'primary',
        'name' => __( 'Primary' ),
        'description' => __( 'Main Sidebar' ),
                    'before_widget' => '<div class="widget">',
                    'after_widget' => '</div>',
                    'before_title' => '<h3 class="title">',
                    'after_title' => '</h3>'
    )
);
}
?>

Continue reading Create your own WordPress theme from scratch [Part 4]