Mar 3, 2014

jQuery Selector, Filter, Content Filter, Form Filter

Selectors

$('[attr]') Selects elements that have an attribute called attr, irrespective of the attribute value

$('[attr]="val"') Selects elements that have an attr attribute whose value is val

$('[attr]!="val"') Selects elements that have an attr attribute whose value is not val

$('[attr]^="val"') Selects elements that have an attr attribute whose value starts with val

$('[attr]~="val"') Selects elements that have an attr attribute whose value contains val

$('[attr]$="val"') Selects elements that have an attr attribute whose value ends with val

$('[attr]|="val"') Selects elements that have an attr attribute whose value is val or starts
with val followed by a hyphen (val-)


e.g:

$(document).ready(function () {
$('td + td').addClass("highlight");
});
 
 --------------------------------------------------------------------------------------------------------


Filters

:eq(n) Selects the nth item in the selection, using a zero-based index

:even:odd Selects the even-numbered or odd-numbered elements

:first:last Selects the first or last element

:gt(n):lt(n) Selects all the elements whose index relative to their siblings is greater
or less than n

:header Selects all elements that are headers (h1, h2, and so on)

:not(selector) Selects all the elements that do not match the selector


e.g:

$(document).ready(function () {
$('tr:eq(1)').addClass("highlight");
});



---------------------------------------------------------------------------------------------------------------

Content Filters

:contains('text') Selects elements that contain text or whose children contain text

:has('selector') Selects elements that have at least one child element that matches selector

:empty Selects elements that have no child elements

:parent Selects elements that have at least one other element

:first-child Selects elements that are the first child of their parent

:last-child Selects elements that are the last child of their parent

:nth-child(n) Selects elements that are the nth child of their parent, using a one-based index

:only-child Selects elements that are the only child of their parent


e.g:

$(document).ready(function () {
$('tr:has(td:contains("Kili"))').addClass("highlight");
});

-------------------------------------------------------------------------------------------------------------------


Form Filters

 :button Selects button elements and input elements whose type is button

:checkbox Selects check boxes

:checked Selects check boxes and radio button elements that are checked

:disabled:enabled Selects items that are enabled or disabled, respectively

:input Selects input elements

:password Selects password elements

:radio Selects radio buttons

:reset Selects input elements whose type is reset

:selected Selects option elements that are selected

:submit Selects input elements whose type is submit

:text Selects input elements whose type is text

e.g:

$(document).ready(function () {
$(':button').addClass("highlight");
});

-------------------------------------------------------------------------------------------------------------



Cross-site scripting - Wikipedia, the free encyclopedia

Cross-site scripting - Wikipedia, the free encyclopedia:



Patching the Internet in Realtime: Fixing the Current WordPress Brute Force Attack | CloudFlare Blog

Patching the Internet in Realtime: Fixing the Current WordPress Brute Force Attack | CloudFlare Blog:



Brute Force Attacks and Their Consequences | Sucuri Blog

Brute Force Attacks and Their Consequences | Sucuri Blog:



Mass WordPress Brute Force Attacks? – Myth or Reality | Sucuri Blog

Mass WordPress Brute Force Attacks? – Myth or Reality | Sucuri Blog:



Difference Between Razor View Engine and ASPX View Engine

Difference Between Razor View Engine and ASPX View Engine:



Introducing “Razor” – a new view engine for ASP.NET - ScottGu's Blog

Introducing “Razor” – a new view engine for ASP.NET - ScottGu's Blog:





unable to use Wake on LAN unless "Allow this computer to turn off - Microsoft Community

unable to use Wake on LAN unless "Allow this computer to turn off - Microsoft Community:



Feb 27, 2014

Virtual Phone Line

About Us | Virtual Phone Line:



MobileInChina - 让沟通没有距离|国际短信|网上发短信|IP电话|网络电话|手机卡托管

MobileInChina - 让沟通没有距离|国际短信|网上发短信|IP电话|网络电话|手机卡托管:



Placehold.it - Quick and simple image placeholders

Placehold.it - Quick and simple image placeholders:



The Internet's Best Placeholder Image Sites for Web Development - Scott Hanselman

The Internet's Best Placeholder Image Sites for Web Development - Scott Hanselman:



Aspx Dynamic Column Binding for Repeater

asp.net - Variable repeater columns - Stack Overflow:



K-Lite Codec Pack v10 – 64 & 32 bit with LAV filters and software/hardware decoding | Cyber Raiden

K-Lite Codec Pack v10 – 64 & 32 bit with LAV filters and software/hardware decoding | Cyber Raiden:



Guide: MPC-HC + LAV Filters + xy-VSFilter + madVR | AzureHakua's Blog

