Simple string reverse in pyton

November 16th, 2009

How to reverse a string?

s = ‘abc’
s = s[::-1]
print s

Simple!

VN:F [1.1.7_509]
Rating: 8.0/10 (1 vote cast)

Security+ Acronyms

September 5th, 2009

3DES – Triple Digital Encryption Standard
ACL – Access Control List
AES - Advanced Encryption Standard
AES256 – Advanced Encryption Standards 256bit
AH - Authentication Header
ALE - Annualized Loss Expectancy
ARO - Annualized Rate of Occurrence
ARP - Address Resolution Protocol
AUP - Acceptable Use Policy
BIOS – Basic Input / Output System
BOTS – Network Robots
CA – Certificate Authority
CAN - Controller Area Network
CCTV - Closed-circuit television
CHAP – Challenge Handshake Authentication Protocol
CRL – Certification Revocation List
DAC – Discretionary Access Control
DDOS – Distributed Denial of Service
DES – Digital Encryption Standard
DHCP – Dynamic Host Configuration Protocol
DLL - Dynamic Link Library
DMZ – Demilitarized Zone
DNS – Domain Name Service (Server)
DOS – Denial of Service
EAP - Extensible Authentication Protocol
ECC - Elliptic Curve Cryptography
FTP – File Transfer Protocol
GRE - Generic Routing Encapsulation
HIDS – Host Based Intrusion Detection System
HIPS – Host Based Intrusion Prevention System
HTTP – Hypertext Transfer Protocol
HTTPS – Hypertext Transfer Protocol over SSL
HVAC – Heating, Ventilation Air Conditioning
ICMP - Internet Control Message Protocol
ID – Identification
IM - Instant messaging
IMAP4 - Internet Message Access Protocol v4
IP - Internet Protocol
IPSEC – Internet Protocol Security
IRC - Internet Relay Chat
ISP – Internet Service Provider
KDC - Key Distribution Center
L2TP – Layer 2 Tunneling Protocol
LANMAN – Local Area Network Manager
LDAP – Lightweight Directory Access Protocol
MAC – Mandatory Access Control / Media Access Control
MAC - Message Authentication Code
MAN - Metropolitan Area Network
MD5 – Message Digest 5
MSCHAP – Microsoft Challenge Handshake Authentication
Protocol
MTU - Maximum Transmission Unit
NAC – Network Access Control
NAT – Network Address Translation
NIDS – Network Based Intrusion Detection System
NIPS – Network Based Intrusion Prevention System
NOS – Network Operating System
NTFS - New Technology File System
NTLM – New Technology LANMAN
NTP - Network Time Protocol
OS – Operating System
OVAL – Open Vulnerability Assessment Language
PAP – Password Authentication Protocol
PAT - Port Address Translation
PBX – Private Branch Exchange
PGP – Pretty Good Privacy
PII – Personally Identifiable Information
PKI – Public Key Infrastructure
PPP - Point-to-point Protocol
PPTP – Point to Point Tunneling Protocol
RAD - Rapid application development
RADIUS – Remote Authentication Dial-in User Server
RAID – Redundant Array of Inexpensive Disks
RAS – Remote Access Server
RBAC – Role Based Access Control
RBAC – Rule Based Access Control
RSA – Rivest, Shamir, & Adleman
S/MIME – Secure / Multipurpose internet Mail Extensions
SCSI - Small Computer System Interface
SHA – Secure Hashing Algorithm
SHTTP – Secure Hypertext Transfer Protocol
SLA – Service Level Agreement
SLE - Single Loss Expectancy
SMTP – Simple Mail Transfer Protocol
SNMP - Simple Network Management Protocol
SPIM - Spam over Internet Messaging
SSH – Secure Shell
SSL – Secure Sockets Layer
SSO – Single Sign On
STP – Shielded Twisted Pair
TACACS – Terminal Access Controller Access Control System
TCP/IP – Transmission Control Protocol / Internet Protocol
TKIP - Temporal Key Integrity Protocol
TKIP – Temporal Key Interchange Protocol
TLS – Transport Layer Security
TPM – Trusted Platform Module
UPS - Uninterruptable Power Supply
URL - Universal Resource Locator
USB – Universal Serial Bus
UTP – Unshielded Twisted Pair
VLAN – Virtual Local Area Network
VoIP - Voice over IP
VPN – Virtual Private Network
WEP – Wired Equivalent Privacy
WPA – Wi-Fi Protected Access

VN:F [1.1.7_509]
Rating: 4.0/10 (1 vote cast)

