.NET Reverse Stream Reader

How to read file bottom up:
Read text file bottom up:

When we process the flat files, most of the times we process it top to bottom. However, there might be only a few times situation come where you you have to read bottom up. Like the other day, I have huge flat file about 250 MB and I need some information could be located anywhere in last 50 lines. Since length, size and # of lines I might have to look into in such files vary, reading top to bottom isn’t an optimal solution. Continue reading

grub setup stage 2 error while parsing number

Well, as I stated earlier I was trying to get openSuse 10.2 installed on my machine, which already has Vista on first partition. Though I never had issues while installing openSuse 10.2, Red Hat Linux, Enterprise Linux 10, this time I had issues with installing 10.2

My 10 days old DVD got corrupted, new iso download got corrupted, 1 DVD after buring got corrupted etc. Its quite evident that there is something really wrong with the wirelss downloads and my DVD’s. The error I get at the installation of the Boot Loader is

grub>setup --stage2=/boot/grub/stage2 (hd0) (/dev/hda,5)
error 23: error while parsing number

Even my linux dude got no clue what’s going on. He suggested me to iso downloads from wired pc and install again. Yet i get the same old error. Pretty much pissed and thought of going back to Vista with half hearted. Right at that moment my friend called and said that most of the dudes on the web get this error while installing on partition with Vista already on the first partition. So, something poped into my mind and I did this.

  • Downloaded gparted, gnome partition editior.
  • selected the window partition drive and in the properties, I unchecked boot and checked hidden
  • now I did a fresh install. this let s teh linux install the system with no flaws as it sees windows was present in nowhere
  • and vola! installation went smoot no errors. Now restart with gparted in the cd drive and now make Vista drive unhidden and that’s it.

You should be able to choose both linux and windows from the grub. Let me know if it works for any of you Thanks

Shyam K. Arjarapu

Made a switch to linux OS

Recently I made a switch to openSuse 10.2. Even since i started using it I didn’t boot my Vista partition. There are good number of features that I liked about openSuse. One fine day, I started writing shell scripts to untar and move to public_html. Somehow I ran that command on root and all folders are getting moved.

After cracking my head for a while, I was thinking that bug in openSuse 10.2, screwed it all. So, based on my linux dude, Sreeram Potluri, I installed the Red Hat for stability. Honestly, once anyone got used to openSuse, it might be bit frustating for the first couple of days. I couldn’t event get some setups to run, because I got used to yast feature. Within couple of days, I made my move to Suse 10 Enterprise edition. This interface is atleast better but I saw in the very first few hours that some operations were not getting processed appropriately.

Not until recently, I have realized that my unix shell script screwed it all, so yet an other time, I shall make a move to 10.2. If things don’t go smooth then I shall stick with Vista, and if it did then bye bye vista.

Shyam K. Arjarapu

Class is ambiguous in the namespace – Fixed

Last night, I slept early 10.45 PM, however wokeup @ 5.45 AM after having my regular # of sleep hours. I have tried my best to sleep for next couple of hours, as there is yet another long work day is awaiting me.

I stopped by work 8 AM this morning and started to work on my issues with code getting work on Visual Studio 2005 IDE. The following errors from yesterday’s port pissed me off.

  • Compiler Error Message: BC30456: ‘InitializeCulture’ is not a member of ‘ASP.login_aspx’.
  • ASPNET: Make sure that the class defined in this code file matches the ‘inherits’ attribute, and that it extends the correct base class (e.g. Page or UserControl).
  • Login is ambiguous in the namespace MyNameSpace.MyApplication

I had a source code with .aspx file containing

<%@ Page Language="VB" AutoEventWireup="false" 
          Inherits="MyNamespace.MyApplication.Login" %>

So, for some reason I changed CodeFile to CodeBehind and voila all the above problems fixed. Now, I need to figure out how in the hell I had CodeFile instead of CodeBehind and whatz the difference between them.

Shyam K. Arjarapu

Visual Studio 2005 Pisses me off one more time.

Today, I am very much pissed of Visual Studio 2005 wasting me 4 hours of worthful time and headache by the end of the day. I thought of making use of Source Safe features that comes with Team Suite for Database Developers and ported my current application from .NET 1.0 to 2.0. At first, the migration was smooth and never had any errors. All of a sudden stupid errors crept in from nowhere. The following errors in my UserControls and Login page have made me go crazy with inconsistent errors thrown by the .NET compilers

1) Compiler Error Message: BC30456: ‘InitializeCulture’ is not a member of ‘ASP.login_aspx’.
2) ASPNET: Make sure that the class defined in this code file matches the ‘inherits’ attribute, and that it extends the correct base class (e.g. Page or UserControl).
3) Login is ambiguous in the namespace MyNameSpace.MyApplication

At the end of the day, I gave up for the good. I am very much frustated with the schedule, I had week. Hopefully, some sound sleep and getting rid of .NET 2.0 framework would leave some peace of mind for the time being.

Shyam K. Arjarapu