Guide: MPC-HC + LAV Filters + xy-VSFilter + madVR | AzureHakua's Blog:



Feb 25, 2014

6 Most Best WordPress Gallery Themes | WpThemesPoint

6 Most Best WordPress Gallery Themes | WpThemesPoint:





How to Install WordPress Themes - Detailed Tutorial

How to Install WordPress Themes - Detailed Tutorial:



GRC | WIZMO - Steve's Windows Gizmo  

GRC | WIZMO - Steve's Windows Gizmo  :





wizmo control volume from command prompt

windows - How can I put the computer to sleep from Command Prompt/Run menu? - Super User

windows - How can I put the computer to sleep from Command Prompt/Run menu? - Super User:



You will find shutdown.exe to be your friend.

Other handy commands see this post:

Sleep Computer

rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Lock Workstation

Rundll32.exe User32.dll,LockWorkStation
Hibernate Computer

rundll32.exe PowrProf.dll,SetSuspendState
Restart Computer

Shutdown.exe -r -t 00
Shutdown Computer

Shutdown.exe -s -t 00
EDIT/UPDATE:"



How to Add Shutdown / Restart / Sleep to the Windows 8 Metro Start Screen

How to Add Shutdown / Restart / Sleep to the Windows 8 Metro Start Screen: "





  • Restart Computer: shutdown.exe -r -t 00
  • Lock Workstation: rundll32.exe user32.dll,LockWorkStation
  • Hibernate Computer: rundll32.exe powrProf.dll,SetSuspendState
  • Sleep Computer: rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Wake On Lan Tool | DSLReports, ISP Information

Wake On Lan Tool | DSLReports, ISP Information:



Access Your Computer Anytime and Save Energy with Wake-on-LAN

Access Your Computer Anytime and Save Energy with Wake-on-LAN:



Geek to Live: How to set up a personal home web server

Geek to Live: How to set up a personal home web server:



Geek to Live: Encrypt your web browsing session (with an SSH SOCKS proxy)

Geek to Live: Encrypt your web browsing session (with an SSH SOCKS proxy):



Remote Desktop through SSH with PuTTY and Tomato firmware

Pascal’s blog » Remote Desktop through SSH with PuTTY and Tomato firmware:



How to Remote Desktop through a Proxy Server to a Terminal Server

How to Remote Desktop through a Proxy Server to a Terminal Server:



How to set up a Remote Desktop Gateway

How to set up a Remote Desktop Gateway:



NSSM - the Non-Sucking Service Manager

NSSM - the Non-Sucking Service Manager:



Make your shadowsocks command line a windows service with NSSM

NSSM - the Non-Sucking Service Manager:



Make your shadowsocks command line a windows service

Use Slide To Shut Down feature on Windows 8.1 tablets

Use Slide To Shut Down feature on Windows 8.1 tablets:





How Wake-on-LAN behavior differs in Windows 8, compared to Windows 7

How Wake-on-LAN behavior differs in Windows 8, compared to Windows 7:



Different System Sleep States in Windows 8

Different System Sleep States in Windows 8:



Different System Sleep States in Windows 8

Different System Sleep States in Windows 8:



Using a Network Connection to Wake Up a Sleeping Computer | ITworld

Using a Network Connection to Wake Up a Sleeping Computer | ITworld:



Coding Horror: Remotely Waking Up Your PC

Coding Horror: Remotely Waking Up Your PC:





Feb 24, 2014

SoundJay.com - Free Sound Effects

SoundJay.com - Free Sound Effects:



Scripts and scrapers: Automatically block RDP attacks on your Windows Server 2008

Scripts and scrapers: Automatically block RDP attacks on your Windows Server 2008:





RdpGuard - Protect Remote Desktop from Brute-Force Attacks. Fail2Ban for Windows. Stop RDP, MSSQL, FTP brute-force attacks on your Windows Server. Terminal Services Protection.

RdpGuard - Protect Remote Desktop from Brute-Force Attacks. Fail2Ban for Windows. Stop RDP, MSSQL, FTP brute-force attacks on your Windows Server. Terminal Services Protection.:



ITeezy: Change RDP 3389 port on Windows 2008 Server - 10098

ITeezy: Change RDP 3389 port on Windows 2008 Server - 10098:



Nerderies: Automatically banning IPs with Windows Firewall after scanning the eventlog

Nerderies: Automatically banning IPs with Windows Firewall after scanning the eventlog:





Securing your Windows Dedicated Server | Digital Ruby, LLC - Mostly Bug Free Software

Securing your Windows Dedicated Server | Digital Ruby, LLC - Mostly Bug Free Software:





Get Dropbox working in China (without a VPN) - East Asia Student

Get Dropbox working in China (without a VPN) - East Asia Student: