LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 50 of 987
Search took 0.79 seconds.
Search: Posts Made By: shanenin
Forum: Programming 01-10-2006, 10:01 AM
Replies: 5
Views: 2,699
Posted By shanenin
closure feels good :-)

closure feels good :-)
Forum: Programming 01-10-2006, 09:50 AM
Replies: 5
Views: 2,699
Posted By shanenin
Thanks. That was the problem. I have had this...

Thanks. That was the problem. I have had this problem before in the past. On occasion I will code on my windows box, then copy over to my linux box later.
Forum: Programming 01-10-2006, 09:42 AM
Replies: 5
Views: 2,699
Posted By shanenin
I bet you are correct, I will boot it up soon and...

I bet you are correct, I will boot it up soon and check. I accidently erased the program off my linux box, so I copyied it over from my windows box.
Forum: Programming 01-10-2006, 08:24 AM
Replies: 5
Views: 2,699
Posted By shanenin
error when tying to run python script(bash error?)

I am going mad trying to figure this out. I have a python script that runs fine if I start it like this

python /home/shane/bin/gettorrent

but if I run it directly like this
...
Forum: Linux - Software 12-19-2005, 07:50 PM
Replies: 2
Views: 570
Posted By shanenin
Thanks, that clears it up :-)

Thanks, that clears it up :-)
Forum: Linux - Software 12-19-2005, 07:06 PM
Replies: 2
Views: 570
Posted By shanenin
dd question

I have read man dd, but still am unsure of what it means. look at this line of code

dd if=/dev/zero of=/dev/hda bs=512 count=1

with having the count=1 option, will it only do the mbr? I have...
Forum: Programming 12-13-2005, 11:13 PM
Replies: 2
Views: 5,134
Posted By shanenin
thanks for the suggestion :-)

thanks for the suggestion :-)
Forum: Linux - Software 12-13-2005, 12:35 PM
Replies: 6
Views: 1,303
Posted By shanenin
does the output of ls -l show it is already owned...

does the output of ls -l show it is already owned by root?
Forum: Linux - Software 12-13-2005, 12:28 PM
Replies: 6
Views: 1,303
Posted By shanenin
do you have to specify both user and group, like...

do you have to specify both user and group, like this?

chown -R root:root /root
Forum: Programming 12-13-2005, 11:14 AM
Replies: 2
Views: 5,134
Posted By shanenin
how to kill a thread in python

I have a very simple plugin I wrote for freevo. below is the plugin. it will shutdown your computer after your avi file has finished playing, kind of like a sleep timer.

#!/usr/bin/env python
...
Forum: Programming 11-29-2005, 09:44 PM
Replies: 2
Views: 2,255
Posted By shanenin
the problem was I was needed to use this ...

the problem was I was needed to use this

py_modules=['freevo.video.plugins.cropit'])
not

py_modules=['freevo.video.plugins.cropit.py'])
Forum: Programming 11-29-2005, 08:06 PM
Replies: 2
Views: 2,255
Posted By shanenin
AFter rereading my post, I am not sure if it is...

AFter rereading my post, I am not sure if it is clear. All I want to do is use distutils to create an installer for both one python module, and one python script.

I need the python module...
Forum: Programming 11-29-2005, 07:10 PM
Replies: 2
Views: 2,255
Posted By shanenin
using distutils to install a python module

I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use

#!/usr/bin/env python
from distutils.core import setup

setup(name="freevo_cropit",
...
Forum: Programming 11-27-2005, 10:31 PM
Replies: 2
Views: 1,076
Posted By shanenin
I figured out what I was doing wrong. I did not...

I figured out what I was doing wrong. I did not have self.item set to any thing

I changed that code from this

def actions(self, item):
return [ (self.test_command, "shane's command")...
Forum: Programming 11-27-2005, 08:43 PM
Replies: 2
Views: 1,076
Posted By shanenin
writing a freevo plugin

This is more freevo specific then python specific. If any of you have written any plugins for freevo maybe you can see what I am doung wrong.
below is my code

#!/usr/bin/env python
#
# this is...
Forum: Linux - Software 11-21-2005, 09:58 PM
Replies: 2
Views: 1,766
Posted By shanenin
thanks for the informative reply :-)

thanks for the informative reply :-)
Forum: Linux - Software 11-21-2005, 09:25 PM
Replies: 2
Views: 1,766
Posted By shanenin
dd be used to ghost a whole harddrive?

could you boot a system with knoppix then use dd to make a perfect ghost image of one harddrive(master) to another(slave)? After it is done swith the two, and boot from the newly made copy
Forum: Programming 11-21-2005, 06:54 PM
Replies: 6
Views: 1,992
Posted By shanenin
I made a couple of changes to the original. There...

