instruction
stringlengths
71
95.1k
My goal: I want to ping every single IPv4 address and record whether or not they responded. The way I have it set up is every IP address corresponds to an index. For example 0.0.0.0 is index 0 and 0.0.1.0 is index 256. So if 0.0.0.0 responded, then the 0th element of the bitarray is true. At the end I write the bitarra...
I wrote a program to rename files with consecutive numbers, basically removing the gaps in the numbering. This could be a very annoying task to do it manually in windows. I only did this for practicing Python purposes. Lets show what the program does in an example: Say you have a folder E:\Spam which contains the follo...
My previous iteration was here. I've since finalized the concept as described in the title, and would appreciate any feedback GitHub Link Introduction: value_ptr is a C++11 header only, deep-copying smart pointer that preserves value semantics for both polymorphic and undefined types. value_ptr aims to address the fo...
I already asked for help in optimizing a simple Caesar Cypher code in java here : Cesar code in Java I tried to implement all the advice from that subject and now I am asking again. Do you have any other advice to optimize this code ? What can be improved ? Here is the code, thank you in advance : Cypher.java : packag...
I recently asked for a code review to my login system. This login system was fully directed to the user. Now I have added some code lines to print out some links related to the admin. Basically I only added a condition on profile.php: if($_SESSION['email'] == 'admin17598@outlook.com'){ echo 'a link to a file that i ...
This is the first piece of code that I write that's not just an exercise but a full program I can actually run. Features: Generate random letter/number pairs for each "printable" ASCII character Save those pairs in a pickle file Encode/decode any string based on that Basic user interface I would greatly appreciate an...
I have two lists of dictionaries. Both lists always have the same ids. I want to get the following result: {9: {'av': 4, 'nv': 45}, 10: {'av': 0, 'nv': 0}, 8: {'av': 0, 'nv': 30}} The following code is working but I wonder if this is the best solution? l1 = [{'id': 9, 'av': 4}, {'id': 10, 'av': 0}, {'id': 8, 'av': 0}]...
Intro netcat is an all-round tool used with many applicable features I was playing around with sockets and openssl, and decided I should build my own. It works as expected, but my code feels a bit smelly. Features ssl persistent shell cd exit Example server $ python pycat.py -lvp 8080 --ssl [*] Incoming connection ...
I am quite new to scripting, and here is my first code I wrote. The goal of the code is to extract a parent ID based on a child ID. I would appreciate some constructive criticism and aggressive checkup. The codes works and does what it's supposed to do. But how can I make it more pythonic? more passionate? import codec...
The situation I recently started a cross platform QT project (arm, linux-x86, windows) that aims to interact with CAN-Bus hardware. I want to learn and get used to unit testing from scratch as good as possible while working on that project. As I have a very limited experience in writing unit tests as well as writing w...
I've written this class to create RapportColumn objects for each column that is written in the query. And I would like to get your feedback. The query that is given in the GetRapportColumnsList() method is always a valid query. That check has been done in a previous class. I am specifically asking about the CreateColum...
I am quite bad at data manipulation and after a lot of time I was finally able to get it working how I wanted. The thing is I don't like all the delete operations, I think the code can be a lot cleaner and the runtime seems somewhat slow on a lot of data. Code readability is very important here but it needs to be small...
I am trying to assign 0 to random cells in a one dimensional pandas.DataFrame. The below code is the best way I could think of doing this, however I believe there may be a neater approach to this problem. import numpy as np import pandas as pd from random import randint df = pd.DataFrame(np.random.randint(20, size=(...
I'm trying to build a complex Newton's method. I've submitted a PR here, where you can see the documentation and tests, as well as get a compiling example. I'd appreciate y'alls help reducing the workload on the maintainer. This uses the idea that if xn converges to x*, then f(x*) = 0 whenever f' is continuous at x*. I...
Although I should know better, I wrote my own linked list implementation in C. My goal was to make it a true generic collection, with no need to modify the structure being listed. I only implemented push, pop, peek, append, size, and next. This is sufficient for implementing stacks or queues. I welcome feedback...
I'm working with C#, and I have working code where I repeated same code every line, and that's because I'm creating list, conversions, extracting data, etc. I have multiple foreach clauses, multiple lists, multiple conversions of list to datatables. My question is, what can I do to refactor this in order to have clean ...
I've written a small Python function to check whether a string is a valid IPv4 subnet mask. It works but maybe it's too convoluted and terse? Or maybe it could be improved / optimised / rewritten in a cleverer way than just to check 1's in a string?.. IsIPv4Address is another function of mine (EDIT 1: added it into the...
The task is find by pattern d--m--y---- all occurrences in text, reformat it to yyyy:mm:dd and print it separately from initial text. Actually I done all except formatting. And even in my written code I have some doubts because I just begun to learn this language. Maybe someone would help me and say what's wrong with ...
I would like some feedback for a collection of what I call "vector functionals", by which I mean maps \$\ell\colon \mathbb{K}^{n} \to \mathbb{K}\$, where the field \$\mathbb{K} = \mathbb{R}\$ or \$\mathbb{C}\$. Many of these maps have trivial implementations, but still they are well-defined and must be put into a funct...
I was playing a fun little board game called U.S. Patent No. 1 about time traveling to register your time machine as the first U.S. patent. I started to wonder what the dice probabilities were for basic attacks. In the game, you rolls 2 dice to attack, and your opponent rolls 1 die for defense. If the attack result is ...
I am developing a card game in Android. This is my first time I am working in Android,. The game contains following features: It will be a 6 player game. There are two decks on the table, one with hidden Cards(Dealt Deck), and other with shown cards(Discarded Deck). There are multiple rounds in each set, and multiple ...
I have merge two images into one. I already implemented it with some help from the internet but it takes around 2,5s. I'm testing on the simulator so let's take it as a reference. I currently use UIGraphicsBeingImageContext. Is there any faster way to achieve it? extension UIImage { func overlayWith(image: UIImage,...
I decided to do Advent of Code this year in D, and the following is my solution to day 8. Algorithm aside, I was specifically wondering if there was a better way to use ranges in a recursive manner here. I feel like I should be able to do write the functions in a more generic way (not just int[], avoiding the .array in...
I have written a Java program to calculate magic squares with recursion and backtracking. A 3*3 Magic square is calculated in about 1 sec, but a 4*4 needs about 50 minutes on my laptop with Intel i5. How i can improve the performance? import java.util.Scanner; public class MagicSquare { private byte[][] square; priva...
I'm studying the C language with a Harvey Deitel book. Trying to solve an exercise that asked to write a good sorting algorithm, I did this: void sort(int v[], int d){ int max = 0; for(int i = 0; i < d; i++){ if(v[i] > max)max = v[i]; } int v2[max+1]; int v3[max+1]; for(int i = 0; i < max+1; i++){ v2[i] =...
I am looking for feedback for the implementation for calculating factorial of a number. I have tried to do with a loop, recursion and in a mutlithreaded way. package org.spituk.study.programs; import java.util.ArrayList; import java.util.List; import java.util.concurrent.*; /** * Class for calculating factorial of a...
Recently I have been asked to implement a key map with expire time for each key and possibility to limit the number of keys, in Python. I've used a dictionary + heap to store the entries, e.g.: from datetime import datetime, timedelta from heapq import heapify, heappop, heappush class KeyMap: def __init__(self, m...
I recently asked for a review of a stack based language I made in Rust. I made a lot of changes since then and a lot has changed. Hopefully I haven't gone backwards in progress. Most notably: I refactored the code into a lexer and parser. In other words: there is a module for taking in a string and converting it into ...
I'm working my way through a book on algorithms. One of the first challenges is the merge sort. I've seen this implemented before, but as the book suggested I coded one from just the method without looking at the code. When I looked it was very different from mine. Many online examples match the way the book does it. I...
My app interacts with Google Calendar. This Service wraps Google_Service_Calendar: <?php declare(strict_types=1); namespace App\Service; use Symfony\Component\HttpFoundation\Session\SessionInterface; class GoogleCalendarService extends \Google_Service_Calendar { public const CALENDAR_ID = '123example@group.calen...
What do you think about such an object function? const stc = { delayTimer: {}, sleep: (m, name) => new Promise(r => stc.delayTimer[name] = setTimeout(r, m)), sleepProlong: async (ms, name)=> { if (stc.delayTimer[name]) clearTimeout(stc.delayTimer[name]); delete stc.delayTimer[name]; return await...
A number chain is created by continuously adding the square of the digits in a number to form a new number until it has been seen before. For example: 44 → 32 → 13 → 10 → 1 → 1 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 Therefore any chain that arrives at 1 or 89 will become stuck in an endless loop. What is most...
I made this piece of code as first step for a bigger project to iterate and manage bookmarks: open, rename, place in new folder structure, or delete each one of them. This first step is a parser to get a useful json file with the structure and data of each bookmark and folder. I've usex regex instead of beautifulsoup t...
From problem #119 of the Project Euler : The number 512 is interesting because it is equal to the sum of its digits raised to some power: 5 + 1 + 2 = 8, and 83 = 512. Another example of a number with this property is 614656 = 284. We shall define an to be the nth term of this sequence and insist that a number must con...
I have a 6 x 7 grid for a calendar = 42 DateTimes. I'm trying to display the displayed month/year at the top of the calendar. If there are 3 months displayed, I only want to show the name for the middle month (October 2018, for instance). If 2 months are displayed, split the name (October - November 2018). If 2 months...
I have been working on a project in python which takes content from web links and find some important words from content of that page. I used regular expression to do so. But it takes huge time to get the results. How it works: It makes request to given url take whole html content and data from external js files(withi...
I am making a C library that abstracts window creation with support for the new Vulkan API under a unified API; I have a github repository that you can check out. main.c #include "vkwf.h" int main() { VKWFWindow* window = VKWFCreateWindow("Test Window", 800, 600); while (!VKWFWindowShouldClose(window)) { ...
I am doing some projects so I can teach myself programming. The one that I finished states: "Credit Card Validator - Takes in a credit card number from a common credit card vendor and validates it to make sure that it is a valid number (look into how credit cards use a checksum)." Would be glad if i can get a construc...
I'm a complete beginner to Java and we have just started learning objects and classes in school. I'm trying to create a very simple text-based Rock Paper Scissors game. I do realise that my code is a mess, so I'm asking for some suggestions on how could I improve it and if I'm even in the right direction with OOP. Main...
Assuming that the text is tokenized with whitespace for a natural language processing task, the goal is to check the count of the words (regardless of casing) and check them through some conditions. The current code works as its supposed to but is there a way to optimize and if-else conditions to make it cleaner or m...
I am trying to see how I can speed up the below script that reports disk usage. The timed find command towards the end is the problematic line that I am trying to speed up. This script is run on directories that have over 6-7TB of data and it takes 16-18hrs. However I want it to run in under 8hrs. Can someone please su...
I've been writing my code like this for a really long time now, I am wondering if there is a more efficient way to do this. This is especially after a senior developer said my code was very amateurish. App Purpose: I need to set some data for new employees when they join our organisation. This is a simple command app ...
I found myself working in this coding exercise for a work offer. I tried to apply TDD in the process but I didn't get any feedback from the company and I really would like to know what can be improved (pretty sure there are a lot of things), so any advice or refactor suggestion will be very much appreciated. Backgroun...
I am quite new in Python and I am starting my journey with sorting algorithms, PEP8 and the Zen of Python. I would like to get some feedback about my BubbleSort algorithm which I wrote. Also, is there a possibility to change the break statement to something else which will stop the loop? def bubble_sort(structure): ...
Problem: In the following expression 1-2+3-4+5-6 ... -98+99-100, print result every 10th (10, 20, 30, ...) calculation. My code: result = 0 operand = 1 counter = 0 for i in range(1, 101): result = result + (i * operand) counter = counter + 1 operand = operand * -1 #Convert between positive and negative nu...
Background I've come across a puzzle (Problem 10 from this list of sample interview questions): One day, an alien comes to Earth. Every day, each alien does one of four things, each with equal probability to: Kill himself Do nothing Split himself into two aliens (while killing himself) split himself into three aliens...
Found this project online and looking for some guidance. I'm in the process of developing a Battleship AI that will play against different computer difficulties. The "barebones" part of the project is already completed. I don't need to develop the game board, create a makefile, write a tester, or anything like that. Al...
For common users I have 10 queries and for registered users I have 30 queries like this one below, only to print out on the screen the link for the querystrings, a guy said to me that I should escape the values of the menus that use querystrings, I'm having a problem with google insights, my TTFB is at 0,89s on Desktop...
I wanted to write an iterator that would split items up into groups, so I can bulk insert into MySQL without crashing or overwhelming the server. This is the implementation I came up with. I am hoping that when yielding from the list it's not creating a copy / clone of the list. I need more experience with Python inter...
I'm new to programming and in front-end. It's really hard for me to learn good practices. Right now I'm trying to learn javascript basics and bootstrap in addition. I did mine first ToDo list with bootstrap (just to train it a bit) and I feel like my JS code and HTML are just bad and should do it much better. Can you t...
We ship large spools of copper wire and pallets of copper rod that have to meet specific chemical and mechanical requirements, this is what must be put on the certifications. I created an SP which builds and then runs a SQL query. This query is pulling in data from several tables and 2 DBs for creating certificates for...
So there is this game 2048. You can play it here I wrote a python script which "plays" the game on the website by clicking the arrow keys. I would like to know what can be improved. Is it a good idea to check the Try again button with exceptions? Is there a better way? Currently it takes alot of tries to get a high sco...
I am quite new in Python and I am starting my journey with sorting algorithms, PEP8 and the Zen of Python. So far i wrote a post BubbleSort and I drew conclusions and followed the advices. I implemented two methods with optimatization from Wikipedia. I would ask for information about the current code, tests and directo...
I created a 2 player Snake game from my original one player version. I am looking for some feedback on how I made it. I think I could use improvement when handling input (Snake.handle). Sometimes it feels like the input is not being read when I hit keys really fast. class Block { constructor(x, y, w, h, col) { ...
This is pretty much one of my first programs that I have created in Java and I just wanted to ask if anyone sees some obvious errors or mistakes I made. The purpose of this program is to sort numbers given by a user using an algorithm. First off, the program gets an input in form of ints from the user, I have used a po...
I just completed Project Euler Problem 81 in Haskell: In the 5 by 5 matrix below, 131 673 234 103 18 201 96 342 965 150 630 803 746 422 111 537 699 497 121 956 805 732 524 37 331 the minimal path sum from the top left to the bottom right, by only moving to the right and down, is 131 → 201 → 96 → 342 → ...
I have a too large data.txt file containing data as follows: a = line0 line1 line2 € b = line0 line1 line2 € ... z = line0 line1 I am still beginner with java, I wrote this code to split the data.txt into multiple .txt files named a.txt , b.txt etc... it splits the data.txt at each €\n character. It works perfectly, b...
Can somebody review the code and provide suggestions on where I can improve on the code like use of better data structure etc. Input: {1,7,2,8,3,6}, 9 Output: [0, 3] [1, 2] [4, 5] public class TwoSumExactAll { public static void main(String[] args) { int[] nums1 = {1,7,2,8,3,6}; for (List<Integer> l...
This implementation seems to work. I would love to get any suggestions / comments on how this code could be improved. Are there any potential memory management issues? Any additional methods that would be useful (also, from educational point of view) to implement? Thank you! Stack.hpp #ifndef STACK_H #define STACK_H #...
I've implemented a factorial function in a more "Ruby" way. I would like to get feedback on the algorithm. def factorial_of n (1..n).inject :* end factorial_of 5 => 120
I have limited experience with both making REST APIs and implementing security features, so I figured it'd be worth running this code through some other people's eyes before making it live. My main questions are around the use of REST - e.g. are there better ways to implement my methods that return bools? (Assume the "...
I'm rewriting collection-json.js, a client for Collection+JSON. (Collection+JSON is a HATEAOS API media type built on top of JSON.) My Goals: Remove CoffeeScript webpack UMD so it can be used via node and via <script ...> (not there yet.) I'm more comfortable in Ruby, though I do know JS. Still, I wouldn't say it's m...
I wrote a solution to find all combinations of 4 elements from a list whose sum of elements equals some target Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. If...
I am learning Android with Udacity nanodegree (having no support) and this is my assignment of music app. It is just an interface and no music I have to add. So far so the app is running without any error but I wold like to get expert feedback to write code in better and optimized way to achieve the same result. My ent...
I recently worked on a module, in which I implemented the functionality of downloading the CSV files. @RequestMapping(value = "/export_data") public void downloadDataInCsv( @RequestParam("type") String type, @RequestParam("tID") String tableId, HttpServletRequest request, HttpServletResp...
I began implementing Game of Life for fun, then I challenged myself to implement the game with no loops. I only used STL Algorithms. I don't know how to make pretty GUI's yet but this will print the coordinates of each alive cell. I also do not know if I made a good hashing function. I think it's sufficient for the gam...
I've been told few days ago that using is is a code smell and anti-pattern. I used it in an game to filter some elements of a collection (the inventory of the player). Classes structure The base class of an element of the collection is Item : public abstract class Item { public int Id { get; set; } public stri...
I have a method that takes as parameter an array of several depth (group) and a name as a string (currentFilterName) checkFilterValue(group, currentFilterName) { group.forEach((element, index) => { if (element.children) { if (element.name === currentFilterName) { this.returnedValue = element.value ...
I have created a query that populates a datapoint with random values. The logic is simple: Iterate between the START and END dates and INSERT random values. I want from this query to be very perfomant. For example populate every second of a year with values (what with this code will last ages). I am new to SQL statem...
Just a simple script that puts a user's currently playing track(on Spotify) to his account's status on vk.com. And printing info about the track in the console. import requests import os import json URL_TRACK = 'https://api.spotify.com/v1/me/player/currently-playing' URL_STATUS = "https://api.vk.com/method/status.se...
I was failed at coding challenge for my interview with the following reasons given by the interviewer: deep use of mutation and a not that well thought up internal API. I understand that my code and design have so many flaws and I genuinely want to get your opinion so I could improve my code. The challenge is about a...
I have below working code with pandas and python, i'm looking if there is an improvement or simplification which can be done. Can we Just wrap this up into a definition. $ cat getcbk_srvlist_1.py #!/python/v3.6.1/bin/python3 from __future__ import print_function from signal import signal, SIGPIPE, SIG_DFL signal(SIGPIP...
I have created my first Java app. I am very familiar with C++ and thus without reading any books (just introduction, googling and IntelliJ auto-completion) I directly jumped into Java. So I made a calculator. Main.java: import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.Scrip...
I repeated a lot of code here and I'm trying to use more ES6 but I'm not sure where I should have used it in my code. I'd appreciate any input on where I could improve. GitHub "use strict"; //Calendar let today = new Date(); let currentMonth = today.getMonth(); let currentYear = today.getFullYear(); let months = ["...
Follow-up Code: BarTender project - exporting printer code templates - Follow-up Second Revision: Bartender Project - exporting printer code templates - Follow-up-2 as stated in the question I've got a working C# project. The project's goal is to open up the application BarTender and export printer code templates (a wa...
As an old dog (age 73) learning new (Excel VBA) tricks, I am reasonably happy with putting together the code below. But I think it could be cleaner. How would you have coded it? Private Sub Workbook_Open() Dim lastRow As Long 'last row with data Dim thisDate As Double 'start timestamp thisDate = ...
This is a Django tag with 2 classes, but can be viewed as a module: What does the module do? it loads a database, performs some transformations on the data, returns the output as a dictionary of json strings for the frontend of django to represent in slickgrid tables It's all working fine, but my class is too abstract ...
My program automates the process of creating and publishing 152 blog posts quarterly. The blogging platform HubSpot has a series of APIs that allow developers to access account data from a CLI in Terminal. First step is creating an excel file (must save as CSV) and importing the file for use as a new HubDB table in H...
How can I reduce the amount of if statements in this program to make it more robust and any other tips for improvement would be grateful. # importing pickle import pickle # defining variables create_username = 0 create_password = 0 password = 0 username = 0 # this variable allows the user or denies the user to the re...
I would like to find the find the distance transform of a binary image in the fastest way possible without using the scipy function distance_transform_edt(). The image is 256 by 256. The reason I don't want to use scipy is because using it is difficult in Tensorflow. Every time I want to use this package I need to star...
When checking a python dict for a key, which is the better way here: (I can't figure how to use dict.get() to make this cleaner) if 'y' in self.axes: ax = self.axes['y'].ax coord1[ax] = x0 coord2[ax] = (y1) - height[ax] coord3[ax] = x0 + width[ax] coord4[ax] = y1 or: try: ax = self.axes['y'].ax...
I have a small angular project, where I have an Article component to list articles with pagination system. The default page The placeholder loader page The main objectives are: Display the articles after consuming a GET API ressource. Paginating the articles with ngb-pagination. Display a placeholder loader in ca...
I did the following exercise from here to try out the openpyxl module for generating excel files: Create a program that takes a number N from the command line and creates an NxN multiplication table in an Excel spreadsheet. Row 1 and column A should be used for labels and should be in bold Here is the code: multipli...
I have written a little program that calculates the time by given strings. A time string in the context of this program consists of a number and a following letter that can be s, m, h, or d. You can enter something like this: java TimeCalculator 443432s 34234m 34323m 32344234s 8h 23d 12h It than calculates the time an...
I've starting writing the card game Uno the past couple of days and was wondering if you can review my code please. The initialization is done I think, a couple of game functions already exist, please have look. Please give me feedback concerning, structure, logic, data structures, naming conventions, anything you're n...
This code is part of a VSTO add-in for Excel. As the title states it solves systems of linear equations by allowing the user to select the appropriate ranges. The code works and covers most issues I could think of. The form is displayed by a button click from the ribbon. The selection of ranges is accomplished by click...
I've spent the best part of a day on this question. It is marked as Expert level. There are about fifteen submission test cases and my solution manages to satisfy the first four. However, from there on in it hits timeouts due to performance issues. Hackerrank question There doesn't seem to be much information or soluti...
Background I wrote my_length class and some code. my_length can be stringified using << operator, and main() tests this. Questions I think operator<< can be refactored. How can I rewrite operator<< of my_length, and make it better code? How can I make rest of code better? Code #include <vector> #include <string> #inc...
Very amateur programmer and first-time poster here. The program I wrote asks the user for a prime number, a lower and upper bound, and a degree (all of these are integers). I want to generate a list of polynomials, represented by its coefficients (see example). Each polynomial \$P(x)\$ satisfies the following condition...
This is a Bash script that copies files stored inside disk images to a directory, using a defined structure provided via a JSON file. I've included the external programs it requires and the test I used so that you can test it too. Any comments regarding programming style and improvements are welcome. Overview The foll...
A solution for a small algorithmic problem. I believe tests are pretty descriptive: def pairs(n): return n * (n - 1) / 2 def solution(lst): res = 0 stack = lst[0:1] lst = sorted(lst[1:]) while(len(lst)): nxt = lst.pop() if len(stack) and stack[0] == nxt: stack.append(nx...
This is a follow up question from this question Intro netcat is an all-round tool used with many applicable features My last try felt a bit rushed, and should've improved before posting here. But this time, I am happy with the result. CHANGELOG kwargs @use_ssl decorator Multi-Platform (Posix, *nix, Windows) Improved c...
I'm writing one custom class for PDO connection. I want these advantages: Protect credentials: user, password ... Facilitate maintenance: facing future password changes for example Facilitate connection: $pdo=new MyPDO(); Provide my class with all the PDO functionalities I write my class as you can see here: For prot...
I have a program that will ask the user to input their grades for 4 different sections of a project, then tell them what their total mark is, what grade they got and how many marks away they were from the next grade. I managed to make a single loop for all inputs rather than having a loop for each individual one, but t...
I just started Advent of Code 2018. This is exercise 2 of day 1, and I can't understand why my code is so slow (4 minutes 37 seconds, compared to 200ms for a friend who did it in Clojure with the same computer). Basically, it accumulates integers from a provided list of ints, named input. Whenever the current value of ...
Currently I'm working on parsing data from a form service into a pdf form. I created 2 classes one inheriting from the other one. However, I see that the classes I created are growing in lines of code and I'm concern that I am concern that these classes become hard to maintain. I would like to request feedback from t...
I've got 17 currency fields on a form and need to do some calculations with their values. I wrote this method some time ago and have come back to try and refactor it to make it more efficient and/or more readable. Could I have some pointers please? Note: The variables appended with d are the decimals used to hold the f...
By default, mouse wheel scrolling in Java Swing behaves differently than in web browsers. In Swing, when you have an inner scrollable component and an outer scrollable component, the mouse wheel events are only ever dispatched to the inner component. This means that when you are in a text area inside a larger panel, yo...
I have this code which opens 2 workbooks, copies a sheet and paste then to the master workbook. It is currently taking 3 minutes. Can this be done quicker (i.e. without opening each workbook to copy)? It takes roughly 3 minutes to do. Sub Load() Dim masterWB As Workbook Dim dailyWB As Workbook Dim lastweek...
This is a simple program to run a command-line program with given parameters and verify that it writes the expected output to stdout or stderr. The specification file is passed as the first argument. It's formatted like this: echo foo -> foo man -> What manual page do you want? with program and arguments to the left o...