instruction
stringlengths
71
71.9k
I'm calling a view into a view. Am I doing correctly, or is this a bad practice? <div class="tab-pane" id="tab_1_2"> <div class="portlet "> <div class="portlet-title"> <div class="caption"> <i class="icon-reorder"></i> Nuevo Usuario </div> </div> <?php...
I am writing a Tornado app in which a user can maintain his products wishlist. There are two collections, users and products. As the names imply, the users collections will contain users info and the products collections will contain the URLs. Typically a user document in users collection will contain the following f...
I've been building a system for inputting and monitoring shifts for casual staff, who work across multiple sites with the ability to generate accounting information. I've had some help from Stack Overflow in building this project, as I had no prior knowledge of PHP or MySQL, and each time I posted some of my code I had...
I am creating a Monopoly board game using HTML, CSS, PHP, JS and jQuery. I am doing this to develop my web development skills. I have cut the project into sections, so this question will only deal with creating the board. JSFiddle The board size is determined by the sizes of the 40 Monopoly positions class name .box. T...
In my CodeIgniter project I have a Login controller that load this view: <ul class="sub-menu"> <li> <a href="javascript:;" class = "menu-item" data-target="../indoamericana/soporte/callSupport/"> Mis solicitudes </a> </li> </ul> The controller: soporte, function: callSupport public function callSupport...
I'm a novice programmer learning Objective-C in my spare time. I would greatly appreciate any help or advice with my code. I want to follow best practices whenever possible. I know that I am missing some foundational stuff with my code, so please point that out where you see it. Things like when to make variables i...
Note: I have posted a follow-up question for a significantly updated version of this code. I have implemented a class that provides portable one-shot or periodic timers. The API provides a way to schedule one or more timer callbacks to fire some number of milliseconds in the future, and optionally fire again every so m...
I am using kendo grid's onDataBound event to do something. Here's my jQuery code: console.time('withoutnot'); jQuery(e.sender.dataSource._data).each(function (i, v) { if (v.IsReadonly) { e.sender.wrapper.find("tr[data-uid='" + v.uid + "'] .k-button") .each(function (i, j) { ...
I have a set of links with background images on this CodePen. I am seeking feedback to see if I did this the most optimal way. For example, I made a sprite so that I can just load one image. And I leveraged inheritance so that I did not have to assign every containing div a class. Just used a child selector and for th...
After testing my site against GTMetrix, I get warnings on not specifying image dimensions. I am working on a WordPress site. Here is my solution: My first solution was: // Specify image dimensions $('img').each(function() { var findImgWidth = $(this).width(); var findImgHeight = $(this).height(...
I've recently wrote a simple bingo game in Java to refresh myself in oop principals I have not touched in quite a while. I feel like I have accomplished this, but I would like to learn as much as possible from this exercise. Besides the oop principals, I tried to make the code very readable and reusable in case there w...
I've got this Collection in my Backbone application: var AnswersCollection = Backbone.Collection.extend({ model: Answer, initialize: function() { console.log('Hello from new answers collection'); }, getCorrect: function() { return this.where({correct: true}); }, getWrong: func...
Below is the code for what I've called a partitioned_multitype_map. This has two major facets: Allowing a lookup based on keys of multiple lengths and of multiple types. For example: typedef partitioned_multitype_map<int32_t, std::string, int64_t, double> map_t; would allow keys of any length 1 to a (specified) maxim...
I'm trying to write a bash function that will take a command such as xcode-select -v or brew -v that outputs a lot of extra text, and format it to my liking. Just to further the example, say I run xcode-select -v, it will output xcode-select version 2333.. I want to be able to split this string up and only take the 2...
I have refactored one of my old homework assignments (mainly to utilize std::stack and some C++11), and I'm still having trouble making it less repetitive. It reads in a text file, character by character, and determines whether all of the opening and closing brackets ({}, (), and []) match properly. All other characte...
I'm a newbie self-learned programmer, I've started poking around a bit at C# around two months ago, since I will be starting formal programming studies in about 7 months. I heard the best way to learn how to code is to code so I've written this trivia application and I would love some constructive feedback, what are th...
I was told to create a calculator design on AWT, which is also my first project on AWT. I wrote the program and submitted it. I was then told that my program contains around 70 lines of code, and I should try to write less code. How can I shorten this code? import java.awt.*; class Demo{ Frame f; TextField t...
I wrote a simple thread pool, which works pretty well. I would like to see your review of it. One important feature that I needed in the pool is the ability to wait until all the tasks that I sent to the pool are complete (so that later I could send other tasks that are dependent on the result of the previous tasks). T...
My script, which is a web scraping script, is very slow, I even needed to put set_time_limit(0); This is the whole http://phpfiddle.org/main/code/9qt-78n I think the problem is here: foreach ($array_with_links as $url_job) { $info=Array(getTitle($url_job, getID($url_job)), getTitle_Short($url_job, getID($url_job)), ge...
I have an array of items on which I have to perform 2 tasks: Applying a function on the array item Checking if the value is true or false. The functional approach to solving this would be var result = arr.map(function(item){return some_action(item);}).filter(function(item){return other_action(item) == true;}); But ...
I was assigned to make a Rational class to perform functions on fractions. After awhile I got it to work, but now I'm wondering how to simplify and clean up my code. Basically how to improve and use good Java practices so I can write better Java in the future. public class Rational { private int numer, denom; //c...
I am using Java and COM4j to communicate with Word. The approach I used here is brute force. I have a password protected .doc, and I forgot its password. Complexity is (26)(maxPassLength). [a-z characters only] Before I run this code and wait for 7-10 days here are my concerns. My main concern is checking whether a gen...
I have a Factory class that gives out instances of ResponseImpl class. It accepts one Destination class and up to four Source classes. At least one of the four Source classes should be not null. So, instead of asking calling program to pass nulls in the arguments to Factory class, I have overloaded the method to accept...
I am writing C++ code to enumerate the whole HDD and drive listing. However, it takes more than 15 minutes to complete the disk enumeration of all drives (HDD capacity of 500GB) and compile the response in a binary file. However, I have a 3rd party executable which gives me the listing of the whole disk in just less t...
I have been making my own scoreboard, and needed a custom spectate function for it, so I made this: util.AddNetworkString( "spectatePlayer" ) local playerLocal local isSpectating = false net.Receive("spectatePlayer", function(length, client) if isSpectating then return end isSpectating = true ...
I wrote Conway's Game of Life in Python with Pyglet. It works pretty well but is very slow when the number of cells gets high. Any easier speedups I can attain with this code? import pyglet import numpy from itertools import cycle from pyglet.window import key, mouse window_width = 700 window_height = 700 cell_size...
I'd like you to review my attempt at creating an authorization class and let me know if there is re-factoring to be done and/or how I can make the code cleaner and abide by the MVC structure. UsersController.php <?php class UsersController extends BaseController { protected $user; public function __cons...
Okay, so just having a little fun I thought I'd see if I could write an algorithm to find all of the prime factors of a number. The solution I came up with is as follows: class Program { static void Main(string[] args) { var subject = long.MaxValue; var factors = new List<long>(); var ma...
As part of this answer, I created a mixin to generate some page-specific CSS for me. I need to style an element based on a class I assign to the html-element. I do this for four different classes on the root-element, which gives me four similar CSS rules. I'm looking for suggestions for the mixin itself. This is not li...
Upon suggestion in the original question within Stack Overflow, I'm bringing this question here. Question Explained: In a website that I built, I used complex multidimensional arrays to organize a multitude of information tables linked to events. I want to know if what I did was a viable efficient solution for the spec...
I'm looking for feedback on my library for extracting words from a text: https://npmjs.org/package/uwords The extracted word is defined as sequence of Unicode characters from Lu, Ll, Lt, Lm, Lo groups. So the code of the main part is (https://github.com/AlexAtNet/uwords/blob/master/index.js#L9): module.exports = functi...
function reg(email, pass){ $.ajax({ url: "uman.php", type: "post", data:{email: email, password: pass}, success: function(reply){ if (reply == "success"){ $("#signinup").hide(); $("#do...
My teacher assigned us to do the recursive version of mergesort, yet I heard that the non-recursive version (bottom up) is a bit tougher, so I decided to this one as well. My main concerns are: Considering the way I coded it, does it still have the same efficiency? Did I do this in an acceptable way? If not, why? Ma...
I have built this conceptual design of a localization menu on this CodePen I am wondering if I should have structured my <div>s better or if this should be wrapped in a <ul> instead since <div class="locale"> could be reduced in the CSS with .international li. HTML <div class="international"> <div class="local...
A discussion arose not long ago on the 2nd Monitor about how much reputation has been lost due to the reputation caps. There are a number of queries on the SEDE which try to address this: A Users total Rep ON META if there was no reputation cap Percent lost to reputation cap among top 1000 users Top-rated users if the...
I am a self taught coder taking a Programming Fundamentals class to work towards a degree. It's based on Python, which I'm not as familiar with as other languages. I added error handling like I would in javascript or php to be an overachiever. Professor gave online feedback (online course) not to use try-except, that i...
I need to validate the form inside a table and change the class of a td-element when the value is not set. I don't have a button inside a form and I can't use the jQuery validate script. I have written this code but is there a way to do this in a simpler way? I have written many pages with code like this. <script> func...
I have a huge list of regexes (>1,000 but <1,000,000) that I want to test against (many) single strings. It is unlikely and unintended that more than one such expression would match a single string. I could just maintain a big list of each compiled, individual regex and iterate over that for every input string. However...
I've recently started to delve into the world of windows phone 8 dev, and as a learning experience I've decided to make a stopwatch application. Now, given I've been a web guy most of my career, I've never come across UI thread locking issues, so the solution I've come up with to ensure my stopwatch class is updating t...
I am building a Python app in which user can maintain wishlist of the products. I only support few e-commerce sites and do not support country specific sites (e.g I may support amazon.com but not amazon.in). I do not support mobile version of the URL (e.g. http://m.amazon.com) and also I am not interested in the query ...
I am a beginner in Java programming. Here is my simple calculator. I hope you could scan through my coding and let me know if there is any error in my coding or how I could simplify the code. import java.util.Scanner; public class Decimal { /** * @param args */ public static void main(String[] args) ...
Write a pointer version of the function strcat that we showed in Chapter 2: strcat(s, t) copies the string t to the end of s. This is the version of strcat from Chapter 2: void strcat(char s[], char t[]) { int i, j; i = j = 0; while(s[i] != '\0') /* find the end of s */ i++; while((s[i++] = ...
As usual I'm wondering if there is a better way to do: (The code extends a angular service) (function(window, angular, undefined) { 'use strict'; angular.module('api.base', ['restangular']) .factory('Base', function(Restangular) { return function(route){ v...
I've just created my first plugin, but I think I've written too much bloated code. Could you point me to the right direction? $.fn.replaceme = function() { function add_essentials(element) { var native_btn = element; native_type = native_btn.attr('type'); native_btn.each(function() { ...
I want to know if I'm going about creating and calling two functions from my model to my controller in the simplest and cleanest way. Model: public function getPosts() { $post = $this->paginate(4); return $post; } public function getMonth($post) { $post->month = date('M', strtotime($this->created_at)); ...
I have written a function that launches the default editor set in git config, right now I have managed to get it working for Sublime, nano and Vim. def launchEditor(editor): """ this function launches the default editor for user to compose message to be sent along with git diff. Args: ...
After initially struggling with the board size, I have now decided the dimension. Please review my code. In the code I am generating HTML code using PHP and MySql. I have not added the database, please let me know how to add it in my question. The key functionality is drawBoard() it has 3 parameters, 1 is to determin...
These two functions search for directories with a certain prefix that contain no files of a given type. Does the code adhere to Ruby standards and conventions? Am I doing something the hard way or the "non-Ruby" way? Should I use more/fewer/different comments? def find_empties(directory, dirprefix, fsuffix) empty_...
Would love some feedback on this. I'm coming from a Java background and kinda feel like I've just done exactly what I would do in Java. Is there a better way? for (i <- 1 to 100) { if ( i % 3 == 0 && i% 5 == 0) println(i +" = FizzBuzz") else if (i % 3 == 0) println(i +" = Fizz") else if (i % 5 == 0) ...
I am scraping an online shop page, trying to get the price mentioned in that page. In the following block the price is mentioned: <span id="hs18Price" itemprop="price" title="New Baby Care Pack"> <span class='WebRupee'>&#x20B9;</span>&nbsp;999</span> I am using Beautiful Soup to get this tag and using a regular expres...
function RegisterN() { if($_SERVER['REQUEST_METHOD'] == 'POST'){ if (isset($_POST["password"],$_POST["password1"]) && $_POST["password"]!=$_POST["password1"]) { # Check if password and password1 are same echo "Your password confirmation is not equal to your password or it missing."; } else if(!$_POST["e...
Write a function strend(s, t) which returns 1 if the string t occurs at the end of s, and 0 otherwise. Here is my solution: unsigned int strend(char *source, char *pattern) { char *saver = pattern; while(*source) source++; while(*saver) saver++; while(saver >= pattern) if(*...
PYTHON 2.7- I want to make my code OOP. I also want feedback from you on correctness, tidiness, design patterns and so on. Here's the download link. It's not permanent but it's the best I have time for. I get this syntax error now, tried multiple things without progress. The code: filesDict = {'', "ba...
Can anyone please review the following .htaccess file and let me if it is correctly put together? What I think it does: So it direct to a custom 404 page Remove the extensions from the end of the urls (example .php) Remove /index I don't really understand what the final rule does, can anyone please explain it if could...
Project Euler problem 7 says: By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10001st prime number? I believe that my code is working, but very very slowly. I guess the increment divisor can be changed, but I'm not sure how. using System; using System....
Is there a better way I can code this? It's old code and I'm not sure makes sense today. JSLint gives me a lot of errors too. I don't have experience with JavaScript and I would like to optimize this snippet. Any suggestion? Maybe I can achieve better code with JQuery? <script type="text/javascript"> // <![CDATA[ ...
As a first step to attempting the Weekend Challenger Reboot, I decided to first implement a regular 'tic-tac-toe' game and then expand it later to be 'ultimate tic-tac-toe'. Below is the code for the tic-tac-toe board. It's fully functional and unit tested, but I'm not too happy about the getWinner() method. This metho...
This finds its origin in the following reflection. In their book from 1995, the so-called gang of four (GoF) described the state pattern. What they were actually telling us in their description, is that any object oriented language that implements dynamic polymorphism has an embedded finite state machine (FSM) engine. ...
I am very new to PHP and I kind of sort of want to create the pages like I would in ASP.NET; it's just the way I am wired. I have been inserting the header/menu using a PHP Include and here is what the code looks like for just the first page. Am I doing this properly, or is there a better way? index.php <!DOCTYPE htm...
The following code loads a YouTube video inside an iframe, where the tricky part is to sync the onYouTubeIframeAPIReady and on('shown.bs.modal') functions. The code works well in Firefox and decently in Chrome, but in Safari it is quite buggy. Any hints towards improvement would be appreciated. jQuery( document ).ready...
I am currently using the Udacity Introduction to Java course. There was a topic on Algorithms and it gave an example Algorithm for comparing and purchasing two different cars in pseudo code. I decided to turn that into some Java code to see just how well I grasped the concept. The algorithm was: For each car, compute....
I'm trying to get the average luma of an area in an YUV image in the Android camera. I have come up with the following code which I think is correct and produces consistent results. private static final int AVERAGE_LUMA_SAMPLE_SIZE = 2; // sample the average luma // yuvImage is the byte data return from a camera's pre...
I'm starting to implement basic sorting algorithms. Criticisms on the implementation is welcome. #import pudb; pu.db def bubble_sort(list_): """Implement bubblesort algorithm: iterate L to R in list, switching values if Left > Right. Break when no alterations made to to list. """ not_complete = True wh...
Reference: Is this a faithful rendition of the selection sort algorithm? I'm working through an elementary book on sort and search algorithms, and writing some sample code to test my understanding. Here, I've been fiddling with a Ruby implementation of a selection sort algorithm. My first attempt (see link) seemed to ...
I am new to HTML and CSS. I was wondering if anyone could give me some advice on my use of markup and CSS to achieve this result. I am trying to get a fixed full height sidebar with a list with sprite image for each item. This is the code I have which achieves this. HTML <div class="container"> <div class="col_left...
I'm writing an object oriented package, and one problem I am trying to solve is a class that will get all PHP files in a particular directory and instantiate the classes but not abstracts or interface types. From an object oriented perspective, is this class SOLID? <?php namespace Massculator; class Collector { pu...
I'm writing a twirling cursor, which is a cursor that twirls in place in the console. In Forth, this takes just 3 lines, whereas in Python3 I have this: from time import sleep # sleep(sec) import sys def flash(c): """Shows character c momentarily.""" # backspace ($8) and sleep(sec) keep it in place and slow...
I'm learning basic algorithms and implementing them in Python. Critiques needed/welcome. import pudb; pu.db import random def selection_sort(list_): """Implement selection_sort algorithm: iterate L to R in list, grab value if greatest and inserting into correct pos. After each loop, decrement length of iter...
So I've been kind of irritated with my logging recently as I find myself copying and pasting the same kinds of generic messages around to lots of different methods or retyping them ever so slightly differently (when they ought to be identical). Hence, I created this kind of framework: public class Log { // other loggi...
Write versions of the library functions strncpy, strncat and strncmp, which operate on the most n characters of their argument strings. For example, strncpy(s, t, n) copies at most n characters of t to s. Full Description in Appendix B. Here is my implementation of strncmp: int custom_strncmp(const char *s, const cha...
I am working on a small custom Markup script in Java that converts a Markdown/Wiki style markup into HTML. The below works, but as I add more Markup I can see it becoming unwieldy and hard to maintain. Is there is a better, more elegant, way to do something similar? private String processString(String t) { t = set...
I saw this UI for a mobile app, but I reverse engineered it for the web. This is how it looks in my CodePen This would be either a favorites or featured list locations to travel to. I decided to go with a <ul> with class of "locations" HTML <ul class="locations"> <li> <a href="#"> <!-- url would be generated-->...
I have a click event that calls a function which makes some CSS changes (acts on Text in 3 unique text elements). The function (below) works, but is lacking a 'restore default' function (to return the text to its original state), AND is in dire need of refactoring. Q: How can the original state of ALL text elements ...
I have started to try and work out the TopCoder problems. The "StringDup" problem asks us to: Create a class called StringDup. Given a string made up of ONLY letters and digits, determine which character is repeated the most in the string ('A' is different than 'a'). If there is a tie, the character which appears ...
I have a form, which uses AJAX to send POST data to the following controller method: public function action_sendmail() { $jsonHelper=Loader::helper('json'); $answer = (int) $_POST['security']; if($answer <= 0) $answer = 1; if($answer == 4){ $name = filter_var($_...
Here's a PHP wrapper around a public OAuth2 REST API. I would love to hear your thoughts and comments. Testing was a bit frustrating since I tried for my first time. Not sure if I have done the mocking properly. You can see the whole project on Github class Feedly { private $_apiBaseUrl = "https://cloud.fee...
After profiling my current script I've found that nearly 100% of the run time (and I'm not surprised) comes from the following function: def rem_asc_by_pos(xmlFile, fileOut,removeIndices): fileIn = xmlFile.replace('.xml', '.asc') with open(fileIn, 'r') as fin: with open(fileOut, 'w') as fout: #remove indice...
I'm using Microsoft's example for encrypting/decripting a string. In their example, they are using Tripple DES. I'm trying to convert their code to use AES. The modified code, listed below, works. However, I am wondering if I need to change anything in the TruncateHash function or in the AES.Key and AES.IV value. Thi...
This is a very long solution I've been working on to a Number to Words problem. I've identified that there's a lot of repeating logic (e.g. 'if writing > 0', 'writing = integer /',). How would you refactor this? When refactoring is there a process you use? For readability sake would it be better to break this method ...
I wrote this function last year to convert between the two encodings and just found it. It takes a text buffer and its size, then converts to UTF-8 if there's enough space. What should be changed to improve quality? int iso88951_to_utf8(unsigned char *content, size_t max_size) { unsigned char *copy; size_t conv...
I am trying to get a better understanding of the modular design pattern and I am using Requirejs to manage my dependencies. I understand separating code into modules (using define with RequireJS) so they take on only single responsibilities and also splitting them into separate JavaScript files so Require JS can load t...
I am reading a beginning Python programming book and in it the author says that you want to avoid accessing a class' attributes directly, but instead to create methods that return attribute values. However, I am finding there are times this seems a little redundant and I am wondering if am just going about this in the ...
I have a test which looks like this: Create a base class Human Human class needs to have a method Talk The Human class needs to have to descendant class Man and Woman Both Man and Woman should have their own Talk method (basically rewrite the method) The Man class should have a private property _foo It should have a ...
I have three functions, each assigned to an anchor tag which gets called onclick. Is there a way to condense this code? It seems redundant to have three function calls which do the same thing except the value is different for each. var winnings = 0; function add20() { winnings += 20; document.getElementById("w...
I was looking for a review on my coding. Since I'm planning to get a job as a Android Programmer in the long run. This is my first calculator app, which I did by self learning Programming. I have no other Programming Langauge experience. So I would love to hear how bad my coding is? Which areas I need improving on? Wha...
I feel like this bit of code could be condensed or made better in some way. It may in fact not be, but figured I'd get some people to have a look. I have multiple pages on my site and in certain pages I'm setting a JavaScript variable: var header_check = "user-profile"; Some pages I'm not setting that variable. In ano...
Implementing basic sorting algorithms to learn them, and coding, better. Criticisms/ critiques welcome. Also possible optimizations. import unittest import random def insertion_sort(seq): """Accepts a mutable sequence, utilizes insertion sort algorithm to sort in place. Returns an ordered list""" #marks p...
I have a big in-memory collection of following simplified class: public class Product { public int Id { get; set; } public string UserName { get; set; } public int CategoryId { get; set; } public string Title { get; set; } public string Description { get; set; } } I need to search for products bas...
First off, here's the code: main.m #import <Foundation/Foundation.h> #import "PSBoard.h" #import "PSPlayer.h" #import "PSInputHandler.h" int main(int argc, const char * argv[]) { @autoreleasepool { NSLog(@"Enter Player 1 Name:"); NSString *playerOneName = [PSInputHandler getString]; NSLog...
Problem description. Returns strings with probability determined by the frequency of each of the strings. eg: if "foo" has weight of 50% and "bar" has weight of another 50% then both foo and bar should be 5 and 5 times each given that 10 tries were made. If question is unclear let me know I will reply asap. Looking fo...
You guess a word, and if its letter(s) is in the same spot as a hidden word's, you add [] around the letter. If it's in the hidden word, but not in the same spot, you add()). As of now, I have a whole bunch of loops which I find makes the program un-compact. I would love to see some tips on how to shorten this program...
The code runs fine and takes 100s to complete it for 5 iteration. I need to reduce it to take less time with the same number of iterations. h = 324 by 648 matrix The code is that of FFT Belief Propagation for LDPC codes over gf(8). tic [a2,b2] = size(h); % h is the parity check matrix 324 by 648 %% breaking rn such ...
This my solution to one of the practice problems from Cracking the Coding Interview: 150 Programming Interview Questions and Solutions [Book] implement an algorithm to determine of a string has all unique characters. What if you cannot use additional data structures ? public class PracticeProblems { public void ...
I am trying to read a single-columned CSV of doubles into Java with a string header. It is 11 megabytes and takes over 15 minutes to read, which is clearly unacceptable. In R this CSV would take about 3 seconds to load. This CSV file may contain strings so I am parsing it with this in mind. The CSV reading method needs...
Like anything that shouldn't be done, I decided to see if it is possible to match <script> tags robustly using regexes in PHP. Since there is no arbitrary nesting, I figured it should at least be possible. This is what I came up with. It is designed to handle every edge case I could think of, including: arbitrary attr...
My question concerns the following Python code which is already working. As far as I have seen, there are very elegant solutions of compacting code. Do you have any ideas on how to make the following code look smoother? mom = [0.,0.13,0.27,0.53,0.67] strings = ['overview_files/root/file_' + str(e) for e in mom] myfil...
I have implemented a program to sort a file consisting of numbers. The program generates a different output file with all numbers sorted in it. I have implemented this program using BitSet and want to understand BitSet. public class Application { public static void main(String[] args) throws Exception { S...
I want to know if this can be trimmed down further. I am repeating myself with this.title and this.position. Also this.position is the corresponding array index, not sure if that is a good idea, if player throws 3 then perhaps I can just denote that as player is currently at positions[3]. I use this.price instead of th...
I've written a Python client for a new NoSQL database as a service product called Orchestrate.io. The client is very straightforward and minimal. It uses the requests library, making the underlying code even more streamlined. I've been using the service as part of the private beta. However, Orchestrate.io went live to...
I'm in the process of structuring a model for conjugation tables for French. There are noun inflections, adverb inflections, and 19 verb conjugations. I'm trying to model the data so that every piece of data is accessible in the same manner as one would traverse the following XML tree (taken from my XML dictionary file...