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
User Profile
Collapse
-
mmap for dumping and loading tree
-
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:... -
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.... -
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) -
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) -
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...Leave a comment:
-
thanks bartonc ..
It's people like you keep me encouraged 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....Leave a comment:
-
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. -
...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))Leave a comment:
-
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 etcLeave a comment:
-
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... -
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 -
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?...Leave a comment:
-
-
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?? -
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 -
can anyone else help me with an alternative ...
I need that plugin badly...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...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
No activity results to display
Show More
Leave a comment: