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 - "hexadecimal"
-
Here’s a few bars for you:
Roses are #FF0000,
Violets are #0000FF.
Why my code’s working
I haven’t got a clue!2 -
So this is my homework, I have to convert Hexadecimal to Text! And I can also convert the Hexadecimal to Binary!! I LOVE THIS STUFF6
-
Challenge: Make valid sentences using DevRant usernames as words in it. Aim for proper grammer, but don't be extra about it. Anything (😈) works, as long as the usernames are valid.
And..
Go!
P.S no binary or hexadecimal words XD30 -
In my previous rant about IPv6 (https://devrant.com/rants/2184688 if you're interested) I got a lot of very valuable insights in the comments and I figured that I might as well summarize what I've learned from them.
So, there's 128 bits of IP space to go around in IPv6, where 64 bits are assigned to the internet, and 64 bits to the private network of end users. Private as in, behind a router of some kind, equivalent to the bogon address spaces in IPv4. Which is nice, it ensures that everyone has the same address space to play with.. but it should've been (in my opinion) differently assigned. The internet is orders of magnitude larger than private networks. Most SOHO networks only have a handful of devices in them that need addressing. The internet on the other hand has, well, billions of devices in it. As mentioned before I doubt that this total number will be more than a multiple of the total world population. Not many people or companies use more than a few public IP addresses (again, what's inside the SOHO networks is separate from that). Consider this the equivalent of the amount of public IP's you currently control. In my case that would be 4, one for my home network and 3 for the internet-facing servers I own.
There's various ways in which overall network complexity is reduced in IPv6. This includes IPSec which is now part of the protocol suite and thus no longer an extension. Standardizing this is a good thing, and honestly I'm surprised that this wasn't the case before.
Many people seem to oppose the way IPv6 is presented, hexadecimal is not something many people use every day. Personally I've grown quite fond of the decimal representation of IPv4. Then again, there is a binary conversion involved in classless IPv4. Hexadecimal makes this conversion easier.
There seems to be opposition to memorizing IPv6 addresses, for which DNS can be used. I agree, I use this for my IPv4 network already. Makes life easier when you can just address devices by a domain name. For any developers out there with no experience with administration that think that this is bullshit - imagine having to remember the IP address of Facebook, Google, Stack Overflow and every other website you visit. Add to the list however many devices you want to be present in the imaginary network. For me right now that's between 20 and 30 hosts, and gradually increasing. Scalability can be a bitch.
Any other things.. Oh yeah. The average amount of devices in a SOHO network is not quite 1 anymore - there are currently about half a dozen devices in a home network that need to be addressed. This number increases as more devices become smart devices. That said of course, it's nowhere close to needing 64 bits and will likely never need it. Again, for any devs that think that this is bullshit - prove me wrong. I happen to know in one particular instance that they have centralized all their resources into a single PC. This seems to be common with developers and I think it's normal. But it also reduces the chances to see what networks with many devices in it are like. Again, scalability can be a bitch.
Thanks a lot everyone for your comments on the matter, I've learned a lot and really appreciate it. Do check out the previous rant and particularly the comments on it if you're interested. See ya!25 -
Today I experienced cruelty of C and mercy of Sublime and SublimeLinter.
So yesterday I was programming late at night for my uni homework in C. So I had this struct:
typedef struct {
int borrowed;
int user_id;
int book_id;
unsigned long long date;
} entry;
and I created an array of this entry like this:
entry *arr = (entry*) malloc (sizeof(arr) * n);
and my program compiled. But at the output, there was something strange...
There were some weird hexadecimal characters at the beginning but then there was normal output. So late at night, I thought that something is wrong with printf statement and I went googling... and after 2 hours I didn't found anything. In this 2 hours, I also tried to change scanf statement if maybe I was reading the wrong way. But nothing worked. But then I tried to type input in the console (before I was reading from a file and saving output in a file). And it outputted right answer!!! AT THAT POINT I WAS DONE!!! I SAID FUCK THIS SHIT I AM GOING TO SLEEP.
So this morning I continued to work on homework and tried on my other computer with other distro to see if there is the same problem. And it was..
So then I noticed that my sublime lint has some interesting warning in this line
entry *arr = (entry*) malloc (sizeof(arr) * n);
Before I thought that is just some random indentation or something but then I saw a message: Size of pointer 'arr' is used instead of its data.
AND IT STRUCT ME LIKE LIGHTNING.
I just changed this line to this:
entry *arr = (entry*) malloc (sizeof(entry) * n);
And It all worked fine. At that moment I was so happy and so angry at myself.
Lesson learned for next time: Don't program late at night especially in C and check SublimeLInter messages.7 -
I remember those times when I was a developer for an R&D company, I used to have calculations in my lines of C code determining the bits and the convertions to binary, hexadecimal, decimal...😂2
-
I have to work with an unbelievable stubborn (and incompetent) "project Manager)
He just actually tried to convince us that leading 0 in some" hexadecimal" strings get truncated.
I know that does not sound like something to lose the mind over, but these wrong facts do come up ever so often. It knaws on my sanity.6 -
------------Weeklyrant-------------------------------------
So I bought a smart watch to go with my Samsung Galaxy back when I was 12, and upon inspecting the watchface maker app I came across lua scripting files. This amazed me. Animations, complex math, hexadecimal color system, variables, sensors...
I spent about four months
learning/experimenting with lua until I discovered arduino and C++.
I am now 14 and have been fascinated with robotics and learned java and dos since.2 -
Does anyone else hate capitalised hexadecimal colour codes?
I'm not sure why, but I just think #ccfd73 (just an example) looks better than #CCFD7315 -
This binary thing is actually pretty cool! It would be even cooler if we could configure which base to use.1
-
When you accidentally write a color hexadecimal code as a 'string' in CSS, that's how you know you write too much backend code.2
-
You should know you can write error codes in hexspeak. Here is a color chart for eyecatching illustrative purposes.2
-
Unpopular opinion: given your server has enough entropy, UUID v4 is a good session token.
It allocates 122 bits for the randomly generated part. OWASP recommends session tokens to contain at least 64 bits of entropy while being at least 16 hexadecimal characters long.10 -
Was supposed to be studying for a test today at 1am (it's in a few hours). Instead starts writing the date in binary, hexadecimal and octal (and then decimal). Go me, watch me fail that test LoL
PS: those dry erase pens were the best thing I could ever buy. I love writing on my windows -
Algorithm Design Course Assignment: Sort a hexadecimal string using 4 different sorting algorithms, and display each pass on a webpage. Easy enough yeah? Oh wait. Boomer professor wants us to use a canvas based javascript library called P5.js
Why the fuck. would you enforce some random ass boomer ass javascript library on the class, rather than let students choose something they're more comfortable with so they can focus on the core of the project. IMPLEMENTING ALGORITHMS. OR AT LEAST PROVIDE BOILERPLATE CODE?? GAH!!!!!!!!15 -
Ok... I am defeated I don't know what else to try...
Do you guys have any experience with ansible vault? I have my SSH password stored on a vault. It's referenced in my host file like this:
-----START SNIPPET-----
[LCL:vars]
ansible_ssh_pass='{default_pass}'
[LCL]
myhost ansible_user=my username
-----END SNIPPET-----
default_pass is stored as a yaml variable in passed.yml that I supply using --extra-vars '@passwd.yml'
When I enter my vault password I get an exception 'non hexadecimal digit found'.
The password is right for the vault, the vault file is in PWD .... I cannot find anything helpful.
Any ideas?1 -
SoSoLoveTech: Comprehensive Tech Solutions for Modern Needs
In the dynamic world of technology, finding reliable and innovative tools to streamline tasks is paramount. SoSoLoveTech emerges as a prominent name in the tech landscape, offering a suite of solutions that cater to diverse needs. This platform positions itself as a one-stop destination for practical and user-friendly tools designed to enhance productivity, simplify complex processes, and empower users across the globe.
A Vision of Excellence
At its core, SoSoLoveTech embodies a commitment to providing tech solutions that bridge the gap between complex technological demands and user-friendly implementations. Whether you are a developer, a digital marketer, or a general user, SoSoLoveTech offers resources that can elevate your efficiency and enable seamless execution of tasks.
Features That Define SoSoLoveTech
1. User-Centric Design
The platform is built with the user in mind. Its tools and features are structured to be intuitive, accessible, and effective. Whether you're a tech-savvy professional or someone with minimal technical knowledge, SoSoLoveTech ensures that you can navigate and utilize its offerings without hassle.
2. Diverse Range of Tools
SoSoLoveTech offers a wide array of tools, each designed to solve specific problems. Some of the notable tools include:
Dummy Image Placeholder Generator: Simplifies design workflows by allowing users to generate placeholder images for web and app development projects.
Hex to RGB Color Converter: A precise tool for designers and developers to switch between color formats effortlessly.
YouTube Thumbnail Downloader: Enables users to download high-quality thumbnails from YouTube videos with ease.
QR Code Decoder: A convenient tool for scanning and decoding QR codes to retrieve data quickly.
Bank Details to IFSC Code Converter: Assists in locating IFSC codes based on bank details, simplifying financial transactions.
3. Speed and Reliability
In today’s fast-paced world, speed matters. The tools on SoSoLoveTech are optimized for swift performance, ensuring that users can complete their tasks in record time. Moreover, the platform prioritizes reliability, ensuring uninterrupted access to its resources.
4. SEO-Friendly Resources
For digital marketers and content creators, SoSoLoveTech provides tools that enhance search engine optimization (SEO) efforts. By enabling quick access to critical utilities, the platform becomes a valuable companion for those looking to improve their online visibility.
Exploring Key Tools on SoSoLoveTech
Dummy Image Placeholder Generator
Web developers often require placeholder images during the design phase. The Dummy Image Placeholder Generator on SoSoLoveTech allows users to generate images of specific dimensions, colors, and formats. This tool saves time and ensures consistency in design mockups, making it an indispensable resource for UI/UX designers and developers.
Hex to RGB Color Converter
Designers frequently switch between color models to meet project requirements. This converter simplifies the process of transforming hexadecimal color codes into RGB format. Its precision and ease of use make it a favorite among graphic designers and frontend developers.
YouTube Thumbnail Downloader
A tool for content creators, the YouTube Thumbnail Downloader provides an easy way to save thumbnails in high resolution. Whether for reference or reuse, this tool ensures that users have quick access to video thumbnails without compromising quality.
QR Code Decoder
QR codes are omnipresent in the digital world, from marketing campaigns to payment systems. The QR Code Decoder on SoSoLoveTech allows users to scan and decode these codes effortlessly, revealing the embedded information within seconds.
Bank Details to IFSC Code Converter
For individuals and businesses managing multiple transactions, finding accurate IFSC codes is often a challenge. SoSoLoveTech addresses this with its Bank Details to IFSC Code Converter, ensuring quick access to accurate banking information, thus simplifying transactions.
Why Choose SoSoLoveTech?
SoSoLoveTech distinguishes itself through its commitment to innovation, accessibility, and reliability. Here's why it's a preferred platform for many users:
Free and Accessible Tools: Most tools on the platform are available free of cost, making them accessible to a global audience.
Continuous Updates: The team behind SoSoLoveTech ensures that the tools are regularly updated to meet evolving technological standards.
Comprehensive Documentation: Each tool is accompanied by detailed guides and FAQs, ensuring that users can make the most of its features.
Mobile-Friendly Interface: The platform’s design is responsive, ensuring seamless access across devices, including smartphones and tablets.
Future Prospects
As the digital landscape evolves, SoSoLoveTech is poised to expand its offerings.