Posts

Windows Firewall: Logging/Notifying on Outgoing Request Attempts

Image
I was trouble shooting an app I was developing a while back and ran into a brick wall. Essentially, I was having issues with an "Entity framework" being used when telecommuting. Looks like there was a connection being dropped thereby impacting an event handler for an asynch call the app was making. Well, I needed to find out what the problem was and the first thing to check was connectivity issues. My initial inclination was a FIREWALL setting or some subnetting stuff. In *nix environments, it is pretty easy to log and view inbound/outbound connections but under Windows, you need to be a C++ or C# specialist to write an under the hood HOOK or interface to do that. Anyway, I thought there should be a way within Window FireWall app to do this, but the Devil is in the details - no documentation or better still - no pointer to any documentation on how to do this. OK - no documentation anywhere but there is "Google" - so, nothing to worry about. I googled a phrase ...

Chinua Achebe's partial list of proverbs

Until the lions have their own historians, the history of the hunt will always glorify the hunter. You cannot plant greatness as you plant yams or maize. Who ever planted an Iroko tree – the greatest in the forest? You may collect all the Iroko seeds in the world, open the soil and put them there. it will be in vain. The great tree chooses where to grow and we find it there…so it is with greatness in men. We cannot trample upon the humanity of others without devaluing our own. The Igbo, always practically put it concretely in their proverb Onye ji onye n’ani ji onwe ya: He who will hold another down in the mud must stay in the mud to keep him down. If you want to eat a toad you look for a fat and juicy one. An only palm fruit does not get lost in the fire. A man who lives on the banks of the Niger (river) should not wash his hands in spittle. A man does not challenge his Chi to a wrestling match. When a new saying gets to the land of empty men, they lose their heads ov...

Unbricking your Sprint or Virgin Mobile USA phone using official tools and dll and bin files

I came across this while researching a solution for an LG Elite phone that just went blank at boot time. For whatever reason - not sure why - seems as if lG phones go to "Factory Reset Mode" after a year of usage. Well - it looks like those LG phones I bought from eBay - probably from the same company, seem to exhibit the weird behavior. To cut through the chase, I came across this posting that seems to explain how to go about it for the the Elite model. For the LG Optimum S models, one is actually able to initiate "Factory Rest Mode" at the boot up screen using the volume keys. http://androidforums.com/elite-all-things-root/628919-unbricking-your-sprint-virgin-mobile-usa-phone-using-official-tools-dll-bin-files.html All files in zip are officially from LG (DLL,BIN,LG FLASH Tools) I have a new method how too flash your bricked phone back to factory stock. This flash is the LG Official firmware. This flash will wipe out everything and correctly flash prl,sto...

Hidden Paths of DevExpress DXGrid for WPF/Silverlight

For anybody into WPF/Silverlight using DevExpress DXGrid – this may come in handy – not documented properly but helluva of a technique to know – http://www.devexpress.com/Support/Center/p/Q392022.aspx The Datacontext for a DevExpress Grid’s COLUMN is GridCellData – you can use the properties to access other properties/binding of the Grid ( It is not the ITEM in the collection of the ITEMSOURCE of the GRID) http://documentation.devexpress.com/#WPF/DevExpressXpfGridGridCellDataMembersTopicAll The ‘View’ property will give you a handle to access other properties/binding of the Grid. ‘RowData’ property corresponds to the ITEM in the collection bound to the row of the GRID

Dot Net - Dataset - retrieving from sys_refcursor Oracle Package

Image
First, I am not sure if this is really a problem or just an issue with my understanding of some issues. Essentially, I was trying to access an ORACLE STORED PROCEDURE in a PACKAGE. The procedure returns a sys_Refcursor parameter - which simply means, it is weakly typed. Creating a Table Adapter in VS2010 and making the appropriate references did not go on as I had anticipated. Normally, if you bind a procedure to a TableAdapter, it should generate the column list automatically as well as the parameter list - if any. However, I noticed that this was not the case for the sys_Refcursor type parameter procedure. I actually think - it's got nothing to do with the sys_refcurson type but a problem with the way the procedure name is generated with some funny escape characters. Either way, you can get around this issue following the steps described in this article. Once you have this situation, the column list is not automatically generated for the Data table, neither is the paramet...

WCF Service - Using Datasets

There are a lot of articles out there on why it is not a good practice to use "Dataset" type in WCF. Basically, it is platform dependent and if the web service were to be consumed from another platform other than Windows, there could be an issue of data compatibility. There are two possible ways of getting around this - serializing and compressing the dataset using the WriteToXML method and then compressing with gzip or using a collection of a data class made up of primitive data types. For strictly Windows based platform, you could use Dataset type and have something liek this : [ServiceContract] public interface IContactManager { [OperationContract] DataSet GetContacts(); [OperationContract] void UpdateContact(int id, string name, string phone); } public class ContactManager: IContactManager { public DataSet GetContacts() { return _contacts; } public void UpdateContact(int id, string name, string phone) { var row = _con...

Remove Oracle manually

Have you ever had the challenge of trying to remove Oracle using the universal installer with no success? Well, try removing Oracle manually. Removing Oracle Keys from the Microsoft Registry Editor Oracle Universal Installer creates Windows services for Oracle components during installation but it does not delete all the services created by Oracle Net Configuration Assistant and Oracle Database Configuration Assistant during deinstallation. In addition, Oracle Universal Installer does not delete several other registry editor keys. You need to remove any existing registry keys manually by following the instructions in one of the following sections: Removing the Oracle Net Service Registry Key Removing All Oracle Registry Keys Caution: Use Microsoft Registry Editor at your own risk. Incorrectly using the Registry Editor can cause serious problems and may require reinstallation of your operating system. Removing the Oracle Net Service Registry Key To remove only the Oracle Net...