How to view documents using Visual Studio

View documents in Visual Studio with an amazing tool

Xpath Axes

A very useful trick for automation

Review: Spire.DataExport for .NET

A great tool for exporting data in .NET

How to install Arch Linux, step by step, for VMware Workstation (Part I)

First part of a installation tutorial for this beloved OS

How to setup a local repository in Ubuntu

The steps to have a local repo in Ubuntu

Friday, July 31, 2015

Windows 10 review: Microsoft takes back its identity

Windows 10 logo
Last night I installed Windows 10 and I've been using it. First of all, I think it's great, I really enjoy using it and the features are awesome. Here are some reason why I love Windows 10:

The start button is back, and it's better than ever

Windows 10 start button

This was one of the weakest points of Windows 8. Microsoft forgot for a moment its own good idea and left the beloved start button out of Windows 8, which resulted in several customer complains. Now the button is back, but it means more than just a button in the lower left corner of your screen. It means that Microsoft got the OS' identity back. One of the things I didn't like about Windows 8 is that the Metro view had the feeling of a completely different and independent operating system. It was like having an OS embedded into another OS. Now, we have a single and functional OS with Windows 10. Check Candy Crush installed from the Windows Store, running right on the desktop.

Windows 10 Candy Crush

Multiple desktops

This feature was absent in Windows when Mac OS and Linux had it years ago. It was something frustrating, but that's over. The multiple desktops are used seamlessly, and it actually is something that goes very well with Windows. I don't know why the did't include it before

It blazing fast

Windows 10 is much faster than Windows 8. At least, that my impression as I write this article. The windows open faster and the folders with large quantities of items (like photos) load much faster. In the past, you always had to upgrade your hardware to some extent. In this case, I'm using Windows 10 with the same hardware, but with better performance.

You can paste text in the CMD console!!

Yes, I think it was pretty annoying to write everything letter by letter, especially when you can paste in the Linux console.

Simplest OS update ever

The update to get Windows 10 was very, very simple. I didn't event to configure anything, the process is completely automatic. Also, the compatibility with my current software is excellent. So far, I didn't have problems with any application.

The Action Center

This feature contains general information about notifications, wireless connections, settings, etc. It's like the upper menu in Android. Really useful, a great addition that was missing in Windows 8.

Windows 10 action center

What I didn't like

  • The store is better, but it's not good enough yet
  • I heard about some problems with the drivers in HP machines, but I didn't face those problems. If I find something strange, I'll write about it here
  • Cortana is unavailable in many countries
There are some important features like Microsoft Edge, but I'll dedicate a complete article to that. For now, this is just a glimpse of Windows 10. And so far, I really like it!

Thursday, July 30, 2015

Review of Kiwi, the social app to ask questions

For some time I've heard about Kiwi, but I didn't pay much attention to it until now. After all, this app has been downloaded more than 10 million times.

When I first downloaded and used Kiwi, Twitter came to my mind. When it first came out, I thought it was just a waste of time, but eventually I learned how to use it properly, and now I have an active Twitter account. However, in the case of Kiwi, this is more like a way to know your friends better. It's like a little and enhanced piece of Facebook or Twitter.

Kiwi basically consists in asking questions to your contacts and answer their questions too.

The home screen shows a feed where you see the answers given by the people you are following:
Kiwi home screen

In the 'Nearby' screen, you can see you current location. You can ask question to nearby people. It is interesting that you can navigate to other locations and ask questions there. However, all of this is just for fun. Don't expect to find meaningful answers in Kiwi.
New York nearby

The next screen is just a list of question for you to answer. Tap 'NEW QUESTION' to get a new list of questions.
Kiwi questions list
Tap the thunder icon to see your notifications. Here you'll find the usual stuff: likes to your answers, new answers to your questions, etc.
Finally, tap the right icon to open your profile.

I used Kiwi for about 4 days and I had fun, but I didn't communicate better with my acquaintances, nor did I get important news (as I do in Twitter). For now, my verdict would be "A waste of time". But I thought the same about Twitter and some other social networks when they first came out. In the case of Twitter, I realized that this social network is better to get instant news and to follow celebrities. I think this is not the intended main use for it, but it finally found an area where it can be useful. Is this the same case of Kiwi? It's very hard to say. I checked my friends' feed and sometimes it turns into a simple chat, where everybody says 'hello' instead of asking questions. What do I think about this? This app won't last much. But if it does, I'll be glad because it's fun and interesting.

By the way, I had lots of crashes when I first tried to use it, but it immediately got better with a couple of updates.

Saturday, July 25, 2015

How to install combo: Arch Linux VMware, step by step, for VMware Workstation (Part III)

This is the final part of a tutorial I published in 3 parts (check part I and part II). Let's review what we have so far:
  • Create and boot a new Virtual Machine
  • Partition disk
  • Format partitions
  • Install basic system
To finish the installation, we still need to set some configurations:

Set main configuration

1. Generate the fstab file. This is a file that lists the disk partitions and other type of data resources in Linux systems. For more information, check the Wikipedia entry for fstab.To generate the fstab file:

genfstab -U -p /mnt >> /mnt/etc/fstab

2. Execute Chroot:

arch-chroot /mnt

Note: After this, the console will display something like this:

3. Set the machine's name:

nano /etc/hostname

The command will open an empty text file. Just enter the name for the machine:
Hostname Arch Linux
Once you have typed the name, press Ctrl + X. Then type 'Y' and press Enter.

4. Set the time zone. Here you have to select the correct time zone for your geographical location. I'll set the time zone to New York, just as an example:

ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

5. Set language. I'll set this to English. First, open the 'locale.conf' file:

nano /etc/locale.conf

Once inside the file, add this text: LANG=en_US.UTF-8
Arch Linux Language
That will set the language to English (United States). Now press Ctrl + X, type 'Y' and press Enter.

6. Activate language:

nano /etc/locale.gen

Look for this text: #en_US.UTF-8 UTF-8 and delete the # symbol.

locale.gen file
ress Ctrl + X, type 'Y' and press Enter.

7. Generate locales:
Enter this in the console:

Generating locales

8. Configure keyboard:

nano /etc/vconsole.conf

Add KEYMAP=en to the file for a keyboard layout in English.

English keymap

9. Install GRUB. First, just install it with:

grub-install /dev/sda

GRUB installed
Now, you need to generate the grub.cfg file:

grub-mkconfig -o /boot/grub/grub.cfg
Generate grub.cfg

10. Generate ramdisk:

mkinitcpio -p linux
Generating ramdisk
11. Set a password for root:

Password for root
Next, close Chroot with: exit.
Exit Chroot

12. Restart the system:


After the restart, if everything went well, you should see this screen:
Congratulations! You just installed Arch Linux successfully! Of course, there are some additional configurations we have to make, and also a proper GUI. I'll address these topics in future posts.

Monday, July 20, 2015

How to install combo: Arch Linux VMware, step by step, for VMware Workstation (Part II)

Note: If you didn't see the first part of this series of articles, I recommend you to check it out here.

Last time I wrote about the first steps to use VMware-Arch Linux. Now I'll continue with some steps just a little more complicated. To summarize what we have so far:
  • Create and boot a new Virtual Machine
  • Partition disk
This article will continue from there. The next immediate step is to format the partitions. Let's begin.

Format partitions

1. First, get the partition table so you know which partitions you are manipulating. To do that, enter this command in the console: lsblk
Also, you should remember which of those partition corresponds to which type. In this case:

  • sda1: boot 
  • sda2: root
  • sda3: home
  • sda4: swap

2. Format partitions. Enter the following commands:

For boot:

mkfs -t ext2 /dev/sda1 

For root:

mkfs.ext4 /dev/sda2

For home:

mkfs.ext4 /dev/sda3

For swap:

mkswap /dev/sda4
swapon /dev/sda4

3. Mount the partitions:

Mount the root partition:

mount /dev/sda2 /mnt

Create a folders for Boot and Home:

mkdir /mnt/home
mkdir /mnt/boot

Mount the Home and Boot partitions in the folders you just created:

mount /dev/sda1 /mnt/boot
mount /dev/sda3 /mnt/home

System installation

1. Install basic System. For this step, the first thing to do is to verify our internet connection. If you followed this guide and left the virtual machines's settings by default, you should have internet access. To verify that, type:

ping -c 3

You should see an output like this:

Ping output

Now, install the bases system with pacstrap:

pacstrap /mnt base base-devel

Next, a lot of packages will be downloaded and installed. When the process finished, you should see something like this:

Base system installed

Just in case, if your Internet connection fails for any reason, don't freak out, the downloads will retry when the connection comes back. This is just a detail, but it's worth mention.

2. Install GRUB. As you may already know, we need GRUB to boot the system. Install it with:

pacstrap /mnt grub-bios

As in step 4, some file will be downloaded:

Installing GRUB
3. Install Network Manager. This will help us with all the internet connections:

pacstrap /mnt networkmanager

And this is the end of the second part of this series of articles. We are almost ready to use our Arch Linux virtual machine, we just need to make some customization. For the instructions, check the third part of this series of articles at:

Wednesday, July 15, 2015

How to install combo: Arch Linux VMware, step by step, for VMware Workstation (Part I)

Arch Linux have many supporters due many different reasons. This minimalist Linux distribution expects some effort from the user, but that's the reason why some Linux fans use it. This additional effort to understand the system can bring a better understanding of the way the OS is built. However, if you are a beginner, it may be a little difficult to start using WMware-Arch Linux, so here's a detailed guide on how to do it.

Note: This is a log process, so I'll divide it into 2 articles. This is the first part, enjoy it!

For this example, I'll use a VMware virtual machine. Let's begin.

  • The Arch Linux .iso image. You can download it here.

Create and boot the Virtual Machine

1. Open VMware Workstation.
2. Go to File > New Virtual Machine
3. Select 'Custom(advanced)' and click 'Next'
4. Click 'Next'
5. Select 'Installer disc image file'
6. Browse the .iso file you downloaded earlier.
7. Click 'Next'
8. Select 'Linux'
9. In the 'Version' drop down, select 'Other Linux 3.x kernel 64 bit'. In case you have a 32 bit version, select 'Other Linux 3.x kernel'.
New virtual machine wizard
10. Click 'Next'
11. Type a name for the virtual machine and click 'Next'
12. I'll leave the Processor configuration as it comes by default. Click 'Next'

