Programming :: Display Images Whilst Running Other Functions?

Nov 4, 2010

So I'm teaching myself some scripting to try and create a fairly simple photobooth type affair... I've got gphoto2 playing fairly nicely with my canon, and imagemagick taking that output and rearranging it to a vertical format...

EDIT:
*smacks forehead*

Fairly simple to do what I needed initially: Code: feh -FZ -D 1 --cycle-once $COUNTDOWN & sleep 2 &
feh -FZ -D 20 --cycle-once $SMILE This shows a countdown from 5 to 1 in images and $SMILE is big that says 'smile'

So my question is thus... (fairly basic but I can't get my head round the use of & and sleep in this context) what's the best way to call my gphoto instructions (or a script with them in) mid way through the above code?!

'feh code'
sleep 5
'gphoto code'

this kind of thing seems like the way, but the'sleep 5' and 'gphoto code' doesn't start until feh is finished in this case?

View 1 Replies


ADVERTISEMENT

Programming :: Efficient Way To Display JPEG Images In Browsers?

May 12, 2010

What is the efficient way to display jpeg images in browsers using c programming. Any links or any sample code.

View 6 Replies View Related

Programming :: PHP Booleans - Print Draw The First Image From A Function Then Hide The Rest Of The Images Using 'display: None'

Jul 29, 2010

I have this function that is supposed to print draw the first image from a function then hide the rest of the images using 'display: none' however for some reason the boolean test does not seem to work on one of my servers however it works on another, is there some php.ini setting I am missing or can you see any issues with the following code:

[Code]....

View 1 Replies View Related

OpenSUSE :: Gnome 3 - Evolution Not Receiving Mail Whilst Running?

May 5, 2011

I'm new to openSuse after installing it on my work machine as a replacement for Ubuntu.

I have Evolution mail up and running and all is well other than I am having a problem when receiving mail.

When I first start Evolution, it checks and downloads my new mail without any issues however whilst it is running it won't download any mail, either automatically or manually via the Send & Receive button.

It appears to be checking my accounts (the progress box pops up briefly) and is not reporting any errors, just not downloading until I close Evolution and then restart.

Sending is working perfectly.

I must admit that I "imported" my old mail in a bit of a cack-handed fashion and did have to uninstall/re-install Evolution - I noticed that it uninstalled a few extra packages however when I reinstalled, it only selected the main Evolution packages.

The fact that it is receiving on Evolution start-up I think rules out my settings being incorrect.

View 6 Replies View Related

General :: Use Flash Player Whilst Running Under A Tor Enabled Browser?

Nov 19, 2010

Is it possible to install and use Flash Player whilst running under a Tor enabled browser. I have seen a version compiled to run under Windows but don't want to go backwards! I am running Ubuntu 10.10.

View 5 Replies View Related

Programming :: Define Functions Within Other Functions In C++?

Mar 11, 2010

Is it possible to define functions within other functions in C++? I know it is the case in other languages.

View 2 Replies View Related

Programming :: C++ Programming With Simple RTAI Functions Outputing Words?

Apr 11, 2011

I need help as I am not proficient with Linux C++ Programming. There are two parts which I need to do in the coding provided below.

1. Produce the program so it can output the word "Hey there!" and wait two minute and print the word "See you later!".

2. Produce the program that will output the text "Cool" every 20 seconds by setting a periodic task.

Quote:
#include <linux/kernel.h>
#include <linux/module.h>
MODULE_LICENSE("GPL");
int init_module(void)
{
printk("Hey there!

[Code]...

View 3 Replies View Related

Ubuntu Servers :: Manual Pages Don't Display Correctly - Keyboard Functions Incorrectly Via VT100

Sep 17, 2010

I have gotten my project ubuntu server 10.04 up and running and logged in remotely with a terminal emulator program called AccuTerm that I use from work. It has multiple control files and want to know which file works best with ubuntu server. My reason for asking is some of the manual pages do not display correctly and keyboard functions seem to function incorrectly via VT100 and I have eighteen to choose from?

View 2 Replies View Related

General :: How Would One Display Graphical Images Outside Of X?

Mar 16, 2010

I run X only under duress. For years I have used svgalib clients. I haven't gotten svgalib to work on my new machine (or X, either, a different matter). I have come tantalizingly close.Is there any other non-X image displayer?

View 5 Replies View Related

CentOS 5 :: .gif Images Do Not Display On Web Pages?

Aug 15, 2010

I recently migrated to a newer server running centos5 and cpanel

I have imagemagick installed

I installed freetype as well

Most images display fine on web pages for accounts on the server, however, .gif images do not display.All I get is an image placeholder.

.png are fine
.jpg are fine

I have not tested all the possible varieties of images, but .gif I know is not displaying.I am sure its some kind of RPM I am missing or a configuration problem.

View 1 Replies View Related

General :: Deleted The /etc/rc.d/functions Folder And Functions.d Script And Turned Arch Machine Into A Brick?

Mar 19, 2011

None of my daemon scripts work now, and the startup process displayed errors. Should I reinstall the OS and start from scratch, or is there a way to recover these files? Is there a way to rebuild the files I deleted?

View 2 Replies View Related

Fedora :: Firefox Cannot Display Images In Webpage?

Apr 13, 2011

Firefox in my Fedora 14 cannot display the product images in the following web page

[URL]

I have tried Firefox 3.6 and Firefox 4. Both failed. Seems error in CSS causing image discarded.

Kconquer in Fedora 14 can display without problem.

I have tried Firefox 4 in Windows XP can display without problem.

uname of my system is 2.6.35.12-88.fc14.x86_64

View 2 Replies View Related

Ubuntu :: Cannot Display Email Images In Thunderbird

Oct 23, 2010

I'm running TB 3.1.5. Images do not display in emails. There is no "Display Images" button. Where the images would be, I only get a broke image icon (the little torn page). I don't know if this is a Ubuntu specific issue, but I thought I'd post here because the community is so responsive. I have tried the solution at this site, but though the mail.default_html_action value is set to 3, I still have no luck. [URL]

View 6 Replies View Related

Ubuntu :: Display Images With Refreshing In Fraction Of Second

Jan 5, 2010

I m mew at linux programing an working on a project that is sort of cctv cmra monitoring i m now facing problem with part of my program for displaying the received image in window and also updating it timely by closing and opening new window or refreshing the same one...........i have no idea where to start study ........system command "display" is not fulfilling the purpose... its not refreshing until window is closed manually, control to the program is not returning back without forcefully closing.

View 2 Replies View Related

Programming :: Where Are Described Functions That Can Be Used With Stap

Mar 26, 2011

could you please explain few questions about systemtap.

1st
===
seems gettimeofday_s() always returns 0 Code: stap -ve 'probe timer.s(4){ printf("%d ",

[code]....

View 2 Replies View Related

Ubuntu :: Open Office Won't Display .docx Images

Nov 14, 2010

I'm using 10.10 dual booted with xp and I'm trying to get images that are part of a docx file to open with OO 3.2 in ubuntu

They view fine on xp using OO 3.2 but windows being windows, it won't talk to my printer so I can't print. When I load up ubuntu and OO, the images just aren't there. The rest of the document looks the same however. Am I missing a file in ubuntu or is there a workaround for this?

View 1 Replies View Related

Programming :: Definitions For C Library Functions ?

Apr 24, 2010

Where are the definitions for C library functions located? It was just recently that I realized that header files don't actually define any functions, they merely include their prototypes.

For instance, stdio.h includes the following line:

Code:

This just means that the definition of printf() is located in another file. What file? Is there some kind of default shared object file that is automatically included during compilation?

View 2 Replies View Related

Programming :: Unable To Use An Alias In The Ksh Functions

Apr 4, 2011

I have problem to use an alias that defined in ksh93 script,in the functions in the same script onm Linux.I definied an alias in main: alias echo='echo -e' in order that echo will read backslashes but when i executed it in function, the alias didnt work, and performewd a regular echo, without -e

cat test.ksh
#!/bin/ksh
alias echo='echo -e'
checkUsage

[code]....

View 1 Replies View Related

Programming :: Check The Db For Some Value And Run Some Functions To Do Some Checks?

May 15, 2011

have an application where from time to time I need to check the db for some value and run some functions to do some checks. is the best option do it as php daemon or cron job?Whatworried of cron job is the overalapping.

View 9 Replies View Related

Programming :: Defining Functions - What Is The Difference?

Aug 12, 2010

But what is the difference between this...

Code:
my_fucnction () {
echo "Hello World"
}
Code:
function my_fucnction {

[Code]...

View 10 Replies View Related

Programming :: Multithreading For Callback Functions

Jan 4, 2011

Im implementing a chat application using Jabber/XMPP and gloox framework which should send and receive messages concurrently in Ubuntu Linux.

The problem faced is both the threads are created and pthread_join( ) is called for both.The iSend thread is scheduled first but gets suspended at cin. Once the recv( ) function is called, which runs in iRecv thread, the recv call back function handleMessage( ) is called. However the control never shifts back to the iSend thread which should call SendMessage( ) function.

View 1 Replies View Related

Programming :: Nesting Switch Functions In C?

Apr 12, 2010

I am trying to write a simple program in C that involves nesting switches. For example switch 1 offers an option to go to module 1 or 2 or quit. when I go to module 1 there is another switch function offering two or more choices.

I can select either module 1 or 2 at the start of the program and the selection text for, say, module 1 prints to screen but then exits without allowing a second selection to be entered.

I tried using free([first selection]) thinking that might do the trick but it doesn't.

Is it possible to next switches on after another in C?

View 14 Replies View Related

Programming :: Macos Does Not Have Barrier Functions?

May 9, 2010

The pthreads library on macos does not have barrier functions (pthread_barrier_t ....). Is there a way to get around this? I know I can do :

#ifdef __APPLE__
pthread_barrier_t ...
#else
my_barrier ...
#endif

But I would like to avoid this approach as there are a lot of places in my program where I would have to make this change. Can I perhaps rebuild the pthreads library on macos without affecting other apps ?

View 2 Replies View Related

Programming :: Error With Socket Shared Between Functions?

Dec 21, 2010

Let's show the problem: I have a socked connection (in a fd var). In certain moment, I need to use the same socket in two threads. Lets see in the example:

Code: int main(void)
{
int fd; // the socket

[code]....

View 9 Replies View Related

Programming :: Wrapping Around Functions With Different Return Types?

Feb 1, 2010

I have functions which return different data like: int, char*, double...

I also have a list of datatypes (INTEGER, TEXT, REAL...) which can be returned.

I need to map a datatype with function, which purpose is to return it. Therefore, when I determine a datatype, I would like to call the required function without doing switch all the time.

My idea is to have an array of structs like this:

Code:
struct type_func_map
{
int type;
void (*func_wrapper_int)(void); //void (*func_wrapper_text)(void); void (*func_wrapper_real)(void);
};

[Code].....

View 10 Replies View Related

Programming :: C++ - Calling Functions From Other Files And Headers?

Apr 11, 2011

I feel like there should be a cleaner way of doing this. I have one file, for example "a.cpp", calling a function from another file, "b.cpp". Currently I have it set up so that header for "b", "b.h", has the declaration of its functions. And then I'm just including "b.h" in "a.cpp". Do I have to include the "b" header file in "a" to be able to call a function from "b"? Or is there a better way I could be doing this? Like doing something different at compile?

View 7 Replies View Related

Programming :: C File Functions Crash Unless Root

Jun 24, 2011

I've encountered a problem when running a simple bit of code, I'm using c to read write data to a binary file. It works fine when I run as root. However when I run as a user it produces the file, however when I try to open / write after it's produced it caused a seg fault. Is there any reason file functions ( fopen etc ) would work for root and not a user and is there a way to fix this?

View 14 Replies View Related

Programming :: Calling Kernel Functions From Userspace?

Feb 5, 2010

I'm trying to call some kernel functions from userspace, but I'm not sure if I'm doing it right. The functions control a pulse width modulator on an embedded platform. To pick one at random, the function:

Code:
struct pwm_device *pwm_request(int pwm_id, const char *label);
is defined in linux/pwm.h, and the implementation uses the macro EXPORT_SYMBOL(pwm_request), so I should be able to call this from user-space... right?

Anyway, I've got linux/pwm.h to #include in my source so the compiler knows what it's doing, but what do I link against? The only place in by kernel build tree where I can see a symbol pwm_request defined is in object files like vmlinux.o, built-in.o in the directory, etc. which I don't think I should be linking against.

View 2 Replies View Related

Programming :: How To Find Man Page Of Kernel Functions

Aug 2, 2010

My distribution is Fedora 12. When I want to get the infos of kernel functions such as printk, i type man printk, failed. I look up some articles and learn that in some distributions the kernel functions is in section 9 of man page. Then i type man 9 printk also no reply. How can i get man pages of kernel functions ?

View 2 Replies View Related

Programming :: How Many Of PHP Functions And Operators Remembered To Code

Jun 7, 2011

So if you are a PHP-programmer (average one) and code for money, how many of funtions and operators of PHP should you remember by heart (in real life)? I was looking through php.net and man there are millions of tons of them!

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved