Skip to content

DPJ Online Blog

Computer Programming, Health, Science and Information Technology, Google Adsense, Online Business & Adventure

After updating windows 7, you might also experience that the Documents and Settings folder can no longer be opened.

It happened in my laptop after installing the updates from Microsoft.

This is what I did.

1. Right click documents and settings and click properties menu.

Docments and Settings Windows 7 Folder

Documents and Settings Windows 7 Folder

2. On the property window click “security” tab.

3. Scroll down on the permission for Everyone.

Docments and Settings Windows 7 Folder

Documents and Settings Windows 7 Folder

4. Uncheck Deny on the special permission. If it can’t be unchecked, remove “everyone” from the group or usernames by clicking the “Remove” button and proceed below. If it can be unchecked then click apply and you’re done.

5. After removing “Everyone”, add it back by clicking the “Add” button.

Docments and Settings Windows 7 Folder

Documents and Settings Windows 7 Folder

6. On the “select user or group” window, click “advance” button.

Docments and Settings Windows 7 Folder

Documents and Settings Windows 7 Folder

7. click “Find Now” button leaving the text fields empty.

Docments and Settings Windows 7 Folder

Docments and Settings Windows 7 Folder

8. Choose “Everyone” and click the “OK” button.

9. Apply all changes, and you’re done.

happy coding!!!

in case you accidentally overridden your wordpress index.php file, just copy the php code below.

<?php

define(‘WP_USE_THEMES’, true);
/** Loads the WordPress Environment and Template */
require(‘./wp-blog-header.php’);
?>

Happy Coding






To enable apache’s mod_rewrite in ubuntu type the following at the terminal window

sudo a2enmod rewrite

restart apache
sudo /etc/init.d/apache2 restart

a2enmod means “apache2 enable module <-module->”

Here are the steps on how to add a favorite icon on your wordpress blog web address
1. Choose your favorite image that you want to place on your web address.
2. Resize your image to 16×16 and save it as an ico image. (favicon.ico)
(You may use GIMP Photo Editor or any)
3. Upload the image file (favicon.ico) to your wordpress blog root directory through an FTP software.
4. Login to your wordpress admin. Go to dashboard, appearance and click Editor menu. Choose header.php at the right pane and add the following lines
<*link rel="shortcut icon" href="<*?php echo get_settings('home'); ?*>/favicon.ico” /*> without the asterisk. Remove all the asterisk, I just made it so so that it wont be interpreted by the web browser.

here’s my example:
in the address bar it looks like this

in the tab it looks like this

And also on this blog. You can see my favorite icon at the address bar.

If you are going to bookmark it, the little icon will also be shown in the bookmark list.

Happy Coding

dojo.query (returns dojo.NodeList)
dojo.require(“dojo._base.query”);

dojo.query() is the swiss army knife of DOM node manipulation in Dojo. Much like Prototype’s “$$” (bling-bling) function or JQuery’s “$” function, dojo.query provides robust, high-performance CSS-based node selector support with the option of scoping searches to a particular sub-tree of a document.
Supported Selectors:

dojo.query() supports a rich set of CSS3 selectors, including:

  • class selectors (e.g., .foo)
  • node type selectors like span
  • descendant selectors
  • > child element selectors
  • #foo style ID selectors
  • * universal selector
  • ~, the immediately preceeded-by sibling selector
  • +, the preceeded-by sibling selector
  • attribute queries:
    • [foo] attribute presence selector
    • [foo='bar'] attribute value exact match
    • [foo~='bar'] attribute value list item match
    • [foo^='bar'] attribute start match
    • [foo$='bar'] attribute end match
    • [foo*='bar'] attribute substring match
  • :first-child, :last-child, and : only-child positional selectors
  • :empty content emtpy selector
  • :checked pseudo selector
  • :nth-child(n), :nth-child(2n+1) style positional calculations
  • :nth-child(even), :nth-child(odd) positional selectors
  • :not(…) negation pseudo selectors

Usage
var foo: dojo.NodeList=dojo.query(query: String, root: String|DOMNode?, listCtor: Function?);

parameter type description
query String The CSS3 expression to match against. For details on the syntax of CSS3 selectors, see
root String|DOMNode Optional. A DOMNode (or node id) to scope the search from. Optional.
listCtor Function Optional.

Example 1

search the entire document for elements with the class “foo”:

dojo.query(“.foo”);

these elements will match:


Example 2

search the entire document for elements with the classes “foo” and “bar”:

dojo.query(“.foo.bar”);

these elements will match:

while these will not:

Example 3

find elements which are descendants of paragraphs and which have a “highlighted” class:

dojo.query(“p span.highlighted”);

the innermost span in this fragment matches:



Example 4

set an “odd” class on all odd table rows inside of the table #tabular_data, using the > (direct child) selector to avoid affecting any nested tables:

dojo.query(“#tabular_data > tbody > tr:nth-child(odd)”).addClass(“odd”);

Example 5

remove all elements with the class “error” from the document and store them in a list:

var errors = dojo.query(“.error”).orphan();

Example 6

add an onclick handler to every submit button in the document which causes the form to be sent via Ajax instead:

dojo.query(“input[type='submit']“).onclick(function(e){
dojo.stopEvent(e); // prevent sending the form
var btn = e.target;
dojo.xhrPost({
form: btn.form,
load: function(data){
// replace the form with the response
var div = dojo.doc.createElement(“div”);
dojo.place(div, btn.form, “after”);
div.innerHTML = data;
dojo.style(btn.form, “display”, “none”);
}
});
});

Example 7

Find every element in the page with the class “blueButton” assigned
dojo.addOnLoad(function(){
dojo.query(“.blueButton”).forEach(function(node, index, arr){
console.debug(node.innerHTML);
});
});

Simple Queries

// all h3 elements
dojo.query(‘h3′)
// all h3 elements which are first-child of their parent node
dojo.query(‘h3:first-child’)
// a node with id=”main”
dojo.query(‘#main’)
// all h3 elements within a node with id=”main”
dojo.query(‘#main h3′)
// a ‘div’ with an id=”main”
dojo.query(‘div#main’)
// all h3 elements within a div with id=”main”
dojo.query(‘div#main h3′)
// all h3 elements that are immediate children of a ‘div’, within node with id=”main”
dojo.query(‘#main div > h3′)
// all nodes with class=”foo”
dojo.query(‘.foo’)
// all nodes with classes “foo” and “bar”
dojo.query(‘.foo.bar’)
// all h3 elements that are immediate children of a node with id=”main”
dojo.query(‘#main > h3′)

Immediate Child Elements

dojo.query(‘#main > *’)
dojo.query(‘#main >’)
dojo.query(‘.foo >’)
dojo.query(‘.foo > *’)

Queries rooted at a given element

dojo.query(‘> *’, dojo.byId(‘container’))
dojo.query(‘> h3′, ‘main’)

Compound queries
Combining 2 or more selectors to produce one resultset

dojo.query(‘.foo, .bar’)

Multiple class attribute values

dojo.query(‘.foo.bar’)

Using attribute selectors

Picking out elements with particular attributes/values

dojo.query(‘[foo]‘)
dojo.query(‘[foo$=\"thud\"]‘)
dojo.query(‘[foo$=thud]‘)
dojo.query(‘[foo$=\"thudish\"]‘)
dojo.query(‘#main [foo$=thud]‘)
dojo.query(‘#main [ title $= thud ]‘)
dojo.query(‘#main span[ title $= thud ]‘)
dojo.query(‘[foo|=\"bar\"]‘)
dojo.query(‘[foo|=\"bar-baz\"]‘)
dojo.query(‘[foo|=\"baz\"]‘)
dojo.query(‘.foo:nth-child(2)’)

Descendant selectors

dojo.query(‘>’, ‘container’)
dojo.query(‘> *’, ‘container’)
dojo.query(‘> [qux]‘, ‘container’)

Sibling selectors

dojo.query(‘.foo + span’)
dojo.query(‘.foo ~ span’)
dojo.query(‘#foo ~ *’)
dojo.query(‘#foo ~’)

Sub-selectors, using not()

dojo.query(‘#main span.foo:not(span:first-child)’)
dojo.query(‘#main span.foo:not(:first-child)’)

Nth-child

dojo.query(‘#main > h3:nth-child(odd)’)
dojo.query(‘#main h3:nth-child(odd)’)
dojo.query(‘#main h3:nth-child(2n+1)’)
dojo.query(‘#main h3:nth-child(even)’)
dojo.query(‘#main h3:nth-child(2n)’)
dojo.query(‘#main h3:nth-child(2n+3)’)
dojo.query(‘#main > *:nth-child(2n-5)’)

Using pseudo-selectors

dojo.query(‘#main2 > :checked’)
dojo.query(‘#main2 > input[type=checkbox]:checked’)
dojo.query(‘#main2 > input[type=radio]:checked’)

Count of checked checkboxes in a form with id myForm
dojo.query(‘input:checked’, ‘myForm’).length

I was wondering how can i rearrange wordpress navigation menu. I usually place the “About” menu at the right most of my page. In wordpress’ case it is placed right after “Home” menu. When you add another page, the page’s navigation menu will be automatically be placed right beside the “About” menu. I’ve rearranged mine like this wordpress blog [Cebu, Philippines. The Queen City Of The South]



To do it please follow the simple steps below:

  • 1. Login to your wordpress admin page.
  • 2. On the dashboard, click pages.
    http://cebu.dpjonline.com
  • 3. On the Edit Pages window, click the page you want to rearrange. Do one after the other.
  • 4. At the right part of the edit window, you can find attributes option. Place a number in the “Order” field that corresponds to your page menu location. It is arranged in ascending order from left to right.
    http://cebu.dpjonline.com

To view a working sample, you can visit http://cebu.dpjonline.com

Happy Coding

This is how I added a video on my wordpress blog post (http://bisdak.dpjonline.com)

1. Login in to your WP Dashboard.

2. Click Plugins

WP Plugins Window

3. At the new plugins search for youtube

search

4. Look for the youtuber plugin

youtuber

And click the install link at the right most.

5. After the installation click on the activate plugin button

activate

6. Add or Edit your post and insert this line

youtuberx

anywhere in your post where xxxxx is the youtube video ID.

Good Luck and More Power!!!

http://www.dpjonline.com

T568A and T568B are the two color codes used for wiring eight-position RJ45 modular plugs. Both are allowed under the ANSI/TIA/EIA wiring standards. The only difference between the two color codes is that the orange and green pairs are interchanged. T568A wiring pattern is recognized as the preferred wiring pattern for this standard because it provides backward compatibility to both one pair and two pair USOC wiring schemes. The T568B standard matches the older ATA&T 258A color code and is the most widely used wiring scheme. It is also permitted by the ANSI/TIA/EIA standard, but it provides only a single pair backward compatibility to the USOC wiring scheme. The U.S. Government requires the use of the preferred T568A standard for wiring done under federal contracts.

The following diagrams look at the jacks from the front. The wiring at the rear of the jack varies by manufacturer and may not be in the same sequence as the front. However, compliance with the color codes is maintained by routing the connections at the back to the proper sequence at the front of the jack. That is usually done by a small printed-circuit board in the jack assembly. CAT 5e jacks (right) may have a twist inside the jack to reduce crosstalk.

NOTES on T568A:
1. Wires with single-coloured insulation are always connected to even pin numbers.
2. This is the ISO 11801 preferred assignment
NOTES on T568B:
1. This assignment represents a significant installed base in Asia Pacific
2. This assignment is also known as 258A.

Range of Services
Telecommunications cabling on customer premises may be required to support the following range of services:

  • Voice (Analog Telephone)
  • Voice (Digital Telephone such as ISDN)
  • Digital Data (LAN, inter-LAN and WAN connected)
  • Alarm
  • Security (Surveillance, access control)
  • Environmental Control
  • Paging, Music Distribution
  • Video Distribution

Some of these services require connections to or through a carrier’s PTN (Public Telephone Network). These connections may involved twister pare, coaxial cable, optical fiber or satellite media.

Transmission media used to provide the range of services within a building or between buildings (Campus Style) may involve twisted pair, coaxial cable, optical fiber and microwave or infra-red transmission. A minimum requirement at a commercial work area has become a telephone and a data connection for the PC which has an insatiable ‘appetite’ for information. The PC is demanding higher and higher data rate connections to satisfy its information ‘appetite’ , putting heavy demands on the transmission performance of supporting cable media.

Standards

Mandatory Standards

The following standards are mandatory for a customer premises installation:

Local Authority and/or Carriers
All cable and cabling components shall conform with requirements of local rules. This conformity is indicated by inclusion in Local Authority and/or Carriers Certified Components Listing (CCL) or, in the case of components in the transmission path such as sockets and termination modules by the issue of a Local Carrier permit number for that component.

The cabling installation shall meet all requirements of the wiring rules of the local wiring rules and in particular the separations and segregation requirements from hazardous services.

Industry Recommendations:

The following standards are industry recommendations but become legally binding in civil law if included in a work contract:

ISO 11801
Layout, dimensioning, component transmission quality specification, installation practices, compliance testing; ISO 11801 covers transmission quality up to Category 5 in accordance with ISO standard ISO 11801.

EIA/TIA 569
Pathway design (conduit, tray, ducting, service pole, in false ceiling, under computer floor, (etc) and associated installation practices, design of telecommunication closets, equipment rooms and entrance facilities.

Local Authority and/or Carriers
Telecommunications installations – coaxial cables for telecommunications applications – cables for connection to carrier’s networks.

Local Authority and/or Carriers
Telecommunications installations – optical fiber cables for telecommunications applications – cables for connection to carrier’s networks.

Local Authority and/or Carriers
Telecommunications installations – twisted pair cables for telecommunications applications – cables for connection to carrier’s networks.

EIA/TIA 606
Telecommunications installations – Administration of communication cabling systems – Basic requirements.

International Standard

International Standard Organization (ISO):

ISO 11801 – Information Technology – Generic Cabling for customer premises cabling.

This standard includes class D applications to 100 MHz (Cat 5 equivalent) and is the basis for category 5 transmission quality.

United States Standard

Electrical Industry Association/Telecommunications Industry Association (EIA/TIA)

EIA/TIA 568A 568B
Cabling layout, provisioning, component specification, installation, testing to category 5 transmission quality.

EIA/TIA TSB40A
An updateto EIA/TIA 568 to category 4 and 5 transmission quality in connecting hardware specification and installation.

EIA/TIA TSB 36
An update to EIA/TIA 568 to category 4 and 5 transmission quality of cables.

EIA/TIA 606
Documentation and recording practices for cabling installations.

EIA/TIA 678 – TSB67
Transmission performance specifications for field testing of unshielded twisted pair cabling systems (1995 – in draft form) including tighter specifications for the hand held cable testers.

Local Authority and/or Carriers Compliance

These authorities sets the rules and regulations which ensure a safe environment for:

  • the carrier’s personnel
  • the customer/user of telecommunications equipment
  • the carrier’s equipment

Their regulations also ensure an interface free environment for the carrier’s equipment and inter-operability between the carrier’s equipment and the customer’s equipment connected to the carrier’s network.

Local Authority and/or Carriers compliance is required of all cabling which is on the customer’s side of the network boundary and directly or indirectly connects to a carrier’s network – Local Authority and/or Carrier’s calls such cabling ‘customer cabling’.

Local Authority and/or Carriers compliance means:

  • installation/maintenance of customer cabling can only be carried out by Local Authority licensed cablers or cablers working under the supervision of Local Authority licensed cablers
  • all customer cable shall be a Local Authority approved type (CCL Listed) in accordance with Local Authority and/or Carriers markings.
  • all hardware used in the transmission chain of such cabling shall be Locally approved to EIA/TIA TSB 40A either holding a Local permit or listed in the CCL of approved components.
  • customer cabling installation/maintenance shall be carried out in accordance with Local Authority and/or Carriers rules.
  • all customer equipment (telephones, modems, fax machines etc) directly or indirectly connected to carrier’s network shall exhibit local permits, unless isolated from the carrier’s network by an Authority – permitted line isolation unit (LIU).

People always complain that the business is not going well, when some negative aspects strike. They may say that it is really difficult to sell and the customers are cost cutting and they dont want to buy this time. Well, that’s maybe the situation but let’s take a look at the other side of the coin. How’s your sales prospecting record, is it growing? Are you maintaining a growing lists of prospects as your inventory to keep the sales going? Have you visited a single prospect today? Prospecting is a continuing job. Hot prospects are critical list of inventory that you want to maintain. That’s the heart of the business.