I use KDE and klipper the KDE clipboard manager. While it's nice that klipper
allows me to select which of the clipboard entries to use it doesn't meet some
common usage scenarios.
A common case is where I recursively grep a source tree and then edit files.
In that case I want to use the file name as a parameter to my editor and then
the grep term to tell the editor what to search for. It would be really handy
if I could have a paste operation that also deleted that entry from the
clipboard history so that the next paste operation would be the search term.
For example if I do "grep -R foo src" and it tells me that
src/lib/whatever.cpp has the entry I'd like to do a single operation (maybe
ALT-middle-click or something) that pastes "src/lib/whatever.cpp" and then
leaves "foo" at the top of the stack of clipboard entries to paste.
Does anyone know if this is possible without writing my own clipboard manager?
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
For broadand access I currently use Virgin mobile broadband prepaid. For
various reason I am trying set up via another ISP/telco, in this case
mcmedia (shepparton) now basicly Bendigo Telco.
Both ISP/telco's use Optus I swapped the sims over in the modem dongle and
the following error occured.....
plog command.....
Oct 23 04:33:36 wolfdualp3 chat[3207]: ATD*99#^M^M
Oct 23 04:33:36 wolfdualp3 chat[3207]: CONNECT
Oct 23 04:33:36 wolfdualp3 chat[3207]: -- got it
Oct 23 04:33:36 wolfdualp3 chat[3207]: send ()
Oct 23 04:33:36 wolfdualp3 pppd[3206]: Serial connection established.
Oct 23 04:33:36 wolfdualp3 pppd[3206]: Using interface ppp0
Oct 23 04:33:36 wolfdualp3 pppd[3206]: Connect: ppp0 <--> /dev/ttyUSB0
Oct 23 04:33:37 wolfdualp3 pppd[3206]: PAP authentication succeeded
Oct 23 04:33:38 wolfdualp3 pppd[3206]: Hangup (SIGHUP)
Oct 23 04:33:38 wolfdualp3 pppd[3206]: Modem hangup
Oct 23 04:33:38 wolfdualp3 pppd[3206]: Connection terminated.
Oct 23 04:33:39 wolfdualp3 pppd[3206]: Exit.
Now this is exactly what happens when I run out of data with Virgin.
Below is a successfull connection via Virgin.........
Oct 23 06:12:16 wolfdualp3 chat[3851]: OK^M
Oct 23 06:12:16 wolfdualp3 chat[3851]: ATD*99#^M^M
Oct 23 06:12:16 wolfdualp3 chat[3851]: CONNECT
Oct 23 06:12:16 wolfdualp3 chat[3851]: -- got it
Oct 23 06:12:16 wolfdualp3 chat[3851]: send ()
Oct 23 06:12:16 wolfdualp3 pppd[3850]: Serial connection established.
Oct 23 06:12:16 wolfdualp3 pppd[3850]: Using interface ppp0
Oct 23 06:12:16 wolfdualp3 pppd[3850]: Connect: ppp0 <--> /dev/ttyUSB0
Oct 23 06:12:17 wolfdualp3 pppd[3850]: PAP authentication succeeded
Oct 23 06:12:19 wolfdualp3 pppd[3850]: Could not determine remote IP
address: defaulting to 10.64.64.64
Oct 23 06:12:19 wolfdualp3 pppd[3850]: Cannot determine ethernet address
for proxy ARP
Oct 23 06:12:19 wolfdualp3 pppd[3850]: local IP address 1.178.127.230
Oct 23 06:12:19 wolfdualp3 pppd[3850]: remote IP address 10.64.64.64
From my investigations the config for ppp set up does not need to be
changed. I have been assured Bendigo Telco has there end set up correctly.
In my case the config is hand edit chatscript and ppp/peers
Chatscript
ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK AT+CGDCONT=1,"ip","VirginBroadband"
OK "ATE1V1&D2&C1S0=0+IFC=2,2"
OK "AT+IPR=115200"
OK "ATE1"
TIMEOUT 60
"" "ATD*99#"
CONNECT \c
ppp/peers/bendigo
#debug
/dev/ttyUSB0
crtscts
#modem
refuse-chap
require-pap
noauth
#nodetach
#usepeerdns
defaultroute
noipdefault
noccp
nobsdcomp
novj
user "irrelevant"
password "irrelevant"
connect "/usr/sbin/chat -v -f /etc/chatscripts/virgin"
Under advice from a couple of websites the chatscript was change to...
ABORT BUSY
ABORT ERROR
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "ATZ"
OK "AT&F"
OK "AT_OPSYS=1"
OK AT+CGDCONT=1,"ip","connect"
SAY "Calling...\n"
TIMEOUT 60
"" "ATD*99#"
CONNECT \c
This behave the sameway
It is beginning to appear the sim may be faulty, bendigo telco say the
service should work.
Anyone have any ideas?
Lindsay
An upgrade of the LUV server from Debian/Wheezy to Debian/Jessie last night
didn't go as planned. Sorry for the inconvenience.
Everything SHOULD be working correctly now. If anything doesn't work then
please let me know.
I'll blog about how it happened when I get some spare time.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
Hi,
I have set up a postgis database (PostgreSQL 9.3.6 on currently
updated open Suse) and am trying to import some third party csv file.
I did some basic sql a long time ago, but I was never an expert, and am
now rusty :)
In my "CREATE TABLE" command I am defining about 50 attributes /
columns. Two of them are:
ACCIDENT_DATE date,
ACCIDENT_TIME time,
My csv files generally have date and time values, but there are a
number of NULL values represented as --,"",--
I expected / hoped that these would be imported as NULL values, but
when I run the copy command, I get the error message -
ERROR: invalid input syntax for type time: ""
Can someone help me to get the empty double quoted value accepted as a
NULL value for date and for time?
TIA
sql command:
copy crashes FROM '/ACCIDENT.CSV' DELIMITER ',' CSV;
Data Sample with "" time:
"ACCIDENT_NO","ACCIDENT_DATE","ACCIDENT_TIME","ACCIDENT_TYPE","DAY_OF_WEEK","DCA_CODE","LIGHT_CONDITION","NO_PERSONS","NO_PERSONS_KILLED","NO_PERSONS_INJ_2","NO_PERSONS_INJ_3","NO_PERSONS_NOT_INJ","NO_OF_VEHICLES","POLICE_ATTEND","ROAD_GEOMETRY","SEVERITY","SPEED_ZONE","IMAGE_NO_DIGIT","IMAGE_NO_FRAME","IMAGE_RUN_NO","NODE_ID","LOCATION_TYPE","LOCALS_INVOLVED","NODE_ID","NODE_TYPE","LOCATION_TYPE","LOCATED_MIDPOINT","COMPLEX_INT_NO","AMG_X","AMG_Y","ROAD_NAME_1","ROAD_TYPE_1","ROAD_DESC_1","ROAD_ROUTE_1","ROAD_NAME_2","ROAD_TYPE_2","ROAD_DESC_2","ROAD_NAME_3","ROAD_TYPE_3","ROAD_DESC_3","DISTANCE_LOCATION","DIRECTION_LOCATION","NEAREST_KM_POST","OFF_ROAD_LOCATION","DIRECTORY","EDITION","PAGE","GRID_REFERENCE_X","GRID_REFERENCE_Y","LGA_NAME","REGION_NAME","UNKNOWN"
"W1990000191","1989-12-19","","5",3,"183","5",1,0,1,0,0,1,"1","5","2","100",1518,1517,1050,18378,"N","Y",18378,"N","N","Y",0,648329.25,5958402,"GREAT
ALPINE","ROAD","",4005,"UNNAMED","","","MCILROY
RAE","ROAD","",73,"S",,"","VCD","ED7","35","C","9","ALPINE","NORTH EASTERN REGION",0
"P1990028638","1990-07-19","18:00:00","4",5,"183","5",1,0,0,1,0,1,"1","5","3","100",1828,1827,1086,18378,"N","Y",18378,"N","N","Y",0,648329.25,5958402,"GREAT
ALPINE","ROAD","",4005,"UNNAMED","","","MCILROY
RAE","ROAD","",73,"S",,"","VCD","ED7","35","C","9","ALPINE","NORTH EASTERN REGION",0
"P1990029504","1990-08-15","15:45:00","1",4,"130","1",7,0,0,4,3,2,"1","5","3","60",146,144,1097,18383,"N","N",18383,"N","N","N",0,654588.610512537,5951870.61325035,"MYRTLEFORD-YACKANDANDAH","ROAD","",5467,"MUMMERY","ROAD","","ODONNELL","AVENUE","",36,"SW",,"","VCD","ED7","660","C","3","ALPINE","NORTH
EASTERN REGION",0
"P1990039075","1990-10-26","00:15:00","4",6,"181","5",4,0,1,3,0,1,"2","5","2","100",1666,1665,1102,18398,"N","Y",18398,"N","N","N",0,652283.479975146,5950175.41617511,"MERRIANG","ROAD","",177824,"TONIAZZO","LANE","","CRAMERI","LANE","",118,"NW",,"","VCD","ED7","49","D","3","ALPINE","NORTH
EASTERN REGION",0
I have found the cause of the DKIM problems. When Mailman unfolds and refolds
the DKIM-Signature header it replaces tabs with spaces. This makes the
difference between a message that passes according to /usr/bin/dkimproxy-verify
(part of the libmail-dkim-perl package) and one that fails.
Is anyone here any good at Python who can have a look at this? Some special
case code to use tabs for the DKIM-Signature header should solve these
problems without causing any other problems.
Note that a problem that was reported in the past was Mailman replacing spaces
with tabs when folding the Subject header. Obviously we don't want to
regenerate that problem so changing the behavior of all headers would be a bad
thing.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
Who's interested in hands on training in basic Unix shell commands and sysadmin skills?
Similar format to the mail server training but covering more beginner stuff.
--
Sent from my Samsung Galaxy Note 3 with K-9 Mail.
"There is no human right to patent protection. The right to protection
of moral and material interests cannot be used to defend patent laws
that inadequately respect the right to participate in cultural life, to
enjoy the benefits of scientific progress and its applications, to
scientific freedoms and the right to food and health and the rights of
indigenous peoples and local communities."
<https://www.techdirt.com/articles/20151013/09390532525/there-is-no-human-ri…>
Looks like an interesting report.
Cheers,
Andrew