Get Microsoft DreamSpark Account (& Some Free Products Along With It)

For those of you unaware of it, DreamSpark is a Microsoft program wherein students are provided with Microsoft products at no charge at all. To make use of this facility, you need to verify that you're infact a student. There are a number of ways to do this, but using a .edu email is the easiest one. This proves that the person is in fact a student since a .edu email address is assigned by a education institution and isn't open to everyone (not true all the time, as you will read below.) In this article, you are going to learn how you can get a DreamSpark account for free.

read more

How To Remove Left Sidebar From Frank WordPress Theme?

So, I decided to change the theme of the site once again. Man, I'm never satisfied with any theme and as far as I've learned in the last 3 years, no one really is. Yep, you look at someone else's site and you like their theme. You look at yours, and you want to change it. Anyway, this time, I decided to move to a fast loading minimal theme.

I had noticed for a while that the site was loading slow - took about 3-4 seconds as per Pingdom and GtMetrix. Luckily, before I could begin my search for a new theme, a friend of mine sent me a link to Smashing Magazine's coverage of Frank theme. I took a look at the demo site, and it loaded in blazing fast speed. Naturally, I was attracted to it and downloaded it right away and installed it on the site.

I went through the theme options to see if there was some way to remove the left sidebar so as to make it a two column theme. But, I could not find any option. So, I had to work around a bit, to get it to work as I wanted.

If you want to make the posts appear on a two column layout, rather than the default three column layout then follow the directions below.

Backup Single.php file, so that you can restore it if anything unexpected happens. Now, remove the following code from single.php:

					<div class='post-info'>
						<?php get_template_part( 'partials/post-metadata' ); ?>
						<?php if ( frank_tweet_post_button() ) : ?>
						<a id="post-tweet" href="<?php echo rawurlencode( strip_tags( get_the_title() ) ); ?><?php if ( frank_tweet_post_attribution() ) : ?>&via=<?php echo frank_tweet_post_attribution(); ?>&related=<?php echo frank_tweet_post_attribution(); ?><?php endif; ?>&url=<?php the_permalink(); ?>&counturl=<?php the_permalink(); ?>" target="_blank">
						<?php _e( 'Tweet this Post', 'frank_theme' ); ?>
						<?php endif; ?>
						<div id="prev-post">
							<?php previous_post_link( '%link', '<nav><span>%title</span></nav><p>%title</p>' ); ?>
						<?php if ( !dynamic_sidebar( 'Post Left Aside' ) ) : ?>
						<?php endif; ?>

read more

Grab Certain Texts From Gmail via Google Spreadsheet (Script)

I had worked on this a few weeks back, and without any prior knowledge of using GmailApp call on Google Spreadsheet, I had to struggle for a while to get it working. The code to do this is fairly simple and can be understood by just about anyone. The problem I was trying to solve was also fairly simple. First, some background : there's a new task initiated by my college, although as ridiculous as it might sound to you, a student (based on the order of the roll number) has to send an email blast each day to other students. The email blast should contain a word, it's meaning, example of its usage etc. There's a certain format that needs to be followed, and what I wanted to do was grab just the words within the email and store them so that at some point, I'd have a database full of every words that have ever been sent. (Not really my idea, though.)

So, here's how I tackled the problem, and I hope this would be helpful to you in case you want to do something similar. What I did at first was that I went to my Gmail and assigned all the emails with the subject "word of the day", the label : "Word". Since all the email blasts followed the same format, they all had the same subject as well. The advantage of assigning a label to emails based on subject is that, it works for new emails as well. That means, any new email with the same subject, will also automatically be assigned the label "Word". I now only needed to focus on retrieving mails from the label "Word" via Google Script. And this code exactly does that :

function myFunction() {
  var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('MySpreadsheet');
  var labelObject = GmailApp.getUserLabelByName('Word');
  var threads = labelObject.getThreads();
  for (var i = 0; i < threads.length; i++) {
    var msg= threads[i].getMessages();
    var raw = msg[0].getRawContent();
    var words = raw.match('*(.*?)*');
    if (words != null) {
      sheet.getRange('A' + String(i+1)).setValue(words[1]);

read more

How To Setup .NP Domain Name For Tumblr Blog?

I assume you have already gotten yourself a .NP domain name. If not, you can read the process here.

Mercantile only lets you change Nameservers of your domain, however, services such as Google's Blogger and Tumblr, require you to change A Record and CNAME, but not the nameservers. So, if you wish to use your domain name for hosting blogger or tumblr blog, then there's only one alternative : to use third-party DNS service which supports A and CNAME records. Here's what you need to do in order to use your domain with Tumblr.

read more