• Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Recommend a good alternative to DropBox?

    You can pay DropBox a few extra bucks to add some capacity. That is the idea to get you started for free. Google, MS and Apple all do this. A …
  • Member Avatar for vegaseat
    vegaseat

    Edited A taste of Swift part3

    Part 3 of the taste of Swift explores class objects in Apple's Swift language. A class allows you to group methods (class functions) together that belong together. Class Person groups …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 4

    Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has a newline default. The sort of thing that Python3 did to print(). There are some …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A Taste of Swift part 2

    Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has a newline default. The sort of thing that Python3 did to print(). There are some …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has a newline default. The sort of thing that Python3 did to print(). There are some …
  • Member Avatar for vegaseat
    vegaseat

    Edited Exploring Swift Sets

    Like most modern languages Swift has sets and set operations. Here is a quick look. Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Nature's Temper

    I trade you Halifax for any swell California wild fire.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Is Swift comming to Windows?

    If you do a lot of scientific programming, then Python has a leg up on Swift.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Updated Tiny Tkinter Calculator (Python)

    Any time you see a lot of rather repetitive code, a loop or a function comes to mind!
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Computer Slaves

    Similar efforts are going on with your home appliances and unfortunately airplanes. Down the road is the driverless car, the hackers golden opportunity for mischief. "Sorry officer, but the car's …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Computer Slaves

    "Practically all carmakers are doing their best to turn the modern automobile into a smartphone." Quote from the above article. Most of us simply don't know about these efforts, or …
  • Member Avatar for vegaseat
    vegaseat

    Revoked Solved Status for CSV to XML in Python

    I have the CSV with the following column headers: "G","Association","Subset","Rank","First Name","Last Name","Middle Name","Date of Birth","SS","Drivers License Number","Address","Phone Number","A","CF","CM","I","F","J","CN","I","CN" The Output XML format is what I seek: <GIs> <GIR> <G></G> <GM> …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Exploring Swift Sets

    Another code example for the use of sets ... // get the unique words in the following sentences var str1 = "man who run in front of car get tired …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in decode string

    FYI ... # get your current locale encoding import locale print(locale.getpreferredencoding(False)) # eg. US-ASCII As of Python 3.4.3 these are the options with open() ... open(file, mode='r', buffering=-1, encoding=None, errors=None, …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Computer Slaves

    Just shown on TV news ... Certain cars have enough computer control built in to allow hackers to force you off the road.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Multidimensional Array using a Dictionary (Python)

    You need to explain your request better.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Starting Python

    ''' zero_topower_zero.py by convention 0 to the power of 0 is one test if Python conforms ''' print(0**0) # 1 (is correct by convention)
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in How to Generate Licence Key

    You could also look at this posting ... https://www.daniweb.com/software-development/python/code/498083/create-a-random-password-python
  • Member Avatar for vegaseat
    vegaseat

    Edited Create a random password (Python)

    Just a simple password creator using Python code. The length of the password can be set and the characterset could be changed if you so desire.
  • Member Avatar for vegaseat
    vegaseat

    Created Create a random password (Python)

    Just a simple password creator using Python code. The length of the password can be set and the characterset could be changed if you so desire.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Updated Tiny Tkinter Calculator (Python)

    A reciprocal key sounds like a good idea. Remember that most of the scientific functions can simply be typed in. For instance the squareroot of 2 ... type in `sqrt(2)` …
  • Member Avatar for vegaseat
    vegaseat

    Created Exploring Swift Sets

    Like most modern languages Swift has sets and set operations. Here is a quick look. Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Is Swift comming to Windows?

    If you are on the Windows OS, you have to wait. You could use C# that has some of the features of Swift. I am not sure if C# has …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Projects for the Beginner

    Examine the Golden Ratio and how it relates to the Fibonacci numbers.
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A Taste of Swift part 2

    A little more math ... // create an array of prime numbers from 2 to < limit // using a sieve algorithm func primeArray(limit: Int) -> [Int] { // 0 …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A Taste of Swift part 2

    A little math ... // get the nth Fibonacci number in the series func nthFiboBinet(n: Double) -> Int { // approximation using Binet's formula' // accuracy suffers above n = …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    Could be the start of a guess a word game ... // scramble/shuffle a string at random // using the standard Fisher-Yates shuffle func wordShuffle(word: String) -> String { var …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Converting C loops to Python

    You should sense a "code smell" because the code should be `for item in items`
  • Member Avatar for vegaseat
    vegaseat

    Edited A taste of Swift part3

    Part 3 of the taste of Swift explores class objects in Apple's Swift language. A class allows you to group methods (class functions) together that belong together. Class Person groups …
  • Member Avatar for vegaseat
    vegaseat

    Edited A taste of Swift part3

    Part 3 of the taste of Swift explores class objects in Apple's Swift language. A class allows you to group methods (class functions) together that belong together. Class Person groups …
  • Member Avatar for vegaseat
    vegaseat

    Edited A Taste of Swift part 2

    Part 2 of exploring/tasting the Swift language takes a look at dictionaries; process flow controls like loops, if/else and switch/case; functions and sorting. I hope I can follow this up …
  • Member Avatar for vegaseat
    vegaseat

    Edited A taste of Swift part 4

    In part 4 of tasting Swift, we explore structures. Swift has added some interesting features to structures like defaults, methods, multiple init(). This way struct objects come close to class …
  • Member Avatar for vegaseat
    vegaseat

    Edited A taste of Swift part 1

    The Swift computer language is the brainchild of a number of Apple associates. In my humble opinion it shows some nice features, but also some warts. Part 1 (constants, variables, …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 4

    Learned more about structures ... struct Matrix { let rows: Int let columns: Int // the flattened matrix var flat: [Double] init(rows: Int, columns: Int) { self.rows = rows self.columns …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    You could prioritize your life ... // create an empty array of (priority, task) tuples var myPriorities = Array<(priority: Int, task: String)>() // load some tuples myPriorities = [ (3, …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Starting Python

    Want to get some order into your life? ''' priority_queue1.py uses a priority index for items in the queue ''' import queue pq = queue.PriorityQueue() mypriorities = [ (3, "Take …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A very simple Python program

    Wow, my first exploration of Python! Now I am studying Apple's Swift language that has a lot of Python ideas in it. My first exploration of Swift is here ... …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in General Programming Question - How code is read !

    Actually Go has done away with the convoluted overlapping header files that C and C++ use, in an effort to speed things up. Also, you can't import a package you …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    Counting down is simple ... // counting down ... for k in reverse(0...6) { println(k) } /* 6 5 4 3 2 1 0 */
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    An interesting closure in map() ... // sum the digits of an integer number ... let number = 1234 // convert to array of characters let chrArr = Array(String(number)) // …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Is Swift comming to Windows?

    We will have to see how well Swift does in the Linux environment this fall. The other problem is that Swift is a rapidly developing language that has had major …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Memory

    It depends on the computer language you are using. You can specify the size of an integer (16, 32, 64 bits). Also your characters nowadays are unicode and take up …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in General Programming Question - How code is read !

    I remember some C compilers that created assembly code first and then went on to object code and then added an executable stub. That allowed you to add assembly code …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    Working with arrays and closures... println(UnicodeScalar("a").value) // 97 println(UnicodeScalar("z").value) // 122 // create an array of characters from a to z let chrArray = Array(97...122).map { UnicodeScalar($0) } println(chrArray) // …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A Taste of Swift part 2

    An interesting application of switch/case ... // is a character upper case? func isUpper(c: Character) -> Bool { switch c { case "A"..."Z": return true default: return false } } …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in A taste of Swift part 1

    Get the maximum/minimum value of an array ... var arrStr2 = ["Tim", "Tom", "Tammy", "Abby", "Albert"] // by unicode values in sequence println(maxElement(arrStr2)) // Tom println(minElement(arrStr2)) // Abby Could of …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Jokes

    NOTICE: PLEASE NOTICE!!!!! You may have noticed the increased amount of notices for you to notice. And, we have noticed that some of our notices have not been noticed. This …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Is Swift comming to Windows?

    In the Windows world Swift/Xcode would have to compete with the combination of C# and Visual Studio, that might be too much of an obstacle. You can test drive Swift …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Python objects and references

    If you create a list or dictionary object in Python, you are really creating an instance of a class. Class instances are reference types. You can test that out on …
  • Member Avatar for vegaseat
    vegaseat

    Replied To a Post in Seeking a partner to create something world changing

    Let the computers fight the war. Let the best software win.

The End.