Orbiter-Forum  

Go Back   Orbiter-Forum > Blogs
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Notices

Old

Underwhelming Python labs (compsci)

Posted 09-26-2011 at 07:06 PM by Izack
Updated 09-26-2011 at 07:08 PM by Izack

Today I had a 4-hour lab period in which I was expected to write a program that takes an image and makes it grayscale. We work in a watered-down Python environment running in Java (WHY?!).

Obviously it took about 5 minutes to boot the computer, setup the environment and write a paragraph, then submit it:

Code:
def grayScale(redWeight,greenWeight,blueWeight):
  pic=makePicture(pickAFile())
  show(pic)
  for p in getPixels(pic):
    r = getRed(p)*redWeight
...
Izack's Avatar
Non sequitur
Posted in Uncategorized
Views 2055 Comments 3 Izack is offline
Old
Rating: 4 votes, 4.75 average.

The how's and why's of rating addons

Posted 09-26-2011 at 10:00 AM by RisingFury

For a while I've been observing the addon voting system on OrbitHangar and it seemed to me like people didn't put enough thought into the vote the assign to an addon, or that in some cases, they vote dishonestly, because they don't want to offend the author.

So I decided to write guide that will hopefully provoke some thought, before a rating is given. This has been a long time coming.

I initially intended to write a blog, but I soon realized that the amount of content...
RisingFury's Avatar
OBSP developer
Posted in Uncategorized
Views 1713 Comments 6 RisingFury is offline

All times are GMT. The time now is 11:56 PM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 2007 - 2012, Orbiter-Forum.com. All rights reserved.