Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "color"
Manager: Please make that text in plane white.
FullStackClown: Oooo, that's a tough one. What's plane white?
Manager: Are you serious? You literally don't know what the color white is?
FullStackClown: Well sure I know what white is, but I'm not sure what plane white is, there are dozens of airliners, and I'm sure they all have slightly different shades of what they are using for their light color in branding...
Literally all they see is design.
Users can't make or receive payments across the entire app? Ah, who cares! Much more important is the color and fading animation on that button!!!!
Absolute clowns, I swear.
Managers: wE wAnT tO bE LeAn aNd MoVe FaSt As PoSsIBLe wiTh NeW FeAtUrEs
Same Managers: Can you make this icon 2 pixels smaller?! Shift this element left?! Swap out this icon?! Use a different color here?! A perfect feature and design is critical!!!!!!
FullStackClown: You can either be lean and fast, or be fucking nitpicking clowns 🤡 about this stuff and slow us all down. Choose one.
FullStackClown: Sit down and shut up7
These clowns make my blood boil.
fullStackClown: Hey I need some info on that specific color you want for this design
managerClowns: Yes it should look like this <<sends screenshot>>
fullStackClown: That is not a color, it is a screenshot
managerClowns: Yes it should look like this
fullStackClown: Do you know what hex code that is for that color? Can you ask the design team what color from our corporate identity they used?
managerClowns: Yes it should look like this
fullStackClown: Not helping... okay fine I used the eyedropper and I see the hex code is not used anywhere else in our app, so what color should I use?
managerClowns: Yes it should look like this
My dev colleagues, the ceo, a external designer and me (dev) are sitting in the meeting room
and we discuss the result from the designer. He designed a complete relaunch of a
small CRM for the logistics sector.
The designer is a designer as you know him, big beart, small macbook, chai late
and he designed nothing, he hired a freelancer from romania.
My boss studied software development in the 80s but didn't really developed a software
for about 20 years, but he thinks he knows all and everything.
My boss is constantly complaining about the colors in the design and he would like
a iOS approach. Our system should complete copy the styles from iOS.
The really funny thing happend in just 1 minute. My boss is complaining again about the
colors and told the blue color is way to dark and the designer meant thats not possible the
blue color very bright. My boss sat next to the designer and looked not on the wall where
the picture was thrown from a projector, instead he looks from the side in the macbook screen
of the macbook which was in front of the designer. Then the designer says "Oh my god, the color
changes if I look from the side or from the top of the macbook." The Designer was blown away. My
boss couldn't believe it and did the same movements with his head and said. "Wow, you are right
the color changes".
We all other people couldn't believe that they are so dumb and thought this must be a joke. But
that wasn't a joke. After the meetin my boss told everyone in our company his results regarding the screen.
I wrote every story in a document, and I'm planning to create a book with dumb shit like this.2
I suddenly remembered that time when I was a junior, faced an issue in the code. I assign a parameter for a method for background-colour, where I have to declare a Colour value with the hexcode, then I got an error thrown at me. That's says Colour(); not found something something.
Took me one hour to realise most programming languages are American. Should be Color() not Colour()
Facepalm. That day I thought to me self, how stupid can I get in a day.7
How the fuck am I going to make a fucking email signature appear the same everywhere when the client insists in using a piece of shit software called Outlook and I am a goddam backend developer.
I don't give a shit about spacing and color and stupid fucking fonts.
Thank for listening. Have a great day.15
- I’m tired of being caught in this political bullshit and thinking about how to withdraw my money from the bank ASAP because govt can block my account to prevent me from leaving, how to let my salary make its way from Europe to me without making me a criminal for even having foreign currency, even though I pay taxes, being left without my meds because the country I was born in decided to deny the existance of my illness. At my age, I should be thinking about where do I want to go for vacation and what hair color should my next sex party fuck partner have.
- I’m tired of fighting this never-ending uphill battle with guilt upon guilt upon guilt that cripples my thinking and renders me helpless by the face of it, the constant sense of dread over me failing to even put into words what’s bothering me.
- I’m tired of seeing literally any thing associated with my childhood and having flashbacks of violence and gruesome things done to me as a child. Today, I had a full breakdown over seeing default Windows Vista wallpaper.
My anxiety always hits hard, but how hard should I hit the wall with my head next time to beat this shit out of it? sometimes I hear little bubbles inside. I left my country, but how hard should I vomit next time I eat two jars of nutella as a self-harm session for my country to leave me? I already have my eyes all red and messed up because of doing this. I can’t see straight. is it within my body? can I pull it out?11
Why the bloody fuck do you feel it necessary to replace the desktop backgrounds I have lovingly chosen with the garish color disasters you choose whenever I upgrade macOS?7
I am SO sick of RED.
our company's brand color is red.
and for some reason.
has R.E.D brand color.
what is going on. fr.10
Everyone and their dog is making a game, so why can't I?
1. open world (check)
2. taking inspiration from metro and fallout (check)
3. on a map roughly the size of the u.s. (check)
So I thought what I'd do is pretend to be one of those deaf mutes. While also pretending to be a programmer. Sometimes you make believe
so hard that it comes true apparently.
For the main map I thought I'd automate laying down the base map before hand tweaking it. It's been a bit of a slog. Roughly 1 pixel per mile. (okay, 1973 by 1067). The u.s. is 3.1 million miles, this would work out to 2.1 million miles instead. Eh.
Wrote the script to filter out all the ocean pixels, based on the elevation map, and output the difference. Still had to edit around the shoreline but it sped things up a lot. Just attached the elevation map, because the actual one is an ugly cluster of death magenta to represent the ocean.
Consequence of filtering is, the shoreline is messy and not entirely representative of the u.s.
The preprocessing step also added a lot of in-land 'lakes' that don't exist in some areas, like death valley. Already expected that.
But the plus side is I now have map layers for both elevation and ecology biomes. Aligning them close enough so that the heightmap wasn't displaced, and didn't cut off the shoreline in the ecology layer (at export), was a royal pain, and as super finicky. But thankfully thats done.
Next step is to go through the ecology map, copy each key color, and write down the biome id, courtesy of the 2017 ecoregions project.
From there, I write down the primary landscape features (water, plants, trees, terrain roughness, etc), anything easy to convey.
Main thing I'm interested in is tree types, because those, as tiles, convey a lot more information about the hex terrain than anything else.
Once the biomes are marked, and the tree types are written, the next step is to assign a tile to each tree type, and each density level of mountains (flat, hills, mountains, snowcapped peaks, etc).
The reference ids, colors, and numbers on the map will simplify the process.
After that, I'll write an exporter with python, and dump to csv or another format.
Next steps are laying out the instances in the level editor, that'll act as the tiles in question.
Theres a few naive approaches:
Spawn all the relevant instances at startup, and load the corresponding tiles.
Or setup chunks of instances, enough to cover the camera, and a buffer surrounding the camera. As the camera moves, reconfigure the instances to match the streamed in tile data.
Instances here make sense, because if theres any simulation going on (and I'd like there to be), they can detect in event code, when they are in the invisible buffer around the camera but not yet visible, and be activated by the camera, or deactive themselves after leaving the camera and buffer's area.
The alternative is to let a global controller stream the data in, as a series of tile IDs, corresponding to the various tile sprites, and code global interaction like tile picking into a single event, which seems unwieldy and not at all manageable. I can see it turning into a giant switch case already.
So instances it is.
Actually, if I do 16^2 pixel chunks, it only works out to 124x68 chunks in all. A few thousand, mostly inactive chunks is pretty trivial, and simplifies spawning and serializing/deserializing.
All of this doesn't account for
* putting lakes back in that aren't present
* lots of islands and parts of shores that would typically have bays and parts that jut out, need reworked.
* great lakes need refinement and corrections
* elevation key map too blocky. Need a higher resolution one while reducing color count
This can be solved by introducing some noise into the elevations, varying say, within one standard div.
* mountains will still require refinement to individual state geography. Thats for later on
* shoreline is too smooth, and needs to be less straight-line and less blocky. less corners.
* rivers need added, not just large ones but smaller ones too
* available tree assets need to be matched, as best and fully as possible, to types of trees represented in biome data, so that even if I don't have an exact match, I can still place *something* thats native or looks close enough to what you would expect in a given biome.
Ponderosa pines vs white pines for example.
This also doesn't account for 1. major and minor roads, 2. artificial and natural attractions, 3. other major features people in any given state are familiar with. 4. named places, 5. infrastructure, 6. cities and buildings and towns.
Also I'm pretty sure I cut off part of florida.
Woops, sorry everglades.
Guess I'll just make it a death-zone from nuclear fallout.
Take that gators!5
Omg I changed her lipstick with one of a slightly different color I'm so random she'll go CrAaAaAzY
Use Tampermonkey to transform your colleague's pc into a chinese botnet and redirect him to some PCC website on every click forever
Yeah long story short that's how my previous firm blocked access to domains hosted by the Chinese government.3
I just compiled a color palette for devRant-related drawings that anyone can import into GIMP and Inkscape. Already successfully using it for graphics promoting dR Community Matrix (more on that later), hence the name: "drcm-palette".
For reference I used colors produced by "Tailwind CSS 10-color Palette Generator": https://tailwind.simeongriggs.dev/8
My God is map development insane. I had no idea.
For starters did you know there are a hundred different satellite map providers?
Just kidding, it's more than that.
Second there appears to be tens of thousands of people whos *entire* job is either analyzing map data, or making maps.
Hell this must be some people's whole *existence*. I am humbled.
I just got done grabbing basic land cover data for a neoscav style game spanning the u.s., when I came across the MRLC land cover data set.
One file was 17GB in size.
Worked out to 1px = 30 meters in their data set. I just need it at a one mile resolution, so I need it in 54px chunks, which I'll have to average, or find medians on, or do some sort of reduction.
Ecoregions.appspot.com actually has a pretty good data set but that's still manual. I ran it through gale and theres actually imperceptible thin line borders that share a separate *shade* of their region colors with the region itself, so I ran it through a mosaic effect, to remove the vast bulk of extraneous border colors, but I'll still have to hand remove the oceans if I go with image sources.
It's not that I havent done things involved like that before, naturally I'm insane. It's just involved.
The reason for editing out the oceans is because the oceans contain a metric boatload of shades of blue.
If I'm converting pixels to tiles, I have to break it down to one color per tile.
With the oceans, the boundary between the ocean and shore (not to mention depth information on the continental shelf) ends up sharing colors when I do a palette reduction, so that's a no-go. Of course I could build the palette bu hand, from sampling the map, and then just measure the distance of each sampled rgb color to that of every color in the palette, to see what color it primarily belongs to, but as it stands ecoregions coloring of the regions has some of them *really close* in rgb value as it is.
Now what I also could do is write a script to parse the shape files, construct polygons in sdl or love2d, and save it to a surface with simplified colors, and output that to bmp.
It's perfectly doable, but technically I'm on savings and supposed to be calling companies right now to see if I can get hired instead of being a bum :P20
God I love being able to use MathJax on GitHub, despite it being quite a pain to get it perfect.
( Manually adjusted the spacing for readability~ )
( Still needs color though.. )
Also the bug that broke all inline mathjax for a week wasn't exactly helpful..1
Web Ops Director: [looking at a screenshot of changes she had requested] This looks good. Oh by the way, revert that red color for heading text.
Me: I’m not reverting anything because there’s nothing for me to revert. I didn’t touch that text color. The website has always looked like that.
Director: [shocked pikachu face]3
Playing gameboy Pokemon roms in an emulator called noCash, which would ask you to pay after a set amount of playtime if you wanted to continue having color in your games.2
Bing does not understand context at all, I searched PS1 console color to change bash settings, it showed me results about the PlayStation 1 and not about Bash.10
I love my Model M keyboard.
What kind of switches has your main keyboard which you use for coding? (Cherry MX <color>/ Rubberdome/Model M, ...)25
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."
(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
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?
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
Hey Ranters..am new year...(here)...got u a cool way to propose your crush...this valentines day..(S.t Valentines...rOfL).
use this python code to impress ur crush in 11 lines..p.S use trunket if it does not work on a regular compiler
make sure u are cool enough to pull this off..because this can be the reason for u being singlee lamo
from turtle import *
Did someone already thought about how color highlight can be better? It's been 4-5 years now that I'm coding on a virtual console that run on iPad with a monochrome code editor. Despite the fact that's remind me the old days when I was 8 years old, that doesn't stop me for coding with it.
I mean, is it really important to know that strings are red and numbers are yellow? How does that help me? They are both literal and behave to the user-content categories.
I was talking with my friend, and he says he likes to know if something is a keyword or an identifier. In C++, a lot of common keywords to define stuff and control the flow are often the first word and easy to spot.
A couple of months ago, I tried Flutter, and the editor can highlight ident blocks and give them different colors, but with Flutter, it's easy to get 10 or more ident levels, Does the color help? Splitting the code does.
I think, there is so much stuff that is more important than coloring the grammar of a language. For instance: knowing if an identifier belongs to which Rust Crate because, It's easy to stack 10 or more dependencies in one file that as better chances of names collisions.
Knowing if an identifier was recognized, if it used, if it's a local, a member, a global, a compiled value or a macro seems more important.
I would like to color block of code that is important or sensible. That will help my coworker about the severity of a particular place in the code.
What do you think?1
I was watching a video where an old man was using an analogy to describe humans. Imagine you get water and fill it in different color opaque containers, you won’t be able to see the water most will assume that each container contains a different type of liquid, but inside they are all the same. He then proceeded to say that we all are spirits inhabiting different physical structures aka the human body and inside we are all the same. What do you think about this?2
So I created a separator control for winforms apps. It's completely custom drawn and supports both verrtical and horizontal directions.
It's free on Nuget: https://nuget.org/packages/...
Install-Package Separator-Control -Version 1.0.0
Just set the Direction property to Horizontal or Vertical and set its color and thickness properties.5
i am a fan of everything mcu but recent ms marvel feels so cringy and awkward as an Indian. the main actress is okay, but almost all of the casting is from non Indian/pakistani descent. thankfully those guys don't try to speak hindi/urdu otherwise i would have snorted while watching 😂. the blend of languages feels so weird i neither like their hindi nor English.
imo squid game like adaptation would have been better , having everyone from same descent and speaking the same language while having everything dubbed by professionals for other languages.
and what's with the colors? mann that's too much color for even the most colourful countries of the world.
and songs? wow. when i was growing up, the movies at that time had dialogues like "when you are in love , you hear background music" , but even those movies didn't had any background music so cringy as this.
also from what i know pakistani culture is way more punjabi than indian culture in general. but here , pwople are speaking perfect hindi even in a mosque!
makes me wonder how the world sees these 2 countries. every 5 minutes i felt that this is more Indian adaptation of a story than pakistan. they just blended the countries' culture brutally. i bet the conversation between director and scriptwriter must be like:
d :hi there
s : hello
d: so you have a movie for me
s : yes sir i do . it's called miss marvel
d : oh so it's about carol denvers? i thought that wasn't until 2024
s : no sir it's about a Pakistani girl with superpowers
d : oh okay. wait did you say Pakistani?
s : yes sir. a pakistani girl born in n-
d : yeh yeh yeh. listen we need to add lots of colors
s : why-?? ok sure sir.
d : and elephants. and borses. also , everyone must occasionally.
s : bur sie those are all the cuisines of an indian wedding . and why we want horses?
d: doesn't matter, i want horses.
s: buf s-? ok fine1
I'm try to make a color picker browser extension and I want to open eyedropper element in firefox using `EyeDropper` api but it doesn't support in firefox it is only support in chrome, is there any alternative of it in firefox?8