Friday, November 10, 2006

my latest project is online

hi folks,

after several months of hard development my recent project wents online:

www.indeXus.Net

in case you're searching for flights, feel free to use our search engine.

with indexus.net you will be able to find your flights much faster then you ever have found them before.

dont forget to drop us a feedback

Tuesday, October 31, 2006

memcache links for windows people

Wiki: http://www.eu.socialtext.net/memcached/index.cgi?
Win32 Server: http://jehiah.com/projects/memcached-win32/
C# Client: https://sourceforge.net/projects/memcacheddotnet/

seems to be a great tool, will post some more as soon as i have used it :-)

Wednesday, September 27, 2006

Tony Rogerson's ramblings on SQL Server : SQL Server

Tony Rogerson's ramblings on SQL Server : SQL Server: "create database testio
on primary ( name=testio, filename='g:\testio.mdf', size=10gb )
log on ( name=testio_log, filename='g:\testio.ldf', size=10mb,
filegrowth=10mb )
go

use testio
go

create table testio (
blah char(8000) not null
)
go

declare @i int
set @i = 1
set nocount on
while @i <= 100000
begin
insert testio values( cast( getdate() as char(8000) ) )
set @i = @i + 1

end"

Tuesday, September 19, 2006

Jeff Widmer's Blog : Remote Desktop to Console Session on Windows Server 2003

Jeff Widmer's Blog : Remote Desktop to Console Session on Windows Server 2003

start->run-> mstsc /console

Tuesday, August 22, 2006

Monday, August 21, 2006

logging on method level: MethodBase.GetCurrentMethod()

if you like to add some information where you located within your code use something like this:

using System.Reflection;
.
.
.
Logger.YourMethodForMessages(

"Validation failed in: " +
((object)MethodBase.GetCurrentMethod()).ToString() + "; it has some invalid data;";

);

cheers

Tuesday, August 08, 2006

TFSWarehouseDataSourceView is missing - Shit Happens

how to restore tfs warehouse DataSourceView

C:\Program Files\Microsoft Visual Studio 8\VC>

C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools\SetupWarehouse.exe" -o -s SERVERNAME -d TfsWarehouse -c Warehouseschema.xml -a DOMAIN\SERVICEUSER -ra DOMAIN\REPORTUSER

Friday, August 04, 2006

how-to: make a for loop in dos and call websites with console browser wget

here are some FOR loops…

Count and display from 1 to 10:
for /L %i in (1 1 10) do @echo %i


Sequentially get the Microsoft home page 3 times using wget and dump its contents to the console:

for /L %i in (1 1 3) do @wget http://www.microsoft.com/ -O –

Same as above except done in parallel:

for /L %i in (1 1 3) do @start wget http://www.microsoft.com/ -O -

wget - can be get over here:
wget - console browser




thanks to Atif Aziz

Monday, July 17, 2006

howto make usage of Gridview DateKeyNames

if (e.Row.RowType == DataControlRowType.DataRow)
{
string keyStringValueA = GridView1.DataKeys[e.Row.RowIndex].Values["YourDataKeyName"].ToString();
string keyIntegerValueB = GridView1.DataKeys[e.Row.RowIndex].Values["YourDataKeyName"].ToString();

int n = int.Parse(dkk);

once you know it its simple and works fine :-)

Friday, July 14, 2006

ASP.NET 2.0 GridView FormatStrings

>> copied from http://geekswithblogs.net/michelotti/archive/2006/02/25/70708.aspx

You can supply format strings to the columns in your GridView by setting the DataFormatString property of the column to something like this: “{0:d}”. However, you may have run across a case where you set this property and the system does not recognize the format string you provided. To make this work, you need to set the HtmlEncode property of that column to “False”. Then the DataFormatString will act as expected when displayed at run-time.

more data is available over here:

http://weblogs.asp.net/rajbk/archive/2005/10/31/429090.aspx

Sunday, July 09, 2006

How to get rid of Restart Now / Restart Later

Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations

Sunday, May 28, 2006

How-To: Convert Euro correctly ... [string.ToDecimal()]

I don't really understand why this happens just with Euro, but fact is when I use string.ToDecimal() and my Cultures are formatted for a European country, then it's not converting correctly in manner of:

expected value: 1.534,40
received value: 153440.00

its a small difference, at least to me :-)

The CurrentUICulture contains an NumberFormat which we can append to convert:
System.Globalization.NumberFormatInfo nfUs = Thread.CurrentThread.CurrentUICulture.NumberFormat;

