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
Search - "synthwave"
-
Cleaning lady: *wants some tunes during work*
Me: "Sure, I wanted to listen to some music as well.. not sure if our genres match though 🤔"
Cleaning lady (CL): "So what kind of music do you listen to?"
Me: "Synthwave"
CL: "So um.. synthesizers?"
Me: "Well yes, but it kind of ties in with the dark side of technology.. the whole 1984 dystopian future etc. Privacy, lack of user freedom, etc."
CL: "So essentially cult music?"
TIL that the tech community is a cult for listening to synthwave. I bet she believes that tech peeps are lizards too.
*mentally slaps cleaning lady* - User!!13 -
Mood:
- Currently coughing my lungs out, I'm not working tomorrow to keep my colleagues safe
- Cat is purring on my shoulder
- Listening to some dope ass synthwave
- Updating the JetBrains IDEs so that I can work on something to busy my mind
- It's 3:45 AM.4 -
A synthwave theme for VS Code, you can even customize it with css!
https://marketplace.visualstudio.com/...4 -
So I just spent the last few hours trying to get an intro of given Wikipedia articles into my Telegram bot. It turns out that Wikipedia does have an API! But unfortunately it's born as a retard.
First I looked at https://www.mediawiki.org/wiki/API and almost thought that that was a Wikipedia article about API's. I almost skipped right over it on the search results (and it turns out that I should've). Upon opening and reading that, I found a shitload of endpoints that frankly I didn't give a shit about. Come on Wikipedia, just give me the fucking data to read out.
Ctrl-F in that page and I find a tiny little link to https://mediawiki.org/wiki/... which is basically what I needed. There's an example that.. gets the data in XML form. Because JSON is clearly too much to ask for. Are you fucking braindead Wikipedia? If my application was able to parse XML/HTML/whatevers, that would be called a browser. With all due respect but I'm not gonna embed a fucking web browser in a bot. I'll leave that to the Electron "devs" that prefer raping my RAM instead.
OK so after that I found on third-party documentation (always a good sign when that's more useful, isn't it) that it does support JSON. Retardpedia just doesn't use it by default. In fact in the example query that was a parameter that wasn't even in there. Not including something crucial like that surely is a good way to let people know the feature is there. Massive kudos to you Wikipedia.. but not really. But a parameter that was in there - for fucking CORS - that was in there by default and broke the whole goddamn thing unless I REMOVED it. Yeah because CORS is so useful in a goddamn fucking API.
So I finally get to a functioning JSON response, now all that's left is parsing it. Again, I only care about the content on the page. So I curl the endpoint and trim off the bits I don't need with jq... I was left with this monstrosity.
curl "https://en.wikipedia.org/w/api.php/...=*" | jq -r '.query.pages[0].revisions[0].slots.main.content'
Just how far can you nest your JSON Wikipedia? Are you trying to find the limits of jq or something here?!
And THEN.. as an icing on the cake, the result doesn't quite look like JSON, nor does it really look like XML, but it has elements of both. I had no idea what to make of this, especially before I had a chance to look at the exact structured output of that command above (if you just pipe into jq without arguments it's much less readable).
Then a friend of mine mentioned Wikitext. Turns out that Wikipedia's API is not only retarded, even the goddamn output is. What the fuck is Wikitext even? It's the Apple of wikis apparently. Only Wikipedia uses it.
And apparently I'm not the only one who found Wikipedia's API.. irritating to say the least. See e.g. https://utcc.utoronto.ca/~cks/...
Needless to say, my bot will not be getting Wikipedia integration at this point. I've seen enough. How about you make your API not retarded first Wikipedia? And hopefully this rant saves someone else the time required to wade through this clusterfuck.12 -
One of my main hobbies is composing music. I had been in a creative funk for almost half a year when, during my vacation, I randomly discovered this little music production program for Nintendo Switch called Korg Gadget.
So far I've created 6 finished tracks, and this latest one I took a step further by giving some extra time and care.
I'm really glad to have the creative juices flowing again, especially since work has not been great lately...
Give it a listen, if you like. The other tracks are available as well :-)
New track. Sort of Synthwave. Composed with Korg Gadget on Nintendo Switch, mixed on a pc.
https://soundcloud.com/anders-bliru...
https://cloudbounce.com/zitilites/...8 -
Found another type of music yesterday.
Lo-fi. It feels like it's a mixture of EDM (a little bit), Hiphop, Synthwave, Jazz and Trap.
I like it.4 -
Since I can't make many posts, I'll try squeeze them all in one:
1. Phone recruitment interview went "well", I even spoke french at some point! 😃
I have to brush up my knowledge again for the technical test (I hate them). Somehow I got excited, which I shouldn't, but only time will tell...
2. My brain is stuck with opening a Twitter account, mainly for following people/companies news. I don't know if it's worth it, so I would your feedback on this.
3. I've finally come down to listening to synthwave while coding and I was wondering if there's any good free service (I'm still poor, so I don't want neither Deezer nor Spotify), preferably with a UWP app on Windows 10 (that is not Soundcloud).4 -
Have visual studio/android studio pre-opened and updated, grab coffee, comfy headset and put on some synthwave or metal.
An accompanying deadline looms overhead, but we try not to think about that.