Middle Click Scrolling not Working in Firefox

September 9th, 2011

In new versions of Firfox when you middle click, you normally are able to scroll the page up and down.  Unfortunately this has been turned off by default in new versions.  To turn it back on type the URL:  about:config in the location bar (where the url http://www.mattsaul.com/blog is now).  You will then have to click an “I’ll be careful” button.   Then in the filter blank type general.autoscroll then double click on it so the value reads true.  Now restart Firefox and you should now be able to scroll after middle clicking.  Please note that further upgrades of Firefox may turn this feature off and then you will have to follow these steps to turn it on again.


CodeIgniter and Facebook Applications

May 18th, 2011

I tried a few Facebook Connect tutorials before getting this one to work.  It doesn’t use the new version of CodeIgniter but I was too lazy to try to get it working in the new version.  I also found after awhile I had to replace the default session library with Session Hybrid.  Once I did that things worked a lot better.

To get Facebook to post stuff to people’s walls I had to make a wrapper in the Facebook class of the Zuckerberg-supplied facebook.php  (this probably isn’t how you’re supposed to do it):


public function makeRequestWrapper($url, $params) {
return $this -> makeRequest($url, $params);
}

And then in the CodeIgniter library fb_connect.php


function make_Request($url,$params){

if ($this->fbSession) {
$this->fb->makeRequestWrapper($url,$params);
}

}

And then in the controller (maybe it should be in the model)


$params = Array(
'access_token' => $fb_access_token,
'message' => $message,
'name' => $title,
'link' => 'http://www.test.com'
'picture' => $picture_url
);

$this->fb_connect->make_Request($url,$params);

New Website Launches

October 16th, 2010

I am more of a developer than a designer but I just launched a redesign of Hotels Etc.  All the bugs haven’t been worked out yet but it is better than what they had.

I also created a place holder page for Creston Christian Reformed Church of Grand Rapids.   Hopefully more will be forthcoming.


Pop Menu Magic Drop Downs in Internet Explorer

January 6th, 2010

Trying to get Pop Menu Magic 1.06 drop down to work with IE6 and IE8.   Don’t know if this code will help.  I was having trouble getting multi word headings to stay on one line so I used the <nobr> tag within the multiline items (ie. <li><nobr>Menu Heading</nobr></li>).  Here is some of the CSS trickery I tried.  Please note that this is for drop downs and probably will not work for menus coming out from the side.  Just stick this code in the HTML document after the menu CSS declaration.


<!--[if lte IE 6]>
<style>
#p7PMnav a {height: auto !important;}
#p7PMnav ul a {height: 1em !important;}
</style>
<![endif]-->

<!--[if IE 7]>

<style>

#p7PMnav li {
width: 1em;
float: left;
height: auto !important;
}

#p7PMnav ul li{
float:left;
clear:both;
}

#p7PMnav a {
zoom:1;
overflow:hidden;
width: auto;
}

#p7PMnav li ul li a {
float: none;
}

</style>

<![endif]-->

<!--[if IE 8]>
<style>

#p7PMnav ul li{
float:left;
clear:both;
}

</style>

<![endif]-->

Getting it to work in IE8 is just trial and error, figuring out which IE7 hacks must be carried over.


System Clock not Working

December 6th, 2009

In these tough economic times it would be wise to hang on to computers as long as you possibly can.  Unfortunately the CMOS battery (which keeps your system’s clock running) can go bad and it’s something that can be a pain to replace.  Back in the days before computers being networked you could get along OK with a computer with a broken clock.  Now however with the advent of SSL Certificates which check against your local machine’s clock to determine if you should be allowed on a particular site, having a working system clock becomes important.

Fortunately if you have an internet connection you can get a program called Dimension 4 which will set your computer to the right time.  Just remember once loading the program:

  • On the left, check the Load Dimension 4 on Startup and Once Loaded, Wait Until Online checkboxes
  • Below that check the radio button Synchronize Once Then Exit
  • In the middle bottom under Time Zone uncheck Maximum Correction (this makes it so it will correct a clock that is off by an extreme amount)

Notation Flashcards

November 28th, 2009

Just did a little more work on notation flashcards.  I’m just learning ActionScript.


City Finding Query

September 6th, 2009

Here is a MySQL (with PHP) query to search a city in a particular state that orders things so the most populous cities show up first.

//
//
select count(zip_code) as C_Star, city, state_prefix, zip_code from zip_code where UPPER(city) LIKE ".security_quotes(strtoupper("%".$_GET['q']."%"))."  and state_prefix = ".security_quotes(strtoupper($_GET['state']))." GROUP BY city ORDER BY C_Star DESC LIMIT 0,10

Searching a handy database of Zip Codes (free but may be out of date).


Cropping a Square Thumbnail in Fireworks

March 21st, 2009

You may notice that the crop tool in Fireworks (at least MX 2004) doesn’t allow you to select a perfect square area (by holding shift down while drawing the square.  A way to get around this is use the Square Select tool (the dotted square) and hold shift down to make a square.  Now simply select the Crop tool and you will have a perfect square crop area.


Regular Expressions

February 7th, 2009

Learning regular expressions can be a daunting task but the resources below can help:


Test your site in Internet Explorer 6

October 30th, 2008

If you run Windows XP and have upgraded to Internet Explorer 7, there is a handy tool called MultipleIE which allows you to run Internet Explorer 6 and older versions side by side with your current version.  A great companion for all that nasty CSS debugging.


Back to mattsaul.com