13. I'll leave the RAM value by default. Click 'Next'
14. Continue with the wizard and leave all the values by default (this is for this example). Then click 'Finish'
15. Turn the virtual machine on

Now you'll see this screen:

Arch Linux first screen
16. Select 'Boot Arch Linux (x86_64)'. For a 32 bit architecture use 'Boot Arch Linux (i686)'. Next, you'll see this:

Arch Linux console
 As with older version of Linux, most of the actions will take place here, in the console. This can be scary for many new users, but you get used to it. Let's continue.

Partition disk

OK, this part can be tricky. There are several options to partition the disk for Arch Linux. I'll use here what I think is the best way, but you can look for more details here. Also, I'll only mention the tools I use as I continue, but I won't explain the details on why I selected them, unless it is necessary.

1. Enter this command:

cfdisk /dev/sda

2. Select 'dos'
Label type dos mbr

3. Select 'New' and press Enter.
Arch Linux partition size

It is necessary to create a boot partition too, so GRUB can be installed there afterwards. So, before continuing, we'll create it:

  • Set the partition size to 150M
  • Press Enter
  • Select the partition you just created and select 'Type'. Press Enter
  • Select BIOS boot and press Enter
After that, you should see this:
MBR boot

*End of Update*

Once you have the boot partition, create another partition selecting the Free space and selecting 'New'. Now I'll follow this guide I wrote for Ubuntu some time ago. So, I'll assign 40% of the total space to the root partition. The total size of the disk I'm using for this example is 8GB, so set it to 3GB (approximately 40% of 8GB) and hit Enter, then select 'primary' and press Enter.

4. Select 'Free space' and 'New', then hit Enter.

7. Assign this partition 3.9GB. This will leave 1GB for the swap area, which is enough for the RAM memory used by this virtual machine (of course, just in this particular case). Hit Enter, select 'primary' and hit Enter again.

10. Select 'Free space', 'New' and press Enter. Now I have just 997MB for the swap area. I'll use all that space. 

11. Select the partition you just created and select 'Type', then press Enter. Then, select '82 Linux Swap / Solaris' and press Enter.
After all that, you should see this:
12. Now select 'Write' and press Enter. Type 'yes' and press Enter again.
13. Select 'Quit' and press Enter (ignore the message in 'Quit': Quit program without writing partition table. It will be saved anyway).

This is all for now, I hope it's useful! Don't forget to check the following article at:

Monday, July 13, 2015

How to setup a local repository in Ubuntu (with images)

Now I'll show you how to setup a local repository in an Ubuntu Server. This can be helpful when you want to take control of the Linux machines in your organization's environment. Let's begin:

1. Open a terminal
2. Install the Debian Package Development Tools. To do that, enter the following command in the the Terminal: 

sudo apt-get install dpkg-dev

Note: I'm using Ubuntu 14.04 LTS and the package is already installed in this version.
Ubuntu dpkg installed
3. Crete a directory for the packages. When you download any packages from the local repository, they will be saved here. To do this, just enter the following command: 

sudo mkdir -p /usr/local/mypackages

In this case, I'm using the folder: /usr/local/mypackages as the place to hold the packages fro the local repository.

4. Create a script that will scan the packages in the destination folder and will create a file that can be read by apt-get. To do this, enter the following commands in the terminal:

  • sudo gedit (this opens a text editor. If you don't have it already installed, enter: sudo apt-get install gedit)
  • When Gedit opens, paste the following text into Gedit:
#! /bin/bash
 cd /usr/local/mypackages
 dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

Gedit script

  • Go to File > Save As.
  • Go to Home > User  > bin, where 'User' is your user name (e.g., Home/Jorge/bin). If you don't have a bin folder, create it.
  • Save the file as: update-mypackages
Saving a file

  • Close Gedit
5. Make the script executable:

sudo chmod u+x ~/bin/update-mypackages

6. Open the sources.list file:
  • In the terminal, enter sudo gedit
  • From the Gedit window, click Open.
  • Browse to /etc/apt and open sources.list
Packages sources list

  • Go to the end of the file and add the following line:
deb file:/usr/local/mypackages ./

Adding a new source

  • Click 'Save' and close Gedit.
And that's all. A simple repository is running in your Ubuntu Server. Now let's test it.

1. Download the .deb file for Notepad++ here.
2. Now, copy the file into the folder you created for packages: /usr/local/mypackages (you might need to use sudo mv)
3. Run the script you created in ~/bin ('~' means your home directory) with the following command:
sudo ./update-packages
Result of the script

4. Update apt-get: sudo apt-get update
5. Now, to test if the local repository is working, disconnect from Internet. 
6. Run this command to install the package:
sudo apt-get install notepad++

If everything went well, you'll see something like this:
Installing from local repository

There's a lot to say about creating a local repository in Linux, but I think this is a good starting point. I'll be writing more about this in future posts.