AboutA weirdo dev, crazy fan of GOT, harry potter , friends,...many things ; way past the bullshit of society; usually excited about life and travel
Skillsfavourably python , java/Android and git , but forcefully learned a few other things like html/css, c, c++ , etc
LocationNew Delhi | India
Joined devRant on 2/25/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
all video streaming fucker companies have found a new way to promote shitty lies!
Hotstar: "try Hotstar! Rs199/month! first 7days free!"
Amazon prime : "try amazon prime! Rs 129/month! first 30 days free!"
those small numbers are fuckin lies. they have only 2 or 3 supported banks and if yours isn't one of them, then you have no option but to buy their full 365 days non refundable subscription of a larger amount, which strangely accepts *all payment bank cards*
liars. liar liar liars!9
Late night thought :
Google is a search engine company having with an operating system(Android) as a side product.
Microsoft is an operating system company having a search engine (bing) as a side product.6
Do established companies take risk on hiring college drop-outs with not so extraordinary skills, at a decent pay for job profile of a fresher? Specially in india?4
Phew.....I always freak out when i think of launching an app on playstore. It feels like a damn big thing! Making multiple keys, app bundles, signing, writing special descriptions, creating good looking screenshots/vids, the launch tracks.... A hell lot of work.
But recently i gathered up the courage to launch my first app in 2 years: https://play.google.com/store/apps/...
I know its simple, nd too late, but still, would like to know your thoughts on this4
what is wrong with android storage access hierarchy?All i want to do is to make a file explorer app which could show user a list of all the files on their device and memory card(if available), but its been days and i cannot find a proper way for that.
I checked all the Environment class methods and context.getFileDir()/other methods of ContextCompat , but they either point to emulated storage or the app's folder, but not the sd card. I have scratched my head and pulled all my hairs out researching a lot deep into this area, but found nothing. The only thing that works sometime is the hardcoded paths( eg new File("/sdcard") ) , but that looks like a terrible hack and i know its not good.
I have also read briefly about Storage Access Framework, but i don't think that's what I want. From what i know, SAF works in the following manner : user opens my app>>clicks on a button>>my app fires an intent to SAF>> SAF opens its own UI>>user selects 1 or multiple file>> and my app recieves those file uris. THAT'S A FILE PICKER, AND I DON'T WANT THAT.
I want the user to see a list of his files in my app only. Because if not, then what's the point of my app with the title "File explorer"?9
Do you ever think that growing up has taken away a lot of your confidence and ability to react?
I, for one think that my 5 years before self was a lot more confident and quick towards action than now. I never used to think of consequences, people's laughs, judgments or criticisms, and would do whatever I want to do or say whatever I felt.
And now I can't even give a presentation before thinking of those laughing/ judging faces that would come up if i messed up.
It was all a gradual slowing down of excitements i think. in smaller classes, we were all wild and energized, playing football and cricket all day, sweating like a mule. then came middle school where we grew a little self-conscious about our hairstyle , clothes, etc. then consciousness started taking a huge hit when puberty and fatness took over...
And since then self consciousness has taken all over the kingdom while confidence is captivated in some prison somewhere, deteriorating day by day2
What are the different ways by which an Android can play an audio?
I was recently doing a research on Android audio. And i wanted to know which libraries are responsible for audio/video play.
As far as i know media player and exo player are the two libraries which can be used to play user variety of audio/video files, application's raw/asset files and online stream files. Are there any other sounds beside system sounds which i forgot or other libraries which are also used for media playing?
And also what about these system files? Can we access system ringtones and notifications/ alarm tunes in a normal, non-rooted phone? I remember that my previous phone's music player (android kitkat maybe) was able to pick some system ringtones. Is it still possible now(android lollipop nd above) ?
Although i guess music in Android assets or raw files of some other app won't be accessable to my app, unless i am having screen record permissions?
There are 6 stages of an man's live that he wish for
1. Child phase and school phase : don't know what it was, can't remember mine
2. Teenage phase : study, exploring new areas, competition, body building, getting into relationships , breakups, dreaming, etc
3. Ambitious phase : getting graduate, changing jobs , lust for money, tensions, parties, ambitions, cars ,new houses , marriage, honeymoons and kids
4. Family settled phase : permanent job, nice salary, long family trips , fun time with kids, paid holidays, hardworking phase
5. No tensions settled phase : children getting graduate, marrying, trying to settle themselves, you and your wife having enough money or pension to live peacefully, you are playing golf with friends, doing excersize nd charity regularly, etc
6. Permanently settled phase : lie peacefully in your death bed and wait for eyes to close in sleep forever
What life gives : "fuck that shit... let's mix some of these stages, replace some of them with opposite/ negative stages and skip some of them"2
Am i the only one having a strong tendency for afternoon sleep?
It's 5.12 in the morning now, and i am still awake because of this stupid , holiday routine that unknowingly happens on every damn holiday.
I wake up with a sound 10-12 hours sleep at 12 noon or 1 pm, eat some breakfast (or "brunch" , you say) , turn on some youtube or web series, watch it till 2/3pm, then try to study/ code , and then... Zzzz am asleep..
Usually am on my bed full time: eating there , studying there, watching movies there... so maybe that's the reason, but i sincerely don't understand where this sleep comes from?
And then i wake up at 9 or 10pm, eat some more on the bed, back to binge watch till 12 or 1 in night , then eat some more, then binge watching some more , and then when my mind seems to drift back to sleep, i realize i haven't studied anything and then i start at 4 or 5am..(that is , now)
Every fucking holiday ever. maybe these web series and other diversions that messes my brain, but even if am not watching any web series, i am in front of youtube tutorials , stack overflow, twitter , my IDEs,... for almost an equal time.. and the sulking extra sleep routine still happens.
I am starting to think that its somewhat related to being in front of laptop for full day than what am watching on it. whatever this is , I only want to be able to work on my usual holiday afternoon, like i would do, when am in college or some coaching centre5
remember android devs....
The difference between <view> and <View> is enough to make you kill yourself.
and even more if you have used <view> as a divider in your fucking recycler view.
Son of the mother fucking bitch i spend last 2 hrs trying to understand where my age old ,rock-solid , tried and tested code fucked up...
And when i saw the asshole bitch view, i was like wtf am i doing with my life? ;"""(
What do people need? What will be the requirements of future?
App development, webdev, blockchain,.. snapchat, tiktok, insta... These are all just careers and apps whose sole purpose is to engage people with their phones... Every new app/website in the market wants to make the youngest of the young and oldest of the old to keep their eyes fixed on this glass screen for as long as they can... For the current decade, this has been the most successful market and profitable scheme of business in the world, leaving other careers like medical, astronomy, mechanics., Etc far behind.
So is this the future? In the next generation too we will be having users who are addicted to smaller and smaller and larger and larger screens, with their spectacle width thickening ... Or are we going to shift to some other form of business?4
fuck it, tell me straight.
Can i live into this tech world with poor math skills and no interest in web dev and designing?
my experience as native mobile dev was enjoyable and still is, but i fear that this is not a very broad career choice.
You see their is blockchain, dapps , hybrid apps, webapps, server designing, tensorflow models and Ai models( though they can be integrated with native apps too i guess ) , and many more tech and therefore jobs that rely on knowing about the webdev. and all i know is how to make a decent native java app.
and why the fuck should i join this web dev cult? its such a fucking mess. 8 different types of text sizes sizes, <b> and <strong> being the same thing, do you know about a thing called abstraction? My android studio would give me fucking murder warnings if i even dared to introduce hard coded texts along with code. and here, an html page is basically text + attributes? fucking kill me.3
Can anyone help me with this theory about microprocessor, cpu and computers in general?
( I used to love programming when during school days when it was just basic searching/sorting and oop. Even in college , when it advanced to language details , compilers and data structures, i was fine. But subjects like coa and microprocessors, which kind of explains the working of hardware behind the brain that is a computer is so difficult to understand for me 😭😭😭)
How a computer works? All i knew was that when a bulb gets connected to a battery via wires, some metal inside it starts glowing and we see light. No magics involved till now.
Then came the von Neumann architecture which says a computer consists of 4 things : i/o devices, system bus ,memory and cpu. I/0 and memory interact with system bus, which is controlled by cpu . Thus cpu controls everything and that's how computer works.
Let's take an easy example of calc. i pressed 1+2= on keyboard, it showed me '1+2=' and then '3'. How the hell that hapenned ?
Then some video told me this : every key in your keyboard is connected to a multiplexer which gives a special "code" to the processer regarding the key press.
The "control unit" of cpu commands the ram to store every character until '=' is pressed (which is a kind of interrupt telling the cpu to start processing) . RAM is simply a bunch of storage circuits (which can store some 1s) along with another bunch of circuits which can retrieve these data.
Up till now, the control unit knows that memory has (for eg):
Value 1 stored as 0001 at some address 34A
Value + stored as 11001101 at some address 34B
Value 2 stored as 0010 at some Address 23B
On recieving code for '=' press, the "control unit" commands the "alu" unit of cpu to fectch data from memory , understand it and calculate the result(i e the "fetch, decode and execute" cycle)
Alu fetches the "codes" from the memory, which translates to ADD 34A,23B i.e add the data stored at addresses 34a , 23b. The alu retrieves values present at given addresses, passes them through its adder circuit and puts the result at some new address 21H.
The control unit then fetches this result from new address and via, system busses, sends this new value to display's memory loaded at some memory port 4044.
The display picks it up and instantly shows it.
1. Is this all correct? Does this only happens?
2. Please expand this more.
How is this system bus, alu, cpu , working?
What are the registers, accumulators , flip flops in the memory?
What are the machine cycles?
What are instructions cycles , opcodes, instruction codes ?
Where does assembly language comes in?
How does cpu manipulates memory?
This data bus , control bus, what are they?
I have come across so many weird words i dont understand dma, interrupts , memory mapped i/o devices, etc. Somebody please explain.
Ps : am learning about the fucking 8085 microprocessor in class and i can't even relate to basic computer architecture. I had flunked the coa paper which i now realise why, coz its so confusing. :'''(14
I have realized that my sleepless self is smarter than my usual self . Its like , as my battery goes out, a fuckin monster takes control and tries to rule my brain, scolding my usual self , taunting over smartly and wanting to fuck the hell up everyone who tries to mess with me (nd even some normal friends too)
Whereas my usual self is just meek , defensive and never attacking, sweet listener, calm kind of person with whom people usually mess up or joke about for fun .
I like this aggressive me. Fuck you body health , we are living the life of a sleepless asshole3
just saw this gif ( https://cdn-images-1.medium.com/fit... ) as a cover-image of some medium article. the hand looked like a dick at first2
(Disclaimer: Don't think am being racist or anti feminist, i am currently studying about industrial revolutions and trade unions, nd this thought came to my mind )
We went from the time where women were forced to work in industries, to the time where women were forced to stay at home, to the time when women are willing to work in the industry.12
Anyone having success with google sites(Sities.google.com)?
I needed a resume page, so used google sites to create one (I know nothing about web dev) .
Now they are giving me an ugly url when i try to publish it. I remember my friends having .github.io url when they make websites using html/css which looks decent .
So how can i move this google site to git repo? i can't see any html/css code here, only the site15
for fellow Data Scientists/Analysts..
I was wondering...which is the longest maintained time series data of all time? i am just learning about trends, seasonality , etc in a time series, and wondered if the pattern still exists in fairly large data, like for 100 years or 100,000 days or if our present forcasting models like arma/ arima would cover them
Sometimes i wonder what if am a fairly successful man in future? In my 40s, with a secure job, a beautiful wife, 3 kids , parents , and a healthy family ?
What would i be advising my 20 yr old current self to gain such a future?18
Is there any way to change the location of this back button to right side? I am tired of this button. I have got Android pie now but still this shit shows up at far left of the screen.
Ps : am on stock android8
My internet is my weed.
My wify has been dead since last 30 hrs and I FEEL LIKE CRYING. 70MBOS TO 40KBPS NOOOO... HELP ME SOMEBODY I AM GETTING TORTURED BY MOBILE'S 10KBPS SPEED . GIMME SPEED , PLEASE FUCKING INTERNET SPEED. I EVEN SPENT MY 4G PACK LIMIT . TAKE MY MONEY BLOOD SOUL ANYTHING , AM DYING TO GET ONE LAST SHOT OF A GOOD SPEED , AAAGH FUCK😫😭😭😭😭.
AM not fine 😖😖8
Does anyone know of a site or something, where i can write boolean equation in their proper notations , like
(A+B)bar + Abar + (B + A.Bbar)bar+...
I dont even want it to solve for me, i just want to write equations without writing the word 'bar' or symbols like ~ for negation, just the actual bar or top , so that it look more understandable and beautiful16
Any fellow devranters in the pytorch udacity scholarship?
Damn,i was so excited for that,but it started 5 days earlier and now here i am , too busy to even start the videos. God i am gonna watch them after waking.
Python devs and data analysts....
Do you recommend using pycharm for working with jupyter notebooks? I surely had a bad time with it.
I have been using many jetbrains softwares , and am a fan of their docs search and autocompletion. But I don't think there is a full support for jupyter jn it, because sometimes my graphs made using matploit or seaborn just brakes.
And some libraries have a lot of functions taking parameters as " *args, **kwargs " , I don't know what that means but those function take a lot of "value" parameters i guess?(like this: plt.figure(figsize=[13,6], axis=False) )
Pycharm also don't seem to have access to list of those arguments...
Are you having such problems too? Have you found some better ide with autocompletions and support for jupyter? Do tell.
(Ps: i know jupyter can be run directly on a browser, but as i said "auto completions and documentations" )5
How do you guys motivate yourself to work out.
Its been 2 times... First i tried 2 years ago in Aug 16.
Back then , my college started and i got busy in that so left the gym after a month. I blamed myself, the tiredness it gave me and lack of friends/work out partners there at that time.
Second time, i tried more hardly in jan 2018. This time, i had my gym companions, nd i was doing better. At the start i was handling the stress well, since it was just the clg and gym,then came along the internship, but i still handled it. But after the internship, i felt the need to up my skills and do more personal projects which was still not happening because of the gym tiredness. And then came along a scholarship into one of my favorite courses, and then the papers, and then.... A lot of 'other' things started happening, so i leftthe gym jn may 18.
I am concerned about a few things. 1)These days, I am usually entangled between entertainment, clg work, self learning/ scholarships. I used to do gymming in evening hours after clg and self learning on weekends, but now i am like everyday am straight to home from clg, onto bed, into the sheets, laptop on, and am doing scholarships task till late night. I fear that my work is now so important that i cannot push it to weekends. How do you guys manage learning and maintaining your body together?
2. Gym is a sick environment. We see pumped up people with 8% body fat , skin sticking to their ugly muscles while i am there , juggling my belly fat on the treadmill. For 2 months straight i was just doing the cardio. It gave me some results i guess, my belly got a Little loose but no one really saw much changes. I am not concerned about other people or fast results particularly, but when combined, i feel like am going to a royal house party everyday, where everyone except me is a beautiful king or queen , except me, a lowly peasent . Those pumped up kings are beating their bodies and getting more beautiful, while i am trying to beat these dead belly meat which won't flatten up .
Wooooooohoooooooooo!!!!!! I am a udacity pytorch scholar!!!!!!!!!!!💥💥💥💥💥💥💥💥💥
Thankyou udacity !!! Love love love !!!! Damn am so excited!! Time to sharpen my spack skills 💓💓💓1
Android devs, what are your thoughts about the naming conventions google tries to enforce on us, especially with the xmls?
I opened a new project after months of leaving android dev, and thought of trying the basic activity template with name 'myActivity'
On clicking it, a ton of files got created : myActivity, myActivityFragment ,... And in xml the reverse naming notation : activity_my, fragment_my, content_my,...
This naming is uncomfortable .in a large project, activities usually acts as complete modules in which different tasks are handled : logins getting checked, data being cached, database being accessed and much more...
So if my activity 'abc' has a content fragment and a toolbar whose design is in another xml, shouldnt the 3 of them be named like:
At the very least , it would look nice since the components that are displayed together will have their files together. And i don't know much about testing, but i believe it would be helpful there too5