Installing the new Google Now Launcher (on any Android device) Hardware and Software Hardware Mobile and Wearables by happygeek … recently when the renamed Google Now Launcher (GNL) appeared in the Play Store as a standalone… their third party launchers at the altar of GNL. However, that said, if you (like me… Police have set up a mirror for the GNL files (ripped from the Nexus 5 updates) …you change your mind you can uninstall the GNL by going to the Apps section of settings… How to create tabs in a file?? Programming Software Development by joe82 …68 87 31017559 31017578 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111…63 86 35247737 35247714 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111…64 87 40549054 40549031 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|…63 86 42462636 42462659 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|… Re: How to create tabs in a file?? Programming Software Development by joe82 …get separated by "|" My first column is :gnl|dbSNP|rs13484116 second column: gi|62750812|ref|NC_005111.2|NC_005111… ( which has tabs exactly as i explained above) gnl|dbSNP|rs13484116 gi|62750812|ref|NC_005111.2|NC_005111 100 16…31017578 4.4 32.3 and result file is: gnl|dbSNP|rs13484116 gi|62750812|ref|NC_005111.2|NC_005111 95 … Re: How to create tabs in a file?? Programming Software Development by Ene Uran …from a file data = """\ gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 95 …68 87 31017559 31017578 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|…63 86 35247737 35247714 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|…64 87 40549054 40549031 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|… Re: How to create tabs in a file?? Programming Software Development by joe82 … above code my output file is in the format:[/COLOR] gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 95 20… 1 0 68 87 31017559 31017578 4.4 32.3 gnl|dbSNP|rs13484118 gi|62750812|ref|NC_005111.2|NC_005111 91.67… how to parse a file with columns we want in each line?? Programming Software Development by joe82 …, my file has many long lines witth 12 ccolumns like: gnl|dbS|13484118 gi|62750812 100 16 .......around 12 columns… gnl|dbS|13484888 gi|62750812 95 20 ....... gnl|dbS|22484118 gi|62750812 92 20 .......... I… Re: how to parse a file with columns we want in each line?? Programming Software Development by joe82 …print line [/code] and here is result: ['gnl|dbSNP|rs13484118', 'gi|62750812|ref|NC_005111.2|NC_005111…87', '31017559', '31017578', '4.4', '32.3'] ['gnl|dbSNP|rs13484118', 'gi|62750812|ref|NC_005111.2|NC_005111', '92', …86', '42462636', '42462659', '4.4', '32.3'] ['gnl|dbSNP|rs13484118', 'gi|62750812|ref|NC_005111.2|NC_005111', '95', … Re: how to parse a file with columns we want in each line?? Programming Software Development by joe82 … please suggest something I want my outputfile to be like: gnl|dbS|13484888 gi|62750812 [COLOR="red"]95[/COLOR…] 20 ....... gnl|dbS|22484118 gi|62750812 [COLOR="red"]92[/COLOR… Re: how to parse a file with columns we want in each line?? Programming Software Development by jlm699 … I want my outputfile to be like: gnl|dbS|13484888 gi|62750812 95 20 ....... gnl|dbS|22484118 gi|62750812 92 20 ......... lines… drop down menu problem Programming Web Development by jay64 …; height="32" width="4" id="gnl"> <img alt="" src="glbnav_right… font sizes do not render properly in IE Digital Media UI / UX Design by shanenin …; background-image: url(glbnav_background.gif); } #globalNav img{ margin-bottom: -4px; } #gnl { position: absolute; top: 0px; left:0px; } #gnr { position: absolute; top… form dont post anything Programming Web Development by aaraf …; height="32" width="4" id="gnl" /> <img alt="" src="glbnav_right… C# and SQL connections Programming Software Development by gnl74 … the db. What is the best way to proceed? Thanks! gnl Reporting errors Programming Web Development by gnl74 … have an idea on how to solve these errors? Thanks!!! GNL Error 179 The type 'Microsoft.Reporting.WebForms.ReportViewer' exists in… Re: help with setinterval in Chrome Programming Web Development by azegurb i tried. i put asunc to true. but nothink changed. even in firefox didnt work. i tried it with empty document like below. <!Doctype HTML> <html> <head> <script type="text/javascript"> // wrapper for locals function yoxi(){ var xhr = new XMLHttpRequest();… Re: Installing the new Google Now Launcher (on any Android device) Hardware and Software Hardware Mobile and Wearables by creamtown Yeah, Kitkat is required here given that the first device that has that "OK Google" feature is Nexus 5 (Moto X is an exception given that it has some specific M8 co-processor). Hopefully, that "Ok GOogle" feature will arrive on all smartphones with Kitkat, even the ones with KitKat custom ROM. Re: Installing the new Google Now Launcher (on any Android device) Hardware and Software Hardware Mobile and Wearables by Yasar_2 Nice Discussion. Re: How to create tabs in a file?? Programming Software Development by lllllIllIlllI Well you can write a tab by using the escape character and t. So if you were writing a tab to a file you would go something like this: [code=python] f = open("File.txt",'w') f.write("\t This will be indented one tab space!") f.close() [/code] So the \t is the escape sequence used to indicate a tab. Hope that helps :) Re: How to create tabs in a file?? Programming Software Development by baki100 you can try this [code=python] from __future__ import with_statement fil = open('C:\\Documents and Settings\\Desktop\\file2.txt','rb') resultfile = open('C:\\Documents and Settings\\Desktop\\j3.txt','wb') for line in fil: if len(line.split('|')) >= 3: i = float(line.split('|')[2]) if 90 <= i < 100:… Re: How to create tabs in a file?? Programming Software Development by joe82 Thank you....:) Re: how to parse a file with columns we want in each line?? Programming Software Development by jlm699 Here's how to open a file for reading and iterate over it: [code=python] f = open(my_file) for line in file: # Do something to each line f.close() [/code] Here's how to split a string : [code=python] >>> my_text = "Here'ssomeTExt WithSomeMoreOver Here and then some more" >>> my_text.split() ["Here'ssomeTExt&… Re: how to parse a file with columns we want in each line?? Programming Software Development by joe82 hi jlm699, I am not able to do do it in this away can you please give me the right code?? many thanks..!! Re: how to parse a file with columns we want in each line?? Programming Software Development by jlm699 [QUOTE=joe82;906724]I am not able to do do it in this away[/QUOTE] Why not? Show me the code you've created and describe the error that you get and I will gladly help you resolve it. Re: how to parse a file with columns we want in each line?? Programming Software Development by joe82 [QUOTE=jlm699;906781]Why not? Show me the code you've created and describe the error that you get and I will gladly help you resolve it.[/QUOTE] from __future__ import with_statement with open ('C:\\Documents and Settings\\Desktop\\file2.txt') as fil: f = fil.readlines for line in f: line.split() for text in … Re: how to parse a file with columns we want in each line?? Programming Software Development by jlm699 In the future please use code tags when pasting code in this forum as it makes your code more readable and thus more people will be willing to read your post and answer your question. Here's how to use code tags: [noparse][code=python] # Put your code inside here [/code][/noparse] Now here's what your code would look like had you used code… Re: how to parse a file with columns we want in each line?? Programming Software Development by joe82 [code=python] from __future__ import with_statement with open ('C:\\Documents and Settings\\jguleria\\Desktop\\file2.txt') as fil: f = fil.readlines() for line in f: line = line.split() for line[2] in line: if i in range(90, 100): print line #result = line [/code] I want to do… Re: how to parse a file with columns we want in each line?? Programming Software Development by jlm699 [QUOTE=joe82;906858][code=python]from __future__ import with_statement with open ('C:\\Documents and Settings\\jguleria\\Desktop\\file2.txt') as fil: f = fil.readlines() for line in f: line = line.split() for line[2] in line: if i in range(90, 100): print line[/code] I want to do something like … Re: how to parse a file with columns we want in each line?? Programming Software Development by joe82 Thank you very much for help, i am getting that you do not want to feed me but helping me to learn as well..:) My current code is: [code=python] from __future__ import with_statement with open ('C:\\Documents and Settings\\Desktop\\file2.txt') as fil: f = fil.readlines() for line in f: line = line.split()… Re: how to parse a file with columns we want in each line?? Programming Software Development by jlm699 [QUOTE=joe82;906890][code=python]from __future__ import with_statement with open ('C:\\Documents and Settings\\Desktop\\file2.txt') as fil: f = fil.readlines() for line in f: line = line.split() i = float(line[2]) if i in range(90, 99.99): print line[/code] It gave me an error message: IndexError: list … Re: how to parse a file with columns we want in each line?? Programming Software Development by The_Kernel If you're getting an IndexError it means the location you're referencing in the list doesn't exist. You assume each line has at least three columns, however I'd bet there's an empty line in there that's screwing you up. It's easy to fix in any case. Just check that the length of the list is at least three. Here's you're code, plus the fix: [code=…