AboutStill in school, codes as a hobby
Skillsjs, php, html, java
Joined devRant on 4/17/2018
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Me just now:
> finishes adapting an app for my purposes in android studio
Time to export a signed apk!
> successfully locates the keystore I generated a year ago
> even remembers the passwords
Nice! Now I can finally close Android Studio!
One second after I close it:
Shit, I forgot to enable dark mode
> reopens android studio
(The dark mode normally becomes accessible through in-app purchases, but since I built the app from source those don't work)3
I have never heard anyone say Gee-Nome. Does anyone actually do this or is the Cisco Network Academy bullshitting me again?7
Note to self:
Ctrl+A followed by Ctrl+V to replace text with the clipboard contents does not work if highlighting text copies it.
I just spent 20 minutes copy-pasting stuff before realizing nothing had changed…2
So I think I saw a post on here about dvds in virtual machines. Got me thinking, and here's my results trying to play a dvd using linux running inside a vm.
Windows 10 Professional
Hyper-V VM running Debian 4.19
Xming website release for video (also works with the free version)
PulseAudio for windows to play sound
So, pretty straightforward, right? Insert DVD, tell Hyper-V to map the dvd drive to the virtual one and run `vlc dvd:///dev/sr0'
But of course, DVDs have copy protection (read: playback protection), so I downloaded the dvdcss package file from videolan's ftp server and installed it. This still didn't work though, vlc said it couldn't decode the dvd. Then, to make sure my dvd was okay I played it with vlc in windows, which worked fine. When I tried again inside the vm it suddenly "worked". Maybe running it inside of a vm prevents some access to the dvd drive required for decoding? Go figure.
The video was very corrupted though, and vlc puked out a lot of errors.
So in conclusion, playing a dvd in a vm is weird, unwatchable, inefficient and only works if you can also play it on the host.
And yes the audio is just as choppy as the video, no idea what causes this. I can play normal videos fine (for some reason that doesn't really work with the free version of xming) although it uses about 200% cpu since there's no hardware acceleration, and the framerate isn't necessarily what it is supposed to be.8
Me: *opens devTools*
Firefox: yea bro lemme just ..uh.. hmm yeah so this is the css for the element, see?
Me: this makes no sense, why would I ever do that?
Firefox: also you can't have width on an anchor tag. I can't put that rule into effect
Me: I didn't put any width on your inline element, you sure about that?
Firefox: yea try using display: inline-block
Me: No. I'll just delete that. *checks file*
Me: Maybe that line is wrong because IT DOES NOT FUCKING EXIST!
What is this shit? I just restarted you! What else do you need, a reinstall? Drink too much over the holidays?
It's like the css editor has become a shallow tray with rules on it, and as soon as you bump it a little everything spills over and then Firefox just thinks oops, I've got this font-size: 200% lying around, lemme stick this into the hr tag which makes sense because THERE CAN'T BE ANY TEXT IN IT.9
Why WordPress is not very good:
I wrote a quick 230 line python script that uses the power of urllib, ebooklib and 12 regular expressions that would make any italian proud to download webnovels from virlyce.com and turn them into .epub files for me.
The chapters are all individual WordPress pages, and after sequentially downloading only 202 of them I got an internal server error.
Of course, I saw this coming and put mitmproxy to good use caching everything, so even though my python script with terrible error handling crashed I don't have to do it all again (yay)4
Just switched from konsole to xfce4-terminal as my x11 terminal on my debian vm. And boy does it ever look beautiful right out of the box compared to konsole1
So, unlike normal people who just click on an mp3 file in windows explorer, I'm listening to music saved on my windows hard drive, accessed via an sshfs mount, using VLC running inside a HyperV linux VM and Xming/pulseaudio to make it show up inside windows like a normal window and play sound.
Why? Because this is my replacement for WSL which broke (Good Job on the updates as always, M$) and I'm celebrating that I got everything* to work.
* Nevermind the hours I wasted because I forgot to add a rule to the windows firewall allowing pulseaudio to connect and the fact that Xming can't handle vlc playing video7
(Yes, another one of these)
Can someone please explain why android studio (including emulator, but still) plus a couple of firefox tabs and windows 10 occupy the ~8.7GB of RAM that are 74% of the 12 gigs I have? Especially since summing up the ram in use by applications according to task manager makes it look like only 3gb. Is Android Studio using some dark magic to conceal its RAM usage? What the hell!4
Has anyone else noticed these slight imprecicions where the the background peeks out at the bottom sometimes? It is pretty hard to spot, only happens sometimes after scrolling. Or is my display resolution just too high?5
Idea: Hiding a 3D object in an image by making a list how often every color appears and then displaying that as density information in a 256³ cube (aka using a 3D histogram to encode a 3D object)18
When you realize you had sharpening enabled in your monitor settings and you turn it off and shit just looks so much better...
I mean this is a necessary setting when using VGA but this monitor is connected via DVI!
Also some people just do not seem to notice this and leave this enabled on their screens.4
Previously on devRant: https://devrant.com/rants/2010573/...
And here's something similar for vlc, but it expects you to point it at a local file (note: vlc can not access files inside termux's private storage). Obvious copy&paste from SO for escape characters aside, here you go:
@dfox There's something wrong with bluetooth keyboards in the devrant android app.
1) If you switch from the onscreen keyboard (I'm using Hacker's Keyboard) to a bluetooth one while on the rant/comment editing/posting screen the exit and post buttons become unresponsive. (Pressing the back button on your phone is okay though. If you then reopen the rant it works again)
2) switching back to the onscreen keyboard replaces everyting you've written with the tags ...?
Who knew you could make (more or less) everything dark mode in windows 7?
I wish windows 10 could also give the explorer a dark mode... As far as I know you can only use high contrast mode to do that which is ugly af. Why add a dark mode to the settings and start menu but not for the windws explorer?11
Have you ever wanted to open links with firefox from within termux?
$ cat firefox.sh
am start -a android.intent.action.WEB_SEARCH --activity-clear-task -t text/plain -d "$d" org.mozilla.firefox/org.mozilla.gecko.BrowserApp
thank me later7
Another thing about Android 9:
I miss the thing where shortcuts for settings, wifi, bluetooth etc are separate from the notification drawer and you can pick by dragging down on the left or right side of the screen. Because yes, I have a 19.5x9 aspect ratio, but have you ever tried to read long notifications in portrait mode?!? Notifications are important! They need more than 1.5cm (!) of space. Yes! I measured! And this is ridiculous!1
I now have further proof that Android 9's fancy Battery Management is shit:
The compass on my new (flagship) smartphone uses the air pressure sensor and the air pressure at sea level to display your current elevation. The air pressure at sea level is fetched from the weather app. And of course, the weather app has its battery policies set to auto-managed.
Can you guess what happened? "Weather app could not be found" and an elevation of -17m
Because no one thought the battery manager could decide that the weather app should not be launched by other apps. Has no one thought this through? Good thing I figured out what was happening pretty quickly.2
So I reverse engineered the
protocol of QONQR: World in Play and made a mitmproxy addon running locally inside termux that can see when I launch in the game and uses Termux:API to notify me when my ingame resources are replenished.
I direct the traffic through mitmproxy using Drony. I configured it so that by default Drony passes traffic directly to the internet except if it comes from the QONQR app.
The problem is that while Drony is running, there is a chance of network traffic being corrupted so I often get spammed by connection and ssl errors.
So I have to either continue sacrificimg my network integrity or stop getting assistance ppaying QONQR :-/
Does anyone know an alternative to Drony (basically an app that can connect you to a proxy without root using the android vpn api, if possible with filtering by app or ip)?
Also does anyone else have problems with drony on Android 9 or other versions? I don't really have an opportunity to test it.
Edit: It only took 4 tries to post this yay3
Making a meme to pass the time...
All this waiting, only because I wanted to try one small thing -.-
Oh boy, JPEG compression strikes again...
Wish I could upload pngs. Then I could use alpha channel too.4
Warning: JPEG artefacts incoming!
you know exactly which languages I speak. So please explain to me why you still feel the need to push some random video titles and descriptions through Google Translate, making them look unprofessional and confusing me because I know that I watched that video already, but now it has a new title? And why is there no option to turn this off? And why do you explicitly state that the language setting does not affect text submitted by users? Even though it does? What the actual fuck?
Also lol even Google isn't perfect at using ecape characters correctly20
Because modifying the serverside script to add the copyright year isn't enough...
Germany is a nice place, but sometimes the bureaucracy is a bit much.
Especially when you try to write them a nice mail that you can't come to their "mandatory" appointment.
Because you're sick, like every damn time during the autumn holidays.
An email to an address where the hostname doesn't even exist. WTF?
Also don't you think that address is a bit too long? Chances for typos are pretty high when you do that, you know?5
I need someone standing behind me 24/7 making sure I don't try to String == "test"
Just wasted half an hour wondering why nothing was happening11
Critical Error: Webpage responded with: 404 Upvote button not found
(also happens to rants, not just comments)
(also don't look at the image for too long it's a pretty gross jpeg)5
Holy shit windows update just jumped from 51% to 45%
I may be partly responsible for this taking legit two hours by not having an ssd but damn these take long2