Wubi: The ultimate Ubuntu installer for Windows

Wubi
The ultimate Ubuntu installer for Windows
Wubi_logo

Wubi

Wubi (Windows-based Ubuntu Installer) is an officially supported Ubuntu installer for Windows users that can bring you to the Linux world

with a single click. Wubi allows you to install and uninstall Ubuntu as any other Windows application, in a simple and safe way.

Pros and cons

Windows will not be touched, Wubi only adds an extra option to boot into Ubuntu. It doesn't require a partitions of your PC, or a different boot loader (like GRUB), and does not install special drivers. It works just like any other application. And if you do not like it, you can simply uninstall it as any other application (with the add/remove Programs of Windows).

This look fantastic the solution got a price. Using Wubi to install Ubuntu should be a no permanent solution.

  • Because it use a virtual file a partition the performance of Ubuntu will be very affected. Also this file is in a NTFS drive so the Ext3/4 and the file will become fragmented.
  • Hibernate is not possible with Wubi because no swap partition is created.
  • With this solution Ubuntu is dependant from Windows. If you finally like the Ubuntu and decide to use it as primary OS, then you can't remove you're windows, because there are link together.
  • With this kind of install Ubuntu is vulnerable to any windows infection. If you're windows got a virus then you're Ubuntu can be affected too.

Conclusion

Wubi is a great solution for people how want to try Ubuntu. Is so simple, you can just insert the Ubuntu 8.04 Hardy Heron (or newest) or Just run the installer.

Wubi_screenshot

The Wubi popup menu will show, enter a password for the new account, and click "Install" and voila!

Note:

  • Lubi, uses Linux as the host system instead of Windows.
  • Mubi:for the Mac OS as host, will eventually be supported.

Requirements

  • 256 MB memory
  • 5 GB harddisk space
  • Windows 98, 2000, XP, Vista

References

Official web site: http://wubi-installer.org/


Posted by: franky
Posted on: 4/30/2008 at 11:51 PM
Tags: ,
Categories: Ubuntu
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Line of Business Accelerator 2008 – Part 1

Line of Business Accelerator 2008 – Part 1

Manage store procedure with SQL Compact 3.5

This article is the first of a series were I will explain in small chunk the best practices use in Microsoft Line of Business Accelerator 2008.

Prerequisites

To be able to do it you will need:

  • Visual studio 2008 – with SQL compact 3.5

  • Line of Business Accelerator 2008

  • SDK Mobile 6.0 Standard (smartphone, no touch screen)

  • Microsoft Active Sync 4.5

Create the Project

Open Visual studio and create a new Mobile 6 project. You can pick any platform for this demo but a select the framework 3.5 standard.

  1. On the main Form Add a DataGrid and name it grdProduct.

  2. In the Main Menu:  

    • Add a Menu Item Close (mnuClose). Double-click and add the following code to close the application.
      1: [code:c#;ln=on]
      2: private void mnuClose_Click(object sender, EventArgs e)
      3: {
      4: this.close();
      5: }
      6: [/code]
    • Add a menuItem Fill mnuFill and double click on it to add the handler.

Now you should have something like this.

 

Add the Database

Now we need a database. I use the Northwind database. You will found it in the SDK folder (\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile - Northwind.sdf). Right-click on the project and add existing item.

When the dataset dialogue will prompt select the in the Product table the column: [Product ID], [Product Name] and [Unit Price].

 

Fill the datagrid with the “normal” method

Before we add the code in the mnuTest click Handler we need to know the connectionstrng of our database. In NetCF this is the full path and name of the database. The relative path seem not be supported. So in our case we put the database in the same folder that the application, so we could hard coded or use something more generic (and reusable like:

1: [code:c#;ln=on]
2:

3:

"margin-bottom: 0cm">

4: string
5: runAppFolder =
6: System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
7:

8:

"margin-bottom: 0cm">

9: [/code]


So now we can use it in the click function. Everything else now is like any “regular” .Net application. But instead of using SQL object were using SqlCe.

1: [code:c#;ln=on]
2: private void mnuTest1_Click(object sender, EventArgs e)
3:
4:     try
5:     {
6:         SqlCeDataAdapter oAdap = new SqlCeDataAdapter();
7:         SqlCeConnection oConn = new SqlCeConnection(@"Data Source = " + runAppFolder + @"\Northwind.sdf");
8:         SqlCeCommand GetProduct = new SqlCeCommand(“SELECT [Product ID], [ProductName], [Unit Price] FROM Products”);
9:  
10:         oAdap.SelectCommand= GetProduct;
11:         oAdap.Fill(tblProduct);
12:         grdProduct.DataSource= tblProduct;
13:      }
14:     catch(Exception ex)
15:     {
16:         MessageBox.Show(ex.Message);
17:     }
18: }
19: [/code]

 

Now everything is in place the application should works. So Select youre emulator and run it.

 

Use the manage store procedure

Now it's time to use the “new” that the NetCF Team call:Manage Store Procedure. In fact this is not realty a new, because it was available in VS2005.


Add a Resource call StoreProc to the project.

Add a file to the project ProductGet.sql.

From the resource add an existing text file... select the ProductGet.sql. You should have something like this:

 

 Double-click on the ProductGet icon, the file will open with the SQL syntax hi-lighter. So now we will move the SQL query there in the file you should have:


To use this we will get back in the code where we were building the sqlcqcommand and replace the string by the ProguctGet. So the new code will be

1: [code:c#;ln=on]
2:

3:

4: ...
5:

6:

7: SqlCeCommand GetProduct = new
8: SqlCeCommand(StoreProc.ProductGet,oConn);
9:

10:

11: oAdap.SelectCommand =
12: GetProduct;
13:

14:

15: oAdap.Fill(tblProduct);
16:

17:

"margin-bottom: 0cm">

18: ...
19:

20:

"margin-bottom: 0cm">

21: [/code]


Conclusion

Now you can test again the application. It's works like before but this time you can edit the sql code without re-compiling.

 

To add some parameter just add some ? in you re query and add the parameter(s) to the SqlCeCommand, like usual.

 
I hope this simple tutorial help you, feel free to ask any question or let me know you're comment.

Thanks

Franky


Posted by: franky
Posted on: 4/24/2008 at 4:13 PM
Tags: , ,
Categories: .Net | Mobile
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

LyteBox - pour afficher vos images

Lytebox est une extension très ratique pour l'affichege des images.  Il peut généré des thumbmail et plusieurs autres effets.

Voici comment utiliser ce controle par quelque exemples.

Exemple d'images seule:

001<a rel="lytebox" href="/BlogEngine/admin/Pages/images/image-1.jpg" title="Image Description">Image #1</a>

Exemple d'images groupe:

001<a href="images/image-1.jpg" rel="lytebox[vacation]" title="Mom and Dad">Mom and Dad</a>
002<a href="images/image-2.jpg" rel="lytebox[vacation]" title="My Sister">My Sister</a>

Exemple d'images en diaporama (note utiliser lyteshow au lieu de lytebox):

001<a href="images/image-1.jpg" rel="lyteshow[vacation]" title="Mom and Dad">Mom and Dad</a>
002<a href="images/image-2.jpg" rel="lyteshow[vacation]" title="My Sister">My Sister</a>
 


Posted by: franky
Posted on: 4/13/2008 at 4:18 AM
Tags: , ,
Categories: BlogEngine.NET
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed