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

mardi 18 mars 2014

Google Voice Search not working with bluetooth topic




I'm currently on CM11 and noticed that Google voice search/Google Now does not take voice input when Bluetooth is connected.

Is this a 4.4.2 or CM11 issue?

Sent from my LG-LS970 using xda app-developers app





Re: Find and replace multiple RegEx search expressions topic




Jignesh Sutar wrote:

> Hi,
>
> I'm trying to delete contents of a .txt log file, matching on multiple
> re.sub criteria but not sure how to achieve this.
>
> Below is an illustration of what I am trying to achieve (of course in this
> example I can combine the 3 re.sub into a single re expression but my
> actual code will have a dozen plus expression I need to match on so easier
> to keep them separate). Only the last re.sub will take effect in the
> example below I need all 3 to take effect.
>
>
> import re
> o = open(r"c:\temp\outputfile.txt","w")
> data = open(r"C:\Temp\infile.txt").read()
> o.write( re.sub(".*<X> ","",data) )
> o.write( re.sub(".*<Y> ","",data) )
> o.write( re.sub(".*<Z> ","",data) )
> o.close()


Apply all substitutions to data before you write the result to the file:

with open(infile) as f:
data = f.read()

for expr in list_of_regexes:
data = re.sub(expr, "", data)

with open(outfile, "w") as f:
f.write(data)







Find and replace multiple RegEx search expressions topic




Hi,

I'm trying to delete contents of a .txt log file, matching on multiple
re.sub criteria but not sure how to achieve this.

Below is an illustration of what I am trying to achieve (of course in this
example I can combine the 3 re.sub into a single re expression but my
actual code will have a dozen plus expression I need to match on so easier
to keep them separate). Only the last re.sub will take effect in the
example below I need all 3 to take effect.


import re
o = open(r"c:\temp\outputfile.txt","w")
data = open(r"C:\Temp\infile.txt").read()
o.write( re.sub(".*<X> ","",data) )
o.write( re.sub(".*<Y> ","",data) )
o.write( re.sub(".*<Z> ","",data) )
o.close()


Thanks in advance.
Jignesh






vendredi 21 février 2014

Can I add a Mag Glass Search to my Moto X Soft Keys? topic




I have an unlocked rooted VZ Dev Ed with Xposed and Gravity Box and Ultimate Nav Bar module. But I still can't figure out how to add a magnifying glass to my stock soft keys. Ultimate Nav Bar only seems to give me yet another Nav Bar that pops up when I press the trigger but doesn't replace my existing soft keys. Maybe I'm not setting up Ultimate Nav Bar correctly?


I like having persistent softkeys or at least ones that are easily accessible with a swipe up. (Although swiping up from the bottom seems to trigger Google Now so I set Ultimate Nav bar to be triggered by a press on the right instead of a swipe.)

I prefer the stock softkeys to Ultimate Nav Bar anyway. I did add the three dots menu to my stock softkeys but I would also like to add the magnifying glass for search. Is this possible? If not, how do I completely replace the stock softkeys with Ultimate Navbar?





Remove Google Now search bar from N5 beta 6 Home screen ? topic




That's it..

I don't want to disable or remove Google now completely..just the search bar..

I also do not want a custom launcher..

Is there a way I can do it without those ?

Ooor plans to make it a toggle able feature in the future ?





mercredi 19 février 2014

How to disable google voice search? topic




So, still haven't figured out how to disable the annoying google voice search so i can long-press my headset button to rewind music?





jeudi 30 janvier 2014

[Q] T9 dialer with search in company name topic




i´m looking for a T9 dialer with a search in company name.

I tried alot now and they only search in "Name" and "Lastname"

I can not put company name in "Name" and "Lastname" field, because the contacs come from a CRM server.

Can somebody help ?





jeudi 23 janvier 2014

SQLite + FTS (full text search) topic




Hi,

On my Debian stable 64-bit system, SQLite3 has FTS (full text search) enabled (although at version 3 rather than the recommended version 4):

Python 3.2.3 (default, Feb 20 2013, 14:44:27) [GCC 4.7.2] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> import sqlite3
>>> con = sqlite3.connect(":memory:")
>>> cur = con.execute("pragma compile_options")
>>> for row in cur:

print(row)
....
('ENABLE_FTS3',)
....

But on Windows when I use the official Python 3.3 32-bit binary from www.python.org this is not enabled.

My guess is that on Debian, the packagers install a full SQLite 3 and the Python package uses that. But on Windows I think the Python packagers bundle their own SQLite (quite rightly since it might not already be installed).

I'd like the Windows binary to include SQLite 3 with FTS4 support, but I don't know how much work that involves or if it would make the Python .msi file too big?

Anyway, I guess if anyone else is interested in this they could perhaps reply to indicate this?

If you're curious about the feature, it is documented here:
http://www.sqlite.org/fts3.html