Thanks to antville.org
Wednesday, 8. September 2021
python module itertools

list of useful methods of itertools module.

permutations
combinations
combinations_with_replacement
zip_longest
count
repeat
cycle
accumulate
product
groupby
tee
isslice
chain
chain.from_iterable
filterfalse
dropwhile

https://realpython.com/python-itertools/

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


Friday, 20. August 2021
Duration/Term of Copyright

In the case of original literary, dramatic, musical and artistic works, the duration of copyright is the lifetime of the author or artist, and 60 years counted from the year following the death of the author.

In the case of cinematograph films, sound recordings, photographs, posthumous publications, anonymous and pseudonymous publications, works of government and works of international organizations are protected for a period of 60 years which is counted from the year following the date of publication.

https://www.mondaq.com/india/licensing-syndication/406982/copyright-law-in-india

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


Friday, 23. July 2021
wikipedia tools

1) Collection of useful utilities
https://wikipediatools.appspot.com/

2) all history of a user
https://xtools.wmflabs.org/ec/mr.wikisource.org/Shantanuo

3) Category analysis
https://petscan.wmflabs.org/

4) wikisource google OCR
https://ws-google-ocr.toolforge.org/

5) Bug tracking
https://phabricator.wikimedia.org/T285590

6) Collection of good tools
https://magnustools.toolforge.org/

7) Convert multiple jpg files into a single pdf
https://smallpdf.com/jpg-to-pdf

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


Monday, 21. December 2020
Preserve seeds

6 types of seeds to be preserved for next season.

1) laal Mula

https://www.amazon.in/dp/B00KT01RVW/?coliid=I1WI3HXWHH5C3P&colid=RHNWRLPIY54W&psc=1&ref_=lv_ov_lig_dp_it

2) Ramphal

https://www.amazon.in/dp/B00KTG8KQ6/?coliid=I3GKU4J9VLPZ6O&colid=RHNWRLPIY54W&psc=1&ref_=lv_ov_lig_dp_it

3) Jam

https://www.amazon.in/dp/B07P4CG6P6/?coliid=I2QCD5193LP05G&colid=RHNWRLPIY54W&psc=1&ref_=lv_ov_lig_dp_it

4) Badishep

https://www.amazon.in/dp/B00KT05LRI/?coliid=IHNBVW3S3K1K6&colid=RHNWRLPIY54W&psc=1&ref_=lv_ov_lig_dp_it

5) Galgal

https://www.amazon.in/dp/B075PWXHZH/?coliid=I2PNDX5UW6T9WG&colid=RHNWRLPIY54W&psc=1&ref_=lv_ov_lig_dp_it

6) Chinese cabbage

https://www.allthatgrows.in/products/chinese-cabbage

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


Thursday, 17. December 2020
Why do I care for Linux?

I don't care that much for other software. Linux is more than a kernel or an operating system. It is a symbol money does not rule everything. You don't pay for Linux. You don't have to watch ads when using it. In return, please be a little more friendly and tolerant to the people who build it. While Linux is built by professionals today, there is more heart and soul poured into it than in other operating systems.

http://beza1e1.tuxen.de/my_linux_history.html

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


Sunday, 12. April 2020
important leafy vegetables

1. Amaranthus caudatus: rajgira.
2. Amaranthus tricolor: Math.  (Chhoti Chulai- Hindi, Cheera- Malayalam)
3. Amarnthus blitum: tamda math.
4. Amaranthus oleracea: tandulja.

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


Saturday, 11. April 2020
program creek

program creek seems to be a good site for handy references of python modules. For e.g. when I wanted to know how to use Stratified Shuffle module, the examples shown on this page were very useful.

https://www.programcreek.com/python/example/91149/sklearn.model_selection.StratifiedShuffleSplit

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


Standard out to a file

This code will change the standard out to a file so that jupyter notebook cell's responses are saved to a file.

import sys
oldStdout = sys.stdout
file = open('logFile', 'w')
sys.stdout = file

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


Thursday, 20. February 2020
Create config file for AWS command line tool

While creating amazon config file in a shell script, use cat with heredoc like this..

cat > myconfigfile.txt << "heredoc"
[default]
aws_access_key_id=XXX
aws_secret_access_key=XXX
region=us-east-1
heredoc

export AWS_CONFIG_FILE=./myconfigfile.txt

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


setting colors in pandas

This is how to set the colors in pandas

mapper = {v: k for k, v in enumerate(colors.unique())}

ccolors.cat.reorder_categories(mapper).cat.codes

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


Online for 6971 days
Last modified: 9/8/21, 7:50 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
September 2021
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
2627282930
August
Recent updates
python module itertools list of
useful methods of itertools module. permutations combinations combinations_with_replacement zip_longest count...
by shantanuo (9/8/21, 7:50 AM)
wikipedia tools 1) Collection of
useful utilities https://wikipediatools.appspot.com/ 2) all history of a user https://xtools.wmflabs.org/ec/mr.wikisource.org/Shantanuo...
by shantanuo (8/20/21, 6:36 AM)
Duration/Term of Copyright In the
case of original literary, dramatic, musical and artistic works, the...
by shantanuo (8/20/21, 6:26 AM)
Preserve seeds 6 types of
seeds to be preserved for next season. 1) laal Mula...
by shantanuo (5/7/21, 5:46 AM)
Why do I care for
Linux? I don't care that much for other software. Linux...
by shantanuo (12/17/20, 9:27 AM)
important leafy vegetables 1. Amaranthus
caudatus: rajgira. 2. Amaranthus tricolor: Math.  (Chhoti Chulai- Hindi, Cheera-...
by shantanuo (4/12/20, 2:01 PM)
program creek program creek
seems to be a good site for handy references of python...
by shantanuo (4/11/20, 11:24 AM)
Standard out to a file
This code will change the standard out to a file...
by shantanuo (4/11/20, 11:18 AM)
Create config file for AWS
command line tool While creating amazon config file in a...
by shantanuo (2/20/20, 6:00 AM)
setting colors in pandas This
is how to set the colors in pandas mapper =...
by shantanuo (2/20/20, 5:53 AM)
log mysql output tee output.txt
show global variables; show engine innodb status\G show full processlist;...
by shantanuo (2/19/20, 10:33 AM)
access AWS API gateway using
python Amazon API gateway allows us to host serverless API's...
by shantanuo (2/16/20, 9:41 AM)
Using boto In the bad
old days, the glacier class used to have different layers....
by shantanuo (2/15/20, 10:28 AM)
backup mysql users  3
steps to install percona utility... yum install perl-DBI perl-Data-Dumper perl-DBD-MySQL wget...
by shantanuo (2/13/20, 1:49 PM)
Steps to be used for
generating AWS API gateway a) Method Execution - Get Method...
by shantanuo (2/13/20, 1:30 PM)
apply colors to pandas Here
is how to change the color of negative values to...
by shantanuo (2/12/20, 8:57 AM)
Holidays in India These are
the common holidays celebrated in India (Mumbai) during 2016 -...
by shantanuo (2/11/20, 1:53 PM)
change log file size in
MySQL Here are the steps to be followed while changing...
by shantanuo (2/11/20, 10:38 AM)
MySQL common error messages 1146
Table does not exist 1054 column does not exist 1062...
by shantanuo (2/11/20, 10:13 AM)
ipython parallel demo First start
ipython in cluster mode ipcluster start -n 4 from IPython.parallel...
by shantanuo (2/9/20, 9:02 AM)
djanog settings You may see
this message if you have DEBUG = True in your...
by shantanuo (2/9/20, 4:07 AM)
clear tmp folder Here is
following commands to clear unwanted stuff from the /tmp partition...
by shantanuo (2/8/20, 2:41 PM)
change your server time to
IST If you need to change your server clock to...
by shantanuo (2/8/20, 2:39 PM)
Transfer root emails to another
email address If you have root access to the server...
by shantanuo (2/8/20, 2:32 PM)
special strings in cron Instead
of the first five fields, you can use any one...
by shantanuo (2/8/20, 2:30 PM)

RSS feed

Made with Antville
Helma Object Publisher