Nice job Google
Posted on July 20, 2012 by daniel
Today I received the following email from Google stating that someone had tried to log into my account and Google correctly noticed it was suspicious. Someone was trying to log into my account from a city I have never visited. I am quite impressed that Google caught the attempt and stopped it. Congrats Google on keeping my account safe for me! Its always nice to see a computer company going above and beyond to protect their users.
(some content removed below for privacy.)
Daniel,
Someone recently tried to use an application to sign in to your Google Account, **email**@gmail.com. We prevented the sign-in attempt in case this was a hijacker trying to access your account. Please review the details of the sign-in attempt:
Friday, July 20, 2012 6:20:55 AM GMT
IP Address: **remoteIP**
Location: **remoteLocation**
If you do not recognize this sign-in attempt, someone else might be trying to access your account. You should sign in to your account and reset your password immediately. Find out how at support.google.com/accounts?p=reset_pw
If this was you, and you want to give this application access to your account, complete the troubleshooting steps listed at support.google.com/mail?p=client_login
Sincerely,
The Google Accounts Team
Posted in Uncategorized
|
Tagged email, google, password, security
|
Leave a comment
PHP whitespace issues when exporting to csv files
Posted on June 19, 2012 by graham
Exporting data to a simple CSV file has provided me an array of problems.
The problem: In every exported .csv file the first row of the document was blank and then the data started in the second row. The methods I used were: fopen, fputcsv, fclose to put the data into a csv file and setHTTPHeader with renderText and file_get_contents to export the file for a download. I tried testing if the loop index was off and was creating the problem but it was not the case. I also tried making sure I was not inserting any newline characters to the csv file.
The solution: After trying to debug every step, I have realized that the problem was caused by having an extra two lines at the end of the php file in which the download was called. After doing more testing, I realized that it only worked for me if there was a blank line and then the ending ?> for my program to work. Make sure there is a blank line before your PHP end tag and also make sure there are no blank lines after it.
Posted in PHP
|
Leave a comment
Updated Website
Posted on June 4, 2012 by daniel
After many hours of programming, we are proud to announce the release of our updated website. We have been working on a number of changes and improvements for our site so we are excited to see them finally go live. Among other things, we shifted the site to the Symfony Framework. So far we have been quite happy with the Symfony Framework and it looks to make future changes much easier.
Anyway, along with the new release we are running a number of discounts on ozone equipment, as well as giveaways, so feel free to check it out.
Posted in Uncategorized
|
Tagged New Website, Symfony
|
Leave a comment
Brasero Disk Burner Gets Stuck Creating Image Checksum
Posted on April 26, 2012 by daniel
When I was trying to burn a new copy of the latest version of Ubuntu, Brasero was getting stuck on the “Creating Image Checksum”. My first thought was to disable the check-sum feature (which you can do via the edit > plugins), but that did no good. Then Brasero got stuck on “preparing to write”. Finally, I tried running Brasero from the command line using “brasero -g”. This spits out lots of debug info. It turns out brasero was waiting for the cd drive to be ready. Apparently some other program was holding some sort of lock on it. However, a simple restart fixed the problem.
Posted in Linux, System Administration
|
Tagged brasero, bug, burn, cd, error, linux, Ubuntu
|
Leave a comment
Ubuntu 12.04 Released!
Posted on April 26, 2012 by daniel
Woot!
Today Ubuntu 12.04 will be available for download. I am quite excited about a number of new features, most significantly HUD (Heads Up Display). This is an innovative system for interacting with menus via the keyboard with search. Not to mention a new kernel version and numerous bug fixes.
I know what I will be doing tonight…
Posted in Linux
|
Tagged news, Ubuntu
|
Leave a comment
Internet Explorer 8 and event.preventDefault() Problem
Posted on April 18, 2012 by daniel
I was trying to use event.preventDefault in a function called by an onclick method of an anchor tag. Although this worked fine in Firefox and chrome, naturally, I.E. would find it necessary to treat this differently. IE 8 sadly does not support event.preventDefault() (I.E. 9 however, does add support for preventDefault). However, this can easily be gotten around by using a simple test:
(event.preventDefault) ? event.preventDefault() : event.returnValue = false;
This will check if preventDefault is defined, and if not, it will use IE’s event.returnValue instead. As far as I can tell, event.returnValue=false will achieve the same goal in most cases.
Posted in Html, JavaScript
|
Tagged firefox, html, ie8, internet explorer, JavaScript, microsoft
|
Leave a comment
javascript-common & mantis 404 problem on Ubuntu
Posted on April 11, 2012 by daniel
Although my mantis install seemed to be working, I noticed that whenever I loaded the page, I recieved a number of 404 errors on the javascripts. ( 404 – /javascript/min/common.js). What really confused me is that the file was in the right spot. However, it turns out that the problem is caused by a package called javascript-common which creates a global alais on the system for /javascript. As long as you don’t need this global alais, the problem is easy to fix. Simply do the following:
1.
sudo gedit /etc/apache2/conf.d/javascript-common.conf
2. Comment out the following line of code:
Alias /javascript /usr/share/javascript/
#Alias /javascript /usr/share/javascript/
3. Restart apache
sudo service apache2 restart
Posted in Linux, System Administration
|
Tagged apache, bug tracking, error, JavaScript, linux, mantis, problem, Ubuntu
|
Leave a comment
Using and Installing Greasemonkey Scripts
Posted on April 4, 2012 by daniel
As a programmer, I often have need to tweak or examine little bits of a page’s HTML. Although firebug is a great tool and incredibly flexible, sometime it just doesn’t quite fit the bill. When such cases arise, greasemonkey is a great tool. It allows you to write small bits of javascript to run when a given page loads. One example of where this can be very useful is the following. I wanted to check the meta data on several pages on a website. Although I could easily do this with firebug, it would involve opening firebug for every site and then searching for the meta inside the html tab. It would work, but takes more time than I want to spend on ever page. However, with a quick greasemonkey script, I can have my browser display a small div in the bottom corner that prints out the meta info for any site I visit.
To create your own greasemonkey script, simply install greasemonkey, click on the icon and select New User Script. Then you will be prompted for some info about the script.
Name: what ever you want
Namespace: some unique identifier. A domain name you own is a good option
Description: What ever you want
Includes: www.mysite.com/*
Excludes: www.mysite.com/boring/*
After you enter this information, it will prompt you to select your editor and you can start writing your script. After you save, your script will be available in your browser when you refresh the page.
Finally, if you wish to copy your user script to another computer, simply save the script as a .user.js file and then drop and drag it into Firefox. Firefox will then prompt you to install the script and you can use it on the new computer.
Posted in JavaScript
|
Tagged html, JavaScript, web browsers
|
Leave a comment
Netbeans PHPUnit Code Completion
Posted on March 15, 2012 by daniel
By default, Netbeans dosen’t do code completion for PHPUnit classes even though it includes support for PHPUnit. Thankfully, adding in the code completion support is very easy. Simply go to Tools>Options>PHP>General and then click “Add Folder” under the Global Include Path section. Then navigate to where your PHPUnit install is located. (on my system, /usr/share/php/PHPUnit). By adding this folder, the PHPUnit classes will be included on all projects. Naturally, if you just wanted this to apply to a single project, you could do something similar by clicking on the project and choosing “properties”.
Posted in PHP
|
Tagged code completion, netbeans, PHP, PHPUnit, Ubuntu
|
Leave a comment
PHPUnit require_once(PHP/CodeCoverage… Error on Ubuntu
Posted on March 12, 2012 by daniel
When trying to install PHPUnit on Ubuntu 11.10, I received the following error:
PHP 38
After some serching, I found the answer was to upgrade my version of pear and then reinstall phpUnit using the Pear installer.
The following commands should fix the problem:
1. Upgrade Pear:
sudo pear upgrade PEAR
2. Install PHPUnit:
sudo pear config-set auto discover 1;
sudo pear install pear.phpunit.de/PHPUnit
Thanks to the PHPUnit website for the answer.
Posted in PHP
|
Tagged bash, linux, PHP, PHPUnit, Ubuntu, Unit Testing
|
Leave a comment