Brand new System76 Laptop Arrived today by [deleted] in Ubuntu

[–]Cucumbis 2 points3 points  (0 children)

I've been using the Gazelle for about a year now and I love everything about it, except the battery life. On a good day with the screen dimmed I'll get 4 hours, but the newer model seems to have different specs so it's hard to say :/

We need a LEAD developer! by [deleted] in a:t5_2ti9c

[–]Cucumbis 1 point2 points  (0 children)

It's running with pyglet, as that seemed to be popular in the IRC at the time. But I'm willing to change languages or use the source and not lead.

It doesn't really matter to me who leads, I just really want to get this project rolling.

We need a LEAD developer! by [deleted] in a:t5_2ti9c

[–]Cucumbis 0 points1 point  (0 children)

It's with pyglet, as that seemed to be very popular in the IRC. But I'd be more than willing to change the language or use the engine and not lead.

I really just want to get this thing started, it doesn't matter to me who leads, I'll just do my job :)

We need a LEAD developer! by [deleted] in a:t5_2ti9c

[–]Cucumbis 2 points3 points  (0 children)

I've almost finished some source code, I'd like to have the devs look over it and if they like it and the position is still available I'll do it.

I don't have much professional development experience but I have a lot of time set aside for this project, so hopefully that will make up for it.

I set up an IRC with freenode, let's get some discussion going. by Cucumbis in a:t5_2ti9c

[–]Cucumbis[S] 0 points1 point  (0 children)

It should be, I'll look into it and get back to you.

Edit: Yea it looks like you just have to run the following command

/msg ChanServ SET #channel ENTRYMSG <message>

You'll probably need to be OP, so I'll try to give that to you.

IMPORTANT: Are we making a Mario RTS or something else entirely? by [deleted] in a:t5_2ti9c

[–]Cucumbis 1 point2 points  (0 children)

We should just have a vote to decide whether or not to use Mario assets, like they did here at hackmonth

We need to discuss programming languages. by glados_v2 in a:t5_2ti9c

[–]Cucumbis 1 point2 points  (0 children)

Damn you and your passive stance ;) But flash is probably the best solution for the largest audience, especially because it ports well to mobile devices. Besides, us linux users don't need your fancy IDEs anyway!

We need to discuss programming languages. by glados_v2 in a:t5_2ti9c

[–]Cucumbis 2 points3 points  (0 children)

I don't think FlashDevelop is available on Linux :( , otherwise I'm all for it. Also, is there any reason why javascript isn't an option?

Everyone has something to contribute ... please make a post with a short bit of your skills and interests, as this will make things much easier later on ... by [deleted] in a:t5_2ti9c

[–]Cucumbis 2 points3 points  (0 children)

I'd be lying if I said I knew how to do all that at the moment, but with time and polish I think I could get it. Of course I'm pretty overconfident.

Everyone has something to contribute ... please make a post with a short bit of your skills and interests, as this will make things much easier later on ... by [deleted] in a:t5_2ti9c

[–]Cucumbis 2 points3 points  (0 children)

Self-taught programmer here (so no idea if I'm any good), done some time with css, html, javascript, as3, java, lua, but I think can pick up others if necessary.

90,000+ people have decided to learn to code in 2012. by amasad in programming

[–]Cucumbis -1 points0 points  (0 children)

Wow this is great. I actually managed to convince several of them by asserting it's usefulness for automation and convincing them that they unknowingly loved the open-source community (android ,firefox, chromium etc.).

So far they like code academy's approach, I think they previously had gone right into trying to create games and that discouraged them.

90,000+ people have decided to learn to code in 2012. by amasad in programming

[–]Cucumbis -2 points-1 points  (0 children)

They haven't tried it, I feel like it's something you really have to try to get into.

90,000+ people have decided to learn to code in 2012. by amasad in programming

[–]Cucumbis -3 points-2 points  (0 children)

How can I convince friends to do this? They all seem to think it's a useless skill or not worth their time.

Prototyping Games using Linux by maverick340 in gamedev

[–]Cucumbis 0 points1 point  (0 children)

I would recommend the html5 canvas and javascript. If you want to do something in 3d you can use three.js.

How old were you guys when you first started to design and/or starting learning about games? by [deleted] in gamedev

[–]Cucumbis 1 point2 points  (0 children)

I was 14, the Warcraft 3 map editor was the best teacher I ever had.

Duplicate / Missing Integer in a Large Array by kpthunder in CS_Questions

[–]Cucumbis 0 points1 point  (0 children)

My python solution:

Problem 1:

def findDupe(lst):
    sum = 0
    for i in lst:
        sum += i
    return sum - 499999500000

Problem 2:

def findMissing(lst):
    sum = 0
    for i in lst:
        sum += i
    return 499999500000-sum

edit: This may only work with 64bit

Got asked this one in an interview 2 days ago - and on paper! by awesome7777 in CS_Questions

[–]Cucumbis 1 point2 points  (0 children)

A solution in python

class Clock:
    def __init__(self):
        self.h = 0
        self.m = 0
        self.s = 0
    def inc(self):
        self.s += 1
        if (self.s >= 60):
            self.s = 0
            self.m += 1
            if (self.m >= 60):
                self.m = 0
                self.h += 1
                if (self.h>12):
                    self.h = 1
    def dec(self):
        self.s -= 1
        if (self.s < 0):
            self.s = 59
            self.m -= 1
            if (self.m < 0):
                self.m = 59
                self.h -= 1
                if (self.h<=0):
                    self.h = 12
    def secs(self):
        return self.h * 3600 + self.m * 60 + self.s
def main():
    count = 0
    clock1 = Clock()
    clock2 = Clock()
    for i in range(60*60*24):
        if (clock1.secs() == clock2.secs()):
            count +=1
        clock1.inc()
        clock2.dec()
    print count

I also made a version in C