PurabTech is technical blog for Programmer and Coders
Author: Purab
I am Purab from India, Software development is my profession and teaching is my passion.
Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks.
Purab's Github Repo
Youtube Chanel Video Tutorials
Connect to on LinkedIn
Dr Henry Edward Roberts was the inventor of the Altair 8800, a machine that sparked the home computer era.
Gates and Allen contacted Dr Roberts after seeing the machine on the front cover of a magazine and offered to write software for it.
Dr Henry Edward Roberts died
When Roberts developed his Altair 8800 the following year, it became the first commercially-successful personal computer kit, retailing at $397. At first the project seemed ill-starred: having promised Popular Electronics a prototype to meet the magazine’s copy deadline, Roberts shipped the machine to New York, only for it to be lost in transit.
Once launched, the machine – named Altair after the 12th brightest star in the sky – became another instant hit, with MITS shipping more than 5,000 kits in seven months. By 1976 sales totalled $6 million. But competitors had already started selling imitations, and the following year Roberts sold his company, pocketed $2 million and moved to rural Georgia, becoming a gentleman farmer and starting a software company.
Later he was able to fulfil his boyhood ambition of becoming a doctor, and set up a practice in the small town of Cochran in 1988.
The program was known as Altair-Basic, the foundation of Microsoft’s business.
“Ed was willing to take a chance on us – two young guys interested in computers long before they were commonplace – and we have always been grateful to him,” the Microsoft founders said in a statement.
“The day our first untested software worked on his Altair was the start of a lot of great things.”
Apple co-founder Steve Wozniak told technology website CNET that Dr Roberts had taken ” a critically important step that led to everything we have today”.
‘Fond memories’
Dr Roberts was the founder of Micro Instrumentation and Telemetry Systems (MITS), originally set up to sell electronics kits to model rocket hobbyists.
The company went on to sell electronic calculator kits, but was soon overshadowed by bigger firms.
In the mid-1970’s, with the firm struggling with debt, Dr Roberts began to develop a computer kit for hobbyists.
The result was the Altair 8800, a machine operated by switches and with no display.
It took its name from the then-cutting edge Intel 8080 microprocessor.
The $395 kit (around £1,000 today) was featured on the cover of Popular Electronics in 1975, prompting a flurry of orders. It was also sold assembled for an additional $100 charge.
Amongst those interested in the machine were Paul Allen and Bill Gates.
The pair contacted Dr Roberts, offering to write software code that would help people program the machine.
The pair eventually moved to Albuquerque – the home of MITS – where they founded Micro-Soft, as it was then known, to develop their software: a variant of the Beginners All-purpose Symbolic Instruction Code (Basic).
“We will always have many fond memories of working with Ed in Albuquerque, in the MITS office right on Route 66 – where so many exciting things happened that none of us could have imagined back then,” the pair said.
Dr Roberts sold his company in 1977.
He died in hospital on 1 April after a long bout of pneumonia.
You can create sticky footer using css perfectly. Use following css code for creating the sticky footer. Many people gave example of google sticky footer.
create sticky footer using css or javascript
create sticky footer using css or javascript
Use bellow CSS code.
html{
height:100%
}
body{
height:100%
}
#footer{
position: relative;
bottom: 0px;
height: 100px; //You must need to know your footer height
margin-bottom:-100px; //here I am thinking footer will be 100 px
}
You can change the footer height as per your need or footer height.
Sticky footer you will also achieve using javscript code.
Using only javascript and CSS you can easily achieve mouseover effect. In article we given sample code for change image of on MouseOver Event in your site.
change image of on MouseOver Event using JavaScript or CSS
change image of on MouseOver Event using JavaScript or CSS
If you want to change the image on rollover or mouseover event. This is very old technique. You can achieve this using CSS or javascript. I given the simple and powerful code javascript mouse event. I tested this code. It works on all the browsers.
If you want place ads in RSS feed at end. that is very easy with wordpress websites. We given simple code, Using our code, add ads end of wordpress RSS feed.
How to add ads end of wordpress RSS feed
How to add ads end of wordpress RSS feed
Open your functions.php file from wordpress theme folder and use following code:
function insertAds_in_rss($content) {
$content = $content.' Your ads code goes will here';
return $content;}
add_filter('the_content_feed', 'insertAds_in_rss');
add_filter('the_excerpt_rss', 'insertAds_in_rss');
In that situation you need to use following techniques. We given tricks, techniques and code for block your rss feed in wordpress website. Many people does not want to show their websites need to be cached or indexed by search engine. In that situation you need to use following techniques.
How to block your rss feed in wordpress website
How to block your rss feed in wordpress website
First create the robots.txt file and put following code in that file.
User-agent: *
Disallow: /
You need to open functions.php file for disabling the rss feed from your website.
Put following code in that file.
If you are using the wordpress for your website or blog. Please do check your wordpress version because We got very serious news about wordpress older versions. I do got news about wordpress version 2.8.3 and 2.8.4. They are in serious trouble. There are so many sites are hacked and affected which is using wordpress 2.8.3 and 2.8.4 versions.
wordpress 2.8.3 and 2.8.4 versions are under attack
wordpress 2.8.3 and 2.8.4 versions are under attack
First I will tell you how can you check your wordpress website is hacked or not.
When you saw strange keywords in URL like “eval” and “base64_decode.”
Check your Users in wordpress admin panel If you saw any new unwanted users then you really need to worry about.
Some time you did not able to access your wordpress admin panel. Then immediately take action and call your system admin or web development company.
I suggest first upgrade your wordpress version to greater than wordpress 2.8.6. I personally use the 2.8.6 and I did not found any issues yet.
Keep your admin passwords and database and ftp passwords as strong as possible. Use special characters and numbers in password.
My personal suggestion is keep using the latest wordpress version.
When we are use the inline css in document. If in that case we need to use conditional css then there is way
// Following is hack for all IE, including 7. It must go first, or it overrides the following hack
<div style="width:15px;^width:13px;">
some dynamic content
</div>
// Following is hack for all IE6 + browsers
<div style="width:15px;_width:14px;">
some dynamic content
</div>
Many times we need to do word wrap using languages. I recommend use css for word wrapping. In this article, we explained about How to use word wrap with css
How to use word wrap with css
You can force long (unbroken) text to wrap in a new line by specifying break-word with the word-wrap property.
This is a problem with CSS layouts that use floated divs.
use word wrap with css
Use following code for fix the word wrap with all divs.
div { word-wrap: break-word }
instead of this we always use following css code:
overflow:hidden;
But this is not good practice. Use word-wrap css property.
Word-wrap is supported in IE 5.5+, Firefox 3.5+, and WebKit browsers such as Chrome and Safari.
We Created the professional blue color based wordpress theme. User can download wp-bluemagic wordpress theme form here.
Download wp bluemagic Free wordpress theme
wp-bluemagic
Download wp bluemagic Free wordpress theme
[viral-lock message=”Download and Demo Link is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
many people written about creating wordpress theme and using wordpress hooks. Here in this tutorial I will show How to create wordpress theme from scratch.
create wordpress theme from scratch
Here in this tutorial I will show How to create wordpress theme from scratch. I given very detailed steps to create wp theme. You can create wp theme from simple jpg file or PSD file. First choose or create your html template from photoshop. For creating the html template you can refer following screen shots for creating photoshop image. This is very common layout for creating any webpage.
create wordpress theme from scratch
Here for this tutorial I am using following image for creating the wordpress theme.
create wordpress theme from scratch
After creating image in photoshop you need to create the html according to this image. Here I created the one index.html file and style.css file.
You can download the HTML from here:
Now we can start creating the wordpress theme.
First create style.css file and in top section copy paste the following code:
/*
Theme Name: wp-bluemagic
Theme URI: purabtech.in/files/
Description: two column, blue color wordpress theme
Author: wordpressapi
Author URI: purabtech.in/files/
Version: 1.0
*/
You can change the information as per your requirement.
For creating the wordpress theme following minimum files are needed in wordpress theme folder.
1. index.php
2. header.php
3. footer.php
4. sidebar.php
5. comments.php
6. functions.php – not necessary
7. screenshot.png
Here is my html code from index.html file rename that file to base.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Wordpressapi.com - wp-bluemagic</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logo">
<h1><a href="#">wp-bluemagic </a></h1>
</div>
</div>
<!-- header end -->
<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Photos</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<!-- menu end-->
<div id="page">
<div id="page-bgtop">
<div id="page-bgbtm">
<div id="content">
<div>
<h2><a href="#">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</a></h2>
<p><span>September 10, 2009</span><span>Posted by <a href="#">wordpressapi</a></span></p>
<div style="clear: both;"> </div>
<div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p><a href="#">Read More</a> | <a href="#">Comments</a></p>
</div>
</div>
<div>
<h2><a href="#">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</a></h2>
<p><span>September 10, 2009</span><span>Posted by <a href="#">wordpressapi</a></span></p>
<div style="clear: both;"> </div>
<div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p><a href="#">Read More</a> | <a href="#">Comments</a></p>
</div>
</div>
<div>
<h2><a href="#">Lorem Ipsum is simply dummy text of the printing and typesetting industry.</a></h2>
<p><span>September 10, 2009</span><span>Posted by <a href="#">wordpressapi</a></span></p>
<div style="clear: both;"> </div>
<div>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum..</p>
<p><a href="#">Read More</a> | <a href="#">Comments</a></p>
</div>
</div>
<div style="clear: both;"> </div>
</div>
<!--content end-->
<div id="sidebar">
<ul>
<li>
<h2>Author Information</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</li>
<li>
<h2>Categories</h2>
<ul>
<li><a href="#">wordpress </a></li>
<li><a href="#">wordpress theme</a></li>
<li><a href="#">wordpress plugins</a></li>
<li><a href="#">wordpress tips</a></li>
<li><a href="#">wordpress hacks</a></li>
<li><a href="#">wordpressapi</a></li>
<li><a href="#">wordpress tutorials</a></li>
</ul>
</li>
<li>
<h2>Blogroll</h2>
<ul>
<li><a href="#">wordpress.com</a></li>
<li><a href="#">wordpress.org</a></li>
<li><a href="#">purabtech.in/files/</a></li>
<li><a href="#">google.com</a></li>
<li><a href="#">yahoo.com</a></li>
<li><a href="#">live.com</a></li>
<li><a href="#">facebook.com</a></li>
</ul>
</li>
<li>
<h2>Archives</h2>
<ul>
<li><a href="#">march 2010</a></li>
<li><a href="#">feb 2010</a></li>
<li><a href="#">january 2009</a></li>
<li><a href="#">december 2009</a></li>
<li><a href="#">november 2009</a></li>
<li><a href="#">september 2009</a></li>
<li><a href="#">july 2009</a></li>
</ul>
</li>
</ul>
</div>
<!-- end #sidebar -->
<div style="clear: both;"> </div>
</div>
</div>
</div>
<!-- end #page -->
</div>
<div id="footer">
<p>Copyright (c) 2010 purabtech.in/files/. All rights reserved. Design and Developed by <a href="http://www.wordpressapi.org/">wordpressapi themes</a>.</p>
</div>
<!-- end #footer -->
</body>
</html>
Now we are going start to create the wordpress theme from html file which we created earlier.
First create the header.php file and copy paste the following code in that file. I taken the top header HTML code from base.html file.
Create the footer.php file and copy paste the following code in that file. I taken the bottom footer HTML code from base.html file.
</div>
<div id="footer">
<p>Copyright (c) 2010 purabtech.in/files/. All rights reserved. Design and Developed by <a href="http://www.wordpressapi.org/">wordpressapi themes</a>.</p>
</div>
<!-- end #footer -->
<?php wp_footer(); ?>
</body>
</html>
Create the sidebar.php file and copy paste the following code in that file. I taken the only the sidebar HTML code from base.html file. I taken only sidebar div from html and li tags and other widgets will be provided by wordpress admin, so you dont worry about that part.
<div id="sidebar">
<ul>
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<?php endif; ?>
</ul>
</div>
<!-- end sidebar -->
Create the comments.php file and copy paste the following code in that file. I did not taken HTML code or php from base.html file. This is common wordpress comments template. If you are designer then you dont need to worry about comments code. you just need to copy paste the following code into comments.php file
<?php
if ( post_password_required() ) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>
<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
<?php endif; ?>
</h2>
<?php if ( have_comments() ) : ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) : ?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
<?php echo get_avatar( $comment, 32 ); ?>
<?php comment_text() ?>
<p><cite><?php comment_type(_x('Comment', 'noun'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
</li>
<?php endforeach; ?>
</ol>
<?php else : // If there are no comments yet ?>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>
<p><?php post_comments_feed_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
<?php if ( pings_open() ) : ?>
<a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a>
<?php endif; ?>
</p>
<?php if ( comments_open() ) : ?>
<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() ) );?></p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( is_user_logged_in() ) : ?>
<p><?php printf(__('Logged in as %s.'), '<a href="'.get_option('siteurl').'/wp-admin/profile.php">'.$user_identity.'</a>'); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php _e('Log out of this account') ?>"><?php _e('Log out »'); ?></a></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" />
<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" />
<label for="email"><small><?php _e('Mail (will not be published)');?> <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
<label for="url"><small><?php _e('Website'); ?></small></label></p>
<?php endif; ?>
<!--<p><small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s'), allowed_tags()); ?></small></p>-->
<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
Create the functions.php file and copy paste the following code in that file. In this file we are just registering the sidebar widgets, using following function.
<?php
automatic_feed_links();
if ( function_exists('register_sidebar') )
register_sidebar();
?>
Here is my style.css file. You can create this file as per your theme. We are using the same css which we created for base.html, We just added some of extra code for wordpress theme and img alignment.