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 - "isolation"
-
In a new country and in isolation.
Laptop out of charge. Plug converter broke so cannot connect my laptop to power.
Ordered one. Need to wait one whole day for it to arrive.
Perfect gloomy weather to just reflect my mood.
Not even allowed to go out for a walk.
Wrote down some pseudo on paper so I don’t forget.
Only to realise there was a problem with it.
So I rewrote it correctly.
Now just waiting.6 -
Transaction isolation levels can suck a dick.
Also,
serialization
doesn't
fucking
work.
(╯°□°)╯︵ ┻━┻6 -
It was fun to stay home last week, this week the isolation is starting to get to me. Plus I'm PMSing. Somebody should come and hug me... 😢
Been getting really cold chills lately, so I'm not even sure if I got the damn virus.
You guys, please make a vaccine soon. I need to get out and socialize or I'll go insane. 😖7 -
Quitting nicotine and caffeine and all the letters on the screen are fucked up. How have I made it this far without killing myself? Nobody actually wants to be around me anymore and I’m haunted by my isolation. Fading skills and fading life force.21
-
Data wrangling is messy
I'm doing the vegetation maps for the game today, maybe rivers if it all goes smoothly.
I could probably do it by hand, but theres something like 60-70 ecoregions to chart,
each with their own species, both fauna and flora. And each has an elevation range its
found at in real life, so I want to use the heightmap to dictate that. Who has time for that? It's a lot of manual work.
And the night prior I'm thinking "oh this will be easy."
yeah, no.
(Also why does Devrant have to mangle my line breaks? -_-)
Laid out the requirements, how I could go about it, and the more I look the more involved
it gets.
So what I think I'll do is automate it. I already automated some of the map extraction, so
I don't see why I shouldn't just go the distance.
Also it means, later on, when I have access to better, higher resolution geographic data, updating it will be a smoother process. And even though I'm only interested in flora at the moment, theres no reason I can't reuse the same system to extract fauna information.
Of course in-game design there are some things you'll want to fudge. When the players are exploring outside the rockies in a mountainous area, maybe I still want to spawn the occasional mountain lion as a mid-tier enemy, even though our survivor might be outside the cats natural habitat. This could even be the prelude to a task you have to do, go take care of a dangerous
creature outside its normal hunting range. And who knows why it is there? Wild fire? Hunted by something *more* dangerous? Poaching? Maybe a nuke plant exploded and drove all the wildlife from an adjoining region?
who knows.
Having the extraction mostly automated goes a long way to updating those lists down the road.
But for now, flora.
For deciding plants and other features of the terrain what I can do is:
* rewrite pixeltile to take file names as input,
* along with a series of colors as a key (which are put into a SET to check each pixel against)
* input each region, one at a time, as the key, and the heightmap as the source image
* output only the region in the heightmap that corresponds to the ecoregion in the key.
* write a function to extract the palette from the outputted heightmap. (is this really needed?)
* arrange colors on the bottom or side of the image by hand, along with (in text) the elevation in feet for reference.
For automating this entire process I can go one step further:
* Do this entire process with the key colors I already snagged by hand, outputting region IDs as the file names.
* setup selenium
* selenium opens a link related to each elevation-map of a specific biome, and saves the text links
(so I dont have to hand-open them)
* I'll save the species and text by hand (assuming elevation data isn't listed)
* once I have a list of species and other details, to save them to csv, or json, or another format
* I save the list of species as csv or json or another format.
* then selenium opens this list, opens wikipedia for each, one at a time, and searches the text for elevation
* selenium saves out the species name (or an "unknown") for the species, and elevation, to a text file, along with the biome ID, and maybe the elevation code (from the heightmap) as a number or a color (probably a number, simplifies changing the heightmap later on)
Having done all this, I can start to assign species types, specific world tiles. The outputs for each region act as reference.
The only problem with the existing biome map (you can see it below, its ugly) is that it has a lot of "inbetween" colors. Theres a few things I can do here. I can treat those as a "mixing" between regions, dictating the chance of one biome's plants or the other's spawning. This seems a little complicated and dependent on a scraped together standard rather than actual data. So I'm thinking instead what I'll do is I'll implement biome transitions in code, which makes more sense, and decouples it from relying on the underlaying data. also prevents species and terrain from generating in say, towns on the borders of region, where certain plants or terrain features would be unnatural. Part of what makes an ecoregion unique is that geography has lead to relative isolation and evolutionary development of each region (usually thanks to mountains, rivers, and large impassible expanses like deserts).
Maybe I'll stuff it all into a giant bson file or maybe sqlite. Don't know yet.
As an entry level programmer I may not know what I'm doing, and I may be supposed to be looking for a job, but that won't stop me from procrastinating.
Data wrangling is fun.2 -
Self-isolation takes its toll on people's lives and, naturally, on interviews for our platform . So, a technical interview with a DevOps engineer at Zoom. The candidate started to surprise us already in the first minutes of the meeting. To begin with he apparently decided that the formality was enough at the first stage of the interview and decided to talk to the technical experts in a T-shirt and lying on the couch. That would have been fine, but in the middle of the interview his caring wife came in and insisted that the husband should eat his sandwiches and drink his tea. The candidate tried to remain unperturbed and undistracted, but his short "no", "don't want to", "come on!" didn't take effect. At one point, the applicant's wife escalated the tone of the conversation and threw a sandwich at him, promising to do the same with the tea. The supervisor and I became worried about the candidate and already in the voice of his wife began to persuade him to take a break for an afternoon snack. And such stressful interviews happen, and not at the company's initiative.7
Top Tags