Thanks to antville.org
Saturday, 30. March 2019
schema conversion tool

This seems to be a useful tool to convert mysql or oracle schema to redshift. select queries can also be migrated easily using...

www.sqlines.com

... Link (0 comments) ... Comment


Tuesday, 26. March 2019
Install packetbeat

In order to install packetbeat, you may need to change the windows security setting.

C:\packetbeat> Set-ExecutionPolicy

Supply values for the following parameters:
ExecutionPolicy: unrestricted

Now you can install packetbeat using...
C:\packetbeat> .\install-service-packetbeat.ps1

... Link (0 comments) ... Comment


Sunday, 17. March 2019
python itertools module

from itertools import groupby
s = 'abcccccbba'

for w, v in groupby(s):
print (''.join(w), ''.join(v))

a a
b b
c ccccc
b bb
a a

... Link (0 comments) ... Comment


Saturday, 16. March 2019
audio visual modules for Machine Learning

Here is the list of some of the modules used for audio-visual processing using deep learning.

chroma: Feature Learning for Chord Recognition: The Deep Chroma Extractor
MFCC: Mel-frequency cepstral coefficients (MFCCs) are coefficients that collectively make up an MFC
TCD-TIMIT: An Audio-Visual Corpus of Continuous Speech
librosa
RBF: Radial Basis Function
HMM: Hidden Markov Model
VGG: Resnet 50
voxceleb-luigi: Luigi pipeline to download VoxCeleb audio from YouTube and extract speaker segments
deepfakes
obamanet
yolo

... Link (0 comments) ... Comment


Tuesday, 8. January 2019
google module

module for google search

!pip install google

from googlesearch import search
for url in search('"Breaking Code" WordPress blog', stop=10):
print(url)

... Link (0 comments) ... Comment


Wednesday, 26. December 2018
Python date and time

from datetime import datetime
date_string = "21 June, 2018"
date_object = datetime.strptime(date_string, "%d %B, %Y")

... Link (0 comments) ... Comment


Sunday, 16. December 2018
Infer types in pandas

This will return the mixed datatypes but this can be slow.

df.applymap(type).nunique() > 1

Better approach pythonic approach would be...

from pandas.api.types import infer_dtype

infer_dtype(df.A)
'mixed-integer'

df.apply(lambda x: 'mixed' in infer_dtype(x))

... Link (0 comments) ... Comment


Sunday, 4. November 2018
Extract words from Marathi wikipedia

1) Download the polyglot pickled marathi model
wget bit.ly
mv 12FI1xV polyglot-mt.pkl

2) Extract all the words from the embedding

from polyglot.mapping import Embedding
embeddings=Embedding.load("polyglot-mt.pkl")
with open('myfile.txt', 'w') as fx:
for i in embeddings.vocabulary:
fx.write(i.encode('utf-8')+'\n')

3) Download the wordlist:
s3.amazonaws.com

... Link (0 comments) ... Comment


Monday, 10. September 2018
Google Input tools

Google suddenly stopped download of Input Tools package without giving any reason. And here is official response by Google:
We have been in touch with the Google Input Tools team and have confirmed that the Windows application is no longer available for download or installation. Instead, the team recommends you install the Google Input Tools Chrome extension as an alternative.

This is not expected from a company like google.

... Link (0 comments) ... Comment


Saturday, 18. August 2018
Python objects and methods

Here are important python objects and their methods
int mul, add, eq, ge, mod, pow
float .isinteger()
string .upper(), .endswith(), .split()
bool .numerator .abs()
list .append, .pop, _len
() / slicing
tuple
dict .items(), .keys(), .values() / slicing
pd.Series .sum(), .stack(), .groupby(), .resample(), .sort_values(), .sort_index(), .iloc
pd.DataFrame

... Link (0 comments) ... Comment


Online for 6084 days
Last modified: 3/30/19 6:52 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
April 2019
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
282930
March
Recent updates
schema conversion tool This seems
to be a useful tool to convert mysql or oracle...
by shantanuo (3/30/19 6:52 AM)
Install packetbeat In order to
install packetbeat, you may need to change the windows security...
by shantanuo (3/26/19 8:01 AM)
python itertools module from itertools
import groupby s = 'abcccccbba' for w, v in groupby(s):...
by shantanuo (3/17/19 3:22 PM)
audio visual modules for Machine
Learning Here is the list of some of the modules...
by shantanuo (3/16/19 1:08 PM)
google module module for google
search !pip install google from googlesearch import search for url...
by shantanuo (1/8/19 10:38 AM)
Python date and time from
datetime import datetime date_string = "21 June, 2018" date_object =...
by shantanuo (12/26/18 12:14 PM)
Infer types in pandas This
will return the mixed datatypes but this can be slow....
by shantanuo (12/16/18 3:50 PM)
Extract words from Marathi wikipedia
1) Download the polyglot pickled marathi model wget http://bit.ly/12FI1xV mv...
by shantanuo (11/4/18 10:06 AM)
Google Input tools Google suddenly
stopped download of Input Tools package without giving any reason....
by shantanuo (9/10/18 7:44 AM)
Python objects and methods Here
are important python objects and their methods int __mul__, __add__,...
by shantanuo (8/18/18 3:11 PM)
JSON to DF Here is
how to read a JSON file into pandas dataframe. import...
by shantanuo (8/8/18 1:12 PM)
managing servers using python Fabric
is a high level Python library designed to execute shell...
by shantanuo (8/4/18 10:01 AM)
backup mysql users It is
easy to backup mysql users - wget percona.com/get/pt-show-grants; perl pt-show-grants
by shantanuo (5/20/18 3:42 PM)
About python 1 everything is
an object (class instances) 2 methods depends upon class of...
by shantanuo (5/20/18 2:52 PM)
mysql and shell command date
-d"-1 day ago" +'%b%d' equals to mysql -Bse"select date_format(date(date_add(now() ,...
by shantanuo (5/16/18 7:47 AM)
Preserving comments in Stored Procedure
You can write multi line comments in a stored procedure...
by shantanuo (5/12/18 12:56 PM)
Custom slack command Here are
5 steps to add any API to your slack channel....
by shantanuo (4/25/18 6:59 AM)
stack bookmarklet This bookmarklet will
help to quickly access stack pages linking to current page...
by shantanuo (1/10/18 10:47 AM)
Manage S3 like rsync ####
create bucket aws s3 mb s3://johntest123/ #### rsync all files...
by shantanuo (12/22/17 12:04 PM)
apache docker container issues If
apache docker container does not start then make these changes......
by shantanuo (11/10/17 3:00 PM)
Install aws client on centos
If pip is not installed, then the following command will...
by shantanuo (10/26/17 9:51 AM)
Managing Amazon keys Use this
command to convert private key to public key. ssh-keygen -y...
by shantanuo (10/9/17 7:04 AM)
percona utility We can re-create
mysql users using the percona utility. wget percona.com/get/pt-show-grants chmod 777...
by shantanuo (9/6/17 8:22 AM)
mail merge separate file per
record Microsoft Word has an excellent feature called Mail-Merge. If...
by shantanuo (7/6/17 12:09 PM)
find dead processes The 8th
column of ps aux command will list the status of...
by shantanuo (5/28/17 7:39 AM)

RSS feed

Made with Antville
Helma Object Publisher