A list of the Simple Network Time Protocol (SNTP) time servers

August 6th, 2009

There are two levels, or tiers, of Network Time Protocol (NTP) time servers that are available on the Internet. The NTP is defined in Request for Comments (RFC) 1305.

The first-level time servers are primarily intended to act as source time servers for second-level time servers. The first-level time servers may also be capable of providing mission-critical time services. Some first-level time servers may have a restricted access policy.

Second-level time servers are intended for general SNTP time service needs. Second-level time servers usually enable public access. It is recommended that you use second-level time servers for normal SNTP time server configuration because they are usually located on a closer network that can produce faster updates.

NIST time servers

  • time-a.nist.gov
    129.6.15.28
    NIST, Gaithersburg, Maryland
  • time-b.nist.gov
    129.6.15.29
    NIST, Gaithersburg, Maryland
  • time-a.timefreq.bldrdoc.gov
    132.163.4.101 (as of December 1, 1999)
    NIST, Boulder, Colorado
  • time-b.timefreq.bldrdoc.gov
    132.163.4.102 (as of December 1, 1999)
    NIST, Boulder, Colorado
  • time-c.timefreq.bldrdoc.gov
    132.163.4.103 (as of December 1, 1999)
    NIST, Boulder, Colorado
  • utcnist.colorado.edu
    128.138.140.44
    University of Colorado, Boulder
  • time.nist.gov
    192.43.244.18
    NCAR, Boulder, Colorado
  • time-nw.nist.gov
    131.107.1.10
    Microsoft, Redmond, Washington
  • nist1.dc.certifiedtime.com
    216.200.93.8
    Abovnet, North Virginia
  • nist1.datum.com
    209.0.72.7
    Datum, San Jose, California
  • nist1.nyc.certifiedtime.com
    208.184.49.129
    Abovnet, New York City
  • nist1.sjc.certifiedtime.com
    207.126.103.202
    Abovnet, San Jose, California

Level-One Time Servers

Arranged by geographic location:

North America

  • Palo Alto, CA: Systems Research Center, Compaq Computer Corp.
    204.123.2.72: usno.pa-x.dec.com; CNAME: navobs1.pa-x.dec.com
    Service area: U.S. pacific and mountain time zones
  • Marina del Rey, CA: USC Information Sciences Institute
    128.9.176.30: timekeeper.isi.edu
    Service Area: CalRen2 and Los Nettos region
  • Washington, DC: U.S. Naval Observatory
    192.5.41.41: tock.usno.navy.mil
    192.5.41.40: tick.usno.navy.mil
    Service Area: NSFNET
  • Ottawa, Ontario, Canada: National Research Council of Canada
    time.chu.nrc.ca
    Service Area: Canada
  • Raleigh, NC: North Carolina State University
    152.1.58.124: terrapin.csc.ncsu.edu
    Service Area: Southeastern U.S.
  • Cambridge, MA: MIT Information Systems
    18.72.0.3: bitsy.mit.edu
    Service Area: NSFNET and NEARnet area
  • Cambridge, MA: MIT
    18.26.4.105: bonehed.lcs.mit.edu
    Service Area: Eastern U.S.
  • Palo Alto, CA: Internet Software Consortium
    192.5.5.250: clock.isc.org
    Service Area: BARRnet, Alternet-west, and CIX-west
  • Cambridge, MA: Open Software Foundation
    130.105.4.59: clock.osf.org
    Service Area: NSFNET and NEARnet region
  • Palo Alto, CA: ViaNet Communications
    209.81.9.7: clock.via.net
  • Cleveland, OH: Lewis Research Center (NASA)
    128.156.1.43: lerc-dns.lerc.nasa.gov
    Service Area: NSFNET and OARNET
  • Colorado Springs, CO: Schriever AFB
    204.34.198.40: navobs1.usnogps.navy.mil; CNAME: tick.usnogps.navy.mil
    204.34.198.41: navobs2.usnogps.navy.mil; CNAME: tock.usnogps.navy.mil
    Service area: U.S. pacific and mountain time zones
  • St. Louis, MO: Washington University
    128.252.19.1: navobs1.wustl.edu; CNAME: tick.wustl.edu
    Service area: U.S. central time zone
  • Research Triangle Park, NC: MCNC
    192.101.21.1: ncnoc.ncren.net
    Service area: NC-REN region
  • Cupertino, CA: HP
    192.6.38.127: ntp-cup.external.hp.com
    Service Area: West coast U.S.
  • Newark, DE: Conectiv Communications
    138.39.7.20: ntp1.delmarva.com
    Service area: Cable & Wireless Network (formerly MCInet)
  • University Park, PA: Penn State University
    128.118.46.3: otc1.psu.edu
    Service Area: NSFNET, PREPNET, and JvNCnet