I made a couple of changes to the original. There was a bug I never noticed before. If you used the absolute path instead of the relative path, it would error out, which in now fixed. Before you were...
Forum: Programming 11-20-2005, 01:44 PM
Replies: 11
Views: 1,074
Posted By shanenin
I am sure the second way is more efficient. I...

I am sure the second way is more efficient. I think I am just used to doing it the unefficient way.
Forum: Programming 11-20-2005, 12:39 PM
Replies: 11
Views: 1,074
Posted By shanenin
I like the first verison piping the output to...

I like the first verison piping the output to grep. That seems like a more natural way to do it.
Forum: Programming 11-20-2005, 11:12 AM
Replies: 11
Views: 1,074
Posted By shanenin
I am not sure I deserve thanks, I gave you a...

I am not sure I deserve thanks, I gave you a solution to find running processes, not the number of processors :confused:
Forum: Programming 11-19-2005, 11:27 PM
Replies: 11
Views: 1,074
Posted By shanenin
I am sure their is probably a better way of doing...

I am sure their is probably a better way of doing this. the command 'ps -A' will list all processes. you could use a simple bash script to parse out the data, or this python script

#!/usr/bin/env...
Forum: Programming 11-19-2005, 08:40 PM
Replies: 18
Views: 2,456
Posted By shanenin
not very technical, but this is what I do ...

not very technical, but this is what I do

echo "moving $FILE to $DESTINATION"
mv $FILE $DESTINATION


you may want to look at this link
http://www.edoceo.com/liber/linux-bash-shell.php
...
Forum: Programming 11-19-2005, 06:41 PM
Replies: 6
Views: 1,800
Posted By shanenin
you need to enclose your sed command in quotes ...

you need to enclose your sed command in quotes

sed "s/clan/$name/g" server.cfg > cfg.cfg
Forum: Programming 11-19-2005, 12:55 PM
Replies: 2
Views: 1,028
Posted By shanenin
to rule out your code being the problem, have you...

to rule out your code being the problem, have you tried to use the code with a later verion of gcc on another machine?
Forum: Programming 11-19-2005, 12:19 PM
Replies: 18
Views: 2,456
Posted By shanenin
a cleaner option would be to remove the temp...

a cleaner option would be to remove the temp file, it is not needed. You can set the output of ls /tmp/*.tgz to either an simple or an array varibale

using a simple variable this should work. the...
Forum: Programming 11-18-2005, 12:43 PM
Replies: 18
Views: 2,456
Posted By shanenin
your welcome. I am glad I was able to help :-)

your welcome. I am glad I was able to help :-)
Forum: Programming 11-18-2005, 12:10 AM
Replies: 18
Views: 2,456
Posted By shanenin
looks like you are making progress :-) this...

looks like you are making progress :-)

this is the page I reference the following method from
http://www.tldp.org/LDP/abs/html/refcards.html#AEN17078

you can use a string method to test for...
Forum: Programming 11-17-2005, 04:29 PM
Replies: 18
Views: 2,456
Posted By shanenin
If I am understanding your first question. you...

If I am understanding your first question. you need to use a "for loop" in conjuntion with an "if then" statment. If I was you I would read up on those two constructs.

the for loop will go thru...
Forum: Programming 11-17-2005, 01:26 PM
Replies: 8
Views: 5,537
Posted By shanenin
lets say you have a script called script.sh ...

lets say you have a script called script.sh

script.sh
echo $?

the variable $? will tell you the return value of the script script.sh

Is that what you are asking?
Forum: Programming 11-17-2005, 12:23 PM
Replies: 18
Views: 2,456
Posted By shanenin
if you need to go thru a list systematically that...

if you need to go thru a list systematically that is what a for loop is used for
Forum: Programming 11-17-2005, 12:18 PM
Replies: 8
Views: 5,537
Posted By shanenin
the special variable $? gives the return value of...

the special variable $? gives the return value of the last command executed
cat filename | grep hhh
if [ "$?" -eq 0 ]; then
echo "it found the string"
fi



I have not used bash for a...
Forum: Programming 11-17-2005, 11:47 AM
Replies: 8
Views: 5,537
Posted By shanenin
both of those examples are called command...

both of those examples are called command subtitution. Either one can be used. you can either put the command in backticks

`enter command here`

or the way you did it

$(enter command here)
...
Forum: Programming 11-16-2005, 02:19 PM
Replies: 4
Views: 1,319
Posted By shanenin
the script tested as you thought. it waits 10...

the script tested as you thought. it waits 10 seconds then prints both to screen. I still do not understand why running the command as a subprocess would cause all of the output not to be flushed...
Forum: Programming 11-15-2005, 09:10 PM
Replies: 4
Views: 1,319
Posted By shanenin
sounds reasonable :-)

sounds reasonable :-)
Forum: Programming 11-15-2005, 02:33 PM
Replies: 5
Views: 698
Posted By shanenin
I am a novice python programmer, but do not know...

I am a novice python programmer, but do not know anything about web programming. When you say using the cgi module, does that mean you do not use html, or do you use python(cgi) in place of php?
Forum: Programming 11-14-2005, 04:37 PM
Replies: 3
Views: 1,370
Posted By shanenin
I think help is good, but doing it is another...

I think help is good, but doing it is another thing.
Forum: Programming 11-14-2005, 02:19 PM
Replies: 4
Views: 1,319
Posted By shanenin
ssh changes the way python script behaves

I wrote a python script that checks for new media on my windows box, if it is new it copys it over to my standalone freevo jukebox. Below is a small part of the script that does the actually copying...
Forum: Linux - Software 11-09-2005, 03:47 PM
Replies: 1
Views: 2,042
Posted By shanenin
editing a kernel module make file

I am need to edit a Makefile that is used to install the fusion kernel module. The Makefile checks the output of uname -r to determine the module build directory. Here is the original code
...
Forum: Linux - Software 11-05-2005, 08:42 PM
Replies: 4
Views: 2,694
Posted By shanenin
for instance, the gentoo live cd, automaticlally...

for instance, the gentoo live cd, automaticlally loads my nic module. After building a gentoo system, my module does not get autoloaed, I need to specify it spectifcally if I want it to be loaded. I...
Forum: Linux - Software 11-05-2005, 07:27 PM
Replies: 4
Views: 2,694
Posted By shanenin
program to detect network card?

is there a program that can detect your network card, and then return the module(name) used for that card? What does a live cd like knoppix use for this task.
Forum: Linux - Software 11-02-2005, 11:36 AM
Replies: 2
Views: 17,480
Posted By shanenin
thanks for the suggestion, that sounds like that...

thanks for the suggestion, that sounds like that might be a good solution :-)
Forum: Linux - Software 11-02-2005, 10:10 AM
Replies: 2
Views: 17,480
Posted By shanenin
using parted to erase whole disk

I wanted to use parted to automatically partition my harddrive. As far as I can tell, their is no option to erase the drive in one step. I can do it using a bash or python script that gets output...
Forum: Linux - Software 10-26-2005, 10:30 AM
Replies: 1
Views: 2,655
Posted By shanenin
cflag settings for gentoo make.conf

I am makeing a stage 4 tarball, which contains a whole working system for standalone freevo(I use it a s a video player) boxes. I want this system to work on both pentium2 and k6 processors.

can...
Forum: Programming 10-24-2005, 07:33 PM
Replies: 24
Views: 3,315
Posted By shanenin
I feel alot like you. I also started with C,...

I feel alot like you. I also started with C, following examples in a book. I got bored and frustrated(hard to understand) with it. I later wanted to automate a small task, so i got a book on bash...
Forum: Programming 10-22-2005, 12:33 AM
Replies: 24
Views: 3,315
Posted By shanenin
I am kind of slow(when it comes to programming),...

I am kind of slow(when it comes to programming), but am able to write a simple python app. It is such a high level language it is easy to learn. It is very satisfying to make a useful program with...
Forum: Programming 10-03-2005, 06:51 PM
Replies: 0
Views: 1,780
Posted By shanenin
download torrents automatically

I am always so impressed at the ease of using python. It lets you make such useful stuff with so little code(or programming experience).

I like to download all of the new television shows. I...
Forum: Programming 09-29-2005, 01:03 PM
Replies: 2
Views: 9,196
Posted By shanenin
Thanks :-) That was to easy. I have used...

Thanks :-)

That was to easy. I have used urllib.urlretrieve in the past, but did not think it would work. Here is where I got confused. To test it I tried to use wget like this

wget...
Forum: Programming 09-29-2005, 11:48 AM
Replies: 2
Views: 9,196
Posted By shanenin
python script download torrents

I want to make a python script that will automatically download torrent files for me. I am able to use feedparser.py to get a url from a rss feed. here is what the url looks like...
Forum: Programming 09-26-2005, 08:02 PM
Replies: 11
Views: 2,401
Posted By shanenin
your welcome :-)

your welcome :-)
Showing results 1 to 50 of 987

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 02:41 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions