I like to move it move it
10 03 2008This song is hilarious from the movie Madagascar.
Love the guy with the indian accent.
http://www.youtube.com/watch?v=O_r2psdrQkM
Categories : Uncategorized
This song is hilarious from the movie Madagascar.
Love the guy with the indian accent.
http://www.youtube.com/watch?v=O_r2psdrQkM
If you happen to use mex endpoint together with other endpoints in a configuration file for your service, AND if you get error “There is already a listener on IP endpoint”, just remove the port number for the mex end point or if you want you can add the “portSharingEnabled” property in the binding configuration.
portSharingEnabled=”true”
Don’t use
Instead use
You still can WSDL Even if you don’t have port number
The error looks like this:
Service cannot be started. System.ServiceModel.AddressAlreadyInUseException: There is already a listener on IP endpoint 0.0.0.0:8081. Make sure that you are not trying to use this endpoint multiple times in your application and that there are no other applications listening on this endpoint. —> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.ServiceModel.Channels.SocketConnectionListener.Listen()
— End of inner exception stack trace —
at System.ServiceModel.Channels.SocketConnectionListener.Listen()
at System.ServiceModel.Channels.BufferedConnectionListener.Listen()
at System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels….
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
There are two errors that may be encountered at run time which relate to the amount of data being received by the client application.
1. The maximum message size quota for incoming messages (65536) has been exceeded.
2. Maximum number of items that can be serialized or deserialized in an object graph is ‘65536′.
In general, the first error will surface when the total number of bytes that the service is attempting to return exceeds the configuration values (the
default is 65536). To raise the total number of bytes that can be returned, the following changes are required:
In the Binding configuration(s):
<binding name=”YourBindingName”
maxBufferSize=”2147483647″
maxReceivedMessageSize=”2147483647″
…other values…
Note that the values being configured above are the maximums possible. It is advisable to configure only the highest values required. All three values
should be configured to the same values.
The second error (from above) may be encountered after making the first set of changes. The second error is caused by the total number of (.net) objects
being returned exceeding the configured value (default = 65536). This value is set on individual endpoints and is not usually explicitly set in the
configuration file. To increase this value, first create a new (or modify an existing) endpoint behavior.
Then assign this behavior to the endpoint receiving the error.
Note again that the value configured above is the maximum.
Powered by ScribeFire.
My dad is a great speaker. When i was a kid I had a huge stage fright. I could barely speak in public. In school in my seventh grade, i would hardly be able to utter a few words. I remember a tip my dad had given among many others that, when on stage try to indentify the one or two people who can cause trouble by asking questions, early on in the speech and to look into the eyes of people while talking.
I took his advice then and I am glad I lost the fear of the stage. But in life i find there is always a odd man/wo man in every project i have worked on. This person’s sole job seems to be to cause trouble, to disagree or to argue for the sake of argument.
What a waste of time and energy working with such folks?. In some cases these are customers, some cases friends and in some colleagues.
If i put a dollar value to the amount of time spent in unnecassary arguements, i could be building a mansion for myself by now.
Here are some symptoms of such strange characters
1) they tend to talk abstract. They talk to the wall or the door instead of talking to you on your face
2) they agree to what you say in front of you, but once you leave they clap thier hands and do what they want.
3) they have power positions and take full advantage of that.
4) In order to cover their weakness they put the blame you.
5) They are typically in the same rank as you are at work and do not like the fact that you are in the same rank as them
6) They dont tell what they dont like about you directly, but complain to their boss or your boss to get rid of you
To Err is human -but with the odd man to err is a complete waste of time.
Find this person early on, there is one in every project. Have a plan. Stay clear of the OMO ( Odd Man OUt) if at all you can
So long….
I now have another website now exclusively for agile definitions apart from my personal blog.
I often get asken similar questions an what a certain term means in Agile practices when i am out teaching / coaching on agile teams. I have started keeping a catalog of these questions that have been asked in teams before instead of thinking or making up something each time.
They are all intentionally small so that you can easily print them out.
Feel free to send me more definitions you want to add.
When using mysql server on ubuntu, there is a property called bind-address in the /etc/mysql/my.cnf file. This forces mysql to only listen to localhost.
If you want to connect to mysql from a different box say windows, make sure you comment this line.
Then restrart my sql – sudo /etc/init.d/mysql restart
Now login to mysql on comand prompt as root - sudo mysql -u root -p
‘=Enter password
Create a brand new user with this syntax
grant all privileges on *.* TO ‘devuser’@'IP ADDRESS OF WINDOWS’ IDENTIFIED BY ‘NEW PASSWORD’ with grant option;
After this you can use a mysql client like navicat in windows to connect with user devuser, password NEW PASSWORD.
Note that when IP changes you would have to do this all over again.
Pun intented here.
If you do a lot of pair programming think again

here are some reasons why you should use your own keyboard at all times
1) Your pair has a virus ( real kind ) and is sneezing all over the keyboard
2) Your pair had a flu and is recovering from it.
3) Your pair is holding fries in one hand as he./she types and uses the keyboard with the same hand . Umm french fried keyboard.
4) You turn your pairs keyboard on the side and see all the food particles and dandruff fall.
5) Your pair went to the bathroom * enough said ![]()
If i have convinced you enough carry your own keyboard for pairing sessions and use purell when in doubt
Powered by ScribeFire.
Scrum works well. when its only one project and sprint planning is really focused to that one projects. However the reality in most companies is that many of them are going towards a some kind of service based architecture.
In these cases or in cases where a number of projects are being developed at the same time, scrum planning gets confusing. Since each team is so focused on the current sprint and back log only, it becomes very tough to build dependencies between systems or services at the same time.
Enterprise SOA Sprint planning - ESOP just a fancy name conceived is based on restructuring projects and run dependent projects on the same sprint time line.
All projects will go to sprint planning the same day. The dependent stories are discussed in a common spring planning meeting where both teams are present and then the teams split to plan other stories.
This brings in awareness in all teams and they are aware of the service contract they need to fulfill as a part of this sprint. At the end of the sprint these contracts get fulfilled.
The product owners of each project are typically so focused on thier own project that often they tend to put cross service stories at a lesser priority than thier own stories. The parallel sprint planning would allow them to look at the big picture and plan the stories well.
This also is a fun event. At the end of the sprint the two systems are indeed talking to each other instead of building them in some kind of step approach.
Another fun thing to do is for the scrum masters to switch as moderators of the two teams in the planning meeting. Especially after a few sprints these planning meetings become fairly boring exercise. Switching scrum masters for the spring planning brings about a fresh breadth of air.
Powered by ScribeFire.
System.InvalidOperationException : Previous method ‘XYZ..;’ require a return value or an exception to throw. If this is haunting you, i may have the answer for that
having used NMock for a while,I have been wanting to try out Rhino Mock framework. Rhinomock is a typed library unlike other mock framworks which use string based paramaters.
However the very first time i used a rather simple implementation I was taken by surprise.
Here is the stub code. When i ran the test i got an error..
System.InvalidOperationException : Previous method ‘XYZ..;’ require a return value or an exception to throw.
Trying to figure this out took a while, onece it worked i felt really stupid. Hence this post so that someone else can save a few hours of
unwanted stress and agony
[Test] [Category("UnitTest")]
public void TestTheCallToService()
{
RequestContract request = new RequestContract();
MockRepository mocks = new MockRepository();
MyService service = new MyService();
MyServiceAgent.IAgent serviceAgent = (MyServiceAgent.IAgent)mocks.CreateMock(typeof(MyServiceAgent.IAgent));
List returnString=null ;
Expect.Call(serviceAgent.GetList()).Return(returnString);
service.GetList(request, serviceAgent);
mocks.ReplayAll();
}
Note the line mocks.ReplayAll();
This should be called before calling the service.GetList
In Rhinomock first we need to set up the expectations like any other framwork. Then we need to replay those lines from the times the recording starts . ( MockRepository mocks = new MockRepository()
After the repay call, all the mock objects are in the correct state and the actual call to the layer, in this case a business component would actually work.
The code after the change should look like this
[Test]
[Category("UnitTest")]
public void TestTheCallToService()
{
RequestContract request = new RequestContract();
MockRepository mocks = new MockRepository();
MyService service = new MyService();
MyServiceAgent.IAgent serviceAgent = (MyServiceAgent.IAgent)mocks.CreateMock(typeof(MyServiceAgent.IAgent));
List returnString=null ;
Expect.Call(serviceAgent.GetList()).Return(returnString);
mocks.ReplayAll();
service.GetList(request, serviceAgent);
If i have saved you even a minute of time, Do let me know ![]()
}
Powered by ScribeFire.
If you are into XP practices and wonder what are some tools that can make your agility grow, here is a starter kit.
1) You need a tool to code - Eclipse or if you are a .NET dev, some version of VS
2) You need a good refactoring tool - Eclipse has a very decent refactoring tool. If is VS land try resharper.
3) If you are a command line person, you can customize anything you repeat. Programmers are lazy by choice. Automate any command you do often
4) You need to get NotePad ++ or some such intelligent editor
5) If you are into webservice development you have to get Soap UI
6) You need a sql generator so that you can script out database. If using SQL server , try
7) Dont forget a code generator - Try mygeneration or codesmith
You need a code repository. Nothing beats subversion
9) You need a way to get to the code repository - Try tortoise SVN
10) You have to do continous integration - Use Cruise Control
11) You will need cctray ( This is a small notifier that notifies build status, get this from your Cruise control install
12) If you do TDD - you need Junit or NUNIt
13) If you want to acceptance test - Try fitnesse
14) For Load test - try JMeter
15) A tool to view database - Try webyog for MySQL or in the Microsoft world, SQL management studio works well
16) A place to store requirements - Run to walmart and get some index cards
Powered by ScribeFire.