Search:

Type: Posts; User: alan9800; Keyword(s):

Page 1 of 5 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: Script: Remove all files in a given directory that are older than 1 year old

    IMHO the two lines I have highlighted in bold might be simplified in a single line as follows:
    system("rm -iv $file");#where "i" means "interactive" and "v" means "verbose"
  2. Re: Having trouble compiling C code on ubuntu. (#include errors)

    try
    #include <asm-generic/page.h>
  3. Replies
    5
    Views
    1,080

    Re: Syntax wildcard extension, command line.

    assuming that you have a lot of duplicated files with different names and extensions, wouldn't it be preferable the following command:
    find . -iname *(2).* -exec rm {} \;:?:
  4. Re: Having trouble compiling C code on ubuntu. (#include errors)

    have you tried to run the following command in a Terminal window:
    sudo find / -iname page.h:?:
    If that file exists on the HD on which you installed Ubuntu, with that command you'll find it.
  5. Thread: basic script

    by alan9800
    Replies
    6
    Views
    669

    [SOLVED] Re: basic script

    you're right.
    I've made confusion while reading the fifth line of the script.
    My apologies to the OP for my mistake.
  6. Thread: basic script

    by alan9800
    Replies
    6
    Views
    669

    [SOLVED] Re: basic script

    the first line of your script sets I (uppercase i) to 0 (zero); the second and the third lines do the same, but using the value of I instead of setting directly these variables to 0.
    The fourth line...
  7. Replies
    1
    Views
    420

    Re: OpenGL book for Ubuntu?

    you might give a look to the following links:
    http://www.opengl.org/wiki/Getting_Started#Linux
    http://www.opengl.org/wiki/OpenGL_in_Linux:_Programming
  8. [ubuntu] Re: 12.04 - Shortcut to resize to half of the screen

    you might give a look at the following link:
    https://help.ubuntu.com/12.04/ubuntu-help/shell-windows-tiled.html
  9. Thread: python error

    by alan9800
    Replies
    6
    Views
    880

    [SOLVED] Re: python error

    it seems to me that you've forgotten one parentheses at the end of last line of your piece of code.
    In addition to that, the last line isn't correctly indented.
  10. Thread: python error

    by alan9800
    Replies
    2
    Views
    281

    Re: python error

    the OP posted again the code here.
  11. Re: Possible conflict between my desktop, and Kate

    you might install Kubuntu 12.04 LTS and then run the following command from Konsole (the Kubuntu terminal):
    sudo apt-get install kubuntu-low-fat-settingsso that the OS is tuned for your hardware.
  12. Replies
    9
    Views
    826

    Re: Good book on C++?

    I've bought this book for learning C++: The C++ Programming Language, 4th Edition.
  13. Replies
    3
    Views
    292

    [SOLVED] Re: Dash Tweak help

    there would be unsettings, but remember that is beta software.
  14. [ubuntu] Re: 12.04 LTS without Unity : will it be faster with traditional GNOME desktop?

    thank you very much for this explanation; each guide I've read didn't specify to use that flag for installing only gnome-session-fallback.
    Only one more question:
    sudo apt-get install...
  15. [ubuntu] Re: 12.04 LTS without Unity : will it be faster with traditional GNOME desktop?

    as far as I have been able to experiment, every time I have installed gnome-session-fallback there was available also gnome-shell as desktop environment.
    Perhaps I have made something wrong, but is...
  16. [ubuntu] Re: 12.04 LTS without Unity : will it be faster with traditional GNOME desktop?

    since gnome-session-fallback installs also gnome-shell, you might prefer to install gnome-panel, that only has the gnome 2 classic desktop.
    And if you wish an even more faster desktop environment,...
  17. Replies
    6
    Views
    906

    Re: Arithmetic Question in C++ Programming

    About the issues of the representation of floating point numbers, there's an interesting chapter of the python tutorial, that IMHO is useful for understanding how a PC manages those numbers.
    About...
  18. Re: Fix photo file timestamp as well as Exif timestamp

    you might try exiftool.
  19. Replies
    9
    Views
    1,351

    Re: Can't get Ubuntu installed

    if you wish to install Xubuntu 12.04.2 but you only have a CD, you might do these steps:

    download Xubuntu 12.04.1 from here;
    burn that ISO on a CD;
    install Xubuntu on your PC and download...
  20. Replies
    9
    Views
    1,351

    Re: Can't get Ubuntu installed

    Xubuntu 12.04.2 64bit has an ISO image of 707Mb, while the 32bit release has an ISO image of 689Mb: see here.
  21. Replies
    3
    Views
    943

    Re: Turtle Graphing

    my "fred" is completely red, as you can see:

    http://img839.imageshack.us/img839/117/2ei.png

    I ran your code with python 2.7.3, as I have already said in my previous post.
  22. Replies
    3
    Views
    943

    Re: Turtle Graphing

    after having installed the python-tk package (that is requested by the turtle module), I tested your code under python 2.7.3 (the standard python release on Ubuntu 12.04) and all worked fine.
    Also...
  23. Replies
    9
    Views
    738

    Re: python script eating processor

    the following link shows a tip for controlling CPU and RAM usage:
    http://stackoverflow.com/questions/276052/how-to-get-current-cpu-and-ram-usage-in-python/278271#278271
  24. Replies
    9
    Views
    738

    Re: python script eating processor

    you might use ideone, an online editor for a lot of programming languages.
    It allows you to test immediately your code.
    That said, why do you use os.popen instead of subprocess?
  25. Replies
    9
    Views
    738

    Re: python script eating processor

    this should be the code
    import os
    import time

    def getWeather(interval):
    a = int(time.time()) + int(interval)
    b = int(time.time())
    dataFile = open('/sdcard/weather.txt','a')
    ...
Results 1 to 25 of 123
Page 1 of 5 1 2 3 4