Some time ago I switched from Wordpress.com to Blogger.com. There are three main reasons why I did that. If you consider blogging on one of these platforms, you should read it. In this post, I will also count what price you would pay for both if you wished to customize some settings of your domain and blog.
Reason #1: Free domain attribution at blogger.com
Let's say that you don't want to have your blog on yourfancyname.blogspot.com or yourfancyname.wordpress.com but on yourfancyname.com. First, you need to register yourfancyname.com domain at one of the domain providers (it's about $10). So you would pay for it and you would just need to go to blogger settings to add a new blog address (because adding a new address on blogger.com is free), while at wordpress.com it would cost you 10$ for a domain plus 12$ for assigning a custom address to your blog. 10$ is less than 22$, so you can save 12$. As you can see, you have to pay 12$/year just because you don't want to have wordpress.com in your address.
Blogger.com 10$/year (+10$/year for domain registration)
Wordpress.com 22$/year (+10$/year for domain registration, +12$/year for a custom domain)
Reason #2: No forced Ads at blogger.com
Ok, let's say that I didn't convince you in Reason #1. 12$/year (for nothing) is not an argument for you. You register your blog at wordpress.com and write your first post, that's great! Congratulations! But wait a second, you view your post and you see that at the bottom of it is an ad (which is not relevant to your content at all). Since you don't like these ads you want to turn them off. You go to wordpress.com store and you see that you can turn them off ... for only 30$/year (again paying for nothing). At blogger.com there are no ads injected by the blogging platform.
Blogger.com 10$/year (+0$/year, because there are no ads to turn off)
Wordpress.com 52$/year (+30$/year, because you don't want to serve wordpress.com ads)
Reason #3: A way to monetize your traffic
So if you are reading the third reason, that means you are still not convinced. Let's say that after some time you've written a few really good posts, you have a nice content and while days roll on, you have more and more people who want to read your content. Maybe you would want to monetize this traffic (of course you are a hobby writer but let's assume that your traffic is so huge that you can't resist to try to monetize it). You go to wordpress.com admin panel to see what you need to do in order to start viewing ads on your site. You see that it will cost you $3,750/month (you need to upgrade to VIP account) at wordpress.com and 0$ at blogger.com (Google Ads). If you want to have ads (for free) which are intended to make money for you at wordpress.com, then you have to apply for the approval. One of the criteria of a positive consideration is big enough number of visitors. What is that number? Plus, they can always reject your request.
Blogger.com 10$/year (+0$/year, because of no cost of displaying Google Ads to earn money)
Wordpress.com 3802$/year (+3,750$/month, because you need to upgrade to VIP account)
In my opinion free is not free and wordpress.com should not write that they are serving a free blogging platform, if you need to pay money for basic services.
Why I chose blogger.com over wordpress.com as a blogging platform ?
Posted by
Unknown
Tuesday, April 2, 2013
11:04 AM
JSF 2.0 Source Code Comment
Commenting in JSF 2.0 looks just like commenting in HTML, so you need to write something like this: <!-- this is the comment -->. By default, Facelets xml parser will include your comment in a generated HTML file, so for a file like the one below:
Facelets xml parser would generate the following output:
If you don't want to include comments in a generated HTML file, you need to add the following context-param node to your web.xml file:
With javax.faces.FACELETS_SKIP_COMMENTS, the generated file looks like that:
Facelets xml parser would generate the following output:
If you don't want to include comments in a generated HTML file, you need to add the following context-param node to your web.xml file:
With javax.faces.FACELETS_SKIP_COMMENTS, the generated file looks like that:
Posted by
Unknown
Monday, March 25, 2013
5:32 AM
How to start Jetty 9 on a custom port ?
By default, Jetty 9 starts on port 8080. If you want to change it add jetty.port argument to Jetty start command:
In the above example Jetty starts on port 80.
java -jar start.jar jetty.port=80
In the above example Jetty starts on port 80.
Posted by
Unknown
Wednesday, March 20, 2013
1:46 PM
How to set up Subversion client proxy ?
To set up Subversion proxy go to %APPDATA%\Subversion directory on Windows or to ~/.subversion directory on Linux and edit the servers file. Put the following content to this file (under global section):
http-proxy-host is a proxy server (in this example it's proxy.example.com). http-proxy-port is a proxy port (in this example it's 8080). Additionally, you can also set up http-proxy-username and http-proxy-password in the same section, if you wish.
[global]
http-proxy-host = proxy.example.com
http-proxy-port = 8080
http-proxy-host is a proxy server (in this example it's proxy.example.com). http-proxy-port is a proxy port (in this example it's 8080). Additionally, you can also set up http-proxy-username and http-proxy-password in the same section, if you wish.
Posted by
Unknown
Tuesday, March 19, 2013
2:48 PM
Implementing a TODO list application in Hibernate 4.0.1 and EclipseIndigo for JBoss 7.1 AS
If you've read my previous post from the series From Zero to PrimeFaces Hero on JBoss 7.1 with Hibernate, MySQL, Eclipse Indigo and JBoss Tools, then you know that I have already explained how to configure your environment for development of JSF/JPA application on JBoss 7.1. I have also showed how to design a domain model for a TODO list application. This application will now be implemented by using Eclipse Indigo, Hibernate 4.0.1. This really simple example is intended to explain how to build a CRUD application in PrimeFaces 3.5, Hibernate 4.0.1, Eclipse Indigo and JBoss 7.1. We will also synchronize our JPA entities to create them in a database. I am going to use MySQL 5.5, so that MySQL JDBC driver is required. Since there is quite a lot to do, I've prepared a plan of tasks to perform, which is presented below:
- Configure your environment and create TODO_EAR (EAR project), TODO_EJB (EJB project) and TODO (Dynamic Web Project) in a way I've described in this post.
- Prepare your web.xml file and add JBoss 7.1 Adapter to your Eclipse Indigo in a way I've described in this post.
- Install MySQL Server 5.5.
- Create MySQL Server 5.5 database for our TODO application.
- Download and setup Connector/J (JDBC MySQL Driver)
- Add JPA 2.0 capabilities to your Dynamic Web Project, so that you are able to synchronize entities classes with tables in MySQL database server from Eclipse Indigo.
- Configure persistence settings (persistence.xml).
- Implement Hibernate entities.
- Synchronize Hibernate entities with database tables.
- Setup MySQL Driver as JBoss 7.1 AS module.
- Define Datasource.
- Deploy EAR on JBoss 7.1 AS. I've already explained how to deploy EAR unit in this context here.
How to completely remove MySQL 5.5 Server on Ubuntu Linux ?
The fastest way to remove MySQL Server on Ubuntu Linux is to type the following command in your terminal:
The first command removes software packages, while the second data directory.
The first command removes software packages, while the second data directory.
Designing a domain model for a TODO list application
As I promised in my previous article this one will be about designing a domain model for a TODO list application. Then, We will implement this domain model in Hibernate, make Primefaces user interface, configure MySQL database and deploy this application on JBoss 7.1 AS. The first thing we need to do is to define requirements for our application. Then we will go through designing a database diagram and UML class diagram for application models. To create UML diagrams I am going to use ArgoUML open source modeling tool which runs on Java platform. In order to design a database diagram I am going to use data modeling functionality included in MySQL Workbench.
Posted by
Unknown
Saturday, March 2, 2013
1:00 PM
Subscribe to:
Comments (Atom)