Python – TechEuler

Python – TechEulerUnOrdered Linked list – Prepend, Append, Insert At, Reverse, Remove, SearchUse of __slots__ in Python ClassUsage of Underscores before and after function name in Python Warning: Cannot modify header information – headers already sent by (output started at /home/manikandancsea/public_html/index.php:4) in /home/manikandancsea/public_html/wp-includes/feed-rss2.php on line 8http://www.techeuler.com A Tech blog for nerds Thu, 28 Jul 2016 […]

Read More

UnOrdered Linked list – Prepend, Append, Insert At, Reverse, Remove, Search

In order to implement an unordered linked list we need to construct linked list which contains Node class, a building block for constructing linked list class Node(object): def __init__(self, item): self.data = item self.next = None def setNext(self, newnext): self.next = newnext def getNext(self): return self.next def setData(self, item): self.data = item def getData(self): return […]

Read More

Use of __slots__ in Python Class

__slots__     Slots are predominantly used for avoiding dynamically created attributes. It is used to save memory spaces in objects. Instead of dynamically created objects at any time, there is a static structure that does not allow to after the initial creation. You would want to use __slots__ if you are going to instantiate a […]

Read More

Ubuntu was used to detect Gravitational waves at LIGO's experiment

Posted by: admin 6 days, 3 hours ago (Comments) Laser Interferometer Gravitational-Wave Observatory (LIGO) is a large-scale physics experiment to detect gravitational waves. LIGO is a joint project between scientists at MIT, Caltech, and many other colleges and universities. Scientists involved in the project and the analysis of the data for gravitational-wave astronomy are organised by the LIGO […]

Read More

Django: Run Multiple Update Queries Faster with Database transaction

Posted by: admin 3 days, 22 hours ago (Comments) Django’s default behaviour is to run autocommit mode. Each query is immediately committed to the database unless a transaction is active. Django provides a single API to control database transactions. atomic allows us to create a block of code or a function within which the atomicity of the database is guaranteed. If […]

Read More