Search:

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

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    6
    Views
    1,553

    Re: Stumped: C++ vector element scope issue

    the line:

    cout << factors[i] << " ";

    should read

    cout << factors[fi] << " ";
  2. [ubuntu] Re: Weird headless behaviour... (DELL GX520 Media Server)

    Troubleshoot mode -

    1) Does it boot at all when you disconnect keyboard and monitor?
    2) If it does, does it respond to pings? Can you ssh to it?

    A) If you boot *with* keyboard and monitor, but...
  3. Replies
    19
    Views
    15,440

    Re: dB/Hz Frequency spectrum out of fftw

    It looks like gnuplot can use arbitrary text as tic labels:
    http://t16web.lanl.gov/Kawano/gnuplot/tics-e.html
  4. Replies
    19
    Views
    15,440

    Re: dB/Hz Frequency spectrum out of fftw

    With regards to plotting in dB, it is not hard. dB = 10 log_10(P)+C, where P is the power. The constant C is related to the reference level, and I don't know what would be the right number for your...
  5. Replies
    19
    Views
    15,440

    Re: dB/Hz Frequency spectrum out of fftw

    Great man!
    I'm not familiar with smoothing windows, but based on the other poster, I checked wikipedia http://en.wikipedia.org/wiki/Window_function. If you go down to Hann window, there is a...
  6. Replies
    19
    Views
    15,440

    Re: dB/Hz Frequency spectrum out of fftw

    It's looking better! I found a little bug, you're using the r2r plan, which puts the imaginary parts of the fourier components at the end of the output array. So you'd need to change the line

    ...
  7. Replies
    19
    Views
    15,440

    Re: dB/Hz Frequency spectrum out of fftw

    If I understand correctly, you're asking if the input can have as many full "oscillations" as you want? I guess you're thinking of a pure sine wave as you mentioned. The answer is yes. In fact, the...
  8. Replies
    6
    Views
    14,731

    Re: Arrays are [x,y] or [y,x] coordinates? C

    [QUOTE=Queue29;9344481]Not true not true not true.

    I agree that they can be whatever you want them to be, and I also agree with the performance considerations. For instance: a[.][.]...[x] is next...
  9. Replies
    19
    Views
    15,440

    Re: dB/Hz Frequency spectrum out of fftw

    Hello uOpt,

    the fact you're asking how to find a given freq in an FFT makes me think you're not familiar with the discrete fourier transform (DFT).... bear with me a small explanation...

    The...
  10. Re: Efficiently selecting L unique pairs out of (M*N) pairs of numbers

    I was thinking... some random number generators give you non-repeating sequences covering all the range. Maybe you can tailor one up to generate a non repeating random sequence from 0 to M*N-1 (also,...
  11. Replies
    11
    Views
    6,941

    [SOLVED] Re: Python; Background function

    Although if it's a speed gain what you're looking for, python threads are not the way to go. The culprit is the Global Interpreter Lock, if you want to google it up.
    With that in mind, I recommend...
  12. Replies
    8
    Views
    9,252

    Re: Reverse an input sequence using bash script

    Write a script that outputs the words you enter in normal order:


    $./reverser.sh I like cheese
    I like cheese


    and then I'll help you modify it to reverse the words. I recommend trying to use...
  13. [SOLVED] Re: Bash Scripting: echo not supporting end-of-options

    if you don't mind an extra space, you could do something like


    echo '' '-n' '-e' '-E'

    It looks like an argument not recognized as an option serves as an end-of-option flag...
  14. Replies
    9
    Views
    3,375

    Re: NEED Help - AIRODUMP-NG

    great! go break some WEP now ;)
  15. Replies
    9
    Views
    3,375

    Re: NEED Help - AIRODUMP-NG

    It says it enabled monitor mode on mon0, did you try this?


    airodump-ng mon0


    Also, as mentioned by airmon-ng, if it works and later it stops working, you may need to kill these processes:...
  16. Replies
    9
    Views
    3,375

    Re: NEED Help - AIRODUMP-NG

    I get the (second) error message when I have an interface set to station mode (not monitor) and try to use airodump with it. Can you post the output of iwconfig when you get that error message?
  17. Replies
    9
    Views
    3,375

    Re: NEED Help - AIRODUMP-NG

    Is wlan0 set in monitor mode? what drivers are you using on your wireless card?
  18. Replies
    6
    Views
    666

    Re: python list.del[0]

    In that case, I don't think you need to delete from the list. You can do something like:


    #!/usr/bin/python

    choices = ['strawberries', 'chicken', 'spam', 'steak and eggs', 'a basket of fruit']...
  19. Replies
    6
    Views
    666

    Re: python list.del[0]

    Hi Raemian, could you express in words what your example is supposed to do? I'm having trouble understanding it.
  20. Replies
    2
    Views
    992

    Re: Debugging a Fortran Program

    try indicating the file name. If for instance you want a breakpoint in line 10:


    break file.f90:10
  21. Re: From command line detect all words in a file which start and end with the same le

    I recently replied to a similar question on python:
    http://ubuntuforums.org/showthread.php?t=1393082
    would it help?
  22. Replies
    4
    Views
    383

    Re: Python regular expressions

    for words with different letters, I guess you'd need to add some logic to the regexps. For instance:


    #!/usr/bin/python

    import re
    import sys

    text = sys.stdin.read()
    print "five letter...
  23. Replies
    4
    Views
    383

    Re: Python regular expressions

    I would add that if you need to match "words" you'd need something like


    #!/usr/bin/python

    import re
    import sys

    text = sys.stdin.read()
    print "six letter words starting and ending with...
  24. Replies
    3
    Views
    2,049

    Re: bash "source" syntax??

    I don't know what's into mplayerAAPI2.sh, but I guess you're running a process in the background. In that case, if you want to wait for all processes to finish before continuing, you can use the...
  25. Replies
    3
    Views
    2,049

    Re: bash "source" syntax??

    I believe you're missing a "do":


    #!/bin/bash

    for myfile in *.ts; do
    source ./mplayerAAPI2.sh
    done
Results 1 to 25 of 125
Page 1 of 5 1 2 3 4