HNHacker News
TopNewBestAskShowJobs

globalrev

349 karma · joined May 4, 2008

submissionscomments
globalrev··on How to Insall Linux Mint 7 (Gloria)
What about wireless? I have a functioning wireless connection with my Vista desktop. However it seems really hard to get going with Ubuntu. I can't figure out exactly what to do with Ndiswrapper and if I need a new driver. Can't I just use what I have on Linux if I allow proprietary stuff?

Wireless still seems to be the most annoying thing about Linux.

globalrev··on Knuth is so revered among computer scientists that they won't cash his checks.
so his books contained 8000 errors?
globalrev··on Reverse image search engine
OK one use of this is to check for your copyrighted photos obv.

But will people pay for such a service?

There are just so many companies starting with seemingly no way to make money.

globalrev··on Duck Duck Go Architecture
do you make money?
globalrev··on NSA offering 'billions' for Skype eavesdrop solution
Doesn't Skype make money(as in profit not just revenue)?
globalrev··on Ruby-style Blocks in Python
This has been up so many times. It's not happening, live with it. Python "lambdas" can do most things you need anyway.Normally I don't really find the need for supercomplicated lambdas and you can do if-else in lambda s in Python with the ternary operator, see below:

####### def throwaway_function(emp): if emp.salary > developer.salary: return fireEmployee(emp) else: return extendContract(emp)

employees.select(throwaway_function) ######

Python lambda: filter(lambda emp: fireEmployee(emp) if emp.salary > developer.salary else extendContract(emp), employees)

Don't know what select does but it sounds like filter. So if that works as intended(is the ruby version both returning value and side-effecting?) or not I'm not sure but you probably could make it.

globalrev··on Nice book on convex optimization techniques
Could someone give a very simple example of a problem to solve with this?
globalrev··on Using evolving images for image compression: 256x256 image in 1k
OK but then how is this "working"? I mean it is very cool and it might work if someone puts effort into it. But is there any reasonable way of using this right now?
globalrev··on Using evolving images for image compression: 256x256 image in 1k
does GA and GP behave somewhat predictable then? Couldn't it, if you are unlucky, take a very long time to converge?
globalrev··on News.ycombinator software/similar available?
It is not that hard to build yourself.
globalrev··on The Pirate Bay Trial Day 3: The ‘King Kong’ Defense
They seem to say generally that they don't make much money but obviously that doesn't mean that they don't.
globalrev··on How Google and Facebook are using R
Does R have a Java binding?
globalrev··on The Pirate Bay Trial Day 3: The ‘King Kong’ Defense
Is the pirate bay making money?
globalrev··on Remember the flash genetic algorithm car game?
it doesn't load for me, just a blank screen, what do I need to do?
globalrev··on Mathematica home edition, finally. $300.
how is Mathematica compared to Matlab? As I understand Mathematica is for all kinds of math while Matlab is basically only matrix and linear algebra-stuff(with a lot of libraries for applications of that).

Is Mathematica as good as Matlab for linear algebra?

globalrev··on My Git Workflow
I didn't catch how, could you explain?
globalrev··on Why Subversion does not suck
All I know is is that Git i supereasy to use for a beginner for 1-man-projects if you get the right help or tutorial. Preferrably start a repo at github and you will be waled through how to create a repo(not that there is much to it).

git init git add . git commit -m "blah" git push origin master

git branch name git checkout

easy-peasy

