I have to write a c program which takes a 3 digit number n and calculates the value of (2^n)+1 and then determines the number is prime or not.
I have tried to first calculate the value of 2^n and then adding one to it and then apply the logic of prime number.
but the ultimate problem is that... (7 Replies)
Hi,
I just need to check whether number of digits in a phone number is 10 or not. If I am not wrong regex will be: {9}
I have to use this inside nawk as this is a small portion of a big program.
nawk '
BEGIN { RS="";FS=";";
regex="{9}";
}
{
for (i=1;i<=NF;i++) {
if... (6 Replies)
Hello all! I've looked all over the internet and this site and have come up a loss with an easy way to make a bash script to do what I want to do. I have a file with a naming convention as follows:
2012-01-18 string of words here 123.jpg
2012-01-18 string of words here 1234.jpg
2012-01-18... (2 Replies)
Hello..
I want to take back up from server to local machine and i dont know how to do it using cron and sftp . I can do it by manually typing password in the terminal and taking the back up. How to create a 'backup.sh' file for doing all the back up process and shut down automatically after... (1 Reply)
Hi,
Here is my question:
I want a shell script which I name as 'del', and can be used as del(string).
when run del(string), it will delete several directories at different locations in my system,like:
rm -fr /lustre/fs/scratch/user/$string
rm -fr /home/user/$string
rm -fr... (4 Replies)
I have a simple text file having payment amount value on each line. At the end of day 'n' number of payments created difference in amount that I need to match from this file.
I have information about how many payments created difference and difference amount. Please help me to build shell... (3 Replies)
In the game of “Unique”, multiple players privately choose an integer. They then reveal
their choice. The winner is the player who chose the smallest unique number. The
game is considered a draw if no unique integer was chosen.
You would write a program that simulate such a game according to the... (1 Reply)
I all
I am tryng to find a way to sort a list of number in a file by the value of last two digit.
i have a list like this
313202320388
333202171199
373202164587
393202143736
323202132208
353201918107
343201887399
363201810249
333201805043
353201791691 (7 Replies)
Discussion started by: rattoeur
7 Replies
LEARN ABOUT DEBIAN
wxglade
WXGLADE(1) User Commands WXGLADE(1)NAME
wxglade - python program to build user interfaces based on the wxWidgets toolset.
SYNOPSIS
wxglade [--help | -h]
wxglade [--version]
wxglade [FILENAME.wxg]
wxglade {-g LANG | --generate-code LANG} [-o DESTINATION | --output DESTINATION] FILENAME.wxg
DESCRIPTION
wxglade wxGlade is a GUI designer written in Python with the popular GUI toolkit wxPython, that helps you create wxWidgets/wxPython user
interfaces. At the moment it can generate Python, Lisp, C++ and XRC (wxWidgets' XML resources) code.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below. For a complete description, see the Info files.
-g or --generate-code LANG
If you only want to generate the code without starting the GUI, use the -g or --generate-code option with the language as argument
Possible values for LANG are "python", "lisp", "XRC", "perl" or "C++".
-o or --output DESTINATION
You can specify the destination of the generated code with -o or --output option.
The DESTINATION argument can be a file or a directory. It is a file when the FILENAME.wxg generates single-file source code. It is a
directory when the FILENAME.wxg generates multiple-file source code.
-h or --help
Show the help message and exit
--version
Show programs version number and exit
EXAMPLES
Generate Python code out of myapp.wxg:
wxglade -o /tmp -g python myapp.wxg
Open file myapp.wxg in wxGlade GUI:
wxglade myapp.wxg
BUGS
Report wxGlade bugs to <wxglade-general@lists.sourceforge.net> or <http://sourceforge.net/projects/wxglade/>
SEE ALSO
wxGlade home page <http://wxgalde.sourceforge.net>
AUTHORS
Georges Khaznadar <georgesk@ofset.org>
This manual page was originally written by Georges Khaznadar for the Debian(TM) system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version
published by the Free Software Foundation. On Debian(TM) systems, the complete text of the GNU General Public License can be found in
/usr/share/common-licenses/GPL.
Carsten Grohmann <mail@carstengrohmann.de>
Update and extend manual page
COPYRIGHT
Copyright (C) 2003, 2012 Georges Khaznadar, Carsten Grohmann
wxGlade January 07, 2012 WXGLADE(1)