the line:
cout << factors[i] << " ";
should read
cout << factors[fi] << " ";
Type: Posts; User: croto; Keyword(s):
the line:
cout << factors[i] << " ";
should read
cout << factors[fi] << " ";
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...
It looks like gnuplot can use arbitrary text as tic labels:
http://t16web.lanl.gov/Kawano/gnuplot/tics-e.html
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...
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...
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
...
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...
[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...
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...
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,...
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...
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...
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...
great! go break some WEP now ;)
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:...
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?
Is wlan0 set in monitor mode? what drivers are you using on your wireless card?
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']...
Hi Raemian, could you express in words what your example is supposed to do? I'm having trouble understanding it.
try indicating the file name. If for instance you want a breakpoint in line 10:
break file.f90:10
I recently replied to a similar question on python:
http://ubuntuforums.org/showthread.php?t=1393082
would it help?
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...
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...
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...
I believe you're missing a "do":
#!/bin/bash
for myfile in *.ts; do
source ./mplayerAAPI2.sh
done