Thank you for that suggestion.
Unfortunately it did not work.
I have things working by:
- starting gpsd first when it is needed by my script and
- having a "sleep 60" in the cronjob so that...
Type: Posts; User: NeillHog; Keyword(s):
Thank you for that suggestion.
Unfortunately it did not work.
I have things working by:
- starting gpsd first when it is needed by my script and
- having a "sleep 60" in the cronjob so that...
I have a GPS module running on a USB port.
Once the server is running I can do sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock and then run my python script that uses gpsd to continuously read GPS...
Thank you MadCow108.
I mess about for weeks and you solve the problem in 5 minutes.
If you are ever passing through the Alps I owe you a huge beer.
Thank you!
I have run up against a wall. I really appreciate any and all help because I am so out of my depth.
I have installed gcc on a NSLU2.
Running gcc -o test test.c brings no error and afterwards I...
OK!
Will do and get back to you with the results.
Neill
@Iowan
I definitely agree with you about the "hard" way being the way where you learn the most.
In future I will be able to set up my shares manually. :-)
But it is not bad for Linux when...
Thank you both of you.
It is now as I wanted it.
sudo apt-get install system-config-samba
installed the program as Kemon said it would.
I can use that to decide if a share is writable or not.
...
Now I really need to get home and try that out.
You mean I really didn't need to spend a year getting Samba to work? I could have just installed this application and done it all from there?
Thank...
Is it really that easy?
Thank you so much.
I am currently 600 kilometres away from my PC (PC in Germany and I am in Italy) but as soon as I get back I will try that.
Wish I was going home tonight...
Thank you for that.
I really don't understand Samba but I will try both your ideas and get back to you to let you know if either work.
Thanks again
Neill
Having spent an afternoon looking in to this, I am still non the wiser.
Is it maybe something to do with the line
directory mask = 0755
in the conf file.
This line suggests that the owner can...
I have a samba share set up on my Kubuntu PC.
It is working great. My son can see it from his XP PC.
I set up a samba user with my son's login name and password.
Here is the share out of my...
Firstly - a huge thank you.
I changed to Linux a year ago and have never regretted it.
But the problem of sharing files with other XP PCs in the house had driven me to distraction.
With this...
I am sure that this is a "standard problem" but I can not find an easy answer.
I have three PCs here at home. Mine runs Kubuntu while the two kids still use Windows XP (gamers).
I have a...
Ok! Thanks for all the help. Now that I more or less understand what I am doing I will go away and solve the problem - probably with a global config object.
Thanks!
Thank you all.
To summarize -
There are three ways I can deal with my config file.
1. Use a singleton (still have not understood this fully).
2. Use a global, either for the config file or the...
pmasiar wrote
Thank you for that suggestion.
Excuse me being a bit slow but would the object not then need to be global if I want to use the values in a variety of functions and classes?
Or...
Thank you for the replies.
I need to do a lot more reading about "Singletons".
I understand from the above that reading a configuration file every time I need the serial port is not a problem but...
As the title says "I know that global variables are evil and those who use them should be publicly humiliated but ...."
I am writing a simple program with Python. It has a GUI made with Qt.
The...
This thread is meant to be called "Dialog with Qt and Python" but there seems to be no way to change the name.
I hope "the expert" stumbles over it anyway - because I am really getting no where...
I have now been playing with Python for a few months. I have written a few very simple utilities where I use Qt for the GUI.
Thanks to these forums and all the help I have received I have solved...
I don't know if it is elegant but it works :-)
def _selectInputFile(self):
# begin by getting the directory from last time
# initial value in case the value can not be read from the...
Thank you happysmileman.
I'll go and read the class reference again and try and really understand it this time.
I thought there would be an easy way (easy for me that is - rather than easy for...
At the moment I use
filename=QFileDialog.getOpenFileName("", "*.*", self, "Source File")
if filename:
self.lineEditInputFile.setText(filename)
I would like to be able to remember the...
OK! Thank you for both tips. It is the friendly, informed, helpfull users that make Ubuntu/Python so much fun.
T anks
Neill