Europe

  • Borowiec, Poland: Astrogeodynamical Observatory, Space Research Centre
    150.254.183.15: vega.cbk.poznan.pl
    Service Area: Poland and Europe
  • Stockholm, Sweden: Stupi AB
    192.36.143.151: Time2.Stupi.SE
    Service Area: Europe
  • Torino, Italy: IEN Galileo Ferraris
    193.204.114.1: time.ien.it
    Service Area: Italy and Europe
  • Zurich, Switzerland: Integrated Systems Lab, Swiss Fed. Inst. of Technology
    129.132.2.21: swisstime.ethz.ch
    Service Area: Switzerland and Europe
  • Torino, Italy: CSTV of National Research Council
    150.145.33.1: tempo.cstv.to.cnr.it
    Service Area: Italy and Europe
  • Erlangen, Germany: University Erlangen-Nuernberg
    ntp0.fau.de; ntp1.fau.de; ntp2.fau.de;
    ntps1-0.uni-erlangen.de; ntps1-1.uni-erlangen.de; ntps1-2.uni-erlangen.de
    Service Area: Germany and Europe
  • Berlin, Germany: Technische Universitaet Berlin
    130.149.17.21: ntps1-0.cs.tu-berlin.de
    130.149.17.8: ntps1-1.cs.tu-berlin.de
    Service Area: Germany and Europe
  • Germany
    131.173.17.7: ntps1-1.rz.Uni-Osnabrueck.DE
    Service Area: Germany and Europe
  • Sweden
    192.36.143.150: Time1.Stupi.SE
    Service Area: SUnet and NORDUnet Sweden

East Asia and Pacific Rim

  • Hong Kong: The Chinese University of Hong Kong.
    137.189.6.18: clock.cuhk.edu.hk
    Service Area: Hong Kong, China, and South East Asia
  • Fukuoka, Japan: Fukuoka University
    133.100.9.2: clock.nc.fukuoka-u.ac.jp
    133.100.11.8: clock.tl.fukuoka-u.ac.jp
    Service Area: Japan and Pacific area

Australia

  • Melbourne Australia: The University of Melbourne
    128.250.36.2: ntp.cs.mu.OZ.AU
    Service area: Australia and New Zealand

Level-Two Time Servers

Arranged by geographic location:

North America

