How to solve problems
Posted by: Gustavo Felisberto in Ciência/Tecnologia, Gentoo, GeralGet component A.
Get component B.
Mix together using jSuperMixer or BlenderNet.
Try to find why it does not work using bad logs.
And their tears are filling up their glasses
No expression, no expression
This is how to solve problems That is what they tell you. Please believe it…. please understand that it is the way to do it.
If you spend 95% of the time hitting the technology and 5% working on the solution they something is really wrong with the tools you are using.
require 'monitor'
class Helper < Monitor
attr_reader :threadCounter
def initialize
@threadCounter = 0
super
end
def getInfo(book)
start=false
while (!start)
synchronize do
if @threadCounter <= 5
@threadCounter+=1
start = true
end
end
if !start
sleep(rand(0)*50.0)
end
end
doSomethinElse()
synchronize do
@threadCounter-=1
end
end
I know that active waiting is bad(tm) thing, but I’m starting in the lang and I did it. I solved the problem and did not fight with the tool. Actually I was always feeling that the tool was helping me.
I find it hard to take
When people run in circles it’s a very very
Mad world

Entries (RSS)