Forum: Assembly 15 Days Ago |
| Replies: 6 Views: 604 Thx for everyone's help.
but i've came up with something that served me in my program. hope it helps others as well.
the number is stored in al .. in this example, i've stored 25 in al aqnd printed... |
Forum: Assembly 25 Days Ago |
| Replies: 6 Views: 604 i'm really new to Assembly and we just took a small assignment about it. so i'd dont know anything about libraries. all i know is that we are using TASM.
does that help? |
Forum: Assembly 26 Days Ago |
| Replies: 6 Views: 604 Hello,
can someone help me to figure out how i can print the content stored in si ?
suppose i did:
sub si,si
inc si ---> repeated this few time.
how can i print the number in SI on the... |
Forum: Shell Scripting Mar 17th, 2009 |
| Replies: 3 Views: 452 Thx for the help.
what i did is as following:
in the /etc/share/gdm/defaults.conf file, you will find
0=standard
#1=standard
simply i removed the comment sign next to the 1=standard and it... |
Forum: Shell Scripting Mar 15th, 2009 |
| Replies: 3 Views: 452 hey,
i've just learnt how to make additional virtual console ( e.g pressing ctrl+alt+f8 ) by changing the /etc/inittab file. i was wondering if i can make another graphical one such as that on... |
Forum: Windows NT / 2000 / XP Feb 5th, 2009 |
| Replies: 2 Views: 259 Hello all,
i'm formatting my pc and i'm facing a problem with my CD-ROM device. in the middle of windows xp installation i get an error message that it cant read from the I/O device.
i assume that... |
Forum: Shell Scripting Jan 20th, 2009 |
| Replies: 6 Views: 908 i actually did read the man pages but couldnt understand anything from this:
-n, --quiet, --silent
suppress automatic printing of pattern space.
i've tried the following and it worked for... |
Forum: Shell Scripting Jan 20th, 2009 |
| Replies: 6 Views: 908 Thx for the quick answer Salem.
i looked the man pages for those command, but couldnt figure out how to use them for my purpose.
could you add an example on one of those commands? |
Forum: Shell Scripting Jan 20th, 2009 |
| Replies: 2 Views: 909 Could someone help me to understand what File descriptors are in Linux? |
Forum: Shell Scripting Jan 20th, 2009 |
| Replies: 6 Views: 908 Hello,
i'm trying to print specific lines from a file using only one command
for example:
a file contains 30 lines , i wish to print the content of lines 13, 14, 15, 16??
what command to use... |
Forum: C++ Jan 4th, 2009 |
| Replies: 9 Views: 367 yeah i have different values for t1 and t2.
i also tried to cast it to float and print out but still the same.
(t2-t1)/ CLK_TCK) .. does this give seconds? or milli seconds ? or sth else? |
Forum: C++ Jan 4th, 2009 |
| Replies: 9 Views: 367 no .. i just told you to ignore that huge nubmer.
s still need to get the time in seconds.
am i using the wrong methods?? |
Forum: C++ Jan 4th, 2009 |
| Replies: 9 Views: 367 i was trying to enlarge the value by multiplying it by 1000 first and then increesed it to that number .. but yet i got zero.
so u can ignore it. |
Forum: C++ Jan 4th, 2009 |
| Replies: 9 Views: 367 hello,
i'm trying to to get the time of my sorting function in seconds, and i always get ZERO time.
here is what i'm using:
clock_t t1,t2;
t1=clock();
clock_t IT
I.insertion(A,200000);
... |
Forum: Java Jan 4th, 2009 |
| Replies: 3 Views: 476 oh yeah it worked. many thanks to you ;)
everything is in order now. thanks again |
Forum: Java Jan 4th, 2009 |
| Replies: 3 Views: 476 and i cant even post them under each other in my my post here as well.
i hope u got what i'm asking for? |
Forum: Java Jan 4th, 2009 |
| Replies: 3 Views: 476 Hello,
i'm trying to make a a list of items in a Text Area, something like this:
apple 2 22
banana 31 1
orange 1 3
i want to it o be organized such that the... |
Forum: Shell Scripting Dec 31st, 2008 |
| Replies: 12 Views: 1,422 all what salem recommended to use, did work perfectly for me, and my script is running well.
i was also told by others that file cant be edited in place .. but if such way exists, i would like to... |
Forum: Shell Scripting Dec 25th, 2008 |
| Replies: 12 Views: 1,422 Salem, what if the user enters a certain color like this:
echo enter color
read choice
and if i write the following:
sed '/$choice/d' file > newfile
it doesnt really work!
how can i put the... |
Forum: Shell Scripting Dec 25th, 2008 |
| Replies: 12 Views: 1,422 i used
echo text >> file
and it adds to the end of file .. Thank you for helping Salem. this thread is solved.
Thx again |
Forum: Shell Scripting Dec 25th, 2008 |
| Replies: 12 Views: 1,422 aha .. i see .. i understand and it work fine with me.
just one more and last question, how can i add to the end of the file a certain row? can i use the sed command as before?
i tried to write:... |
Forum: Shell Scripting Dec 25th, 2008 |
| Replies: 12 Views: 1,422 yeah i want to delete the line with word green.
your command did work well but it doesnt change the original text file, it rather sends the new edited text to the newfile.
is there any way i can... |
Forum: Shell Scripting Dec 25th, 2008 |
| Replies: 12 Views: 1,422 hello,
i'm new with scripts and linux and need a little help.
i made a text file called colors using a vi editor and contains as follows:
red
green
blue
gold |
Forum: Java Dec 8th, 2008 |
| Replies: 8 Views: 933 no i didnt mean the panel is from other classes .. but this frame i use is started from a different frame.
for the button stretching thing .. see lines 170 - 218 .. thats where i declare and add... |
Forum: Java Dec 8th, 2008 |
| Replies: 8 Views: 933 may i ask another question related to panel?
i'm using the removeAll() method to clear the panel from all buttons. but it doesnt take any effect on the screen .. how can i update it? |
Forum: Java Dec 8th, 2008 |
| Replies: 8 Views: 933 the setSize() didnt work ... instead i used setPreferedSize() and it did the desired job.
but the problem now is that i have some buttons stretched in the panel .. i think maybe setting a proper... |
Forum: Java Dec 8th, 2008 |
| Replies: 8 Views: 933 Hi,
i' having a small problem with panels. i want the panel always to have the same size even when empty. in my program that i'm writting, i can see that the panel doesnt fit all the area where i... |
Forum: Java Dec 7th, 2008 |
| Replies: 4 Views: 428 ok sorry .. but it wasnt resolved for me at that time and i simply avoided what i was doing then.
this post can be deleted if considered as multiple posting. |
Forum: Java Dec 7th, 2008 |
| Replies: 4 Views: 428 Why does the actionPerformed only deal with Final variables ?? |
Forum: Java Dec 7th, 2008 |
| Replies: 4 Views: 428 in th following code, i cant use a Text Field in the actionPerformed methode .. the textFiled is declared outside that method.
i get the following error:
Cannot refer to a non-final variable... |
Forum: Java Dec 6th, 2008 |
| Replies: 6 Views: 1,215 yep .. the queries i'm writing are retrieving data now ..
i'm making a small database for a supermarket .. its a small project for my database course in uni .. and the example i provided up is for... |
Forum: Java Dec 6th, 2008 |
| Replies: 6 Views: 1,215 Oh many thanks to you !! .. it worked well as u described. |
Forum: Java Dec 6th, 2008 |
| Replies: 6 Views: 1,215 yeah i think i might missed adding the class path ... do you know how it may be added?
The driver is added for sure .. just did that a moment ago. |
Forum: Java Dec 6th, 2008 |
| Replies: 6 Views: 1,215 Hello,
i'm working on netbeans and want to access my database using this code:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import... |
Forum: Java Oct 17th, 2008 |
| Replies: 8 Views: 1,501 |
Forum: Java Oct 17th, 2008 |
| Replies: 8 Views: 1,501 i didnt know if to open a new thread .. but i'm having another problem .. probably casting will do it, but i'm not sure.
i'm filling a stack with many variable: Strings and int
when i pop, it... |
Forum: Java Oct 17th, 2008 |
| Replies: 8 Views: 1,501 Your suggestion is working well ... i had a problem with the declaration of my matrix.
Thank you v.much for your help. |
Forum: Java Oct 17th, 2008 |
| Replies: 8 Views: 1,501 I've tried it bu it gave me an exeptions as follows:
ValueEntryFrame.<init>(ValueEntryFrame.java:83)
This is wut i wrote: ( trying to copy content of a table into a matrix of type int)
... |
Forum: Java Oct 16th, 2008 |
| Replies: 8 Views: 1,501 Hey,
i'm trying to use the method getValueAt(int row, int column) from Class DefaultTableModel.
This method returns Object value, but i want to get an int value.
so can anyone suggest what... |
Forum: Java Oct 10th, 2008 |
| Replies: 2 Views: 407 OH i see .... don't know how i missed that one, probably of tiredness.
Thanks a lot |