<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7703157137163143934</id><updated>2011-11-27T16:13:07.702-08:00</updated><title type='text'>Random Goodness</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-524729829406324767</id><published>2008-02-20T09:59:00.000-08:00</published><updated>2008-02-20T10:00:54.976-08:00</updated><title type='text'>10.5: Disable Space switching on Command-Tab in 10.5.2</title><content type='html'>&lt;span style="font-size:85%;"&gt;From http://www.macosxhints.com/article.php?story=2008021122525348&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The 10.5.2 version of the Dock has a new hidden preferences flag for Spaces. You can now set OSX to not automatically switch between spaces when you press Command-Tab. This is great for me, because I like to divide things by task, rather than by app. For a given task, I'll probably have a TextEdit window, a Terminal window, and maybe a web browser. By default, when I clicked on a given app, I'd be transported to that app's space, and have to go through a bunch of hoops to get the new window in the space I wanted. Now, I can just Command-Tab to the app I want, and create a new window in the current space! Here's the command in Terminal: &lt;pre&gt;&lt;code&gt;defaults write com.apple.Dock workspaces-auto-swoosh -bool NO&lt;/code&gt;&lt;/pre&gt;  After running the command, you'll need to restart the Dock (&lt;tt&gt;killall Dock&lt;/tt&gt;). To undo, change &lt;tt&gt;NO&lt;/tt&gt; to &lt;tt&gt;YES&lt;/tt&gt;, or use &lt;tt&gt;defaults delete com.apple.Dock workspaces-auto-swoosh&lt;/tt&gt;. Note you'll have to kill the Dock again for the changes to take effect.&lt;br /&gt;&lt;br /&gt;Now if I can just figure out how to change spaces using my f-keys...&lt;br /&gt;&lt;br /&gt;[&lt;b&gt;robg adds:&lt;/b&gt; I edited the hint to reflect my testing results -- it was written with &lt;tt&gt;YES&lt;/tt&gt; as the "don't switch" setting. In testing, though, it's clear that &lt;tt&gt;NO&lt;/tt&gt; is the value to set to disable the auto-switching on Command-Tab. Note that if you have apps assigned to specific Spaces, implementing this hint may leave you confused. That's because the Space won't switch when you Command-Tab to that app (per the setting above), but any commands you send that app will be sent to its assigned Space. So if you press Command-Tab to switch to Safari, and Safari is assigned to another Space, when you press Command-N you won't get a new window in the current Space. Instead, it will show up in Safari's assigned Space. To get the most out of this new hint, it seems best to leave your apps unassigned. Then commands will affect the current Space, regardless of where the app's other windows may reside.]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-524729829406324767?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/524729829406324767/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=524729829406324767' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/524729829406324767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/524729829406324767'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2008/02/105-disable-space-switching-on-command.html' title='10.5: Disable Space switching on Command-Tab in 10.5.2'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-2538282605046836866</id><published>2008-01-24T12:12:00.000-08:00</published><updated>2008-01-24T12:16:31.997-08:00</updated><title type='text'>Confirming a Delete using Javascript Confirm</title><content type='html'>&lt;span style="font-size:85%;"&gt;(taken from: http://www.codetoad.com/javascript/forms/confirm_delete.asp)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you have a page which deletes records from a database, or indeed have any kind of link that you want the user to be doubly certain that they 'mean what they click', using the Javascript confirm event handler is a simple and effective way to get the job done. Here's the effect we're going to achieve:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.totalleague.com/" onclick="javascript:return confirm('Are you sure you want to return to the home page ?')"&gt;Click here to return home&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Assuming you're still with us and didn't after all return to the home page, you can see that the confirmation makes doubley sure you're aware of what you're doing. (Apparently some sites also use it for asking 'Are you over 18'...)&lt;br /&gt;&lt;br /&gt;Now let's look at the script:&lt;br /&gt;&lt;br /&gt;&lt;table align="center" bgcolor="black" cellspacing="0" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;form name="form_code"&gt;&lt;/form&gt;&lt;td&gt; &lt;table class="code" bgcolor="white" cellpadding="4" cellspacing="4" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt; &lt;a href="javascript:highlight('textarea1')" onmouseover="window.status='';return true"&gt;Select All Code&lt;/a&gt; &lt;textarea rows="20" class="textarea_code" cols="45" wrap="virtual" style="width: 98%;" id="textarea1" name="textarea1"&gt;&lt;a href="http://www.codetoad.com" onclick="javascript:return confirm('Are you sure you want to return to the home page ?')"&gt;&lt;br /&gt; Click here to return home&lt;/a&gt; &lt;/textarea&gt; &lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Keep all the above on one long line to ensure it works properly.&lt;br /&gt;&lt;br /&gt;The key to this code is the phrase return confirm. Just putting confirm by itself wouldn't do much, we have to tell the browser what to do with it's confirmation. Once we tell it to return the users selection (either true for Yes or False for No), the code now simply returns false -- does nothing -- if a No is selected, and if it's true -- a Yes response -- completes the link command and zooms off to the delete page or whatever - Magic!&lt;br /&gt;&lt;a href="http://www.codetoad.com/" onclick="javascript:return confirm('Are you sure you want to return to the home page ?')"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-2538282605046836866?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/2538282605046836866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=2538282605046836866' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/2538282605046836866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/2538282605046836866'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2008/01/confirming-delete-using-javascript.html' title='Confirming a Delete using Javascript Confirm'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-9223247859801465974</id><published>2008-01-22T11:40:00.000-08:00</published><updated>2008-01-22T11:41:34.482-08:00</updated><title type='text'>Do a diff on 2 directories</title><content type='html'>This is a good way to see which files are different in 2 different directories&lt;br /&gt;&lt;br /&gt;diff httpdocs httpdocs_test -q -r&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-9223247859801465974?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/9223247859801465974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=9223247859801465974' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/9223247859801465974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/9223247859801465974'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2008/01/do-diff-on-2-directories.html' title='Do a diff on 2 directories'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-5438891877068424428</id><published>2008-01-21T18:43:00.000-08:00</published><updated>2008-01-21T18:46:24.779-08:00</updated><title type='text'>SSH Without Password</title><content type='html'>&lt;span style="font-size:85%;"&gt;(taken from: http://www.linuxhorizon.ro/ssh-wo-passw.html)&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Sometimes we need a ssh connection that do not ask for passwords. It is use frequently in scripts that involve ssh, scp or sftp connections. I do not encourage this kind of logging but sometimes is very useful...&lt;/p&gt; &lt;p&gt;So, those are the steps to make such connection.&lt;/p&gt; &lt;p&gt;1. Login as user1 on computer1 and generate a pair of authentication keys. Note: even if is unsecured to work without password, do not enter it. Let it empty...&lt;/p&gt; &lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;[user1@computer1]$ ssh-keygen -t rsa&lt;br /&gt;Generating public/private rsa key pair.&lt;br /&gt;Enter file in which to save the key (/home/user1/.ssh/id_rsa):&lt;br /&gt;Created directory '/home/user1/.ssh'.&lt;br /&gt;Enter passphrase (empty for no passphrase):&lt;br /&gt;Enter same passphrase again:&lt;br /&gt;Your identification has been saved in /home/user1/.ssh/id_rsa.&lt;br /&gt;Your public key has been saved in /home/user1/.ssh/id_rsa.pub.&lt;br /&gt;The key fingerprint is:&lt;br /&gt;31:df:a5:73:4a:2f:a6:6c:1c:32:a2:f2:b3:c5:a7:1f user1@computer1&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;2. Login to the remote computer (computer2) as user2 and create the .ssh directory (many Linux distributions create this folder by default. No problem with that.). You still need the password for now...&lt;/p&gt; &lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;[user1@computer1]$ ssh -l user2 computer2 mkdir -p .ssh&lt;br /&gt;user2@computer2's password:&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;3. Copy the user1 public key to user2@computer2 .ssh folder into authorized_keys file. And, type the password again for the last time, hopefully...&lt;/p&gt; &lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;[user1@computer1]$ cat .ssh/id_rsa.pub | ssh -l user2 computer2 \&lt;br /&gt;&gt;'cat &gt;&gt; .ssh/authorized_keys'&lt;br /&gt;user2@computer2's password: &lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;4. If all things are OK, you don't need the password&lt;/p&gt; &lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;[user1@computer1]$ ssh -l user2 computer2&lt;br /&gt;[user2@computer2]$&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;..or optionaly (see the troubleshooting section of this page):&lt;br /&gt;&lt;br /&gt;&lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;[user1@computer1]$ ssh -i $HOME/.ssh/id_rsa user2@computer2 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt; &lt;p&gt;&lt;b&gt;NOTE:&lt;/b&gt;&lt;br /&gt;This is the way not only for ssh but also for scp and sftp as well...&lt;/p&gt; &lt;p&gt;&lt;b&gt;TROUBLESHOOTING:&lt;/b&gt;&lt;br /&gt;If the password prompt will be shown again check the /etc/ssh/ssh_config and uncomment or insert the following option: &lt;/p&gt;&lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;IdentityFile ~/.ssh/id_rsa&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;As you can see, the above option is for RSA type keys. If you want to generate  the key pairs using DSA change the "id_rsa" with "id_dsa". Sound logic, right?&lt;br /&gt;This modification in /etc/ssh/ssh_config file can be avoided if you will use the  parameter "-i" followed by the location of the key file as in example:&lt;br /&gt;&lt;br /&gt;&lt;table bg width="100%" style="color:#000000;"&gt; &lt;tbody&gt;&lt;tr&gt; &lt;td&gt;&lt;span style="color:#33ff33;"&gt;[user1@computer1]$ ssh -i $HOME/.ssh/id_rsa user2@computer2 &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;Also, if you do have write permissions for either the .ssh directory or for the authorized_keys file on the remote machine, then sshd will consider that the procedure is not safe enough, so it will abort the RSA challenge-authentication mode (mode 3) and will go to the default mode (mode 5) asking you for the password on the remote machine. Set chmod 700 for .ssh folder and 600 authorized_keys file. See &lt;a href="http://cag.lcs.mit.edu/%7Erugina/ssh-procedures/"&gt;http://cag.lcs.mit.edu/~rugina/ssh-procedures/&lt;/a&gt; for more or e-mail me at &lt;a href="mailto:linuxhorizon@linuxhorizon.ro"&gt;linuxhorizon@linuxhorizon.ro&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-5438891877068424428?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/5438891877068424428/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=5438891877068424428' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/5438891877068424428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/5438891877068424428'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2008/01/ssh-without-password.html' title='SSH Without Password'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-3490409524442698882</id><published>2008-01-15T17:24:00.001-08:00</published><updated>2008-01-15T17:27:23.851-08:00</updated><title type='text'>Apple Mighty Mouse Won’t Scroll Down</title><content type='html'>&lt;span style="font-size:85%;"&gt;(from: http://www.tinyscreenfuls.com/2006/09/apple-mighty-mouse-wont-scroll-down/)&lt;/span&gt;&lt;br /&gt;&lt;p&gt;A few times now, the Mighty Mouse on my Mac (the one with the tiny little scroll ball on it) has lost the ability to scroll down. It scrolls upwards, and horizontally, with no problem. Seemed like a software problem to me, and in the past, restarting the app I was using, or the whole Mac, seemed to fix the problem.&lt;/p&gt; &lt;p&gt;It started doing it again this morning, and this time, no amount of rebooting, unplugging/replugging, etc. would work. I figured it had to be a software (or maybe electronic) problem, since if it was just gunked up and dirty, I figured it would impair scrolling in all directions. Not just one.&lt;/p&gt; &lt;p&gt;Well, it turns out, when the Mighty Mouse scroll wheel gets dirty, it stops being able to scroll down. Apparently, it’s a common problem, as a quick Google search turned up tons of pages, like &lt;a href="http://www.macosxhints.com/article.php?story=20060210115417864" onclick="javascript:urchinTracker ('/outbound/article/www.macosxhints.com');"&gt;this one at MacOSXHints.com&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;The fix? Blow compressed air around the scroll ball, or just push on it really hard and roll it around (that worked for me). If you’re lucky (I was), it will start working again. If it keeps doing it, though, I’m going to have Apple replace it. &lt;/p&gt; What a weird problem. Design flaw? Who knows. I guess it would be better if it were easier to remove and clean the scroll ball. Apple’s official directions for cleaning it are “hold it upside down and roll it around”. &lt;a href="http://docs.info.apple.com/article.html?artnum=302417%22" onclick="javascript:urchinTracker ('/outbound/article/docs.info.apple.com');"&gt;Seriously&lt;/a&gt;. They even have &lt;a href="http://a248.e.akamai.net/7/248/51/302417" onclick="javascript:urchinTracker ('/outbound/article/a248.e.akamai.net');"&gt;a video to show you how to do it&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-3490409524442698882?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/3490409524442698882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=3490409524442698882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/3490409524442698882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/3490409524442698882'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2008/01/apple-mighty-mouse-wont-scroll-down.html' title='Apple Mighty Mouse Won’t Scroll Down'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-5401417477382255758</id><published>2008-01-01T11:52:00.000-08:00</published><updated>2008-01-01T11:55:53.645-08:00</updated><title type='text'>Min-Height Fast Hack</title><content type='html'>&lt;!-- p class='file'&gt;Filed under: &lt;a href="http://www.dustindiaz.com/archives/css/" title="View all posts in CSS" rel="category tag"&gt;CSS&lt;/a&gt; ,  &lt;a href="http://www.dustindiaz.com/archives/web-standards/" title="View all posts in Web Standards" rel="category tag"&gt;Web Standards&lt;/a&gt;&lt;/p --&gt;&lt;p class="meta"&gt;(from http://www.dustindiaz.com/min-height-fast-hack/)&lt;/p&gt;&lt;p class="meta"&gt;&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;Wednesday, September 21st, 2005 &lt;/p&gt;&lt;p&gt;I’ve never been one too keen Grey’s &lt;a href="http://www.greywyvern.com/code/min-height-hack.html" title="Not so elegant but bullet proof hack"&gt;css min-height hack&lt;/a&gt;, mainly because of the bulky workaround in your html. Sure hacks can cause bulkier CSS, but I’m ok with that. The problem with Grey’s is that it’s not only a ‘&lt;em&gt;CSS&lt;/em&gt;‘ hack (which I’m totally fine with), but it also involves changing your html. I’m none too delighted that you need to add two separate &lt;strong&gt;empty&lt;/strong&gt; div elements just to get this working correctly. Nevermind the matter, he thought of this ages ago when I was still learning how to count to twelve on sesame street. Ok so I learned that like last year, I’m catching on.&lt;/p&gt;&lt;h3&gt;A New Solution&lt;/h3&gt;&lt;p&gt;Assuming each and all you folk know how min-height is ’supposed’ to work, would it be all that bold that it’s safe to say that…well… can’t we just do this? (because that’s what I’ve decided to do after throwing IE5.x out the window)&lt;/p&gt;&lt;h3 class="code"&gt;CSS: min-height with !important&lt;/h3&gt;&lt;pre animheight="103"&gt;&lt;code&gt;selector {&lt;br /&gt;min-height:500px;&lt;br /&gt;height:auto &lt;strong style="color: rgb(255, 0, 0);"&gt;!important&lt;/strong&gt;;&lt;br /&gt;height:500px;&lt;br /&gt;}&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Assuming IE6 will not fix the correct implementation for the &lt;strong&gt;!important&lt;/strong&gt; declaration and assuming that if IE7 does, they’ll also implement min-height correctly since at the pace they’re going they’re fixing CSS like mad crazy cows. &lt;strong&gt;Is that too many assumptions? But wouldn’t you agree?&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The above snippet of CSS works like a charm in &lt;strong&gt;IE6, Mozilla/Firefox/Gecko, Opera 7.x+, Safari1.2&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Update: 2006-05-01&lt;/strong&gt; This patch is now fully supported across IE6 and IE7. Gosh, I guess I should have named the hack when I thought of it. Enjoy :)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-5401417477382255758?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/5401417477382255758/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=5401417477382255758' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/5401417477382255758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/5401417477382255758'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2008/01/min-height-fast-hack.html' title='Min-Height Fast Hack'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-186622282350366254</id><published>2007-11-01T19:03:00.000-07:00</published><updated>2007-11-01T19:10:36.853-07:00</updated><title type='text'>vi commands</title><content type='html'>A few commands for the vi editor.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;(info taken from &lt;a href="http://www.cs.rit.edu/%7Ecslab/vi.html"&gt;http://www.cs.rit.edu/~cslab/vi.html&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;a name="A1.4"&gt; &lt;/a&gt;&lt;a name="A1.1"&gt;&lt;b&gt;General Startup&lt;/b&gt;&lt;br /&gt;&lt;b&gt;To use vi:&lt;/b&gt; vi filename&lt;br /&gt;&lt;b&gt;To exit vi and save changes:&lt;/b&gt; ZZ   or  :wq&lt;br /&gt;&lt;b&gt;To exit vi without saving changes:&lt;/b&gt; :q!&lt;br /&gt;&lt;b&gt;To enter vi command mode:&lt;/b&gt; &lt;i&gt;[esc]&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre&gt;&lt;a name="A1.4"&gt;&lt;b&gt;&lt;b&gt;Screen Movement&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/a&gt;&lt;a name="A1.4"&gt;^F       move forward one screen&lt;br /&gt;&lt;/a&gt;&lt;a name="A1.4"&gt;^U       move backward one half screen&lt;/a&gt;&lt;a name="A1.9"&gt;&lt;br /&gt;?       finds a word going backward&lt;br /&gt;/       finds a word going forwards&lt;/a&gt;&lt;a name="A1.4"&gt;&lt;br /&gt;&lt;/a&gt;&lt;a name="A1.4"&gt;&lt;/a&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-186622282350366254?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/186622282350366254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=186622282350366254' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/186622282350366254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/186622282350366254'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2007/11/vi-commands.html' title='vi commands'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-6923237030563096296</id><published>2007-11-01T16:22:00.000-07:00</published><updated>2007-11-01T16:26:59.471-07:00</updated><title type='text'>MySQL Problems</title><content type='html'>I had some mysql problems where I could no longer access some databases with a particular user and I could also not login as root anymore. Here are some of the commands that I used to get back to normal:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Kill the process&lt;/span&gt;&lt;br /&gt;kill `cat /var/run/mysqld/mysqld.pid`&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To start mysql as root (very dangerious way to do this)&lt;/span&gt;&lt;br /&gt;/usr/bin/safe_mysqld --skip-grant-tables --user=root &amp;amp;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;To Flush the privileges&lt;/span&gt;&lt;br /&gt;FLUSH PRIVILEGES;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;To change the permissions&lt;/span&gt;&lt;br /&gt;grant CREATE,INSERT,DELETE,UPDATE,SELECT on &lt;span style="font-style: italic;"&gt;database_name&lt;/span&gt;.* to &lt;span style="font-style: italic;"&gt;username&lt;/span&gt;@localhost;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-6923237030563096296?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/6923237030563096296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=6923237030563096296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/6923237030563096296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/6923237030563096296'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2007/11/mysql-problems.html' title='MySQL Problems'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7703157137163143934.post-459285956171376311</id><published>2007-11-01T16:16:00.000-07:00</published><updated>2008-01-11T11:31:57.461-08:00</updated><title type='text'>Linux Shortcuts</title><content type='html'>Here are some shortcuts that I am posting for myself so that I won't forget. I only access my linux webserver through terminal once in a while so I forget!&lt;br /&gt;&lt;br /&gt;find a file:&lt;br /&gt;find . -name "rc.conf" -print&lt;br /&gt;&lt;br /&gt;httpd.conf location:&lt;br /&gt;/etc/httpd/conf/httpd.conf&lt;br /&gt;&lt;br /&gt;restart httpd&lt;br /&gt;/etc/rc.d/init.d/httpd restart&lt;br /&gt;&lt;br /&gt;update fedora core&lt;br /&gt;yum update&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7703157137163143934-459285956171376311?l=marcucio.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://marcucio.blogspot.com/feeds/459285956171376311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7703157137163143934&amp;postID=459285956171376311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/459285956171376311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7703157137163143934/posts/default/459285956171376311'/><link rel='alternate' type='text/html' href='http://marcucio.blogspot.com/2007/11/linux-shortcuts.html' title='Linux Shortcuts'/><author><name>Mike Marcucio</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
