Browse by Tags

All Tags » programming (RSS)
DotNet Division Bug?
Here's an interesting exercise for the day. In Visual Studio 2005/2008, 1. Create a new Console Application. 2. Put in the following code in Main: double x = 5.15; double y = x / 100; Console.WriteLine("y = " + y); 3. Put a breakpoint at...

Posted by alexrazon | 2 comment(s)

Free .Net Obfuscator
I've stumbled upon a free .Net obfuscator --Eazfuscator.NET. So far, it works well for my purposes. Most obfuscators are costly--ranging from $200 to $2000! But this one is freeware and it works better than the free one bundled with Visual Studio...

Posted by Alexis' Blog

Printing PDF Using WebBrowser Control in .Net 2.0
Okay, after almost a year and an offshore assignment, I finally had a chance to update this blog. I was developing a .Net 2.0 C# windows application wherein I basically have to print PDF files from a Windows application. I tried to use the Adobe Acrobat...

Posted by Alexis' Blog

WCF
This week I had a Windows Communications Foundation training from Developmentor , sponsored by our company. I learned a lot about the new framework (dotnet 3.0) and communications. What interested me the most was the Day 4 topic which was Peer-to-peer...

Posted by Alexis' Blog

Re: Do JavaScript after window.close()
There is a slight modification for my previous post . The conditions for the if statement there is inadequate. The bug occurs when refreshing the browser when the mouse is beyond the leftmost side of the window, a valid yet unanticipated negative value...

Posted by Alexis' Blog

Re: JavaScript Hashtable Implementation
This is in response to my previous post re JavaScript Hashtable Implementation . I modified my code to be able to remove elements, as well as get an enumeration of the elements in cases wherein the keys are strings rather than integers. Here are the new...

Posted by Alexis' Blog

Filed under: ,

IIS 5.1: 403.9 - Access Forbidden: Too many users are connected
I found this blog that addresses my concern in IIS 5.1 for Windows XP. I recently discovered that it is crippled in such a way that it only allows 10 concurrent connections. Moreover, it is hardcoded to be configured to at most 40. If the maximum concurrent...

Posted by Alexis' Blog

Do JavaScript after window.close()
I needed to do some routines when a user has closed the window. I do not want those routines to trigger when refreshing the page or unloading the document; I just need them to happen when the browser window is closed. This is the usual proposed solution...

Posted by Alexis' Blog

BLOCKED SCRIPT How to close the browser window without the IE warning
In Internet Explorer, when you use window.close() in JavaScript to close the current browser window, you will be asked something like "A script is attempting to close this window. Do you want to continue?" As a programmer, this can be annoying...

Posted by Alexis' Blog

ArrayList sorting via IComparable
The problem: I have a two-dimensional object array. Each first level element of the array contains five object elements--except for the last one, which only has three. However, I have a procedure that needs to concatenate another array at the end of the...

Posted by Alexis' Blog

Filed under: ,

Predicates in dotNet
I've come across Predicates in dotNet 2.0. I felt so disgusted with too many foreach loops when looping through list collections. So, here was my problem: I have three string Lists, say, A, B and C. List string A is the reference list; while B and...

Posted by Alexis' Blog

Get the volume serial number of a drive
This code returns the volume serial for a hard drive (VB6). Code Public Declare Function GetVolumeSerialNumber Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As Long, ByVal nVolumeNameSize...

Posted by Alexis' Blog

Filed under: ,

Re: Introducing .NET Framework 3.0
It is officially released. The Microsoft .NET Framework 3.0 is the new managed code programming model for Windows®. It combines the power of the .NET Framework version 2.0 with new technologies for building applications that have visually compelling user...

Posted by Alexis' Blog

Selecting Xml Nodes in MSXML 3 via XPath
Apparently, you need to set the SelectionLanguage property of a JavaScript XML Document object to XPath so you can select nodes via XPath. var xmldoc = new ActiveXObject("Microsoft.XMLDOM"); // or var xmldoc = new ActiveXObject('Msxml2.DOMDocument...

Posted by Alexis' Blog

JavaScript Hashtable Implementation
I needed a hashtable implementation in JavaScript and here's what I’ve come up. It is used like this: var ht = new Hashtable(); ht.put( “key” , “value” ); var val = ht.get( “key” ); // returns null if not found The implementation is like this: function...

Posted by Alexis' Blog

Filed under: ,

More Posts Next page »