2011年6月26日星期日

5 Simple Ways to Live More Fully

5 Simple Ways to Live More Fully

A good teacher once told me that it's impossible to live every moment to the fullest. (Fun fact: she wasn't a yoga teacher.) She was right. We miss moments all the time. If we obsessed over fully living them all we might spontaneously combust, or appear intensely hyper and loony. Her simple message brought awareness to all the moments that we do miss, that we dull out on, ignore, or choose not to plug into. We tune out for all sorts of reasons. We're tired, depressed, uninterested, bored, or simply lost in thought about the million other places we need to be. We're not present. What does that even mean anyway? I know I have been put off in the past by so many new age teachings telling me in convoluted ways how to tap into the earth energy and blossom my inner bumble bee . . . or whatever. Sounds like more distractions competing for attention, when what we really need is a little quiet.

When we focus mostly on our immediate needs, wants and desires, we may achieve some of them, but hardly feel satisfied. When we feel connected to ourselves on a deeper level, we get happy. We feel safe. This doesn't happen when we're thinking about channeling our earth mother, or about how connected we are. It just happens when we get quiet, watch, and listen. It happens when we pay attention without thinking "I'm paying attention." Best of all, what happens then is we're able to connect with others and catch some of those precious moments that are always there. What's the point? In these small moments lives a vibrant, renewable source of inspiration and creativity that fuels all things interesting, inspirational, joyful and fun.

Ever caught someone's eye on the street and shared a simple smile? Sure, we all have. Those moments of innocence connect us deeply with our own potential and are available for us to enjoy whenever we choose. We only have to be willing to wake up.

5 Simple Ways to Live More Fully.

1. Observe. Take a look around. Watch people. Watch nature. Watch the sun and the clouds. The world is set up for us to observe. Check it out.

2. Take in. In order to take in we have to soften. When we have built up armor against all the bad things we think might happen in the world, we have a false sense of protection and have only built up isolation. We can start where we're comfortable and build from there. Allow yourself to take in a sappy romantic movie at home. When vulnerability becomes just another feeling like excitement, we become more familiar with it and can allow it to flow through us.

3. Respond. We have to train ourselves in response just like we train ourselves in taking in. Our reactions are colored with our psychology and our mood. It takes some conscious effort to clear muddled psychology and make room for authentic response. When we find this clarity, we get to experience a gratifying release and much deeper relating.

4. Pay attention. Paying attention to what we allow ourselves to pay attention to is a tricky thing. It's like being in two places at once, but completely worth the discipline. We can react mindlessly or respond mindfully. It's up to us. When we turn on our observation capabilities we become much more in the moment, and much more powerful. Psychic powers have been known to develop from consistent practice of paying attention. It's available to us all. It's all in what we choose to practice.

5. Enjoy. Without a sense of lightness, life can become quite a drag. Our days fill with mundane tasks we need to complete and secret desires that lead to anxiety. Have fun and enjoy your life. Might as well while we're here.

 

 

 

Follow Tara Stiles on Twitter:www.twitter.com/tarastiles



How To Make Any Firefox Add-on Compatible with All Versions

How To Make Any Firefox Add-on Compatible with All Versions

posted on March 11, 2009 by Joel Reyes

firefox addons compatibilitySometimes trying out newer versions of Firefox, especially ones that are still in beta, comes at a cost. Since the version you're running is so new, add-on developers haven't had the chance to update their add-ons to work with the newer versions.

So this is when you stumble upon an add-on that conveys the following message to you: "This add-on is for older versions of Firefox".

firefox extensions compatibility

Fix Incompatible Add-ons

Since your sights are set on using Firefox extensions that keep telling you they're incompatible with the version you have, and downgrading a version or two isn't an option, now you can discover a nifty tool called Nightly Tester Tools.

firefox addons

Ironically this is a Firefox add-on that will help you make all other incompatible extensions compatible with the browser version you're running.

What's Next

The first step you need to take is to download Nightly Tester Toolshere, if you haven't already.

Next if you still have the extension that was disabled when you upgraded to a newer version of Firefox in your add-ons menu, then you will go to Tools/Add-ons and right-click on your disabled extension, then choose Override Compatibility.

Now it will ask you to confirm your selection by clicking Force Install.

The last step involves restarting Firefox to have your add-on fully working.

Bonus Features

Here you thought it was the end of this add-ons story but actually there are a few other features that this extension allows you to take full advantage of.

With Nightly Tester Tools you're also able to take screenshots of any webpage and save them in JPEG format. You can easily restore tabs from a previous session if it just so happens that your PC froze and you didn't have time to properly close your browser window.

Feel free to test all other Nightly Tester Tools features and let us know how you like them in a comment below!

Making your add-on compatible with Firefox 4

Firefox 4 beta 7 is out, and now is the best time to evaluate your add-on's compatibility with the next major Firefox release. This is the first "feature frozen" release, meaning that there will be no more major changes performed to the UI, APIs or features in Firefox. Other than bug fixes and stability improvements, this the Firefox that will make it to the public, and you should be able to upgrade your add-on to work for this beta without having to worry about something being broken in the following betas and release candidates. Firefox 4 is coming! If you want your add-on to be compatible, the time is now.

How can you keep track of releases? One way is to download the latest beta and check for updates regularly. New versions are normally being released every few weeks. You can also visit theReleases page regularly. Finally, you can follow the Mozilla blogand keep up with Firefox news.

In this blog post I'm going to cover all breaking changes introduced in Firefox 4 that I'm aware of, including the ones I mentioned on my previous 2 posts (Part 1Part 2). Firefox 4 is the largest release so far in terms of code and API changes, so there's likely something on this list that affects your add-ons. This list is as thorough as I could manage to make; my objective is to make it as easy as possible for you to update your add-on so your users won't have a hard time deciding if they should update their Firefox or not.

Add-on Packaging and Development Environment

In order to improve Firefox performance, a lot of work is being done to improve file loading and processing at startup. This includes add-on files as well, so there are a couple of changes that concern us.

Packed extensions

Firefox 4 will ship with most code files packaged in a single JAR file, also referred to as Omnijar. Reading files from a package is generally much more efficient than reading them independently from the filesystem, so keeping as many files as possible packaged together is a performance win, specially on mobile platforms. The same idea is now extended to add-ons, and by default they will be installed in the profile folder without unpacking them. There are some consequences to this:

  1. Some add-ons will not work without unpacking, notably add-ons with binary components or other libraries. This also affects dictionaries and add-ons that include search plugins or window icons. Those add-ons that need to be unpacked must add an unpack flag to their install.rdf manifest.
  2. If you read any files that are contained in your XPI from the profile dir, this won't work anymore. You can extract them using the chrome protocol or the nsIZipReader component, or find other ways to generate them. You can also use the unpack flag if nothing else works.
  3. You can still have you working directory in your profile as you did before. The extension loader will check for either the XPI package or the unpacked directory. However, for the final build you should aim to have your add-on installed without unpacking.
  4. It's also recommended that you move away from the previously recommended practice of packaging all chrome files in a JAR. Since the XPI is not unpacked anymore, having the JAR (a package within a package) only adds overhead.

Caching

Firefox is now caching code and other resources more aggressively. To make sure that your development profile is always picking up the changes, you should run Firefox 4 with the -purgecaches command line option. This will clear all relevant caches, to make sure you're running the latest code.

The Profile Manager

The Profile Manager tool we've grown accustomed to is being taken out of Firefox. There's a long discussion surrounding the reasoning behind this decision. In a nutshell, the profile manager hasn't been updated for a very long time and is lacking in features, on top of some of its code causing slowdowns at startup. Needless to say, it won't be removed without a suitable replacement. Bug 539524 is tracking this new development. The new tool will work independently from Firefox, kind of like a launcher script, and is meant to be more robust than its predecessor. Since this tool is not bound to the Firefox 4 release timeline, it could be finished afterFirefox 4. You can always use the Firefox 3.6 Profile Manager in the meantime, of course.

Global extension installation

The -install-global-extension and -install-global-theme command line options have been removed. Global installation has always been a tricky subject, but there will surely be discussions in the future on how to move this forward while respecting users. For alternatives on how to automatically install add-ons, read this documentation at MDC.

XPCOM

XPCOM Registration

Components now need to be explicitly declared in thechrome.manifest file. This includes binary components as well. A number of startup observer topics have been removed, leaving only one: profile-after-change. Listeners and category registrations also need to be declared in the manifest and, because of this, some category names have changed. More details at MDC:XPCOM Changes in Gecko 2.0.

More

xpcnativewrappers=no is going away. This practice has always been considered unsafe, and there are safer alternatives for it.

The new Gecko SDK is still not available at the MDC page. Developers that use binary XPCOM have to build it themselves from source. The source code for beta releases is available at theFTP site.

The old and deprecated nsIPref interface has been removed. This shouldn't affect anybody using the recommended nsIPrefService or the FUEL library.

UI

Toolbars

Toolbar buttons have different dimensions. Here are the current icon sets for the major platforms:

  • Windows. Icons are 18 x 18 px. They have a very simple style and appear to be same for Aero and non-Aero.
  • Mac OS X. Icons are 20 x 20 px. Simple style as usual, but this time around the icons don't include the surrounding button style, making them more consistent with other platforms.
  • Linux. Icons are 24 x 24 px. As usual, the theme relies mostly on Gnome icons.

This is a radical departure from the 3.6 icons. Only Linux retains the same icons and icon sizes, so you'll need to create new toolbar icons for Firefox 4 unless you want to deal with scaling (you don't). Fortunately, the chrome manifest file allows you use someconvenient flags that allow you to easily separate skins depending on OS and application versions.

Also, if your add-on creates a new toolbar with an overlay, you may find that your toolbar is not showing up. This happens when your toolbox element overlay is a child of the window element, instead of a direct child of the overlay element. Moving the node out fixes the problem.

The Firefox App Menu

The main menu (File, Edit, View, etc.) is now hidden by default for Firefox 4 on Windows. Instead, there's a single button that opens a simplified Firefox App Menu. This menu includes the most used menu features, making users' lives easier. The "classic" menu can still be toggled using the Alt key.

If your add-on is only discoverable through the main menu, you'll want to overlay the app menu as well. There's no exclusive spot for extension menu items, so you should study the menu and identify the best one for yours, and then find the right ids for your overlay.

The Statusbar

It's gone. It has been replaced with the Add-on Bar.

By default, there will be no more chrome at the bottom of the browser window. If an add-on adds an icon or something else to the Add-on Bar, it will appear in the same location and with a similar style as the current statusbar. The Add-on Bar has the advantage that it is a proper toolbar, and it may allow user customization in the future (but not in Firefox 4?). It has the disadvantage of being turned off by default, and also being thicker, meaning that users will not be very welcoming of add-ons that add stuff down there.

For backward compatibility, the old statusbar is now completely contained in the Add-on Bar. So, if your add-on overlays the statusbar, it will continue to work. This is only a transitory solution, so you should look into moving your buttons out of the statusbar and into the Add-on Bar as soon as possible.

Tabs

Beta 4 shipped with a new feature called Firefox Panorama(formerly known as Tab Candy). This is a major new feature and a new way to look at and manage tabs in Firefox. Unfortunately this also means that some tab manager add-ons may break due to the changes introduced in the Firefox tab code. There's a new button in the tab bar that triggers Panorama, and also a tab context menu option.

Tabs appear on top by default. There is a preference that controls the location of the tab strip and toolbars.

App tabs. It is now possible to toggle tabs into app tabs, which basically means they can't be easily closed and their titles are hidden, only showing the favicon.

The Add-on Manager

Firefox 4 has an overhauled Add-on Manager, no longer opening as a separate window but as a new tab. There's much more room for add-on information, and the space for your add-on icon is now 64 x 64 px. The old 32 x 32 px icons still look OK (they are not scaled), but you'll probably want to upgrade. Scaling down to 32 x 32 is not too bad, so you can include the larger icon without having to worry too much about backward compatibility.

The Add-on Manager backend was also overhauled. The nsIExtensionManager interface is no more, along with its RDF storage. Add-on metadata is now stored in a SQLite database, and the Add-on Manager is now a JS Module named AddonManager. A key difference in this new interface is that requesting add-on metadata is asynchronous. This applies to the FUEL library as well, so every add-on that requests add-on data is affected. This is particularly delicate for add-ons that have to fetch and deal with this data at startup. However, if you're also trying to follow ourstartup performance recommendations, you should already be planning on implementing an asynchronous startup process anyway.

XUL and Overlays

The DOM surrounding the tabs and their internal browser elements has changed to allow easier overlaying. However, this means that if your code browses the DOM using parentNode, like to get access to the associated notificationbox of a tab, you may find that this code no longer works. This is something you shouldn't be doing anyway, since the gBrowser object and its related objects have convenient methods to access these nodes.

The TabCloseTabSelect and TabOpen events no longer bubble up to the tabbrowser element, also known as gBrowser. Event listeners for these events should be added togBrowser.tabContainer.

Remote XUL

Remote XUL is a rarely used feature in Gecko browsers that allow developers to create websites using XUL and XBL instead of (or along with) HTML. Since XUL support is limited to a few browsers, it never made much sense to create websites with it. However, it has been used successfully on a number of internal business applications (also known as "XUL dark matter"), and even some public websites.

Remote XUL has been a big maintenance problem, and has been the source for numerous bugs and security problems. For this,remote XUL will be removed in Firefox 4. Luckily, HTML 5 already includes a fairly robust box model, so the main loss here is that web developers will not be able to use XBL on webpages anymore. This also means that inserting XUL into (remote) HTML pages will not be possible anymore, not even for add-ons in some cases. If the code is loaded from a chrome URL, like in an iframe or an XBL binding, this should continue to work.

In a nutshell, XUL content from remote sites of even the local file:// protocol won't load. Not all is lost, however. To enable a transition period from XUL to something else, remote XUL support hasn't been entirely removed, only disabled. There's a whitelist where individual domains can be added in order to enable XUL and XBL on them. This whitelist is not accessible from the UI, though, so I've created the Remote XUL Manageradd-on to fill this gap. You should be able to easily manage the whitelist with this add-on.

Other

  • JS objects can no longer be passed between threads, making the Thread Manager object fairly useless for add-on developers. This is a last minute fix that will hopefully affect just a few developers, but it will have a high impact because there are few alternatives available at the moment. There are discussions about improving the ChromeWorker interface so that it becomes a suitable replacement, but it remains to be seen if this will happen in the coming betas.
  • User Agent strings have been minimized for privacy reasons. In order to align with these efforts, AMO Editors will be looking for UA manipulation in extensions. We will forbid any unnecessary modifications. Unless your add-on really needs to change the UA, you should remove this code.
  • There's one bug that affects theme developers on Windows, and causes a black box to appear near the titlebar. There are a few workarounds explained in this Mozillazine thread.
  • JSON Strings with trailing commas are no longer accepted by the SpiderMonkey JSON parser.
  • The network redirects API has changed to be asynchronous now. This affects any extension registering in the "net-channel-event-sinks" category, breaking all redirects.
  • Dropping a URL into the sidebar now has the default behavior of trying to open this URL. If you handle drag and drop in your sidebar, make sure you use preventDefault.
  • Firefox 4 will support the 32 and 64-bit Intel architectures on Mac, and has dropped PPC support. List of supported platforms.

Documentation and Help

We're trying to publish as much documentation about Firefox 4 as possible in order to help add-on developers get everything right the first time. The Firefox 4 for Developers article is the official source for everything that's new in Firefox 4, including breaking API changes. There are, however, many things included in this post that are not included in the article. I tried to cover everything I'm aware of, and if anything else changes or is discovered during the release process, it will be documented in this blog.

If there's anything you think I've overlooked, or you want to discuss about Firefox 4 compatibility, this thread in the Add-ons Forum is the best place to go. You can also join our #extdev IRC channel for one-on-one live help. I usually hang out on that channel, but there are also lots of other experienced developers willing to help. Just join the channel and ask your question.

Finally, if you have a featured add-on, or you want your add-on to qualify to be featured on AMO, you should take into consideration that after Firefox 4 RC1 is released, add-ons must be compatible with the latest release in order to qualify. RC1 is scheduled for January 2011, so make your plans accordingly.

Happy coding!



CMOS checksum error.

CMOS checksum error.

Issue

CMOS checksum error.

Cause

This issue is caused when the CMOS values are incorrect. This issue can occur because of any of the below possibilities.

  1. Bad or old CMOS battery.
  2. BIOS update.
  3. Disconnecting power from computer without shutting down computer

Solution

Bad or old CMOS battery

Reboot the computer. If error still occurs after rebooting the computer enter CMOS setup and check all values, this includes verifying the time and date are correct. Once everything has been verified and changed make sure you save and exit CMOS setup.

If everything appears to be correct and the issue persists try resetting the CMOS values to the defaults or Reset Configuration Data.

Note: If this issue continues to occur after you turn off your computer off it is possible that the CMOS battery may be failing or already bad. Before considering replacing the CMOS battery try leaving your computer on for several days.

Computer improperly turned off

If the computer was had the power disconnected while it was still running it is possible this could cause the CMOS to become corrupt. Ensure that the computer is ready to be shut off before turning off the computer. If you have a laptop computer make sure the battery is charged before disconnecting the power connection.

If the CMOS values have become corrupted enter the correct values in CMOS setup and then save and exit CMOS setup to resolve your issues.

BIOS update recently performed

If a BIOS update has been run on the computer the values stored in CMOS may have been reset. EnterCMOS setup re-enter all values and then save and exit CMOS setup.

If you're unable to enter the CMOS setup or after running a BIOS update your computer no longer keeps its values the incorrect BIOS update may have been installed for your computer or the version downloaded may be corrupt. We suggest trying to update the BIOS again or reverting back to an earlier version.

CMOS checksum error

Most likely the battery on your system board is kaput. They are cheap, easy to find at most electronics retailers, and pretty simple to replace.

After opening the case of your system unit, look for something about the size and shape of a quarter mounted on the system board. Usually the battery sits under a tight clip and you can remove it by lifting the clip. Sometimes they snap into a socket and you have to push a little tab to release them.

