All public logs

Jump to navigation Jump to search

Combined display of all available logs of delarco wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
  • 19:06, 25 August 2022 200.201.163.25 talk created page Node.js: STDIN (Created page with "<pre> var stdin = process.openStdin(); stdin.addListener("data", function(d) { // note: d is an object, and when converted to a string it will // end with a linefeed. so we (rather crudely) account for that // with toString() and then trim() console.log("you entered: [" + d.toString().trim() + "]"); }); </pre>")
  • 18:08, 25 August 2022 200.201.163.25 talk created page Python: PDF Image Extractor (Created page with "<pre> import os import sys import logging import subprocess from PIL import Image, ImageSequence def extract_pdf_images(filepath, directory, ghostscript_path): cwd = r'.' cmd = r'{gs_path} -o "{directory}\p-%03d-000.png" -sDEVICE=png16m -dNOSAFER -r300 {filepath}'.format(gs_path=ghostscript_path, directory=directory, filepath=filepath) subprocess.check_output(cmd, cwd=cwd, shell=True) #def extract_tif_images(filepath, directory): # im = Image....")
  • 01:08, 25 May 2022 200.201.163.25 talk created page Python: Dictonary Object (Created page with "<pre> def obj_dic(d): top = type('new', (object,), d) seqs = tuple, list, set, frozenset for i, j in d.items(): if isinstance(j, dict): setattr(top, i, obj_dic(j)) elif isinstance(j, seqs): setattr(top, i, type(j)(obj_dic(sj) if isinstance(sj, dict) else sj for sj in j)) else: setattr(top, i, j) return top </pre>")
  • 18:28, 27 December 2021 200.201.163.25 talk created page Python: OpenCV Pepper and Salt Noise (Created page with "<pre> PYTHON OPENCV PEPPER AND SALT NOISE row,col,ch = crop_img.shape p = 0.5 a = 0.009 noisy = crop_img.copy() # Salt mode num_salt = np.ceil(a * crop_img.size * p) coords = [np.random.randint(0, i - 1, int(num_salt)) for i in crop_img.shape] noisy[coords] = 1 # Pepper mode num_pepper = np.ceil(a * crop_img.size * (1. - p)) coords = [np.random.randint(0, i - 1, int(num_pepper)) for i in crop_img.shape] noisy[coords] = 0 median_blur= cv2.medianBlur(noisy, 3) display...")
  • 02:05, 25 October 2021 200.201.163.25 talk created page CS: MyExtra (Created page with "Add reference to Attachmate EXTRA! 7.1 Object Library (Reference Manager -> COM) <pre> public class MyExtra { private EXTRA.ExtraSystem m_ExtraSystem; private...")
  • 23:54, 19 October 2021 200.201.163.25 talk created page Python: Flask Base (Created page with "app.py <pre> from flask import Flask, render_template app = Flask(__name__) @app.route('/') def hello(): return render_template("home.html", message="Hello Flask!") @...")