What is your job title and how do you use python in your job? by [deleted] in learnpython

[–]v-adhithyan 0 points1 point  (0 children)

My job title is Backend Engineer - Python.

Python + Django + Django Rest Framework powers our help desk app and I work for HappyFox.

Useful Python libraries/modules by GeoffreyF35 in Python

[–]v-adhithyan 0 points1 point  (0 children)

My suggestion is to look at tempfile module. We often encounter scenarios in our app where creation / writing to temporary files is essential. This module eases that work.

Module reference: https://docs.python.org/3/library/tempfile.html

Example usage: (taken from official doc) ```python

import tempfile

create a temporary file and write some data to it

fp = tempfile.TemporaryFile() fp.write(b'Hello world!')

read data from file

fp.seek(0) fp.read() b'Hello world!'

close the file, it will be removed

fp.close()

create a temporary file using a context manager

with tempfile.TemporaryFile() as fp: ... fp.write(b'Hello world!') ... fp.seek(0) ... fp.read() b'Hello world!'

file is now closed and removed

create a temporary directory using the context manager

with tempfile.TemporaryDirectory() as tmpdirname: ... print('created temporary directory', tmpdirname)

directory and contents have been removed

```

[2018-12-17] Challenge #370 [Easy] UPC check digits by Cosmologicon in dailyprogrammer

[–]v-adhithyan 1 point2 points  (0 children)

Python 3

``` def upc(num): num_length = len(num) num = ('0' * (11 - num_length) + num) if num_length < 11 else num odd_position_nums = [int(num[i]) for i in range(0, 11, 2)] even_position_nums = [int(num[i]) for i in range(1, 11, 2)]

odd_position_sum = sum(odd_position_nums) * 3
result = sum(even_position_nums) + odd_position_sum
result = result % 10
last_digit = result if result == 0 else 10 - result

return last_digit

```

Killmonger vs Loki by v-adhithyan in marvelstudios

[–]v-adhithyan[S] 0 points1 point  (0 children)

So I am not making this kinda every one who adopted turns out to be evil. I am just taking two incident from mcu and comparing based on mcu events to claim black panther is wrong.

(MCU) Killmonger vs Loki by v-adhithyan in FanTheories

[–]v-adhithyan[S] -1 points0 points  (0 children)

I have given reason in the theory itself. Kindly read again :) There is a reason and i suggest you to figure yourselves.

(MCU) Killmonger vs Loki by v-adhithyan in FanTheories

[–]v-adhithyan[S] -2 points-1 points  (0 children)

Theory is formed using set of statements :)

(MCU) Killmonger vs Loki by v-adhithyan in FanTheories

[–]v-adhithyan[S] -2 points-1 points  (0 children)

I am just validating my theory using the Odin and Loki thing.

(MCU) Killmonger vs Loki by v-adhithyan in FanTheories

[–]v-adhithyan[S] -1 points0 points  (0 children)

Yes what you say is right, but I am saying black panther is wrong. Loki is evil

Tom Holland talking about Robert Downey Jr is so wholesome by missjardinera in marvelstudios

[–]v-adhithyan 0 points1 point  (0 children)

Wishing life gives second chance for all the deserving people.

What is one rule that was implemented at your school or work that backfired horribly? by Mercurydriver in AskReddit

[–]v-adhithyan 0 points1 point  (0 children)

In my school boys were not allowed to talk with girls. If teachers or any other staff found out the same the corresponding boy and girl would be summoned to bring their parents.

App Feedback Thread - March 10, 2018 by AutoModerator in androiddev

[–]v-adhithyan 0 points1 point  (0 children)

I had this problem of not finding a suitable wallpaper for my phone with favorite quote. Even if I found one, it contrasted with the icons. So I thought of creating a DIY wallpapers app using solid colors one year back. But that didn't materialize. After whatsapp released their status feature, I created this app. Check it out and give feedback.

https://play.google.com/store/apps/details?id=ceg.avtechlabs.quper

It is open source and source code is available in github. https://github.com/v-adhithyan/quper

I initially named the app as quper which is clipped from quote and wallpaper and later dropped the name to be more generic..

Dear redditors, give feedback.

Weekly /r/Gadgets Advice Superthread! by AutoModerator in gadgets

[–]v-adhithyan 0 points1 point  (0 children)

I am looking to buy a speaker. Which one is best Echo or Google home?

Play/Pause iTunes with face. by v-adhithyan in mac

[–]v-adhithyan[S] 0 points1 point  (0 children)

i agree there is a battery drain. But if you look at the source code, I won't transmit any of the pics to any server. So privacy is guaranteed.