Best programmer replies when something is wrong

  1. That’s weird…
  2. It’s never done that before.
  3. It worked yesterday.
  4. How is that possible?
  5. It must be a hardware problem.
  6. What did you type in wrong to get it crash?
  7. There is something funky in your data
  8. I haven’t touched that part in weeks!
  9. You must have the wrong version
  10. It’s just some unlucky coincidence
  11. I can’t test everything!
  12. THIS can’t be the source of THAT
  13. It works, but is hasn’t been tested
  14. Someone must have changed my code
  15. Did you check for a virus on your system?
  16. Even though it doesn’t work, how does it feel?
  17. You can’t use that version on your system
  18. Why do you want to do it that way?
  19. Where were you when the program blew up?

And the Number One reply by programmer when their programs don’t work:

  1. It works on my machine

ABAP – Change Documents example with Z-table

SAPIn this example I’ll follow on the theory of Change Documents presented in previous article (ABAP – Change Documents (theory)) and I’ll show how to create(or update an existing) Z-table where each modification will be logged into CDHRD and CDPOS tables Continue reading

How to Add Swap on Ubuntu

Linux RAM is composed of chunks of memory called pages. To free up pages of RAM, a “linux swap” can occur and a page of memory is copied from the RAM to preconfigured space on the hard disk. Linux swaps allow a system to harness more memory than was originally physically available.

However, swapping does have disadvantages. Because hard disks have a much slower memory than RAM, virtual private server performance may slow down considerably. Additionally, swap thrashing can begin to take place if the system gets swamped from too many files being swapped in and out. Continue reading

Algorithms – puzzle called Knapsack

Knapsack PuzzleToday I’d like to share with you a puzzle I managed to solve in past few weeks using a technique called branch&bound – Knapsack.

Interested what is 0-1 Knapsack puzzle about?  Continue reading

ABAP – Change Documents (theory)

Data manipulation in SAP is done using standard documents such as Sales Orders, Purchase Orders, Vendor Invoices etc. Sometimes it’s necessary to make a change a document after it has been saved and created for the first time. From security point of view it is required/imperative that all such changes must be recorded by the system. For this purpose there is a standard functionality implemented in SAP system called “Change Documents” Continue reading

Algorithms: In-place algorithm to rearrange elements of an array

C++In a given array of elements like
[a1, a2, ..., an, b1, b2, ..., bn, <X>1,<X>2, ..., <X>n]

without taking a extra memory swap elements in the array so the outcome will be like
[a1, b1, … <X>1, a2, b2, … <X>2, …, an, bn, …, <X>n] Continue reading