Ivan Porto Carrero

IO(thoughts) foreach (_.propagandize)

29

Oct
2007

SVNBridge Is Finally Working

So this weekend I discovered that SVNBridge is working fine now.

I haven’t tried it against our production TFS server but against codeplex it works great.

http://www.codeplex.com/SvnBridge

SvnBridge - Use TortoiseSVN with Team Foundation Server

Project Description
SvnBridge allows you to use TortoiseSVN and other Subversion clients with Team Foundation Server. It converts the calls made by your Subversion client to the API supported by TFS.
SvnBridge works by running an executable on your local machine that acts as the bridge to TFS. You point SvnBridge at the TFS server, and point TortoiseSVN at the bridge running on your local machine. This allows you to use TortoiseSVN with any TFS server without needing to change the TFS server in any way (no need to convince your system administrator of anything!).

If you haven’t checked it out already, it’s definitely worth a look.

 

del.icio.us tags: subversion, team foundation server, tfs, source control

26

Oct
2007

I Like What I’m Seeing From Microsoft Lately

Microsoft has just hired Rob Connery from SubSonic, and his job is going to be to work on his own open source project.

I am very pleasantly surprised by that news, and this is the change of direction so many people have been waiting for I think.

I for one like this whole new direction of embracing open source. It seems like lately the party can’t stop, they also hired: Scott Hanselman, Phil Haack and Alex James. I should maybe start thinking about getting one aggregated feed from msdn :)

It’s good to see that open source projects are now being endorsed. I can’t wait to see what’s next. 

24

Oct
2007

Generics Overwhelming

Ayende put this post up which looks freakishly a lot like some code I wrote a couple of months ago.

