Search:

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

Page 1 of 6 1 2 3 4

Search: Search took 0.03 seconds.

  1. customizing axis lables of two images using imshow

    Hi,
    I want to draw 2-d histograms using imshow() with matplotlib. I managed to do this with the following code and the image generated is the one I am interested in and I have attached.


    ...
  2. [SOLVED] Re: Replacing one line in text file with line from other file

    Thanks for all the replies! This helped alot!
  3. [SOLVED] Replacing one line in text file with line from other file

    I have a question regarding replacing line in files.
    I want to replace the ith line of replace.dat with the jth line of othertext.dat how can i achieve this?
  4. Replies
    1
    Views
    110

    [all variants] make a command globally executable

    I would like to know how to do the following:
    I have a directory with exactuable scripts:
    $path_to_dir/mm_script1
    $path_to_dir/mm_script1
    $path_to_dir/mm_script1

    at the moment I can execute...
  5. [ubuntu] installing graphics drivers not as sudo?

    Hi I was wondering it is at all possible to install a grphics driver not as root, i.e using sudo?

    Thanks!
  6. Replies
    2
    Views
    491

    Re: Cuda: toolkit installation

    Thanks for the reply! If i specify the library path I get the same error.
    My system admin is also not very helpful..
    I'll work something out tho!
  7. Replies
    2
    Views
    491

    Cuda: toolkit installation

    Hi,
    I am using a computer with 3 nvidia graphic cards, but I am not sure if it has the cuda development toolkit installed.
    I tried running a simple hello world program and I get the following...
  8. Replies
    6
    Views
    313

    Re: bash renaming files

    Ok i guess i sloved it myself:



    #!/bin/bash

    arr=(foo*.dat) # * is list of all file and dir names

    n=${#arr[@]}
    echo "number of files and dirs "$n
  9. Replies
    6
    Views
    313

    Re: bash renaming files

    No not quite, I want the numbering to be continuous, at the moment there is a random gap in the numbering somewhere, as in it goes from say 0 to 50 and then starts again at 150. the underscore I...
  10. Replies
    6
    Views
    313

    Re: bash renaming files

    The mv you suggest assumes that foo_"$j".xvg is a directory.

    The error I get is that the target is not a directory...
  11. Replies
    6
    Views
    313

    bash renaming files

    Hi
    I have the following problem I am not sure how to solve elegantly.
    I have a directory with 203 files named foo_*.xvg for the * substitute numbers from 0 to 302
    Now evidently the numbering...
  12. Replies
    3,519
    Views
    222,888

    Poll: Re: What is your age and what do you use ubuntu for?

    Female 24, research..mainly programming in c++/python
  13. Matlab anyone?- how to handle char arrays

    Hi,
    I dont know matlab, but I am forced to use it, yet I seem to waste my time doing very simple things just because I don't know how to.
    I have a character array from the dir function:
    ...
  14. Replies
    0
    Views
    544

    openCL on ubuntu

    Has anyone had any experience running openCL on ubuntu? I am about to install the sdk, as I want to develop some kernals, which will eventually run with GPU acceleration. But my laptop hasn't got...
  15. Replies
    3
    Views
    1,106

    Re: check directory tree in c/c++

    thanks, I knew it was something silly like that. And indeed mkdir obviously also checks if it is there, and i am obviously using it to create the directory...coding past 10pm = my brain not...
  16. Replies
    3
    Views
    1,106

    check directory tree in c/c++

    I need to check if a directory tree exists.
    Essentially i want to check top directory if it doesn't exist create it. Then check if first subdirectory exists if it doesn't create it etc.
    I wrote a...
  17. Replies
    9
    Views
    539

    Re: efficient searching in STL containers

    Yep that is pretty much what my idea was as well. I guess i just wanted to avoid the io and see if there was a more elegant solution which i am not quite aware of.
    Thanks for the input :)
  18. Replies
    9
    Views
    539

    Re: efficient searching in STL containers

    Well each number will occur at least once. The pairs actually represent edges on a graph (network) and I am trying to work out the degree distribution of it. Everything suggests, that it has a scale...
  19. Replies
    9
    Views
    539

    Re: efficient searching in STL containers

    The range of numbers is somewhere between 0 and 2^28 all integers obviously. But for each number there is in that range, i want to know how often it occurs and it needs to be accurate.
  20. Replies
    9
    Views
    539

    efficient searching in STL containers

    Hi,
    this may be a very simple question, but i don't know how to solve it efficiently.
    I have a very large 2-D vector (vector <vector <long> >), of size matrix[n][2];
    n>500000.
    The vector is...
  21. Replies
    2
    Views
    223

    trouble with bitwise operators

    Just a quick question about some code i am trying to understand.
    Looks something like this:


    ...
    int myRand;
    myRand = rand(); //creates rand int between 0 and RANDMAX
    int shift =...
  22. Re: c++ class constructor/ static const question

    Ah specifiying the constructor worked like magic :) Thanks alot!
  23. Re: c++ class constructor/ static const question

    the idea is to get rid of the static in cProtein, so i dont need to recompile everytime I want to change the length!
  24. c++ class constructor/ static const question

    I have a question about class structures in c++.

    i have a manager class cManager. Within this class a private variable is an instance of an other class cProtein.

    roughly looks like this:


    ...
  25. Replies
    2
    Views
    1,737

    [ubuntu] Re: change default ssh directory

    It worked like magic! Thanks alot :)
Results 1 to 25 of 127
Page 1 of 6 1 2 3 4