Jump to content


  • Posts

  • Joined

  • Last visited

Extra Info

  • Your CPU
    Intel Centrino Core2Duo 2.2Ghz
  • Your Graphics Card
    ATI Mobility Express X1450
  • Your RAM
    4 GB
  • Your Hard Drive
    2.2 TB
  • Your Sound Card
  • Your Operating System
    Vista OSX & Mandriva 2k9.1
  • Your Monitor
    LCD 15'' Wide
  • Your Keyboard
    LG International Gaming Board
  • Your Mouse
    Samsung Ag+ SuperNano Tech Mouse
  • Your Case

Contact Methods

  • Website URL

Profile Information

  • Gender

Xcross87's Achievements

New Here

New Here (1/7)



  1. Thank you@ I've fixed that damn thing :D Problem solved!
  2. By mistake, I selected 'Expand' properties for gnome main menu panel, then everything is grouped into center. Then I try to reselected 'Expand' properties, it doesn't go back to normal. Here's how it looks: How can I fix this problem? [moved from Software by spinynorman]
  3. I've created 3 files: swap.h and swap.c then make static library from it gcc -Wall -c swap.c ar -cvq libswap.a swap.o Then I write 2 program to test this library: test_swap.c and test_swap.cpp I compile $ gcc -Wall -o testc test_swap.c libswap.a $ ./testc a = 100 | b = 1 $ g++ -Wall -o testcpp test_swap.cpp libswap.a /home/user/tmp/cc2Lcf8G.o: In function `main': test_swap.cpp:(.text+0x2b): undefined reference to `swap_int(int*, int*)' collect2: ld returned 1 exit status What's wrong with this in C++? Here the source code + swap.h #ifndef __SWAP_H__ #define __SWAP_H__ void swap_int( int *, int * ); #endif // __SWAP_H__ + swap.c #include "swap.h" void swap_int( int *a, int *b ) { int tmp = *a; *a = *b; *b = tmp; } + test_swap.c #include <stdio.h> #include "swap.h" int main ( ) { int a = 1, b = 100; swap_int( &a, &b ); printf("a = %d | b = %d\n", a, b ); return 0; } + test_swap.cpp #include <iostream> #include "swap.h" int main( ) { int a = 1, b = 100; swap_int( &a, &b ); std::cout << "a = " << a << "b = " << b << std::endl; return 0; }
  4. I have 3 files: main.c, mylib.h, mylib.c Now I want to put mylib.h into : /usr/include/mydir/mylib.h And I create a static library: libmylib.a, and put into the folder: /usr/lib/mydir/libmylib.a Then I compile: $ gcc -o main main.c Then I got linking error main.c:(.text+0x3e): undefined reference to `extract_v1' main.c:(.text+0x7b): undefined reference to `modify_v1' collect2: ld returned 1 exit status So I try with -l options: $ gcc -o main main.c -lmylib I still got error /usr/bin/ld: cannot find -lmylib collect2: ld returned 1 exit status Any idea about this? Also, I want to ask about: how to create my own header and library to put into /usr/include/mylib/ and /usr/lib/mylib/, so when I use function in my program, the compiler will automatically link to library. It's like when you #include <stdio.h>, and you compile: $ gcc -o program program.c, you don't need to specify any linking folder or library.
  5. Customize my Mandriva, so love it since it's so kooooool :D

  6. You can share to me and others :) My solution is to locate the controls theme, usually at : /usr/share/themes/Theme-Name/gtk-2.0/gtkrc Open gtkrc file with superuser right, then add this line at top if it doesn't exist: gtk-icon-sizes = "panel-menu=16,16" Logout and pick that theme :) Anyway, I'm wondering if there is any way to reduce icon size on top panel (the one contains main menu bar) ?
  7. The toplevel menu bar (Application Places System) contains menu-item icons way too big, everytime I click over them the list displays like half of the screen. After a while checking with some themes, I can see they change the list smaller (it takes only 1/5 of the screen). I've found out because they make the icon size smaller. I'm wondering how I can modify icon size on menu bar list? Thanks for your support.
  8. How can I write a script that can list all processes use over 10%CPU time, process id and name are written into a text file as a report? [moved from Other Distributions by spinynorman]
  9. yeah, now it works...what I did is just switch to another driver, then switch back to previous driver...then it worked.
  10. oh...damn..this is bad.. I've just tried to change to another driver then it switches back to the my previous driver...and it just works like charm. Just don't get it ...^^!
  11. Just 1 hour ago, the sound was running fine. I came back, turn on movie player...it doesn't work...it's calm now. To check whether my card is good or not. Switch into Windows, it's running fine. So it's certainly Mandriva problem. I don't know what to do now. Someone please help me! Here a little info about my device Identification Vendor: ‎Intel Corporation Description: ‎82801G (ICH7 Family) High Definition Audio Controller Media class: ‎Audio device Connection Bus: ‎PCI PCI domain: ‎0 Bus PCI #: ‎0 PCI device #: ‎27 PCI function #: ‎0 Vendor ID: ‎0x8086 Device ID: ‎0x27d8 Sub vendor ID: ‎0x1179 Sub device ID: ‎0xff10 Driver Module: ‎snd_hda_intel Alternative drivers: ‎unknown My system: Linux localhost #1 SMP Sun Jul 5 19:57:54 EDT 2009 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GNU/Linux Thanks for your attention! Best regards, [moved from Software by Greg2]
  12. Hi Mandri-ers, I'm currently studying security under Linux. However, it doesn't seem to work for me in Mandriva. The source: (of source, 100% buffer overflow) #include <stdio.h> #include <string.h> int main( int argc, char *argv[] ) { char buffer[100]; strcpy( buffer, argv[1] ); return 0; } I've Googled and did all these: 1. Disable GCC Stack Protector (-fno-stack-protector) 2. Disable source check (-D_FORTIFY_SOURCE=0) 3. Disable ASLR (kernel.randomize_va_space=0) 4*. Enable GNU_STACK ELF Markings (-z exestack) I've done 1,2,3, including 4 in final compiling command: $ gcc -fno-stack-protector -z exestack -D_FORTIFY_SOURCE=0 -o overflow overflow.c && readelf -l overflow | grep -i stack GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 Guess what? It still doesn't work out. EIP is not overwritten... As you can see above, the ./overflow still can't execute stack even I specify option "-z exestack" (RWE), it still gives the final binary (RW) instead. My system info: Mandriva Linux 2009.1 Linux localhost #1 SMP Sun Jul 5 19:57:54 EDT 2009 i686 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GNU/Linux Anyone know how can I setup the environment for this? I really need helps right now. Best regards,
  13. Thanks! This is exactly patching :) Since MouseWheel only works under Windows, it should be commented out under Linux.
  14. Thanks! It seems like to be a Perl-Tk bug. Do you know how to fix it in Mandriva?
  • Create New...