Skip to content

Tag: linux

Printing an integer with x86 32-bit Linux sys_write (NASM)

I’m new to this forum. I have a little experience with high-level languages (really little). Nearly one month ago I thought it would be a good idea to see how assembly worked so after choosing nasm (IA-32) on linux I started learning from a tutorial. Now, after ending it, I tried to write a simple progr…

__ldg causes slower execution time in certain situation

I posted this issue already yesterday, but wasnt well received, though I have solid repro now, please bear with me. Here are system specs: Tesla K20m with 331.67 driver, CUDA 6.0, Linux machine. Now I have a global memory read heavy application therefore I tried to optimize it using __ldg instruction on every…

“Pixels out of bounds” error in IRAF

I am trying to do a PSF fitting on a fits image using SNOOPY (a point spread function fitter) and IRAF. I can open this image fine using imexam but when I select a point (a star or whatever) I get an error: It seems that what I am seeing and what IRAF is seeing (behind the scenes) are not

Python shell script open less with +F option

I have the following Python script, all seems to work how I want it to, except for the following: less opens with the option -F, this will follow the file like Tail would. to inspect (move through) the file the user has to ctrl + c to send an interrrupt. when sending the ctrl +c (interrupt) this gets send to