+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 41 of 41
General Chat Thread, Geek challenge in General; Originally Posted by sparkeh I lost interest and dropped it, guess I'm not a suitable candidate Your not the only ...
  1. #31

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,371
    Thank Post
    368
    Thanked 635 Times in 517 Posts
    Rep Power
    157
    Quote Originally Posted by sparkeh View Post
    I lost interest and dropped it, guess I'm not a suitable candidate
    Your not the only one, it's more a bit of fun then anything. I did it in C#, which lets face it, isn't gonna get you a job at a linux based company. It was more the fact I did it more then anything.

  2. #32


    Join Date
    Aug 2012
    Posts
    16
    Thank Post
    8
    Thanked 8 Times in 7 Posts
    Rep Power
    236
    Quote Originally Posted by matt40k View Post
    Your not the only one, it's more a bit of fun then anything. I did it in C#, which lets face it, isn't gonna get you a job at a linux based company. It was more the fact I did it more then anything.
    I was expecting a PowerShell script from @Ric_ again it was just the fun of doing it nothing serious.

  3. #33

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,371
    Thank Post
    368
    Thanked 635 Times in 517 Posts
    Rep Power
    157
    I think it could be a good problem to solve with RaspBerry Pi, first lesson could be waste with them trying to scope the problem, second lesson, break out the Pi and solve it in python. Would mean @DosBox would need to delete this topic.

  4. #34

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,617
    Thank Post
    1,230
    Thanked 776 Times in 673 Posts
    Rep Power
    235
    Quote Originally Posted by AMLightfoot View Post
    the suggestion would seem to be that they are looking for a single line of code.
    Blast, I can only get it down to 4 lines with Python.

  5. Thanks to dhicks from:

    matt40k (1st August 2012)

  6. #35

    matt40k's Avatar
    Join Date
    Jun 2008
    Location
    Ipswich
    Posts
    4,371
    Thank Post
    368
    Thanked 635 Times in 517 Posts
    Rep Power
    157
    Knew you would get it! Now make it into a lesson and get it in the classroom!

  7. #36

    tmcd35's Avatar
    Join Date
    Jul 2005
    Location
    Norfolk
    Posts
    5,608
    Thank Post
    845
    Thanked 877 Times in 728 Posts
    Blog Entries
    9
    Rep Power
    325
    Quote Originally Posted by dhicks View Post
    Blast, I can only get it down to 4 lines with Python.
    Back in the old 8bit days one of the CPC magazines (Amstrad Action - I think) used to run a feature called one-liners. The idea was this - you could fit as many instructions on one line as you liked so long as each instruction was separated with a semi-colon. However the CPC only allowed 256 characters (I think it was) in one line of BASIC. So the challenge was to see how many instructions, and how complicated a program, you could create in those 256 characters.

    Entire arcade games where written in BASIC/Machine Code that fitted within the 1 line character limits.

  8. #37

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,617
    Thank Post
    1,230
    Thanked 776 Times in 673 Posts
    Rep Power
    235
    Quote Originally Posted by matt40k View Post
    Knew you would get it! Now make it into a lesson and get it in the classroom!
    Actually, I think we're planning a LOGO-alike Python library for use with Raspberry Pi based "Mars explorer" robots. We can start the pupils off with some simple LOGO commands, then move on to event-driven LOGO, then they can get to the stage where they can re-implement the underlying Python library to drive the robot's motors if they wish. My plan is to create an emulator first, designed so pupils can see their robot trundling around the surface of Mars, then they can use their exact same code on a physical robot (which is always instructive, as finely-crafted navigation algorythms meet real-world mesurement uncertanties). My problem at the moment is getting the Raspberry Pi working and hooked up to some motors - mine doesn't seem to want to boot at the moment due to power issues, I think it either arrived broken or I've tried plugging too many random USB devices in already.

  9. Thanks to dhicks from:

    AMLightfoot (1st August 2012)

  10. #38


    AMLightfoot's Avatar
    Join Date
    Feb 2011
    Location
    Hampshire, England
    Posts
    2,121
    Thank Post
    367
    Thanked 608 Times in 390 Posts
    Rep Power
    248
    Quote Originally Posted by dhicks View Post
    Actually, I think we're planning a LOGO-alike Python library for use with Raspberry Pi based "Mars explorer" robots. We can start the pupils off with some simple LOGO commands, then move on to event-driven LOGO, then they can get to the stage where they can re-implement the underlying Python library to drive the robot's motors if they wish. My plan is to create an emulator first, designed so pupils can see their robot trundling around the surface of Mars, then they can use their exact same code on a physical robot (which is always instructive, as finely-crafted navigation algorythms meet real-world mesurement uncertanties). My problem at the moment is getting the Raspberry Pi working and hooked up to some motors - mine doesn't seem to want to boot at the moment due to power issues, I think it either arrived broken or I've tried plugging too many random USB devices in already.
    Wow! That sounds really exciting! I wonder what the chances are of linking the output from the emulator into the Google Mars project and 'see' the progress of the 'rover'. Or perhaps the Google Moon project?

  11. #39
    Beard's Avatar
    Join Date
    Jun 2012
    Location
    Haywards Heath
    Posts
    15
    Thank Post
    0
    Thanked 2 Times in 2 Posts
    Rep Power
    5
    Quote Originally Posted by SimonD View Post
    They couldn't solve it either, google calculator TSK!
    the taunting honestly helped....honestly...

  12. #40
    kearton's Avatar
    Join Date
    May 2007
    Location
    Yorkshire, via NZ ;)
    Posts
    850
    Thank Post
    135
    Thanked 93 Times in 81 Posts
    Rep Power
    43
    HA! Got it! Just using AutoIt (18 lines of code) too...
    Last edited by kearton; 1st August 2012 at 09:23 PM.

  13. #41

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    115
    Quote Originally Posted by matt40k View Post
    I did it in C#
    Won't bother now but I was going to do that via WebClient() last night after reading @Michael's giveaway (surely?!?) comment about speed, except it was already well past bed-time.

    Aside from scraping the HTML I was considering checking out whether the ID in the initial response might encode a timestamp+ correct answer i.e. whether I might be able to skip the initial request and just craft and post correct answers to a questions it hasn't actually asked me... I'm curious, if anyone's read the *.pl is that feasible?

SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Geek maths and classroom control
    By ITWombat in forum Educational Software
    Replies: 6
    Last Post: 21st April 2006, 08:49 PM
  2. Replies: 8
    Last Post: 13th February 2006, 03:05 PM
  3. Geeks?
    By GrumbleDook in forum Jokes/Interweb Things
    Replies: 2
    Last Post: 10th January 2006, 07:11 PM
  4. Top 11 Geek Pickup Lines (Part 1)
    By Geoff in forum Jokes/Interweb Things
    Replies: 5
    Last Post: 5th December 2005, 12:28 PM
  5. Sleazy geek bars..
    By Dos_Box in forum Other Stuff
    Replies: 3
    Last Post: 12th August 2005, 07:54 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •