iBlog random » tricks http://blog.zurka.us Just another WordPress weblog Tue, 28 May 2013 20:28:47 +0000 en-US hourly 1 http://wordpress.org/?v=3.6 Enable Quick Launch in Windows 7 http://blog.zurka.us/enable-quick-launch-in-windows-7/ http://blog.zurka.us/enable-quick-launch-in-windows-7/#comments Mon, 23 Feb 2009 17:40:40 +0000 nasal http://blog.zurka.us/?p=854

If you didn’t notice, Windows 7 got a new feature called “Pinning” (maybe :) ) which acts similarly to the quick launch toolbar in older Windows versions. However, I really don’t like it and I prefer the good ol’ Quick Launch.

Now, if you’re like me and want to get it back, you’ll have to follow these simple steps:

1. Right click your taskbar and go for Toolbars > New Toolbar
2. In the folder field type: %userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch
3. Click on Select folder
4. You now have the Quick Launch toolbar (press on the arrow next to it to see it’s content)
5. Right click on the taskbar and uncheck Lock the taskbar
6. Now right click on the Quick Launch text and uncheck Show text and Show title
7. It’s done, you now have to drag that dotted line on the left of the taskbar (next to the start menu button) to the right of the taskbar to switch positions. Lock the taskbar.
8. Done!

Hope it helps :)

]]>
http://blog.zurka.us/enable-quick-launch-in-windows-7/feed/ 1
Write less PHP code http://blog.zurka.us/write-less-php-code/ http://blog.zurka.us/write-less-php-code/#comments Fri, 17 Oct 2008 11:48:37 +0000 nasal http://blog.zurka.us/?p=609

I found a funny but working way to write less php and more html code..

Instead of writing:

<?php
	echo '< form action="" method="post">';
	echo '< input type="text" name="something">';
	echo '< /form>';
?>

We could write:

<?php { ?>
	< form action="" method="post">
	< input type="text" name="something">
	< /form>
<?php } ?>

Or maybe instead of this if – else method:

<?php
if ($something == $value) {
	echo '< div class="ok">The value is the same as $something< /div>';
} else {
	echo '< div class="ko">The value is NOT the same as $something< /div>';
}
?>

We could use:

<?php if ($something == $value): ?>
	< div class="ok">< /div>
<?php else: ?>
	< div class="ko">< /div>
<?php endif; ?>
]]>
http://blog.zurka.us/write-less-php-code/feed/ 0