globalrev··on Linux - Stop holding our kids back
Did I miss something? There are 2 parts, one which is pro microsoft and then a defense post which is pro Linux...right?
globalrev··on Genetic Programming: Evolution of Mona Lisa
I just did this because I got inspired. What does it count as, genetic programming? It uses naive mutation and crossover(don't know if they qualfiy as real crossover and mutation) and a simple fitness function. It is fairly pointless since all it does is find a list with ones but it does so in just around 400 generations while random guessing takes forever.

  from __future__ import division
  import matplotlib.mlab as M
  import matplotlib.pyplot as plt
  import random as R
  
  def crossover(a, b):
      new = []
      for x,y in zip(a,b):
          if R.random() > 0.5:
              new.append(x)
          else:
              new.append(y)
      return new

  def mutate(xs):
      xs[int(R.uniform(0, len(xs)))] = int(R.uniform(1, 10))
      return xs

  def fitness(xs, goal):
      summa = 0
      for x,y in zip(xs, goal):
          summa += abs(x-y)
      return summa, xs, True if summa == 0 else False

  def nFittest(xs, goal, n=2):
      fittest = sorted(fitness(x, goal) for x in xs)[:n]
      if fittest[0][2] :
          return fittest[0]
      elif fittest[1][2]:
          return fittest[1]
      else:
          return fittest

  def init(fields, n):
      return [[int(R.uniform(1,10)) for x in     xrange(fields)] for y in xrange(n)]

  def newGen(a,b,n):
      next = [crossover(a,b) for x in xrange(n)]
      mutated = []
      for x in next:
          if R.random() > 0.9: mutated.append(mutate(x))
          else: mutated.append(x)
      return mutated

  def run(printing=True):
      n = 0
      first = init(15, 10)
      while n < 1000000:
          n += 1
          next = nFittest(first,   [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1], 2)
          if type(next) == tuple: break
          first = newGen(next[0][1],next[1][1], 10)
      if printing:
          print "Nbr of generations: ", n
          print next
      return n, next

  def plot():
      trials = [run(False)[0] for x in range(100)]
      print "Done trials"
       averages = [sum(trials[:x]) / len(trials[:x])\
                  for x in xrange(1,len(trials)+1)]
      print "Done averages"
      plt.plot([x for x in xrange(len(averages))],   averages, 'ro')
      plt.axis([1, 100, 0, 1000])
      plt.show()

  def test():
      goal = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
      c=0
      while 1:
          c += 1
          x = [int(R.uniform(1,10)) for y in range(15)]
          if sum(x) == 15: break
          if c % 10000 == 0: print c
      print x
globalrev··on Any College Will Do
"I don't think so, not beyond your very first couple of jobs." And how long is that, 5-10years?

And for the really attractive jobs, do you even get a shot if straight out of college if you are not from a top one(often you don't either how because of no experience but when you do)?

Don't want to bash the point though. Effort > talent, I agree.

globalrev··on Any College Will Do
Sure but what I mean is for engineering the difference between a good and bad college might be bigger than say for economy?
globalrev··on Any College Will Do
Not an expert on the area at all but it seems perhaps the college you go to is more important for technical professions than business ones?
globalrev··on Clojure could be to Concurrency-Oriented Programming what Java was to OOP
Does anyone else think so? I'm using Clojure a lot and really like it.

But Lisp has been around for 50 years and never hit the mainstream so it seems there perhaps is something about it that doesn't fit with most programmers?

Also it only offers one form of concurrnecy and while I like it there is still much speculation and research in the area. Scala for example kind of builds on the whole Java-language and offers a more recognizable language for Java-developers and more opportunities to roll your own concurrency-mechanisms, or at least that's the impression I've gotten.

And then we have Haskell and Erlang.

globalrev··on 20 questions game that works astonishingly well
I beat it with The good in the good the bad and the ugly. He answered Leon.

It is timing out all the time, unberable.

globalrev··on Prosper.com, P2P Lending Startup, Shut Down by SEC [pdf]
Not to be a know-it-all and I-told-you-so but how could they not see the problem with this model?
globalrev··on My Job Interview at Google
Could anyone point me on how to solve this(either a solution or preferrably a pointer on how to get to it): "Q: Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7."

First I thought it was simple but the I got stuck, maybe I'm just tired. No matter how I twsit and turn it I seem to get only an even distribution over 5 numbers.

globalrev··on Sales of F# books
Please don't post stuff from that uber-troll Jon Harrop.
globalrev··on Python does support if-else in lambdas...
The formatting got messed up but yes I agree. They were just examples, not the best ones perhaps.

I have felt a need for it sometimes though. Very complicated lambdas are perhaps generally better off as normal functions.

But I hate creating one-time-use functions if it isn't necessary.

globalrev··on CNN/Fox Projection: Obama wins presidential election.
Congrats!

America is defineately not nr 1 anymore but maybe now you can get back to being so!

globalrev··on Weebly (YC winter 07) scores 1 million users, reaches profitability
That answer means you must have misunderstood what I said. Anyway, I was mostly looking for an explanation of what is so great about Weebly because I didn't get it.

Surely we must be able to critisize here right?

Page 1 of 5Next →