instruction
stringlengths
71
71.9k
The code that was just added to Rubberduck will allow us to set up hotkeys for our features, so that next release, Ctrl+Shift+R brings up the refactor/rename dialog, for example. The requirements were roughly: Let client code know when a keypress is captured in a code pane Enable registration and handling of hotkeys ...
I've written the following in NodeJS as I am trying to learn a bit more about that toolset. It 'works' but is not very robust. I am not concerned with security at this stage and the code will not be accessible to end users. I would like to incorporate some kind of timer which ensures that the call to the Akismet API do...
In the ongoing saga of me rewriting functions that can be easily composed from existing Rx functions, I present my latest progeny: a bastard combination of Scan and Aggregate. The aim is to aggregate n items from a source, and emit the result every n. Then start again. public static IObservable<T> BufferAggregate<T>(th...
I've created a hash for a file converter. The file gets loaded into the program, and from there the file goes to a hex editor and the user picks and chooses what they want to do to the file. During the users' choices, the choices will run against a hash containing all hex information. It will then translate the hex and...
I am currently learning C++ though Bjarne Stroustrup book Programming Principles and Practices using C++. Going through the drills, I am trying to purposefully write efficient and readable code (good coding practices. However, I think I may be overdoing it with my use of functions for tasks within my program. //Functio...
I've just done an exercise on the abstract factory pattern and I want someone to tell me whether or not I followed the rules of the abstract factory pattern. Exercise 2 (Abstract Factory: GUI based OS) The purpose of this exercise is to provide a modelisation of a system for creating different components of a graphica...
I'm (re)building a data table to track our clients that receive regular income payments. Specifically, I need to pull this data into other workbooks for other reports, and since I was here anyway I decided to upgrade it and anticipate its' future growth. A sample of the data table (minus sensitive data): My code finds...
This is just a basic HackerRank challenge I was working on to better understand F#. Its purpose is just to print a tree that has a straight 'trunk' of \$n\$, splits into 2 branches which diverge to \$n\$, then branches grow a straight trunk to \$\frac{n}{2}\$ which split and diverge to \$\frac{n}{2}\$, etc. (Note: I wa...
I have two long (7683200 length) 1D arrays corresponding to two clock cycles, that I wish to combine into single 1D array. The clock_ticks_fine cycles between 0-255, and corresponds to a coarse division of 7.5 msec, with the reset to 0 signified by a 1 in the clock_ticks_coarse array. I would like this to be much much ...
I'm trying to solve the following problem: Australian ballots require that voters rank all the candidates in order of choice. Initially only the first choices are counted, and if one candidate receives more than 50% of the vote then that candidate is elected. However, if no candidate receives more than 50%, all ...
We have a lot of Controller ActionResults like this in our MVC project. The controllers get really cluttered up. This is a simple example, but we have much more complex ActionResults. This controller accepts a model, and if the primary key is Guid.Empty, handles it as an Add/Create. Otherwise it handles it as an edit. ...
Firstly I try to explain my model. I have 3 type of notifications which can have N types of email templates related to a specific status. NotifySupervisor(Vacation vacation); NotifyAdministration(Vacation vacation); NotifyApplicant(Vacation vacation); I've created a type of Factory. I don't consider this a Factory Pat...
All the calculator programs I have seen so far seem long, complicated and they can only operate on two numbers. Mine is simple, short, and it can operate on as many numbers as you want. Please tell me if there is another way to improve this section of code. x=[] amount=int(input("How many numbers?")) operation=input("(...
I'm trying to implement an algorithm able to search for multiple keys through ten huge files in Python (16 million of rows each one). I've got a sorted file with 62 million of keys, and I'm trying to scan each of the ten files in the dataset to look for a set key and their respective value. This is a follow-up code on ...
I am rebuilding the front-end for an application that I am building and have the content laid out the way I need. I would appreciate any suggestions on how to improve the structure, specifically the header section) with web standards in mind. You can view the Fiddle here. - edit please ignore the non loading icons in ...
I started to learn programming just a few days ago. And I've written code for a simple original game for practice, using some knowledge of JavaScript that I have gained so far. Is the following code properly written? I'm especially concerned about the use of "Math.floor", "Math.random", "function", and "if / else". Inc...
I was sitting in my bedroom, looking at my Powers of 2 clock sitting next to my radio, under my analog clock on the wall, and wondered to myself: "Why have all these different clocks when I can have just one?" So I decided to make my own. This program contains four different display modes: true binary, BCD, analog, an...
For my AP Computer Science class, I am required to write a program that prints the Twelve Days of Christmas without loops or conditionals using static methods. public class TwelveDaysOfChristmas { public static final String[] lines = new String[] { "A partridge in a pear tree", "Two turtle doves an...
I have created this prime number generator. I want it to be as fast as possible, but I am wondering if there is a faster way (there must be). #include <stdio.h> #include <stdbool.h> #include <limits.h> bool is_prime(const unsigned long long); int main( void) { puts("2\n3"); for (unsigned long long n = 5;...
This is my first big JavaScript project and I wanted to know what I could improve in terms of coding practices and design. It is a Chrome extension made for Vanderbilt students (VandyTab) that takes over the new tab and shows the time, bus timings, what restaurants are open and so on. var jumbotron, supporting, data, h...
Inspired by this question, I decided to grow my own fractal tree. The problem is: given an integer \$n\$, \$0 \leq n \leq 5\$, print the \$n\$th iteration of the fractal tree. The tree is probably easiest to describe in pictures, so here's a minified version of the first iteration: _____________________________________...
Problem Statement: Let A and B be two N bit numbers (MSB to the left). You are given initial values for A and B, and you have to write a program which processes three kinds of queries: set_a idx x: Set A[idx] to x, where \$0 \le idx < N\$, where A[idx] is idx'th least significant bit of A. set_b idx x: Set B[idx] t...
I have been using Microsoft.Unity as my container and have decided that the approach for a lazy implementation causes too much rework. Each time you decide to swap out to use a lazy you have to go add .Value or a .Resolve() after your variable (which could be called hundreds of times). Suggested lazy implementation by ...
Lately, I have been reading Uncle Bob's Clean Code book, and decided to try and follow some of his principles to make a class that was a somewhat confusing static helper class, with an abundance of private static methods, into an instance class which more clearly expresses its intent. The problem is to execute a stored...
I have a string str ="/Users/user/Desktop/task/U6342_Account_20150112.txt" I need return only U6342_Account_20150112 as an array ['U6342','Account','20150112'] I did str.split('/')[-1].gsub('.txt','').split('_') which gives me ['U6342','Account','20150112'] Is there any more convenient solution to do it?
display.php: <?php include "funtc.php"; updater(); $token = json_decode(file_get_contents('wp-content/themes/World-of-Warcraft-New/includes/token.json'));//<--open data file $data = $token->update->NA->formatted;//<--store primary object if(!isset($data, $data->buy,$data->{'24min'},$data->{'24max'},$data->timeToSell,$...
So I recently rebuilt a worksheet we have for tracking our clients who take income from their portfolios (here). I intend to be pulling this data into other workbooks for various reporting functions. To facilitate this, I decided to write methods in the "workbook" module to return: The codenames of the sheets holding...
I wanted to download all colour schemes for phpstorm and was too lazy to do it manually so I wrote a little script for it in python, because why not. This is my very first Python script and I'm still learning through tutorials and what not. Things it does: Asks to input the path where to save the files If the destinat...
I have made a very simple Brainfuck to NASM converter, that is usable for practically all programs. It has one trivial optimisation (to subsitute ADD for INC with large numbers). How can I make the generated code smaller and/or faster? I would prefer smaller over faster, if I had to choose. Here is the code: #include <...
The following is a small snippet from a pretty large program written to analyze raw data and find specific trade structures. I am new to VBA and this is my first large scale program I have written in the language. I definitely did things unconventionally and I wanted to ask for some review and pointers how to improve m...
I once wrote a program to calculate Pascal's triangle limited only by memory. I recently looked back and was disturbed by how ugly it is. I can tell that there are some bad practices for lack of better options known to me. import java.math.BigInteger; public class Pascal { private final int numRows; //The number o...
I'm working on a script where I want to create one dataframe from a series of files with annual baseball data in them. I'm relatively new to R and I feel like the way I wrote get_seasons_range() is probably more like writing C# in R, rather than doing it the idiomatic R way. Is there a cleaner way to do this? read_seas...
Following a question I asked and the advice on SO I implemented the following solution. Are there any downsides to such a solution? Is there a better way to make it changeable when I need to control formatting of other types like double and float where I have more than one occurrence of each in the dataLine[]? publ...
I am checking over 160,000 records in my database every 24 hours to see if there were changes in the incoming data coming from API and my existing data in the database. If there were I am updating those, otherwise I'm doing nothing. Checking 189 days takes 10 seconds and 160,000 about 2.5 hours. What can I improve in m...
I am working with a third party XML api, which can only respond to api calls with a error or success xml response. For example, here's an error xml response: <?xml version="1.0" encoding="UTF-8"?> <error> <message> <![CDATA[Unable to load XML document from resource ]]> </message> <exception>org.impa...
Point one, I know "Assignator" isn't a real word. I couldn't find a better fit so right now that word is added to my Visual Studio's dictionary! As a part of my (future) MVVM framework, I needed a class to assign values to a property of an object. As it's a quite generic framework, the class itself needed to be generic...
I would like to start by mentioning that I am LAMP stack guy who happens to be making my first ever .NET C# web app and I'm seeking general advises for best practices and to see how more experienced people would have done it. I am using code first development pattern with latest Entity Framework . I have a AppUser mode...
This question was posed to me by someone in my university's athletics department who had a USB sound level meter and a simple Python script which printed the current sound level (he was provided with that script when he bought the meter): Can you write a Python script to read the decibel level of the arena during bask...
I have this problem: Given a String of any length, return a new String where the last 2 chars, if present, are swapped. My question is, is there a more delicate way to do this than this way: public String lastTwo(String str) { if(str.length() < 2 || str.equals("")){ return str; } String lastTwo = str.sub...
I currently have this, which works. However, I would prefer to not have the HTML that displays being stored inline in array like this, but in a more flexible / optimal way so I can have more text / HTML without being restricted to having it inline within the quotes. texts = { item1: 'Item Box 1 Content <strong>ht...
I am extremely new at scheme and I am doing this problem from here: Write a procedure switch that takes a sentence as its argument and returns a sentence in which every instance of the words I or me is replaced by you, while every instance of you is replaced by me except at the beginning of the sentence, where ...
I recently ran into some issues with a plugin and outlined the issue in this post and wanted to know if the modifications I've made below cover the scenarios that the with scope blocks would have covered. I've modified some code to remove the with operator and I'm wondering if I've replicated everything properly in doi...
I am writing a database manager that reads and writes to a local SQLite database on a mobile device. It works pretty well for the most part, but read access is somewhat slow - it takes about 2-5 seconds to load 250 to 500 records. I've already gone and made some improvements where I can, but I'm hoping that there is mo...
I have an async method which calls my Task class while my Task class does all the work: private ExecutorService executor = Executors.newFixedThreadPool(10); @Override public Future<DataResponse> executeAsync(DataKey key) { Future<DataResponse> future = null; try { Task task = n...
This code reads a .cs source file in the \bin folder and parses the C# code in it. The program outputs keywords, identifiers, separators and numerical constants. How could it be improved? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tema3...
I've written this code that connects to a .xml file at a given url, parses it and outputs the values of some specific elements to the console. I want to write reusable and appropriate code accordingly to OOP standards, but I'm not sure where to start. How to improve this code? public class XmlControl { public s...
Algorithm to find pair with max sum from two arrays A[0 ... n] and B[0 ... n] A[i] + B[j] = max (A[i] + B[j], with i < j) i,j < 99999; n < 99999 My best result is this: int[] testArrayA = { 7, 1, 4, 5, 1}; int[] testArrayB = { 3, 2, 1, 5, 3}; String res = ""; int maxSum = 0; for (int i = 0; i < testArrayA.length; i++...
As many people will undoubtedly recognise, this is a question in a well known series of problems that I won't name ;) It's been a long time since I've written any F# and I'm not sure I've ever come across any canonical style guidelines so I'd like feedback on all aspects of the code. let largestPrimeFactor (number:int6...
All the calculator programs I have seen so far seem long, complicated and they can only operate on two numbers. I am trying to write one that is simple, short, and it can operate on as many numbers as you want. After implementing suggestions from my previous question regarding use of operator.XXX and functools.reduce I...
As a part of my (future) MVVM framework, I need to be able to detect changes on an object. To do this, I used the RealProxy, a C# object that implements Aspect Oriented Programming to "intercept" calls to an object's method. In my scenario, I'll use the proxy to intercept calls to a _target's setter to launch an event,...
I have a function for parsing data, that goes to the database, (it's more validation, the sanitization process is taken care of by the framework). Here's my handmade script, based on a jQuery library, forgot its name. The comments are in Spanish. /** * Procesar Información. * * Compara la información proporcionada con ...
This method should check whether a number is a palindrome or not: typedef enum { false, true } Bool; Bool is_pal(int n) { Bool is_pal_helper(const char *arr, size_t size); char temp[12]; // INT_MIN == '-' + 10 digits (+ null-Terminator) sprintf(temp, "%d", n); return is_pal_helper(temp...
I'm working on a new prototype that is a simple drag and shoot arcade basketball game. For this project I am working with LibGDX and the Box2d physics library. You can play the game here: Play arcade basketball! This here is the custom collision listener for the game. One quirk that I have not been able to resolve is...
I find it pretty annoying that c++11 atomics can't be copied. The reasons for this have been discussed e.g. here and I don't want to argue about them now. However, I find myself repeatedly in situations, where I want to copy data structures around that contain atomics. Usually BEFORE they are actually used in a multith...
I have a class in my application which manages storage of OAuth2 tokens. There are unauthenticated tokens (in my code, called "application access tokens") which can be used for API calls that do not require a user account, but when a user signs into the app, I receive an authentication code from which I retrieve an aut...
Isn't it annoying when you can't find a file you recently created? Especially when you either have a very disorganized drive or a directory with lots of files. Even if you don't care, isn't it nice to have a program be able to locate a file for you? I did this because I have files that I can't seem to locate, but I kno...
Is this an effective way for merging two lists? It seemed too long. struct Node { int item; Node *next; }; Method: Node* mergeTwo(Node* headA, Node* headB) { Node* currentA = headA; Node* currentB = headB; Node* headC = NULL; Node* currentC = NULL; while (currentA != NULL && currentB != NULL) { if (curre...
My goal is to continually update an object and record any changes and the times they were made at. The input has to be JSON but the output/storage format doesn't. This function will check a JSON object/dictionary against a reference object and return a list containing the updated object and another object containing ju...
In my ASP.NET form I have a file upload control where I am letting users upload image files, converting it into base64String to store it in the database. I am using following code to do so, if (FileUploadControl.HasFile) { var img = new Bitmap(FileUploadControl.FileContent); ...
Two days ago I started reading about SignalR and today I started writing a simple application. I have written the code below so far, but I was wondering if you have some tips to improve my code. Program Desktop client will automatically create a random group (random) and displays the random generated code to the user....
I'm learning the mvc pattern and today I finished my first mvc routing class. Hope you can give me some tipps and improvements. Router.php <?php namespace System\Libraries; class Router { /** * Store the given parameters * * @var array */ private $_param = []; /** * Default actio...
I have function that builds different types of boxes. namespace TestSome.ViewModel { public class OneBoxViewModel : ViewModelBase { private ObservableCollection<BaseBox> boxes; public ObservableCollection<BaseBox> Boxes { get { return this.boxe...
I put together a jQuery plugin that displays a month of dates using underscore templates. When the template has been populated and displayed in the UI, a user can click on a date which sends a request to the api(with the selected date parameter) to give a list of available deals on that date. I then display these deals...
We are always told to call GPIO.cleanup() before we exit our Pi programs. I've seen people using try ... catch ... finally to achieve this. But hey, we are doing python here, an elegant programming language. Do you guys think this is a more elegant solution? # SafeGPIO.py from RPi import GPIO class SafeGPIO(object): ...
As part of a larger project I wanted to write my own size once RAII C array wrapper. Now I could have just used std::vector, which I'm sure is the first thing almost everyone will want to point out. However, I'm doing this for learning purposes. Aside from wanting to learn more, Simple_Array is not exactly designed to ...
I love the badger's song (YouTube), so I wrote a FizzBuzz about it. The thing is, I've been writing Javascript for years but I'm still not sure about the best practices. So FizzBuzz seemed a simple trial for me to write some code and make it reviewed! function FizzBuzz(limit){ var _limit = limit; var fizzBuzzC...
I am using Selenium Webdriver via Java. My method clicks on a filter check box (eg. make, model, etc.), that is passed in, from a modal. When running my method in my test class, via ChromeDriver, it seems to go pretty slow and rightfully so since I am making a lot of tiny network calls for getText(). How can I optimize...
After searching around and reading through articles and answers I came up with this implementation for extending the cookie for Forms Authentication. I am not sure that I did not introduce any vulnerabilities and now I provide it here for review. public ActionResult LogOn(LogOnModel model, string returnUrl) { ...
I am new to programming. I have written a solution in two different ways, but would like to know what is considered a better solution, and why. Additionally, in terms of performance, why would one be considered better? Solution 1: function titleCase(str) { str = str.toLowerCase(); str = str.split(""); str[0] = s...
Still hooked on Windows, I refactored the hook into a number of interfaces, and I wanted to support 2-step hotkeys, so I started with defining an IHook that can be attached, detached, exposes a property that tells whether a hook is attached or not, and raises an event when the hook receives a message: public interface ...
I'm a novice to Scala and Akka-Http and am experimenting with Akka-Http for writing rest services. I have to return JSON or protobuf based on the Accept-Header. optionalHeaderValueByName("Accept"){ contentType => if(contentType == Some(protoEncode)) { complete { NewsService.getNewsList().map { case ...
For my first Python project, I decided to create a script that would automatically collate MP3 files into a music countdown. I wanted to 'learn by doing', so I dived straight in and used the Python docs and Stack Overflow as my primary learning resource. The idea is as follows: Python script resides in base directory....
I have this method which returns the number, but Rubocop said: Assignment Branch Condition size for rating is too high. [15.84/15] def rating response = response_quality if response == 1 && @typos.zero? 5 elsif response == 2 && @typos.zero? 4 elsif response == 3 && @typos.zero? 3...
I'd like some feedback on the readability, style, and potential problems or issues. foursquare.py import time from api_keys import CLIENT_ID from api_keys import CLIENT_SECRET from api_keys import CATEGORY_ID from business import Business from business import make_request def search(lat, lng, distance): """ ...
I was thinking of building a really flexible fluent API for my persistence layer. One of my goals is to achieve somehow the following result: IEnumerable<User> users = _userRepo.Use(users => users.Create(new User("MattDamon"), new User("GeorgeClooney"), ...
My code returns the correct answer for the example (highest prime of 13195 is 29), but when I test against the number in the question my code basically is too slow for my liking. The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? Is there anything obviously w...
I've created a program for work that checks the status of all our servers quickly. What we use to have to do is ssh into each server manually. I'm looking for some critique on what I've created here. Any input on it would be greatly appreciated, such as better syntax I can use, better variables, easier ways to perform ...
I've been tinkering around with making a fancy clock on a Raspberry Pi B. This little application will sync the Pi's time with an NTP server, then display it using toilet so it's nice n' big & centered on a monitor. This was made for a GUI-less Pi, and I'm looking to hopefully make it more efficient. Right now the seco...
I have this web site I inherited as part of my job and it has some old code. I'd like to optimize it, but I don't really have the time to do it right, so I'm looking for some "low hanging fruit" to optimize. Basically I want minimal change with the greatest performance improvement. One of the things I've come across i...
I'm trying to write a function that produces an infinite list containing strings of the form \$a^nb^nc^n\$. My first idea was to do it using comprehensions. f = [replicate n 'a' ++ replicate n 'b' ++ replicate n 'c' | n <-[0..]] But this does a lot of duplicate work. I then decided it would be better to do the followin...
I have a function that returns rows from my database, and it works fine, but I was told that it was poorly written, and there is a lot of unnecessary code in it. I'm wondering if there is a simpler, easier way to rewrite this function. function gd($query) { global $connect; $fetch = mysqli_query($connect, $que...
My algorithm for finding an Euler tour of a digraph, G⃗, if such a tour exists, starting from some vertex, v. 'use strict'; var graph = { 1: [{val: 2}], 2: [{val: 3}], 3: [{val: 5}, {val: 4}], 4: [{val: 1}], 5: [{val: 6}], 6: [{val: 3}] }; var EulerCyle = (function(G, source) { var Cycle...
I'm working to make a thread that monitors a web API to get the latest announcement via JSON. I cannot test this currently, so I'm unsure if anything needs to be changed with this. I've read through other questions but everyone else doesn't seem to be using a loop to keep getting a response. public void run(){ try ...
As an attempt to learn multithreading better, I wrote a program to crack the password of a ZIP file. It is sort of slow, processing a three-digit password of the 95 printable ASCII characters in about 1:45 minutes. This is my class that actually handles the cracking: class DecryptPassword { private readonly List<...
I've been just getting started with Agda. I tried to prove, as exercise, evenness. even : ℕ → Bool even 0 = true even 1 = false even (suc (suc x)) = even x x : even 12 ≡ true x = refl But asserting truth using _≡_ seems like a really bad way. What would be the best way of doing the same thing?...
I have this project about using OOP in python. How to fully make use of OOP and use __init__(self)? class Parent: name = "Player" lives = 3 #display player running def run(self, name): self.name = name print "%s is running." %self.name #player will start to jump against enemy de...
Background I am working on a WebGIS application using JavaScript and ArcGIS JS API. I am new with js, so please bear with me. While learning and developing with js, I am trying to follow some rules, such as Asynchronous Module Definition (which ArcGIS JS API encourages), Revealing Module Pattern, and the Standard Style...
On my quest to learn Ruby I figured exploring the proper usage of different data-structures would be invaluable, including strings, arrays and hashes. I decided to build a hash containing the numbers 1 till 100 inclusive. These hashes would contain: Whether the number is prime What it's FizzBuzz output would be The n-...
I'm tutor for a university operating systems course, and part of my work is creating exercises for them. Those exercises are mostly about concurrency and synchronization issues. For the next exercise I intend to show them the finished implementation of an unfair counting semaphore, and their job is to make a fair one. ...
I have a working useless todo app created with ReactJS. I'm just wondering if my code can be improved. This app can add a todo item and it can display editable list of todo items. This is my ReactJS code. var TodoApp = React.createClass({ getInitialState: function() { return {items: []}; }, addItem:...
I've been looking at some code done in C# ASP .NET WebForms and for some reason I really don't like the below code. What is the best alternative for creating a document and downloading it in Webforms, on the click of a button? Should the developer be messing with the Response at all, in this way? Response.ClearContent(...
I recently had the need to detect how long a button is pressed and perform different actions based on that. I found some examples on Stack Overflow, but the ones I looked at showed how to use timeout(). I came up with this. There are probably other ways to solve this. While searching, I found an example using IIFE in J...
I got tired of starting timer every time I need to do something simple as running some function 5 seconds after something in my code happens. So I tried to write a function (actually, 3 of them: setTimeout, setInterval and clearInterval) to write one line of code when I need it instead of, say, five. It is working, at ...
I've written a jQuery Plugin which searches text and replaces it with other text or HTML. Now everything works quite well, but recently I came across this SO question where the OP could have use of my plugin. That's why I linked to the GitHub repo and asked him for critiques and/or contribution. Soon after, he said tha...
(See also the Algorithms part.) Post details The program I am putting for being reviewed does not fit entirely in a single post, so I have to resort to the equation by Niklaus Wirth: Algorithms + Data Structures = Programs This part is about data structures: a set of classes that do not do anything fancy. Of course, ...
Yesterday, I've come up with the idea of using python context manager to ensure cleanup available here. This time I am using that context manager to make a decorator. The context manager # SafeGPIO.py # updated, warning silenced from RPi import GPIO from exceptions import RuntimeWarning import warnings class SafeGP...
Update: Version 3 is here. My first version was an answer I provided to EBrown for his original post titled "Multithreaded Mandelbrot Generator". My answer had many good things in it, but I felt some of parts of the code were weak, particular around my efforts to apply some flexible scaling rather than using a constan...
Note This post is a continuation of Discrete event simulation of a prioritized lunch queue in Java (Data structures). Please refer to it for problem description. This part about "algorithms": all classes that are more about doing rather than representing information. PrioritizedQueue.java: package net.coderodde.simula...
I made a library that adds undo/redo functionality to EditText widgets in Android. It came from problem I had building text-editing apps that deal with large (1,000words plus) volumes of text, and the performance problems I came across using some pre-existing solutions. Calling setText() with large amounts of text on s...
I have a list of boxes and need to list only the outdated ones. For example, input will look something like this: maier/alpine-3.1.3-x86_64 (virtualbox, 1.2.0) maier/alpine-3.1.3-x86_64 (virtualbox, 1.3.0) ubuntu/precise64 (virtualbox, 20151202.0.0) ubuntu/vivid64 (virtualbox, 20150821.0.0) ubuntu/...