Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Issue this command to terminal with your device connected : | |
$ adb shell pm list packages | |
If that doesn't work, then: | |
$ adb shell | |
$ su | |
$ pm list packages |
public async Task<string> GetResponseAsStringAsync(HttpWebRequest webRequest, string post = null) | |
{ | |
if (post != null) | |
{ | |
webRequest.Method = "POST"; | |
using (Stream postStream = await webRequest.GetRequestStreamAsync()) | |
{ | |
byte[] postBytes = Encoding.ASCII.GetBytes(post); | |
await postStream.WriteAsync(postBytes, 0, postBytes.Length); | |
await postStream.FlushAsync(); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
im=Image.open("1.jpg") | |
#im=im.rotate(1) | |
im.save("e.jpg") | |
im2=im.convert("L") | |
im2.save("b.jpg") | |
threshold = 100 | |
im = im2.point(lambda p: p > threshold and 255) | |
im.save("d.jpg") | |
img="d.jpg" | |
result = tesseract.ProcessPagesWrapper(img,api) |
#include <stdio.h> | |
#pragma pack(push) | |
#pragma pack(1) | |
struct { | |
char a; | |
int b; | |
char c; | |
} packed; | |
#pragma pack(pop) |