Affichage des articles dont le libellé est line. Afficher tous les articles
Affichage des articles dont le libellé est line. Afficher tous les articles

mercredi 26 mars 2014

regex line by line over file topic




I can't get this to work.
It runs but there is no output when I try it on a file.


#!/usr/bin/python

import os
import sys
import re
from datetime import datetime

#logDir = '/nfs/projects/equinox/platformTools/RTLG/RTLG_logs';
#os.chdir( logDir );

programName = sys.argv[0]
fileName = sys.argv[1]

#pattern = re.compile('\s*\"SHELF-.*,SC,.*,:\"Log Collection In Progress\"')
re.M
p = re.compile('^\s*\"SHELF-.*,SC,.*,:\\"Log Collection In Progress\\"')
l = ' "SHELF-17:LOG_COLN_IP,SC,03-25,01-18-58,NEND,NA,,,:\"Log Collection In Progress\",NONE:1700000035-6364-1048,:YEAR=2014,MODE=NONE"'

# this works :-)
m = p.match( l )
if m:
print( l )

# this doesn't match anything (or the if doesn't work) :-(
with open(fileName) as f:
for line in f:
# debug code (print the line without adding a linefeed)
# sys.stdout.write( line )
if p.match(line):
print(line)


The test file just has one line:
"SHELF-17:LOG_COLN_IP,SC,03-25,01-18-58,NEND,NA,,,:\"Log Collection In Progress\",NONE:1700000035-6364-1048,:YEAR=2014,MODE=NONE"





vendredi 7 mars 2014

help you edit one line of the file framework-res.apk topic




Edit them res> values​​> dimens.xml
<dimen name="status_bar_height"> 25.0dip </ dimen>
the
<dimen name="status_bar_height"> 30.0dip </ dimen>

download
mediafire.com/?dz7r1vdb99uferi





vendredi 21 février 2014

[Q] Command line in android topic




I have installed a command line app on my android .
It runs Linux commands , just need info on command line capabilities and some syntax .
Thanks





lundi 27 janvier 2014

Google to kill of nexus line ? topic




I was reading an article that google will kill off the nexus line in 2015. Is this true ? If so, what are you're opinions on this matter ?