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
Fuckkkkkk xD 😰😰😰😥😥😥😥😥😥
How will you feel if you are just a 5 yr old ambitious child walking near the border, dreaming on to become a brave soldier someday when suddenly
You press the wrong buttons and now you are in war, a 5 year old boy shooting from guns!?
I did something like that, by accidentally clicking on a test i was not ready for 😣😣
- Be me, developing mobile game
- Make the following goal, coz project is very important.
- plug phone to laptop for testing.
- phone gets charged
- phone doesn't die for 2 days, fuck you ain't getting any entertainment forever
>>"Error, Factory doesn't existt"
>> checked every tutorial on internet: twice.
>> rebuild the whole project: thrice
>> checked the xmls,activities,views,gradle: 4 times
>> thoughts of throwing my laptop : 5 times
checked the import modules:
>>imported javax.sql.DataSource instead of androidx.paging.DataSource
poor huawei never knew even their beloved brutus would stab em in their back...
et tu google? https://developer.android.com/train...2
what kind of sorcery is this? how am i suppose to call this class( or whatever it is)'s functions?4
Which place do y'all go for developer related comics and memes ? Besides devrant ofc.
I actually wanted to use some in a boring article am about to write. Something with a sword and needle context, like people using heavy frameworks when a small snippet of native code could do just fine.5
Game title: Vacations of an engineering student.
Aim: to utilize 60 days of freedom with something worth useful in future career.
Game Modes: (1) Sit at home. (2) intern for some company
Mode(1) Sit at home.
>>Villains : Games,Netflix and movies, food, friend parties, late night sleeps, afternoon wake ups, trips (random villains)
>>Boss Battles : laziness, procrastination, loosing of interest in stuff you wanna do
>>reward on completion: more knowledge increase, better resume ,$0 earnings
Mode(2) : intern for some company
>> extra level before starting : apply for 100s of companies,interview rounds, test
>>villans : no self choice, work with shitty code, too much workload, less time for outside-work life
>> Boss battles: do stuff that you didn't agree to, less stipend, unwanted scoldings from boss
>> reward on completion : more work experience , lesser knowledge, more $
What would be your mode of playing this summer?3
aaaaaghh fucking Handlers man. Android is so fucking full of shit, i wonder why am i still doing it. love is pain.
Why can't there be one mother fucking solution to all lazy ass asynchronous programming? handlers, threadpools, asynctask, executers, Broadcasts, intentService, coroutines, rxjava,.... i don't what new stuff are people snorting these days.
Ok , leave everything. A handler is class- no sorry, Handler, alongside some fucking Looper clss (and maybe some more stuff i don't know) other classes is a way of handling inter thread communication. Handlers can:
-send data to ui thread
-recieve data from ui thread
-send "messages" to ui thread
-recieve "messages" from ui thread.
- can be attached to ui thread
- can be attached to any child thread
- can be accessed anonymosly via any view
- can be present in multiple places, working together
- can kill night king with a dagger
- can do porn better than johnny sins
- can run for president of the whole fucking world
- do some more shits that i have yet to discover
And where do i find this? buried deep insides some medium articles or in some guy's horrible accent video.
Is background processing really this much of a toughnut to crack?
earlier i was all about using asynctask or foreground/background services, because these are the most easy to understand abstraction of a fairly difficult topic.
But as i see more projects, i see underlying apis like handlers, threadpools , executers , being directly used.
Why cant there be a fucking single abstraction, that could be "lightly tweaked" to handle every ugly case.6
Me and this friend of mine were usually average in college subjects. We were not really bad at them, we just never got any exceptional marks in those subjects.
So when our 4th sem result came, a third friend of us got really good marks in some subject , like in 90s, and we again had marks around 70s.
At that time we both knew that we know that subject way more than this topper guy in terms of knowledge, but he just crammed everything about that subject word to word and got the better marks.
We thus believed that marks doesn't matter, its the knowledge and we both know its stupid to cram useless things which could easily be referred from documentations or internet when required.
But last sem, something different happens. looks like mah boy was a little envious on the inside, he scored a whopping 88%, just near to that topper friend of ours . i was happy watching his happiness , and he was saying that "dude this sem, i will even try to beat that guy in marks."
Even though none of them are class toppers, but they are somehow running in the race to be one. I on the other hand is still firm on the belief of not cramming stupid shit just to get a status of some 'topper'.
even though cramming subject knowledge is not a total waste, i still believe we should only understand what we need to understand, like learning the moral from a war story, not cramming the actual war dates.
Some might find this quality of mine to be the reason of me being 'average', but i feel totally fine with it. I have trained myself to be able to lookup for a particular resource online faster than they are able to lookup for that resource crammed in their brain memory, and i wonder if i should feel guilty about it. Yet the society will always see me as an 'average' guy and them as a 'winner'1
This company is giving me such a great offer, i would be able buy 2 i phones and will still have a lot of "exposure" left3
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"1
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?3
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