Posts filed under ‘geeky’

shortcut with folder tree

i like shortcuts to folders to speed things up. i’ve always created shorcuts by right clicking on the folder -> create shortcut. a shortcut created that way will bring up the folder content but it will not give you a windows explorer view with the folder tree on the left i.e.

Windows explorer with folder tree

to create a shortcut with the folder tree do following:

  1. Right click an empty area of the desktop and choose New ->Then choose Shortcut from the list of options. A Create Shortcut dialogue box will appear.
  2. In the Command line box insert this line: %SystemRoot%\EXPLORER.EXE /n,/e,d:\
  3. Change the d:\ in the line above to the directory you wish to open. As an example if you had a folder named data in c:\ you would change the line to %SystemRoot%\EXPLORER.EXE /n,/e,c:\data
  4. Follow through the dialogue and give your shortcut a name. Once finished, if you double click on the shortcut created, it will bring up the appropriate folder with the windows explorer view.

the good way to fix float issue in container

MUST LEARN CSS TRICK!!

this issue has been bugging me for too long. i finally got off my lazy butt and researched for a solution. if you do a lot of css layouting, sooner or later you will run into this issue.

How To Clear Floats Without Structural Markup tutorial gives the best solution i can find for it.

in case that site goes down or disappears, i’ve saved a backup copy here. it’s too precious to be lost :)

and yes i’m actually working on a new layout for pure essence. WOW the sun is rising from the west. FYI i’m ditching support for 800?600 resolution in the new layout. if you still use 800×600 you either need to get a bigger monitor or use the horizontal scrollbar.

OH YEA, i also turned big fat 25 today! i had a lot of fun playing cards with family. we went to this Sushi House restaurant in Cedar Rapids. it is THE BEST place for Japanese and Chinese food around here!!! SERIOUSLY!

A new way of array checking in PHP

i just saw the funniest thing in PHP yet! below is taken from here.

This code is lifted from a socket handling class that I’ve been asked to work on today. Prepare to cringe:
if (eregi('Invalid argument supplied for foreach() in /usr/cvs/projects/13xx/1371/Classes/XML/XML_inc.php on line 392',$v[0])) { return false; }

It’s worth noting that the foreach() statement will move from line 392 with so much as a return key (as it did today?). It’s also worth noting that the path information is gloriously hard-coded. This was deemed dailywtf worthy in the office, and as such I present it to you now.

Happy Wednesday :)

new computer + firefox 2.0

after my new computer is put together, i finally downloaded firefox 2.0. i know i’m slow.
here are the specs for my new pc:
ASUS P5WD2 premium motherboard
P4 3.6 Ghz
1gb RAM with 800mb FSB
512mb graphics card
200gb harddrive
19 LDC monitor

hopefully that means i will be able to do some real computing & gaming now.

the first thing i learned about firefox 2.0 is that you may easily config the close button on the tabs/tab bar

  • open a new tab and type about:config in the address bar and press enter
  • In the filter field type browser.tabs.closeButtons
  • Double-click on the entry and enter the corresponding number below:
    • 0 ~ Display a close button on the active tab only
    • 1 ~ Display a close button on each tab (default)
    • 2 ~ Don’t display any close buttons
    • 3 ~ Display a single close button at the end of the tab bar (Firefox 1.x behavior)
  • Click OK
  • Close the about:config tab

here you may learn more about other setting you may change by editing the about:config entries.

jquery and script.aculo.us

if i ever need any interactive javascript, i will definitely choose jquery.

it is the new way for javascript coding. look at these awesome dynamic interaction that can be accomplished in a few lines of code with jquery.

jquery.com

aww i just found another js library for similar task. this one might be even better developed: script.aculo.us

DodosMail upgraded

i addded captcha spam protection support to DodosMail and it’s now version 2.5. i highly recommend you upgrade your old scripts for better security protection. to upgrade, simply replace your old dodosmail.php with the new one. if you want to use the new captcha feature, check the readme.txt and captchaTest.php.

What happened to the design?

To know more about why styles are disabled on this website visit the

Annual CSS Naked Day website for more information.

label IDs and input effects

this is nothing new but i didn’t learn about it until yesterday and it totally made my day. basically if you use code like:
<label for="checkme">Check me:</label> <input type="checkbox" id="checkme"/> <br /> <br /> <label for="radio1">Radio 1:</label> <input type="radio" id="radio1" name="something" value="on"/> <label for="radio2">Radio 2:</label> <input type="radio" id="radio2" name="something" value="off"/>
clicking on the corresponding label text will check/uncheck the checkbox & radio buttons for you.

click for an example.

as long as the label for attribute matches the id attribute inside of the input tag, clicking on the text always have some type of effect on the input field. mostly just set the focus on the input field. the coolest ones are the checkbox and the radio buttons as you can see in the example.

wp lightbox plugin (make css validate)

Rainie Yang

wee - i installed this really cool
lightbox wordprerss plugin. it overlays photos in your wordpress. it’s so awesome. the girl in this photo is a chinese singer named rainie yang. if you wish to hear some of her songs,
go here.

inline binary data display

would it be nice that all browsers can handle inline binary data display? actually just images will be fine. so no more image uploading.. just do something like:
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAIAAAFSDNYfAAAAaklEQVR42u3XQQrAIAwAQeP%2F%2F6wf8CJBJTK9lnQ7FpHGaOurt1I34nfH9pMMZAZ8BwMGEvvh%2BBsJCAgICLwIOA8EBAQEBAQEBAQEBK79H5RfIQAAAAAAAAAAAAAAAAAAAAAAAAAAAID%2FABMSqAfj%2FsLmvAAAAABJRU5ErkJggg%3D%3D" alt="" />

demo:

this particular line is supported in firefox, safari and konqueror but not IE (yet). I will try out IE 7 next week. to read more interesting stuff about finding the limits in web browsers, learn about the acid2 test.

edit: found a very unpretty way to embed inline images in IE but bow to the author who made it work.

Page 5 of 32« First...«34567»...Last »