Skip to content

Author: admin@master

Plotting with HTML5 Canvas

I decided to day to embark on element and I can say so far it have been nightmare to get it work. All I want is to plot a sine graph. So after good reading I still cannot either get origins nor get it plot. Below is what I have tried (my first time ever with that tag so excuse

Unable to run node app.js file

I am learning node.js and I am trying to run the app.js file using the command node app.js but the bash returns nothing (no errors either). Here are the steps I followed: $ brew install node $ sudo npm install -g express $ sudo npm install -g express-generator after i get into a new folder I created I run $

Going back to previous page using javascript

Is using JavaScript the most efficient way of navigating back to the previous page when a link or button is clicked? What if JavaScript is disabled on the user’s end (Which most people don’t)? Are there any known issues with cross-browsers? Are there any browsers that don’t support the histo…

Disable hiding of address bar on mobile

I’m working on a mobile website which has “pages” that have div’s which take up the screens full size and you can scroll between each one. The problem is, the window resizes whenever a user scrolls downward because the address bar hides. This causes problems when you scroll to the comp…

REGEX to match only VALID EXCEL COLUMNS (A-XFD)

Ok, I have ANOTHER REGEX question for everyone. I have a field that has multiple validation steps. The first step is to ensure it isn’t blank, second is to ensure that only between 1 and 3 CAPITAL LETTERS are entered, and third, to ensure it doesn’t contain “[” (an opening bracket will…

.map() undefined is not a function in React.js

Right, I’m probably missing the obvious here but I am getting an ‘Uncaught TypeError: undefined is not a function’ I seems to be .map() that’s the problem but I can not see why. If I change it to var ideas = this.state.data I don’t get any errors, the JSON data is formatted corre…

jQuery: trigger event on tab key

I would like to call a function when the tab key is pressed within any field with the name=”notes”. I tried the following but this doesn’t fire (using IE 9). What do I have to change here to make this work at least in IE 8 and IE 9 ? Answer The problem I think is in the type of