Search:

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

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,460

    [ubuntu] Re: Fujitsu Lifebook UH552 ?

    I'm considering this laptop for Ubuntu.
    Im curious about the battery life/fan noise/temperature. Do you have any positive or negative experiences with the above after using it for some time? Thanks...
  2. Re: please help detect AMD 6490M video card (10.04 LTS)

    Funny thing, after issuing

    update-pciids

    The new lspci also shows the videocard as
    $ lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor...
  3. please help detect AMD 6490M video card (10.04 LTS)

    I have installed ubuntu 10.04 LTS, 64 bit, on a HP Probook 4530s with AMD 6490M video card. However, the display is running in a strange resolution, and on gnome-display-properties the monitor says...
  4. Replies
    4
    Views
    202

    Re: C strings pointer manipulation problem

    Thanks very much!
  5. Replies
    4
    Views
    202

    Re: C strings pointer manipulation problem

    Thanks - reworked it to:



    char *duplicate, *begin;
    if ((begin = duplicate = malloc(strlen(msg) + 1)) == NULL)
    exit_error("Null duplicate string");
    ...
    free(begin);
  6. Replies
    4
    Views
    202

    C strings pointer manipulation problem

    I have been trying to resolve the No1 of the Ruby quiz problems - http://www.rubyquiz.com/quiz1.html in C, but the program keeps complaining to me when I try to free my pointer. Please, can you help...
  7. Replies
    24
    Views
    623

    Re: Help with C pointers/strings [c]

    Awesome! Yes, it does - if I leave the "free(now);" line.

    Thanks a lot - I wouldn't have been able to debug this at all.
  8. Replies
    24
    Views
    623

    Re: Help with C pointers/strings [c]

    Nope, it says segmentation fault. I'm not sure why though :)
  9. Replies
    24
    Views
    623

    Re: Help with C pointers/strings [c]

    Awesome! It seems to work now. Thank you very much for all your helping and guidance!



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    int main(void)
    {
  10. Replies
    24
    Views
    623

    Re: Help with C pointers/strings [c]

    Thanks very much!
    I have reworked the code to:



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    int main(void)
  11. Replies
    24
    Views
    623

    Re: Help with C pointers/strings [c]

    Thanks! I was able to redo the code and it seems to work. Does the pointer point automatically to the beginning of some memory block after the "malloc" thing, or do I have to say e.g.:

    char...
  12. Replies
    24
    Views
    623

    Help with C pointers/strings [c]

    I have been trying to make some small programs to get better with using memory in C. Can you please help me spot my errors in the following code (it should ideally reverse a string and print it):

    ...
  13. Replies
    19
    Views
    570

    Re: Please help debug this C declaration [C]

    Awesome! I'll be checking it a lot while playing!

    You were right, a much smaller array was needed. The thing I like about it is that with C it seems fast. On to the next ones :)

    EDIT - removed...
  14. Replies
    19
    Views
    570

    Re: Please help debug this C declaration [C]

    I was trying to follow the algorithm as said in Wikipedia:
    1. Create a list of consecutive integers from two to n: (2, 3, 4, ..., n)
    2. ...

    But I set n too high ;]


    Awesome! Thanks very...
  15. Replies
    19
    Views
    570

    Re: Please help debug this C declaration [C]

    It's the problem 7; my first try was an Euler sieve on a big array, for learning C better (hence the topic). My code was 30 lines long, but also nonworking :) I'll try to rework it to use less...
  16. Replies
    19
    Views
    570

    Re: Please help debug this C declaration [C]

    Thanks. I haven't used C so far, and it's a humbling experience after using other languages. Thanks for your help.
  17. Replies
    19
    Views
    570

    Please help debug this C declaration [C]

    I have tried playing with some Project Euler problem (decided to do it in C), but was stopped in the beginning by the rather strange Segmentation Fault:



    #include <stdio.h>

    main()
    {
    ...
  18. Replies
    3
    Views
    1,301

    Re: Python regex over multiple lines

    Check here: http://diveintopython.org/regular_expressions/verbose.html
  19. How can i make user defined javascript in Opera run for www.google.com?

    Hello,

    I'm playing with user-defined javascript in opera (sadly I'm not good with it). For example, the following javascript:


    (function() {

    function backgroundToGreen(){
    ...
  20. Replies
    3
    Views
    441

    [SOLVED] Re: Iterating elements in Python

    Thank you; actually I ended up making a generator with very similar to your code:



    """
    >>> all_pixels = [(110, 103, 145), (109, 103, 147), (104, 101, 144), (109, 104, 145), (107, 102, 143),...
  21. Replies
    3
    Views
    441

    [SOLVED] Iterating elements in Python

    I have a long list of pixels, represented as RGB as:



    [(123, 32, 43), (123, 54, 87), (213, 98, 78), (88, 99, 101), (95, 11, 243), (222, 111, 98), (55, 66, 89) ...]


    In Python, how do I...
  22. Replies
    10
    Views
    2,391

    Re: Sed Question: Combining two files line by line

    As a python script:



    try:
    file1 = open("file1.txt")
    file2 = open("file2.txt")
    for line_f1 in file1:
    for line_f2 in file2:
    print line_f1, line_f2,
  23. Re: Give me an idea for an university project (python/django)

    It sounds very interesting; moreover my native language is not English and this doubles my interest (cause I really doubt I would have thought of such an idea by myself).

    Thanks also for the...
  24. Give me an idea for an university project (python/django)

    I have about 4-5 weeks to devote to a project in my university, and the chosen from me technologies are python+django. I want to develop something moderately difficult (.e. something I would be able...
  25. Replies
    1
    Views
    607

    Re: Resources access problem from JAR

    Solved the image part by using:



    URL imageURL = getClass().getResource("/resources/trayicon2.png");
    Image image = Toolkit.getDefaultToolkit().getImage(imageURL);


    Now the only thing left...
Results 1 to 25 of 103
Page 1 of 5 1 2 3 4