
January 20, 2012
October 11, 2010
Convert a double to the nearest integer value C# APS.NET
Useful code id you like to convert double value to nearest integer:
1.4 =&>1
1.5=&>2
434.4=&>434
587.8 =&>588
double x=7.8;
Math.Round(x, MidpointRounding.AwayFromZero);
Installing mono on Ubuntu and CentOS
Mono Provides the necessary software to develop and run .NET client and server applications on different platforms. Mono Sources
this example show how to install and run mono on Ubuntu and CentOS linux distributons:
ubuntu:
sudo apt-add-repository ppa:directhex/ppa
sudo apt-get update
sudo apt-get install monodevelop
CentOS:
Installing Dependencies
yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
Downloading and Compiling:
cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.gz
tar zxvf mono-2.10.8.tar.gz
cd mono-2.10.8
./configure --prefix=/usr/local
make && make install
cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.gz
tar zxvf mono-2.10.8.tar.gz
cd mono-2.10.8
./configure --prefix=/usr/local
make && make install
Starting your app:
[user@localhost test]# mono test7.exe
[user@localhost test]# mono test7.exe
Asp.net OnClick method don't fire up always
If you are using master page and sometime your on click method run and sometimes don’t , and your html button look like:
&
you probubly have problems with requetsvalidation, on some pages is disabled, on some is blocking execution of onclick method.
So in your aspx on your button just set CausesValidation=”False”, and should work. canada online casinos
November 22, 2006
StyleXP 3.19 + 1000 Themes
StyleXP 3.0 has several important bug fixes to StyleXP 2.0 related to visual styles. In addition, it now supports Boot Screens, Icon Sets, and Taskbar Transparency. You can also edit the Icon Sets to customize the icons for your own look. It has important fixes for new operating systems, and applying wallpaper. It will also soon support (version 2.1) a new themeing feature and a new resource replacement feature for even more skinning.
Features:
· Zero-Footprint Operation
· Native Style XP Skins
· New Visual Styles
· High-Resolution Functionality
· ClearType & Smooth Fonts
March 25, 2006
Le Building - one of the best 2D-animations for 2005
“Le Building” is a short film made by a team of 5 french students from the animation school “the Gobelins” in Paris FRANCE. It was made as an opening short done for the Annecy 2005 international animation festival. The idea is simple : a grand mother wants her neighbour to stop singing so loud. But events happen through a crazy chain reaction, for your viewing pleasure
The movie was completed in 4 months and a half ( including screenplay, storyboards and designs ). The technique is a mix between traditionnal 2d, flash, and 3d animation. As there are several techniques used in this film, the challenge was to blend them so that you won’t notice it too much. For example the Pizza guy, his bike, the bus, and the crane are in 3D, and the cat is animated using Flash. Enjoy
March 24, 2006
And that’s it! (Part 1-4) Cartoon
It was a film called “The Tinkers” (1976) where the characters Pat and Mat appeared for the first time.
For the series “.And that’s it!” the film stars dressed up into T-shirts and got a beret and a bobble hat. While creating these heroes, the authors had in mind especially entertainment for adults, however, today Pat and Mat are entertaining all generations of spectators.
The handymen got their names Pat and Mat in 1989. In this time Mat was also allowed to wear his red T-shirt again.
It is the manual ineptitude that creates the main inspiration for the stories. But important is not only the fun, but also the optimistic approach to life, that these heroes personalise. Although it seams that everything is lost, they never give up hope and are eventually always satisfied with their solution.
