instruction
stringlengths
71
71.9k
var searchUser = function(searchQuery){ var request = $.ajax({ url:"search.php", type: "POST", data: { search:searchQuery}, success: function(reply){ $("#search-box").css("display", "block"); $("#search-box").html(reply); } }); } I know this is a ...
I am tasked with cleaning up someone else's Objective-C code, and will admit it is not my language of choice. I am not sure if this is a valid question but was hoping someone could double check my attempt to clean up a method written by someone else, and make sure I didn't miss some minor detail or over simplify the co...
I have written two code pieces to check if a given string is a palindrome: public static bool FirstMethod(string str) { int i = 0; int j = str.Length - 1; while (i<j) { if (str[i] != str[j]) return false; i++; j--; } return true; } public static bool Sec...
If some big event handler is triggered too frequently, it will cause computer lagging. In my example $(window).resize(), I want the function to be called after the user has completed his resize, instead of firing every time you resize by a single pixel. So, I made this 'Function Buffer': function FtnBuff(){ var cou...
This is another solution for this challenge. Problem statement: In this challenge, write a program that takes in three arguments, a start temperature (in Celsius), an end temperature (in Celsius) and a step size. Print out a table that goes from the start temperature to the end temperature, in steps of the step ...
Let me start by saying that I am brand new to PHP and MySQL. I have two tables. One table is called domains and it contains the "rep" column which is an integer. It is related to the column "id" in the reps table. The reps table also houses the First and Last names of the rep assigned to a particular domain and when I ...
I was actually pretty proud of this programming project that I came across in this book I'm working through. I only really had problems figuring out the formula for detecting whether or not the two circles had intersecting paths. I'm still getting the hang of object-oriented programming, primarily when and where to use...
I have a statistics query I'm trying to run against the below table: CREATE TABLE "*****"."RUN_D" ( "WHSE_CODE" CHAR(12 BYTE), "RUN_NUM" NUMBER(*,0), "SHEET_NUM" NUMBER(*,0), "SHEET_SEQ" NUMBER(*,0), "COUNT_DATE" DATE, "COUNTED" CHAR(1 BYTE), "ITEM_NUM" CHAR(30 BYTE), "BIN_CODE" CHAR(10 BYTE), "STOCK_UOM" C...
I have written a solution for Problem 28. Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: $$\begin{array}{rrrrr} \color{red}{21} &22 &23 &24 &\color{red}{25}\\ 20 & \color{red}{7} & 8 & \color{red}{9} &10\\ 19 & 6 & \color{red}{1} & 2 &11\\ 18 & \color{...
This is my sample code to find maximum occurrence of characters in string in C#. How can I make it better? public static int GetMaximumOccurence(string str) { int _maxcount = 0; foreach (char c in str) { int ix = str.IndexOf(c); int count = 0; while (ix!=-1) { St...
The goal of the code is to initialize a Dialog with settings make sure the object is reusable Setup the options to reuse the code I'm not quite sure if this is overkill, or I am going about this problem in the entirely wrong way. Any input would be appreciated. var myDialog = myDialog || (function() { var opti...
I'm working on a client-side API for my ASP.net MVC application and I'm not quite sure I've got the code right. This API allows me to call server-side action methods via Ajax and I've designed it to have a similar call syntax like jQuery uses. Is the variable HomeActions._ajaxSettings static the way this written right ...
Given a doubly linked list which has data members sorted in ascending order, construct a balanced binary search tree which has same data members as the given doubly linked list. The tree must be constructed in-place (no new node should be allocated for tree conversion). This question is attributed to Geeksforge...
Here's what I ended up with for Learning Python the Hard Way Ex 51 with image upload (save and display). The form: <div style="margin:300px;border:1px solid #000"> <form method="POST" enctype="multipart/form-data" action="upload"> A Greeting: <input type="text" name="greet"> <br/> Your Name: <input type="text" name="na...
I've been reading "Head First Java" and some of the early projects surround basic swing and basic MIDI. So I've put the two together and written a basic "Synthesiser"/"Piano" using what I have learned. I know that I need to add some safety features and there's probably some method optimisation staring me in the face bu...
This is a programming contest question. Question as follows Problem Definition An ISBN (International Standard Book Number) is a ten digit code that uniquely identifies a book. The first 9 digits are used to represent the book and the 10th digit is used to ensure that the ISBN is correct. To validate the ISBN nu...
Find the union and intersection of linked list, given that elements don't repeat in a single linked list. This question is attributed to GeeksForGeeks. Looking for code-review, optimizations and best practices. public class IntersectionAndUnionLinkedList<T> { private Node<T> first; private Node<T> last; ...
A dollar word is a word for which the sum of the values of the letters adds up to 100 ($1.00). "a" has a value of 1 and "z" has a value of 26. Special characters such as apostrophes are ignored. First try looked like: import string valMap = {} for index,item in enumerate(string.lowercase): valMap[item] = index +1...
My Function class is similar to std::function with the small-buffer optimization. However, it always uses a small buffer and static asserts if the required size exceeds it. I would like a review for: correct use of the low-level features general class design and interoperability with standard library Here is my code...
I'd like to make sure I'm following some basic coding best practices since I've had only little practice creating my own classes and using pinvoke. I've found this class to be pretty useful and I'd like to put it up online but not if it's a poorly written or could cause issues I haven't considered. I would love any f...
Check if all leaves are at same level. This question is attributed to geek for geeks. Looking for code-review, optimization and best practices. public class LeavesLevel<T> { private TreeNode<T> root; public LeavesLevel(List<T> items) { create (items); } private void create (List<T> items) { ...
-Hello Agent. Are you on a secure line? -Yes, secured. -Good, in 30 seconds the launch codes will be in your e-mail's inbox. You now have the go. Are you ready for the package? -Yes. -The key is: "revi3wJAVA-fim++". You should have the codes by now. Be prepared to take action in T minus 14 minutes. -Thank you, I a...
I am doing Project Euler problem #6. This is the question it asks: The sum of the squares of the first ten natural numbers is, $$1^2 + 2^2 + \ldots + 10^2 = 385$$ The square of the sum of the first ten natural numbers is, $$(1 + 2 + \ldots + 10)^2 = 55^2 = 3025$$ Hence the difference between the sum of the squares of ...
I am trying to write a simple domino (five-game) game with 2 players. I must say I am very bad at OOP design, and so I don't want to get myself too deep into coding then realize I have a bad design to start with. I'd appreciate if someone shed some light on how to better design this. Here is summary of the game: there...
Given a singly linked list, remove all the nodes which have a greater value on right side. Examples: a) The list 12->15->10->11->5->6->2->3->NULL should be changed to 15->11->6->3->NULL. Note that 12, 10, 5 and 2 have been deleted because there is a greater value on the right side. When we examine 12, we see tha...
I'm new to Java programming and am really enjoying it. I made a bitshift program, but I think it's too long. I expect the program to: Let users input the number and degree to be shifted Specify if it is a right or left shift Restart the program if the user requires at the end Ensure exceptions don't crash the program ...
I implemented qsort() like this. I was wondering what improvements I could do to make it better. public static void qsort(int[] a, int start, int end) { if (start >= end) return; int pivot = start; int lt = start + 1; int gt = end; int temp; while (lt <= gt) { if (a[pivot] > a[lt]) { ...
I have the following Ruby code that's designed to update item, price and stock data for items in a MSSQL database. It's running on a Ruby 1.8.6/Rails 1.2.3 installation, in its own controller (for now) What I'm looking for is ways to optimize performance. Right now each item takes about 0,2 seconds (200ms) to process....
I have written myself a little JavaScript library for personal use, and anyone who'd like to use it for some reason. The reason why I decided to create my own library instead of using the already existing ones is that I have found out in the course of practice that I only use a very small amount of the functionality mo...
I'm wondering if anyone can code review my code below. That's the core code of my little framework for bash in GitHub. ## ========================================================================================== ## FUNCTION : autoload_functions ## PURPOSE : To check functions that are required, try to autoload them ...
I am building a website with heavy CSS3 transitions. The menu is hidden on the left and slides in on hover pushing the main content right. The menu contains transformed elements and has a semi transparent background. I am concerned about the performance of the animations. When the animation is triggered several times (...
I have a view which takes a DataPresenterStrategy instance to retrieve the proper text out of some data: public interface DataPresenterStrategy { String getDisplayString(Data data); String getUnit(); } public class DistanceStrategy implements DataPresenterStrategy { @Override public String getDispla...
The player will have different spells that can be cast on different keyboard key combinations. Right now what I have is one .as file with everything on it. A bunch of ifs, checking for combos if (combo="WW") {}, if (flightMode) {} and so on, which I know is bad practice and makes it confuse. There will be more combos/d...
I wrote an IRC bot in Java using Pircbot for use in twitch(.tv) chat. It is intended to be run locally and to only be connected to one channel at a time. When it is connected to my channel, it will take song requests for MP3s in my music directory. There is a songlist on a Google site. Otherwise I'll just use it in a f...
This is my simple implementation on JS HTML table generator which generates a table based on an array of JS objects. function Column(caption,position,isVisible,values){ this.caption = caption; this.position = position; this.isVisible = isVisible; this.values = values; } Column.prototype.printValue = function ...
My code works for the most part. (The problems are on the html side not the python side) however I feel it could run quicker or more efficiently. Due to the size of the XML document it parses it's always going to take a little while though. The script parses the XML file and finds the names of several things, estates, ...
I was hoping to get a quick review of a script I wrote for retrieving AWS VPC Subnet information. Any and all ideas welcome. I am looking specifically for logic enhancements, and optimizations to make the code more pythonic. Also, I was initially constructing a dictionary, however I had to adjust since many of the aws...
I created this observable storage thing in JavaScript (partly for fun, but also because it came in handy and got bigger without me noticing it). The repository can be found here. (function(window, undefined){ "use strict"; var eagle = window.eagle = (function() { var storage = { feathers :...
Is this too much work for 1 touch listener? Is this bad for devices with slow CPU's? @Override public boolean onTouch(View v, MotionEvent event) { int id = v.getId(); switch(id){ case R.id.sound1: if(event.getAction()==android.view.MotionEvent.ACTION_...
I have large dataframe containing many replicates. The replicates are in groups of 3. So the first 3 replicates are in column 1, 2 and 3. The second set 4, 5 and 6... and so on. Now I create a new dataframe containing for each set of replicates the mean. The code below works, but it is really clumpy and especially the ...
I am unable to use CSS for this as I am disseminating this information via e-mail through a sharepoint workflow. I have tried to make this code as MS Outlook compatible as possible. (I removed all live info) <!DOCTYPE: html> <html> <!-- variable:eHead --> <title>Commentary</title> <body style="margin: 0"> <div alig...
I am building a simple adventure game that has "upgrades" feature. In this game, user controls one player, that can be upgraded to increase things such as: Amount of gold earned Maximum health Attack power (more of this would be added later, for example: defense upgrade, experience, etc.) An "upgrade" has a max level...
I've come up with two ways to check to see if array is sorted and return true if it is. public static boolean checkSortedness(int[] data) { for(int i = 1; i < data.length; i++) { if(data[i-1] > data[i]) { return false; } } return true; } I've also seen the i start at...
I am doing Project Euler problem #8: The four adjacent digits in the 1000-digit number that have the greatest product are 9 × 9 × 8 × 9 = 5832. 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863...
I had the idea the other day to implement an artificial intelligence that could play my strategy game. This could be useful in a variety of different ways. For example, the player could "lose contact" with one of the worlds in the game, and the AI could take over in that event. Or perhaps the player could elect a wo...
I would love to have your reviews of this sign in and sign up system. You can see the main structure: For now, I have a total of 13 files (index.php, top_bar.php, header.php, container.php, footer.php, sign_in.php, sign_up.php, members.php, help.php, contact_us.php, change_theme.php, rules.php and the style.css. This...
I am doing this Project Euler Question #9: A Pythagorean triplet is a set of three natural numbers, \$a < b < c\$, for which, $$a^2 + b^2 = c^2$$ For example, \$3^2 + 4^2 = 9 + 16 = 25 = 5^2\$. There exists exactly one Pythagorean triplet for which \$a + b + c = > 1000\$. Find the product \$abc\$. I have implemente...
I built a custom HTML5 video control bar, and for each second, it updates two readings: Time Elapsed Time Remaining in hh:mm:ss notation, like so: Because of how often this function runs, I want it to be as efficient as possible. I created this JS Fiddle to test benchmarks. It runs the timer normally, until you un-c...
I'm going to develop an Android application that performs simple MySQL operations by invoking server-sided PHP scripts. PHP-MySQL communication is done by MySQLi extension. Each operation that I'd like to perform is in a separate PHP file, and in a separate class. There's an example of update.php: <?php require_once 'f...
I recently started my first project with Erlang. I've been skimming documentation and various books to get the information I need, and it's going well, but now that I have something that works I want to go "back to the basics" to fill in some holes in my knowledge, and more importantly, my style. So I took a look at so...
public static ArrayList<Playlist> getAllPlaylists( Context context ){ ArrayList<Playlist> playlists = new ArrayList<Playlist>(); ArrayList<String> fileList = new ArrayList<>(); //this will get me all playlist files available for my application for( String file : context.fileList() ) if( file.en...
Hoping for input on the clarity of the docstrings, syntax and performance of these two functions both of which should be self-explanatory: def tell(paragraph, duration=.1): """Print paragraph line by line with pause between each line.""" lines = paragraph.splitlines() for line in lines: print line.l...
I have a method that seems to be too much for one method. I might be validating programming methodology. I just don't know what to do with it. Would a switch statement be better? Should I break it up and provide other methods? public void addToCart(OrderlineType orderline) throws Exception { if (orderline == n...
I'd like to improve this Insertion sort code package com.arun.sort; import java.util.Arrays; public class InsertionSort { public static void main(String[] args) { int[] arr = { 9, 4, 6, 2, 1, 7 }; insertionSort(arr); System.out.println("Elements after sorting :" + Arrays.toString(arr)); } public stat...
I decided to try making some simple clones of the various user-space Unix utilities in an effort to learn the system-specific headers and improve my C skills. The code that follows is a clone of sleep and I'm curious as to whether there are any pitfalls I'm overlooking (including security vulnerabilities). It compiles ...
Sometimes I need to create character vectors like this one: datanames <- c( "europe_co2_min", "europe_co2_max", "europe_temperature_min", "europe_temperature_max", "asia_co2_min", "asia_co2_max", "asia_temperature_min", "asia_temperature_max" ) Notice that this is actually the Cartesian product of the ...
I am building a infinite vertical platformer for mobile platforms using Unity3D. I am using the accelerometer to move the character left and right on the screen. if (Input.acceleration.y > -0.2f && Input.acceleration.y < 0.2f) { maxSpeed = 17; } if (Input.acceleration.y ...
For some reason, I feel like this is a bit messy and could be cleaner. Any suggestions? I'm selecting any image files ending in .png or .jpg, and removing any image source files that contains avatar (meaning it's a header image or an avatar). def self.images(url) proxy_addr = 'http://localhost:' proxy_port = 8080 ...
This is a login class I made for my personal website. What I don't care about, is how secure this login class is, because I know it's not. But it keeps out the rare unwanted guests because I do not want to have my information public. I made this mainly for learning purposes. I want to know how "OOP" this is and what I...
The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. How many circular primes are there below one million? I have written the following program in python a...
I have written an EmailSession class to connect and get (unread) mail messages. It is all working, but I would like to see your opinions on any enhancements or improvements, as I understood there are lots of bad examples on the Internet and I copy-pasted most of it together. One issue I already noticed: If there is no...
I'm writing a console application where I need to provide detailed error messages in case anything goes wrong. As a result of this, I find myself splitting up my code into many pieces and making sure that every step is handled correctly. While this certainly makes it possible to detail what exactly went wrong, it unfor...
Given list of pairs (email-date): ['ann_osman@mail.com', '2 august 1976'], ['jz_neo@mail.com', '3 august 2001'], ['keyes_signak@mail.com', '2 october 2001'], ['cassadi_algazi@hotmail.com', '2 october 2001'], ['karmen_algazi@aol.com', '2 august 2001']] I need to turn it into dictionary grouped by dates (one date → ...
I want to construct a form builder for an internal project in mvc4. I am using partial views to load the various controls. However I feel that having ten or 20 action-results in my HomeController would not be the best way to go. So I am wondering how I could do the following more efficiently. As you see here I have thr...
I am checking if there are any rows in a table with some conditions. If there are more than 1 row, it should filter again with some more conditions. DECLARE @Matches AS int DECLARE @Result AS int SET @Matches = ( Select COUNT(*) FROM Houses INNER JOIN Houses_Access ON Houses.ID = Houses_Acc...
The purpose of this SQL query would be to extract the record 10192 only, because the end_time is both in the past and its foreign counterpart in the Node table still has the status 1. I don't want to select the record 10111 because it hasn't expired. I've just finished writing this SQL query, it works! Although I'm sur...
I am rewriting a VB.NET app into C#. I won't subject you to the original code. I am mainly looking for a better way to handle all the join statements that are being done. I am dealing with a legacy database that I cannot currently change the structure of. (Though I am making my arguments for it) I am wondering if there...
I have a piece of code which follows this form. Is this correct or is there a better way? for i, c in enumerate(contacts): fullname = c['Person__FirstName'] + ' ' + c['Person__LastName'] contacts[i]['fullname'] = create_a_tag('/contact/'+str(c['PersonSk']), fullname)
The below function uses Javascript to validate a Belgian telephone number and format it according to the guidelines for phone number formatting. function acm_mscrm2011_psa_FormatPhoneNumber(executioncontext) { //get the phone number from the field that starts the validation var telefoonnummer = executioncontext...
I was looking at some Linq queries with multiple join statements. I was thinking that they could be cleaned up using extension methods that hide away the join / where statements. For example: (from myObject in _context.MyObject join myObjectGroupName in _context.MyObjectGroupNames on myObject.TaskGroupNameKey equals my...
Should I be putting Linq statements inside of an objects properties? Is that a best practice or is that a no no? Also if that is ok, where do I draw the line with this? I assume db access is probably too far but is there a line, or just a gray area? Do you see any issues with my usage of Linq? [XmlRoot("message")] ...
Just trying out my T-SQL foo. Wrote a script to get the average time (in seconds) to first answer for a specified language. -- Could not get this so that the user entered -- the language in a box at the bottom working. -- so you have to edit the code here. declare @Language nvarchar(20) = 'php' -- ##LanguageTag## decl...
This is a solution to this problem. The problem statement: write a program to display all possible permutations of a given input string--if the string contains duplicate characters, you may have multiple repeated results. Input should be of the form permute string and output should be a word per line. This is my ...
Suppose we're implementing an interpreter for the bytecode of some stack machine. Let every element of the stack be a Word8, and let the stack be represented by a list: type Stack = [Word8] We'll need opcodes for addition, subtraction, and unary negation. However, apart from acting on Word8s, we might want to treat ...
I'm starting with Elixir and as exercise I wrote the Berlin Clock kata: The clock is made up of 5 rows. On the very top of the clock is a lamp that blinks to show the seconds. It turns on for one second, then off for one second, and so on. The next 2 rows represent the hours. The upper most of these rows represents 5 ...
I am building a ticket management system for a state server we use at work. Back end is node.js with multiple front ends. I am rewriting my back end to be more maintainable as the scope grows. For this particular function I start with this: [ { "id": 4993, "ticket": "A142032570", "sort": "...
The code below works for very small dictionary files I used to test (two words). However when I run this using a more typical dictionary file, my machine slows to the point of near crash. I would like a review of what the potential bottleneck may be which I believe to be in the load() function. Of course, general com...
One thing nagged me about the compass vertical rhythm module; in the case the headline is too long and it occupies more than one line the line-height between the two lines looks way too massive and off. Based on the following article, I've taken the adjust-font-size-to mixin source and modified and simplified things a ...
I'm working on an implementation of Rainbow tables as part of a project. I understand the main principles behind it had have a working solution. Unfortunately the reduction function portion of my project is the slowest part I'm hoping that someone might be able to point out places that I can speed it up. The program it...
I smell something wrong here, but am not quite sure what the most idiomatic way to solve the problem. I have a controller for (job)listings and it has a method called apply. This method is used when someone has a resume and is clicking to apply for the job associated with the listing. def apply set_resume if @resu...
My main goal with this refactor was to change instance methods that should have been class methods in the first place into class methods. My secondary goal was to add singletons to these classes because they are Model classes and I feel that there should only be one instance at any given time. HALAddressBook.h: #import...
I just learned about dependency injection/dependency injection containers, and I realize that the controller in my MVC web application is hard to test. My original controller class: class Controller { protected $db; private $article; private $nav; public function __construct($db) { $this-...
Which algorithm do you think is better in regards to readability and efficiency? selection(): public static int[] selection(int[] tab) { int minor; int aux; for (int i=0; i<tab.length-1; i++) { minor = tab[i]; for (int j=i+1; j<=tab.length-1; j++) { if (tab[j] < minor) { ...
As an exercise, I was asked to design a database schema (for MS SQL Server) for a tabletop game. The requirements were simple: players compete in matches and there are specific match types (e.g. 1v1 or 2v2). A hypothetical web site that would make use of this database would include things like player match history, a s...
You can find here a Follow-up question Description A List<UnrelatedObects> is returned by a 3rd party webservice, which will then be transformed to a List<ArchiveDefinition>. These ArchiveDefinition objects are connected by Parent'.ArchiveNodeId == 'Child'.ParentId. The root objects TypeOfArchive property will always h...
I am catching exceptions to provide better information for the logs to make debugging easier in production. Does this code follow best practices, since I'm not really handling the error but just logging extra information? I was also considering creating a custom RazorException, and throwing that instead. What do you th...
I have a question to find the N th number in the sequence. 1 11 21 1211 111221 312211 13112221 1113213211 The next number is obtained by saying out loud the number of digits in the previous number. eg. inital number =1 next number = One 1 = 11 next number = Two 1 = 21 ...
Below is the code for my login page. I haven't really used MySQL (especially OOP) before, so I'd like to know if I'm doing something inherently wrong. The code is working as expected, but I don't trust my knowledge of SQL so much that I'd use this code publicly before asking someone to review it. So please, tell me any...
var s = player.getSurrounding(); if (vY > 0) { if ((s[0] || (s[7] && xLocal < LOCAL_LEFT) || (s[4] && xLocal > LOCAL_RIGHT)) && (yLocal + vY * dt) > LOCAL_RIGHT) { vY = (LOCAL_RIGHT - yLocal) / dt; } } else if (vY < 0) { if ((s[2] || (s[6] && xLocal < LOCAL_LEFT) || (s[5...
If you have an interface served by a NodeJS API, what is the most clean way to propagate status changes to the interface? For example, I have a page that has 2 statuses, user logged in and guest. How would you send to the interface that information, without rendering the page server side? Same thing applies to permiss...
public static int min(int a, int b, int c) { int result = 0 ; if( a < b && a < c && b < c) result = a ; else if( a < b && a < c && b > c) result = a ; else if( a > b && a < c && b < c) result = b ; else if( a < b && b > c && c < a) result = c ; else if( a > b && b < c && a > c) result = b ; ...
I've built an image/content slider using JavaScript and as I've added to it and built in new functionality I've found myself writing several if statements in order to achieve the required response. I'm now going over it again and I want to refactor it to make it shorter (if possible) and to increase performance (again ...
I've used quite a lot of foreach loops to achieve this type of HTML table that has titles in the first cell of each row: <table> <thead> <tr> <th></th><th><img src='img.jpg'>Product 1</th><th><img src='img.jpg'>Product 2</th> </tr> </thead> <tbody> <tr> <td>Wid...
Introduction to the problem You are free to implement any mechanism for feeding input into your solution. You should provide sufficient evidence with unit tests that your solution is complete. As a minimum, please use the provided test data to indicate that the solution works correctly. Any programming language can b...
I wrote a function for checking if a Map[(String, String)] contains an element with a matching key and value: def findDupes(map: Map[String, String], key: String, value: String): Option[(String, String)] = { val dupes = map.collect { case (x, y) if(x == key && y == value) => key } ...
I've been working on a project to take data from csv files, re-format it, and display it as charts. I'm working for a company over the summer and when I leave, I would like my code to be readable/editable by whoever takes over in the future. This code reads in two files, formats them, and creates two output files. It...
Below is the problem: Little Timmy is exceptionally good at math tables, so his teacher decided to make things a bit more interesting. His teacher gave him two numbers, A and B, and told him to merge the tables of A and B in order (ascending order), removing the duplicates and thus supertable of A and B, and asks Litt...
I'm creating a client-side pie chart in XSLT 1.0, without extensions or external dependencies (i.e., cannot use FXSLT, EXSLT, JavaScript, etc.). The code is slow; at least fifteen iterations are necessary to get the correct precision required for the angles used by the pie chart. (I'm looking for help that doesn't invo...
Just started learning how to use the canvas today as I wanted to copy an animated GIF. The GIF I tried to copy is below. The animation does work but I've hacked it left and right. There's obviously alot of refactoring to do but am I going about it the right way? <canvas id="canvas" width="300" height="300"></canvas> ...
I need to create an HTML unordered list (to display with jstree) to display the hierarchy of users, along with a list underneath the user's "subusers" of their comments. Each user could have many users underneath him, and each of those users could have the same, so I used a recursive filter to accomplish this. However,...