• Member Avatar for G_S
    G_S

    Replied To a Post in Looking for a particular type of functional programming examples

    Oh my god! Are you sure you're not actually summoning Cthulu with that line of code, Jim? That's a really good example. And yes I agree that statement is nonsense. …
  • Member Avatar for G_S
    G_S

    Created Looking for a particular type of functional programming examples

    Hello people. I'm looking for FP examples that are very simple (very few lines, one-liners are even better) and that totally look like sorcery to a traditional imperative programmer. Can …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Unclear issue after installing django

    Do you have several Python versions? Sounds like the module is not installed for the python.exe that gets called when you type "python". Double check your PATH variable. Also, why …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Installing Python SIP ?

    You normally install modules using pip install <package_name>. If everything goes well, you just need to import the module into your programs. Have you tried this? What errors did you …
  • Member Avatar for G_S
    G_S

    Replied To a Post in django set up for windows not working

    This is old but maybe I can still help. First some questions: are you using a server? If so, which one? Also, which database will you use? Last time I …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Python - Tkinter

    Well, I would first store the loaded content in a list, then populate the listbox with it. Second, I would create a buton whose associated function performs a curselection() to …
  • Member Avatar for G_S
    G_S

    Marked Solved Status for Synchronizing two scrolled text widgets

    The question is simple: I have two scrolled text widgets (I'm using tkinter and python 3.x), and I want to synchronize them, that is I want both scrollbars to move …
  • Member Avatar for G_S
    G_S

    Replied To a Post in What is the correct way of using require_once in this project?

    Thanks for your response. Could do please be more specific? What do you mean by "require parse"? How do you add the content (could you please give me a snippet)??
  • Member Avatar for G_S
    G_S

    Replied To a Post in What is the correct way of using require_once in this project?

    Small correction: disregard the last curly brace. It doesn't belong there (and I don't know how to edit my post anymore...)
  • Member Avatar for G_S
    G_S

    Created What is the correct way of using require_once in this project?

    Hello everyone. I am trying to make a simple to-do list program using PHP and the MVC pattern. I have managed to make the login page, the model and the …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Have I applied this 3-layer design pattern properly?

    Thank you very much. I know it's widely discussed, but I had to resort to this website because my teachers really confused me when they told me that MVC is …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Have I applied this 3-layer design pattern properly?

    Alright. According to James' answer, the new design would be: FIRST LAYER: GUI SECOND LAYER: a class for storing and processing the data obtained from the GUI (lowercase, lematization, etc.). …
  • Member Avatar for G_S
    G_S

    Edited Have I applied this 3-layer design pattern properly?

    Hello everyone. I am modeling a simple dictionary application using the presentation-business logic-data layer pattern. I already have the design but am not sure it is correct: My presentatioon layer …
  • Member Avatar for G_S
    G_S

    Created Have I applied this 3-layer design pattern properly?

    Hello everyone. I am modeling a simple dictionary application using the presentation-business logic-data layer pattern. I already have the design but am not sure it is correct: My presentatioon layer …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    Yes, that's true. I think that later on I'll have to use some sort of ORM to solve that problem.
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    I used this program http://alexdp.free.fr/violetumleditor/page.php It's perfect for learning basic UML modelling. So, you don't see any problem with the structure?
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    Here is my class diagram. Took me a while to upload it due to technical issues with my computer, but here it is. The classess at the bottom are non-abstract. …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    Thank you very much. I have made several pseudoasbtract classses with NotImplementedError and NotImplemented. I notice that I went from very gneral classes to very specific classes, so I think …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    Hmm, I'm currently creating the intermediate pseudoabstract classes. I really need the attributes, so question: should the NotImplementedError be raised by the constructor too? Or should I have the constructor …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    Hmm, I think I got it. If inheritance is a specialization, then my most general class should be the parent. So it goes like this: Base (common attributes and methods) …
  • Member Avatar for G_S
    G_S

    Replied To a Post in Need help modeling some parent-child classes

    I see. I think I'll go with the simple superclass-subclass model. BUt there is then one question left: if the superclass has attributes A,B,C and D, but I only need …
  • Member Avatar for G_S
    G_S

    Created Need help modeling some parent-child classes

    Hello everyone. I am currently making some database connection modules in Python inb order to learn Python's approach to OOP and also to lear how to connect to databases via …
  • Member Avatar for G_S
    G_S

    Marked Solved Status for How to turn accented lowercase character into uppercase

    I have this: dic = {'ál':1, 'él':2} string = "ÉL" number=dic[string.lower()] and it's giving me a KeyError. I realize then that 'ÉL'.lower() is giving me 'Él', i.e. it is not …
  • Member Avatar for G_S
    G_S

    Revoked Solved Status for How to turn accented lowercase character into uppercase

    I have this: dic = {'ál':1, 'él':2} string = "ÉL" number=dic[string.lower()] and it's giving me a KeyError. I realize then that 'ÉL'.lower() is giving me 'Él', i.e. it is not …
  • Member Avatar for G_S
    G_S

    Marked Solved Status for Need advise on which database system to use

    Hello. I am currently studying database design at my local university. They use Microsoft products there (Microsoft SQL Server 2008/2012), but we can't use them at home because of the …
  • Member Avatar for G_S
    G_S

    Marked Solved Status for How to turn accented lowercase character into uppercase

    I have this: dic = {'ál':1, 'él':2} string = "ÉL" number=dic[string.lower()] and it's giving me a KeyError. I realize then that 'ÉL'.lower() is giving me 'Él', i.e. it is not …
  • Member Avatar for G_S
    G_S

    Replied To a Post in How to turn accented lowercase character into uppercase

    I do, actually. I started with Python 3; it was my first language and my first contact with computer science and programming in general. The thing is that, in my …
  • Member Avatar for G_S
    G_S

    Replied To a Post in How to turn accented lowercase character into uppercase

    Don't I just need the unicode_literals module?
  • Member Avatar for G_S
    G_S

    Began Watching How to turn accented lowercase character into uppercase

    I have this: dic = {'ál':1, 'él':2} string = "ÉL" number=dic[string.lower()] and it's giving me a KeyError. I realize then that 'ÉL'.lower() is giving me 'Él', i.e. it is not …
  • Member Avatar for G_S
    G_S

    Created How to turn accented lowercase character into uppercase

    I have this: dic = {'ál':1, 'él':2} string = "ÉL" number=dic[string.lower()] and it's giving me a KeyError. I realize then that 'ÉL'.lower() is giving me 'Él', i.e. it is not …

The End.