NTP time servers:

  • Quebec, Canada: Canadian Meteorological Center
    ntp1.cmc.ec.gc.ca; ntp2.cmc.ec.gc.ca
    Service Area: Eastern Canada
  • Ontario, Canada: National Research Council of Canada
    time.chu.nrc.ca; time.nrc.ca
    Service Area: Canada
  • Saskatchewan, Canada: University of Regina
    142.3.100.15: timelord.uregina.ca
    Service Area: Canada
  • Ontario, Canada: University of Toronto
    tick.utoronto.ca; tock.utoronto.ca
    Service Area: Eastern Canada
  • Mexico: Audiotel office
    ntp2a.audiotel.com.mx; ntp2c.audiotel.com.mx; ntp2b.audiotel.com.mx
    Service Area: Avantel, MCINet, and Mexico
  • Santa Cruz, CA: Scruz-net, inc.
    165.227.1.1: ns.scruz.net
    Service area: Western U.S.
  • San Diego, CA: UCSD Academic Computing Services/Network Operations
    132.239.254.49: ntp.ucsd.edu
    Service Area: CERFNET; NSFNET, SDSC region, and nearby
  • Quincy, California
    ntp1.mainecoon.com; ntp2.mainecoon.com
    Service Area: North America
  • Newark, DE: University of Delaware
    128.175.1.3: louie.udel.edu
    Service Area: CAIRN, Abilene, and vBNS
  • Atlanta, GA: CNSG
    ntp.shorty.com
    Service Area: Southeast U.S.
  • Kennesaw, GA: PeachNet
    rolex.peachnet.edu; timex.peachnet.edu
    Service Area: PeachNet (Georgia) and Southeast U.S.
  • Urbana-Champaign, IL: University of Illinois
    ntp-0.cso.uiuc.edu; ntp-1.cso.uiuc.edu; ntp-2.cso.uiuc.edu
    Service Area: CICNET, Midwest, and NCSA region
  • Chicago, IL: Argonne National Laboratory
    ntp-1.mcs.anl.gov; ntp-2.mcs.anl.gov
    Service Area: NSF/ANSNet, CICNet, NetIllinois, and ESNet
  • West Lafayette, IN: Purdue University
    gilbreth.ecn.purdue.edu; harbor.ecn.purdue.edu; molecule.ecn.purdue.edu
    Service area: NSFNET and CICNET area
  • Manhattan, KS: KansasNet OnLine Services
    199.240.130.1: ntp1.kansas.net
    199.240.130.12: ntp2.kansas.net
    Service area: Central U.S. and Great Plains
  • Boston, MA: UMass-Boston CS dept.
    158.121.104.4: timeserver.cs.umb.edu
    Service Area: New England
  • Minneapolis/St Paul, MN: University of Minnesota
    ns.nts.umn.edu; nss.nts.umn.edu
    Service Area: CICNET region
  • Columbia, MO: University of Missouri-Columbia
    128.206.206.12: everest.cclabs.missouri.edu
    Service Area: MOREnet
  • Omaha, NE: Radiks Internet Access
    205.138.126.83: allison.radiks.net
    Service Area: Midwest U.S.
  • Las Vegas, NV: University of Nevada System Computing Services
    131.216.1.101: cuckoo.nevada.edu
    Service Area: NevadaNet, NSFNET, and SDSC region
  • Las Vegas, NV: UNLV College of Engineering
    tick.cs.unlv.edu; tock.cs.unlv.edu
    Service Area: Sprintnet
  • New York City, NY: Columbia University
    ntp.ctr.columbia.edu
    Service Area: Sprintlink and NYSERnet
  • Ithaca, NY: Cornell University
    192.35.82.50: ntp0.cornell.edu
    Service Area: NSFNET and NYSER region
  • New York, NY: Morningside Campus, Columbia University
    sundial.columbia.edu
    Service Area: NYSERnet
  • New York City, NY: Columbia University Computer Science Department
    timex.cs.columbia.edu
    Service Area: PSINET; NSFNET, and NYSER region
  • Norman, Oklahoma: University of Oklahoma
    129.15.22.8: constellation.ecn.uoknor.edu
    Service Area: Midnet
  • Coos Bay, OR: Koala Computers
    207.48.109.6: tick.koalas.com
    Service Area: Northwestern U.S.
  • University Park, PA: Penn State University
    128.118.25.3: clock.psu.edu
    Service Area: Internet2, vBNS, CERFnet(AT&T IP Services), PSC/NCNE, and CASC
  • Pittsburgh, PA: Pittsburgh Supercomputing Center
    128.182.58.100: fuzz.psc.edu
    Service area: NSFNET and PSC region
  • Pittsburgh, PA: Carnegie Mellon Electrical and Computer Engineering
    ntp-1.ece.cmu.edu; ntp-2.ece.cmu.edu
    Service Area: PREPNET and PSC region
  • Dallas, TX: Cox School of Business, Southern Methodist University
    129.119.80.126: ntp.cox.smu.edu
    Service Area: NSFNET and SESQUI region
  • Hughes Springs, TX: First National Bank
    209.144.20.76: ntp.fnbhs.com
    Service area: Northeast Texas
  • Houston, Tx: Baylor College of Medicine
    128.249.1.10: ntp.tmc.edu
    Service Area: NSFNET and SESQUI region
  • College Station, TX: Texas A&M University
    165.91.52.110: ntp5.tamu.edu
    Service area: NSFNET, SESQUI region, THEnet, and TAMUSDSN
  • Plano, TX: Greyware Automation Products
    tick.greyware.com; tock.greyware.com
    Service Area: South-Central U.S.
  • Blacksburg, VA: Virginia Tech Computing Center
    ntp-1.vt.edu; ntp-2.vt.edu
    Service Area: Southeast U.S.
  • Arlington, VA: Center for Seismic Studies
    140.162.1.3: ntp.cmr.gov
    Service Area: NSFNET and SURA region
  • Richland, WA: Washington State University
    192.31.216.30: clock.tricity.wsu.edu
    Service Area: NSFNET and NorthWestNet
  • Washington, U.S.: Mill Creek
    time.ultimeth.net
    Service Area: Northwest U.S.
  • Wisconsin, U.S.: Computer Science Department, University of Wisconsin-Madison
    ntp1.cs.wisc.edu; ntp2.cs.wisc.edu; ntp3.cs.wisc.edu
    Service Area: U.S. and any

South America

  • Buenos Aires, Argentina: Network Access Point
    200.49.40.1: CNAME: tick.nap.com.ar
    200.49.32.1: CNAME: tock.nap.com.ar
    Service Area: Argentina
  • Buenos Aires, Argentina: Sinectis S.A.
    time.sinectis.com.ar
    Service Area: Argentina
  • Brazil: Brazilian Research Network
    200.144.121.33: ntp.cais.rnp.br
    Service Area: Brazil
  • Venezuela: VELUG, Grupo de Usuarios Linux de Venezuela
    150.185.192.250: ntp.linux.org.ve
    Service Area: Arica

Europe

  • Zurich, Switzerland: Swiss Fed. Inst. of Technology
    129.132.98.11: bernina.ethz.ch
    Service Area: Switzerland and Europe
  • Location: Copenhagen, Denmark, Europe
    clock.netcetera.dk; clock2.netcetera.dk
    Service area: Denmark, Scandinavia, and Northern Europe
  • Spain: Altea
    slug.ctv.es
    Service Area: Spain
  • Pieksamaki, Finland: Keski-Savon Oppimiskeskus
    tick.keso.fi; tock.keso.fi
    Service area: Finland
  • Meudon, France: Observatoire de Paris-Meudon
    ntp.obspm.fr
    Service Area: France and Europe
  • Lyon, France: CISM
    ntp.univ-lyon1.fr
    Service Area: France, Switzerland, Italy, and Europe
  • Paris, France: VIA, Ecole Centrale
    138.195.130.70: ntp.via.ecp.fr
    Service Area: France and Europe
  • Budapest, Hungary: KFKI Research Institute for Particle and Nuclear Physics
    148.6.0.1: time.kfki.hu
    Service Area: HUNGARNET
  • Italy: Net4u Srl, Vercelli, Italy
    195.32.52.129: ntps.net4u.it
    Service area: Italy
  • Oslo, Norway: University of Oslo
    129.240.64.3: fartein.ifi.uio.no
    Service Area: NORDUnet
  • Oslo, Norway: Alcanet International
    time.alcanet.no
    Service Area: Europe
  • Krakow, Poland: Academic Computer Centre
    149.156.4.11: info.cyf-kr.edu.pl
    Service Area: Poland and Europe
  • Lund, Sweden: Lund Institute of Technology
    130.235.20.3: ntp.lth.se
    Service Area: Sweden and NORDUnet
  • Ljubljana, Slovenia: Institute of Biophysics, University of Ljubljana
    biofiz.mf.uni-lj.si 193.2.69.11
    Service Area: Slovenia and Europe
  • Ljubljana, Slovenia: Hydrometeorological Institute of Slovenia
    hmljhp.rzs-hm.si
    Service Area: Slovenia and Europe
  • Ljubljana, Slovenia: Academic and Research Network of Slovenia
    ntp1.arnes.si; ntp2.arnes.si
    Service Area: Slovenia and Europe
  • Ljubljana, Slovenia: J. Stefan Institute
    time.ijs.si
    Service Area: Slovenia and Europe

British Isles

  • Dublin, Ireland: School of Mathematics, Trinity College
    ntp.cs.tcd.ie; ntp.maths.tcd.ie; ntp.tcd.ie
    Service Area: Ireland and U.K.
  • Glasgow, Scotland: Strathclyde University
    ntp.cs.strath.ac.uk
    Service Area: U.K., Europe, and any
  • Cambridge, U.K.
    ntp0.uk.uu.net; ntp1.uk.uu.net;
    ntp2.uk.uu.net
    Service Area: UUNET (formerly known in the U.K. as PIPEX) and U.K.
  • Manchester, England: University of Manchester
    ntp2a.mcc.ac.uk; ntp2b.mcc.ac.uk;
    ntp2c.mcc.ac.uk; ntp2d.mcc.ac.uk
    Service Area: U.K.
  • Buckinghamshire U.K.: Wibble U.K., Aylesbury
    tick.tanac.net
    Service area: U.K.

Asia

  • Moscow, Russia: Landau Institute for Theoretical Physics
    193.233.9.7: ntp.landau.ac.ru
    Service area: Russia
  • Russia: Pushchino (near Moscow)
    194.149.67.130: ntp.psn.ru
    Service area: Russia
  • Chernogolovka, Russia: Chernogolovka Scientific Center (near Moscow)
    193.233.46.10: sign.chg.ru
    Service Area: Russia

