Search Results

Showing results 1 to 40 of 215
Search took 0.02 seconds.
Search: Posts Made By: shanenin
Forum: HTML and CSS Feb 24th, 2008
Replies: 3
Views: 929
Posted By shanenin
If I set margin: 0 as a body attribute it fixed it.
Forum: HTML and CSS Feb 24th, 2008
Replies: 3
Views: 929
Posted By shanenin
Why doesn't the following seem to make any difference? You would think that would get rid of the margin above the image.

margin-top: 0
Forum: HTML and CSS Feb 24th, 2008
Replies: 3
Views: 929
Posted By shanenin
I am trying to position my logo at the very top and center of my web site. I am able to get it centered from left to right. The problem is I have about a several pixel space between the top of the...
Forum: HTML and CSS Sep 23rd, 2006
Replies: 7
Views: 14,406
Posted By shanenin
Thanks for the help. I did not even think to check the padding property.
Forum: HTML and CSS Sep 23rd, 2006
Replies: 7
Views: 14,406
Posted By shanenin
I tried that, but does not seem to have any effect. I still am about 6 characters from the left margin.
Forum: HTML and CSS Sep 22nd, 2006
Replies: 7
Views: 14,406
Posted By shanenin
I am trying to make a navigation bar using a list. Since a list is indented by default, I can't seem to get my list all the way to the left. I have looked at examples of this, but am not sure how...
Forum: HTML and CSS Aug 13th, 2006
Replies: 2
Views: 2,975
Posted By shanenin
Thanks :-) I got so much to learn.
Forum: HTML and CSS Aug 13th, 2006
Replies: 2
Views: 2,975
Posted By shanenin
I have been messing around trying to figure out some basics of html/css. I have a tan background with a white table. I want the background only to show up on the left and right sides(table is...
Forum: Shell Scripting Jul 21st, 2006
Replies: 12
Views: 5,474
Posted By shanenin
If you use code tags your post would be a little easier to read. Try this

pwd | sed "s/\/home\/httpd\/vusers\/*.domain.com\/web_users\/chris2/\/chris.domain.com\/web_users\/chris2/g"

I am not...
Forum: Shell Scripting Jul 21st, 2006
Replies: 12
Views: 5,474
Posted By shanenin
Since the forward slash has special meaning, you need to escape it. By placing a backslash in front of the forward slash, all of the special meaning is removed(escaped). for example my home directory...
Forum: Python Jun 21st, 2006
Replies: 2
Views: 1,719
Posted By shanenin
I used the method from win32api instead of win32file and this works

win32api.MoveFileEx("file", None, win32con.MOVEFILE_DELAY_UNTIL_REBOOT)
Forum: Python Jun 20th, 2006
Replies: 2
Views: 1,719
Posted By shanenin
I was seeing if I could use python to delete a file upon reboot. I am only able to rename it at reboot, I can't figure out the syntax to set the destination to null. Below is what works to rename the...
Forum: Python Dec 15th, 2005
Replies: 2
Views: 30,354
Posted By shanenin
thanks. I appreciate the nice example :-)
Forum: Python Dec 13th, 2005
Replies: 2
Views: 30,354
Posted By shanenin
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: Python Dec 10th, 2005
Replies: 5
Views: 7,803
Posted By shanenin
Thanks for the update :-)

this could come in handy. I am always writing scripts that need to connect my windows and linux boxes. Using ssh I could use this to communicate with computers both on my...
Forum: Python Dec 3rd, 2005
Replies: 7
Solved: Play a playlist
Views: 2,864
Posted By shanenin
let us know your solution, we are curious :-)
Forum: Python Dec 3rd, 2005
Replies: 3
Views: 3,324
Posted By shanenin
You could always dual boot linux with windows. We have bothe linux and windows computers in our house, it is nice to be able to use bothe operating systems.

I am curious about .net, I am not...
Forum: Python Dec 3rd, 2005
Replies: 7
Solved: Play a playlist
Views: 2,864
Posted By shanenin
if it was a unix/linux system, you could call a command line program like mplayer or mpg123.
Forum: Python Nov 29th, 2005
Replies: 2
Views: 3,948
Posted By shanenin
the problem was I was needed to use this

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

