Archive for August, 2007
What is New in WordPress 2.3 (Beta 1/2)?
0[UPDATE 2: Mark Gosh has posted a nice summary of popular blog posts talking about what's new in WordPress 2.3. Must Read.
TWP website has a new podcast that previews WordPress 2.3 at the end of it.]
[UPDATE 1: WordPress 2.3 Beta 2 was released a couple of days ago. Importers are added for Jerome’s Keywords and Simple Tagging Plugins(importer for UTW was already there; read the post). Ryan Boren talks about how the plugin developers can use the new actions added to WordPress 2.3 related to status changes of the posts(Draft -> Pending, Pending -> Published etc).]
The first beta of a new version of WordPress blogging engine, 2.3, was released a few hours ago. WordPress aficionados might already know the new major and minor features that were being planned(and some of them later shelved ;) ) for this release through mailing lists and other sources but for the others, below is a summary of a few changes that can be found in the new WordPress 2.3 interface. Go through them and if you later decide to dig deeper into these new features, you only have to download WordPress 2.3 Beta 1 Beta 2(~1MB) and give it a try in XAMPP!
What’s new in WordPress 2.3 Beta 1?

The tables used to manage the categories are now replaced by new tables to manage the tags i.e. wp_categories, wp_post2cat and wp_link2cat are replaced by the tables wp_terms, wp_term_taxonomy, wp_term_relationships. Lot of information on tag support is available on the Internet(especially email archives), so treat Google as your friend. More on database schema changes
A new state in which the draft posts can now be saved under is “Pending Review.” It is useful when not all the authors are supposed to be allowed to publish their posts to the weblog before first being reviewed by an editor or an administrator.
Which means that drafts can be of two types now: posts still under editing(Draft) and posts that are ready to be published(Pending Review); there was no good way to differentiate like this earlier. An efficient way to immediately inform the contributor that the Pending Review post has been pushed back to Draft state by the editor, perhaps with a custom message attached explaining the reason for it, is however absent. EMail/IM etc are the alternate options for now; someone can write a plugin in the future that fills this need. (More info)
Also, Manage -> Posts now contains a drop-down box from which one can filter posts belonging to different states: Draft, Pending Review, Published and Private. So it can be used as a convenient place to access all the draft posts together. Similar filtering can be done based on Categories too. To search posts based on tags or other keywords, the same old search box can be used.
A new button on the WYSIWYG editor toolbar can be used to show (and hide) a second (new) toolbar which has got additional editing buttons. These buttons allow operations such as underlining of text, font colour selection, inserting <H> tags, undo-ing, pasting directly from MS Word document etc.
I always use the plain text editor so it doesn’t matter to me how many additional buttons are added to the WYSIWYG editor! Doesn’t matter to those too who use their own favourite WYSIWYG editor in WordPress.
For those blogs that use the popular plugin Ultimate Tag Warrior to manage the tags, WordPress 2.3 Beta 1 has an importing tool to import those tags to its own native tag format(importing Simple Tagging Plugin tags and Jerome’s Keywords likely in the 2.3 final version it’s there in Beta 2). POC(Plain Old Categories) can also be converted to tags using the provided converter tool. These two options can also be accessed from the Manage -> Import page.

Download it and try it out by yourself. Or check-out the source directly from the subversion repository to keep updated with the latest changes. WordPress Planet website should keep us posted on the latest information on WordPress 2.3′s journey towards the final release(more detailed than WordPress development blog anyway).
Setting Up C++ Development Environment on Windows with EasyEclipse and MinGW
14Many people complain that configuring Eclipse+CDT/EasyEclipse IDE to work with MinGW C/C++ compiler tools on Windows doesn’t always go on expected lines. I hope the following howto would go some distance in addressing this issue. I use EasyEclipse IDE(what is EasyEclipse?) in this howto but the same procedure applies to Eclipse + CDT combination too.
To set up a C++ development environment using Eclipse+CDT/EasyEclipse and MinGW on a Windows operating system, the following steps need to be completed:
Download and Install MinGW for Windows

You will see a welcome dialog; click Next to continue. Select “Download and Install” option from the next dialog box and click Next.




Set MinGW in system PATH
The second step is to add the MinGW bin directory path to the system/user PATH variable.


You should see the version information displayed.
If you get an error that g++ command is not found, then you have not set the PATH properly. Repeat the above instructions carefully or search through the Internet to learn how to change PATH variable in Windows.
Configure EasyEclipse for C++ to use MinGW tools
The third step is to download EasyEclipse for C++ package for the Windows OS and unpack it to a directory(say, C:\easyeclipse).
Go to the unpacked directory and click on the startup.jar file to run the EasyEclipse for C++ IDE. (You can right-click on this file and send a shortcut to the desktop or pin it to the start menu or add it to quick launch panel for easier access in the future.)

You can also access project settings by right-clicking on the project name and selecting ‘Properties’.
Type the following program in the editor:
[cpp]
#include
#include
int main()
{
std::string name = “world”;
std::cout << "Hello, " << name << ".";
std::cout << std::endl;
}
[/cpp]
As soon as the file is saved, it is built automatically. The errors, if any, are highlighted by underlining them with red lines.
If you want to build the project manually, then uncheck the “Build Automatically” option from the Project menu.

Good luck!
Installing C++ Boost on Microsoft Windows for Visual Studio .NET 2003/2005/Orcas
5Boost Consultancy has created a wizard based installer for downloading and installing the correct version of Boost components on a Windows machine for Visual Studio .NET IDEs. The Installer simplifies the process of installation by getting rid of the time-consuming, and on rare occasions error-prone, process of compilation from the sources. But if you use any IDE other than Visual Studio .NET(even the old Visual Studio 6.0 IDE) then you need to use the typical Boost installation method(). Below is the procedure to install Boost for Visual Studio .NET IDEs using the Boost Installer for Windows.

Read it and press “I Agree” if you agree to the terms. Another license agreement will be displayed next(Boost Libraries license).

Read it too and press “I Agree” again if you agree to the terms.
Based on your geographical location, you can select one of the nearest location from the provided list of mirror locations. Select one or leave the default selection to select a location randomly. Press “Next”.
Then select which variant(s) of Boost library binaries you want to install. If you have absolutely no idea what to select here, then go with “Multithread Debug, static runtime” among any others you want to select. Press “Next” after making your selection(s).





Time to start testing the installation.
Testing Boost Installation in Visual Studio .NET 2003/2005/Orcas
Boost has two type of libraries : header-only(which are compiler independent) and compiled binary libraries.


[cpp]
#include
#include
[/cpp]
Add the following code with in the _tmain() function:
[cpp]
boost::any a(5);
a = 7.67;
std::cout<<boost::any_cast(a)<<std::endl;
[/cpp]


[cpp]
#include
namespace bfs=boost::filesystem;
[/cpp]
Add the following code with in the _tmain() function:
[cpp]
bfs::path p(“BoostDemo.cpp”);
if(bfs::exists(p))
std::cout< <<std::endl;
[/cpp]
I have tested the above procedure with the latest release of Visual Studio Orcas Beta too.
A NOTE:
[cpp]
#define BOOST_ALL_DYN_LINK
#define BOOST_LIB_DIAGNOSTIC
[/cpp]
Also you need to add the path to the dlls(C:\boost\boost_1_34_1\lib) to the system PATH variable(Control Panel -> System -> Advanced System Settings -> Environment Variables) before running the programs. This has to be done only once.
Also see:
Getting Started on Windows with Boost
Building Boost Libraries for Visual Studio
Building Boost for Other Compilers and Other Platforms
More EFB Posts on C++ Boost
Akismet Kills 100,001th Spam Comment on My Blog
0A couple of days ago, Akismet killed 100,001th comment of this blog.

If not for Akismet, I would’ve had to either lock-down the comment section or pass every comment through the tiresome moderation process. Lately I have come across many other tools that further help in countering the spam menace (each of them in a different way) but Akismet alone is fine for me for now. The latest statistics of this blog are like this:

A job well done, Akismet.
Asia Catches Up with GNU/Linux Distributions – A Distrowatch Report
0Distrowatch Weekly Newsletter notes in its 13th August 2007 issue that Asia is fast catching up with the readership of Distrowatch.com website, which roughly translates to a keen interest in keeping in touch with, and downloading, various GNU/Linux and BSD distributions. The following table should shed some light on this development:
Change
(JP) 328,336 347,879 +6.0%
(CN) 151,915 209,203 +37.7%
(IN) 80,889 137,702 +70.2%
(ID) 72,668 112,998 +55.5%
(TR) 67,465 101,789 +50.9%
Number of visits from Japan were very high even in 2006 but the increase in visits from India over just seven months since then is remarkable. The above four countries(other than Japan) have registered around 50% increase in the same period, India leading the table by a big margin. This is what Distrowatch has to say about it:
While Japan has been maintaining the top position since the beginning of this web site, it’s interesting to note the dramatic growth of readership in the two most populous countries in the world – China and India. With a handful of exceptions, the number of readers visiting DistroWatch has been on the increase and a total number of Asian-based readers have grown by more than 20% since a year ago.
Source: Distrowatch
Recent Comments