Author Archives: generocha

Is it Raining?

I work in the basement of an office building and I wanted to write a script to find out if it was raining.

Posted in Uncategorized | Comments Off on Is it Raining?

JSON

JavaScript Object Notation or JSON for short. JSON is smaller than xml and faster and easier to parse. Parsing JSON can be done with .getJSON I have used JSON to create slideshows and its good to use because if you…

Posted in Uncategorized | Comments Off on JSON

If an element contains a string

I had a question today if I could change the background color if an element contained a string. I knew I could with js, but I need to do a little research. I found methods of completing this. indexOf The…

Posted in Uncategorized | Comments Off on If an element contains a string

Jillion is NaN

OK, who hasn’t heard someone referring to Jillion as a very large number. Today on the bus my wife was telling me that something was a jillion times bigger. Well, I can’t remember what our conversion was, but I know…

Posted in Uncategorized | Comments Off on Jillion is NaN

A function

A function is a block of statements that can be used in a file. I will create a function to change the color of my notes. The function works, however the color is always the same and it would be…

Posted in Uncategorized | Comments Off on A function

Get Unix timestamp for a date

I needed to compare an event date in Expression Engine to the current date, but the time was not in a unix timestamp. So, I used PHP and converted the time given, to unix timestamp with the PHP functions date()…

Posted in Uncategorized | Comments Off on Get Unix timestamp for a date

IS NULL

How do you query results for data in column that is NULL? NULL is used for data that is unknown and not zero or empty.

Posted in Uncategorized | Comments Off on IS NULL

Happy New Year 2013

1357027200

Posted in Uncategorized | Comments Off on Happy New Year 2013

Unix Time

A few weeks ago I was given the task to close a program on a server, but we had know idea when the last user logged into the program. The server is Linux and records time as milliseconds since January…

Posted in Uncategorized | Comments Off on Unix Time

Foo

What is Foo? Foo is from Foobar which is from a military acronym FUBAR. Developers use the word “Foo” sometimes as a placeholder for variables. The word “Bar” is also used as a placeholder for variables.

Posted in Uncategorized | Comments Off on Foo