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.