<style type="text/css"><![CDATA[.cf { font-family: consolas; font-size: 10pt; color: #fffbca; background: #202020; }
.cl { margin: 0px; }
.cb1 { color: #fa8072; }
.cb2 { color: #00d2d2; }
.cb3 { color: silver; }
.cb4 { color: #d0d0d0; }
.cb5 { color: #2b91af; }
</style>
<div class="cf">
<p class="cl"><span class="cb1">public</span> <span class="cb1">abstract</span> <span class="cb1">class</span> <span class="cb2">AccountServiceBase</span><span class="cb3"><</span><span class="cb4">T</span>, <span class="cb4">K</span>, <span class="cb4">Q</span><span class="cb3">></span> : <span class="cb5">IAccountService</span><span class="cb3"><</span><span class="cb4">K</span><span class="cb3">></span></p>
<p class="cl">        <span class="cb1">where</span> <span class="cb4">T</span> : <span class="cb2">BankImportSetup</span>, <span class="cb5">IAccountData</span>, <span class="cb1">new</span>()
</p><p class="cl">        <span class="cb1">where</span> <span class="cb4">K</span> : <span class="cb1">class</span>, <span class="cb5">IAccountData</span>, <span class="cb1">new</span>()
</p><p class="cl">        <span class="cb1">where</span> <span class="cb4">Q</span> : <span class="cb1">class</span>, <span class="cb5">IEntityQueries</span><span class="cb3"><</span><span class="cb4">T</span>, <span class="cb4">K</span><span class="cb3">></span>, <span class="cb1">new</span>()</p>
<p class="cl">        .....</p>
</div>

The reason for building it this way is that I have to implement something for heaps of banks each one has a subtle difference in the way they are processed. But 95% of the code would be the same for every BankImportSetup entity.

This way I could save a lot of time by going a bit overboard on the generics side of it.

To cut a long story short. Generics are fun but they can be pretty overwhelming at first.

 

PS. My colours look very different on my pc. It’s copy source as html that doesn’t pick up all the colors resharper adds.

22

Oct
2007

Rejoining the Pack

The last year I’ve dabbled a lot with linux, ruby etc. Investigating alternative means of developing web applications.  I have switched back to vista ultimate x64 now because I spend about 95% of my time developing on windows so it didn’t make sense to run linux as a base system.  Both ubuntu with Beryl or vista are just as slow/fast on my computer the admin time for my windows system is a lot shorter than the one for my ubuntu system.

I’m not taking a hard line against webforms any more, I still think I won’t be using them in complex projects but for quick prototyping the dynamic datacontrols are pretty cool. Which won’t stop me from building my own mvc style architecture because the current defacto standard is suffering from code bloat and a too tight integration of javascript frameworks etc.

This weekend I’ve finally started playing around with c# 3.0 and silverlight and I liked what I saw a lot. 

I’m getting my head around the new technolgies by building a little texas holdem multiplayer game.  So the technologies this project will use are: .net 3.5 with c# 3.0, silverlight 1.1 (with xaml), WCF.

I started building that texas holdem poker game because I couldn’t find a nice one that I could install on my LAN or one that wouldn’t require me to get a mortgage if I would lose a game online.

The microsoft one that comes with vista ultimate is nice and i aim to beat it by making it multiplayer.

The most challenging bit of this poker game is definitely the AI for the computer players because I don’t want them to be idiots but also not the best players in the world seen as i’m not the world’s greatest poker player (I’m still working for a living :)). If somebody that reads this blog has done some similar work or knows of some resources for me to work through some of that stuff please share them.

So far I’ve got the following logic going:

Evaluating wheter it’s a good hand or a bad hand: simulate about 1000 games with the same hand,same cards on the table and the same number of players.

That gives me an idea of how good the hand is and if it should fold.  Next I want to figure out whether the player should bet, check or raise this is done by looking at the odds and the maximum score I could reach as well as how far along we are in the game.. I have more in my head but not enoughtime to write it all down. I’ll write more on this subject in the course of the next few weeks.

I’m planning on making the multiplayer version open sourced for demo purposes but not the one that contains the AI for the computer players.

 

del.icio.us tags: texas holdem, silverlight, .NET 3.5, Linq

18

Oct
2007

Get All the Css Classes in Use on Your Page

By using javascript that can be done pretty easily. The script below requires prototype

var classes = [];
function collectClasses(ele){
  var children = ele.childElements();
  if(children.length > 0){
    children.each(function(el){collectClasses(el);});
  }
  else{
   ele.classNames()
     .each(function(className){classes.push(className)});
   return classes;
  }
}
var body = document.getElementsByTagName(‘body’)[0];
collectClasses(body);
var myUniqueClasses = classes.uniq();

 

The myUniqueClasses variable holds all the classnames that are in use on your page.

 

 

del.icio.us tags: javascript, dhtml

20

Sep
2007

VLite: Stripping Down Your Vista Install

One of my collegues at Xero put me onto this tool vlite which helps you build a custom ISO with only the features you need for your vista install.

Nowadays I’m running ubuntu x64 with vmware as my base system and I have a vista running in a vmware workstation virtual machine. I’m using vmware workstation instead of server because it allows me to use dual monitors inside my virtual machine which I think is abslotely fantastic.  Thanks to Alex Henderson for pointing that out to me.

My vista has got sql server 2k5 and visual studio 2008 beta 2 installed.

So the stripped down version of vista fits on a cd instead of a dvd and is heaps faster than the regular install of vista. My vista only needs IIS I don’t need all the other stuff it has got.

I hope you will find this as useful as I did when I learnt about this tool.

del.icio.us tags: vlite, vista, ubuntu, vmware

04

Sep
2007

Wellington - Lunch With Geeks (04/09/2007)

This week we had another lunch with geeks.  The attendance was good and we talked about a number of things.

The first thing we talked about was broadening the scope of this group to other technologies. We are looking for people from RoR community and the Java community. We do have 1 java person that attends our meetings regularly but we’d like to get some more. So if you’re in Wellington and you do development these lunches may be something for you.

 

Another thing we talked about was: What’s the best microsoft product? And what’s the worst?

on the question of worst we had a consensus : windows ME.

on the question what is the best product I guess the most votes went to CLR/.NET Framework. Somebody also mentioned Flight Simulator :)

 

We also talked about Aspect Oriented programming and we got a little confused by what the PolicyInjection Block is about in the Enterprise Library.  It claims to do AOP but somebody pointed out that it doesn’t quite do that. It does most of the AOP features but not all of them and it’s a little intrusive because it has to be defined by the caller.

 

The only problem we had was that there was another group in the pizza place so I couldn’t understand most of what was being said. Please email me the stuff I forgot about or add it in the comments.

21

Aug
2007

Wellington - Lunch With Geeks (21/08/2007)

Last week there was no lunch with geeks because of Tech Ed.  Naturally we started our session rehashing what we thought were the highlights of Tech Ed NZ.

In general everybody really liked the keynote by Lou Carbone and we were definitely not the only ones, mauricio has a more detailed post on the keynote.  Anyway it was really entertaining and educational at the same time, I couldn’t believe some of the things hotels do with towels and toilet rolls.  Designing for to trigger emotions instead of functionality would be the biggest lesson for me.
My favourite quote from tech ed would be something Jim Webber said during a session about Dynamic languages vs. Static languages:

If you polish a turd, your hands will be smelly but you will still have a turd.
(Jim Webber on wsdl)

After that we started the topic at hand: Vendor certification is it really worth it? - A topic suggested by Pablo Garcia from Provoke solutions.

The discussion was long but seemed to often get back to the same basic ideas. I’ll just summarize:

It’s worth it:

  • It’s worth it if you’re an intermediate or a junior developer and looking for a job
  • It’s a benchmark for people that have been in the industry for a long time to assure that they are still current.
  • it can be really useful for systems people

It’s not worth it:

  • A senior that has heaps of certifications and boasts about them => Mort alert
  • it doesn’t teach you any of the concepts behind problem solving and analysis, but focusses more on learning-by-heart
  • it often promotes less-than-best practices aka enterprise practices
  • it is in no way a guarantee that the person really knows his stuff it only proves he can memorize a bunch of things.
  • seen as software development is an art, exams are inappropriate because the grader needs to like your writing style before everything else.

The discussion went on about the benefit of a university training vs. the certification process and that seemed to go on forever. Some of the members of our group started recalling memories from when they were in uni and why exams were too subjective to effectively measure the skill of a student.

 

We did all agree that certification done by vendors isn’t the best way to go about it, and that it would be a much better idea if these certifications would be issued by some global, independent organization. That would immediately raise the credibility of these disciplines.

That was our session.

If forgot something please let me know :)

UPDATE: I added a link to Pablo’s blog http://blogs.provoke.co.nz/theengineroom

20

Aug
2007

What’s Your Personality Type ?

Through John Clegg I found out about a personality test on bbc.co.uk.

He has a more lengthy explanation on how he got there on his blog

Anyway I’m always interested in finding out which type of person I am etc. So I could not resist and took the test.
If you’re like me and just itching to find out more about yourself or you just have some time to spare you can take the test here http://www.bbc.co.uk/science/humanbody/mind/surveys/whatamilike/

Apparently I’m a Big Thinker 

The four aspects that make up this personality type are:

Spontaneous, Ideas, Heads and Extrovert

Summary of Big-Thinkers

  • Outspoken, ingenious and bored by routine
  • Think of themselves as talkative, curious and self-sufficient
  • May neglect the routine work required to make their plans successful

More about Big-Thinkers

Big Thinkers are always looking for the next big idea or opportunity. They’re adept at spotting trends and thinking on their feet. Big Thinkers like to jump in and find innovative solutions to complex problems and are good at developing strategies for the future.

Big Thinkers are usually curious, logical and energetic. This chatty group enjoys a good debate and asserting their opinions. Sometimes others may find the way they express their ideas too abrupt or challenging.

In situations where they can’t use their talents or are unappreciated, Big Thinkers may be rude, critical of others or rebellious. Under extreme stress, Big Thinkers can become preoccupied with unimportant details and lose sight of the ‘big picture’.

Big Thinkers may ignore important details in their plans and overlook the impact their ideas have on the people around them.

Big-Thinker Careers

The entrepreneurial spirit of the Big Thinkers often leads them to seek new challenges; this is often more important to them than working in a particular field or a specific career.

Disclaimer:

It’s important to remember that no survey can predict personality type with 100 percent accuracy. Experts say that we should use personality type to better understand ourselves and others, but shouldn’t feel restricted by our results.

 

 

del.icio.us tags: personality

To top