Slashdot Mirror


User: jweatherley

jweatherley's activity in the archive.

Stories
0
Comments
314
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 314

  1. Back to Basic on Solving the Knight's Tour Puzzle In 60 Lines of Python · · Score: 1

    Sinclair BASIC bitches:

    5 REM program to use weighted grid memoir by Geoff Wearmouth.
    10 PRINT TAB 8;"Knight's Tour 4": GO TO 9000: REM initialize and run

    1000 REM recursive subroutine
    1010 IF x>8 OR x<1 OR y>8 OR y<1 THEN RETURN
    1020 IF b$(s,1)<>a$(y,x) THEN RETURN
    1030 IF SCREEN$ (20-y*2,2+x*3)<>" " THEN RETURN
    1040 PRINT AT 20-y*2,1+x*3; PAPER 5+((y+x)=INT ((y+x)/2)*2);(" " AND s<10); s
    1050 IF s=64 THEN PRINT AT 21,8;"SOLVED IN ";m; " MOVES" : STOP
    1060 LET s=s+1: LET b$(s)="23456789": LET m=m+1
    1070 LET x=x+x2: LET y=y+y1: GO SUB 1000: LET y=y-y1: LET x=x-x2
    1080 LET x=x+x2: LET y=y-y1: GO SUB 1000: LET y=y+y1: LET x=x-x2
    1090 LET x=x+x1: LET y=y+y2: GO SUB 1000: LET y=y-y2: LET x=x-x1
    1100 LET x=x+x1: LET y=y-y2: GO SUB 1000: LET y=y+y2: LET x=x-x1
    1110 LET x=x-x1: LET y=y+y2: GO SUB 1000: LET y=y-y2: LET x=x+x1
    1120 LET x=x-x1: LET y=y-y2: GO SUB 1000: LET y=y+y2: LET x=x+x1
    1130 LET x=x-x2: LET y=y+y1: GO SUB 1000: LET y=y-y1: LET x=x+x2
    1140 LET x=x-x2: LET y=y-y1: GO SUB 1000: LET y=y+y1: LET x=x+x2
    1150 IF b$(s)>="0" THEN LET b$(s)=b$(s,2 TO ): GO TO 1070
    1155 LET s=s-1 : REM obsolete backtracking path
    1160 PRINT AT 20-y*2,1+x*3; PAPER 8;"  "
    1170 RETURN

    9000 INPUT "x(1-8): ";x, "y(1-8): ";y : REM starting square
    9005 IF x>8 OR x<1 OR y>8 OR y<1 THEN GO TO 9000
    9010 LET x1=1-(2 AND (x>4)) : LET x2=x1*2
    9020 LET y1=1-(2 AND (y>4)) : LET y2=y1*2
    9030 BORDER 4: CLS : LET s=1: LET m=1
    9040 FOR i=19 TO 162 STEP 16: PLOT 28,i: DRAW INK 1;192,0: NEXT i
    9050 FOR j=28 TO 230 STEP 24: PLOT j,19: DRAW INK 1;0,127: NEXT j
    9060 DIM a$(8,8): DIM b$(65,8)
    9070 FOR i=1 TO 8: READ a$(i): NEXT i
    9075 GO SUB 1040

    9100 REM perfect weighted grid discovered by James Weatherley.
    9110 DATA "22433422"
    9120 DATA "35644653"
    9130 DATA "56788765"
    9140 DATA "36899863"
    9150 DATA "36899863"
    9160 DATA "56788765"
    9170 DATA "35644653"
    9180 DATA "22433422"

    From http://www.wearmouth.demon.co.uk/gw03/ktour.htm

  2. Re:How about . . . on Microsoft Updates Multiple Sysinternals Tools · · Score: 2, Insightful

    The problem is that the ProcessMonitor driver hooks the system call table. The author, Mark Russinovich, states:

    "It's never safe to unload a driver that patches the system call table since some thread might be just about to execute the first instruction of a hooked function when the driver unloads; if that happens the thread will jump into invalid memory."

    Can Linux avoid this problem?

  3. Re:the new dr. who sucks... on Use BitTorrent To Verify, Clean Up Files · · Score: 1

    The End of the World? Not a bad episode, but its main purpose was to demonstrate that the new Doctor Who has a decent budget. 'Blink!' from season three is one of the best episodes ever; classic series included.

  4. Re:Hardware Failure is your bigger concern on Use BitTorrent To Verify, Clean Up Files · · Score: 1

    It's cable from India to the outside world. We were cut off a while back when some ships started dropping their anchors in the wrong place in the Arabian Sea.

  5. Re:Hardware Failure is your bigger concern on Use BitTorrent To Verify, Clean Up Files · · Score: 1

    Bad RAM would be surprising as the machine is stable. I'm more inclined to believe that it is a case of 'shit happens' with networking. As others have pointed out there is a not insignificant chance of an error slipping through with gigabyte sized files. I don't think the router is in the clear either. BitTorrent fixed the problem, but the protcol will keep trying until it gets the correct data. Safari, which is what I used for the original download, only gets one chance.

  6. Re:Scare tactics on UK Banking Law Blames Customers For Insecure OS · · Score: 1

    I've got one of those. I need it to create or modify payments from my bank's (NatWest) site. I wasn't charged for it, and I would be surprised if they cost as much as $70. I would have thought that 70c would be closer.

  7. Re:What about .ARPA on The First 100 Dot Coms Ever Registered · · Score: 1

    'Today, as already mentioned, .arpa contains only certain low-level infrastructure like in-addr.arpa.'

    Low level infrastructure like The Unicycle Blog.

  8. Re:Asimov did say it first, and not just in fictio on Earth's Moon is a Rarity · · Score: 3, Informative
    The gravitational force doesn't just depend on the mass. It depends on how close to the centre of the mass you are. Since the Moon has a smaller radius than the Earth, you are closer to the centre. Here's the maths:

    Gravitational force = GM/r^2
    Earth is 80 times more massive than the Moon
    Earth' radius is 3.66 times that of the Moon
     
    Ratio of gravitational force at surface of Moon and Earth: (Gravitational constant G cancels out)
    Fmoon / Fearth = (Mmoon/MEarth) * (Rearth/Rmoon)^2
                  = 1/80 * 3.66^2
                  = 0.167 ~= 1/6
  9. Re:Another reason for the bank account monitoring on UK Government Loses 15 Million Private Records · · Score: 1

    'How can the public sector cost our country so much and yet be so damn incompetent ?'

    I think the clue is in the question.

  10. Re:Name on Holmes Comet Coma Grows Bigger Than The Sun · · Score: 1

    I studied Astronomy at university. It was quite a long time ago, so I've forgotten most of it. However, I do remember that the lecturers refered to the hot, yellow, burny thing as the sun, and not Sol. Sol is for Sci-Fi, computer games and Spaniards.

  11. Re:Thanks for the warning on Adams' Dirk Gently Serialized on BBC Radio · · Score: 1

    Works fine in India.

  12. Re:Compared to the UK price... on Microsoft Cuts Vista Price To $66 In China · · Score: 1

    The UK pricing is insane. Earth to Microsoft: £1 == $2. I'm a UK expat who lives in India. I bought a MacBook Pro on a recent visit to the UK and want Vista installed so I can play some games. I wasn't about to pay the prices being charged in the UK so I decided to buy in India. The good news is that Home Premium costs the equivalent of £70. The bad news is that I spent a whole day trying to buy a copy in various computer shops in Pune. In the Monsoon. On a bike. In shirtsleeves. No luck. I guess everyone just pirates it over here. However, after several hours riding around town I found a store who will get me a copy tomorrow...

  13. Re:Unbelievable. on Privatunes Anonymizes iTunes Plus · · Score: 2, Insightful

    The two pieces of sekrit data that people seem to get bothered about are plainly visible if you 'Get Info' on a track.

  14. Re:pong on The Ten Most Important Games · · Score: 1

    'and asking the DeLorean (yes I do know, it's not that hard because of Back to the Future :)) to be in the list because of the seagull doors.'

    You'd be wrong there too. Give me a Mercedes 300SL over a DeLorean any day.

  15. Re:my two cents on Demystifying Salary Information · · Score: 1

    They had it on Top Gear last weekend. It looks quite nice when it wasn't moving, but it was absolutely shocking to watch around the track. The Roush Mustang, with suspension somewhat evolved from that of a horsecart, was two seconds a lap quicker despite having less power. Power's no good if you can't put it down.

  16. Re: 95 miles altitude is space..Way Cool on Navy Gets 8-Megajoule Rail Gun Working · · Score: 1

    If it exceeds the escape velocity you're never going to see it again.

  17. Re:Six Degrees to Richard Dawkins on The Trouble with Physics · · Score: 1

    I think you're misrepresenting Dawkins. My reading is that he doesn't think that morality *must* flow from religion, and that people *can* make moral decisions without religion. I thought the section on morality was one of the strongest parts of The God Delusion. He made the point that Christians can either pick and choose which bits of the Bible are used as a moral yardstick, in which case the definition of morality comes from those doing the picking and choosing; or you believe the lot, and morality is indeed handed down from God. The downside with the latter is that it requires you to hold to a morality alien to most people - eg let your daughters get raped rather than a guest, and most of Leviticus and Deuteronomy*. If you go with the former, then why do you need the Bible in the first place?

    * Check out Wikipedia's page on Deuteronomy: nice use of the 'Spoiler warning: Plot and/or ending details follow' template!

  18. Re:Nice Squat on Baltic Avenue You Have There. on Autodesk Suing to Keep Format Closed · · Score: 1

    Back at the dawn of time Delcam made something called DUCT. It was an all in one modelling and machining package for various flavours of UNIX. This was eventually split up into separate products. PowerSHAPE for CAD, and PowerMILL for CAM. These were then ported to NT, and the UNIX was dropped. Earlier this year we released PowerSHAPE-e, the free download that I linked to. As I said, it saves to its own proprietary format. So you can share models with other users, which is fine for computer art, but you're not going to load monsters into Quake I'm afraid.

  19. Re:Nice Squat on Baltic Avenue You Have There. on Autodesk Suing to Keep Format Closed · · Score: 1

    You can save your models to a proprietary format for free. This lets you share files with other PowerSHAPE-e users. If you want to export them to a format that a CAM package, such as Delcam's own PowerMILL, could use then you have to hand over some cash. The idea being you can make pretty 3D models for free, but not cut any steel. If hobbyists are happy with CAD models, they're in luck. If they want to manufacture stuff, they're not so lucky. How many hobbyists have something like this in their basement anyway? ;)

  20. Re:Nice Squat on Baltic Avenue You Have There. on Autodesk Suing to Keep Format Closed · · Score: 1
    I can probably make a safe bet that if other small colleges were put into this same situation of CAD class vs Cost, then the class would go.


    If AutoCAD is too pricy, they could always drop it and download a copy of PowerSHAPE-e for free. Disclaimer: I work for Delcam.
  21. Re:ban wifi? what about other technologies? on UK Schools Bans WiFi Due To Health Concerns · · Score: 1
    TFA:
    Related to this is that various lines of evidence suggest that responses of the central nervous system to RFR could be a stress response [Lai, 1992; Lai et al., 1987a]. Stress effects are well known to cumulate over time and involve first adaptation and then an eventual break down of homeostatic processes when the stress persists.


    So, RFR possibly, maybe, might produce a stress response. Stress is cumulative. Therefore RFR is cumulative. QED. Excellent science, looks like the person who wrote that paper has had a bit too much RFR directed at his skull.
  22. Re:He's pretty fascist in his outlook on Global Warming Debunker Debunked · · Score: 1

    Indeed, Monbiot isn't known as Moonbat for nothing. I remember listening to a Radio Four interview where he outlined much the same, nanny^WMonbiot knows best, agenda. The man is a loon and the first post should be modded Informative rather than Troll.

  23. Re:first one up: on Microsoft Tool To Help Users Avoid Typo Domains · · Score: 1

    I liked the way it scanned my Mac's registry - vary clevar.

  24. Re:Still waiting... on Windows Live Search goes Live · · Score: 1

    Given it a second chance. No error message now, just an expanse of white containing a busy widget and the words 'loading...'. It's been 'loading...' for about five minutes now.

  25. Re:Still waiting... on Windows Live Search goes Live · · Score: 2, Informative

    It was pretty fast in Safari too. I got more results back - still think I'll be sticking with Google for now though:

    Server Error in '/' Application.

    Runtime Error

    Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

    Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

    <!-- Web.Config Configuration File -->

    <configuration>
            <system.web>
                    <customErrors mode="Off"/>
            </system.web>
    </configuration>

    Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

    <!-- Web.Config Configuration File -->

    <configuration>
            <system.web>
                    <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
            </system.web>
    </configuration>