Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Excell or something else for word combinations?

  • 12-12-2011 12:18am
    #1
    Registered Users, Registered Users 2 Posts: 3,849 ✭✭✭


    Hey guys.

    I’ve been using javascript to code bespoke domain name tools, but there is a lot of work involved.

    I wonder if anyone can tell me what software or web tools can make text outputs from a word chart. (which can then be fed into GoDaddys batch tool)

    More speficially, I want to be able to make 2 lists of words, and get an output of every possible combination of words.

    eg

    List 1:
    Egg
    Meat
    Bread

    List 2:
    Friend
    Guru
    Zone


    SOLUTION:
    EggFriend
    EggGuru
    EggZone
    MeatFriend
    MeatGuru
    MeatZone
    BreadFriend
    BreadGuru
    BreadZone

    That ^ on a much larger scale. I’m sure Access or Excel might be able to do that, but I don’t have them yet.

    Thanks for your time.


Comments

  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    I am sure it could be done a lot easier in Perl or Python. Does it have to be a native application, or would it be possible to install another application to provide the solution?

    I've subscribed to this thread. If I have time in the morning, Ill write some code in one of those languages.


  • Registered Users, Registered Users 2 Posts: 3,849 ✭✭✭condra


    Hey thanks for the reply. To be honest my Javascript and coding skills are very basic.

    I found something which seems to do the job here:
    http://www.ranks.nl/cgi-bin/ranksnl/tools/key_combiner.cgi?duo=1&charset=

    Please don’t go to the trouble of coding a live version!

    I do appreciate the offer though.


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    condra wrote: »
    Hey thanks for the reply. To be honest my Javascript and coding skills are very basic.

    I found something which seems to do the job here:
    http://www.ranks.nl/cgi-bin/ranksnl/tools/key_combiner.cgi?duo=1&charset=

    Please don’t go to the trouble of coding a live version!

    I do appreciate the offer though.

    I know you said don't but it took five minutes in python and was a good way of waking up:
    #!python
    
    ListA = ["egg", "bread", "meat", "fish", "fruit", "vegetable"]
    ListB = ["friend", "zone", "guru", "expert", "knife", "cup", "plate", "turkey-baster"]
    
    for item in ListA:
            for item1 in ListB:
                    print item + item1
    

    Change the list variables as you need to.


  • Registered Users, Registered Users 2 Posts: 3,849 ✭✭✭condra


    That works a treat!

    That was actually my first time using Python. Pretty cool :)

    Cheers!


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    condra wrote: »
    That works a treat!

    That was actually my first time using Python. Pretty cool :)

    Cheers!

    I started learning python about 3 months ago, and to be honest, once you know what you want to do it writes itself.

    That literally took me 5 minutes.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,849 ✭✭✭condra


    syklops wrote: »
    I started learning python about 3 months ago, and to be honest, once you know what you want to do it writes itself.

    That literally took me 5 minutes.

    That’s cool. I might get stuck into some Python some time, though I should probably focus on improving my javascript skills first!

    Impressed at how little code was needed with Python.


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    condra wrote: »
    That’s cool. I might get stuck into some Python some time, though I should probably focus on improving my javascript skills first!

    Impressed at how little code was needed with Python.

    Who says you have to be exclusive. Why do you need to improve your javascript?


Advertisement