Place attention that first i use "System.Globalization.InvariantCulture" and just on the ToString i apply "c" and my needed culture.

string formattedNumber = Convert.ToDecimal(string.Concat(formating,".",formatingCents), System.Globalization.InvariantCulture).ToString("c", nfUs);

Am I the only one who faced off with this problem?

Friday, May 26, 2006

How-To: Split web.config sections into different files.

with my spin of automation I figured out that in our Build-Process we have to change some settings depends on the environment [development, testing, staging, life (we get there soon :-) )].

While each environment has its own connection strings and app-settings section we decided to split them from the web.config file and put them into different files. Well i didn't thought that this is possible, but MS have thought about it :-) Thanks!

<connectionStrings configSource="YourFileName1.xml"/>
<appSettings configSource="YourFileName2.xml"/>

Note: it has to be an XML file, correct me if I'm wrong but with anything else it worked.

great we have now own files which we can just copy after the deployment but ... here comes the clue behind it, if you do that you should also do the following thing to protect your files:


  <location path="YourFileName1.xml">
   <system.web>
    <authorization>
     <deny users="*"/>
    </authorization>
   </system.web>
  </location>

  <location path="YourFileName2.xml">
   <system.web>
    <authorization>
     <deny users="*"/>
    </authorization>
   </system.web>
  </location>

without to do that everybody else access your file's and can potentially harm your application - keep attention about it.

Tuesday, May 23, 2006

Thanks. No.

Thanks. No.: "You�re not a bad person, and no one hates you, but it would be valuable to learn the very personal preferences of your friends, family members, and co-workers before including them in unrequested email or choosing to expose their private address to people they don�t know."

ever needed to delete records based on the length?

how-to:

Delete FROM TableName where LEN(RTRIM(LTRIM( COL-Name ))) > 3

Sunday, May 21, 2006

WebserviceX.NET :: XML Web Services solution provider

useful webservices:

WebserviceX.NET :: XML Web Services solution provider: "Web services enable to quickly integrate applications across multiple platforms, systems and even across businesses. Emerging web services standards such as SOAP, WSDL and UDDI will enable system-to-system communication that is easier and cheaper than ever before.

WebserviceX.NET provides programmable business logic components and standing data that serve as 'black boxes ' to provide access to functionality and data via web services"

Thursday, May 18, 2006

The Gwigle Game

Very nice

The Gwigle Game

Wednesday, April 19, 2006

Team Foundation Server [TFS]: Show Deleted Items in Team Explorer

great, i searched for it but I could not find it was needed :-( So what to do if we want to make an undelete on a deleted item???

so here it is:


Visual Studio -> Tools -> Options -> Option Window

Left Tree -> Source Control -> Visual Studio Team Foundation -> Below the proxy settings

:-) how cute :-) INDEXUS!!!

Finally I can make an undo delete on my files

Some discussions around of Daily Builds

http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=862

Implementing Daily Build and Smoke Test

One important aspect of Daily Build is the word Daily. Steve McConnel mentions two similar metaphors for a Daily Build in his article about Daily Build and Smoke Test:

On the one hand, Jim McCarthy [*] compares the Daily Build with the beat of a heart. Once the heart does not beat any more, the project has died. From another point of view, the Daily Build is an integral part of a functional software project in this context: A project without Daily Build is nonviable.

On the other hand, Michael Cusumano and Richard W. Selby [**] think of Daily Build as
a synchronization pulse. Code fragments of different programmers are allowed to come a little bit out of sync between two pulses but after the next sync pulse, all parts of the project must fit together again.

The next point to think about is a useful broken build management. It is very important to find a good balance between a too weak and a too strict contract. Such a contract should contain all the show stoppers that really break our project but exclude uncritical defects that only interrupt the software building process while being no threat to our projects healthiness.

Next issue to address is the need for a matching Smoke Test. The best Daily Build is worthless without a good designed and balanced Smoke Test. Such a Smoke Test must not include all features of the whole system (which would be very difficult to test) but should comprise the major parts of it. So if this test fails, we will know that we are in trouble.

Another important point is to let the development team know about the importance of not breaking the Daily Build. Most teams do so by introducing a penalty for that developer who is responsible for the clash, like a small fee. That programmer should then work on the problem until it is solved.

