____

Thursday, January 28, 2010

UML generators for Ubuntu

This semster I had a sweet course in university named , Software Engineering 2 , with Professor Ostadzade.

in ubuntu I found some great softwares which can ease usage of UML . I introduce them for you:


Umbrello


Umbrello UML Modeller is a Unified Modelling Language diagram programme for Linux (KDE), Windows and MacOS .

the most exciting thing that I liekd about Umbrello is their Manual Handbook, which they explain all the cool things you can do with Umbrello .

as I read in the handbook, you can Import and Export Codes,
it means you can give a C++ Code to Umbrello and it will draw all the diagrams ! (class , state, squeience ,...)

BOUML

this is simple application, which at first you have to configure everything, like your browser, your editor , ... (it doesn't automaticly recognise your default applications)

you can define Classes, objects, their state and operations nd then generate their C++ or JAVA code .you can even generate diagrams for it
it is very fast and doesn't require much memory to manage several thousands of classes,

Dia Diagram Editor


this is another simple aplliciation which doesn't do much but it is a good Drawing application,

it has all the UML arrows and figures , if you want to draw a UML diagram by yourself , then it can give you a good hand !

Friday, January 22, 2010

Nessecary Tools for Booting Issues on ubuntu and windows , Bootloader, Grub , MBR

Sorry guys that I dont update that much, I am stuck with my university in Iran, it is funny I fail my courses with bad scores and those guys who dont know a thing about comptuer get best scores okay enough nagging let read my newest article !

Having Windows Xp, Windows Vista, Windows Seven , ubuntu 8.04 and ubuntu 9.10 on two hard disks , has made me an expertise in facing all kind of problem with Dual booting (I guess I should say Quad booting) .

I had written an article about grub three years ago and I still receive emails saying "Thank you that saved my ass".

here I want to introduce some links and applications to save more asses ;)

Warning : these list items are not steps , don't do them blindly one after another, these are seprate solutions for seprate problems .

  • First of all Grub 2 Tutorial on the forum is a great reference for all !

  • if you deleted one of your partitions and the partition table became invalid then try
    TestDisk

  • it is always a good idea to see a list of your partitions in ubuntu (you can always boot from an Ubuntu live CD)
    sudo fdisk -l
    in the results you can see the bootable partition is marked with a * and you an see their official name (the name that computer knows them by)
    for i.e :
    /dev/sdb2 * 5043 9562 36306900 7 HPFS/NTFS
    that tells me sdb2 (the second partion of my B hard disk is bootable and its filesystem is NTFS) and its address is /dev/sdb2

  • if you deleted your Windows bootloader . (in my case I deleted the first partition of windows hard disk) and windows MBR was gone, you can restore it using an Ubuntu live CD
    sudo apt-get install lilo
    sudo lilo -M /dev/sda mbr

    Replace sda with your hard disk ,for i.e if want to restore the windows MBR of your second hard disk it would be :
    sudo lilo -M /dev/sdb mbr
  • Partition Magic 8.1 Bootable CD is available on torrents , you can search and download if it is legal in your country . (I can't give you a direct link but you can search in Torrentz )
  • Gparted Live CD is an open source clone of Partition magic .
    in gparted you can , right click on the partition you want then click on "Manage Flags" then you can make a partition bootable by marking the boot flag.

  • SystemRescueCD is a great linux Live CD , that does tons of things , from partion-ing to cloning and repairing more !

  • there are Russian windows live CDs that are useful , find them on torrentz at your own legal risk (becareful they are fake virus ones too)

  • to make your grub menu beautiful , you can always try Start up Manager
    for ubuntu

  • for windows vista and windows 7 , you can out the instalation CD in and choose repair my compuer, to get back windows bootloader (yes that would destroy your linux bootloader)

Thursday, July 9, 2009

Debugging Under Linux

in these hard days in Iran college term finished, being stuck at home, nothing better to do than working programming projects .
last night I didn't sleep because the program that I wrote was giving me strange crushes and I was pulling out my hairs .

I found this great great tool to debugg programs in linux called gdb .


let me show you few examples of how it works .
after installing it .
- go to your program's source code directory .
- type this in terminal

gdb

- now run your binary file to debugg
run name_of_your_binaryfile

it will give detailed errors of what happend

- there is another thing called Backtrace (a report of the active stack frames instantiated by the execution of a program )
after "run" you can type :
backtrace


-you can also do : breakpoint , which makes your program stop at certain points
for example you want a report to be given to you in the function1. you type :
b function1


-the last thing I teach you is, file
you can import another binary file to examine using :
file NAMEOFFILE

have fun with GDB .

Related Posts: