Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Search found 56 matches
- 2014-03-23 04:58
- Forum: Graphical Environments & Desktops
- Topic: acroread installation problem
- Replies: 18
- Views: 5044
Re: acroread installation problem
To all the people who are wondering why do the OP need acroread: Of course I would like to use some free alternatives to acroread, but CURRENTLY IT IS NOT POSSIBLE if you want to view pdf animations, or embedded 3D objects, or most of the interactive pdfs with form fields. Can you propose an appropr...
- 2014-03-21 15:39
- Forum: General Questions
- Topic: print from nth line to match regex
- Replies: 0
- Views: 1341
print from nth line to match regex
Hi, I have a data file (data-a.dat) with 6 columns and thousands of rows. I would like to write a bash script in which I print the data file, from the 18th line, until the line in which the 3rd column equals the 5th column and the foruth column equals the 6th column. In addition, I want to print to ...
- 2014-01-22 14:54
- Forum: Programming
- Topic: [Solved] Assign a variable in bash, when stdout is updated?
- Replies: 7
- Views: 5359
Re: How to assign a variable in bash, when stdout is updated
If I understand you correctly, then I think you need to pipe cnee's output into a loop, where you process it line by line. Do you mean something like this? cnee -rec --mouse --keyboard -t 1 -etr -1 --stop-key q | grep 'Virtual core pointer' | while read line do XPOS=$(echo $line | cut -d ',' -f 3) ...
- 2014-01-21 09:52
- Forum: Programming
- Topic: [Solved] Assign a variable in bash, when stdout is updated?
- Replies: 7
- Views: 5359
Re: How to assign a variable in bash, when stdout is updated
Or it is try use ping's option "-i". Well, I put the ping in this thread just to put an example, but I am not using ping. I will explain my problem in detail: I want to make a bash script that, when the cursor moves, for example by moving the mouse, a red cross is drawn at every point in ...
- 2014-01-20 18:08
- Forum: Programming
- Topic: [Solved] Assign a variable in bash, when stdout is updated?
- Replies: 7
- Views: 5359
Re: How to assign a variable in bash, when stdout is updated
thanks Peter, but this code that you gave me doesn't work for me: what I think this code does, is to assign to the variable VAR, the result of the command `ping localhost | awk ...`, but this assignment occurs when the command has finished, so when the ping command has finished (for example by press...
- 2014-01-17 17:54
- Forum: Programming
- Topic: [Solved] Assign a variable in bash, when stdout is updated?
- Replies: 7
- Views: 5359
[Solved] Assign a variable in bash, when stdout is updated?
Hi, First of all I want to apologize for my zero knowledge in bash programming. I am writing a script that calls a program which writes a lot of lines to stdout continuosly. If the last line in stdout has some regex, THEN, certain variables are updated. My problem is that I don't know how to do that...
- 2014-01-15 17:42
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] How to draw a point in the screen?
- Replies: 6
- Views: 1294
[SOLVED] How to draw a point in the screen?
Okay, sounds good. Do you know aosd_cat ? echo '+' | aosd_cat -p 0 -R red -x 200 -y 100 -u 10000 This will draw a red "+" at screen location 200, 100 from the top left, which will disappear after 10 seconds. It's a little imprecise (it isn't the center of the "+" which is at 200...
- 2014-01-15 17:13
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] How to draw a point in the screen?
- Replies: 6
- Views: 1294
Re: How to draw a point in the screen?
Thanks dsc, Yes I agree that this may be the proper way. However, if there is an application-independent way to do it (I mean, not writing an image viewer, but some kind of X-event making use of Xlib), then much better, so no need of GUI and I could draw wherever. I have solved the problem to record...
- 2014-01-14 21:24
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] How to draw a point in the screen?
- Replies: 6
- Views: 1294
Re: How to draw a point in the screen?
No, in fact is for my work: I have to measure distances (and areas) from hundreds of images extracted from a high-speed movie, and this script would be great to write the pixel coordinates in a file so I can operate with them later. The problem is that the image processing is quite complex and is mu...
- 2014-01-14 19:27
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] How to draw a point in the screen?
- Replies: 6
- Views: 1294
[SOLVED] How to draw a point in the screen?
Hi, I would like to write a script that, when executing, makes the following: every time that I click on the mouse, a red pixel (or point, or circle) is drawn (and stays in there until the script stops executing) at the mouse current position in the screen. In addition it would be ideal to have the ...
- 2012-06-24 21:13
- Forum: General Questions
- Topic: [SOLVED]I need help with an operation taking data from files
- Replies: 2
- Views: 953
Re: I need help with an operation taking data from files
Thank you very much kiyop!
I still haven't tried your script, but it has been very useful to me.
Thanks!!
I still haven't tried your script, but it has been very useful to me.
Thanks!!
- 2012-06-21 15:55
- Forum: General Questions
- Topic: [SOLVED]I need help with an operation taking data from files
- Replies: 2
- Views: 953
[SOLVED]I need help with an operation taking data from files
Hi, This is the situation: I have 100 data files in a folder, each one with 5 columns (the values of x, y, vx, vy, rsb) and 16129 rows. First of all, I need to compute the average of each position in all files. To clarify, let's say that I take the value of the 3rd column and the 4th row of the firs...
- 2012-04-28 00:20
- Forum: Docs, HowTos, Tips & Tricks
- Topic: auto login and startx without a display manager - lenny
- Replies: 50
- Views: 189827
Re: auto login and startx without a display manager - lenny
It works for me.librefan wrote: Is this still working with Wheezy (testing)?
- 2012-04-27 23:21
- Forum: General Questions
- Topic: [SOLVED] How can I remove strange characters from a file?
- Replies: 3
- Views: 837
Re: How can I remove strange characters from a file?
ok, I got it,
did the trick. I am sure that there is a more elegant way to do it, but at least it does what I need..
Thank you!
lego.
Code: Select all
$ sed -i 1i"`head -1 file.vep | cut -b 9-`" file.vep && sed -i '2d' file.vep
Thank you!
lego.
- 2012-04-27 22:22
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] two video cards, no GLX
- Replies: 5
- Views: 2405
Re: two video cards, no GLX
Finally solved!! The drivers were installed correctly, the xorg.conf was also valid, the problem is that my laptop was supposed to use the Nvidia Optimus technology, which I didn't hear about it before... I followed the steps of this link: http://suwako.nomanga.net/ and everything is working perfect...
- 2012-04-27 15:27
- Forum: General Questions
- Topic: [SOLVED] How can I remove strange characters from a file?
- Replies: 3
- Views: 837
[SOLVED] How can I remove strange characters from a file?
Hi, I have a data file (.vep extension) with some strange characters in the first line: <81>^@^@^@<<^@^@^@ They appear in blue (similar to ^M next line character from dos files) I don't know the encoding of the file, but $ file -i file.vep returns file.vep: application/octet-stream; charset=binary S...
- 2012-04-27 10:25
- Forum: General Questions
- Topic: [SOLVED] I need help ordering a data file in a certain way
- Replies: 2
- Views: 676
Re: I need help ordering a data file in a certain way..
Thank you!!
Does exactly what I need!
Code: Select all
$ sort -n -k 1 -k 2 input.dat | awk 'x != $1 { if(NR > 1) print ""; x = $1 } {print}' > output.dat
- 2012-04-26 17:33
- Forum: General Questions
- Topic: [SOLVED] I need help ordering a data file in a certain way
- Replies: 2
- Views: 676
[SOLVED] I need help ordering a data file in a certain way
Hi, I have a data file which consists of thousands of lines in the form (read from the bottom of the file to understand the order): xn yn znn ... x2 y2 z22 x1 y2 z12 ... x3 y1 z31 x2 y1 z21 x1 y1 z11 where xi, yj, and zij are real numbers. I need to order it in the following way (in order to make a ...
- 2012-04-25 10:16
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] two video cards, no GLX
- Replies: 5
- Views: 2405
Re: two video cards, no GLX
I installed the nvidia driver in two ways, none of them is working: $ sudo aptitude install nvidia-kernel-dkms nvidia-glx and also $ sudo m-a clean nvidia $ sudo m-a a-i nvidia-kernel-source Here is the output of apt-cache policy: $ sudo apt-cache policy nvidia-kernel-dkms nvidia-glx nvidia-glx: Ins...
- 2012-04-25 08:17
- Forum: Graphical Environments & Desktops
- Topic: [SOLVED] two video cards, no GLX
- Replies: 5
- Views: 2405
Re: two video cards, no GLX
If I do it, with a minimal xorg.conf, I get this error:
By the way, I am not using any login manager nor Desktop environment.
Code: Select all
(EE) May 08 19:06:54 NVIDIA(0): No display devices found for this X screen.
(EE) Screen(s) found, but none have a usable configuration.
Fatal server error:
no screens found