Category: Web
-
Facebook IFrame using Static HTML app is too slow
I was setting up a Facebook Page for a client and noticed that it was taking forever to load the IFrame I had pointing it to. When I visited the IFrame contents without going through Facebook it was really fast, but when through Facebook it took up to 5 seconds before it even started loading…
-
Getting the scrollTop() of an IFrame – always returning 0!
I recently had a project where I had to require that a user scroll down the terms and conditions and privacy policy before they could check that they agree to them. I read everywhere that in order to get the position of how far down the scroll bar is you have to use $(element).scrollTop(). But…
-
Determining current number of clients in apache in real time
A server I was recently working on kept crashing because it was getting too many connections. This is normally a sign of popularity, but when it prevents people from being able to access your product that’s not a good thing. The first step in handling an issue like this is monitoring it in real-time so…
-
BuckShot: IPhone App sold for way too much
An ipod/iphone/ipad app went on a sale last week through ebay. Starting bid was $1, and I was curious to see how much it was going to sell for. It was called BuckShot, and it was a simple app that is described as a “Multi Player Photo Scavenger Hunt Game.” It was created back in…
-
Uncaught TypeError: Cannot set property ‘touchstart’ of undefined for JQuery UI DatePicker
I kept getting this error when trying to integrate the JQuery UI DatePicker (http://jquerymobile.com/demos/1.0a4.1/experiments/ui-datepicker/) into one of my pages: Uncaught TypeError: Cannot set property ‘touchstart’ of undefined Finally realized that I was using a very old version of JQuery. Once I upgraded to the latest version it started working. Hope that helps you!
-
I am my startup’s only customer, and it’s already profitable
Over the last 6 months at my full time job, things have gotten a bit hectic. We’ve doubled our customers, added 3 more employees, and had a CEO who was busy with other projects. This had created a need for leadership and organization like never before. I saw an opportunity to step up but I…
-
Number field types for both iOS and Android phones
It’s a lot of work to be filling out a form from a mobile phone. Which is why we need to make it extra easy for them to input their data. One of the simplest things you can do is indicate that a field such as a phone number, zip code, or x is numeric.…
-
Adsense error: Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin [domain].
I noticed this error when adding google adsense code to one of my sites. I thought it was just happening on my new site, until I checked my other sites and realized it was happening everywhere! I had no idea how long this had been going on for, but wanted to get it fixed ASAP.…
-
End of the day countdown in javascript
Here’s how to have a realtime display showing how many hours, minutes, and seconds are left in the day: Time left until midnight: <span id=’HMSremaining’></span> <script> function calculateHMSleft() { //calculate var now = new Date(); var hoursleft = 23-now.getHours(); var minutesleft = 59-now.getMinutes(); var secondsleft = 59-now.getSeconds(); //format 0 prefixes if(minutesleft<10) minutesleft = “0”+minutesleft; if(secondsleft<10)…
-
WP Post Signature error: You do not have sufficient permissions to access this page
I recently installed the WP Post Signature wordpress plugin so that a custom signature could be included in each of my posts. After installation from the Plugins -> Add New page, I clicked on the ‘Settings’ link from that same page and got the error: “You do not have sufficient permissions to access this page”. What…