Re: [gentoo-user] [ot] python + http authentication (with cherrypy)

2008-07-07 Thread Anielkis Herrera Gonzalez
did you tried django as web framework ???

El lun, 07-07-2008 a las 21:15 -0400, James escribió:
 Hi All,
 
 I'm writing a web application in CherryPy. What a beautiful thing it
 is to write Python code and get a simple yet powerful web output. :)
 
 The web application needs to have some decent level of security and
 authentication implemented.
 
 The big issue here is that the user password is stored in a database
 and algorithmically calculated as follows:
 md5( md5( $password ) + salt ) )
 
 The salt is also stored in the database (which I have full access to).
 I can easily use the md5 library to compare what a user gives me and
 see if that's the correct password (based on the salt and the stored
 password in the database). I'm unsure, however, how to go about
 implementing security into my web application.
 
 CherryPy obviously has a 'session' library in it. But in the periods
 of time I've researched writing web applications in the past
 (primarily when dealing with PHP), there was always great debate in
 how to write a good secure web application. (i.e., it becomes tricky
 when determining what precisely you should be passing around in terms
 of session variables).
 
 Thoughts? Am I going about this the wrong way? It would be much easier
 to use either digest or basic http authentication mechanisms, but I
 don't think that this is possible because of the fact that the
 password is double-hashed in the database (or am I wrong?).
 
 Any help appreciated. :o)
 
 -j
-- 


   Ing. Anielkis Herrera González
   Desarrollador de Nova
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba



smime.p7s
Description: S/MIME cryptographic signature


Re: [gentoo-user] OT - Mouse going crazy in gnome

2006-10-22 Thread Anielkis Herrera Gonzalez
check the wire (near the mouse, where is going in), a broken wire maybe
is the problem..


   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to patch the asterisk ebuild

2006-10-21 Thread Anielkis Herrera Gonzalez
you can do it, making you own ebuild: copying the original to your
overlay and using the function epatch.. remember to update the
digest( ebuild name.ebuild digest)

On Sat, 2006-10-21 at 23:54 +0700, Kitti Jaisong wrote:
 
 Hi all,
 somebody know how to patch the software via ebuild. i need to
 patch the asterisk.1.2.13 in part of chan_sip.c for correct the
 silencesupp in the huawei softswitch. but i dont know how to correct
 in the ebuild
 
 Thanks,
 
 kitti
 
-- 

   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] New baselayout changed my rc-update?

2006-06-30 Thread Anielkis Herrera Gonzalez
try  
#rc-update show -v
-- 

   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] New baselayout changed my rc-update?

2006-06-30 Thread Anielkis Herrera Gonzalez
ok(but I don't know why), but you can see the other init scripts.. no?
-- 

   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] An alternative to http-replicator

2006-06-09 Thread Anielkis Herrera Gonzalez
try torpage http://www.kroon.co.za/torpage.php
-- 

   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] syntax error near unexpected token `error' on GNOME_COMPILE_WARNINGS(error)

2006-05-14 Thread Anielkis Herrera Gonzalez
I have 2 PCs, on one I have gnome-2.14.0 installed and when configuring
a gdl(GNOME Development Library) CVS snapshot, for anjuta-2.0, I have no
errors, but in the other one I have installed gnome-light-2.14.0 and
this error:

checking how to hardcode library paths into programs... immediate
checking whether build environment is sane... yes
./configure: line 20494: syntax error near unexpected token `error'
./configure: line 20494: `GNOME_COMPILE_WARNINGS(error)'

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/gdl-0.6.1/work/gdl-0.6.1/config.log

!!! ERROR: dev-libs/gdl-0.6.1 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status
message.

why can this happends on one and not on another?? (Google, forums nor
bugs  helped me) 
I need to understand why this happend to react..
Ohh.. O tried to change GNOME_COMPILE_WARNINGS(error) to
GNOME_COMPILE_WARNINGS=error
and works, but (another time) why on one and not on another??

Someone can help me??

-- 

   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] lan-http-replicator docs

2006-04-20 Thread Anielkis
i recommend you to use torpage
  http://www.kroon.co.za/torpage.php
-- 

   Ing. Anielkis Herrera González
 Desarrollador de Nova LNX
 Linux User #377809

Universidad de las Ciencias Informáticas
Cuba


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Using Mustek Systems, Inc. WCam 300 in gentoo..

2005-06-14 Thread Anielkis Herrera Gonzalez
someone can show me the way to have working a Mustek WCam 300 on gentoo?
i have kernel 2.6.11-gentoo-r9 with VideoForLinux support and udev.
when i do dmesg:
  usb 2-2: new full speed USB device using uhci_hcd and address 6
  usb 2-2: device descriptor read/64, error -71

with lsusb:
  Bus 002 Device 006: ID 055f:d001 Mustek Systems, Inc. WCam 300

there is no /dev/video0 device..

ohh.. and .. sorry for my english..


  Anielkis Herrera González
   Desarrollador de Nova Linux OS
 Linux User #377809

 Estudiante 4to año
Universidad de las Ciencias Informáticas
Cuba





smime.p7s
Description: S/MIME cryptographic signature


Re: [gentoo-user] Using Mustek Systems, Inc. WCam 300 in gentoo..

2005-06-14 Thread Anielkis Herrera Gonzalez
thanks.. I doesn't try that before because the example was with an usb
memory stick..
now i have no error with dmesg, but the webcam is not working.. i'll try
now with the nw802 webcam driver( with a kernel 2.6 patch) that is
unsupported now, but.. if there is nothing more... 

thanks again...  :)


  Anielkis Herrera González
   Desarrollador de Nova Linux OS
 Linux User #377809

 Estudiante 4to año
Universidad de las Ciencias Informáticas
Cuba





smime.p7s
Description: S/MIME cryptographic signature


Re: [gentoo-user] Using Mustek Systems, Inc. WCam 300 in gentoo..

2005-06-14 Thread Anielkis Herrera Gonzalez
ok, with the nw802 driver i have this error when try to access
to /dev/video0 with media-video/camorama :
/usr/local/src/nw802/usbvideo.c: nw802 on /dev/video0: canvas=320x240
videosize=320x240
/usr/local/src/nw802/usbvideo.c: usb_submit_urb error (-1)
/usr/local/src/nw802/usbvideo.c: usb_submit_urb error (-1)
/usr/local/src/nw802/usbvideo.c: Packet Statistics: Total=3360.
Empty=273. Usage=91%
/usr/local/src/nw802/usbvideo.c: Transfer Statistics: Transferred=898KB
Usage=28%

i look for that error with Google but nothing appeared... 
-- 

  Anielkis Herrera González
   Desarrollador de Nova Linux OS
 Linux User #377809

 Estudiante 4to año
Universidad de las Ciencias Informáticas
Cuba





smime.p7s
Description: S/MIME cryptographic signature