maandag 30 september 2013

experiment with layout

So, this is ordinary text. I will try to copy using Window's notepad as intermediair. So I will lose the layout-code that Word has.

De A4 tussen Amsterdam en Den Haag is maandagmiddag afgesloten geweest tussen Roelofarendsveen en Hoogmade.
Dat meldt Rijkswaterstaat.
De oorzaak was een eenzijdig ongeval ter hoogte van Hoogmade, waarbij een auto de vangrail in is gereden.
Rond 14.15 werd de weg door de politie vrijgegeven. De politie heeft onderzoek gedaan naar het ongeval.
Rond 13.30 uur stond er 5,5 kilometer file in de richting Den Haag. Automobilistenis  aangeraden om te rijden via de A44 richting Wassenaar. Ook op die weg is file ontstaan.

This was copied  from the command-window and pasted between <pre> and </pre> in the html-window:

Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.

C:\bladeRF-master\host\build\output\Debug>bladeRF-cli -h
Usage: bladeRF-cli 
bladeRF command line interface and test utility (0.4.0-git--dirty)

Options:
  -d, --device             Use the specified bladeRF device.
  -f, --flash-firmware       Flash specified firmware file.
  -l, --load-fpga            Load specified FPGA bitstream.
  -p, --probe                      Probe for devices, print results, then exit.
  -s, --script               Run provided script.
  -i, --interactive                Enter interactive mode.
  -L, --lib-version                Print libbladeRF version and exit.
  -v, --verbosity           Set the libbladeRF verbosity level.
                                   Levels, listed in increasing verbosity, are:
                                    critical, error, warning,
                                    info, debug, verbose
  -V, --version                    Print CLI version and exit.
  -h, --help                       Show this help text.

Notes:
  The -d option takes a device specifier string. See the bladerf_open()
  documentation for more information about the format of this string.

  If the -d parameter is not provided, the first available device
  will be used for the provided command, or will be opened prior
  to entering interactive mode.


C:\bladeRF-master\host\build\output\Debug>


Now I will try to paste some python-code and -output:


#!/usr/bin/env python
 
import usb
 
for bus in usb.busses():
  for dev in bus.devices:
    print "Bus %s Device %s: ID %04x:%04x %s" % (bus.dirname,dev.filename,dev.idVendor,dev.idProduct,dev.open().getString(1,30))

and the corresponding output:

Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>> 
>>> ================================ RESTART ================================
>>> 
>>> 


now some text from my Word-diary using Notepad as intermediair, pasted directly in the main-window, so not using the html-backdoor:


ecokees@ubuntu:~/sandbox/bladeRF/linux/apps$ sudo mkdir -p /opt/bladeRF/fpga
ecokees@ubuntu:~/sandbox/bladeRF/linux/apps$ sudo mkdir /opt/bladeRF/firmware
ecokees@ubuntu:~/sandbox/bladeRF/linux/apps$ sudo mkdir /opt/bladeRF/bin
ecokees@ubuntu:~/sandbox/bladeRF/linux/apps$
ecokees@ubuntu:~/sandbox/bladeRF/linux/apps$ sudo cp bin/bladeRF-cli /opt/bladeRF/bin
ecokees@ubuntu:~/sandbox/bladeRF/linux/apps$



Geen opmerkingen:

Een reactie posten