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


ADVERTISEMENT

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 View Related

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 :: Bash Time Comparison Within A Fast Moving Log?

Jun 1, 2010

I have a bash script that is tracking ERROR connections (running in a cron every 15 minutes), sometimes the errors are true and are not connecting. But most of the time, the disconnects/reconnects are between 30 seconds are sending out false positives. I am looking for a time comparison code to pick out the 30 second disconnects and know that this is and "ok" error. Here is a section of the log with timestamps, errors, etc.

Tue 2010-06-01 22:01:30 ERROR [DataBufferSendService] 172.31.0.1:8016 caught exception: [NetworkAPI] Exception: [SocketStream] socket error
Tue 2010-06-01 22:01:32 ERROR [DataBufferSendService] 172.31.0.2:8016 caught exception: [NetworkAPI] Exception: [SocketStream] socket error
Tue 2010-06-01 22:02:00 INFO [Client] 172.31.0.1:8016 connecting to 172.31.0.1 on port 8016
Tue 2010-06-01 22:02:02 INFO [Client] 172.31.0.2:8016 connecting to 172.31.0.2 on port 8016

View 8 Replies View Related

Programming :: Invalid Next Size (fast ) Error : Cant Figure Out?

Apr 24, 2011

So I've been writing a code and I have been adding functions to make life easy, but all of a sudden when i added the last function I got this error *** glibc detected *** /home/ahzeeper/Desktop/C-code/check6: free(): invalid next size (fast): 0x0804c048 ***followed by a huge backtraceNow here is my code

#include<stdio.h>
#include<stdlib.h>
#include<math.h>

[code]...

View 3 Replies View Related

Programming :: Fast Inter-application Communication For Academic Simulator

Dec 1, 2010

I have an academic simulator software and I want to visualize its output at the same time the simulation is happening. However I want to separate visualization and simulation modules. The simulation data will be held in an array of a size around 0.5M and will be read only to visualization software (but updated regularly by simulator).

- In past I have used shared memory to share small variables among two applications.

- TCP/IP adds the option of having the simulator and visualization applications on separate machines but the implementation will be more difficult.

- I have also thought about an abstraction layer which allows to replace the communication/interconnection layer with other methods later (file/network/shared memory/pipe).

View 6 Replies View Related

Programming :: Saving File Data Using Python In An Embedded System In An Safe And Fast Way?

Apr 19, 2011

I am developing a program in a system where the Linux does not take care of the sync command automatically. So I have to run it from my application always I save some data in the disk, which in my case is a 2GB sdcard. It is true that I can make the operation system takes care of the syncronization, using a proper mount option, but in this case the programm's performance drops drastically. In particular I use the shelve module from Python to save data that comes from a socket/TCP connection and I have to deal with the potencial risk of the system being turned off suddenly Initially I wrote something like that to save data using shelve:

Code:

def saveData(vo)
fd = shelve.open( 'fileName' , 'c')
fd[ key ] = vo
fd.close()
os.system("sync")

But that takes too much time to save the data. Note that I use the sync from the OS every time I close a file to prevent data corruption in the case of the "computer" being turned off with data even in the buffer. To improve the performance I made something like that:

Code:

def saveListData( list )
fd = shelve.open('file_name', 'c')
for itemVo in list:
fd[itemVo.key] = itemVo
fd.close()
os.system("sync")

Thus, first I saved an amount of objects in a list then I open the file and save the objects. In this way I have to open the file just one time to save a lot of objects.However I would like to know if adding a lot of objects before closing the file would increase the risk of data corruption.I known that turning off the system after fd.close() and before os.sync may cause problems. But what about turning off the system after

Code:

fd = shelve.open('file_name', 'c')

but before fd.close()?

View 7 Replies View Related

Ubuntu Networking :: Wifi Is Fast Then Slow Then Fast Then Slow Connect Disconnect ?

May 7, 2010

My wireless seems to be fast for a good 30secs then bang takes good while to load the next page almost as if it's disconnecting and then reconnecting/scanning reconnecting. Why cant it stay connected. I have WAP PSK security here is my network setting please let me know if I should change any of them:(side not is there a way to fix this problem occuring so frequently it says on the wiki that it should only occur once in a whilce https:[url].....

View 2 Replies View Related

Programming :: Users Who Have Never Changed Their Password From /etc/sha

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow.

As I know on linux there is a command "chage" used for find last password change. Any idea about solaris command?

View 1 Replies View Related

Programming :: Value Gets Changed When Passed To A Function In C++

Jun 10, 2010

Why do I see different values of character 'a', in main() and in functionA() in the following C++ code?

Code:
#include <stdio.h>
#include <string.h>
#include <iostream>
using namespace std;

[Code]....

View 7 Replies View Related

Programming :: Script To Evaluate If A Passwd File Has Changed

Apr 6, 2010

creating a script which evaluates whether or not the passwd file has changed.

View 4 Replies View Related

Programming : Find Out Files That Are Changed Less Than 10 Hours With Grep Command?

Mar 20, 2010

Getting the list of files in the root directory that have changed less than 10 hours earlier, using grep, but without the directories.

View 1 Replies View Related

Programming :: Shell Script To Copy Newly Changed Files With Rsync?

Apr 20, 2010

I've got quite a decent rsync script setup, however I'd like to invoke it whenever there's change to a file. My initial idea was to use find, however this has two major flaws - the first being my particular unix veriant cant understand -print0 which means this doesn't work, the second is that I'm not 100% sure how to put variables into quotation marks so ls can understand the target:

Code:

for i in `find /shares/ -mtime -1 -print`; do ls -ltr $i;done

View 14 Replies View Related

Programming :: Why The Thread Stack Size Cannot Be Changed When Calling In A Dynamic Library

Jan 5, 2011

Why the thread stack size can not be changed after calling pthread_attr_setstacksize & pthread_create in a dynamic library? Detail: I write a file thread_factory.c and plan to build it and produce a dynamic library (libthread_factory.so) In the thread_factory.c , there is a routine

[Code]....

And after this, there is application, it will call fct_thread_create(STACK_SIZE_256KB), and then call pthread_attr_getstacksize(), but the stack size return always be a fixed value 0xa01000. (I tried this on Fedora12) But if I build the application source code with the file thread_factory.c directly, the stack size return is right as my expect. I checked the source code of glibc about the routine pthread_create() as below:

[Code]....

View 7 Replies View Related

Programming :: Create A Script That Returns A List Of The Users Who Have Never Changed Their Password From /etc/shadow

May 17, 2011

I need to create a script that returns a list of the users who have never changed their password from /etc/shadow. As I know on linux there is a command "chage" used for find last password change.

View 2 Replies View Related

OpenSUSE Install :: Respawning Too Fast - Error: "Respawning Too Fast - Disabled For 5 Min" Freeze

Dec 12, 2009

Installing 11.2 from KDE LiveCD on an IBM ThinkCenter with 3.2Gb CPU and 1Gb RAM. Ubuntu 9.04 on first two partitions. I go through the configuration, click to 'install': Install display bars remain blank. After 2-3 minutes, black screen with scroll of attempted installation pieces and the error message: "Respawning too fast. Disabled for 5 min." Freeze.

Other posts mention problem with init. But this is happening with the install so not able to address that. No apparent md5chksum for LiveCDs. No mention of this problem in installation help guide. Does anyone know how to deal with this? If you need more info, I will provide. Though it seems this is not an unusual problem when booting an installed system, there's no mention of it happening during installation.

View 6 Replies View Related

Debian :: Some Of The Icons On The Desktop Changed And All Of The Icons In The Drop Down Menu On The Bar At The Top Of The Screen Also Changed?

Jun 19, 2010

I recently installed virtual box on debian and after it had finished my terminal informed me that I could remove some "unnecessary" software by use of sudo apt-get autoremove. When I did this, some of the icons on the desktop changed and all of the icons in the drop down menu on the bar at the top of the screen also changed to ordinary folder symbols. The theme that I was using also went away. I restarted the computer and it booted back into a shell prompt with no GUI. I tried to get back to the GUI using alt+f7 but it didn't seem to exist

View 2 Replies View Related

Programming :: Print Out "old Workspace" Since OverwriteWorkspaceEnv Equals "no" - Nothing Changed

Jul 12, 2010

[code]...

This is what prints out: no new workspace. why the script is printing out "new workspace", when overwriteWorkspaceEnv is equal to "no". Shouldn't it print out "old workspace", since overwriteWorkspaceEnv equals "no"? I tried changing the else to an elif with $overwriteWorkspaceEnv="no" as the argument and nothing changed.

View 4 Replies View Related

Ubuntu :: Has Anyone Ever Tried Tried Apt-fast?

Dec 6, 2010

Has anyone ever tried tried Apt-fast? What it is claiming is quite intriguing. It is claiming that it can download 26x faster than apt-get.URL...

View 4 Replies View Related

Ubuntu :: How To Fast Virtualbox

Jan 18, 2010

I run faster virtualbox I must do I install kernel server? my cpu does not support kvm

View 1 Replies View Related

Ubuntu :: Graphical Way To Set Up Ssh And Fast?

Sep 28, 2010

My older brother is switching to Linux and I wanted to set up ssh with him but a graphical but because he is new he needs a graphical way. I was going to download updates and everything he needs from here but I need a way so he can set up ssh and I can do the command line stuff. He wants to use Linux because of wine, ktorrent, xchat, the virus thing, and because of the gui package manager.

View 9 Replies View Related

Fedora :: Audio Playing Too Fast

Sep 26, 2009

my audio and the audio while video is playing way to fast ive searched google for a fix and have tried a few. but to no avail.

View 12 Replies View Related

Fedora :: Timeout Too Fast In NetworkManager For 14?

Mar 8, 2011

I seem to be having this problem with Fedora 14:

[URL]

My wireless device is an Intel Ultimate N WiFi Link 5300, driver is iwl4965. Post-suspend I see exactly the same messages as in that Ubuntu report. Restarting NM does not help.Is there a way to lengthen to timeout or kick the device in to life some other way?

View 5 Replies View Related

Ubuntu :: Keyboard Pressing The Key To Fast

Jan 11, 2010

I have a Asus EEE 1000h with ubuntu 9.10 remix. A problem on first asus eee's is the keyboard: also just typed a letter once, the laptop writes it double (every 200 letters more or less). For example it looks like this while writing: "thiss is a ttest" For Windows XP I found a way to fix it: i increased the time, that limits writing letters twice by fast typing. Its not the time "Repeat Keys" Delay (Keyboard Settings "Key presses repeat when key is held down")! In fakt its the opposite: It limits pressing the key to fast. (I hope you understand the problem *g)

View 1 Replies View Related

Ubuntu :: Mouse Wheel Is Too Fast

Sep 12, 2010

My mouse wheel moves incredibly fast, just after I booted my computer today.

View 3 Replies View Related

Ubuntu :: Audio Is Moving Too Fast?

Oct 10, 2010

My install of 10.10 went fine with the exception of Audio. If I attempt to use audio with the Rythmbox application or through Adobe Flash (in firefox), it sounds like an old fashioned 33 1/3 rpm phonograph record playing at 45 rpms. This problem has been around for a while and I had hoped that it would be cleaned up by now.

I'm running an AMD 64 processor (in 32 bit mode) and my audio card is a "Sound Blaster Live Value" (EMU10k1X). My on-board sound card is turned off in the bios. It works beautifully under Ubuntu 10.04 and FC13 with Pulse Audio.

Originally I thought that it might be a problem with Rythmbox which is now at v 0.13.1, a later version then I have been using in 10.04. However, with the Rhythmbox application off, I still get the same effect when trying to use audio in firefox. I also noticed that my cpu utilization climbs to about 80% when Rhythmbox is on.

View 9 Replies View Related

Ubuntu :: 10.10 - Computer Overheating Very Fast

Feb 26, 2011

With windows I was able to leave my computer on my lap and go for hours on end its never overheated on me and it still doesn't with windows, but with ubuntu it will last around 30-1h then it will overheat or even faster if I do anything like play a game or watch flash. And its not a problem with the new flash release because last year when I had ubuntu 10.04 it did the same thing (im on 10.10)

View 9 Replies View Related

Ubuntu :: Changing UI For Fast Performance

Sep 1, 2011

I am newbie to ubuntu. I wanted to change the ui so that my netbook would run faster, I was using compiz and when I clicked out of the app to switch to firefox my screen flashed and now I have nothing but the desktop wallpaper no toolbar, no launch menu the super dosen't even work now.

View 3 Replies View Related

General :: Fast Change Directory For The Cli?

Jun 29, 2010

In the old days of M$-DOS, there was the NCD (Norton Change Directory) utility. Anything of the sort in Linux?Explanatory note: you typed out the name of the directory you wanted to go to, that is, last element of the dir path.And you were, ipso facto, in that dir. If that was the only one by that name, good. When not, and if that wasn't the intended dir, you typed the same command again and you were in a second dir of that name. If this was the intended dir, good. And so on. It simply maintained a data base with the whole tree, and updated it when invoked from a newly created dir o by means of an option, NCD/R.

View 14 Replies View Related







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