East Asia and Pacific Rim

  • Tokyo, Japan: Cyber Fleet, Inc.
    203.139.30.195: ntp.cyber-fleet.net
    Service Area: Japan and East Asia
  • Seoul, Korea: Inet, Inc.
    time.nuri.net
    Service Area: Korea, Japan, Hong Kong, and East Asia
  • Hamilton, New Zealand: The University of Waikato
    truechimer.waikato.ac.nz; truechimer1.waikato.ac.nz;
    truechimer2.waikato.ac.nz; truechimer3.waikato.ac.nz
    Service Area: New Zealand
  • Singapore and the Philippines:
    ntp.shim.org
    Service Area: Singapore

Africa

  • Lagos, Nigeria: Supernet300
    ntp.supernet300.com
    Service Area: Western Africa (primarily Nigerian NITEL backbone)
  • Pietermaritzburg, South Africa: Natal University
    143.128.82.200: ntp.cs.unp.ac.za
    Service area: South Africa

Australia

  • Adelaide, South Australia: The University of Adelaide
    129.127.28.4: augean.eleceng.adelaide.edu.au
    129.127.40.3: ntp.adelaide.edu.au
    203.21.37.18: ntp.saard.net
    Service area: AARNet
  • Carlton, Victoria, Australia: eSec Limited
    203.21.84.4: time.esec.com.au

Resources:

http://support.microsoft.com/kb/262680

http://tycho.usno.navy.mil/ntp.html

http://tf.nist.gov/

http://tf.nist.gov/service/its.htm

VN:F [1.1.7_509]
Rating: 6.0/10 (1 vote cast)

How to change who windows is registered to

August 3rd, 2009
Changing who Windows is registered to after Windows has been installed is a simple fix.  Jump into regedit and make the needed modifications.
  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK.
  3. Locate the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
  4. To change the company name, do the following:

    In the right pane, double-click RegisteredOrganization. Under Value data, type the name that you want, and then click OK.

  5. To change the name of the registered owner, do the following:

    In the right pane, double-click RegisteredOwner. Under Value data, type the name that you want, and then click OK.

  6. Click Exit on the File menu to quit Registry Editor.
VN:F [1.1.7_509]
Rating: 10.0/10 (1 vote cast)

SQL Compatibility levels

July 30th, 2009

Version of SQL Server database can be one of the following:

  • 60 = SQL Server 6.0
  • 65 = SQL Server 6.5
  • 70 = SQL Server 7.0
  • 80 = SQL Server 2000
  • 90 = SQL Server 2005

The sp_dbcmptlevel stored procedure affects behaviors only for the specified database, not for the entire server. sp_dbcmptlevel provides only partial backward compatibility with earlier versions of SQL Server. A database containing an indexed view cannot be changed to a compatibility level lower than 80.

sp_dbcmptlevel
Sets certain database behaviors to be compatible with the specified version of SQL Server.

Example:
—-SQL Server 2005 database compatible level to SQL Server 2000
EXEC sp_dbcmptlevel SampleDB, 80;
GO
—-SQL Server 2000 database compatible level to SQL Server 2005
EXEC sp_dbcmptlevel SampleDB, 90;
GO

VN:F [1.1.7_509]
Rating: 0.0/10 (0 votes cast)

How to disable Data Execution Prevention (DEP)

July 26th, 2009

Data Execution Prevention (DEP) is a set of hardware and software technologies that perform additional checks on memory to help prevent malicious code from running on a system. In Microsoft Windows XP Service Pack 2 and Microsoft Windows XP Tablet PC Edition 2005, DEP is enforced by hardware and by software.

The primary benefit of DEP is to help prevent code execution from data pages. Typically, code is not executed from the default heap and the stack. Hardware-enforced DEP detects code that is running from these locations and raises an exception when execution occurs. Software-enforced DEP can help prevent malicious code from taking advantage of exception-handling mechanisms in Windows.

http://support.microsoft.com/kb/875352

There may come a time when have to disbale DEP either for the purpose of troubleshooting a problem or otherwise

Disable Data Execution Prevention (DEP)

  1. Right click on My Computer and Select Properties.
  2. Click the Advanced tab, and in the Startup and Recovery section, click the Settings button.
  3. In the System Startup section, click the Edit button.
  4. Now find the text that says /noexecute=OptIn.
  5. You need to replace OptIn (which the default) with AlwaysOff.

  6. Be sure to enter this text carefully and exactly as it’s mentioned above. Failure to do so could prevent your computer from booting.

    Your boot.ini file should read:/noexecute=AlwaysOff

  7. Click File and then click Save.
  8. Click OK to close Startup and Recovery window.
  9. Click OK to close System Properties windows
  10. Restart your computer.

This setting does not provide any DEP coverage for any part of the system, regardless of hardware DEP support.

Verifying DEP is Disabled

  1. Right click on My Computer and select Properties.
  2. Click the Advanced tab.
  3. In the Performance section, click the Settings button and then click Data Execution Prevention tab.
  4. None of the DEP settings should be available.  Click OK to close Performance Settings window.
  5. Click OK to close System Properties window.

DEP is now completely disabled. If you want to enable it again, follow this guide but instead of replacing OptIn with AlwaysOff, replace AlwaysOff with OptIn (the default).

Configuration Description
OptIn This setting is the default configuration. On systems with processors that can implement hardware-enforced DEP, DEP is enabled by default for limited system binaries and programs that “opt-in.” With this option, only Windows system binaries are covered by DEP by default.
OptOut DEP is enabled by default for all processes. You can manually create a list of specific programs that do not have DEP applied by using the System dialog box in Control Panel. Information technology (IT) professionals can use the Application Compatibility Toolkit to “opt-out” one or more programs from DEP protection. System compatibility fixes, or shims, for DEP do take effect.
AlwaysOn This setting provides full DEP coverage for the whole system. All processes always run with DEP applied. The exceptions list to exempt specific programs from DEP protection is not available. System compatibility fixes for DEP do not take effect. Programs that have been opted-out by using the Application Compatibility Toolkit run with DEP applied.
AlwaysOff This setting does not provide any DEP coverage for any part of the system, regardless of hardware DEP support. The processor does not run in PAE mode unless the /PAE option is present in the Boot.ini file.
VN:F [1.1.7_509]
Rating: 0.0/10 (0 votes cast)

.NET Resources 2.0

July 10th, 2009

Key Microsoft Resources (Framework)

Microsoft Developers Network (MSDN)
.NET Framework Developer Center
.NET 2.0 SDK: x86 x64
.NET Framework 3.0
.NET 1.1 SDK
MSDN Library: Online Download December 2006 Edition
Visual Basic Developer Center
Visual C# Developer Center

Key Microsoft Resources (ASP.NET & Sql Stack)

ASP.NET 2.0 Site
MSDN ASP.NET Developer Center
MSDN Web Services Developer Center
MSDN SQL Server Developer Center
Microsoft Patterns & Practices Team
.NET 3.0 Community Site

Express Editions Downloads
Microsoft has released free, but limited versions of Visual Studio for use by hobbyist developers. In addition they have also released Sql Server Express for use with smaller applications. Get them from the links below. [NB: Some of the Visual Studio Express editions include Sql 2005. Downloads do require registration.]

Express Editions Home Page
Visual Web Developer Express
Sql Server Express
Visual Basic Express
Visual C# Express
Visual C++ Express
Visual J# Express
The .NET Show: Microsoft Videos on all things .NET

Other Free Development Environments
#Develop: free, open-source C# development environment.
ASP.NET Web Matrix: Microsoft’s free ASP.NET 1.1 development environment. Very limited, but great grandpappy of Visual Web Developer Express

Mono Project (or .NET on non-Windows platforms)
The Mono project is a very well-run effort to port the .NET runtime to the *nix environment.

Mono Project Home
Mono Framework Downloads
MonoDevelop: Cross-platform development environment for .NET code.
Mono Migration Analysis Tool: a tool to check if your code will work under Mono.
DotGNU: technically not Mono, but another .NET stack for *nix so it falls in the similar category.

Getting Started Guides & Tutorials
GotDotNet quickstarts
Learn ASP.NET
C# Station C# Tutorial
ASP.NET Starter Kits
Microsoft Developer’s Network Learning Center for Beginning Programmers

.NET Oriented Websites
411 Asp Resource Guide
4 Guys From Rolla: Many tutorials and guides.
The Angry Coder: a plethora of .NET articles.
ASP.NET Resources: handy ASP.NET resources; emphasis on standards compliance.
CodePlex: MS’ open-source project home.
CodeProject: Reams of user committed code. Non-reviewed so YMMV.
ConnectionStrings.com: for when you cannot remember that connection string.
DotNetKicks: d1gg for .NET land.
GotDotNet: Home for alot of older .NET projects.
Grid View Guy: Handy ASP.NET guides and tutorials.
PINVOKE.NET: Wiki site for calling unmanaged APIs from your managed code.
The Server Side .NET: Enterprise-oriented development guide.
The Daily WTF: because knowing what not to do is as important as knowing what to do.

Blogosphere
Asp.NET blogs: The grandaddy of ‘em all, Microsoft’s ASP.NET mass blogging site.
Geeks With Blogs: Another meta-blogging site with many different folks blogging about .NET
IE Team Blog: Blog of the Internet Explorer team
BCL Team Blog: blog for the team dedicated to maintaining and expanding .NET’s Base Class Library.
ADO.NET Team Blog: blog for the team dedicated to maintaining and expanding ADO.NET.
Scott Guthrie’s blog: weblog of Scott Guthrie, General Manager for just about everything .NET.
CodeBetter.com: Another great .NET blog
You’ve Been Haacked: Phil Haack’s weblog, lots of great cutting edge stuff.
Coding Horror: Jeff Atwood’s rather insightful blog.

Development, Building & Testing Tools
NUnit: a very popular unit testing framework, along the lines of JUnit.
MbUnit: another unit testing framework for .NET applications.
NAnt: an xml-driven build tool, similar to Java’s ant.
CruiseControl.NET: a continuious integration framework for .NET
nCover: A code coverage framework, allowing one to see which lines of code are tested using your testing framework of choice
TestDriven.NET: a visual studio add-in allowing for nearly one-click execution of unit tests and integrated code coverage. Free for hobbyists, cheap for professionals.

Miscellaneous Important Libraries & Frameworks
NHibernate: a .NET port of the venerable hibernate library of java fame.
The Castle Project: an umbrella project for some open source tools designed to simplify enterprise .NET development. Key projects inlcude MonoRail and ActiveRecord.
The Microsoft Enterprise Library: a set of library and frameworks for building large applications. Key parts include a database abstraction layer as well as an exception handling and logging framework.
CSS-Friendly Control Adapters: Adapts the standard .NET controls to render output using CSS for layout.
SubSonic: the hawt, new data access framework for .NET
log4net: A .NET port of the popular log4j logging framework.
IronPython: python interpreter/environment for .NET and the CLR. Write python, compile to IL.

ASP.NET Ajax Frameworks
ASP.NET AJAX: Microsoft’s ASP.NET Ajax framework. .NET 2.0 only.
Magic Ajax: Lighter-weight Ajax framework for .NET.
Ajax.NET Professional: Another light-weight Ajax framework. Works with .NET 1.1.

Popular ASP.NET Applications
SubTEXT: an open-source, .NET blogging engine.
DasBlog: the other open-source, .NET blogging engine.
Rainbow Portal: an open-source .NET web portal application.
Umbraco: an open-source .NET web portal application.
DotNetNuke: a web portal application; one of the original .NET open-source applications.
Community Server: A community-oriented application, featuring forums, blogs and other goodies. Free for non-commercial use and relatively cheap otherwise.
FlexWiki: An open-source .NET wiki application.

VN:F [1.1.7_509]
Rating: 0.0/10 (0 votes cast)

How to Crack a Wi-Fi Network’s WEP Password with BackTrack

July 2nd, 2009

Lifehacker has a great articale on how to crack a Wi-Fi Network’s WEP Password with BackTrack.  So head on over there and take a look:

http://lifehacker.com/5305094/how-to-crack-a-wi+fi-networks-wep-password-with-backtrack

VN:F [1.1.7_509]
Rating: 0.0/10 (0 votes cast)

Shutdown and Restarting Windows via Command line

June 18th, 2009

Start -> Run:

Shutdown

The options available for shutdown are:

No arguments : Display this message (same as -?)
-i : Display GUI interface, must be the first option
-l : Log off (cannot be used with -m option)
-s : Shutdown the computer
-r : Shutdown and restart the computer
-a : Abort a system shutdown
-m \\computername : Remote computer to shutdown/restart/abort
-t xx : Set timeout for shutdown to xx seconds
-c “comment” : Shutdown comment (maximum of 127 characters)
-f : Forces running applications to close without warning
-d [u][p]:xx:yy : The reason code for the shutdown

VN:F [1.1.7_509]
Rating: 10.0/10 (1 vote cast)

Java default keystore password

May 21st, 2009

The default password for the Java default keystore file $JAVA_HOME/lib/security/cacerts is ‘changeit’

VN:F [1.1.7_509]
Rating: 8.8/10 (4 votes cast)