Simple string reverse in pyton
November 16th, 2009How to reverse a string?
s = ‘abc’
s = s[::-1]
print s
Simple!
How to reverse a string?
s = ‘abc’
s = s[::-1]
print s
Simple!
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
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.
Arranged by geographic location:
Arranged by geographic location:
NTP time servers:
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
In the right pane, double-click RegisteredOrganization. Under Value data, type the name that you want, and then click OK.
In the right pane, double-click RegisteredOwner. Under Value data, type the name that you want, and then click OK.
Version of SQL Server database can be one of the following:
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
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)
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
This setting does not provide any DEP coverage for any part of the system, regardless of hardware DEP support.
Verifying DEP is Disabled
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. |
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.
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
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
The default password for the Java default keystore file $JAVA_HOME/lib/security/cacerts is ‘changeit’