Monday, December 9, 2013

Vim Green Black Color Scheme

Vim has become my most used writing and light programming tool. I've tried different color schemes and finally created my own. It's green and dark green on a black background.
I've set the cursor color magenta to quickly find where you are at when editing. A color scheme it's a very particular thing and you may even want to create your own!
As you can see this Vim green black color scheme  it's very relaxing for the eyes. I've called this Vim theme defaultme.vim and here is the color file:

" Vim color file
" Maintainer:    Maria
" Last Change:    2013 Dec

" This is a Vim dark color scheme with black background and green foreground colors

hi clear

if version > 580
    " no guarantees for version 5.8 and below, but this makes it stop
    " complaining
    hi clear
    if exists("syntax_on")
        syntax reset

" Load the syntax highlighting defaults, if it's enabled.
if exists("syntax_on")
  syntax reset

let colors_name = "defaultme"

" highlight groups

" Set nice colors  green foreground on dark background
highlight Normal guifg=#00FF00
highlight Normal guibg=#000000

hi Cursor       guifg=black          guibg=magenta        gui=none
hi ErrorMsg     guifg=white          guibg=red            gui=none
hi VertSplit    guifg=gray40         guibg=gray40        gui=none
hi Folded       guifg=DarkSlateGray3 guibg=gray40        gui=none
hi FoldColumn   guifg=tan            guibg=#000000        gui=none
hi IncSearch    guifg=#b0ffff        guibg=#2050d0
hi LineNr       guifg=burlywood3     gui=none
hi ModeMsg      guifg=SkyBlue        gui=none
hi MoreMsg      guifg=SeaGreen       gui=none
hi NonText      guifg=cyan           gui=none
hi Question     guifg=springgreen    gui=none
hi Search       guifg=gray80         guibg=#445599        gui=none
hi SpecialKey   guifg=cyan           gui=none
hi StatusLine   guifg=black          guibg=green        gui=bold
hi StatusLineNC guifg=grey           guibg=gray40        gui=none
hi Title        guifg=#ff4400        gui=none            gui=bold
hi Visual       guifg=gray17         guibg=tan1            gui=none
hi WarningMsg   guifg=salmon         gui=none
hi Pmenu        guifg=white          guibg=#445599        gui=none
hi PmenuSel     guifg=#445599        guibg=gray
hi WildMenu     guifg=gray           guibg=gray17        gui=none
hi MatchParen    guifg=cyan           guibg=#6C6C6C        gui=bold
hi DiffAdd      guifg=black          guibg=wheat1
hi DiffChange   guifg=black          guibg=skyblue1
hi DiffText     guifg=black          guibg=hotpink1        gui=none
hi DiffDelete   guibg=gray45         guifg=black        gui=none

" syntax highlighting groups
hi Comment      guifg=darkcyan         gui=none
" olive
hi Constant     guifg=#808000       gui=none
hi Identifier   guifg=#808000        gui=none
hi Function     guifg=#82EF2A        gui=none
hi Statement    guifg=darkcyan        gui=none
hi PreProc      guifg=#82EF2A        gui=none
hi Type         guifg=darkgreen        gui=none
hi Special      guifg=darkmagenta    gui=none
hi Ignore       guifg=red            gui=none
hi Todo         guifg=red            guibg=yellow2     gui=none

" color terminal definitions
hi SpecialKey   ctermfg=red
hi NonText      cterm=bold           ctermfg=darkblue
hi Directory    ctermfg=darkcyan
hi ErrorMsg     cterm=bold           ctermfg=7         ctermbg=1
hi IncSearch    cterm=NONE           ctermfg=yellow    ctermbg=green
hi Search       cterm=NONE           ctermfg=white     ctermbg=grey
hi MoreMsg      ctermfg=darkgreen
hi ModeMsg      cterm=NONE           ctermfg=brown
hi LineNr       ctermfg=3
hi Question     ctermfg=green
hi StatusLine   cterm=bold,reverse
hi StatusLineNC cterm=reverse
hi VertSplit    cterm=reverse
hi Title        ctermfg=5
hi Visual       cterm=reverse
hi VisualNOS    cterm=bold,underline
hi WarningMsg   ctermfg=1
hi WildMenu     ctermfg=0            ctermbg=3
hi Folded       ctermfg=darkgrey     ctermbg=NONE
hi FoldColumn   ctermfg=darkgrey     ctermbg=NONE
hi DiffAdd      ctermbg=4
hi DiffChange   ctermbg=5
hi DiffDelete   cterm=bold           ctermfg=4         ctermbg=6
hi DiffText     cterm=bold           ctermbg=1
hi Comment      ctermfg=darkcyan
hi Constant     ctermfg=brown
hi Special      ctermfg=5
hi Identifier   ctermfg=6
hi Statement    ctermfg=3
hi PreProc      ctermfg=5
hi Type         ctermfg=2
hi Underlined   cterm=underline      ctermfg=5
hi Ignore       ctermfg=darkgrey
hi Error        cterm=bold           ctermfg=7         ctermbg=1

Al you've got to do is copy it in a file and name it as defaultme.vm then place it on the color folder. If you use Vim for writing you can tuning it to make it like the WriteRoom writing enviroment.

Friday, November 15, 2013

Chinese New Year In Paris

If there is town to find the celebration of Chinese new year in Paris, that it is the 13th arrondissement known as the Chinatown by excellence. 30,000 people from China and many other asian countries live here.
Like every year, the 13th offers you a parade that will bring together thousands of people from every where.

What is the Chinese New Year Celebration

The celebration of the Chinese new year is, originally, the feast of the winter solstice, which marked the end of this period of extreme cold and the upcoming beautiful days.
This festival dates back from ancient times and, at the time, was especially celebrated by farmers.
Eating together at new year's Eve symbolizes the meeting of the family, prosperity, happiness and health.
 In General, round foods bring happiness and symbolize eternity. This is the reason why raviolis they are abundantly served in times of feast.
 Fire is an essential element of the new chinese new year. Why? To hunt demons and evil spirits. For this reason the Chinese like to throw firecrackers or even grandiose Fireworks. Sound and light are the best ways to keep evil away.

 So we took the metro, the Paris underground that works so well, and got off at Place d'Italie. We were immediately overwhelmed by sounds and colors, specially red, the color of happiness, luck and prosperity!
 The main characters of the parade are the dragons as you can see:

Dragons are the stars today!

And children too!
Next chinese new year will start on January 31st, a nice opportunity to pass by if you are on vacation!

Saturday, November 9, 2013

MacBook Pro Early 2008 Upgrade SSD

I'm upgrading the MacBook Pro with a SSD drive, Crucial M4 SSD 256Gb, so here is how to do it, sept by step.
Here are the tools and the SSD drive:

You will need a Phillips 00 Screwdriver and a Torx T6 Screwdriver. This SSD driver is 9.5 mm thick, but you can install a 7 mm one with an adapter.
First of all remove the battery.

 Then the phillips screws from the memory door.  Lift the memory door and pull from it gently.
Then remove the two phillips screws inside the battery compartment.
Now remove the two torx by the sides of the RAM slot. Remove also the four phillips screws along the hinge.
Remove the four Phillips screws on this side, they are very small (3.2mm)
Remove the two small Phillips screws from the back.

Then remove four more on this side.

Lift the upper case very slowly, do not pull from it as there is a ribbon cable connected to the logic board, just free the sides ver gently. There are four plastic clips over the DVD slot which make difficult to retire the uppercase, just go slow, take your time and do not force anything.
I've finally used this plastic tool to do it.

There is our MacBook Pro open! You can see the hard drive on the bottom left corner. Disconnect the ribbon cable from the logic board.

