Sunday, February 4th, 2007
There comes a time when we forget things. But, what if that thing that we forget happens to be the Administrator password on the computer? Well, if you are running Windows XP, then there is an easy way to reset the password.
Here’s How:
1. press the START button then press RUN.
2. type in “CMD” (without the quotes) and hit ok. A command prompt window will open.
3. at the command prompt, type in
“net user administrator /random” (without the quotes)
and press enter.
4. command prompt will then give you a new password for your administrator account. Just don’t forget to jot it down.
And that’s it!!
Posted in techie | 3 Comments »
Monday, October 23rd, 2006
so now, i will show you how to hack the “How can I make show/hide links for my posts?” hack by blogger..
this is a bit trickier since on every post you make, you have to make sure that you give a unique id..
First of all, add these codes within your area and right after the closing of your style sheet..
<style>
.posthidden {display:none}
.postshown {display:inline}
</style>
<script type=”text/Javascript”>
function expandcollapse (postid) {
whichpost = document.getElementById(postid);
if (whichpost.className==”postshown”) {
whichpost.className=”posthidden”;
}
else {
whichpost.className=”postshown”;
}
}
</script>
Now for each post that you plan on adding the show/hide link to, you have to add this span tags as well as a link tag for the show/hide posts..
<span class=”posthidden” id=”WHATEVER YOU WANT TO CALL THIS POST AND MUST BE UNIQUE”></span>
<a href=”javascript:expandcollapse(’WHATEVER YOU WANT TO CALL THIS POST AND MUST BE UNIQUE’)”>
[+/-] show/hide this post</a>
so lets say that:
Here is the beginning of my post.<span class=”posthidden” id=”example post”>And
here is the rest of it. </span>
<a href=”javascript:expandcollapse(’example post’)”>
[+/-] show/hide this post</a>
for an example, follow this link here
Posted in techie | 1 Comment »
Friday, October 20th, 2006
Have you ever wondered how to use the expandable post summaries hack without having “Read more” message appear on every single post? Personally, I find it irritating to have a read more link on a post that doesn’t even need it…
Anyways, I will show you how to hack the expandable post summaries hack using javascript..
First of all, add these codes within your <head> </head> area and right after the closing of your style sheet..
<style>
<MainOrArchivePage>
span.fullpost {display:none;}
</MainOrArchivePage>
<ItemPage>
span.fullpost {display:inline;}
</ItemPage>
</style>
<script type=”text/javascript”>
var memory = 0;
var number = 0;
</script>
Next, you have to add the following code to your template, somewhere after the <$BlogItemBody$> tag:
<MainOrArchivePage>
<script type=”text/javascript”>
spans = document.getElementsByTagName(’span’);
number = 0;
for(i=0; i < spans.length; i++){
var c = ” ” + spans[i].className + ” “;
if (c.indexOf(”fullpost”) != -1) {
number++;
}
}
if(number != memory){
document.write(’<a href=”<$BlogItemPermalinkUrl$>”>Read more…</a><br>’);
}
memory = number;
</script>
</MainOrArchivePage>
For each post that you want to use this feature on, you will need to place this code:
<span class=”fullpost”> </span>
So let’s say that:
Here is the beginning of my post. <span class=”fullpost”>And here is the rest of it. </span>
And that’s it! If you’re wondering if this really works, it does because I just used it on this post.. Hope you enjoy it… and stay tuned I will also show you how to hack the show/hide posts hack.. Until then…
Posted in ramblings | 4 Comments »
Friday, September 29th, 2006
hey! it’s been a while since my last post… HEHEHE! anyways, i was surfing the net and i came across some tweaks for firefox… check them out…
Simple Firefox Tweaks
NOTICE: Make sure you backup all of the Firefox folder and appdata. You can use MozBackup to backup and restore your Firefox profile.
These tweaks are a .cheap and dirty. way to speed up the browser, and enable a few nice features. However, the more experienced net user might want to go ahead to the advanced tweaks too.
1a: Type “about:config” in the address bar (where you usually type a web address to) without the quotes.
This will bring you to the built in configurator, (example of what it looks like) where the tweaking can begin
1b: In the filter bar start typing HTTP, this will take you to the first set of settings we will change.
2: Change: network.http.pipelining to true by double clicking
3: Change: network.http.pipelining.maxrequests to 8 by double clicking then entering the new value in the box
4: Change: network.http.proxy.pipelining to true by double clicking
5: Change: network.http.max-persistant-connections-per-proxy to 8
6a: Change: network.http.max-persistant-connections-per-server to 8
6b: Change: network.http.max-connections to 48
7: Right-Click anywhere in the configurator and add a new integer. The name of this must be nglayout.initialpaint.delay and a value of 0
8: Restart Firefox by closing all windows and tabs and then reopening Firefox for the changes to become effective.
here are tweaks that depend on your cpu and connection capabilities
you have to locate your prefs.js file first though.. for xp, it’s located at C:\Documents and Settings\’username’\Application Data\Mozilla\Firefox\Profiles\’XXXXXX’.default.. then paste whichever script applies
note: application data files are usually hidden
Fast Computer Fast Connection
user_pref(”content.interrupt.parsing”, true);
user_pref(”content.max.tokenizing.time”, 2250000);
user_pref(”content.notify.interval”, 750000);
user_pref(”content.notify.ontimer”, true);
user_pref(”content.switch.threshold”, 750000);
user_pref(”nglayout.initialpaint.delay”, 0);
user_pref(”network.http.max-connections”, 48);
user_pref(”network.http.max-connections-per-server”, 16);
user_pref(”network.http.max-persistent-connections-per-proxy”, 16);
user_pref(”network.http.max-persistent-connections-per-server”, 8);
user_pref(”browser.cache.memory.capacity”, 65536);
Fast Computer, Slower Connection
user_pref(”content.max.tokenizing.time”, 2250000);
user_pref(”content.notify.interval”, 750000);
user_pref(”content.notify.ontimer”, true);
user_pref(”content.switch.threshold”, 750000);
user_pref(”network.http.max-connections”, 48);
user_pref(”network.http.max-connections-per-server”, 16);
user_pref(”network.http.max-persistent-connections-per-proxy”, 16);
user_pref(”network.http.max-persistent-connections-per-server”, 8);
user_pref(”nglayout.initialpaint.delay”, 0);
user_pref(”browser.cache.memory.capacity”, 65536);
Fast Computer, Slow Connection
user_pref(”browser.xul.error_pages.enabled”, true);
user_pref(”content.interrupt.parsing”, true);
user_pref(”content.max.tokenizing.time”, 3000000);
user_pref(”content.maxtextrun”, 8191);
user_pref(”content.notify.interval”, 750000);
user_pref(”content.notify.ontimer”, true);
user_pref(”content.switch.threshold”, 750000);
user_pref(”network.http.max-connections”, 32);
user_pref(”network.http.max-connections-per-server”, 8);
user_pref(”network.http.max-persistent-connections-per-proxy”, 8);
user_pref(”network.http.max-persistent-connections-per-server”, 4);
user_pref(”nglayout.initialpaint.delay”, 0);
user_pref(”browser.cache.memory.capacity”, 65536);
Slow Computer, Fast Connection
user_pref(”content.max.tokenizing.time”, 3000000);
user_pref(”content.notify.backoffcount”, 5);
user_pref(”content.notify.interval”, 1000000);
user_pref(”content.notify.ontimer”, true);
user_pref(”content.switch.threshold”, 1000000);
user_pref(”content.maxtextrun”, 4095);
user_pref(”nglayout.initialpaint.delay”, 1000);
user_pref(”network.http.max-connections”, 48);
user_pref(”network.http.max-connections-per-server”, 16);
user_pref(”network.http.max-persistent-connections-per-proxy”, 16);
user_pref(”network.http.max-persistent-connections-per-server”, 8);
user_pref(”dom.disable_window_status_change”, true);
Slow Computer, Slow Connection
user_pref(”content.max.tokenizing.time”, 2250000);
user_pref(”content.notify.interval”, 750000);
user_pref(”content.notify.ontimer”, true);
user_pref(”content.switch.threshold”, 750000);
user_pref(”nglayout.initialpaint.delay”, 750);
user_pref(”network.http.max-connections”, 32);
user_pref(”network.http.max-connections-per-server”, 8);
user_pref(”network.http.max-persistent-connections-per-proxy”, 8);
user_pref(”network.http.max-persistent-connections-per-server”, 4);
user_pref(”dom.disable_window_status_change”, true);
for more info about this, visit
tweakfactor
and
tweakfirefox
Posted in software, techie | 2 Comments »