Details
-
AboutTime is entropy
-
Skillspython
-
LocationGaborone
-
Github
Joined devRant on 1/20/2019
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
-
This isn't exactly stack over flow, but I started learning C today in the hopes of getting a better understanding for system programming.
the question is as follows
Write a program that reads the content of a file, and prints out all unique words from the file and their number of occurrences. [10 pts]
i.e:
[input]
file.txt
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
[output]
{'Lorem': 1, 'Ipsum': 1, 'has': 1, 'been': 1, 'the': 2, "industry's": 1, 'standard': 1, 'dummy': 1, 'text': 1, 'ever': 1, 'since': 1, '1500s,': 1, 'when': 1, 'an': 1, 'unknown': 1, 'printer': 1, 'took': 1, 'a': 2, 'galley': 1, 'of': 1, 'type': 2, 'and': 1, 'scrambled': 1, 'it': 1, 'to': 1, 'make': 1, 'specimen': 1, 'book.': 1}
Note: Your program should use fork() to read the file into sub parts and combine the contents together for processing. You can create as many forks as you want as long as you have more than one process.
my code is as follows and, I want to to call the function using fork(), any ideas on where I can start, I have already tried and i keep getting the code run multiple times12 -
Soooo. World war 3.. 🤷🏾♂️
Safe to say most of us here will be fighting a cyberwarfare. 😂😂😂 No hard feelings folks.10 -
I hate that the only thing that gets me working is a deadline.. honestly I just want to be more productive is that too much to ask for...2
-
Hi my name is Kray and am an addict. I subconsciously create code with Bugs so I can later solve, I then after get a feeling of deep euphoria. It's like discovering fire albeit it's more like using matches to start one ( kgm Stack overflow.) 😅 But it's a a healthy habit in a safe environment it could be worse, I could be on narcotics... No wait I take it back I have been dabbling with JavaScript 🤦🏾♂️😂😂..2
-
So part of my ok assignment was to Code a simple quize game. So I used a while loop to initiate the quiz. One of the constraints was that after 6 questions answered wrong the quize ends and if you make it to the end of the quize it gives you the number of questions you got wrong. 🤣 The damn code always ran to the end despite having gotten 6questions wrong.
The problem ? Turns out I needed a break. 😂😂😂 Pun intended. -
Last night me and my friend were on a WhatsApp call discussing how we should practice algorithms and data structures more. We texted the logistics after and he sent me a calendar invite on google. I swear to god this morning I had adds talking about data algorithms all over YouTube but I have never googled this issue in the near past 🤔 this can’t be a coincidence...9
-
Just accidentally remembered my first encounter with Discrete Math... who knew hell could be a memory.
-
Question: What is your inspiration in life.
Answer: That these guys fuck up more than I can ever in this life.33 -
Am at a Hackathon and am being judged for coding in Java, and I have been relegated to developing the front end. I feel judged.6
-
The year is 2035 and HR checks your rants to see what kind of employee you will be :D lord save us.1
-
Had a work project I needed to do on After effects but I didn't have my Laptop with me. I ended up rendering my project using a 5th gen i5 Laptop with no GPU. The room smells like burnt plastic now. Someone send me a GPU.6