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 - "key-value store"
-
Working with atlassian products....
Possibility 1
You can either use exactly this one way and only with these specific instructions ...
Which will certainly not work for the project you have.
Possibility 2
There is an feature request which gets ignored for years, someone made a plugin...
But plugin was removed as inactive. :-)
Possibility 3
Atlassian provided in their endless graciousness a plugin.
After hours of deciphering Kotlin / Java code as the documentation is either useless or lacking details...
You did it. You got the REST shit working.
Well.
You just needed a script which wraps the underlying command, parses the commands well defined format like XML with specification.... To a completely gobbled up JSON, that looks like undecipherable shit.
I really hate Atlassian.
https://bitbucket.org/atlassian/...
I just wanted to add code coverage via the REST API by the way.
A really unnecessary and seldomly used future as it seems.
And yeah... The JSON contains a coverage element which contains a semicolon separated key value store, value being a comma separated list of line numbers....
4 -
So......... there's this company who HATE to return data in json, yml or xml. Their "RESTFul api" returns .ini file as string and all requests are 200 ! even though it is failed , still return 200.
And the structure are inconsistent af.
The PIC literally solve every issue by store data in .ini file locally
LocalStorage? .ini
SharedPreferences? .ini
Api response type ? .ini
Caching? .ini
UI key=value handling? .ini
hotel? trivago.6 -
StackOverflow locked my account. I'm hoping someone here might be kind enough to help me with a bash script I'm "bashing" my head with. Actually, it's zsh on MacOS if it makes any difference.
I have an input file. Four lines. No blank lines. Each of the four lines has two strings of text delimited by a tab. Each string on either side of the tab is either one word with no spaces or a bunch of words with spaces. Like this (using <tab> as a placeholder here on Devrant for where the tab actually is)
ABC<tab>DEF
GHI<tab>jkl mno pq
RST<tab>UV
wx<tab>Yz
I need to open and read the file, separate them into key-value pairs, and put them into an array for processing. I have this script to do that:
# Get input arguments
search_string_file="$1"
file_path="$2"
# Read search strings and corresponding names from the file and store in arrays
search_strings=()
search_names=()
# Read search strings and corresponding names from the file and store in arrays
while IFS= read -r line || [[ -n "$line" ]]; do
echo "Line: $line"
search_string=$(echo "$line" | awk -F'\t' '{print $1}')
name=$(echo "$line" | awk -F'\t' '{print $2}')
search_strings+=("$search_string")
search_names+=("$name")
done < "$search_string_file"
# Debug: Print the entire array of search strings
echo "Search strings array:"
for (( i=0; i<${#search_strings[@]}; i++ )); do
echo "[$i] ${search_strings[$i]} -- ${search_names[$i]}"
done
However, in the output, I get the following:
Line: ABC<tab>DEF
Line: GHI<tab>jkl mno pq
Line: RST<tab>UV
Line: wx<tab>Yz
Search strings array:
[0] --
[1] ABC -- DEF
[2] GHI -- jkl mno pq
[3] RST -- UV
That's it. I seem to be off by one because that last line...
Line: wx<tab>Yz
never gets added to the array. What I need it to be is:
[0] ABC -- DEF
[1] GHI -- jkl mno pq
[2] RST -- UV
[3] wx -- Yz
What am I doing wrong here?
Thanks.
17 -
So... I’ve recently started a new role, and luckily I’ve established myself as someone that knows his shit (more or less) TM.
I’m leading the charge on tech debt, and raising issues about it, first on my radar is the monstrosity of their approach to app config.
It’s a web app, and they store config in a key-value table in the database.
Get this. The key is the {type}.{property} path and this is fetched from the database and injected *at construction* via reflection.
Some of these objects get instantiated dozens of times per-request. Eurgh. -
Can anyone help me with this theory about microprocessor, cpu and computers in general?
( I used to love programming when during school days when it was just basic searching/sorting and oop. Even in college , when it advanced to language details , compilers and data structures, i was fine. But subjects like coa and microprocessors, which kind of explains the working of hardware behind the brain that is a computer is so difficult to understand for me 😭😭😭)
How a computer works? All i knew was that when a bulb gets connected to a battery via wires, some metal inside it starts glowing and we see light. No magics involved till now.
Then came the von Neumann architecture which says a computer consists of 4 things : i/o devices, system bus ,memory and cpu. I/0 and memory interact with system bus, which is controlled by cpu . Thus cpu controls everything and that's how computer works.
Wait, what?
Let's take an easy example of calc. i pressed 1+2= on keyboard, it showed me '1+2=' and then '3'. How the hell that hapenned ?
Then some video told me this : every key in your keyboard is connected to a multiplexer which gives a special "code" to the processer regarding the key press.
The "control unit" of cpu commands the ram to store every character until '=' is pressed (which is a kind of interrupt telling the cpu to start processing) . RAM is simply a bunch of storage circuits (which can store some 1s) along with another bunch of circuits which can retrieve these data.
Up till now, the control unit knows that memory has (for eg):
Value 1 stored as 0001 at some address 34A
Value + stored as 11001101 at some address 34B
Value 2 stored as 0010 at some Address 23B
On recieving code for '=' press, the "control unit" commands the "alu" unit of cpu to fectch data from memory , understand it and calculate the result(i e the "fetch, decode and execute" cycle)
Alu fetches the "codes" from the memory, which translates to ADD 34A,23B i.e add the data stored at addresses 34a , 23b. The alu retrieves values present at given addresses, passes them through its adder circuit and puts the result at some new address 21H.
The control unit then fetches this result from new address and via, system busses, sends this new value to display's memory loaded at some memory port 4044.
The display picks it up and instantly shows it.
My problems:
1. Is this all correct? Does this only happens?
2. Please expand this more.
How is this system bus, alu, cpu , working?
What are the registers, accumulators , flip flops in the memory?
What are the machine cycles?
What are instructions cycles , opcodes, instruction codes ?
Where does assembly language comes in?
How does cpu manipulates memory?
This data bus , control bus, what are they?
I have come across so many weird words i dont understand dma, interrupts , memory mapped i/o devices, etc. Somebody please explain.
Ps : am learning about the fucking 8085 microprocessor in class and i can't even relate to basic computer architecture. I had flunked the coa paper which i now realise why, coz its so confusing. :'''(14 -
Opinions please.
I want to share a small model in my iOS app. Now on android I'd do with with ViewModelProviders, but on iOS I'm going with SharedDataContainer which is basically a singleton class that store key value data.
Is there any better approach? Data will not be bigger than 10 list items with guid (key) and int (value)
However; when I have big data I do cache on disk or hello OOM exceptions (or whatever they call that bitch on iOS) -
I hate group project so much.
I yet again successfully stirred up a big drama in my project group. For project, I proposed a CDN cache system for a post only database server. Super simple. I wanted to see what ideas other people come up with. So I said I am not good at the content and the idea is dumb. Oh man, what a horrible mistake. One group member wants to build a chat app with distributed storage. We implemented get/put for a terribly designed key value store and now they want to build a freaking chat app on top of a more stupid kV store using golang standard lib. I don't think any of those fools understand the challenges that comes with the distributed storage.
I sent a video explaining part of crdt. "That's way too complicated. Why are you making everything complicated."
Those fools leave too much details for course stuff's interpretation and says
"course stuff will only grade the project according to the proposal. It's in the project description".
I asked why don't they just take baby steps and just go with their underlying terribly designed kV store.
"Messaging app is more interesting and designing kV store with generic API is just as difficult"
😂 Fucking egos
Then I successfully pissed off all group members with relatively respectful words then pissed off myself and joined another group.1 -
I identified the need for a product akin to an ORM that maps an algebraic type system such as that of Rust to a key-value database (my situation dictates lmdb but I'd like to abstract away the store). Can you recommend prior art for me to research?4
-
Had that moment where I thought to myself I need some sleep.
Working on Android app, using shared preferences (for a lay person, a key value store for settings)
Kept storing data in store and checked repeatedly from different parts of the app for the data. No clue where it went when storing (did store correctly)
Found out I was storing in a store labelled X _Y and was reading from store called XY.3 -
I have to deal with the hardest part of programming: naming things! i fucking hate it, being so incredible uncreative finding a name for a side project..
So heres my idea: I want to build a little cli tool (and probably in the future an app or a web interface) with a rest api on my server for simple storing text snippets. I will be a simple key value store, but my goal is experimenting with new languages and software ;)
I can't imagine a cool name for that thing, do you have an idea? :)3 -
Discover the Best Organic Honey at Dino Kelulut Organic Trigona Honey
At Dino Kelulut Organic Trigona Honey, we specialize in providing the finest quality organic honey, sourced from the stingless Trigona bees that produce Kelulut honey. Based in Petaling Jaya, Selangor, Malaysia, we are proud to be a leading provider of organic honey wholesale, catering to both local and international customers. Whether you're looking to buy organic honey for personal use or interested in purchasing in bulk, we offer a variety of options that ensure you're getting the purest, most nutritious honey available.
Why Choose Organic Honey?
Organic honey is produced without the use of harmful chemicals, pesticides, or artificial additives, making it a healthier and more natural alternative to conventional honey. The benefits of organic honey go beyond just being a natural sweetener—it is rich in antioxidants, vitamins, and minerals that support overall health.
At Dino Kelulut, our Kelulut honey is raw and unfiltered, meaning it retains all of its natural enzymes, nutrients, and health-promoting properties. Trigona honey, especially our organic honey, has a unique taste and texture, making it a prized product in the world of natural sweeteners.
The Benefits of Kelulut Honey
Kelulut honey is a special variety of honey produced by stingless bees, and it has several advantages over traditional honey. This honey is prized for its rich, tangy flavor and smooth consistency. Some key benefits of Kelulut honey include:
Rich in Antioxidants: Our Kelulut honey is packed with natural antioxidants, which help protect the body from oxidative stress and support the immune system.
Supports Digestive Health: The enzymes in Kelulut honey aid in digestion, making it a great choice for those seeking to improve gut health.
Natural Antibacterial Properties: The antimicrobial effects of Kelulut honey make it an excellent choice for soothing sore throats and promoting wound healing.
Boosts Energy: As a natural sweetener, Kelulut honey provides a quick energy boost without the harmful effects of refined sugars.
Whether you're using it in your daily tea, smoothies, or as a natural remedy, Kelulut honey offers a unique way to improve your health naturally.
Organic Honey Wholesale: A Trusted Source for Bulk Orders
At Dino Kelulut, we are a trusted organic honey wholesale supplier. Whether you are a retailer, distributor, or simply a large-scale consumer looking to buy in bulk, we can provide you with high-quality organic honey that meets your needs. We offer competitive pricing for wholesale orders, ensuring that you receive the best value without compromising on quality.
Our honey is harvested with care, ensuring that it maintains its natural purity, flavor, and health benefits. With our organic honey wholesale option, you can stock up on Kelulut honey and share its benefits with others, whether through your store or as a part of your product line.
Buy Organic Honey: Taste the Natural Sweetness
Looking to buy organic honey for personal use or as a healthy alternative to refined sugars? Dino Kelulut Organic Trigona Honey offers a range of honey products that cater to different tastes and preferences. Whether you are new to Kelulut honey or a long-time fan, our products offer the ideal choice for anyone who values purity, flavor, and health.
Our Kelulut honey is perfect for those who want to enjoy a natural sweetener that not only satisfies their cravings but also supports their overall health. Unlike processed sugars or syrups, Kelulut honey is packed with nutrients and antioxidants that can help maintain a balanced diet and boost your immune system.
Understanding Kelulut Honey Price
When it comes to the Kelulut honey price, you can be assured that you're paying for the highest quality. Kelulut honey is often priced higher than traditional honey due to its unique production process, limited availability, and the specialized care required to harvest it from stingless bees. However, the benefits far outweigh the price.
At Dino Kelulut, we are committed to offering Kelulut honey at a competitive price while maintaining its high standards of quality. Whether you’re purchasing a small jar for personal use or a bulk order for resale, you’ll find that our prices reflect the value and purity of the product.2 -
Gulf Coast Pro Wash, LLC: Enhanced Curb Appeal, Paver Cleaning, and Storefront Cleaning in Port Charlotte, FL
At Gulf Coast Pro Wash, LLC, we understand how important it is to maintain the beauty and cleanliness of your property. Whether you're a homeowner wanting to boost your home's curb appeal or a business owner looking to keep your storefront looking fresh, we offer professional cleaning services tailored to meet your needs. Serving Port Charlotte, FL, and surrounding areas, we specialize in services like enhanced curb appeal, paver cleaning, and storefront cleaning that will help elevate the appearance of your property and make a lasting first impression.
Enhanced Curb Appeal: Make Your Property Stand Out
Your home’s exterior is the first thing people notice, and enhanced curb appeal can make all the difference when it comes to creating a welcoming atmosphere. Whether you're planning to sell your home or simply want to enjoy a beautifully maintained property, increasing your curb appeal is one of the best ways to make a statement.
At Gulf Coast Pro Wash, LLC, we offer a variety of services designed to boost your property's curb appeal. From soft washing your house’s exterior and cleaning your driveway to paver cleaning and pressure washing your fence, our team can handle all of your exterior cleaning needs. Our expert team uses high-quality equipment and safe, eco-friendly cleaning solutions to make sure your property shines, increasing both its beauty and value.
Paver Cleaning: Restore the Beauty of Your Walkways and Patios
Pavers are a popular choice for driveways, patios, and walkways, thanks to their durability and aesthetic appeal. However, over time, dirt, grime, weeds, and algae can build up, causing your pavers to lose their luster. Paver cleaning is an essential service to maintain the appearance and functionality of your paver surfaces.
At Gulf Coast Pro Wash, LLC, we offer specialized paver cleaning services that remove dirt, mold, mildew, and other debris without damaging the paver surface. We use the appropriate pressure and cleaning techniques to safely restore the color and texture of your pavers, leaving them looking as good as new. Our professional cleaning not only improves the appearance of your patios, driveways, and walkways but also helps prevent future buildup, ensuring long-lasting beauty and durability.
Storefront Cleaning: Keep Your Business Looking Its Best
As a business owner, your storefront is the first thing potential customers see when they approach your store. A clean, well-maintained storefront is key to making a positive first impression and encouraging customers to walk in. Over time, dirt, grime, and other contaminants can accumulate on windows, doors, sidewalks, and walls, diminishing your business's curb appeal.
Storefront cleaning is a vital service to maintain the cleanliness and professionalism of your commercial property. At Gulf Coast Pro Wash, LLC, we offer expert storefront cleaning that includes cleaning windows, pressure washing the exterior, and removing dirt and debris from walkways. Our team uses safe, effective techniques to ensure your storefront shines, making it inviting for customers and giving your business a polished, professional look. Whether you run a restaurant, retail store, or office, we’ll help you make a lasting impression with a spotless storefront.
Why Choose Gulf Coast Pro Wash, LLC?
When you choose Gulf Coast Pro Wash, LLC for your enhanced curb appeal, paver cleaning, and storefront cleaning needs, you're choosing a team of experienced professionals who care about delivering exceptional results. Here’s why we’re the trusted choice for property owners in Port Charlotte, FL:
Experienced Technicians: Our team is highly trained in the latest cleaning techniques, ensuring safe and effective results for all surfaces.
State-of-the-Art Equipment: We use high-quality equipment and eco-friendly cleaning solutions to achieve the best results without harming the environment.
Affordable Pricing: We offer competitive pricing with transparent, no-hidden-fee estimates so you know exactly what to expect.
Customer Satisfaction Guaranteed: We are committed to providing outstanding service and ensuring that you are completely satisfied with the results.
Contact Gulf Coast Pro Wash, LLC Today!
If you want to enhance your curb appeal, restore the beauty of your pavers, or maintain a spotless storefront, Gulf Coast Pro Wash, LLC is here to help. We are proud to serve Port Charlotte, FL, and surrounding areas with professional cleaning services that will leave your property looking its best.
Call us today at +1 (941) 830-5630 to schedule an appointment or request a free estimate. Let us help you boost your property’s appearance with our expert cleaning services!
1
