I am developing a reporting system using the classic ASP. Most of the reports are displaying using HTML tables. The table has 100 rows or 1000+ rows. I had problem with the table header row. If I place the table inside a <div> tag then header will also scroll hence while seeing the bottom rows users not able to find the columns.
Finally I got a great tool to freeze the HTML header rows.
A regular expression is a set of pattern matching rules encoded in a string according to certain syntax rules. Although the syntax is somewhat complex it is very powerful and allows much more useful pattern matching than say simple wild cards like ? and *.
Regular expressions are useful in the production of syntax highlighting systems, data validation, and many other tasks.
The below link explains the 8 regular expressions you should know for your projects. Here the expressions are explained by using the graphical pictures hence easily can understand.
Yesterday, my colleague came to me to ask a VB.Net code snippet for removing the front ‘F’s from a Hexadecimal number. I wondered and asked to him, why you want to remove the ‘F’s from the Hex. He explained that, ” I have a calculation which will return the resultant as negative value. If I convert the negative value into Hex and it will come like FFFF01395. But I want final result only 01395 “. After finished his explanation, I asked to him, if your final value may be F0D6 then what you will do. And I just told to him that removing ‘F’s is not the correct solution for your tasks.
So, we just googled like “negative int to hex” and got a forum link which where discussed about it. I wondered by seeing the solution. The below is the example they provided.
Just take the Windows calculator and type -620 and convert it into Hex. The result is FFFFFFFFFFFFFD94. Then again without any changes just click Dec. The result must be -620. But the result is 18446744073709550996. Wow!!