User Profile

Collapse

Profile Sidebar

Collapse
sangeeth
sangeeth
Last Activity: Nov 16 '07, 12:35 PM
Joined: Dec 6 '06
Location: Bangalore,India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sangeeth
    started a topic mmap for dumping and loading tree
    in C

    mmap for dumping and loading tree

    I have a n-ary tree in memory.
    I want to dump this into a file so that I can read this back into memory at a later time.
    I understand that I have to change the pointers in nodes of the trees to offsets(maybe from root).
    But can anyone tell me how mmap can be used to reload a Data structure from file to memory.
    thanks in advance
    See more | Go to post

  • sangeeth
    started a topic rpm packaging

    rpm packaging

    I want to create an rpm package.
    I have a set of python, php and html files. I made a tar of all these files and put them in /usr/src/redhat/SOURCES directory. I also made a .spec file which contains
    %files
    /usr/src/redhat/SOURCES/my_rpm.tar

    then I used the command
    rpmbuild -ba SPECS/file.spec

    I got the following result.
    Wrote: /usr/src/redhat/SRPMS/my_rpm-1.0-1.src.rpm
    Wrote:...
    See more | Go to post

  • sangeeth
    replied to sendMail problem
    The junk character "!" is appearing in the message body
    The junk character appears exactly after 2615 characters.
    The text is fine before sending it through sendmail....
    See more | Go to post

    Leave a comment:


  • sangeeth
    started a topic sendMail problem

    sendMail problem

    Code:
    def sendMail(to, subject,text,files=[],server="127.0.0.1"):
            assert type(to)==list
            assert type(files)==list
            fro = "xx@x.com"
    
            debug_print("CWD -> " + os.getcwd())
            msg = MIMEMultipart()
            msg['From'] = fro
            msg['To'] = COMMASPACE.join(to)
            msg['Date'] = formatdate(localtime=True)
    ...
    See more | Go to post

  • sangeeth
    started a topic Mime

    Mime

    Code:
    def sendMail(to, subject,text,files=[],server="127.0.0.1"):
            assert type(to)==list
            assert type(files)==list
            fro = "xx@x.com"
    
            debug_print("CWD -> " + os.getcwd())
            msg = MIMEMultipart()
            msg['From'] = fro
            msg['To'] = COMMASPACE.join(to)
            msg['Date'] = formatdate(localtime=True)
    ...
    See more | Go to post

  • The link was useful in some other ways but my primary problem is not fixed.

    My taskbar and shortcut icons don't show up on Windows start.
    Can u dig further.. please...
    See more | Go to post

    Leave a comment:


  • thanks bartonc ..
    It's people like you keep me encouraged to post...
    See more | Go to post

    Leave a comment:


  • Yes, I did experiment and stop some services.
    Can you help me which service to start again so I can log on normally....
    See more | Go to post

    Leave a comment:


  • sangeeth
    started a topic explorer doesn't show up when window xp boots

    explorer doesn't show up when window xp boots

    I have windows XP OS with SP2.

    After a normal boot up and login window, I get a blank desktop with only my background image.
    I pressed Alt+Ctrl+Del and added a new task "explorer" as a new process.
    Only then the taskbar and desktop icons shows up

    Can anyone figure out the problem?
    Please help .
    I don't want to reinstall OS.
    See more | Go to post

  • sangeeth
    replied to Date Time in Python
    Code:
    import time
    
    def parseDate(date):
      t = time
      structT = t.strptime(date,'%Y/%m/%d')
      objT = t.mktime(structT)
      return objT
    
    
    if __name__ == '__main__':
            t = time
            t1 = parseDate('2007/04/06')
    
            t2 = t1 + 90*24*60*60
            x = t.localtime(t2)
            print str(t.strftime('%Y/%m/%d',x))
    ...
    See more | Go to post

    Leave a comment:


  • sangeeth
    replied to Memory Error
    nothing is wrong with code as the same code ran fine on another system

    Can u please tell me if main memory limit can be set for a user?
    Or is there any general explanation for the breakage of my process..maybe python's limitation etc
    See more | Go to post

    Leave a comment:


  • sangeeth
    started a topic Memory Error

    Memory Error

    python version 2.4.3
    os - linux fc-4

    I have a program which creates a lot of hashes and not make optimum use of memory..
    I ran this program on a machine with below memory

    Mem: 9183196k total, 6580616k used, 2602580k free, 1684584k buffers
    Swap: 19070968k total, 0k used, 19070968k free, 1502236k cached

    I was monitoring memory usage by top command while my program was...
    See more | Go to post

  • sangeeth
    started a topic Send mail link in mail text

    Send mail link in mail text

    I want to send a mail-link as a text of mail message.

    eg.
    hello Rahul,
    reply to me here xyz@yahoo.com
    bye

    I want the the email-id to be displayed as link so when one clicks on it an email client is opened.

    Please help
    See more | Go to post

  • sangeeth
    replied to Memory error in python
    The error is Memory Error
    The code is very big spanning some 41,000 lines, which I don't think will be useful if I share, but it uses a lot of lists and dictionaries
    The Python version is 2.4.3

    Can you help me now??
    Maybe how to do better memory management in Python?...
    See more | Go to post

    Leave a comment:


  • sangeeth
    replied to What is your OS and Python Version
    Linux FeodoraCore 4
    python version is 4.3.1
    editor - vi
    See more | Go to post

    Leave a comment:


  • sangeeth
    started a topic Memory error in python

    Memory error in python

    I have a very big python file which uses lists,tuples and dictionary.
    The problem is that the program always crashes with Memory error.

    Can anyone suggest how to solve this problem??
    See more | Go to post

  • sangeeth
    started a topic tuple editing problem

    tuple editing problem

    I have a tuple

    tup = (1,2,3,())

    I want to put a value 4 in the last position of tup
    i.e. i want tup to be (1,2,3,4)

    how can i do that
    See more | Go to post

  • can anyone else help me with an alternative ...
    I need that plugin badly...
    See more | Go to post

    Leave a comment:


  • Even then I am redirected to this link

    http://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash

    and the same 'i' appears if I click on "Download now"

    Please try it for yourself and see...
    See more | Go to post

    Leave a comment:


  • problem downloading flash plugin for firefox in windows

    Dear all,
    All the links for downloading of flash plugin for windows take me to this link
    http://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash&p romoid=BIOW

    on clicking on the link download now . .the next page shows an "i"

    I don't know what to do now..
    can anyone tell me an alternative source where I can get this
    See more | Go to post
No activity results to display
Show More
Working...