instruction
stringlengths
71
71.9k
This ASP.NET MVC website is for my professor to track my progress on my Checkers app. This is the first time I have build an ASP.NET website entirely on my own, and I would like a review to make sure I am doing everything in the best way possible. First, my HomeController: public class HomeController : Controller { ...
The idea is that a user will dynamically edit simple key/value settings that will customize their instance of the application, e.g. the welcome banner text. I am trying to implement everything in a generic way, but the more I think about it the more I feel that I've over thought it since in order for one of these value...
I've created a small User Control library in WPF that contains a few GUI widgets that allow users to enter regular expressions. The widgets provide visual feedback when the user has entered an invalid regular expression, and support all the RegexOptions that are provided by the .NET regular expressions library. Here i...
The generic version of extension method is aimed to work like String.LastIndexOf which can search t from the last position of s. The BuildTable method is exactly same with the method used by normal KMP algorithm, which is to determine the differences between each element. I am not sure if this is the best solution as t...
Frustrated by the lack of syntax highlighting on Stack Exchange sites for code snippets written in x86 assembly language, I decided to do something about it. The network uses Google Code Prettify as its syntax-highlighting engine, so I wrote a new module that adds support for this language to Prettify. The Prettify pro...
Given a m * n grids, and one is allowed to move up or right, find the different number of paths between two grid points. My major idea is, if move r steps right, u steps up, we can find (1) solutions for r-1 steps right and u steps up, then combine with one final right step (2) solutions for r steps right and u-1 ste...
Problem statement You're researching friendships between groups \$n\$ of new college students where each student is distinctly numbered from \$1\$ to \$n\$. At the beginning of the semester, no student knew any other student; instead, they met and formed individual friendships as the semester went on. The friendships ...
I have an unordered_map<int, std::shared_ptr<foo>> into which I want to lazily create the instances of foo based on callbacks. These callbacks would come from potentially a pool of threads, so to handle this, at the start I create the map and insert empty shared_ptr<>s into the map for all possible indexes. Now I have ...
I use JMeter for load testing and want to report error on CI pipeline when application though put is less than 1/sec. JMeter logs summary of results as - 2017/01/17 01:57:00 INFO - jmeter.reporters.Summariser: summary + 103 in 00:00:30 = 3.4/s Avg: 2937 Min: 48 Max: 7962 Err: 0 (0.00%) Active: 2 Starte...
This is educational purpose "simulation" of multiple readers / single writer server. No actual work is done, except the synchronization. In current realization, readers have priority over writers. #include <thread> #include <mutex> #include <condition_variable> #include <shared_mutex> #include <vector> #include <cstdi...
Part 1 - Beginnings of a Poker hand classifier I'm a beginner programmer I've been working on a poker hand classifier to improve my object orientation and programming skills, I've improved and expanded my class from last time and wanted to share and see if what I've done could be improved. Card Class, Hand Class, enums...
I recently started learning python. Requirements Input: Integer between 1 and 3999 Output: String with Roman numerals I would appreciate it if someone could have look at the code and give me any feedback. I am particularly interested in the Python specific improvements, as I mainly programmed in C before. Edit: Any f...
I have written the following code for the selenium Python select function and the code works fine. Select(self.driver.find_element_by_id("currencyid")).select_by_visible_text("AUD") Select(self.driver.find_element_by_id("excur")).select_by_visible_text("AUD") select1 = Select(self.driver.find_element_by_id("currencyid...
I'm learning the kinematic equations in Concepts of Engineering and so here are the equations I am learning: To complete the lesson, I was told to create a Python program that outputs the horizontal velocity and the maximum height of the projectile. Here is my program: # x = v_x * t + x_0 # y = 0.5(g * (t**2)) + v_y0 ...
More than a full-fledged sorting algorithm, vergesort is a Runs-adaptive algorithm that falls back most of the time to another sorting algorithm to sort a sequence of elements, but is able to identify ascending or descending runs (already sorted subsequences) in the sequence to sort and to take advantage of them to per...
Here is a class Bits that I wrote in order to deal with sequences of bits that also need to be interpreted as non-negative integers (in case you are familiar with VHDL, the class should be similar to the unsigned type from numeric_std). Instances of Bits support: The built-in int and len functions giving the integer v...
This is a simple exercise in C designed to work on IO. The purpose of the program is simple: convert a number of hours and minutes to a total number of minutes. #include <stdio.h> const unsigned short MinutesPerHour = 60; int main(int argc, char* argv[]) { int hours, minutes, total; if(argc == 1) { ...
I'm trying Rxjs 5 to simplify some Node.js nested callbacks. I need to read a directory (fs.readdir), then read stats of each file (fs.stats) and parse them if they were modified since last sync. The following code works but I find it a bit odd and not "the rxjs way" because of the first switchMap which is too big! con...
I have been able to create an XSLT (included) to convert a source XML to a target desired XML format (included). However, I am sure this can be optimized leveraging some built in XSLT capabilities which are beyond my proficiency. The core requirement is that Input XML contains header values and data (the first record c...
I am using ASP.NET core entity framework. I am using an input submit button to call a method that has a variable attached to it. I am wondering if there is a way to improve my code. Here is my .cshtml code: <form action="/DeleteItem/@item.Id" method="post"> <td><input type="submit" name="submit" value="Delete"/...
Continuing with my series of cipher programs, I hastily wrote a null cipher program, and I was wondering how it could be improved: #include <iostream> #include <vector> #include <sstream> #include <iterator> #include <algorithm> std::string getString(); std::vector<std::string> tokenize(const std::string & str); std::...
I'm very new to front-end/unit testing and have been having a difficult time understanding the point altogether, but I managed to push my way through testing literally everything I could possibly think of. Anyways, if anyone has the time I'd love a review of my component and tests for said component. Component import R...
I am learning PHP OOP and unit testing so I made a code using OOP and TDD approach where it calculates the degree of and angle betwee the clock's hour and minute hands. I would like to know: Is the structure of my object class good? If not, what is the better approach? I know my test has covered the codes that need to...
I attempted to define Penultimate, i.e. a type class for shapeless.HList's that have a second to last element. import shapeless.{HList, HNil, ::} object Penultimate { type Aux[L <: HList, O] = Penultimate[L] { type Out = O } def apply[H <: HList](implicit ev: Penultimate[H]) = ev implicit def secondToLast[H, G...
I'm coding a wrapper for OpenGL 3.3, and I have some questions about the design of my Shape class. To be short, It's a class that englobes a VBO, a VAO, and an EBO if some indices are given in the constructor. The problem is that the class is too heavy. Half of the time, not all the code is used, and the draw function ...
This has been an experience. I'm well above "hello world" java is not a language I use often when programming and I don't program too much. I find myself a lot on Google.... basically just about for every task. Which has brought me here. Before I continue on I would like a critique of my work so I don't have to change ...
For each itemId I need to select a value in my PostgreSQL query. I am doing it like this: select itemId, CASE -- Revenue WHEN itemId in (339,28,29) THEN 'Revenues' -- Rev CHG calculated on the back-end --Expenditures WHEN itemId = 102 THEN 'SG'||CHR(38)||'A' -- SGA CHG calculated on the back-en...
I am currently reworking our entity code generator, that uses JaxB for schema validation, and Stringtemplate for code generation. As we are giving our professional service the possibility to add Validators to the attributes of the entities they create, I need to wrap each parsed Field, in order to add the Validators. T...
I am implementing the stochastic gradient descent algorithm. I think there is plenty of room for improvement. def array2onehot(X_shape, array, start=1): """ transfer a column to a matrix with each row being a onehot note that the array index defaults to start with 1 rather than 0 """ array += 1 - st...
This is mi UserControl containing ComboBox and few buttons for selecting and manipulating collection of items which implement simple interface IHasHeader (just header with name and ID). It works now but I feel that I use some not ideal hacks, especially in the area of binding of ComboBox's datasource. I'll be glad for ...
I am writing C code that has some dynamic arrays/list that are represented with a struct that contains the number of elements and a pointer to the elements. I have some functions that are doing some similar work with that structs, for example printing the elements. To use the same code I decided to create a struct to t...
To practice around with C++11 smart pointers I was trying to implement a simple Queue to go beyond a simple Linked List. The fact that the _first and _last nodes are pointed to twice at runtime made me decide to implement them as shared_ptr. I was wondering if this was the correct way to implement the data structure. ...
We're migrating our streaming ETL application from Python into Clojure, the hottest part of the code isn't yet performing as well as our existing implementation. This looks to be down to the algorithmic complexity of our flattening function. Take a nested map, flatten the data structure and rename keys. We take data ...
I am writing a Python module in which two threads access one list. One thread adds 500 items to the list per second, and the other thread reads the list at an irregular interval. I want to make a thread-safe "list" class to avoid having to use locks every time I read or write to the list (suggested by this answer to a ...
I have a code for calculating the pairwise distances and the residuals of my data (X, Y, Z). Data is quite large (average of 7000 rows) and so my interest is code efficiency. My initial code is import tkinter as tk from tkinter import filedialog import pandas as pd import, numpy as np from scipy.spatial.distance import...
I've recently been working on a small Python script that I was tasked to do at my new job. It will basically handle the rotation and notification of the on call engineer by populating a Google Calendar with the schedule as well as pinging a Slack channel I created. The script will be run weekly as a cron job and will p...
For a project of mine, which is targeting java 6, I had been in the need to have different algorithms/methods to change a BufferdImage with a ColorSpace.TYPE_RGB to a plain ole black and white one. To test these implementations I therefore created an interface public interface BlackAndWhiteConverter { BufferedIm...
Is there anything functionally different about this prototypical design pattern: var Greeter = function(message) { this.greeting = message; return this; } Greeter.prototype.greet = function () { return "Hellos, " + this.greeting; } As opposed to: var Greeter = (function () { function Greeter(message) ...
I created a board editor for my Checkers game. This allows the user to create any board position and copy the FEN string representing that board, which can then be used to create a game from that position: I think this is pretty good code, but I'm not sure if the way I communicate with the view model from the view is...
This currently starts out with the speed of 2000 pages/min but shortly after starting it becomes very slow with a speed of about 200 pages/min. Why is this happening? How can I improve this scraper? import scrapy from scrapy.crawler import CrawlerProcess from time import time def isAscii(s): return all(ord(c) < 12...
This is a follow-up question to Concurrent stack in C The pop function not just removes the top element from the stack, but also returns it. If a pthreads call fails, an error message is displayed and the program exits with EXIT_FAILURE. Program exits also if allocating the memory for the stack fails. concurrent_sta...
I built a simple product filtering feature that works at least in the browsers and platforms that I have tried using it on, but I am unsure about a couple of aspects of it. I built this on a Bigcommerce site but I think my questions could still apply broadly (some): Is this a solid approach?  Conventional? If not, ...
I have built this script that sends a magnet link to the client. As I never ever had any proper programming lessons I would want to ask you if this approach is good, if I am missing something, There are parts of the script that are handled off-side, link checking, login credentials etc. What I have been thinking is tha...
I've been using random UUIDs—from Rust, e.g. Uuid::new_v4()—for my primary keys in a MySQL database. I recently happened across this, which suggests that UUIDs with an appropriately positioned time component offer some performance improvements. I created a naive UUID generator like: fn uuid_new() -> ::uuid::Uuid { ...
Write a function that meets the specifications below: def find_combination(choices, total): """ choices: a non-empty list of ints total: a positive int Returns result, a array of length len(choices) such that * each element of result is 0 or 1 * sum(result*choices) == total * ...
Overview Using SDL and my own tiny wrapper library for it, I've written a tetris clone. I would really appreciate it if someone could take a look at it and tell me if something is particularly bad (or particularly good). I aim to make my code expressive, maintainable, with good abstraction levels, all the good stuff. B...
The main problem that I tried to tackle here was trying not to have the erase method to be \$O(n)\$. I kept two data structures: a linked-list of pairs and a map of a key and a pair containing a value and a pointer that points to the node in the linked-list. Am I on the right track? Right now the code is all rough, ugl...
I am building one of those contact forms that are conversational. I have code that works but I don't think it is optimal (at the bottom). The form looks like: The code is live on this codepen The problem I was solving was that the placeholder text on one of them is very large and would either break into two lines or ...
I'm building a survey data collection. Currently, I am done with building the prototype. It serves as wizard like control to navigate through various pages in a survey project. app/index.php $f3 = require_once __DIR__ . '/lib/f3/base.php'; require_once __DIR__ . '/controllers/PlayerController.php'; function glob_call...
I have a class in which I am passing certain parameters through the constructor and then using those parameters to make one final byte array with a proper format (header + data): public final class Frame { private final byte addressedCenter; private final byte version; private final Map<byte[], byte[]> keyDataHol...
I currently have a Generic Implementation of a BinaryHeap. It must be able to maintain it's integrity with elements that may or may not implement IComparable<T> so a Comparison<T> delegate is used allowing the specification of a compare function at creation for the contained elements. So an example call would be: var h...
This is a continued discussion from (Different path for grid move) to optimize for space complexity, and since it is new code and I make a new post. Given a m * n grids, and one is allowed to move up or right, find the different number of paths between two grid points. My major idea is, if move r steps right, u steps...
I'm doing a project to find the Eulerian path. Cane someone find an example where the algorithm is wrong? The function EulerianPath recursively prints the Eulerian Path. Some some parts of the code are in Portuguese. #include <bits/stdc++.h> using namespace std; class Grafo{ private: int N,A; // N: Vertic...
A guy at the company I work for needed a small application that would combine multiple text files into one, larger text file. I wrote a console application for this. it seems pretty efficient, but I was wondering if there would be an even more efficient way of doing this. It has 2 important functions, one that gets the...
I have the following code to recursively list files within a directory: from fnmatch import filter from os import path, walk def files_within(directory_path): files_within = [] for root, directory_path, files_path in walk(directory_path): for file_path in filter(files_path, "*"): files_within.append...
I'd like feedback on the class below, from the perspective of wanting to write professional code that I would be paid to create. I would appreciate comments on details such as commenting, naming and layout as well as the actual functionality. The code is a class which takes two arguments (directory and extension) and s...
import ssl from socket import socket class testsock(socket): def __init__(self, tls=True): super(testsock, self).__init__() self.connect(('192.168.0.1', 443)) if tls: self = ssl.wrap_socket(self) # Ugly "handover" testsock(tls=True) This code works, it's the second ugliest bod...
I've implemented a class that lets you check out whether there is an ApplePencil connected to the device or not. import Foundation import CoreBluetooth class ApplePencilReachability: NSObject { fileprivate let centralManager = CBCentralManager() var pencilReachabilityDidChangeClosure:((_ isAvailable: Bool) -...
My school has a special 65% formal 35% informal weighting, so I made something to find what your grade would be if you added or changed a grade. http://retep-mathwizard.github.io/gradecalc/gradecalc.html HTML: <!DOCTYPE html> <html> <head> <title> Grade Calculator</title> <meta charset="utf-8"/> <link rel...
I wrote a php script to register a user's bank account and I've tried to make the login as secure as possible, but I wonder if there are any flaws and is it's free from xss attacks and sql injection also the login cookies secession. Here is the code: register.php <?php require('includes/config.php'); j function test_i...
For the first time I've worked in Excel VBA to find rows in my dataset that contain the same adress as another entry in a cluster. These entries have to be merged and the row then is deleted. I've come up with the following, which works (As far as I can tell from the testing I did on small samples of the set): Sub Merg...
Intro: Today I have decided to make an Excel automation task with C#. This is probably the first time I am doing something like this, thus the problems are plenty. The task: Pretty much, the idea is the following - I have 4 excel files in folder strPath. I have to loop through all of them and make a file called Report....
I am trying to open each file listed in Sheet2 Column A, search for a string of text located in Sheet3 Cell B1, list the number of instances this string appears in each particular file in Sheet3, and then close the file. My code works at the moment is very slow. I have tens of thousands of files that need searching, so...
I want to process a ton of JSON objects as quickly as possible. I've done my best to make the processing as concise and efficient as I can. How can I make it more efficient? private void processButton_Click(object sender, EventArgs e) { // For measuring how long the processing takes. var stopwatch = Stopwatch.S...
A Rails 4.2 app has three models: User Author Quote ... and the following associations: users HABTM authors author has_many quotes If the user is associated with any authors, his "profile" view should display statistics about the number of quotes of each author. Example: Your author(s) Mark Twain has 73 quotes, Ch...
I recently created a function calculating the sum of an arbitrary range object in \$O(1)\$: def sum_of_range(range_obj): """Calculates the sum of a range object (Python 3) in O(1). This function always returns a python integer representing the sum without loss of precision (as would happen if it uses inte...
I'd appreciate feedback on the code itself (style, performance optimization (both space and time)), and also on the algorithm (because I think this is typically implemented using a stack). The assumption I'm making here is that there are only two constraints to having balanced parentheses; one is that there be the same...
The purpose of this code is to ask the user to input an email address but it must contain "@" and ".co". The code works but it is too long so I would like to know if there is any way to shorten it using functions. email_address = input("What is your email address? ") while "@" not in email_address: email_address = ...
I have a two directories, input and output. input is a flat directory containing, among others, some .jpg files. output has nested subdirectories and contains .jpg files with same names as these in input. There can be some names in input missing in output. Names in output can be duplicated in different subdirectorie...
Basically, I'm trying to find all active people with a roleId of 3 (analyst id). But I want to exclude ids that were created as test analysts, i.e. "130", "252", etc. I see that I'm repeating the part to exclude the test ids. Also, I'm repeating the part about the roleId. Isn't there a way to optimize it? My query work...
Question: An anagram is a word that can be written as a permutation of the characters of another word, like "dirty room" and "dormitory"(ignore spaces). However, "the" and "thee" are not anagrams, since "the" only has a single "e" whereas "thee" has two "e" characters (spaces can occur zero, or multiple times,...
I wrote some code to generate list items for a menu in Clojurescript. The intention is that the code takes parsed Markdown (Hiccup) that has been filtered down to h2 and h3 elements, and then converts them into unordered lists where the h3 elements are nested inside their immediate h2 predecessor. It turned out to be s...
Here's some code I've written for an MMO server I'm working on. I'd love some opinions and eventually unspotted bugs. struct Data { Data(int i) :id(i) {} int id; }; class list { public: struct Node { std::shared_ptr<Data> d_; std::shared_ptr<Node> next; }; private: CRITICAL_SECTION update_lock; concurrenc...
Suppose we have two sorted lists, and we want to find one element from the first, and the other element from the 2nd list, where the sum of the two elements equal to a given target. If there are multiple combinations, need to find all the combinations. Any bugs, performance improvement ideas in terms of algorithm tim...
Is there a better way of generating a series of unique and random integers between 1 and 10 in JavaScript (ES6)? const ran = []; while (ran.length < 10) { x = Math.floor((Math.random() * 10) + 1); if (!ran.includes(x)) { ran.push(x); } } console.log(ran);
Here is a naive version of a singly linked list in Java. It implements only Collection and Iterable interfaces. Any comments and suggestions are welcome. SinglyLinkedList.java: package com.ciaoshen.thinkinjava.newchapter17; import java.util.*; public class SinglyLinkedList<E> implements Collection<E>, Iterable<E> { ...
I just wanted some review and opinions. Any better implementations or suggestions would be great. Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci...
Problem Given four lists A, B, C, D of integer values, compute how many tuples (i, j, k, l) there are such that A[i] + B[j] + C[k] + D[l] is zero. To make problem a bit easier, all A, B, C, D have same length of N where \$0 \le N \le 500\$. All integers are in the range of \$-2^{28}\$ to \$2^{28} - 1\$ and the r...
I just finished one of the Google FooBar Challenges.My Python is super rusty. I did the challenge in Haskell first and then attempted to covert the code. I am guessing that led to some bad Python Practices. Oh no! Commander Lambda's latest experiment to improve the efficiency of her LAMBCHOP doomsday device has bac...
This is a continued discussion from (Different path for grid move (part 2)) to optimize for space complexity (using only cur list, other than a cur and another pre lists), and since it is new code and I make a new post. Given a m * n grids, and one is allowed to move up or right, find the different number of paths bet...
Following is the script I'm using to group key-value pairs based on an ID field viz. interface_id: // Ensure compatibility with both JDK 7 and 8 JSR-223 Script Engines try { load("nashorn:mozilla_compat.js"); } catch(e) { } // Import the interface required by the Script snap. importPackage(com.snaplogic.scripting.lang...
I have a simple stack class. It uses a linked list for its data structure and it is of type template so any datatype (including pointers) can be passed in. It can be initialized on the stack or on the heap. It does only what a stack should do and nothing more. It is constructed entirely in the header file to avoid comp...
I am doing this problem on SPOJ: My kid's kindergarten class is putting up a Christmas play. (I hope he gets the lead role.) The kids are all excited, but the teacher has a lot of work. She has to produce costumes for a scene with \$K\$ soldiers. She wants to buy all the costumes in the same size, allowing for som...
I am currently looking into improving code efficiency while working with a flat string collection in C#. The strings in this collection can be considered a "group" or a "child". The problem is that the API for this collection is exposed in such a way that the type of each String in the collection is not directly retrie...
Parameters: first - the first string. second - the second string. similarCharacters - outputs the number of similar characters. tolerance - the number of mistakes allowed to consider the strings "similar." Function: bool Str_Similar(std::string first, std::string second, unsigned int* similarCharacters = nullptr, int t...
I have a method which takes a certain generic object, which basically orders these objects based on a list of tags. Because I want to use this method for multiple objects, I have created a class which only contains the Id, list of tags and an average rating from each object, it looks like this: public class Recommender...
In my application, I am using UserDefaults to save some data. I also started writing tests for testing my application code. At one place I stuck where I wanted to write tests for functions which are saving data to UserDefaults. When I wrote tests with fake data, my actual data got overwritten by fake data. So I choose ...
For a project I created a more detailed last row finder which looks at more than one column. Could you provide any feed back on the code below. Function lColCount(ws As Worksheet, Optional iWhichRow As Integer = 1) As Long Dim sMaxCol As String sMaxCol = Cells(iWhichRow, ws.Columns.Count).Address lColCount = ws.Range(s...
I'm creating a web app to create pixel maps for large LED displays. The maps are basically large checkerboard patterns of various sizes with different constraints. I'm running into snags trying to draw arrows pointing in certain directions dependent on their position within a) the entire grid, and b) within smaller su...
Instead of "Black and Green" text, We are displaying "Black & Green" images with help of below code. What we want is this concept should work for all colors, for that one solution is i need to write manual code for hundreds of colors as like below to make it work for all colors. but i think this is wrong way , may be...
I just re-wrote a library to easily retrieve the proxy settings of Internet Explorer (self answered SO question: https://stackoverflow.com/q/41764614/3207406). Git repository GoDoc (with an example) package ieproxy import ( "os" "strings" "sync" "golang.org/x/sys/windows/registry" ) // StaticProxyCon...
This is really my first time using a class and I originally wrote it without the class and without refactoring. This is to take two inputs (csv), place the data in arrays and then compare the arrays. Both inputs have the exact same structure e.g. It returns any matches that have the same C,D,E,W and gives the header (...
In a recent project I was to create a web service that would be consumed by another application. One of the requirements was to have a key in the service that authenticated the request as valid. But this key must never be the same and the key should be invalid soon after its use. This is the code I wrote to that purpos...
I have a card-based iOS app that uses a sizable static array of cards. Each card has several properties, mostly strings, numbers and boolean. The first version of this app had 3-4 properties. The next version had about 7-8. Now it has 10-11. I have plans to add another 5-10 properties. With each iteration, I had to cha...
I currently have the following code. This function works successfully, however, i would like some feedback because I think it is very messy. Currently, this function checks if the field is checkbox or textbox or Select. Once it verifies the field it performs an action based on that. For example if it is SELECT it will...
I have a function that creates a css transform property string based on some global variables. This string can be copied later by a user, so I would prefer to keep the output short. This is my code: var createTransformation = () => { var final_transformation = ""; if (x) final_transformation...
This code is built to insert a Node into a specific position of a linked-list. It passes all the test cases for the interview, but I was wondering about the coding style regarding techniques, and especially variable naming, and any other best-practices you can help with. Node* InsertNth(Node *head, int data, int positi...
Currently, I'm trying to learn every aspect of the MVVM design pattern. So basically I've written a little WPF App where I'm trying to understand Navigation in MVVM, the app has one MainView wich controls with a ContentControl the other Views. Even tho I've read so many things about MVVM I'm never comfortable with my ...
This script is designed to locate and download the first repository in your sidebar on the GitHub repository page. It downloads the .zip file for that repo and saves it to the default location. I built this script as a test to determine what it would take to perform this type of operation since I needed to use it on so...
I have this code I have made to check after new release, when there is a new one it ask you for install it, and then installs it if you accept. The file is a zip file with the new folders and files inside there be unzip and pull into the system. Can it be improved? Update.php <h1>DYNAMIC UPDATE SYSTEM</h1> <?php $loca...