Details
-
Aboutstudying process engineering with a bunch of people who think HTML is a programming language and never heared of linux...
-
SkillsC++, JAVA, HTML, JS, PHP
-
Location3. Planet
Joined devRant on 9/17/2017
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
-
Pro tip: always make sure your methods return the correct variable.
I’m currently working with deep neural networks using tensorflow. I needed to generate some test data and wrote a program to create it. I had two text files which each consisted of approximately 5000 lines of text.
I wrote a method that should sort out some words, and make my final data shorter. When I executed the program first time on our server, it spent about 25 minutes, then crashed due to MemoryError (which in Python means that the server didn’t have enough ram). That seemed quite weird since I only had about 10k lines of text, and I even sorted out a bunch of it, and the server has 128gb ram, and nothing’s using it.
Apparently I returned the wrong variable. That meant that my program tried to save 750 quadrillion lines of text rather than just a few thousand.
Always make sure to return the correct variables!1 -
A tourist went into a pet store. As he looked around, a customer came into the store and said to the salesman, "I'd like an Excel monkey!"
The salesman nodded, went over to a cage and pulled out a monkey. He put a leash on the monkey, handed it over to the customer and said: "That's 3,000 euros." The customer paid and left the shop.
Surprised, the tourist went to the seller and said: "But that was a very expensive monkey. Why does it cost so much?" "The monkey can program Excel - very fast, little effort, no mistakes and very cheap!"
The tourist looked at another monkey in a cage. "This one is even more expensive, it costs 5,000 euros. What can he do?" "Oh, this is a web monkey! He masters the design of websites, can program, present and all this useful stuff," said the seller.
The tourist looked around for a while and saw a third monkey in a cage. The price hung on his neck: 25,000 euros. He ran to the seller in astonishment and said: "This one costs more than all the others combined! What the hell can he do?" The salesman replied: "Well, I've never seen him do anything useful, but the other monkeys call him Manager!" -
"I'm not paying for a website that's going to be free to visit, that doesn't make sense"
-A million $ idea guy28 -
Came into work with absolutely no sleep. And now after a couple of hours everything around the office looks weird like I've never noticed stuff before.
Or maybe I'm seeing things...
I fucking need sleep.1