Thursday, April 28, 2011

Spring short vacation 2011

In Japan, last week of April and first week of May are short vacation weeks. Of course, I take a short vacation, so I suspend posts and comments to this blog for a moment. Resume will be May 9, 2011.

Tuesday, April 26, 2011

Install and Launch MariaDB on Mac OS X

MariaDB is not ready to install from MacPorts. So should we configure from source in the tarball? No. MariaDB team recommends to build with Bazaar. Read these links:

  1. Build Environment Setup for Mac
  2. Getting the MariaDB Source Code

And there are three more instructions to complete the installation and launch MariaDB.
$ sudo mysql_install_db --user=mysql
$ sudo /usr/local/share/mysql/mysql.server start
$ sudo mysql_secure_installation

That's all.

Saturday, April 23, 2011

F# April 2011 has been released

F# April 2011 Community Technology Preview has been released. You can download from here.

Wednesday, April 20, 2011

Enable ASP.NET Web Site Administration Tool with MariaDB on MVC3

(continued from phosphorescence: Create Simple MVC 3 App with VWDExpress and MariaDB)
If you want to use the system built in ASP.NET with MariaDB, you should do some configurations. This article is referring this article.

Create schema for aspnetdb on MariaDB

Like in this post, create the schema named as aspnetdb and special user for aspnetdb schema.


Monday, April 18, 2011

Create Simple MVC3 App with VWDExpress and MariaDB

(continued from phosphorescence: Prepare MVC 3 with VWDExpress and MariaDB)

Create new MVC 3 project

Launch Visual Web Development 2010 Express, and at first, set the default development web server as IIS Express. [Tools]-[Options]-[Project or Solution]-[Web projdct], turn on the checkbox.
Then, create new MVC 3 project following the wizard. In this sample, I name this project as Mvc3Training. If xunit.net is installed, you can choose test project in the wizard.

Friday, April 15, 2011

Easier way to install F# PowerPack both on Mac OS X and on Linux

There are the easier way to install F# PowerPack both on Mac OS X and on Linux. After downloading F# PowerPack zip from here, operate like below:
$ sudo unzip FSharpPowerPack.zip -d /opt
$ cd /opt/FSharpPowerPack-2.0.0.0/bin
$ sudo gacutil /i FSharp.Compiler.CodeDom.dll
$ sudo gacutil /i FSharp.PowerPack.Build.Tasks.dll
$ sudo gacutil /i FSharp.PowerPack.Compatibility.dll
$ sudo gacutil /i FSharp.PowerPack.dll
$ sudo gacutil /i FSharp.PowerPack.Linq.dll
$ sudo gacutil /i FSharp.PowerPack.Metadata.dll
$ sudo gacutil /i FSharp.PowerPack.Parallel.Seq.dll
$ fsi

Microsoft (R) F# 2.0 Interactive build (private)
Copyright (c) 2002-2010 Microsoft Corporation. All Rights Reserved.

For help type #help;;

> #r "FSharp.PowerPack.dll";;

--> Referenced '/opt/FSharpPowerPack-2.0.0.0/bin/FSharp.PowerPack.dll'

Tuesday, April 12, 2011

Prepare MVC3 with VWDExpress and MariaDB

(continued from phosphorescence: Minimal MariaDB configuration on Windows for Express Web Development)

Create schema for MVC 3 application

In MySQL Workbench, "Start Querying" with root account.
Add schema for MVC 3 application. I this sample, I named it as "mvc3_training"

Saturday, April 9, 2011

Minimal MariaDB configuration on Windows for Express Web Development

(continued from phosphorescence: Install MVC 3 with VWDExpress and MariaDB)

Deploy my.ini

In MariaDB installation directory, there are 5 4 templete files for my.ini
  • my-huge.ini
  • my-innodb-heavy-4G.ini
  • my-large.ini
  • my-medium.ini
  • my-small.ini
MariaDB Windows version loads my.ini from "MariaDB installation directory\data\my.ini". one of these path.
  1. C:\Windows\my.ini
  2. C:\Windows\my.cnf
  3. C:\my.ini
  4. C:\my.cnf
  5. MariaDB installation directory\my.ini
  6. MariaDB installation directory\my.cnf
So you just rename from one of above list to one fo below list.

Thursday, April 7, 2011

Install MVC3 with VWDExpress and MariaDB

ASP.NET MVC 3 is web application framework with QWAN by (unexpectedly) Microsoft. But the most disappointing point of ASP.NET MVC 3 is that this uses SQL Server by default. It's only one and at all. So I try to install and create MVC 3 application with another RDB. I choose MariaDB. And I try this by Visual Web Development 2010 Express. Let's show instructions for installation.
  1. Let's check that .NET 4 is in your Windows machine. If not, install .NET 4 .
  2. Download Windows Installer of MariaDB and install.
  3. Download Windows Installer of MySQL Workbench and install.
  4. Download Windows Installer of MySQL Connector/Net and install. But, Visual Web Development 2010 Express is not ready for some IDE features in Windows installer version of MySQL Connector/Net.
  5. Download Web Platform installer and install.
  6. Install Visual Web Development 2010 Express SP1 and IIS Express 7.5 from installed Web Platform installer.
  7. Download ASP.NET MVC 3 and its language pack and install.
  8. Download zip file of xUnit.net and unzip
  9. launch xunit.installer.exe and install for Visual Web Development 2010 Express. Visual Web Development 2010 Express has no test frameworks and xUnit.net is the only one test framework adaptable with Visual Web Development 2010 Express.
(Conitinue to phosphorescence: Minimal MariaDB configuration on Windows for Express Web Development)

Monday, April 4, 2011

Re-enable desktop effect on KDE4 on openSUSE

Desktop effect on KDE4 are sometimes falling down and not to recover enable. How do we do re-enable it? See this article.

no desktop effects

As you see, this article is written for Kubuntu, but it's adaptable for openSUSE too.

Friday, April 1, 2011