Author Topic: Contest Winner  (Read 3355 times)

0 Members and 1 Guest are viewing this topic.

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Contest Winner
« on: November 27, 2010, 04:29:42 pm »
Well done to Apex,
I was hoping that David L Jones would come out..... that would of been a real hoot ;D ;D
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline dengorius

  • Regular Contributor
  • *
  • Posts: 96
Re: Contest Winner
« Reply #1 on: November 28, 2010, 06:00:28 pm »
Gratz Apex.

I want to see the source code of the wobulator, I'm curious :D

And next time I wanna see something electronics related instead of the dice. I don't know like the least digit of the resistance of a resistor drawn at random from a box :P

Cheers
 

Offline migsantiago

  • Frequent Contributor
  • **
  • Posts: 381
  • Country: 00
    • MigSantiago's Web Site
Re: Contest Winner
« Reply #2 on: November 28, 2010, 06:18:44 pm »
Why did Dave call it the wobulator?

I see no relation between that and this:
http://en.wikipedia.org/wiki/Wobulator
 

Offline DJPhil

  • Frequent Contributor
  • **
  • Posts: 511
Re: Contest Winner
« Reply #3 on: November 29, 2010, 02:14:50 am »
I thought he said 'wombulator', and I recognized it a generic 'doohickey' sort of term. I've heard it used in the context of an imaginary device, the sort that the new guy gets sent looking for (like left handed screwdriver or brick stretcher, et. al.).

Also, congratulations Apex. :)
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 29272
  • Country: au
    • EEVblog
Re: Contest Winner
« Reply #4 on: November 29, 2010, 03:14:04 am »
Well done to Apex,
I was hoping that David L Jones would come out..... that would of been a real hoot ;D ;D

That's possible, I didn't code out the first entry!

Dave.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 29272
  • Country: au
    • EEVblog
Re: Contest Winner
« Reply #5 on: November 29, 2010, 03:15:09 am »
And next time I wanna see something electronics related instead of the dice. I don't know like the least digit of the resistance of a resistor drawn at random from a box :P

Good idea, I like it!

Dave.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 29272
  • Country: au
    • EEVblog
Re: Contest Winner
« Reply #6 on: November 29, 2010, 03:18:55 am »
I want to see the source code of the wobulator, I'm curious :D

It ain't that exciting I'm afraid:

Quote
Module Module1

    Sub Main()
        Dim label As String = " The EEVblog Contest Wobulator "
        Dim TextLine As String
        Dim name As String
        Dim Asterix As Integer
        Dim Counter As Integer
        Dim Counter2 As Integer
        Dim NameArray(10000) As String
        Dim NameArray2(10000) As String
        Dim c As Integer
        Dim d As Integer
        Dim tempstring As String
        Dim duplicate As Boolean
        Dim DuplicateCount As Integer
        Dim Random As Integer

        If Command$() = "" Then
            MsgBox("No filename specified")
            End
        End If

        FileOpen(1, Command$, OpenMode.Input)
        Counter = 0
        Do While Not EOF(1)
            TextLine = LineInput(1)

            If Left$(TextLine, 8) = "Post by:" Then     'look only for lines with usernames
                'filter name from text line
                name = Mid$(TextLine, 11)
                Asterix = name.IndexOf("*")
                name = Left$(name, Asterix)
                NameArray(Counter) = name
                Counter = Counter + 1
            End If

        Loop
        FileClose(1)

        MsgBox(Str$(Counter) + " names found.", 0, label)

        Counter2 = 0
        DuplicateCount = 0
        For c = 0 To Counter - 1
            duplicate = False
            tempstring = NameArray(c)
            For d = c + 1 To Counter - 1
                If NameArray(d) = tempstring Then
                    duplicate = True
                    DuplicateCount = DuplicateCount + 1
                End If
            Next
            If duplicate = False Then
                NameArray2(Counter2) = tempstring
                Counter2 = Counter2 + 1
            End If
        Next

        MsgBox("Found " + Str$(DuplicateCount) + " duplicate names. We now have " + Str$(Counter2) + " names.", 0, label)

        MsgBox("Now doing random shit to calculate the winner...", 0, label)

        Randomize()
        Random = Int(Rnd() * Counter2)

        MsgBox("And the winner is... " + NameArray2(Random), 0, label)

    End Sub

End Module
 

Offline dengorius

  • Regular Contributor
  • *
  • Posts: 96
Re: Contest Winner
« Reply #7 on: November 29, 2010, 01:56:18 pm »
Cheers mate, like I said I was just curious. You can tell a few things from how people write code ;)

More than anything I wanted to see what language you used.

Glad you liked the resistor idea :)
 

Offline caroper

  • Regular Contributor
  • *
  • Posts: 193
  • Country: za
    • Take your PIC
Re: Contest Winner
« Reply #8 on: May 28, 2012, 12:41:47 pm »
Cheers mate, like I said I was just curious. You can tell a few things from how people write code ;)

More than anything I wanted to see what language you used.

Glad you liked the resistor idea :)

It's rigged I tell you, rigged, dengorius suggested the the Idea of the last digit and saw the code :)
Seriously thought, Congratulations Mate.

Cheers
Chris

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3706
  • Country: sg
    • T4P
Re: Contest Winner
« Reply #9 on: May 28, 2012, 01:49:02 pm »
Cheers mate, like I said I was just curious. You can tell a few things from how people write code ;)

More than anything I wanted to see what language you used.

Glad you liked the resistor idea :)

Mate, well done !
You suggested it and scored it in the process, hope you love the meter !
 

Offline dengorius

  • Regular Contributor
  • *
  • Posts: 96
Re: Contest Winner
« Reply #10 on: May 29, 2012, 09:48:18 am »
Ahhaha, yes of course is rigged!! I was playing with butterflies and cosmic rays (xkcd docet, http://xkcd.com/378/ ) to flip bits on Dave's ram during his random shit calculations :D


Thanks everybody and thanks Dave :)

Cheers
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2010
  • Country: do
Contest Winner
« Reply #11 on: July 14, 2012, 01:11:33 am »
Make a circuit with a 555 and a decade counter as an electronic die. :)

And don't stick a bloody micro controller into the circuit even if it is $0.50 PIC10F!
Nothing like the smell of rosin core solder in the morning.
"Could you not use some of that crowdfunded $1.5 million to hire a graphic designer who understands perspective?" -Delta
"A soldering station I bought once had a sticker on it that said, I shit you not, 'QENUINE'." -c4757p
 

Offline johnnyfp

  • Frequent Contributor
  • **
  • Posts: 258
  • Country: nz
Re: Contest Winner
« Reply #12 on: July 14, 2012, 10:12:26 pm »
How about i print 555 on a pic10. Does that count  :P

A most convincing cheat circuit competition thats what we need.
« Last Edit: July 14, 2012, 10:15:53 pm by johnnyfp »
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 15060
  • Country: za
Re: Contest Winner
« Reply #13 on: July 15, 2012, 06:10:40 am »
OHL has that covered way too well............
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf