Feb 8

top shell command order by %cpu

-top
and press ‘O’ and write %cpu

Jan 29

Ma süthet ki utoljára a nap - index.hu

» Egyéb «

http://index.hu/belfold/2010/01/29/ma_suthet_ki_utoljara_a_nap/

Igen, és holnap világvége…
index

Jan 21

C# AD search

» Windows «

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.DirectoryServices;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
// Bind to the container to enumerate.
DirectoryEntry ent = new DirectoryEntry(”LDAP://OU=Users,DC=Domain,DC=local”);
// Create an object to use for individual objects in the container and iterate
// through the container.
foreach (DirectoryEntry child in ent.Children)
{
// Write the name and path for each object in the container.
Console.WriteLine(”{0} {1}”, child.Name, child.Path);
}

}
catch
{
// Handle errors.
}

}
}
}

Jan 16

http://kolelinia.com/en/

http://kolelinia.com/en/

Dec 15

blackberry2

» IT «

Products
BlackBerry® Devices
BlackBerry® Enterprise Server for IBM® Lotus® Domino®
BlackBerry® Enterprise Server for Microsoft® Exchange

Environment
BlackBerry® Enterprise Server software versions 4.0 and 4.1 for IBM® Lotus® Domino®
BlackBerry® Enterprise Server software versions 4.0 and 4.1 for Microsoft® Exchange
BlackBerry smartphone
SDR69603

Overview
Applications cannot be pushed over the wireless network from the BlackBerry Enterprise Server to BlackBerry smartphone models that were released after the BlackBerry Enterprise Server software version was released.

For example, if BlackBerry Enterprise Server software version 4.1 is installed in your environment, applications will not be pushed to BlackBerry smartphones that were released after BlackBerry Enterprise Server software version 4.1, such as the BlackBerry® Curve™ 8300 smartphone and the BlackBerry® Pearl™ 8100 smartphone.

The BlackBerry Policy Service log (POLC) shows one of the following errors, based on the affected BlackBerry smartphone:

Device info for hardwareID 0×84000b03 could not be found.
Device info for hardwareID 0×84000D03 could not be found.
Device info for hardwareID 0×84000E03 could not be found.
Device info for hardwareID 0×96000f03 could not be found.

Cause
The device.xml file on the computer hosting the application share does not include the hardware ID for the affected BlackBerry smartphone.

Resolution
Install BlackBerry® Device Software for the affected BlackBerry smartphones on the computer hosting the application share. This will update the existing device.xml file to include the hardwareID for the affected BlackBerry smartphones. For more information, see KB12532.

Once the latest BlackBerry Device Software has been installed on the BlackBerry Enterprise Server, please perform the following:

Delete the subfolders in the PackageCache folder found at C:\Program Files\Research In Motion\BlackBerry Enterprise Server\PackageCache.
Delete the PKGDBCACHE.xml and specification.pkg files. These files are found at :\Program Files\Common Files\Research in Motion\Shared\Applications.
Re-index the application by performing the following steps:
Open a command prompt and go to :\Program Files\Common Files\Research in Motion\Apploader.
Type loader /reindex.
Go to :\Program Files\Common Files\Research in Motion\Shared\Applications and confirm that the pkgdbcache.xml and specification.pkg files exist.

Dec 15

blackberry

Here’s a list of Hidden Menus & Functions I’ve stumbled across. Some of them are handy for BES/Enterprise support only.

Most require you to hold down the ALT key whilst typing the letters after the + sign (they don’t need to be capitals).

Enterprise Activation (Options->Advanced)
ALT+CNFG - Settings for Enterprise Activation

Address Book
ALT+VALD - Validate the data structure and look for inconsistencies
ALT+RBLD - Force a data structure rebuild

from the Options menu, type the following (No ALT+ required)
RSET - Will prompt to erase & reload for a reload of the Address book from the BES
(n.b. this will wipe all entries, but you can goto SIM Phone Book & copy entries back afterwards)

Browser
ALT+RBVS - View web page source code

Calendar
Open up a Calendar item
ALT+VIEW Inside any Calendar item Show extra info for a Calendar event
(including message ID - handy for BES log troubleshooting)

from the Options menu, type the following (No ALT+ required)
SYNC - Enable Calendar slow sync
RSET - Will prompt for a reload of the calendar from the BES
RCFG - Request BES configuration
SCFG - Send device configuration
DCFG - Get CICAL configuration
SUPD - Enable detailed Cal. report for backup
SUPS - Disable detailed Cal. report for backup
SUPN - Disable Cal. report database
LUID - Enable view by UID
SRSL - Show Reminder status log

Messaging
ALT+VIEW - For messages, displays the RefId and FolderId for that particular message. For PIM items, displays only the RefId.

Search Application
ALT+ADVM Search Application Enabled Advanced Global Search

Home Screen
ALT(left)+Shift(right)+Del - Restart the Blackberry (only for full-keyboard Blackberries)
ALT+JKVV - Display cause of PDP reject
ALT+CAP+ H - Displays the Help Me screen
ALT + EACE - Displays the Help Me screen
ALT + ESCR - Displays the Help Me screen
ALT + NMLL - Switches the signal strength from bars to a numeric value.
ALT + LGLG - Displays the Java™ event log.

WLAN (WLAN wizard screen)
ALT-SMON WLAN - Enable simulated Wizard mode
ALT-SMOF WLAN - Disable simulated Wizard mode

Theme (from theme menu)
ALT-THMN - Change to no theme (B&W)
ALT-THMD - Change to default theme

Date/Time (Date/Time menu - No ALT+ required)
LOLO - Date/Time Show Network time values

SIM Card (Options->Advanced->SIM card - No ALT+ required)
MEPD - Display MEP info
MEP1 - Disable SIM personalization
MEP2 - Disable Network personalization
MEP3 - Disable Network subset personalization
MEP4 - Disable Service provider personalization
MEP5 - Disable Corporate personalization

Status (Options->Status)
BUYR - Data & Voice Usage
TEST - start a device test (Keyboard, GPS, RF, Audio (Handset,headset,bluetooth, Misc)

Dec 15

how to get nokia e72 wifi(wlan) mac address

» IT «

*#62209526#

Nov 26

netsh

» IT, Windows «

Configure TCP/IP from the Command Prompt

by Daniel Petri - January 7, 2009

In order to configure TCP/IP settings such as the IP address, Subnet Mask, Default Gateway, DNS and WINS addresses and many other options you can use Netsh.exe.

Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh.exe can also save a configuration script in a text file for archival purposes or to help you configure other servers.

Netsh.exe is available on Windows 2000, Windows XP and Windows Server 2003.

You can use the Netsh.exe tool to perform the following tasks:

  • Configure interfaces
  • Configure routing protocols
  • Configure filters
  • Configure routes
  • Configure remote access behavior for Windows-based remote access routers that are running the Routing and Remote Access Server (RRAS) Service
  • Display the configuration of a currently running router on any computer
  • Use the scripting feature to run a collection of commands in batch mode against a specified router.

What can we do with Netsh.exe?

With Netsh.exe you can easily view your TCP/IP settings. Type the following command in a Command Prompt window (CMD.EXE):

netsh interface ip show config

With Netsh.exe, you can easily configure your computer’s IP address and other TCP/IP related settings. For example:

The following command configures the interface named Local Area Connection with the static IP address 192.168.0.100, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.1:

netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1

(The above line is one long line, copy paste it as one line)

Netsh.exe can be also useful in certain scenarios such as when you have a portable computer that needs to be relocated between 2 or more office locations, while still maintaining a specific and static IP address configuration. With Netsh.exe, you can easily save and restore the appropriate network configuration.

Now, you need to export your current IP settings to a text file. Use the following command:

netsh -c interface dump > c:'location1.txt

When you reach location #2, do the same thing, only keep the new settings to a different file:

netsh -c interface dump > c:'location2.txt

You can go on with any other location you may need, but we’ll keep it simple and only use 2 examples.

Now, whenever you need to quickly import your IP settings and change them between location #1 and location #2, just enter the following command in a Command Prompt window (CMD.EXE):

netsh -f c:'location1.txt

or

netsh -f c:'location2.txt

and so on.

You can also use the global EXEC switch instead of -F:

netsh exec c:'location2.txt

Netsh.exe can also be used to configure your NIC to automatically obtain an IP address from a DHCP server:

netsh interface ip set address "Local Area Connection" dhcp

Would you like to configure DNS and WINS addresses from the Command Prompt? You can. See this example for DNS:

netsh interface ip set dns "Local Area Connection" static 192.168.0.200

and this one for WINS:

netsh interface ip set wins "Local Area Connection" static 192.168.0.200

Or, if you want, you can configure your NIC to dynamically obtain it’s DNS settings:

netsh interface ip set dns "Local Area Connection" dhcp

BTW, if you want to set a primary and secondary DNS address, add index=1 and index=2 respectively to the lines of Netsh command.

As you now see, Netsh.exe has many features you might find useful, and that goes beyond saying even without looking into the other valuable options that exist in the command.

Nov 22

show_hide div 2

1. The Html code is as given below


<a href=”javascript:;” onclick=”show_div();”>Show</a>
<a href=”javascript:;” onclick=”hide_div();”>hide</a>
<div class=”div1″ id=”dav1″>
<p>We are using this div to demonstrate show/hide code.</p>
<p>dreamtechworld is conducting computer training for php and mysql</p>
</div>

2.Now write Javascript Code


<script>
function show_div()
{
$(”div1″).show("slow");
}
function hide_div()
{
$(”div1″).hide("slow");
}
</script>

Nov 22

javascript.show.hide.div.content

<script>
var browserType;

if (document.layers) {browserType = "nn4"}
if (document.all) {browserType = "ie"}
if (window.navigator.userAgent.toLowerCase().match("gecko")) {
 browserType= "gecko"
}

function hide2() {
  if (browserType == "gecko" )
     document.poppedLayer =
         eval('document.getElementById("realtooltip2")');
  else if (browserType == "ie")
     document.poppedLayer =
        eval('document.getElementById("realtooltip2")');
  else
     document.poppedLayer =
        eval('document.layers["realtooltip2"]');
  document.poppedLayer.style.display = "none";
}

function show2() {
  if (browserType == "gecko" )
     document.poppedLayer =
         eval('document.getElementById("realtooltip2")');
  else if (browserType == "ie")
     document.poppedLayer =
        eval('document.getElementById("realtooltip2")');
  else
     document.poppedLayer =
         eval('document.layers["realtooltip2"]');
  document.poppedLayer.style.display = "inline";
}

</script>

<form>
<input type=button onClick="hide2()" value="hide">
<input type=button onClick="show2()" value="show">
</form>
<div id="realtooltip2" style="display: inline">
<big>Real's HowTo</big>
<layer></layer></div>

Next Page »