Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.16 seconds.

  1. Replies
    2
    Views
    451

    Re: self referencing dynamic array

    The idea is to have N subgroups, each could contain maximum of N elements and the odering matters. OR Imagine it as N shuffling process and each pointer array describes the oder of their arrangement....
  2. Replies
    2
    Views
    451

    self referencing dynamic array

    A structure is having a self seferencing node, which is an array of pointers. Since the pointer array needs to have the same number of elements as in the structure, it is not possible to expilcitly...
  3. Replies
    0
    Views
    434

    Strange Thunar crash - System Freeze

    Hi,

    I have multiple users on the Xubuntu 14.04 (32 bit) install on my laptop. Whenever one user try to access the other users home folder using thunar, the system freezes and I need to hard reset....
  4. Re: segmentation fault (core dumped) pops while running a simple program in c

    You are trying to access unallocated memory. To be precise, database[1125765] does not exist, since 1125765>size.

    Also be careful about things like declaring the function first and casting the...
  5. [SOLVED] Re: How to align text to center of the image

    What you are probably looking for is this:


    <p align="left|right|center|justify"> Your text </p>
  6. Replies
    16
    Views
    745

    [SOLVED] Re: awk/paste column output

    Thanks Vaphell for the detailed explanation. Its good now.
  7. Replies
    16
    Views
    745

    [SOLVED] Re: awk/paste column output

    For the moment, I dont care about the sequence in which the files are read.
    I will try the paste command and report later
    In the mean time; I wrote a small C program to do the merging.

    Is...
  8. Replies
    16
    Views
    745

    [SOLVED] Re: awk/paste column output

    Hello again.

    The two scripts above seems to work for smaller files, but fails for bigger ones. The rows are mixed up and I cant figure out where the problem is.
    Test files are attached for...
  9. Replies
    16
    Views
    745

    [SOLVED] Re: awk/paste column output

    Thanks steeldriver and aromo2.

    the following ones worked



    find . -type f -name 'File*.txt' -exec awk '{a[FNR] = (!a[FNR]? $2 : a[FNR]"\t"$2)}; END{for (nr in a) print a[nr]}' {} +...
  10. Replies
    16
    Views
    745

    [SOLVED] awk/paste column output

    I have many text files with varying number of columns, but same number of lines. What I am trying to do is combine all the second column to another file. So, for N files, I should have N columns with...
  11. Replies
    1
    Views
    510

    Re: codeblocks error on startup

    check this:
    1. launch Codeblocks and click anywhere on the screen while the splash screen is appearing
    2. launch codeblocks and stay idle

    If it is case 1, I think it is a reported bug.
    I´ve...
  12. Replies
    4
    Views
    751

    Re: Flexible array member in C

    Thanks for the replies.

    If I have to keep an array of pointers to each and every element, it seems like double effort when the number of elements is large.
    When and where is this concept of...
  13. Replies
    4
    Views
    751

    Flexible array member in C

    Im trying to learn the concept of flexible arrays in C. I have a struct containging an array, the length of which is unknown at the time of compilation or is an input parameter.
    Everything goes...
  14. [SOLVED] Re: Shell script to run program in mutiple cores

    Thanks Vaphell. GNU-parallel seems an interesting choice.
  15. [SOLVED] Shell script to run program in mutiple cores

    I want to run a program N times, with an incremented variable as input each time. The for loop in bash script seems a good option here. So I have like


    #!/bin/bash
    for i in {1..10}
    do
    ...
  16. Re: Intersection point - double precision error

    Thanks for the comment.


    Just being curious, could you point some sources for this and the use of brackets?
  17. [SOLVED] Re: this code works in one compiler, doesn't work in another

    You are going in the right direction. You need to allocate the memory before entering the loop such that you have 10 free pointers (since you go from i=0 to 9). Later in the loop you assign them the...
  18. Re: Intersection point - double precision error

    If brackets are used while calculating the value of dot, I am getting the expected answer. Can anybody explain the difference between


    dot=scalar((xd-x),(xc-x),(yd-y),(yc-y),(zd-z),(zc-z));
    ...
  19. Re: Intersection point - double precision error

    Thanks for the reply.

    Its for a particle in a box kind of problem. When it tries to escape, we stop the motion at contact point. Its not for display, we are after the numbers.

    Im getting the...
  20. Intersection point - double precision error

    Hi,

    I am trying to figure out the intersection point of a given line segment and a cubic box of edge L. First I check each face of the cube for intersection and if it occurs, calculate the...
  21. Monitor Calibration - Is there anyone to explain things?

    Monitor calibration + printer calibration are necessary for getting good quality printed graphics/photos. Many photographers have accessibility to good quality cameras but do not own a printer and...
  22. Replies
    3
    Views
    761

    RAW photo developers - user experience

    There are many RAW file developers in Ubuntu and in the open source and/or free softwares area as well as the proprietary ones and in other platforms. Each one is having its own approach towards RAW...
  23. Re: How to set up a really good radio player on VLC

    Hi,
    I just wanted to append my extended radio station list. The stations are classified according to their bit rate. All links are checked and found to be functional today.
    ...
  24. Replies
    2
    Views
    456

    Using math expressions in C

    I am wondering which is the preffered way of programming in C, if one is using the same math expressions very often
    1. Use the math function/expression each time
    2. Precalculate the expression and...
  25. Replies
    3
    Views
    850

    [SOLVED] Re: Script for mounting ntfs partition

    Thanks for the replies. I also found that the problem was with the --timeout option. Apparently it is a bug with Zenity.

    Thread marked as solved.
Results 1 to 25 of 51
Page 1 of 3 1 2 3