After replacing the battery, start up your computer and press the appropriate key to enter the BIOS setup screen. (Usually it's the DELETE or INSERT key. Watch the screen for instructions or consult your manual.)

Set the system clock to the correct time, then save and exit. If your computer works normally now, you're all done. If it doesn't recognize one or more hard drives, go back into Setup and look for the hard drive "Auto config" or similar. Sorry if that's a little vague, but every BIOS is different, so it's impossible to give more detailed instructions. Poke around a bit, you'll find it!



2011年6月25日星期六

PDF Download convert any web page to pdf

PDF Download lets you convert web pages into high-quality PDF files free from any web browser, including Google Chrome, Safari, Firefox, Internet Explorer and Opera.

Just drag this Save Page as PDF bookmarklet link onto your browser's Bookmarks toolbar, and wherever you find a web page to convert, simply click Save Page as PDF and wait a moment to receive your PDF copy.

What is a bookmarklet?

Bookmarklets are links you can add to your browser's toolbar area.
Because they typically contain JavaScript, they let you perform actions that are more complicated than standard bookmarks, which just take you to a web page. In the case of the PDF Download bookmarklet, clicking on it sends a request to our conversion server to convert the page you are currently viewing and then prompts you to download the newly created PDF file.


Setting up PDF Download

For step-by-step instructions for all browsers, follow the links below.

Google Chrome

Safari

Firefox (also see full add-on)

Internet Explorer (also see full add-on)

Opera


Google Chrome


  1. Make sure the Bookmars Bar is visible. If it's not, select the Always show bookmarks bar option from the Tools menu.
  2. Drag this link Save Page as PDFup to your Bookmarks Bar.

Safari


  1. Make sure the Bookmarks Toolbar is visible. If it's not, go to the menu View > Show Bookmarks Bar.
  2. Drag this link Save Page as PDFup to your Bookmarks Bar.

Firefox


  1. Make sure the Bookmarks Toolbar is visible. If it's not, go to the menu View > Toolbars.
  2. Drag this link Save Page as PDFup to your Bookmarks Bar.

Internet Explorer


  1. Make sure your Links Toolbar is visible. If it's not, right click on any part of the menu bar and make sure Links is checked.
  2. Right click on Save Page as PDFand click Add to Favorites.
  3. In the Create in drop down, click the Links folder so that it appears in your Links Toolbar.

Opera


  1. Make sure the Personal Baris visible. If it's not, go to the menu View > Toolbarsand select it.
  2. Drag this link Save Page as PDFup to your Personal Bar.


Screenshot



Drag this bookmarklet to the Google Chrome bookmarks bar

Drag this bookmarklet to the Google Chrome bookmarks bar: Google Bookmark

Arraste esse marcador até a barra de favoritos do Google Chrome: Favorito do Google

Any time you visit a webpage that you want to save to your Google Bookmarks page, simply click the bookmarklet in the bookmarks bar.

Arrastra el bookmarklet a la barra de marcadores de Google Chrome: Marcadores de Google

Sempre que você visitar uma página da web que deseja salvar na sua página de favoritos do Google, basta clicar no marcador na barra de favoritos.

Ziehen Sie dafür folgendes Bookmarklet in die Lesezeichenleiste von Google Chrome:Google-Lesezeichen 

Cada vez que visites una página web que quieras guardar en Marcadores de Google, haz clic en el bookmarklet de la barra de marcadores.

Pour ce faire, faites glisser le favori intelligent dans la barre de favoris de Google Chrome :Google Favoris

Bei jedem Besuch einer Webseite, die auf der Seite der Google-Lesezeichen gespeichert werden soll, klicken Sie einfach auf das Bookmarklet in der Lesezeichenleiste.

Chaque fois que vous consultez une page Web que vous souhaitez enregistrer sur votre page Google Favoris, il vous suffit de cliquer sur le favori intelligent dans la barre de favoris.



2011年6月23日星期四

save Text As

extensions.easydragtogo.custom.saveT

extAs
if(target == "text" && url){var fp =

Components.classes

["@mozilla.org/filepicker;1"].createInst

ance

(Components.interfaces.nsIFilePicker);

fp.init(window, null, fp.modeSave);

fp.defaultExtension = "txt";

fp.defaultString = url.substr(0,

20).replace(/[\\\/\*\|\?\n:"<>]/g, "-") +

".txt"; fp.appendFilters(fp.filterText);

fp.appendFilters(fp.filterAll); if

(fp.show() != fp.returnCancel){var

conv = Components.classes

["@mozilla.org/intl/scriptableunicodec

onverter"].createInstance

(Components.interfaces.nsIScriptableU

nicodeConverter); conv.charset = 'UTF

-8'; var text =

conv.ConvertFromUnicode

(url).replace(/\n/g, "\r\n"); var stream =

Components.classes

["@mozilla.org/network/file-output-

stream;1"].createInstance

(Components.interfaces.nsIFileOutput

Stream); stream.init(fp.file,

0x02|0x20|0x08, 0666, 0);

stream.write

("\u00EF\u00BB\u00BF",3);

stream.write(text, text.length); var fin

= conv.Finish(); if(fin.length > 0)

stream.write(fin, fin.length);

stream.close();}}




if(target == "text" && url){var fp =

Components.classes

["@mozilla.org/filepicker;1"].createInst

ance

(Components.interfaces.nsIFilePicker);

fp.init(window, null, fp.modeSave);

fp.defaultExtension = "txt";

fp.defaultString = url.substr(0,

20).replace(/[\\\/\*\|\?\n:"<>]/g, "-") +

".txt"; fp.appendFilters(fp.filterText);

fp.appendFilters(fp.filterAll); if

(fp.show() != fp.returnCancel){var

conv = Components.classes

["@mozilla.org/intl/scriptableunicodec

onverter"].createInstance

(Components.interfaces.nsIScriptableU

nicodeConverter); conv.charset = 'UTF

-8'; var text =

conv.ConvertFromUnicode

(url).replace(/\n/g, "\r\n"); var stream =

Components.classes

["@mozilla.org/network/file-output-

stream;1"].createInstance

(Components.interfaces.nsIFileOutput

Stream); stream.init(fp.file,

0x02|0x20|0x08, 0666, 0);

stream.write

("\u00EF\u00BB\u00BF",3);

stream.write(text, text.length); var fin

= conv.Finish(); if(fin.length > 0)

stream.write(fin, fin.length);

stream.close();}}


2011年6月22日星期三

Gustaf Emil Mannerheim

Carl Gustaf Emil Mannerheim - Wikipedia, the free encyclopedia

Baron Carl Gustaf Emil Mannerheim (Swedish pronunciation: [ˈkɑːrl ˈɡɵsˌtɑf ˈeːmil ˈmanːərˌheim]) (4 June 1867 – 27 January 1951) was theCommander-in-Chief of Finland's Defence Forces during World War II, Marshal of Finlandand a politician. He was Regent of Finland(1918–1919) and the sixth President of Finland(1944–1946).

Mannerheim was born in the Grand Principality of Finland, a territory of Imperial Russia, into a family of Swedish-speaking nobles settled in Finland since the late 18th century. His paternal German ancestor Marhein had emigrated to Sweden during the 17th century.[1] His maternal ancestry has its roots in Södermanland, Sweden.[2]

He made a career in the Russian army, rising to general. He also had a prominent place in the ceremonies for Tsar Nicholas II's coronation and later had several private meetings with the Russian Tsar. After the Bolshevik revolution, Finland declared its independence but was soon embroiled in a civil war along class lines. The workers overwhelmingly held a socialist ("Red") creed; whereas the bourgeois, farmers, and businessmen held a capitalist ("White") creed. Mannerheim was appointed to be the military chief of the Whites. Twenty years later, when Finland was at war with the Soviet Union from 1939–1944, Mannerheim was appointed commander of the country's armed forces.

The Mannerheim family descends from aGerman businessman and mill owner from Hamburg, Hinrich Marhein (1618–1667), who emigrated to Gävle in Sweden and changed his name to Henrik. His son Augustin Marhein changed his surname to Mannerheim, and was raised to the nobility in 1693. His son, an artillery colonel and a mill supervisor, Johan Augustin Mannerheim, was raised to the status of Baron at the same time as his brother in 1768. The Mannerheim family came to Finland, then an integral part of Sweden, in the latter part of 18th century. (It was long believed that Hinrich Marhein had emigrated to Sweden from theNetherlands, but recent studies have shown this belief to be erroneous).[1] Mannerheim was also of Scottish ancestry on his paternal side, his ancestor George Wright (the founder of the Von Wright line of Finnish nobility) having emigrated from Dundee to Sweden in the 17th century.[3]

Mannerheim's great-grandfather, Count Carl Erik Mannerheim (1759–1837), had held a number of offices in Finland's civil service during the early years of the autonomous Russian Grand Principality of Finland, including membership in the Senate. In 1825, he was promoted to the rank of Count (in Finnish Kreivi, in Swedish Greve). Mannerheim's grandfather,Count Carl Gustaf Mannerheim (1797–1854), was a renowned entomologist, and served as President of the Viipuri Court of Appeals. Mannerheim's grandmother Countess Eva Wilhelmina Mannerheim née Schantz was one of the leading figures in Finnish society.[citation needed]

Mannerheim's father, Carl Robert, Count Mannerheim (1835–1914) was a playwright who held liberal and radical political ideas, but was an unsuccessful businessman. Mannerheim's mother, Hedvig Charlotta Helena (Hélène) von Julin (1842–1881), was the daughter of the wealthy industrialist Johan Jacob von Julin, who owned the Fiskars ironworks and village. Carl Gustaf Mannerheim was born in the family home of Louhisaari Manor in Askainen. As the third child of the family he inherited the title ofBaron (in Finnish Vapaaherra, in SwedishFriherre; only the eldest son would inherit the title of Count). Despite his businesses, his father ran into difficulties in the late 1870s. He suffered from a hypomania personality disorder, which manifested itself in his being overly optimistic in financial dealings. His addiction to gambling worsened the situation and he went bankrupt in 1880. He was forced to sell Louhisaari manor and other landed estates along with his large art collection to cover his debts. He left his wife and moved to Paris with his mistress, becoming abohemian.[4]

Countess Hélène, shaken by the bankruptcy and her husband's desertion, took their seven children to live with her aunt Louise at this aunt's estate in Sällvik. Hélène died the following year from a heart attack, caused by her shame and depression.[5] Her death left the children to be brought up by relatives, making Gustaf Mannerheim's maternal uncle Albert von Julin his legal guardian.[6]

Due to the worsened family finances and Gustaf Mannerheim's serious discipline problems in school, Albert von Julin decided to send him to the school of the Finnish Cadet Corps in Haminain 1882 to learn self-discipline (something he excelled in as an adult) and a profession.[7]Besides his mother tongue, Swedish, Mannerheim would learn to speak Finnish,Russian, French, German and English.[8][9]However, due to his service in the Russian armed forces from 1887 to 1917, Mannerheim forgot most of the Finnish he had learned in his childhood, and would have to learn the language again in later life.[8][9] He also spoke Polish, Portuguese and understood some Mandarin Chinese.[citation needed]

In his youth, Gustaf Mannerheim also had to learn how to budget and economize, due to his family's worsened financial status. He was humiliated by having to ask his uncle Albert for money for every small purchase. He was also forced to read his uncle's and other relatives' numerous exhortations to frugality and good conduct.[10] The disciplinary problems continued.[6] Mannerheim heartily disliked the school and the narrow social circles in Hamina. In the end, he rebelled by going on leave without permission in 1886, - for which he was expelled from the Finnish Cadet Corps.[10]

As a military career in the Finnish army was closed to Gustaf, the only choice left was a career in the Russian armed forces. Young Gustaf was not averse to this idea. His first choice had been, while still in the Finnish Cadet Corps, to enter the Imperial Page School in St Petersburg. But his report from the Finnish Cadet Corps, with his bad conduct at school, made this impossible.[11]

After spending some time with Albert von Julin's brother-in-law, Edvard Bergenheim, atKharkov, in modern Ukraine - where he received lessons in Russian[12] - Mannerheim attended the Helsinki Private Lyceum, passing his university entrance examinations in June 1887.[13] Now he had a better school report to show than the one from the Finnish Cadet Corps. He wrote to his godmother, Baroness Alfhild Scalon de Coligny, who had connections at the Russian court, to help him enter the Nicholas Cavalry School. His real wish was to join the Chevalier Guard, but his relatives balked at the costs, so he dropped it. His godmother invited him to her husband's country house, Lukianovka, in the summer of 1887. There Gustaf worked to improve his Russian. While in Russia, he spent some time at a military camp at Chuguyev, which strengthened his decision to choose a career in the military.[13]

At the end of July 1887, Gustaf was informed that he could take the entrance examination of the Nicolas Cavalry School in St. Petersburg. He passed it and swore his soldier's oath to the Tsar of Russia on 16 September 1887.[14] He graduated in 1889 tenth in his class after having fallen from second after a drunken argument about Finnish autonomy with a superior officer.He swore to never drink to excess again.[15]. Mannerheim was commissioned as aCornet. He was posted to the 15th Alexandriyski Dragoons at Kalisz on the German border.[citation needed]

[edit] An officer in the Imperial Russian Army

In January 1891, Mannerheim was transferred to Her Majesty's Maria Feodorovna's Chevalier Guard in St Petersburg - a position in which his height (he stood at 187 cm (6' 1½")) was an advantage, and one which also led to his being given a prominent place in the ceremonies for Tsar Nicholas II's coronation in 1896.[9] In 1892, Mannerheim's godmother, Countess Alfhild Scalon de Coligny, arranged for him to be married to wealthy and beautiful noble lady ofRussian-Serbian heritage[17] Anastasia Arapova(1872–1936), the orphaned daughter of Major-General Nikolai Arapov.[18] They had two daughters, Anastasie (1893–1978) and Sophie(1895–1963); a third child, a son, was stillborn. Anastasie would later convert to Catholicismand become a Carmelite nun in England. Mannerheim separated from Anastasia Arapova in 1902 and they were divorced in 1919.[19]

Mannerheim served in the Imperial Chevalier Guard until 1904, though he was posted to the Imperial Court Stables Administration from 1897 to 1903. Mannerheim specialised as an expert on horses, buying stud stallions andspecial duty horses for the army. In 1903, he was put in charge of a display squadron and became a member of the equestrian training board of the cavalry regiments.[20]

After the separation from his wife, Gustaf Mannerheim's financial situation became bleak. This was exacerbated by gambling losses. He became depressed, which he tried to solve through a change of environment. Mannerheim volunteered for duty in the Russo-Japanese warin 1904. In October 1904, he was transferred to the 52nd Nezhin Dragoon Regiment inManchuria, with the rank of Lieutenant-Colonel. He was promoted to Colonel for his bravery in the Battle of Mukden in 1905.[21]

On returning from the war, Mannerheim went on an informal vacation among his relatives in Finland and Sweden 1905–1906. As one of the baronial branch of his family, he was a member of the Estate of Nobility in the last session of theDiet of Finland.[citation needed]

When he returned to St. Petersburg, he was asked if he would like to make a journey throughTurkestan to Beijing as a secret intelligence-officer. General Palitsyn, Chief of the Russian General Staff, wanted accurate, on-the-ground intelligence about the reform and modernization of the Qing Dynasty. The Russians wanted to know the military feasibility of invading Western China, including the provinces of Xinjiang and Gansu, in its struggles with Britain for control of Inner Asia known as "The Great Game." [22] After much deliberation, Mannerheim, disguised as an ethnographic collector, joined the French archeologist Paul Pelliot's expedition in Samarkand in Russian Turkestan (now Uzbekistan). From the terminus of the Trans-Caspian Railway in Andijan, the expedition started in July 1906, but Mannerheim spent the greater part of it alone, after having a falling out with Pelliot on their way to Kashgar in China's Xinjiang province.[23]

With a small caravan, including a Cossack guide, Chinese interpreter and Uyghur cook, Mannerheim first trekked to Khotan in search of British and Japanese spies. Upon returning toKashgar, he headed north into the Tian Shanrange, surveying passes and gauging the attitudes of Kalmyk, Kazakh and Kyrgyz tribes towards the Han Chinese. He arrived in the provincial capital of Urumqi, and then headed east to Turpan, Hami and Dunhuang in Gansu province. He followed the Great Wall of China through the Hexi Corridor, and investigated a mysterious tribe known as Yugurs.[25] From Lanzhou, the provincial capital, he headed south into Tibetan territory and the lamasery of Labrang, where he was stoned by xenophobic monks.[26] He eventually made it to Xi'an,Zhengzhou and Kaifeng in Central China. AtZhengzhou, he took a train to Taiyuan, the capital of Shanxi province, and then trekked to the sacred Buddhist mountain of Wutai Shan, where he met the Dalai Lama, who was launching a nascent campaign to free Tibet from Chinese Imperial rule. Mannerheim gave the Tibetan pontiff his own pistol as a gift and for protection against the Chinese.[27] Mannerheim then headed north beyond the Great Wall into steppe traditionally occupied by Mongol herders. He arrived in Hohhot, the capital of Inner Mongolia, and found the Mongols in a rebellious mood because of a corrupt military Governor who was colonizing Mongol pasture lands with Han Chinese farmers.[28]Mannerheim eventually arrived in Beijing in July 1908, where he worked on his military intelligence report. He returned to St. Petersburg via Japan and the Trans-Siberian Express. His military report was a detailed account of modernization in the late Qing Dynasty, covering education, military reforms, Han colonization of ethnic borderlands, mining and industry, railway construction, the influence of Japan and opium smoking.[29]

After his return in 1909, he was appointed to command the 13th Vladimir Uhlan Regiment atMińsk Mazowiecki in Poland. The following year, Mannerheim was promoted to Major General and was posted as the commander of the Life Guard Uhlan Regiment of His Majesty in Warsaw. In 1912, he became a part of the Imperial entourage, and the following year he was appointed as a cavalry brigade commander.[citation needed]

At the beginning of World War I, Mannerheim served as commander of the Guards Cavalry Brigade, and fought on the Austro-Hungarianand Romanian fronts. After distinguishing himself in combat against the Austro-Hungarian forces, Mannerheim was in December 1914 awarded the Order of St. George, 4th class. He said that after receiving this award, "now he can die in peace". In March 1915, Mannerheim was appointed to command the 12th Cavalry Division.[citation needed]

He received leave to visit Finland and St. Petersburg in early 1917, and witnessed the outbreak of the February Revolution. After returning to the front, he was promoted toLieutenant General in April 1917 (the promotion was backdated to February 1915), and took command of the 6th Cavalry Corps in the summer of 1917. However, Mannerheim fell out of favour with the new government, who regarded him as not supporting the revolution. Indeed, Mannerheim became a determined opponent of communism. In September he was relieved of his duties, while on sick-leave after having fallen from his horse. He was now in the reserve and trying to recover his health inOdessa. He decided to retire and return to Finland, where he went that December.[citation needed]

In January 1918, the Senate of the newly independent Finland, under Pehr Evind Svinhufvud, appointed Mannerheim asCommander-in-Chief of Finland's almost nonexistent army, which was then not much more than some locally set up White Guards. His mission was to defend the Government and its forces during the Civil War (or War of Liberty, as it was known among the "Whites") that broke out in Finland. The Civil War was inspired by the October Revolution in Russia. He accepted the position despite misgivings about the pro-German stance of the government. He established his headquarters in Vaasa and began to disarm the Russian garrisons and their 42,500 men. During the Civil War, Mannerheim was promoted to General of Cavalry (Ratsuväenkenraali) in March 1918.[citation needed]

After the victory of the Whites, Mannerheim resigned as Commander-in-Chief. He feared the reaction of the Allies to the pro-German policies of the Finnish government during the last months of World War I. Seeking to distance himself from the government, Mannerheim left Finland in June 1918 to visit relatives in Sweden.[citation needed]

In Sweden, Mannerheim conferred with Allied diplomats in Stockholm, stating his opposition to the Finnish government's pro-German policy, and his support for the Allies. In October 1918, he was sent to Britain and France, on behalf of the Finnish government, to attempt to gain recognition of Finland's independence by Britain and the United States. In December, he was summoned back to Finland from Paris after he had been elected temporary Regent(Valtionhoitaja; Riksföreståndare) of Finland. There were even monarchists who wanted to make him King of Finland. As Regent, Mannerheim often signed official documents using Kustaa, the Finnish form of his Christian name, in an attempt to emphasise his Finnishness to some sections of the Finnish population who were suspicious of his background in the Russian armed forces.[8][9]Mannerheim disliked his last Christian name - Emil - and wrote his signature as C. G. Mannerheim, or simply Mannerheim. Among his relatives and close friends he was called Gustaf.[30]

After King Frederick Charles of Hesserenounced the throne, Mannerheim secured recognition of Finnish independence from Britain and the United States. He also requested and received food aid to avoid famine. Although he was an ardent anti-Bolshevik, he refused an alliance with the Russian White generals and their armies, because they probably would not have accepted the independence of Finland. In July 1919, after he had confirmed a new republican constitution, Mannerheim stood as a candidate in the first presidential election, supported by the National Coalition Party and the Swedish People's Party. He lost the election in the Parliament to Kaarlo Juho Ståhlberg and left public life.[citation needed]

[edit] Interwar period

In the interwar years, Mannerheim held no public office. This was largely due to his being seen by many politicians of the centre and left as a controversial figure for his outspoken opposition to the Bolsheviks, his supposed desire for Finnish intervention on the side of theWhites during the Russian Civil War, and the antipathy of Finnish socialists, who saw him as the 'bourgeois' 'White General'. Mannerheim also doubted that the modern party-based politics would produce principled and high-quality leaders in Finland or elsewhere. In his gloomy opinion, the fatherland's interests were too often sacrificed by the democratic politicians for partisan benefit.[31][32] During the interwar years, Mannerheim's pursuits were mainly humanitarian. He headed the Finnish Red Crossand founded the Mannerheim League for Child Welfare. [33]

In the 1920s and 1930s, Mannerheim returned toAsia, where he travelled and hunted extensively. On his first trip in 1927, to avoid going through the Soviet Union, he went by ship from Londonto Calcutta. From there he travelled overland toBurma, where he spent a month at Rangoon, then he went on to Gangtok, in Sikkim. He returned home by car and aeroplane, through Basra,Baghdad, Cairo, and Venice.[citation needed]

His second voyage, in 1936, was to India, by ship via Aden to Bombay. During his stay in India, Mannerheim met old friends and acquaintances from Europe. During his travels and hunting expeditions, he visited Madras,Delhi and Nepal. While in Nepal, Mannerheim was invited to join a tiger hunt by the King of Nepal. He killed a 3.23 m long tiger which had reputedly killed two men. The pelt is on display at the Mannerheim Museum in Kaivopuisto,Helsinki.[citation needed]

In 1929, Mannerheim refused the right-wingradicals' plea to become a de facto militarydictator, although he did express some support for the right-wing Lapua Movement (Screen, 2000). After President Pehr Evind Svinhufvudwas elected in 1931, he appointed Mannerheim as chairman of Finland's Defence Council. At the same time, Mannerheim received a written promise that in the event of war, he would become the Commander-in-Chief of the Finnish Army. (Svinhufvud's successor Kyösti Kalliorenewed this promise in 1937). In 1933, he received the rank of Field Marshal(sotamarsalkka, fältmarskalk). By this time, Mannerheim had become seen by the public, including some former socialists, as less of a 'White General', and more of a national figure. This feeling was enhanced by his public statements urging reconciliation between the opposing sides in the Civil War and the need to focus on national unity and defence.[citation needed]

Mannerheim supported Finland's military industry and sought (in vain) to establish a military defence union with Sweden. However, rearming the Finnish army did not occur as swiftly or as well as he hoped and he was not enthusiastic about a war. He had many disagreements with various Cabinets, and signed many letters of resignation.[31][citation needed] (See, for example, Martti Turtola, "Risto Ryti: A Life for the Fatherland" / Risto Ryti: Elämä isänmaan puolesta).

When negotiations with the Soviet Union failed in 1939, Mannerheim on 17 October withdrew his resignation. At the age of 72, he became Commander-in-Chief of the Finnish army after the Soviet attack on 30 November. In a letter to his daughter Sophie, he stated that "I had not wanted to undertake the responsibility of commander-in-chief, as my age and my health entitled me, but I had to yield to appeals from the President of the Republic and the government, and now for the fourth time I am at war."[8]

He addressed the first of his often controversial orders of the day to the Defence Forces on the same day the war began:

Mannerheim quickly organised his headquarters in Mikkeli. His chief of staff was Lieutenant General Aksel Airo, while his close friend,General Rudolf Walden, was sent as a representative of the headquarters to the Cabinet from 3 December 1939 until 27 March 1940, after which he became Defence Minister.[31][34]

Mannerheim spent most of the Winter War andContinuation War in his Mikkeli headquarters but made many visits to the front. Between the wars, he remained Commander-in-Chief, which strictly should have returned to the presidents (Kyösti Kallio and Risto Ryti) after the Moscow Peace, on 12 March 1940.[35]

Before the Continuation War, the Germans offered Mannerheim command over German troops in Finland, around 80,000 men. Mannerheim declined so as to not tie himself and Finland to Nazi war aims.[36] Mannerheim kept relations with Adolf Hitler's government as formal as possible and successfully opposed proposals for an alliance. If Mannerheim had not also firmly refused to let his troops participate in the Siege of Leningrad, they would have ended up becoming an integral part of said siege.[31][37]

Mannerheim's 75th birthday, on 4 June 1942, was a major occasion. The government granted him the unique title of Marshal of Finland(Suomen Marsalkka in Finnish, Marskalk av Finland in Swedish). So far he has been the only person to receive the title. A surprise visit by Hitler in honour of Mannerheim's birthday was less pleasing to him and caused some embarrassment.[31][38]

[edit] Visit by Adolf Hitler

Adolf Hitler decided to visit Finland on 4 June 1942, ostensibly to congratulate Mannerheim on his 75th birthday. But Mannerheim did not want to meet him in his headquarters in Mikkeli or in Helsinki, as it would have seemed like an official state visit. The meeting took place nearImatra, in south-eastern Finland, and was arranged in secrecy.[31]

From Immola Airfield, Hitler, accompanied by President Ryti, was driven to the place where Mannerheim was waiting at a railway siding. After a speech from Hitler, and following a birthday meal and negotiations between him and Mannerheim, Hitler returned to Germany. President Ryti and other high-ranking Finns and Germans were also present. Hitler spent about five hours in Finland. Hitler reportedly intended to ask the Finns to step up military operations against the Soviets, but he apparently made no specific demands.[31]

During the visit, an engineer of the Finnish broadcasting company YLE, Thor Damen, succeeded in recording the first 11 minutes of Hitler's and Mannerheim's private conversation. This had to be done secretly, as Hitler never allowed others to record him off-guard. Damen was given the assignment to record the official birthday speeches and Mannerheim's responses and following those orders added microphones to certain railway cars. Unfortunately, Mannerheim and his guests chose to go to a car that didn't have a microphone in it. Damen acted quickly, pushing a microphone through one of the car windows to a netshelf just above were Hitler and Mannerheim were sitting. After 11 minutes of Hitler's and Mannerheim's private conversation, Hitler's SS bodyguards spotted the cords coming out of the window and realized that the Finnish engineer was recording the conversation. They gestured to him to stop recording immediately, and he complied. The SS bodyguards demanded that the tape be immediately destroyed, but YLE was allowed to keep the reel, after promising to keep it in a sealed container. It was given to the head of the state censors' office Kustaa Vilkuna and in 1957 returned to YLE. It was made available to the public a few years later. It is the only known recording of Hitler speaking in an unofficial tone.[39][40]

There is an unsubstantiated story that during his meeting with Hitler, Mannerheim lit a cigar. Mannerheim supposed that Hitler would ask Finland for help against the Soviet Union, which Mannerheim was unwilling to give. When Mannerheim lit up, all in attendance gasped, forHitler's aversion to smoking was well known. Yet Hitler continued the conversation calmly, with no comment. In this way, Mannerheim could judge if Hitler was speaking from a position of strength or weakness. He was able to refuse Hitler, knowing that Hitler was in a weak position, and could not dictate to him.[31][38]

[edit] Assessment of Mannerheim's leadership

Mannerheim's wartime record as the Finnish Commander-in-Chief is not easy to assess. Even to this day, Mannerheim's immense prestige made criticism of his conduct of war almost tantamount to treason (especially as the criticism often came from Soviet sources and Finnish communists). It is perhaps easiest to divide Mannerheim's role in two: Mannerheim the military commander and Mannerheim the politician.[citation needed]

As a military commander Mannerheim was generally successful. Under his leadership the Finnish Defence Forces saved Finland from Soviet occupation. Mannerheim took care not to waste the lives of his soldiers, and avoided unnecessary risks. Perhaps his greatest shortcoming was his unwillingness to delegate. While he had a number of able subordinates, such as Lieutenant General Aksel Airo, Mannerheim insisted that all the department heads in the Finnish General Headquarters should report directly to him, leaving his Chief of General Staff General of Infantry Erik Heinrichs little to do. Mannerheim overwhelmed himself with work, and as a result coordination between the different departments in the General Headquarters suffered. It has been suggested that one reason why the Soviet offensive in Karelian Isthmus in June 1944 took the Finns by surprise was that Mannerheim was unable to see the forest for the trees. There was no other authority save Mannerheim to collect the intelligence and turn it into operational orders.[citation needed]

There were some tensions between Mannerheim and the other prominent Finnish leaders during the Winter and Continuation Wars. President Ryti at least once criticized Mannerheim for acting so as to retain as good historical reputation as possible. Prime Minister Linkomies in his posthumous memoirs criticized him for mood swings and capricious behaviour, which at times resembled that of famous artists. Prime Minister Paasikivi, who succeeded Mannerheim as President, also claimed that Mannerheim was so old that he could not always control his mood swings.[31] [41]

On the other hand, it can be argued that Mannerheim excelled in politics. Even though he was a soldier, and was not supposed to take part in politics, Mannerheim could not help but be a highly political figure. A vital question during the war was when to make peace with the Soviet Union. Too early would mean that Germany would be in a position to retaliate. Too late risked Soviet occupation of Finland. From 1942, it became increasingly clear that Germany would not win the war against the Soviet Union. Mannerheim was kept, as it were, in reserve, in order to potentially take the leadership of the nation and lead it to peace. Mannerheim played this role skilfully; he had a clear vision of how Finland should conduct its war in the sensitive situation when the war's ultimate end was unclear. He knew how to treat the Germans to secure as much military support as possible without involving Finland in any binding treaties. For instance, during the build-up for the Continuation War in 1941, Mannerheim was offered command of all German forces on Finnish soil. While such an arrangement could have made prosecuting the war easier, Mannerheim recognized that this would mean subordinating himself to Hitler. As Mannerheim wanted at all costs to avoid this, he refused the offer.[citation needed]

[edit] End of the war and a brief presidency

In June 1944, Gustaf Mannerheim, to ensure German support while a major Soviet offensive was threatening Finland, thought it necessary to agree to the pact the German Foreign MinisterJoachim von Ribbentrop demanded. But even then Mannerheim managed to distance himself from the pact and it fell to President Risto Rytito sign it, so that came to be known as the Ryti-Ribbentrop Agreement. This allowed Mannerheim to revoke the agreement with the resignation of President Ryti at the start of August 1944. Mannerheim succeeded him as president.[31][42]

When Germany was deemed sufficiently weakened, and the USSR's summer offensive was fought to a standstill (see Battle of Tali-Ihantala) (thanks to the June agreement with the Germans), Finland's leaders saw a chance to reach a peace with the Soviet Union. It became clear that Mannerheim was the only person who had sufficient prestige, both internationally and domestically, to extricate Finland from the war. He enjoyed the confidence of a majority of the Finnish people, and was effectively the only one with the authority necessary to guide Finland in the transition from war to peace.[citation needed]

At first, attempts were made to persuade Mannerheim to become prime minister, but he rejected this because of his age and lack of experience in the running of a civil government. The next suggestion was to elect him Head of State. Risto Ryti would resign as President, and parliament would elect Mannerheim as Regent. The use of the title "Regent" would have reflected the exceptional circumstances of his election. Mannerheim and Ryti both agreed, and Ryti resigned as president on 1 August, giving as reasons his health and the necessity of combining civil and military authority in one person at that moment. Mannerheim decided that he wished to be elected president to avoid any misconceptions about the nature of his office. Due to the difficult conditions, general elections could not be held, and the Parliamentelected Mannerheim as President of the Republic of Finland on 4 August 1944. He took the oath of office the same day.[31][42]

The dangerous state that Finland found itself in was reflected in Mannerheim's inauguration speech before the Finnish Parliament:

Mr Speaker, I wish to express my heartfelt thanks for the kind words that you spoke about me. Honourable members of parliament, in accepting for the second time, at this difficult moment of national destiny, the duties of head of state, I do so deeply aware of the responsibilities placed upon me. Great are the difficulties that we will have to overcome in order to safeguard our future. Foremost in my mind at this moment is the army of Finland, now in its fifth year of battle. Trusting the Almighty, I hope and I believe that, with the support of the parliament and the government and having an unanimous people behind us, we will succeed in preserving our independence and the existence of our nation.

[citation needed]

A month after he took office, the Continuation War was concluded on harsh terms, but ultimately far less harsh than those imposed on the other states bordering the Soviet Union. Finland retained its sovereignty, itsparliamentary democracy and market economy. Territorial losses were considerable, all Karelia and Petsamo were lost. Numerous Karelianrefugees needed to be relocated. The war reparations were very heavy. Finland also had to fight the Lapland War against withdrawing German troops in the north, and at the same time demobilize its own army. It is widely agreed that only Mannerheim could have guided Finland through these difficult times, when the Finnish people had to come to terms with the severe conditions of the armistice, their implementation by a Soviet-dominated Allied Control Commission, and the task of post-war reconstruction.[42]

Mannerheim's term as president was difficult for him. Although he was elected for a full six-year term, he was in his late seventies, and had accepted the office reluctantly after being urged to do so. The situation was exacerbated by frequent periods of ill-health, the demands of theAllied Control Commission, and the war responsibility trials. He was afraid throughout most of his presidency that the commission would request that he be prosecuted for crimes against peace. This never happened. One of the reasons to this was Stalin's respect for and admiration of the Marshal. Stalin told a Finnish delegation in Moscow in 1947 that the Finns owe much to their old Marshal. Due to him Finland was not occupied.[43] Despite Mannerheim's criticisms of some of the demands of the Control Commission, Mannerheim worked hard to carry out Finland's armistice obligations. He also emphasised the necessity of further work on reconstruction in Finland after the war.[31][42]

Mannerheim had to learn more about parliamentarism, which he could not fully respect before, due to his aristocratic views. He even reluctantly appointed Finland's first Communist Cabinet ministers.[31]

Mannerheim was troubled by recurring health problems during 1945, and was absent on medical leave from his duties as president from November until February 1946. He spent six weeks in Portugal to restore his health. After the announcement of the verdicts in the war crimes trials were announced in February, Mannerheim decided to resign. He believed that he had accomplished the duties he had been elected to carry out: The war was ended, the armistice obligations carried out, and the war crimes trial finished.[citation needed]

Mannerheim resigned as president on 4 March 1946, giving as his reason his declining health and his view that the tasks he had been elected to carry out had been accomplished. Even the Finnish communists, his enemies in 1918, appreciated his efforts and his role in maintaining the unity of the country during a difficult period. He was succeeded by hisconservative Prime Minister Juho Kusti Paasikivi.[42]

After his resignation, Mannerheim bought Kirkniemi Manor in Lohja, intending to spend his retirement there. In June 1946, he was operated for a perforated peptic ulcer, and in October of that year he was diagnosed with aduodenal ulcer. In early 1947, it was recommended that he should travel to theValmont Sanatorium in Montreux, Switzerland, to recuperate and write his memoirs. Valmont was to be Mannerheim's main residence for the remainder of his life, although he regularly returned to Finland, and also visited Sweden, France and Italy.[citation needed]

Because Mannerheim was old and sickly, he personally wrote only certain passages of his memoirs; some other parts he dictated and described, and the remaining parts were written by his various assistants, such as Colonel Aladár Paasonen, General Erik Heinrichs, other Generals Grandell, Olenius and Martola, and Colonel Viljanen, who was also a war historian. As long as Mannerheim was able to read, he proofread the typewritten drafts of his memoirs. He was almost totally quiet about his private life, and focused instead on Finland's events - especially on those between 1917 and 1944. When Mannerheim had a fatal stomach attack in January 1951, his memoirs were not yet in their finished form. They were published after his death.[44]

Carl Gustaf Emil Mannerheim died on 27 January 1951 (which was already 28 January in Finland) in the Cantonal Hospital in Lausanne, Switzerland. He was buried on 4 February 1951 in the Hietaniemi Cemetery in Helsinki in a state funeral with full military honours, and today retains respect as Finland's greatest statesman. This may be partly due to his refusal to enter partisan politics, although his sympathies were more right-wing than left-wing, his claim to always serve the fatherland without selfish motives, his personal courage in visiting the frontlines, his ability to work diligently into his late seventies, and his foreign political farsightedness in preparing for the Soviet invasion of Finland years before it occurred[31](see, for example, Jägerskiöld, "Mannerheim 1867–1951";"The Republic's Presidents 1940–1956" / Tasavallan presidentit 1940–1956, published in Finland in 1993-94).

Mannerheim's birthday, the fourth of June, is celebrated as the Flag Day of the Finnish Defence Forces. This decision was made by the Finnish government on the occasion of his 75th birthday in 1942, when he was also granted the title of Marshal of Finland. The flag day is celebrated with a national parade, and rewards and promotions for members of the defence forces. The life and times of Mannerheim are depicted in the Mannerheim Museum.[33]

Marshal Carl Gustaf Emil Mannerheim was selected as the main motif in a recent Finnish commemorative coin, the €10 Mannerheim and Saint Petersburg commemorative coin, minted in 2003. The obverse of the coin features a portrait of the Marshal.[citation needed]

On 5 December 2004, Mannerheim was voted as the greatest Finnish person of all time in theSuuret suomalaiset (Great Finns) contest.[45] Abiographical film about Mannerheim's life is currently (2009) under way, directed by Renny Harlin.[citation needed]