Programming :: Pyqt3 Def Works But Not Vey Well?

Mar 10, 2010

want to get a text file and use sed commands on it to make it more manageable.(because I don't know how in python) Then take each line based on what it starts with and send it to the proper lcdnumber.display. I need an adjustable "pause" to allowing slowing down of the entire process equally but I think the way I'm using the time.sleep is messing things up as only 1 in 10 value sets make it to the lcd and sometimes some of the segments don't get drawn. Also the x digit and the y digit are now being sent to one lcd how can I grab just the first half of the double value xy up to the space as x and then grab the remainder as y so all three xyz values go to three separate lcd displays? I attached 2 files one before and one after the formating.

Code:
def Timer(self):
import time

[code]....

View 2 Replies


ADVERTISEMENT

Programming :: Can't Get The Syntax Right In This Pyqt3 Command?

Mar 14, 2010

Code:
x = self.spinbox37.value() * 40
y = self.spinbox38.value() * 40

[code]...

View 1 Replies View Related

Programming :: Pyqt3 List Without Comma ?

Mar 21, 2010

I'm trying to compose a line of numbers each single digit taken from a variable eg: 1010001 each variable digit is either a 0 or 1 made from variable layer1 through 7. I need to add each layer variable to the last to compose the number with no commas or spaces and add it directly after the -p option in the show_command line. I used array and list and the commas mess up the command and inserting "pens" in the show command interpertes it literally instead of the list or array value? The insert should look something like 1000110

Code:

View 1 Replies View Related

Programming :: Pyqt3 How Fast Can A TextLabel Be Changed?

Mar 12, 2010

I want to read values from a text file about 2 times a second and update a textLabel with those values but it only inputs the values with the last value from the text file? I tried the same thing with an LCDNumber but it only updated every 10 value changes? After each change do I need to clear the textLabel or refresh the window? For testing the print z and print x in the code prints the values correctly.Heres my code:

Code:
def Timer(self):
import time

[code]...

View 2 Replies View Related

Programming :: How To UTF-8 UTF-16 Works?

Dec 23, 2010

I tried searching and couldn't find a good explanation on how UTF-8 and UTF-16 works. Could someone explain it or provide a link to a good explanation?

View 13 Replies View Related

Programming :: Cmd Works In Bash, Not Crontab?

Jul 16, 2010

I want to write the date & time and a text string to a file from crontab.The following line works fine in the CL:echo $(/bin/date +"%F %T")" Some text" >> /home/me/foo.txtI installed in crontab and no text appears in the file that it is redirected to.The crontab entry looks like:* * * * * echo $(/bin/date +"%F %T")" Some text" >> /home/me/foo.txtTried a version to just write to stdout....* * * * * echo $(/bin/date +"%F %T")" Some text"No date, time or text appears at the command line

View 5 Replies View Related

Programming :: Clock() - Doesn't Count How Much System() Works?

Jun 3, 2011

im stuck with something trivial again. so i want to calculate how much time my programm runs:

int main (int argc, char* argv[])
{
clock_t end, start;
start= clock();
int i;
int p, q, r;
FILE* f_out_loc;
[Code]....

it returns 1.12 sec. looks like clock() doesnt count how much system() works .... is it possible? and how do i calculate the whole thing?

View 4 Replies View Related

Programming :: Make An EXE File For Windows XP That Does Not Require Any DLL, And Works?

Jul 17, 2010

I would like to create a code that is working on windows XP. I would like to have it like visual basic or very simple so that I can run some execlp, exec, or command="program.exe parameters" with also some internet support?GCC ? G++ ? but those require some DLL to be installed on any PC before running; it is for a friend to simplify his operations

View 5 Replies View Related

Programming :: BASH - Works On The Command Line, Hangs As A Script?

Jul 16, 2010

I'm writing a Bash script to take IPTC keywords from a text file and write them, via Exiv2, to several (first batch is 100) JPEG files in a single directory. The script has one while loop inside another while loop, both terminated, but I'm pretty sure that's not my problem. I think it's how I'm incrementing the "counter" variable, although it could also be the method of parsing the text lines from the file (using cut with delimiters that have worked fine in simpler scripts).

Here's the code as I've worked it up to this point.

Code:

And yes, "keywords" checks out in Crimson Editor, Emacs GUI and nano as an ASCII file with UNIX line endings. No issues on that score.

Feeding each line consecutively into a terminal (excepting the exiv2 command) works fine: each variable echoes with the part of the text line used as a variable value as it should, even when the b variable is incremented the quick&dirty way (up arrow three commands and hit enter).

Running the above script in eval mode (sh -x) stalls after setting the b variable to one and reading in the first line of text. I'd like to know why. I'd also like some advice on another reliable method of parsing the read-in lines.

View 14 Replies View Related

Programming :: Java - Object Oriented - How It Works - Set The Getter And Setter ?

Feb 28, 2011

I have a peace of code the does not work:

View 1 Replies View Related

Programming :: Command Line Works - Won't Work From Inside Bash Script

Feb 16, 2011

Writing script to create backup of file by adding datetime to file name. Basically test for file presence if there, cp with datetime then rm original cp works fine from command line but get cannot stat `full path to file': No such file or directory

Code:

Here are the errors: cp: cannot stat `~/html/CVP_dadamail/.dada_files/.logs/errors.txt': No such file or directory rm: cannot remove `...': No such file or directory

The for statement is a placeholder as I have same file to backup out of several directories. using "bash -x scriptname" -OR- inserting echos, I can see I've constructed the strings properly. Believing it might be related to the hidden directories, I tried setting the shopt "glob" options to no avail.

Ultimately I'll add the other directories to the for loop and then run this from a cron job, so if you see potential pitfalls knowing I'm headed in that direction...believe construct would be

Code:

View 4 Replies View Related

Programming :: Creating A Website To Sell Some Materials - How It Works Online Payment

Oct 3, 2010

I'm creating a website to sell some materials, but I don't know how to do online payment. How it works online payment?

View 2 Replies View Related

Programming :: Bash Script For Automatic Viewport Changing And Other WM Stuff (works With Compiz)?

Oct 18, 2010

I had to make for work a collectd based network monitoring system which displays data for each server in a fullscreen conky on different compiz viewports. I have to switch viewports automatically when the machine isn't operated (sorta screensaver) and also if i had to call attention in the case something bad happens, autoswitching should stop and the relevant viewport be showed up.This requires an interface to talk dynamically to the WM, which i've implemented in bash with support of the widely available "wmctrl" program.

Code:
http://paste2.org/p/1177045
Code:

[code]...

View 8 Replies View Related

Ubuntu Security :: Anti Malware Filtering Works In Open Dns Works?

Jan 13, 2010

using ubuntu and the corporate edition of open dns? >Im curious to find out how the anti malware filtering works in open dns works.

View 4 Replies View Related

Ubuntu :: Copy CD That Only Works In Windows To Blank CD That Works?

Aug 29, 2010

I just want to be able to copy the files from a cd that is only compatible with windows to and new cd that is compatible with ubuntu

View 9 Replies View Related

Slackware :: Sudo: Umount Works, Mount Not Works?

Jul 8, 2010

I've got a problem in doing sudo working for mounting things (e.g. usb pen or optic discs). Details:The OS: Slackware 13.0The response to sudo -l command:

Code:
User user1 may run the following commands on this host:
root) /sbin/shutdown -h now, /sbin/shutdown -r now

[code]...

View 3 Replies View Related

Programming :: Grep In Bash Script Returns "No Such File Or Directory", Works Manually?

Feb 25, 2010

To start, I'm writing a script to check a file's date via FTP. Here's the portion that I'm having problems with:

Code:
function checkRemote
{

[code]...

View 7 Replies View Related

Ubuntu Installation :: 9.04 Works But 9.10+ Not Works

Jan 23, 2011

well I'll start by SPECS.

Processor: amd phenom II 965 BE
Motherboard: M4N78 PRO (Asus) newest bios
Memory: Corsair 2gb DDR2 800mhz X2 (4GB)
Video Card: Radeon 5750 1GB
Power: 620W Corsair.
HD: 320GB

I use the TV + HDMI cable. Versions tested 32BITS/64BITS (stay with x64) has no disk error. already downloaded several times. MD5 is correct well ... I'll start here with my concerns ... version 9.04 onwards does not work gives blackscreen. I think "forgotten" by the generic drivers for ATI or something that influences the video. it does not show. 9.10,10.04,10.10 none of those versions worked ... on other computers functioned normally. I found researching how to dribble and go to live. and thus unable to install. but does not work after the pc restarts. Linux does not. shows nothing ... goes to black screen with the (- FLASHING) but nothing else happens.

View 2 Replies View Related

Programming :: 3D Programming - Difference Between JOGL And C++ OpenGL Programming?

Aug 27, 2010

I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.

So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?

Why and what is the main difference between them?

View 4 Replies View Related

Ubuntu :: PHP 5 Works Only On /var/www?

Jun 5, 2010

i am having a problem while configuring my web server.

PHP 5 works on /var/www but apache is sending me my source codes if uploaded in home directories. /home/user1/public_html/test.php /home/user2/public_html/test.php

I have a working phpmyadmin (http://server/phpmyadmin)

Things that i have done:

1) apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi

2) sudo a2enmod ssl, sudo a2enmod rewrite, sudo a2enmod suexec, sudo a2enmod include

3) ~# whereis php ---> /usr/bin/php

