Tuesday, April 5, 2011

The New Life plus .NET, Win7 and NetworkInterfaceTypes not recognized...

So... YEAHHHHHHH!!! I'm really enjoying this new challenge and position here!

Actually, I think I've never been happier in my life (both professional and private) - suddenly I find myself working the way I like, with a boss that's an example for what professionalism and excellence stands for, and I'm one step to buy the "dream house" :-)

Yesterday I've been introduced as PM to a MOSS to Sharepoint 2010 migration project. I thought my duty was more related to Systems Architecture, but in fact it is much broader than that! My "boussse" wants me to learn every bit-and-piece within almost all the departments on the enterprise and to take a management role. What more can I say? This is a dream come true!

On top of it, my past as a SW Developer proves to be useful: I've been asked if I could implement some type of application that would pick up and register the MAC Addresses (Wifi, LAN and 3G) and Laptop Serial Number to a database (Oracle). If I didn't want to do it, it was ok: they would ask the development guys to do it (effort estimation, f-specs, etc etc etc). But of course I would do it - I'm avid to produce, to deliver. Whatever comes, goes! So I took on the challenge and fired up VS2010 (long time no see!) and start coding.

Actually this task took me more time than expected, due to an issue with NetworkInterfaceTypes in Win7 not being yet "recognized" on the 4.0 framework. This was happening because the NetworkInterfaceType enumeration for was returning an int (243) for the 3G network adapter, instead of the enumeration.

So to solve this, I had to parse the enumeration to int and then compare it to 243 or 244... this took some time to solve... actually it was solved by googling for the problem and finding someone who already had this problem (3rd link below).

Related Links:

Stay #
G.


Saturday, April 2, 2011

A New Challenge

Yeahhh!!!

I'm tackling a new professional challenge!

After some time thinking about my "carreer next steps" I've decided to take a dive into the IT Architecture world. So, I'm now facing a new challenge at a new corporation which requires me to have a broad, deep and general knowledge of almost all the technologies in use today (raging from middleware, development, DBs, quality assurance, mainframe, etc).

I'm really excited about this new work and have just been assigned one of many tasks/projects to come: MOSS to Sharepoint 2010 migration (yey - back to Sharepoint! Feels good!!!).

So expect a post regarding this MOSS migration subject on the coming days/weeks...

For now, I'll begin analysing and studying the migration process, its HW and SW requirements... and above all, its cost ("cost" is something which more than ever will become an integral part of my work from now on!).

Well... really really really excited!!

See ya,
G.

Sunday, March 13, 2011

PHP - hide DEPRECATED warning messages

To turn off the DEPRECATED warning messages in a PHP (5.3+) script, include the following line:

error_reporting(E_ALL & ~E_DEPRECATED);

Check: http://php.net/manual/en/function.error-reporting.php

G.

Wednesday, March 9, 2011

RegExp

Just to leave here a very useful site regarding regular expressions:

http://gskinner.com/RegExr/

Surf there and check it ;)

Monday, February 28, 2011

CSV tip

Ever tried to import data from a .CSV file and found a "misplaced" comma (,) or semi-colon (;)? Well, in fact these two characters may not be misplaced at all - maybe they're just part of the data themselves.

So to avoid eventual problems when parsing the data, one possible and effective solution is to change the default character used by Excel (the most popular app, by far) when splitting the data to build the .CSV file.

By default the "," or ";" delimiters are used, but these can be changed by something less predictable to be used on data in a spreadsheet (something like "|").

In order to this: Start -> Control Panel -> Regional and Language; then open "Additional settings" and on the "Number" tab, locate the "List separator" text box and change the value.

Now, when saving the spreadsheet (.xlsx or .xls) as a .csv file, the delimiter in use shall be the one specified instead of the ";" default one.

That's it.

G.

Monday, June 29, 2009

MOSS – HTTP 500 Internal Server Error

Have you ever opened your MOSS site to found out an http 500 error with no apparent reason?

Well this happened to me for 2x already. So, to “archive” the problem I’ll post here the eventual workaround.

In fact, this problem can have multiple sources, so the first thing to be done is to make sure that we are not trying to access any unpublished item in MOSS libraries.

If this does nothing and the problem remains, then another approach is needed: first we need to disable the “show friendly error messages” in IE advanced options. Disabling that option, we can now get the detailed error: “No authority could be contacted for authentication.”? – well, if this is the error message that’s being displayed, it is the product of a conflict in the current development workstation and it’s domain controller. Why is that? See below:

Analysing the Event Viewer, various DCOM related errors were occurring (e.g. “The trust relationship between this workstation and the primary domain failed. (Exception from HRESULT: 0x800706FD“).

To finally solve the problem, we had to remove the machine from the Domain Controller (putting it in a workgroup) and putting it back again. 2 restarts later… everything worked fine!

There might be other possibilities for this error still. I’ll update this post as soon as I get by them (hope not!!)…

Hope this helps someone out there.

Cheers

Monday, June 8, 2009

The "Hello World"

Welcome to my new tech blog.

This is where I plan to reunite some of my developer tips, notes, problems, solutions, etc.

This blog serves as a compendium for myself and as a platform to share my experiences as a SW (mainly .NET and MOSS) developer.

Hope you find useful stuff in here.

Regards,

Gonçalo