Re: Issue with python365.chm on window 7

2018-04-23 Thread Bob Martin
in 793268 20180423 223830 "Brian Gibbemeyer" wrote: >From: Brian Gibbemeyer/Detroit/IBM >To: python-list@python.org, d...@python.org >Date: 04/23/2018 03:35 PM >Subject:Issue with python365.chm on window 7 > > >Not sure which email this should

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Hac4u
On Tuesday, April 24, 2018 at 4:13:17 AM UTC+5:30, MRAB wrote: > On 2018-04-23 22:11, Hac4u wrote: > > On Tuesday, April 24, 2018 at 12:54:43 AM UTC+5:30, MRAB wrote: > >> On 2018-04-23 18:24, Hac4u wrote: > >> > I have a raw data of size nearly 10GB. I would like to find a text > >> > string and

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread MRAB
On 2018-04-23 22:11, Hac4u wrote: On Tuesday, April 24, 2018 at 12:54:43 AM UTC+5:30, MRAB wrote: On 2018-04-23 18:24, Hac4u wrote: > I have a raw data of size nearly 10GB. I would like to find a text string and print the memory address at which it is stored. > > This is my code > > import os

Re: Issue with python365.chm on window 7

2018-04-23 Thread Terry Reedy
On 4/23/2018 5:38 PM, Brian Gibbemeyer wrote: From: Brian Gibbemeyer/Detroit/IBM Not sure which email this should go to. This is a good place to start. But I downloaded .chm version of the Python guide and found that it is not working in windows 7 How did you download it? How did you t

Re: Issue with python365.chm on window 7

2018-04-23 Thread Brian Gibbemeyer
From: Brian Gibbemeyer/Detroit/IBM To: python-list@python.org, d...@python.org Date: 04/23/2018 03:35 PM Subject:Issue with python365.chm on window 7 Not sure which email this should go to. But I downloaded .chm version of the Python guide and found that it is not working in win

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Hac4u
On Tuesday, April 24, 2018 at 12:54:43 AM UTC+5:30, MRAB wrote: > On 2018-04-23 18:24, Hac4u wrote: > > I have a raw data of size nearly 10GB. I would like to find a text string > > and print the memory address at which it is stored. > > > > This is my code > > > > import os > > import re > > fi

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Hac4u
On Tuesday, April 24, 2018 at 1:28:07 AM UTC+5:30, Paul Rubin wrote: > Hac4u writes: > > I have a raw data of size nearly 10GB. I would like to find a text > > string and print the memory address at which it is stored. > > The simplest way is probably to mmap the file and use mmap.find: > > http

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread bartc
On 23/04/2018 21:45, Stefan Ram wrote: MRAB writes: offset += search_length Or, offset += 1, to also find overlaps of that kind: file = "eee" word = "ee" . The above word "ee" occurs at position 0 and 1 in the file. My attempt: #include #include int main( void ) { FILE * const

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Grant Edwards
On 2018-04-23, Hac4u wrote: > I have a raw data of size nearly 10GB. I would like to find a text > string and print the memory address at which it is stored. The first thing I would try is to map the file into memory as a string (Pythonb 2) or bytearray (Python 3), and then search it using the f

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread MRAB
On 2018-04-23 18:24, Hac4u wrote: I have a raw data of size nearly 10GB. I would like to find a text string and print the memory address at which it is stored. This is my code import os import re filename="filename.dmp" read_data=2**24 searchtext="bd:mongo:" he=searchtext.encode('hex') with op

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Hac4u
On Monday, April 23, 2018 at 11:01:39 PM UTC+5:30, Chris Angelico wrote: > On Tue, Apr 24, 2018 at 3:24 AM, Hac4u wrote: > > I have a raw data of size nearly 10GB. I would like to find a text string > > and print the memory address at which it is stored. > > > > This is my code > > > > import os

Re: Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Chris Angelico
On Tue, Apr 24, 2018 at 3:24 AM, Hac4u wrote: > I have a raw data of size nearly 10GB. I would like to find a text string and > print the memory address at which it is stored. > > This is my code > > import os > import re > filename="filename.dmp" > read_data=2**24 > searchtext="bd:mongo:" > he=s

Finding a text in raw data(size nearly 10GB) and Printing its memory address using python

2018-04-23 Thread Hac4u
I have a raw data of size nearly 10GB. I would like to find a text string and print the memory address at which it is stored. This is my code import os import re filename="filename.dmp" read_data=2**24 searchtext="bd:mongo:" he=searchtext.encode('hex') with open(filename, 'rb') as f: while T

I wrote my very basic mkdocs plugin, hoping that it will inspire you to write your owns

2018-04-23 Thread francesco . maida
I wanted to write mkdocs plugins, so I read the docs (well, at least part of them) and I wrote a very simple, very basic plugin. I called it "Hello dolly", because when I wrote it I was inspired by the (once built-in) WordPress plugin of the same name that teached me the basic of plugin writing