4) a2enmod php5, a2enmod userdir

5) Added php on mime.conf ( application/x-httpd-php .php )

6) Include /etc/phpmyadmin/apache.conf, Include /etc/apache2/mods-enabled/*.load, Include /etc/apache2/mods-enabled/*.conf, Include /etc/apache2/httpd.conf

7) httpd.conf file

Code:
<VirtualHost MY.WAN.IP.ADDRESS:80>
DocumentRoot /home/user1/public_html/
ServerName site1.com
ServerAlias www.site1.com

[Code]....

View 3 Replies View Related

Ubuntu :: Iso Works On Cd But Not Usb

Jul 19, 2011

burning the ubuntu iso's on cd works fine, but burning the same to usb does not work.

View 9 Replies View Related

Fedora :: Which Iso Burner Works Well In 12

Dec 11, 2009

i'm trying to burn an iso file to a CD but brasero seems don't work. what else is there that will work?

View 8 Replies View Related

Fedora :: Routes Not Works In 12 And 13

Jun 17, 2010

what change in route table in Fedora 12 and 13, i have a route 2 links and its only works for fedora 11, in fedora 12 and 13 somethins change and my routes not works. Some know what i have to do to its works fine ?

View 1 Replies View Related

Fedora :: Yum Works But Websites Don't?

Mar 9, 2011

I was using Fedora 14, and yum works. However websites like [URL] don't unless I open a terminal and type "ping google.com" then copy that ip address into the web browser.

This doesn't seems to be JUST a fedora issue. I haven't tried fedora 15 alpha, but OpenSuse 11.4 seems to have the same exact problem except Zypper/yast don't work.

Many of yum's servers don't work but eventually after a couple of failures to accept the connection it finally works. Very odd. I tested the latest Kubuntu and it does work as does my windows partition.

(I should also add that this problem also exist in virtualbox).

View 7 Replies View Related

Fedora :: Ctrl+V And Del Not Works?

Aug 26, 2011

Today I've installed Fedora 15 and I don't know what to do. I always use ctrl+c/ctrl+v/del shortcuts and now only ctrl+c works perfectly. The ctrl+v and del not works. So what am I doing wrong?

UPD Ok I reasigned shortcut from Ctrl+Del to Del key. But problem with Ctrl+V is persist.

View 14 Replies View Related

Ubuntu :: VLC Works In XP But Not System / Get That?

Feb 4, 2010

I have an external CD drive. When I run put a CD in and close the drive in XP, VLC loads the movie.

In Ubuntu when I close the drive the CD icon with the name of the movie appears on the Desktop, the file information appears in the file browser, and "encouraging" noises are made by the CD player. VLC however will not load the CD whether through this way or through loading it then selecting the CD. After 30 seconds the CD stops running and nothing is loaded.

Any ideas?

What is irritating is that this works perfectly in XP but not in Ubuntu which is always touted as being better than XP.

View 5 Replies View Related

Ubuntu Installation :: 10.10 - Seems To Be OK But Nothing WORKS

Oct 10, 2010

I'm installing 10.10 netbook on an older Pavilion ze5500, and the install process finishes, asks me to reboot, ect. After reboot, everything goes swimmingly until I try to move the mouse over the sidebar or toolbar at the top, where the screen flashes to black, then just the wallpaper, then the full GUI loads again as if I had just logged in. This repeats over and over until I tapped the power button, then I worked my way to the restart button on-screen, and the system restarted just fine.

View 2 Replies View Related

Ubuntu :: Sound Works Sometimes ?

Nov 22, 2010

i have a problem: my sound works sometimes. i've tried fedora 13 and 14, tiny core, dsl, slitaz, (and now) ubuntu, etc., and i have the same problem.

the sound doesn't work in, for example, videos videos. nevertheless, when i start up ubuntu, the short "sounds" work. and sound also works on random situations, i.e in an advertisement.

i've changed the speakphones various times, tried not using any, etc., but it still doesn't work.

i've tried changing most of the settings in the "sound preferences", and it doesn't work aswell.

View 7 Replies View Related

Ubuntu Networking :: Lan Works But No Wan?

Dec 14, 2010

I run a website called [URL], about a week ago I setup Ubuntu at my job (system's admin) to allow my staff to access our servers from there homes (we live in Iowa and its winter so kind of need it with the snow and all), anyways I have it setup with a static static ip address and it does talk to the local network drives

example:
192.168.1.345

But I can't get it to access wan, I have looked over and over to figure out why its not working? Is this enough information?

View 5 Replies View Related

Ubuntu :: DNS Works Only Locally

Jan 3, 2011

I have tried to host a website at home (consider it a good option and learning experience). After using some Linux distros finally decided to stick with UBUNTU (10.10). Sadly everything was ok until the configuration of BIND9 finally failed.

I am nearly blind with most concepts of networking, my understanding is really basic and am guessing my problem is on that direction but really can not figure it out.

My set up is based on a guide found at [url] and have just changed the domain name so my configuration files are:

And for the reverse zone:

My resolv.conf file looks as follows:

With the last three lines being the IP of my ISP DNSs and declared in /etc/bind/named.conf.options as formwarders.

The output of named-checkzone arquibailleres.com is:

And:

When my BIND service is restarted its output log clearly states that the zones are added and indicates "sending notifies" yet by using dig and ping everything works nicely but when I try to connect to the site from an external computer my site simply is not recognised.

Ping output:

Dig output:

I have rented a static IP address, but still when looking for my global address I see: 201.130.192.159.

To me it looks like it is working, but I already mentioned that my understanding of that stuff is really poor, I have finally ran the "port scan tool" under System -> Administration -> Network Tools and it indicates that my port 53 is assigned to "domain" and open, also port 80 is open for www.

View 3 Replies View Related







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