Goal of this strategy is to let a breaking build be the exception, not the rule.
Last but not least it is important to continue using Daily Build in stressful times, too. Especially in such situations, the effort for the build process can seem useless but it isn’t. Stressed developers make more mistakes, quality is decreasing -

Daily Build is then more necessary than ever.


* Steve McConnell. Daily build and smoke test. IEEE Software: Best Practices, 13(4), July 1996.
** Michael Cusumano and Richard W. Selby. Microsofts secrets. The Free Press, 1995.

Daily Build with Smoke Test!

the 4 big BENEFITS of using Daily Build with Smoke Test:

1.
- minimized integration risk Daily Build and Smoke Test
- different team members combining code they have been working on separately
- different team members integrating code they have been working on separately
- The resulting composite code might not work well.
- Depending on how late in the project the incompatibility is discovered, debugging
might take longer than it would have if integration had occurred earlier,
program interfaces might have to be changed, or major parts of the
system might have to be redesigned and re-implemented.
- Integration errors have caused projects to be cancelled.
- The daily build and smoke test process keeps integration errors small
and manageable, and it prevents runaway integration problems.


2.
- reduces the risk of low quality.
- unknown project status without using a daily build and smoke test strategy
- High risk of integration and quality problems [hidden faults is high] -
they expensive, in case of manpower and amount of coffee you need to fix them!!!!

3.
- easier defect diagnosis by giving exact indications of what happens with
your test. If case the daily build of day no. 4 succeeded and the following
day failed .. then you know where you have to search!

4.
- improves the team morale, they know about their quality and know they
working with up-to-date processes, not processes which are already more
then 20 years old!!
- Developers they see daily build is building successfully its a Hugh
morale boost for them (ahoy us! )
- its nothing really exciting or so, but programmers, testers and all the
rest of your team can watch how the project is growing and growing and
every morning you have an actually status about it.

Note: Yes the first project is hard to setup, until you get all what you need and you have setup everything, but in the end the result of it is amazing -> take yourself the needed time to setup daily build as soon as you can even when your project contains 1000 LOC's its the right way in my point of view.

Daily Build - The Daily Build concept

The Daily Build concept is integrated in nearly every new Software Engineering approach.

Personally I think that its common to use a separated build server applying the continuous integration approach / strategy. Call it however you want but in my point of view its a must.

The build server is responsible to request automatically request all sources from repository and its common to do that in a iteration of once a day. So this server is responsible to extract all sources and to build them. Its also common to integrate all your Unit test into this build to verify the integration. Oh, you don't have unit test ... what a pity... You should maybe checkout where the payback is of the additional effort of unit testing.

to make a build is much more then to press just F5 or F10 in visual studio or your preferred development environment. but anyway there are enough other sources you can receive the information what a complete build means [or check out previous posts.]

Lets go back to the issue of daily build, or the daily build concept.

Goals of Daily Build
There are several goals of daily build, but lets write about the main goal of it.
The main goal of Daily Build process is to integrate a periodical integration of all your software pieces.

Why periodically and not whenever when I want... 3 things..

1. in every handy made process the possibility of failures are here and usually they also not reproducible.
2. you have a build server, let him do the work. When it fails once then it always fails.
3. normally there are more then just one person who is working on sources.

The mention third point is very basically and can happen all the time. Just let the build process fail, which is really a bad problem for the project manager. If that happens, he or she has to locate the problem and solve it - or, even better, let the responsible programmers search for the problem in their code.

So, a developer has to write a few test cases which ensure the correct behavior of the main features or methods of his components. Which will be tested automatically every single night, and in the morning you get your report with all needed information why your daily build today failed ( or not failed ).

Sunday, April 16, 2006

javascript code

Great Java Script Code snippets.

javascript code

Ajaxload - Ajax loading gif generator

Great Idea, simple and very usefull :-)

Ajaxload - Ajax loading gif generator



a sample page is available at:

Loading.htm

Wednesday, March 08, 2006

IE7 Standalone Launch Script

Great Article how to run IE 7 together with IE 6
IE7 Standalone Launch Script

thanks to jon

Saturday, March 04, 2006

How to make auto-completion in Visual Studio 2005

How many time I get confused which attribute I can use inside a XML i worked on. Since today, every time I have a XSD Schema I'm able to work with auto-compilation or also called intellisense :-)

take your Schema, the XSD and put it into the following folder:

C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas



[thanks to remo :D]

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: http://www.sharedcache.com/. Its free and easy to use, we provide all sources at codeplex.

Facebook Badge