py_modules=['freevo.video.plugins.cropit.py'])
Forum: Python Nov 29th, 2005
Replies: 2
Views: 3,948
Posted By shanenin
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: Python Nov 29th, 2005
Replies: 2
Views: 3,948
Posted By shanenin
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: Python Nov 28th, 2005
Replies: 3
Views: 3,324
Posted By shanenin
I am not sure if any of you use a pvr. Linux offers some good choices. One of the choices is freevo, it is fully implemented in python. Of cource it uses tools like mplayer(video player) and others...
Forum: Python Nov 27th, 2005
Replies: 4
Views: 2,308
Posted By shanenin
its called "rpm hell", that is why I really like using a linux ditro that has a good package manager. A good pakcage manager should automatically get and install all dependencies for you.


I am...
Forum: Python Nov 27th, 2005
Replies: 4
Views: 2,308
Posted By shanenin
what way of installing did you do, did you get errors?
Forum: Python Nov 16th, 2005
Replies: 5
Views: 4,612
Posted By shanenin
If this option is available for you, this MAY work.

d:\path1\subpath1>gpg --command-fd y -r encr -o d:\dest1\subdest\sample.txt.gpg -e d:\path2\subpath2\sample.txt

below is what I read in the...
Forum: Python Nov 16th, 2005
Replies: 5
Views: 4,612
Posted By shanenin
On my linux system the batch option seems available. here is from the gpg manual page

maybe the version you are using could be different.

I do not think you can use python to answer 'y or n'...
Forum: Python Nov 15th, 2005
Replies: 5
Views: 4,612
Posted By shanenin
I am not familiar with that command, but would using the --batch option help. I think that would allow it to not ask for any user input

x = "d:\\path1\\subpath1\\gpg --batch -r encr -o...
Forum: Python Nov 14th, 2005
Replies: 1
Views: 2,832
Posted By shanenin
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: Python Nov 9th, 2005
Replies: 10
Views: 6,174
Posted By shanenin
i hear ya, classed give me trouble also :-)
Forum: Python Nov 7th, 2005
Replies: 10
Views: 6,174
Posted By shanenin
using pywin32 adding to the clipboard is easy.


import win32clipboard, urllib2

# this function just gets the ip from reading page source, and parisng it out
def getip():
webaddress =...
Forum: Python Nov 7th, 2005
Replies: 10
Views: 6,174
Posted By shanenin
I just tested your code, that just gets the internal ip, would he need his external IP?
Forum: Python Nov 7th, 2005
Replies: 10
Views: 6,174
Posted By shanenin
This is not very efficient, but you could get your ip using a webbased service

import urllib2
def getip():
webaddress = "http://www.getip.com"
page = urllib2.urlopen(webaddress)
...
Forum: Python Oct 25th, 2005
Replies: 5
Views: 3,204
Posted By shanenin
this code fixes that issue

def time_stamp():
import time
tuple_time = time.localtime()
hours = tuple_time[3]
if int(hours) in range(10):
hours = "0%s" %hours
...
Forum: Python Oct 25th, 2005
Replies: 5
Views: 3,204
Posted By shanenin
how about this

import time
# time.localtime() splits the time into elements of a tuple
tuple_time = time.localtime()
# don't europeans do day/month/year ?
time_stamp = "%s:%s %s/%s/%s"...
Forum: Python Oct 25th, 2005
Replies: 5
Views: 3,204
Posted By shanenin
I just was messing around with the time module tonight. are you asking for something simple like

>>> import time
>>> time.ctime()
'Mon Oct 24 23:30:47 2005'
Forum: Python Oct 24th, 2005
Replies: 5
Views: 2,258
Posted By shanenin
yup it does, that may be the reason. Thanks :-)
Forum: Python Oct 24th, 2005
Replies: 5
Views: 2,258
Posted By shanenin
since I started this thread, I am going to to jump topics a little. I tried to run the code from this thread
http://www.daniweb.com/techtalkforums/thread34020.html

When I run it on windows, it...
Forum: Python Oct 21st, 2005
Replies: 5
Views: 2,258
Posted By shanenin
I noticed I have two versions of wxPython installed on my linux system. I found a way to choose which version you want to import

#!/usr/bin/env python
import wxversion
wxversion.select('2.6')
Forum: Python Oct 19th, 2005
Replies: 1
Views: 1,735
Posted By shanenin
you should show us the code you came up with. It would give us an idea of what you are using.
Forum: Python Oct 19th, 2005
Replies: 13
Views: 4,820
Posted By shanenin
is version 2.4 of wxPython still needed for many apps to run. Do you guys run both versions?
Showing results 1 to 40 of 215

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC