Profile

Cover photo
Amit Saha
Works at Red Hat Software
Attended University of New South Wales
Lives in Brisbane
81,278 views
AboutPosts

Stream

Amit Saha

Shared publicly  - 
 
Making use of gdb and SystemTap, my new article "How ls works" looks into the working of the ubiquitious Linux utility program, ls. We start from how Bash finds which program to execute, how the kernel knows how to execute the program and how the program itself works.

The article is published in Linux Magazine: http://www.linux-magazine.com/Issues/2015/174/How-Does-ls-Work #linux #systemtap #gdb 
1
Add a comment...

Amit Saha

Shared publicly  - 
 
Installing Fedora 22 Scientific in libvirt VM using virt-manager: https://youtu.be/vUiXWi5cwPk
1
Add a comment...

Amit Saha

Shared publicly  - 
 
See what all Fedora Scientific includes: https://fedora-scientific.readthedocs.org/en/latest/index.html … #fedora #python #pandas #ipython Fedora 22 Scientific coming soon!
Welcome to the Fedora Scientific 21 Guide¶. These pages aim to help you learn more about using the software shipped with Fedora Scientific. These documentation should be only considered applicable for Fedora 21 and may not work exactly as mentioned on other Fedora releases.
1
Add a comment...

Amit Saha

Shared publicly  - 
 
Found this talk from the F8 conference interesting:
https://developers.facebooklive.com/videos/561/big-code-developer-infrastructure-at-facebook-s-scale

Some rough notes follow.

Theme: Humans not waiting on computers, but the reverse.

Bits from server to your local machine
(one big repository)

Enhancements to Mercurial

- server side push-merge conflicts
- sparse checkouts/partial history

Writing code locally

- IDE indexing (bottle neck)
- Premise: IDEs are useful
- No clear IDE/editor to focus on at FB
- React native, multiple stack support
- Answer: http://nuclide.io/ (plugins on Atom - GitHub's open source editor)

Send your code to CI

- #1 goal: developer efficiency
- High signal feedback: do not report issues which are not developer's fault
- Rapid: Fast
- Frequent
- System: Sand castle
- Intelligently decide which tests to run for a diff (test history, etc)
 (fewer tests, faster feedback, get test results before the reviewers start)
- Review + -> "Ship it", goes to "land castle", which if passes committed to master
- post-commit hooks: more extensive tests, if fail create a push-blocker test
- automated bisect finding out the specific diff that may create a failed/error in tests

Random points:

- Flaky failures erode developer confidence, high signal feedback is critical
- Separate out infrastructure failures and developer failures
Facebook Developers Live is a curated video channel that features live, recorded and interactive broadcasts
1
Add a comment...

Amit Saha
owner

Tips  - 
 
Retrieving the last item from a list:


>>> l = [1, 2, 3]
>>> # find the index of the last element 
... # and use that to retrieve the last element
... l[len(l)-1]
... 
3
>>> # or the shorter way
... l[-1]
3
>>> # in general, -n would retrieve the nth element from the end 
... # of a list
... l[-2]
2
>>> l[-len(l)]
1
1
Add a comment...

Communities

10 communities

Amit Saha
owner

Tips  - 
 
Hi all, just uploaded a "Software Installation" guide which may be helpful for trying out the programs in the book: http://doingmathwithpython.github.io/pages/software-installation.html 
Doing Math with Python · Home · Software Installation · Programs · Solutions · Errata · Explore · Buy. Software Installation. The programs in the book and the proposed solutions are tested to run on Python 3.3, matplotlib 1.4.2, matplotlib-venn 0.11 and sympy 0.7.6. The version numbers stated ...
2
Gustavo Montanha's profile photo
 
Good tip
Add a comment...

Amit Saha
owner

Book Updates  - 
 
Two new chapters - 5 and 6 are now available in early access! Here is what these chapters are about:

http://echorand.me/2015/04/03/doing-math-with-python-chapters-5-and-6-in-early-access/ 

#python   #sympy   #matplotlib   #math   #education  
2
2
Amit Saha's profile photoGopi Palaniappan's profile photo
Add a comment...

Amit Saha

Promotions  - 
 
Hi all, if you are already a Linux user, you may be interested to learn about Fedora Scientific. It includes all the major Python tools ready to be used from install.

Learn more about it here: http://fedora-scientific.readthedocs.org/en/latest/
Welcome to the Fedora Scientific 21 Guide¶. These pages aim to help you learn more about using the software shipped with Fedora Scientific. These documentation should be only considered applicable for Fedora 21 and may not work exactly as mentioned on other Fedora releases.
14
2
Amit Saha's profile photoShaji DJ's profile photoRussell Gould's profile photoroberto moguel alfaro's profile photo
3 comments
 
Or you can do yum install python-* on a regular fedora o_O
Add a comment...

Amit Saha
owner

Tips  - 
 
The programs in Chapter 4 needs sympy 0.7.6. If your Anaconda installation comes with 0.7.5, please install the newer version using: conda install sympy=0.7.6 
1
Add a comment...

Amit Saha
owner

Book Updates  - 
 
40% off all titles, including "Doing Math with Python" http://www.nostarch.com/doingmathwithpython !

Chapters 5 and 6 coming soon!
1
Add a comment...
 
The difference between .items() in Python 2 and Python3 with an example:

In Python 2, the items() method of a  dictionary return a list of tuples of the key-value pairs in the dictionary. In Python 3, it returns a "view" object which is dynamically updated.

Example:

In Python 2:

>>> d = {'k1': 1, 'k2': 2}
>>> d_items = d.items()
>>> d['k4'] = 6
>>> d_items
[('k2', 2), ('k1', 1)]


In Python 3:

>>> d = {'k1': 1, 'k2': 2}
>>> d_items = d.items()
>>> d['k4'] = 6
>>> d_items
dict_items([('k4', 6), ('k2', 2), ('k1', 1)])

The view object is read-only. Learn more: https://docs.python.org/3/library/stdtypes.html#dictionary-view-objects #python #python3 

Some relevant discussions here: http://stackoverflow.com/questions/8957750/what-are-python-dictionary-view-objects
1
Add a comment...
Communities
10 communities
Work
Occupation
Programmer + Author
Skills
C, Python, Linux, Evolutionary Algorithms.
Employment
  • Red Hat Software
    Software Engineer, 2012 - present
  • Sun Microsystems
    Software Engineer, 2008 - 2009
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Brisbane
Previously
Canberra
Links
Story
Tagline
Randomness is Good.
Introduction
Author + Programmer: echorand.me/about/
Bragging rights
Local Minima Couldn't trap me.
Education
  • University of New South Wales
    Computer Science, 2010 - 2012
    M.Sc Computer Science (Research masters). Research topic: Evolutionary Algorithms.
Basic Information
Gender
Male
Relationship
Married