This orange ribbon cable was really glued to the hard drive, I had to use my credit card to loose as carefully as possible.
Unscrew the bracket that holds the hard drive (Two Torx screws)
Remove the bracket now.
To remove the hard drive you have to pull it a little bit to the right.
Then disconnect the hard drive cable, wow!
Transfer the screws to the new SSD drive, I did it wrong the first time and had to turn it upside down to plug it properly.
Wow, I made it! And my MacBook Pro Early 2008 works great with this upgrade!

Windows User Macbook Switcher Experiences

I was a Windows user and I'd like to share with you my Macbook experiences. I've just got a wonderful present: a Macbook pro Early 2008 A1260.
I must say that I am really happy with it and at the same time nostalgic of my old IBM T42 which has accompanied me so faithfully all these years.

Windows vs Macbook Pro Keyboard

Equivalent keys and shortcuts

FunctionWindowsMacbook Pro
Take cursor to the first positionStart (Home)Fn + left arrow
Take cursor to the last positionEndFn + right arrow
DeleteDeleteFn + Backspace
Ctrl + Alt + DelCmd + Alt + Esc
Print screen (picture will appear on your desktop)Print screenCmd + Shift + 3

Installing & uninstalling applications

Install an application: Drag it to the App folder Uninstall an application: Drag it to the Trash

Go to desktop

Another handy Windows function is the desktop feature: you click on the desktop icon and there you are! From now on you will use F11


Will show all your open windows at once, here are the default values: View all windows (F9), View windows from a certain application (F10), See the desktop (F11). See dashboard (F12)

Upgrading OS to Mavericks

As you can see in this video the performance is not good:

So I think that after upgrading the MacBook to SSD drive I'm going to downgrade software back to Snow Leopard.
Quite great Windows user Macbook switcher experiences!

Saturday, September 14, 2013

Beach Umbrella Repair with a Wire

Imagine a beautiful day on the beach and you are under your umbrella beach to protect you from the warming sun.
Then a strong gust of wind makes your umbrella beach comes appart, the wire pole breaks and all the spokes are loose. Your parasol looks like a big lettuce upside down.
Well, that's exactly what happened to me and I needed an urgent beach umbrella repair.
I only had my tool box with me and I needed a strong wire but I was in a holiday flat, so where to find it?

I looked around and then I saw a couple of cloth pegs and guess what? The wire was there, a really strong one!. I only had to take it off with my pliers and give it a round form to fit the beach umbrella pole.
Beach umbrella repaired with a wire

Well, it took me some time and a little bit of patience but I finally got my beach umbrella repaired and could continue to use it on the beach.:)

Saturday, July 20, 2013

How to Change the Gear Shift Knob of the Peugeot 306

Well, last week the gear shift knob of my car got teared down in my hand as I was driving as you can see it in the picture.
It was so really broken that the official knob from Peugeot would not fit anymore.
The good thing about it is that now I can replace it by a nice one.
gear shift broken

But it was a real pain to figure out how to dismount it, the main thing is to lift up the leather bag around it first, from the bottom and then turn the knob twice to the left and then pull from it till it comes off.
gear shift knob dismount

As you can see the white base support was broken too, so I had to dismount the whole thing and look for an universal knob to replace it. Well here is the gear shift itself all alone, I had to stick around it a piece of plastic and then tighten it up with a wire (I did this with my pliers to hold it tight), so that the leather bag will not move down later.

Here is the new knob, it has a nice fairy on it, well, I know you are smiling :) but it was the only one in the store one that fitted best to my hand size and I could not wait to buy it online
The new gear knob

Changing the knob

Well, I'm proud!!! :)

Wednesday, July 3, 2013

Sitemap.xml with Drupal order by lastmod

If you have a Drupal 6 based site, you've probably installed the xmlsitemap module which works fairly well. A few days ago I reviewd mine and I saw that links were generated with no particular order, so I decided that it is good to show them ordered by lastmod to get the latest post first.
To make this work you need to change the source code of the xmlsitemap module file:
Do a backup first!

And just find the function:

$query = array(
    'SELECT'   => 'SELECT x.loc, x.lastmod, x.changefreq,  x.changecount, x.priority, x.language',
    'FROM'     => 'FROM {xmlsitemap} x',
    'WHERE'    => 'WHERE x.access = 1 AND x.status = 1',
    'ORDER BY' => 'ORDER BY x.language, x.loc',

and change it to:

$query = array(
    'SELECT'   => 'SELECT x.loc, x.lastmod, x.changefreq, x.changecount, x.priority, x.language',
    'FROM'     => 'FROM {xmlsitemap} x',
    'WHERE'    => 'WHERE x.access = 1 AND x.status = 1',
    'ORDER BY' => 'ORDER BY x.lastmod DESC',

I know that it is not recommended to edit Drupal source code directly but the line in red did the trick! And now my sitemap.xml file is in descendant order showing the latest posts first.

Wednesday, May 22, 2013

How To Root HTC ONE X

 To root HTC One X you will need:
  • HTC One X
  • USB cable
  • Battery charged 100% full
  • Unlock Bootloader through HTC web
  • Recovery CLockWorkMod 
  • Nandroid Backup
  • The file SuperSu/Root
  • Your computer
  • Create a folder in your hard disc c:/fastboot

Remember that only you are responsible for any damage you do to your phone, so do it to your own risk.
Before you start do a backup of all data in your phone and then:

Step 1: Unlock the Bootloader

HTC One X Unlock Bootloader Screen
Enable USB debugging: Settings > Applications > Development > USB debugging
(please check this post for HTC here, read the part to unlock the Bootloader, it is the same procedure for the HTC one, then come back here)

Step 2: Install Recovery CLockWorkMod

In your computer create the folder c:/fastboot

Donwload the file ( ) and copy it to the c:/fastboot folder

Remember this in the root of C: on you PC. The trick here is to rename the file into "recovery.img". Please note that sometimes you do not see the file extension , if it is so, just name it "recovery".

We open our command line window as follows:
On Windows XP - Click Start> Run> type cmd in box then press OK
On Windows 7 - Click Start> type cmd in search box then press Enter

Access fastboot mode

Turn off the smartphone and disconnect the USB cable from the PC, then take off the battery and put it back again and then:

-Hold down Volume Down Button and Power Button at the same time long enough to boot to HBOOT (it usually take 10 seconds).

Once you see the hboot menu you browse options with Volume + and Volume - and to select an option press the power button.

We must choose the menu "fastboot" and connect the phone to the computer, you will see now "fastboot USB" in red.

On the PC, in our command line window, we must position ourselves in the folder "C:/fastboot". (Just type on the command line cd c:/fastboot)

Now inside that folder type fastboot flash recovery.img Recovery

This process is very fast, and at the end it will display a short message which tells us that the process was successful.

If everything is all right we have flash a modified bootable Recovery which among other things will help us to MAKE OUR FIRST Nandroid BACKUP to prevent future problems.

Step: 3 Nandroid Backup

Now we are going to learn how to Nandroid Backup your phone so in case of problem we can restore the system to the point where it worked correctly.
Disconnect the phone from your computer, you will see in the screen "fastboot" instead of "fastboot USB".
Choose HBOOT and now we are in the main white screen, then choose Recovery, it may take some time.

You will see a black screen with a light blue menu, select: "Backup and restore" touching the screen with your finger, then select "Backup" and let the phone do a back up of the system.
HTC ONE X Recovery

Once it's finish press on go back and then reboot system now

How to Root the HTC ONE X

  1. Place the File SuperSU/Root you downloaded in the root folder of your phone. To do this connect the USB cable to the PC and choose "Disk drive" mode, so your computer can read it as an external drive and be able to handle files, transferring them from the computer to the phone and vice versa.
  2. Now we turn off the phone to put it in "Recovery" mode (Boot into Recovery from Bootloader).  First press for about ten seconds the button "Vol-" and without releasing the button we press and hold "power" until you see the black screen, then release the power button but keep holding the Vol -

    Once inside Recovery mode we will notice that the screen is black background with menus in blue, like you see it in the picture above. We will choose "install zip from sdcard" with your finger and then "choose zip from sdcard". We are in the directory on the SD Root phone.
  3. Look for the file scrolling through the screen with your finger and then select it with your finger too, then you will see many NO options, in our case, we choose the option that says YES and the screen will change to black background with white letters, we will see Recovery working, and when it is finished, return back to the Recovery screen where we see "reboot system now".
Select it to let the phone reboot normally.
Your HTC ONE X is rooted now!! Congratulations.

Thursday, May 2, 2013

Converting PDF Files To Excel

Did you ever had to convert a PDF file into its original Excel version? Some peope save their Excel file into PDF format for security or printing layout issues.
But what if you need back the Excel version of the file to work on data?

I gave a try to and submitted a PDF with tabular data in it (it was an Excel file originally) so I uploaded to their site expecting to get and Excel to work back on. They also offer a desktop application (about 129$), so if your data is confidential your can transform it in your computer.

PDF to Excel
PDF File with Tabular data
Once converted, here is the Excel file:
So it maybe useful when you've got no access to the original Excel file, the only thing is that you need to enter your email address to donwload the converted file.

Saturday, April 20, 2013

Firefox Plugin Container Slows Down my Computer?

Firefox latest versions are really cpu consumer so I tried disabling plugin-container.exe process to see if I could solve this problem.

This is how to do it:

  1. Type about:config and ignore the "you may loose your warranty" message, just accept the "I'll be careful message", nothing wrong happens, really.
  2. Type ipc in the search box.
  3. Set all the boolean parameters to false and all numeric values to 1, right click on the values and then modify to change them.
Here is how it looks, just click to see a bigger image:
Firefox plugin container parameters
 It seems to work for me, so far, with Firefox 20.

Saturday, March 23, 2013

Turn Vim Into WriteRoom

You know that WriteRoom is a software that is made to help you write distraction free. But the thing is that it only exists for Mac, which is not my world really.
I use Vim for writing instead :) and I've managed to tweak it and fashion it so I've got all I need for writing.
The only feature I haven't got yes it's full screen mode, I know there is a plugin for it but I haven't make it work under Windows yet.

Well, the first thing is to install Vim, that you can download from: once you've got Vim you need the vimroom plugin installed.

Vimroom will make the text centered, like having a left margin and a right margin to make reading and writing easy on your eyes.

So download Vimroom from:
To install the plugin is really easy, just copy the vimroom.vim file under the plugin folder of your Vim installation.

Then to make vimroom work open your vimrc file to set up configuration and add these lines:

" vimroom configuration
set nonumber                      " No line numbering
set foldcolumn=4                  " Add a left margin
highlight! link FoldColumn Normal " Make it the background colour
set wrapmargin=8                  " Add a right margin, sort of

Well, here is the look of it:

I've also added a few lines to get green text on a dark backgound (easy on your eyes too):

" Set nice colors
highlight Normal guifg=#00ff00
highlight Normal guibg=#000000

" cursor magenta
hi Cursor    guibg=magenta gui=none

If you'd like to have another foreground color, let's say golden, just replace #00ff00 by #d0a000 and that's it.
As an extra, I've also got spelling checker, in this case is Spanish, which works quite well and consolas font:

" font
set guifont=Consolas:h12:cDEFAULT

" Spanish spell checker
:setlocal spell spelllang=es

Wednesday, March 20, 2013

Blogger H1 Tag on Post Pages Only

All Blogger templates uses the H2 or H3 as header tags, but for a better SEO is best to use the H1 tag only ONCE in every post page.

The problem is that if you change the H2 tag into the H1 in a blogger template, then you've got the home page that lists your latest posts with multiple H1 tags.

So here is how to solve this:

  • Click on: Template -> Edit HTML
  • Check: Expand Widget Template
  • Copy everything into a file to make a backup.

Then find this block of code:

 <b:if cond='data:post.title'>
      <h3 class='post-title entry-title'>
      <b:if cond=''>
        <a expr:href=''><data:post.title/></a>
        <b:if cond='data:post.url'>
          <b:if cond='data:blog.url != data:post.url'>
            <a expr:href='data:post.url'><data:post.title/></a>

In your template H3 can be H2, then replace the above code by this one:

<b:if cond='data:post.title'>
            <b:if cond='data:blog.pageType != "item"'>
                <b:if cond='data:blog.pageType != "static_page"'>
                    <h2><a expr:href='data:post.url' rel='bookmark' title='Permanent Link' expr:id=''><data:post.title/></a></h2>
                    <h1><a expr:href='data:post.url' rel='bookmark' title='Permanent Link' expr:id=''><data:post.title/></a></h1>
                <h1><a expr:href='data:post.url' rel='bookmark' title='Permanent Link' expr:id=''><data:post.title/></a></h1>
            <h2><a expr:href='data:post.url' rel='bookmark' title='Permanent Link' expr:id=''>UNTITLED ENTRY</a></h2>

 This way the H1 tag will be displayed once on posts pages and static pages only, the rest will display the H2 tag. It is checking that the current page is neither an item page (post) or a static page (a page), that's how it works.

This is true if your blog title is an image or logo and not an H1, otherwise you'll get tww H1 tags.
Well I'm going to change my blog title by a logo image header.

Saturday, March 16, 2013

Turn Your HTC Desire S into a Microscope

You can turn your HTC Desire S into a microscope with a drop of water and it works!

I just woke up today with the idea: hey! what if I turn my HTC into a microscope?. So I just put a tiny drop of water on the camera lens using a dropper I made sure that the water drop was right in the middle of the camera's lens because the drop is smaller than the lens.
Also if the drop is too big it falls down when you turn the phone, so patience.
Once I got the water's drop right size and turn my phone I took these pictures:

My hand:
HTC Desire S Microscope my hand's skin detail
My hand's skin detail
And here is an image of one of my hairs:
HTC Desire S Microscope picture one hair
One hair under the HTC microscope
A part of a little flower:
HTC Desire S Microscope a small flower leave
A small flower microscope size
The same little flower before the microscope transformation:
HTC Desire S Microscope small flower in normal size
The same small flower in normal size

The hardest part was trying to hold the phone still because the slightest movement produced flurry pictures and the water drop moved too!
I've heard of small ball lens which are very cheap (under $10) that you can attach to the camera lens to get the same effect, I will let you know how it works if I can get one.
Well, for now it is fantastic with water and absolutely free.

What do you think? Will you try?
if so, remember: just a tiny drop otherwise you can damage your HTC. I think it may work with other smarthphones too, just try.

Friday, March 15, 2013

Root HTC Wildfire S with Wildfire Toolkit

If you've got an HTC Wildfire S you can root it with the HTC Wildfire S Toolkit that you can download form XDA developers forum.

There are many new tools for newbees to root your smartphone in one click, which you can do with Wildfire S Toolkit, well in fact it takes a few clicks but you can do it all from the Toolkit itself.

In order to root the HTC Wildfire S you need to unlock the bootloader and then flash a recovery.

As always, do this at your own risk as you are only responsible for any damage you do to your phone, and besides that you may loose the warranty.

So, before you start:
  •     Enable USB de-bugging mode on your phone settings and uninstall HTC Sync Tool if installed
  •     Close all active applications
  •     Disable antivirus
Unlock Bootloader HTC Wildfire S from HTCDev

By following these steps you can root the HTC Wildfire S, install drivers and lock and unlock the bootloader:

Step 1. Download the toolkit from and extract it to your computer (it only works on PC, not Linux or Mac).

Step 2. Download HTC drivers from to your computer and install them.

Step 3. Conect the phone to the computer and wait or the connection to be established.

Step 4. Launch HTC Wildfire S toolkit.
HTC Wildfire S toolkit

So you will have to:
  1. Install HTC Drivers
  2. Register at HTC Developers (use the button from the toolkit)
  3. Get the token ID (Unlock_code.bin file that you get by email from the HTC dev site)
  4. Submit the token ID (Submit the Unlock_code.bin file you've got from the HTC dev site)
  5. Unlock the bootloader
  6. Install recovery mode (there are GSM and CDMA versions, you must choose the correct one )

Up to here your phone is rooted, the rest of features are optional, to use if you want to flash


Sunday, February 17, 2013

Make a Sitemap Page in Blogger

This is about how to make sitemap page in blogger to show all posts you've published. This sitemap will update automatically each time you create a new post.

To make it work it is not necessary to edit the Blogger template code, just follow these steps:

  1. Create a new page (not a new post).
  2. Click on the HTML tab.
  3. Copy the following code inside:
var numposts = 1000;
var showpostdate = true;
var showpostsummary = false;
var numchars = 200;
function rp(json) {
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k <; k++) {
if ([k].rel == 'alternate') {
posturl =[k].href;
posttitle =;
var readmorelink = "(more)";
readmorelink =;
var postdate = entry.published.$t;
var cdyear = postdate.substring(0,4);
var cdmonth = postdate.substring(5,7);
var cdday = postdate.substring(8,10);
var monthnames = new Array();
monthnames[1] = "Jan";
monthnames[2] = "Feb";
monthnames[3] = "Mar";
monthnames[4] = "Apr";
monthnames[5] = "May";
monthnames[6] = "Jun";
monthnames[7] = "Jul";
monthnames[8] = "Aug";
monthnames[9] = "Sep";
monthnames[10] = "Oct";
monthnames[11] = "Nov";
monthnames[12] = "Dec";
if ("content" in entry) {
var postcontent = entry.content.$t;
} else if ("summary" in entry) {
var postcontent = entry.summary.$t;
} else
var postcontent = "";
var re = /<S[^>]*>/g;
postcontent = postcontent.replace(re, "");
if (showpostdate == true) document.write(' ' + cdyear + ' - ' + monthnames[parseInt(cdmonth,10)] + ' ' + cdday);
if (showpostsummary == true) {
if (postcontent.length < numchars) {
} else {
postcontent = postcontent.substring(0, numchars);
var quoteEnd = postcontent.lastIndexOf(" ");
postcontent = postcontent.substring(0,quoteEnd);
document.write(postcontent + '...' + readmorelink);

<script src=""></script>

Don't forget to put your web site name where I've marked it in red.
When you publish it you will see the sitemap (you can check mine).
The trick to show all published post is in these two parameters:
  • var numposts = 1000;
  • max-results=1000
If you have got more than 1000 posts just change this number to your convenience.
If you don't want to show the date beside the post title then change the line:
var showpostdate = false;

The good thing about it is that you do no need to install a widget or modify the code in your template and for some the Blog archive widget is not convenient because you've got to click on every month to see all the post listed inside.
Now you have a list with all the posts from your website in one single page.

April 2013 Update:

New version with all blog posts separated by month and year

You may like this new version better, it organizes posts by blocks of month and year, then the day number is before the post title, just take a look at my sitemap for blogger , here is the code:

var numposts = 10000;
var showpostdate = true;
var showpostsummary = false;
var numchars = 200;
var lastDate ="";
function rp(json) {
document.write('<ul style=list-style-type:none;>');
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k <; k++) {
if ([k].rel == 'alternate') {
posturl =[k].href;
posttitle =;
var readmorelink = "(more)";
readmorelink =;
var postdate = entry.published.$t;
var cdyear = postdate.substring(0,4);
var cdmonth = postdate.substring(5,7);
var cdday = postdate.substring(8,10);

var monthnames = new Array();
monthnames[1] = "Jan";
monthnames[2] = "Feb";
monthnames[3] = "Mar";
monthnames[4] = "Apr";
monthnames[5] = "May";
monthnames[6] = "Jun";
monthnames[7] = "Jul";
monthnames[8] = "Aug";
monthnames[9] = "Sep";
monthnames[10] = "Oct";
monthnames[11] = "Nov";
monthnames[12] = "Dec";
if ("content" in entry) {
var postcontent = entry.content.$t;
} else if ("summary" in entry) {
var postcontent = entry.summary.$t;
} else
var postcontent = "";
var re = /<S[^>]*>/g;
postcontent = postcontent.replace(re, "");

if (lastDate!=cdyear + monthnames[parseInt(cdmonth,10)])
    document.write('<li><h4>' + monthnames[parseInt(cdmonth,10)] + ' ' +cdyear +'</h4></li>');
    lastDate=cdyear + monthnames[parseInt(cdmonth,10)]
document.write('<li> ' + cdday +' ');

if (showpostsummary == true) {
if (postcontent.length < numchars) {
} else {
postcontent = postcontent.substring(0, numchars);
var quoteEnd = postcontent.lastIndexOf(" ");
postcontent = postcontent.substring(0,quoteEnd);
document.write(postcontent + '...' + readmorelink);

<script src="http://"></script>

Thursday, February 14, 2013

The Motorola X Phone Better than the iPhone and Samsung

Up to now Samsung and Apple have been dominating the smartphone market with 50% market share between them and have for the moment no serious competitor.
Nokia, BlackBerry, HTC, ZTE, Huawei, and Sony, all these manufacturers are in the second division and Motorola and is actually part of it.
But according to the Australian site Smarthouse, Hugh Bradlow, Director of Technology at Telstra (first operator in the country), have told his team that the future of Motorola smartphone will change the market and "put pressure on Samsung and Apple."

The Motorola X Phone is the first true smartphone produced under the control of Google, and could be released this summer, maybe on the presentation in three months at the Google I / O that will be from the 15th to 17th May. All indications are that this will be the first smartphone to be accompanied by a future version of Android (5.0 or Key Lime Pie).
But the other devices will also benefit from the new Adroid version shortly after so Motorola will have to find other features to offer if he wants to rise up its sales.

X Phone new features

Motorola 4G

According to Motorola the X Phone is the object of attention for Google and "possess software, features and capabilities that are not available in the Samsung Galaxy smartphones and Apple iPhone. The software is really powerful and it brings Google services like no other manufacturer has done in the past."

In December, the Wall Street Journal, which was the first to light the fuse, already stated that it could benefit future smartphone technology Viewdle, a company acquired by Google last year and specializes in facial recognition. The newspaper added that this X Phone is the basis for the output of a touchpad, also decked out with an X, in order to really compete with Samsung and Apple Google could implement a huge marketing plan.

Other rumors have suggested that the unit is armed with a 5-inch screen with almost no border around the smartphone, as well as 128 GB of storage and the best sensor ever offered from the manufacturer. Characteristics that have nothing revolutionary, but allow Motorola to offer a truly competitive device.

Wow! I'm waiting to see this! What else they will do? Holographic 3D projection over locations?
3D Games?

Sunday, January 13, 2013

Should I Buy Sony Xperia U?

Well, I just sold mine, so my advice is no, don't buy it. But it is just my advice.
Before buying an Xperia U decide if you like the led lighting system because you would not be able to turn it off easily.
Decide if you would like to have a phone without sd card memory (you will always be limited to the 8 Gb memory built in) .
Decide if you would like to have a phone running on Ginger Bread only (for some versions the official upgrade to Ice Cream is not available)

The proximity sensor problem

This seems to be some kind of bug. At first I though that this was a hardware problem, but not really.
Whenever I answered a call the sensor didn't detect that I had it next to my ear, so the call was ended when I touched the screen accidentaly with my chin when I smiled :)

To enter Sony Xperia U Service Menu I've typed: 
*#*#7378423#*#*  and the proximity service test was perfect, at first it was OFF then when I put my finger on it it displayed OFF, so the hardware was all right.
I also took off the screen protection but it didn't change anything.

Well, I don't want to discourage you from buying it, just think twice.
I'm not sure if Sony, which is not Sony Ericsson anymore is keeping the same standards with their Xperia series, at least not with the Xperia U.