Chris West's Blog

  • Home
  • Site Search
  • About Me
  •  YourJS
  • Search for:

JavaScript, Math, and much more.

Blog

JavaScript – XOR In Any Base

After writing the Vernam Cipher post, I started thinking about alternatives to using bit-wise XOR in order to translate numbers. I started thinking about XOR for base 3. Therefore I concentrated on what makes XOR so great. What makes XOR Read more…

By Chris West, 12 years ago August 20, 2013
Blog

JavaScript – Simple Vernam Cipher

If you have ever taken an encryption class, I am sure that you have heard of the Vernam Cipher. For fun today I decided to write a quick one in JavaScript which takes your message and the random key: To Read more…

By Chris West, 12 years ago August 19, 2013
Blog

JavaScript – Faking Here Document

Nearly a year ago I wrote a quick post about the awesome heredoc notation for strings in many languages such as PHP: Unfortunately, this doesn’t exist in JavaScript. If for some reason you do need to fake it though, you Read more…

By Chris West, 12 years ago August 16, 2013
Blog

JavaScript – Debounce

Recently I was working on an HTA which contained an element that I wanted to be resized when the window resized. The issue was that I only wanted the resizing to occur after 0.5 seconds elapsed in which the user Read more…

By Chris West, 12 years ago July 17, 2013
Blog

Excel – Converting From UNIX Time

Today I was working on a one-time HIVE report which due to the amount of data that is in each table, took a significant amount of time to run. After running though, I had the data that I wanted except Read more…

By Chris West, 12 years ago July 8, 2013
Blog

JavaScript – Calling Functions Only Once

At times when dealing with functions that will be bound to an element you may need to prevent that function from being run multiple times. In order to do that you could use a JavaScript library such as jQuery and Read more…

By Chris West, 12 years ago July 1, 2013
Blog

JavaScript – Weighted Randomization

Today I worked on a project which involved weighted randomization. In other words, I had to randomly choose an item from an array of weighted items. The items that were assigned a higher weight were to be more likely to Read more…

By Chris West, 12 years ago June 25, 2013
Blog

JavaScript – Object Property Iterator

One common thing that I end up doing, for work and person projects, when writing JavaScript is iterating over all of the properties of an object that I create. Since this task is quite common, I often wrote a each Read more…

By Chris West, 12 years ago June 24, 2013
Blog

JavaScript – Passing Arguments By Name

One thing that I think would be cool is if JavaScript provided a way to pass arguments to a function by name. About two years ago I wrote the code for a Function.prototype.invoke but never released it as part of Read more…

By Chris West, 12 years ago June 17, 2013
Blog

JavaScript – Unicode Escape Sequence Function

A few days ago someone asked me how I would go about determining the unicode escape sequence for an arbitrary character. Of course, I went to Google Chrome’s web console and showed them how it can be done by using Read more…

By Chris West, 12 years ago May 31, 2013

Posts navigation

Previous 1 … 15 16 17 … 36 Next
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Archives
Categories
Blog (346) CSharp (1) Games (3) HTA (2) Java (5) JavaScript (220) JScript (149) Math (49) Microsoft Office (16) Movie Trailers (2) PHP (13) POW Answer (2) Problem of the Week (31) Python (15) Reporting (1) Salesforce (6) SQL (28) VBA (6) VBScript (8) Videos (10)
Tags
Apache (1) Apex (3) Array (37) Audio (2) Bash (3) Canvas (7) Chrome (3) CSS (12) CSS3 (2) Curry (1) Date (6) EcmaScript 6 (8) Encryption (2) Español (2) Excel (20) Function (136) GitHub (12) Hack (9) HTML (4) HTML5 (2) JasperReport (2) JasperServer (1) jPaq (35) JSON (2) JSONP (2) JW.org (5) Logic Puzzle (2) LWC (2) Mail Merge (1) Math (53) Network (1) OpenKM (2) PostgreSQL (27) Private Data (4) Problem of the Week (31) Prototype (41) Quirk (3) Recursion (10) Regular Expressions (22) String (62) SVN (1) Video (2) Wildcards (3) WScript (2) YourJS (18)
  • About Me
Hestia | Powered by WordPress