Skip to main content

Posts

Showing posts with the label command

Fix Ubuntu Software Centter Start Up Problem

If you ever run into a problem on Ubuntu where by your system update, software center, or synaptic fail to run properly and you get the following bug report: E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/mx.archive.ubuntu.com_ubuntu_dists_precise-updates_restricted_binary-i386_Packages E: The package lists or status file could not be parsed or opened. You can type the following terminal commands to fix the problem: sudo rm -r /var/lib/apt/lists/* sudo apt-get update The problem was caused by previous attempts to update but your internet network failing to retrieve needed files, which results in Ubuntu getting confused.

Important Lessons to Remember from Assembly Language programming

Okay, so I have been writing assembly language programs for a little bit now and to be honest with everyone, not like it is not obvious, assembly can be very frustrating especially when you write code and it seems to make logical sense.  However, when you run the program, it either says segmentation fault, memory corruption issues, or the program displays a bunch of random text to the screen. Okay so, recently I have been trying to write an application that does something simple using assembly.  The goal was to write a program with Nasm and have it display the number of arguments passed to our program. From my previous posts, we know that ebp+4 contains the return address after the main method is executed.  We also now that ebp+8 is the first parameter passed to main,  ebp+12 is the second parameter, and so on and so on with 4 added to each time.  This is because from the C programming language the main method has a header declaration that is of the followin...