Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
iOS is rotting my soul.
I've been a user of iPhone for 6 years now. For the first couple years, I wasnt really mindful of software I use, or I guess I didnt really care. As long as it did the bare minimum, I.e. bank app, call, text, browse, watch youtube vids, I didnt really care. However, in the last couple years, ive become very interested in tech and have worked on small developer projects, spent a lot of time coding in my free time, found really inspiring software and apps on my regular computer that just blow my mind on how advanced they are, and how I, some dumb guy with internet access, can just download it on my PC and use it.
This led me into a kind of software honeymoon phase, where I created a shiny new Github account and started exploring what other cool tools are just out there, available to me for free. My software honeymoon was spent on the beaches and resorts of the open-source software ecosystem. Exploring the gem-bearing caves and beautiful forests of anything from free open-source OCR programs(I needed it to convert my dads manuscript from scanned PDF .jpeg's to actual UTF8 text) to open-source RGB lighting/keymapping software to escape the memory-and-CPU-hungry(and most likely advertising-ID-interested) proprietary software that comes with the brand of mouse/keyboard/controller/etc.
It was like I was a kid exploring Disneyland for the first time or something. But then... then... I got off my computer. Picked up my phone to check notifications. Ew, tinder is blowing up notification center with marketing shit. I go to settings. Notification settings. Tinder's at the bottom so I just want to use a search bar instead of scrolling. There's no search bar. Minor inconvenience. Dark mode isnt dark enough for me. I guess thats just too damn bad, because for the next two hours, I'll have to figure it out by messing with accessibility settings. Time for bed, and I'm just getting plum tired of having to turn on my alarms every night for work the next morning. So I used the 'Automations' app to do it for me. For the next two weeks, at the time specified, 'There was an error running your automation' until I just delete the automation. Browsing through the FaceID settings, I see 'Attention Aware Features'. Cool, maybe now my phone won't automatically dim the screen when im in the middle of reading notifications on my lock screen. Haha, nope still does it. After turning on my alarms, I go to sleep. I wake up an hour late for work because those handy 'Attention Aware Features' silenced my alarm immediately because I fell asleep watching a youtube video.
I could go on and on. Its actually making me feel depressed typing this on my phone, fighting with Apple's primitive autocorrect and annoying implementation of Swype to type.2 -
“Does god exist?”, I typed into a green terminal window after granting GPT-7 root access to our grid. “…now it does”, echoed from every speaker.1
-
Trying to build an executable for a an embedded device. There is 135MB of space on the device. Debug build is 135MB, release build is 138MB...
I have questions and I am afraid of what the answers are. Gotta sort out my sketchy build environment tomorrow.4 -
Maybe the reason there's not enough hours in the days is because we came from a world where the days were longer?2
-
turns out you not being allowed to be root of mobile devices you literally own was culminating to this point
https://youtube.com/watch/...
would be sooooo fun for a hacker 🤷7 -
- Mom, can we have [the technology of this modern world] at home?
- No, we already have [the technology of this modern world] at home.
- [the technology of this modern world] at home:
https://techhub.social/@vintprox/... -
Function in my Dao file is:
@Query("SELECT * from appData WHERE type = :type ORDER BY id DESC")
fun getData(type: String): Flow<List<AppData>>
The database contains a column of automatically generated int primary key 'id', a column of string named 'type', and another string column named 'content'.
A Part of code from my composable function is:
val currentRetrievedDate: Date = Date()
val currentDate: String = SimpleDateFormat("dd-MM-yyyy").format(currentRetrievedDate)
var lastDateObjectList by remember { mutableStateOf(emptyList<AppData>()) }
LaunchedEffect(streakCounterViewModel) {
coroutineScope {
streakCounterViewModel.appDataRepository.getDataStream("lastDate")
.collect { newDataList ->
lastDateObjectList = newDataList as List<AppData>
}
}
}
if (lastDateObjectList.size>1){/*TODO*/
for (i in 1 until lastDateObjectList.size){
LaunchedEffect (Unit){
streakCounterViewModel.deleteData(id = lastDateObjectList[i]!!.id,
type = lastDateObjectList[i]!!.type,
content = lastDateObjectList[i]!!.content)
}
}
}
val lastDateObject: AppData?/* = lastDateObjectList[0] ?: null*/
lastDateObject = if (lastDateObjectList.isNotEmpty())
lastDateObjectList[0]
else null
var lastDate = lastDateObject?.content ?: "00-00-0000"
var currentStreakObjectList by remember { mutableStateOf(emptyList<AppData>()) }
LaunchedEffect(streakCounterViewModel) {
coroutineScope {
streakCounterViewModel.appDataRepository.getDataStream("currentStreak")
.collect { newDataList ->
currentStreakObjectList = newDataList as List<AppData>
}
}
}
if (currentStreakObjectList.size>1){
for (i in 1 until currentStreakObjectList.size){
LaunchedEffect (Unit){
streakCounterViewModel.deleteData(id = currentStreakObjectList[i]!!.id,
type = currentStreakObjectList[i]!!.type,
content = currentStreakObjectList[i]!!.content)
}
}
}
val currentStreakObject: AppData?/* = currentStreakObjectList[0] ?: null*/
currentStreakObject = if (currentStreakObjectList.isNotEmpty())
currentStreakObjectList[0]
else null
var currentStreak = currentStreakObject?.content ?: "0"
In this code, the last login time and last streak of user is already saved, we just have to fetch the data from the local database, make sure that there are not more than 1 occurrences of same data type in the database, and then use that data. But this, instead of using the database values, uses 00-00-0000 as the lastDate, and uses "0" as the currentStreak (which should only be used for the first not, and in some rare situations only), and is not able to retrieve data from the database properly.
The data saving and updating logic is working fine, but only the retrieval part is causing some issue.
The complete project is also uploaded on github: at HealthEase repo of tauqirnizami4 -
Want to leave company due to insanely bad WLB
Don't wanna leave as wanna get to next step as manager someday, idk how else to become a manager other than be promoted to it
Big regrets7 -
Currently doing algebra to work out which of 2 slightly different functions is wrong and all this tells me is that both are crap.1
-
evil can be described
war can be explained
murder can be understood
but pure chaos can’t
out there, millimeters away from the edge of the universe, Iies what wiII take your sanity should you attempt to comprehend it.5 -
It's nearly May. I am therefore going to start referring to apples as "tree potatoes" whenever possible.7
-
Praying to every deity, I begged to spare me, to never kill my inner child. To never make me grow up into materialistic mindset that punishes curiosity and denies miracles.
It seems like my wish was granted. Am I naive? Sure. Do I have kid ego? Sometimes.
But I never wanted to be someone else.4 -
Why does Norway have barcodes on their battleships? So when they get back to port, they can Scandinavian.
-
Angular - object oriented programming
React - functional programming
---
Now i fucking understand why nextjs does not have any design patterns. No folder structure for it either. Every project is fucking random and you need to learn every fucking project from scratch cause people stuff shit into different folders and file names -
If you're a PO; Please don't make the sprint review take almost 2 hours. Put it in text, make tickets, make roadmap and show it me that way. I've forgotten 90% of the meeting by the time I speak to you in the next daily.
I hate meetings. Waste of fucking time, especially when all you do is listen to what the PO wants for 1 hour and then both sides forget it the next day.
Use-fucking-less. -
Long live Laragon. Its been a good tool for the last 3 years but some things are proving a little difficult to do... especially working with Laravel 11.
I've been burnt by Docker before - even after attending £££ docker classes. Containers just randomly dying, containers can't talk to each other, taking 150% of my laptop resource, slow AF... I give up.
Back to XAMPP it is :(
I wish I could just get a mac, but people don't build the desktop powertools I need on macOS.
ARGH!
6 days lost to the infinate loop of debugging docker and slow development. Never again.6 -
Realizing that coding isn’t actually how it’s like in the movies where you got 3 monitors and 2 keyboards using both hands to make vertical green lines move, and instead it’s just you painstakingly using your brainpower to figure out how to do some random thing while going to stackoverflow every 11 minutes is the “SANTA ISNT REAL?!” of the programming community5
-