instruction
stringlengths
71
71.9k
I have dollar amounts sorted by month that I want to transfer from sheet entry to sheet actuals. I only want to do it for a specified month prompted from user. Each dollar amount has a corresponding cost center/ID and description in separate columns. I want to copy the amounts and description from entry to the row in a...
Concise Problem Specification Given an integer \$n\$ and a function \$f : X \to X \$ where \$X = \{1,2,3,..,n\}\$ Determine whether the given function is a bijective function or not. Definition: According to Wikipedia: In mathematics, a bijection, bijective function or one-to-one correspondence is a function between t...
I wrote the following function which takes in a window and returns all nested windows on a webpage (I can get all the windows by calling the function with window.top). Is there a more elegant/efficient way to grab a reference to all the windows and child windows on the page? The function works, but I was having a hard ...
I have a function that finds the most frequent level of string and factor variables. This is used in a data.table aggregation on Big Data, for non-numeric columns. Right now the overall aggregation runs extremely slow. I'm trying to make improvements in other aspects as well (reducing observations and columns, etc) and...
Code class Anagram(anagram: String) { def matches(candidates: Seq[String]) = { candidates.filter(isPermutation) } def isPermutation(candidate: String) = { (candidate.toLowerCase != anagram.toLowerCase) && (candidate.toLowerCase.sortWith(_>_) == anagram.toLowerCase.sortWith(_>_)) } }...
I am trying to optimize my code and make it as fast as it can be, I have researched as much as I can and am now asking the community for any tips because there are definitely people more experienced than me :). As of now it is pretty slow for what I am trying to do. The innermost loop will basically loop choices^6 num...
This is a simple implementation of a generic binary tree that holds elements of type T. I was wondering if there was something that could be done better (especially in the EnumerateNodes methods). using System.Collections.Generic; namespace DataStructures.Node { /// <summary> /// Implements a generic binary tr...
In various projects, I have to evaluate the mean and/or the variance of relatively large samples. I wrote the following, to help me evaluate these quantities with a constant footprint. Basically, it adds elements one per one and updates the variables. namespace DataStructures { /// <summary> /// Holds a "ghost ...
I am saving company information in a database, and if repeat information is found, I want to update the overlapping rows. Some of the supported fields are emails, phone numbers, organization names, and latitude/longitude positions. One of the obvious issues I've had to deal with, however, is knowing whether or not an o...
I made a small(ish) image editor for a client that is supposed to be able to do the following: initially scale image to preset size to avoid tiny/huge images initially center image in canvas resize uploaded image (while always maintaining original aspect ratio) prevent image from going outside the canvas bounds preven...
This is my attempt to write a data-bindable, platform independent property that doesn't require any literal strings. The basic idea is to basically have the same functionality as IObservable, but with a value which has a getter (and a setter in a derived interface). The core interface only has a getter: public interfac...
I have to create a project in Python 3 for a university exam. The project involves the use of object-oriented programming and the use of multithreading. My project is based on the simulation of booking a hotel room. I then created a Stay class with its instance variables and its methods. For multithreading I tried to i...
Main Purpose This script allows two players to play chess on a virtual chessboard printed on the screen by making use of the Unicode chess characters. Visual appearence The chessboard looks like this: 8 ♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ 7 ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟ 6 5 4 3 ...
I've decided to implement my own custom authentication and authorisation in JSF. I am using Java's BCrypt to check the users' passwords. The view side of things I can handle; I'm just implementing PrimeFaces validation tags later on. I use ManagedBean to validate the backend of things (if username is the right length, ...
The following is my implementation of the absolute value function in the MIPS assembly language. I would very much like to hear constructive criticism of my code from you as well as any words of wisdom you want to pass my way. The code is heavily commented. ##############################################################...
The classic Chutes and Ladders game has a grid of 100 squares with various "chutes" (which send a player backwards) and "ladders" (which promote a player forward). The goal here was to randomly create a series of these chutes and ladders such that the net effect is that there are 50 more squares that may be lost than ...
This is a function that converts an integer value to a null-terminated string using the specified base and stores the result in a char array that I must allocate (with malloc). I have decided not to use malloc. Allowed functions: malloc. Loops: while Please review my code. char *itoa_base(int value, int base) { sta...
I currently have a system which loops through a bunch of my website domains and checks their status and sends me a notification letting me know if they are up or down. The stripped down version of the relay code is below, I've removed the email/DB update code etc. It pings a transponder (a file on the client website se...
I made a simple bare bones Tab component, i'm a beginner when it comes to ReactJS so any advice regarding the codes functionality is greatly appreciated. Tab.js Component import React from 'react'; class Tabs extends React.Component { constructor() { super(); this.state = { activeInd...
Please help me improve this code. Move snake using : a w s d. (My compiler doesn't support initialization of index variables inside loops, so please ignore this part) #include <stdio.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <fcntl.h> #include <ncurses.h> #define vertical 40 #define hori...
After the last post had some minor improvements for me and the beta release was actually used for some things, I decided that the GUI was too ugly to continue like this and rewrote the whole GUI in JavaFX. The Matrjoshka - Usage This posed some challenges for MVC / MVP, because of some peculiarities with JavaFX Views a...
I am working on an endless tower defense game in Unity. To keep track of money, damage, hitpoints and stuff like that I will be using BigInteger, which can represent arbitrarily large integer values. Unfortunately, Unity does not come with a BigInteger implementation, but I managed to find one online. For displaying a ...
I currently have a method that checks if the store is open. It's working nicely, however on the main page I have quite a few stores. Whom again have different locations. Each of these locations again have opening hours. Now I'm not particularly good with SQL and DB querying and Skylight is complaining and telling me th...
There is a quiz-game with simple rules. You have to guess one of three options. Each option has a particular weight, for example: Option 1: 20 points Option 2: 30 points Option 3: 50 points If player guesses the right option, he gets all amount of points. If not, he gets a part of those points: User choice || Righ...
As an exercise to learn Rust I've decided to write a Bit Vector library, furthermore I also intend to use it later because my version can share slices of the bit vector between threads whereas the existing bit_vec library cannot do that and development does not seem to be active anymore. The library has the following f...
I really like flac files, but my phone can't store them all. So I made a script for converting them, that slowly became a full featured flac organizer. I'd like to improve my programming skills, as well as the commenting. How can I improve? The program is made out of 3 scripts: config.sh #!/bin/bash #Script made for s...
This method removes n elements starting from a given index, from an array of a given type. If n is positive it removes elements forwards, if it is negative it removes them backwards (e.g. for an array {1,2,3,4,5} Remove(2,2) results in {1,2,5}; Remove (2,-2) results in {1,4,5}) It there a better way to do it? public st...
The normal dictiory separates the key from the value... but what if the key is a part of the item it stores? It then forces you to enter the same things twice, once for the key and agian for the item. I never liked it so I thought I write really simple class that takes this unecessary step away a makes life easier agai...
I am starting to learn Haskell, and following Dr. Erik Meijer lectures online, he suggests as an exercise to implement the game of Nim in Haskell, so I implemented a really basic game for two players (no computer player). I can imagine that this code is far from being good Haskell, and I accept all possible criticism a...
I am working with C++ and SDL, hoping to create a game later. I am implementing the collision detection between rectangles and segments. I found this (NateS user's solution) about line-rectangle collision detection on Stack Overflow. I'm working in C++ and not in Java; and though it isn't that hard to reimplement in C+...
I've come up with a hackish approach to get my XSL function to only return the first 2 initials of a person. I think there should be a more efficient way to do this though. The replace specifically is what I think I should be able to get rid of, looking through docs though I can't figure out how to correctly iterate wi...
After validation my errors list returns [(False, {u'first_name': u'First name is too short'}), (False, {u'last_name': u'Last name is too short'}), (False, {u'confirm_password': u'Password is too short'}), (False, {u'email': u'Please enter a valid email'})] I use a for loop to create a new list and only add the one ind...
I imagine I get a minuscule performance improvement by doing the %3 as a branch off the %5 rather than the other way round or as an if '%15'. Am I correct about that? (I know there is no practical difference) #include <stdio.h> ///Write a program that prints the numbers from 1 to 100. ///But for multiples of three pri...
Revised and truncated version of my last question. I updated how I handle the error if a cost center is not found. I originally asked expecting improvements on the matching system so thoughts on that will also be appreciated. Finally, interested in improvements to the looping part to determine first blank cell to drop ...
Bessie the cow is in Farmer John's field. The field is of size 0..1,000,000,000 for x and y. Farmer John knows that there are N/2 wormholes at certain coordinates, but he does not know which wormholes are paired. When Bessie enters into a wormhole, she is transported to the wormhole that is paired with it. How many pa...
Controller class namespace App\Http\Controllers\Website\SportsType; use App\Classes\Contract\SportsType\ISportsType; use \App\Http\Requests\SportsType\SportsTypeRequest as SportsTypeRequest; class SportsTypeController extends \App\Http\Controllers\BaseController { private $AllSportsTypes = "SportsTypes"; privat...
This is my first time writing a basic program/game in any programming language. It is supposed to a be a Nim game vs a computer with these basic parameters: Use prompt() to prompt moves and input. Use console.log() draw the board. The board should look like this: Pile A: ooooo Pile B: ooo Pile C: ooooo It has been ...
The font size scales up/down based on the size of the browser to fit the nav bar buttons (using @media). .navButtonText p{ text-align: center; margin: auto; font-family: 'Indie Flower', serif; font-weight:900; color: gray; font-size: 20px; line-height: 20px...
I am working with an LCD screen and an RPi. The library I use sends 1-bit images to the screen, so I wrote this library based on Pillow to help developing the on-screen GUI. I am playing with the thought to release this on the appropriate forums. I would really appreciate some feedback, and this is one of the only pl...
I am not sure if this is the correct way to make an Ajax request and do the typical loading/processing GIF/animation while processing is happening and displaying the response. HTML: <!-- start content --> <div class='content'> <!-- start setup section --> <div class='photo-setup'> <div class='...
In a few of my projects, I had sort of a common situation, where I wanted to share a pointer to some object, and I want the recipient to be able to check if it is still valid, but I don't want them to "share ownership" of the object that is pointed to. To make it concrete, suppose I have some service class that does so...
I am learning Rust. I also play EVE Online – a video game about internet spaceships. I decided that it would be fun to practice Rust by writing a simple utility to help me x up. to x up (verb) (EVE Online) To respond to a fleet commander with a list of ships one has available for combat. All fleet compositions (a....
From Hacker Earth: Problem Statement: Chotu's father is the owner of a Vada Pav shop. One Sunday, his father takes him to the shop. Father tells him that at the end of the day, Chotu has to give him a list consisting of the names of all the customers on that day who bought Vada Pav(s) from the shop. The list should no...
This script is basically a proxy service; except it doesn't require an active client connection. In fact it expects the client connection to connect before, and disconnect after every transaction. Once running the proxy will buffer all incoming bytes, and will dump those bytes to the client upon request. Before I go an...
Introduction Inspired by this r/dailyprogrammer problem, I've written a Scrabble tile counter. Given a Collection of Scrabble tiles known to be in play, it can output a Map of the remaining unused tiles and their counts, which can be converted into a Map containing counts and a Set of tiles with that count. Descripti...
I have the following rails grape api endpoint in the users resource: desc 'updates a user' params do optional :first_name, type: String optional :active, type: Boolean optional :second_name, type: String optional :rating, type: Integer requires :id, type: Integer end put ':...
Excuse the pun in the title, the project this is for is called "Cheddar" (a type of cheese). Github I have recently been writing a language, in which I was using grunt. Grunt was very slow for me, and had a lot more problems for me, so I switched my tasks over to makefile. Most of my makefile knowledge is based off ex...
I have a matrix, A containing ones and zeros. I want to create a new matrix B where the non-zero elements are in the same position as those in A, but where the values are given by the location of the first non-zero element in that row. A few examples to show what I mean: 1 1 0 0 -> 1 1 0 0 (the first non-zer...
Can I make the following code faster with minor modifications? It times out on CodeWars website. ''' Write a function that takes a number or a string and gives back the number of permutations without repetitions that can generated using all its element ''' from itertools import permutations def perms(object): stri...
Here is my ValueObject example class. I wrote this example for my OOP research. I know I could use ArrayAccess interface but I am curious abobut feedbacks about this class. Does it break OOP concepts? Is there any problem with solid principles? Any feedback is apprecitated... <?php namespace MidoriKocak; /** * Class...
I have a few columns in a DBGrid that I want to hide and show at different times depending on what the user wants to view. Rather than writing the following code; For i := 1 to DBGrid1.Columns.Count -1 do Begin If DBGrid1.Columns[i].FieldName = 'SOMETHING' then Begin if DBGrid1.Columns[i].visible...
This is my first time putting a code together for Java based on my own so i was hoping if you someone would be kind enough to review and provide feedback or constructive criticism on this code. The goal is to roll 2 dice and 10k times. add pairs and display their frequency. The code runs fine but maybe I am overlooking...
I know as a matter of fact that there are many areas upon which my code could be improved. I was wondering if anyone can provide me with suggestions on how Taboo class and tests can be improved. Suggestions of any kind and scope are very welcomed. it would be even better if reasons can be provided along with the sugges...
I am writing a program that reads a DAT file with names. The names are stored in an ArrayList of Type Name, the Name object can hold the first, middle and last name. Once the names are stored in the ArrayList they are then sorted alphabetically by last name and written back to the file. I wanted to know what I can do t...
I'm using DateTime C#. I have an XML file with attribute HOUR, i.e: <MyXML> <LastTimeTaskRun>11:50</LastTimeTaskRun> </MyXML> And i have a task that running each 5 min. I want to know if the current time and the hour from the xml big then 5 min. What I'm trying: int hour, min; DateTime dateTimeXML = DateTime.Now,...
I have an authetication api for an intranet site but I'm a little worried that my design of the authentication is bad and unsafe. Below is the basic part of the authetication process and I hope I can get some overall feedback on my flaws. if($_POST['authType'] == 'login'){ login($_POST['authUser'],$_POST['authPsw']...
Background: After reading this thought provoking book I decided to write a small library as an exercise. goog.require('goog.structs.Map'); var MyModule = {}; MyModule.FormHelper = { /** @type {?Element} */ form: null, /** @type {goog.structs.Map<string, string>} */ errors: {}, /** @param {!Element} elemen...
A valid Sudoku board has the following properties The board must be square (n-by-n). Let m = sqrt(n) All rows must contain the numbers 1-n All columns must contain the numbers 1-n All nine m-by-m blocks must contain all numbers 1-n The following MATLAB code verifies a Sudoku board of arbitrary sizes (where n is a ...
My knowledge in graph theory is very limited. I have to look for elements in an (undirected) graph who are in the same connected component. The idea is simple. First, build the graph. Then, allocate a "color" to a point and spread it to its neighbours recursively. Once there are no neighbours to color any more, pick a ...
I tried to implement something similar to the Linux shadow.txt file and I am not aware of concepts such as memory fingerprinting. Could someone please review this code? #include <map> #include <fstream> #include <sstream> #include <vector> #include <string> #include <iostream> #include <openssl/md5.h> using namespace s...
Genereal Introduction This is my first project which involves a Database which involves testing (especially unit testing) where the quality is really important for me. The long term aim is to create two frontends for Android and normal Java and a backend with the database. That means, the app should consist of 3 cla...
I'm designing a small Java desktop application to interact with my database and this is a very important part of it as a majority of the operations will be involving the SQL Server 2012 database. I am using the SQL Server JDBC driver (v6.0) provided by Microsoft. I wrote a class to hold credentials used to connect, and...
Just finished creating my first bot using Discord.js for the chat application, Discord. This is my first bot and first javascript program I have ever created. I'm mainly interested in ways I can optimize the code and make it a bit cleaner. Any help or suggestions is greatly appreciated. Github Repo Main: /* File: Jarvi...
I've recently started programming and have been working through some problems such as the one below: Write a program that finds all files with a given prefix, such as spam001.txt, spam002.txt, and so on, in a single folder and locates any gaps in the numbering (such as if there is a spam001.txt and spam003.txt but no s...
I wrote the following little piece of Python code to take in some integer, and return a permutation that has that rank in the lexicographical ordering of permutations. While this works, I'm worried that the number of calls to pop() and append() might be slowing this down. This function is part of a larger program, whic...
I want to write a function to produce an inclusive range of Day such that Saturdays are excluded. import Data.Time.Calendar import Data.Time.Calendar.WeekDate let sel3 (_, _, x) = x let dateRange d1 d2 = takeWhile (<= d2) [ d | d <- map (flip addDays d1) [1..], (sel3 . toWeekDate) d /= 6] I believe the code is correc...
Problem Write a program that can calculate the Hamming difference between two DNA strands. GAGCCTACTAACGGGAT CATCGTAATGACGGCCT ^ ^ ^ ^ ^ ^^ Code object Hamming { def compute(s1: String, s2: String): Int = { if (s1.length != s2.length) throw new IllegalArgumentException() (s1.toList).zip(s2.toList...
This is a follow up from this question. The goal is to make some function that can return the number of possible permutations with repetitions. As Gareth pointed out there is a nice formula for this problem: $$ \frac{m!}{n_1!\,n_2! \ldots n_k!} $$ Where \$m\$ is the length of our permutations and \$n_i\$ is the number ...
This was originally posted here. I'm hoping Code Review will be a little more helpful in giving me a concrete direction. I've been working on a project based off of this tutorial. Unfortunately, the controller classes in this are quite dense and have terrible separation of concerns. I should have realized this origina...
i was trying to solve this problem. as it mentions: In the popular spreadsheets systems (for example, in Excel) the following numeration of columns is used. The first column has number A, the second — number B, etc. till column 26 that is marked by Z. Then there are two-letter numbers: column 27 has number AA, 2...
An app I'm building professionally includes rudimentary text messaging. It allows users to send from the phone, and it polls for new messages (I know, yikes. Push notifications are a future task) with variable frequency for new messages from other users. Part of its functionality is of course keeping messages in date-s...
I have a situation where I need to use PostgreSQL's serializable isolation level for transactions. This is for a table shared among multiple concurrent PHP processes. If the database runs into any sort of data consistency issue PDO will throw an exception. Makes sense since it's really up to the application to decid...
It's not much, but I tried employing some of the things I learned yet never really got to use, since that kind of code isn't really needed where I work (for the most part). I tried making it as much C++11 as I could. I would like to know if I messed up somewhere, maybe something could have been done better, or maybe yo...
I've been working though Project Euler problems using JavaScript, and along the way I've found it useful to create "classes" for different types of numbers (like an integer that can be arbitrarily large). I recently decided to create a sort of class for Fractions to avoid floating point error. I wrote the code using a ...
I have successfully implemented a simple login page using ReactJS by coding it all in JavaScript (a flexibility that I like) but I am still a beginner in React and would like to know whether this is efficient and modular and if anything can be improved. "use strict"; function Login(email, password) { var LOGIN_FLAG ...
While reviewing this Scrabble Tile Counter, I decided to give it a try myself. Here is the challenge, from Reddit's /r/dailyprogrammer: Description For this challenge we will be using the tile set from the English edition, which has 100 tiles total. Here's a reference for the distribution and point value of each ...
I am working on a simple 2-D game right now in Python. I was wondering if there was a better way than the below to write the game logic to check if the camera is near the edge of the player view, or near the map edge. The logic is getting pretty big, and it's making it much harder to check fringe cases, such as when th...
I want to check the truth of A + B - (A & B) == A | B for N-bit numbers. For example, here's a "truth" table for 2-bit numbers. (I know I'm taking liberty with the concept of a "truth" table.) Here's the simple code I threw together in Python. def check_truth(bits): for x in range(2**bits): for y in ...
I have a Cython function that takes a list of weights/probabilities (double) and returns a random index into the list. For example: choose_one(np.array([0.1, 0.4, 0.2, 0.3]), 4) Returns 0 with probability 0.1, 1 with probability 0.4 etc. The Cython code is: cdef extern from "stdlib.h": double drand48() void sr...
How could I improve this code or make it more efficient? import random menu_check = True # 'checker', compares userNums and winningNums to see if they have won or lost def checker(userNums, winningNums): if userNums == winningNums: print ("\nCongratulations! You Win $100!\n") print ("Your numbers...
A chat background is created and text[0] is displayed with a button created under it. The created button iterates thru text[] and finds the next one to display setting all others to inactive and the current one to active. text[] can hold a GameObject with just a text block, or up to 4 buttons. The code works fine and I...
I have created a pretty simple IOC container for C++ that should allow me to write less coupled code in the future and make my code easier to unit test. Overall I am fairly happy however I feel like I could probably include some additional functionality to improve the code further. Any suggestions on how the code could...
Learning Go and trying to get a grip of the various concepts it uses. Following is my implementation of Quicksort (choosing last element as pivot). It takes the length of the array and the subsequent array to be sorted as user input. package main import "fmt" func main() { var n int fmt.Print("Enter Size: ")...
I am writing an application where I have some objects like customer, supplier, product, etc. I have written a class for the object 'supplier' and wanted to ask if this is a good design. I have put in the class the object itself, some methods for saving and deleting, ... and some static methods for example to return all...
for some fun, I decided to start working on something that let me work with Money calculations. I realise there are libraries out there like Joda Money, but I'm doing this mainly for fun. I was hoping to get a review on the way I've started to construct the library. GitHub private def calculate(that: Money)(f: (BigDeci...
I have code that converts each sheet of a spreadsheet into a .txt file. It works well, however, given the big number of exports (about 90 .txt files), I'd like to seek advice on how to speed it up. Sub xlsxTotxt() Dim i As Integer Dim directory As String Dim fname As String Dim xWs As Worksheet Dim xTextFile As String...
I recently started using SASS and Compass in my projects. So far I am using the file structure shown below. sass/ | |– base/ | |– _reset.scss # Reset/normalize | |– _typography.scss # Typography rules | ... # Etc… | |– components/ | |– _buttons.s...
This is a follow up to this question. This is an improved version in accordance to comments, suggestions and reviews. Is the namespace implementation proper? is the code readable? I didn't want to split it into header and source files, because i want to make this single function quick to implement. Maybe i left someth...
So I am making post requests to a page for search queries. I am turning them into a session array so I can paginate the results. The process kind of feels ugly and long winded. I need code review for two things. Shortening / making this code more elegant if possible Security - any glaringly obvious vulnerabilities I h...
I am a newbie coder and I'm trying to learn good coding habits. I'm making a Simon Says game challenge from Free Code Camp in Angular JS. Codepen I have an array that keeps random integers between 1-4: var simonSays = []; This is how I'm currently animating and playing sounds. I've read that you're not to manipulate...
I'm trying to build a class that connects to the database. It does the job but it is not very elegant. I also have no understanding of singleton class or dependency injection. Is this safe? Can you explain how I can make this more elegant in simple language? Also, I use the $logs array instead of commenting. I got some...
This is part of a library that wants to release builded files (eg dist/*) when published to npm and bower. However, I don't want to commit those builded files for obvious reasons. Bower uses tags, and so I need tag to hold a version that contains builded files. I didn't think twice, and that's what I came up with: #!/b...
I made some changes to my class structure and the way I determine a win. I was attempting to decide if it made sense to keep the player completely isolated to TicTacToe game class or if it made sense to make a player class to add additional functionality. So that you can see the progress of the code my initial impleme...
I thought I'd give a shot at creating my own version of dealing 5-card hands to n players in VBA, printing them to columns and coloring hearts and diamonds red. I felt I might have been a little repetitive and I had to jump through some hoops to avoid ByRef. Anyhow, what can I improve? Option Explicit Public Sub DealC...
I have to benchmark my code often, and decided that it is about time to implement an easy API for that: current_time.h: #ifndef CURRENT_TIME_H #define CURRENT_TIME_H #include <chrono> #include <cstdint> class CurrentTime { std::chrono::high_resolution_clock m_clock; public: uint64_t milliseconds(); uint6...
I have this code, which reads in a string password from the user and checks if it has a dollar sign $, a number, and an upper case letter. If it has all three, it prints: Your password is correct #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define MAXSIZE 100 void password_read(cha...
The following is some JavaScript that I wrote to join two arrays of objects by an identifier. The goal is to extend the objects in a1 to include the extra fields in a2 and a3. What could I improve here? One question I have is, should I refactor this so the objects in a1 aren't modified in-place with Object.assign, inst...
I decided to make my own version of snprintf in C. I intentionally changed some things though. My version guarantees the buffer printed to will be null-terminated, and it returns the number of characters printed to the buffer, not the number that would have been printed if the buffer's size was not limited. And I only ...
I have some markup: <Window.Resources> <CollectionViewSource x:Key="cvsStudentList" Source="{StaticResource StudentList}" Filter="CollectionViewSource_Filter"> </CollectionViewSource> </Window.Resources> It sets up a CollectionViewSource and implements a Filter handler: private void CollectionViewSource_Filter...
I have a small shell script that uses sed to take an input file of URLs with hand-written notes around them and strips the notes and puts each URL on its own line. For example: INPUT: note: http://www.example.com/Beat-Poetry + ??? http://www.example.com/beat+poetry http://www.example.com/17th+cent. + http://www.exampl...