Save the position into file after every second
        :return:
197208
def _save_log_pos_thread_runner(self):
        
        _logger.debug('Start log pos saving thread')
        while not self.save_log_pos_thread_stop_flag.wait(self.interval):
            self._save_file_and_pos()
        _logger.debug('Finish log pos saving thread')
785137
def save(self, fp=None):
        
        self.storage.settings['markov'] = self.get_settings_json()
        self.storage.save(fp)
1173042
def save(self, filename):
        """"""
        with open(filename, 'w') as fp:
            fp.write(str(self))
918044
def save(self, path):
        
        (folder, filename) = os.path.split(path)
        if not filename:
            filename = _clean_filename(self.name)
            path = os.path.join(folder, filename)
        return self.waveform.save(path)
469609
def post_process(self):
        
        self.image.putdata(self.pixels)
        self.image = self.image.transpose(Image.ROTATE_90)
1314458
def _post_process(self):
        
        self._process = None
        shutil.move(self._temp_capture_file_path, self._capture_file_path)
1054087
def do_save(self, fp=None):
        
        if fp is None:
            fp = sys.stdout
        data = {
            'settings': self.settings,
            'nodes': self.nodes,
            'backward': self.backward
        }
        json.dump(data, fp, ensure_ascii=False)
1333479
def save(self):
        
        content = self.dumps()
        fileutils.save_text_to_file(content, self.file_path)
453050
def autosave(self):
        
        # make sure we're suppoed to
        if self.button_autosave.is_checked():

            # save the file
            self.save_file(_os.path.join(self._autosave_directory, "%04d " % (self.number_file.get_value()) + self._label_path.get_text()))

            # increment the counter
            self.number_file.increment()
783782
def save(self):
        
        with open(self.filename, 'w') as f:
            ujson.dump(self.config, f, indent=4)
1282477
def save(self, fp, mode='wb'):
        
        if hasattr(fp, 'write'):
            self._record.write(fp)
        else:
            with open(fp, mode) as f:
                self._record.write(f)
849083
def save
      pos = @io.pos
      @io.pos = @start_at
      @io << [Filter.guess(@filter_type)].pack('C')
      @io << self.data.slice(0, @data_size).ljust(@data_size, "\0")
      @io.pos = pos
      @callback.call(self) unless @callback.nil?
      self
    end
78899
def seek_to_frame(self, index):
        """"""
        pointer_position = self.frame_positions[index]
        self.blob_file.seek(pointer_position, 0)
378015
def __save(self, b):
        '''
            
        '''
        newbufferidx = (self.__bufferidx + len(b))
        self.__buffer[self.__bufferidx:newbufferidx] = b
        #update buffer index
        self.__bufferidx = newbufferidx
1205018
def pprint(self, seconds):
        
        return ("%d:%02d:%02d.%03d", reduce(lambda ll, b: divmod(ll[0], b) + ll[1:], [(seconds * 1000,), 1000, 60, 60]))
1058382
def save(self):
        
        with open(self._filename, "w") as f:
            self.config.write(f)
772108
def set_position(self, pos):
        """"""
        time_in_ms = int(pos)*1000
        return self.apple_tv.set_property('dacp.playingtime', time_in_ms)