Monthly Archives: July 2015

Redirect subdomain to main domain htaccess

Hi friends,
Try adding this to an appropriate place in your .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^prittytimes\.com$ [NC]
RewriteRule ^ http://prittytimes.com/webcrased [L,R]

As long as the requested host is prittytimes\.com, the rule will be applied. With the regex match set to ^, any URI will match and the target will be redirected to http://prittytimes.com/webcrased



If you want only specific URI requests to be redirected to /webcrased, you can tweak the ^ to something appropriate.

Removing file extensions using htaccess


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f

RewriteRule ^(.*)$ $1.html
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php




AngularJs Components

Hi all,

AngularJs is a Javascript Framework.  Its same as  javascript,  extends HTML with ng-directives. It can be added to an HTML page with a <script> tag.AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions. <script src=“http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js”></script> this jquery file helps for running angularjs file






AngularJS directives allow the developer to specify custom and reusable HTML-like elements and attributes that define data bindings and the behavior of presentation components. Some of the most commonly used directives are:

ng-app
Declares the root element of an AngularJS application, under which directives can be used to declare bindings and define behavior.
ng-bind
Sets the text of a DOM element to the value of an expression. For example, will display the value of ‘name’ inside the span element. Any changes to the variable ‘name’ in the application’s scope are reflected instantly in the DOM.




ng-model
Similar to ng-bind, but establishes a two-way data binding between the view and the scope.
ng-model-options
Allows tuning how model updates are done.
ng-class
Allows class attributes to be dynamically loaded.
ng-controller
Specifies a JavaScript controller class that evaluates HTML expressions.
ng-repeat
Instantiate an element once per item from a collection.
ng-show & ng-hide
Conditionally show or hide an element, depending on the value of a boolean expression. Show and hide is achieved by setting the CSS display style.
ng-switch
Conditionally instantiate one template from a set of choices, depending on the value of a selection expression.
ng-view
The base directive responsible for handling routes that resolve JSON before rendering templates driven by specified controllers.
ng-if




Basic if statement directive that allow to show the following element if the conditions are true. When the condition is false, the element is removed from the DOM. When true, a clone of the compiled element is re-inserted
ng-aria
A module for accessibility support of common ARIA attributes.
ng-animate
A module provides support for JavaScript, CSS3 transition and CSS3 keyframe animation hooks within existing core and custom directives.

Display name,size,type of a file uploaded( image, text, pdf, spreadsheet etc)

Hi Friends,
Today,I’m trying to display the name, size and type of a file uploaded. Mainly here I explains how to get the file name, file size (in bytes), file type (Image/Text/PDF/spreadsheet files) after select the documents.
Uploading the files in php page using ‘file’ type in HTML input like <input type=”file” name=”image”/>. Some times we may need to know the file name,type and size of the file that is uploaded.
Here is give a simple method to get the file name, type and size of the file that is being uploaded in pure php page.



Basically when the user selects any files using input file tag we will display its file name, file size and file type of files selected.

File Size : $file_size
File Type :$file_type "; //echo ''; } ?>




Description: Here we first add a input file tag and button within form tag. If we select the files then it display name,size and type of file selected. Using Html5 we can also preview image preview image

DEMO

Ten Open Source Security Tools..

Hi Good Morning,
Toady I share one important article related to open source security tools. There are hundreds of open security tools are available.
The transition from closed networks enterprise-wide IT networks is gathering speed but naturally raising the alaram about threats like viruses, spyware, adware, malware, rootkits, etc..




These security threats can cause a wide range of disturbance, ranging from denial-o- service(DoS) attacks to identity theft, DNS poisoning,etc on the web

There are a lot of open source tools available to counter these threats so that your device is not at risk. Let’s look at ten open source tools that are widely used in the industry.

  • OSQuery
  • Security Onion
  • Skyline
  • Google Rapid Response
  • OSSEC



  • Scumblr and Sketchy
  • RAPPOR
  • OpenVAS
  • OpenSSH
  • MIDAS

1.OSQuery

OSQuery is developed by Facebook and is a simple tool for your MAC OS X and Linux infrastructure. Some of the important features of this tool include file monitoring, hardware changes, network traffic and process creation. This tool allows easy access to data and also logs system information based upon your queries. ‘

It allows user to write automation scripts, apply actionable information security intelligence, and discover new ways in which your enterprise can change servers.







2.Security Onion

Security Onion is a network security monitoring distribution system. It is used for replace the expensive commercial grey boxes with blinking lights.

Security Onion is a Linux distro for IDS, log management and network security monitoring(NSM) . This is an intrusion detection system and is very simple to set up in your enterprise. Security Onion has three core functions:full packet Capture, network-based and host- based intrusion detection systems [The intrusion detection system like NIDS and HIDS respectively], and powerful analysis tools.



3.Skyline

Skyline helps to detect the various anomalies in your infrastructure. It operates in realtime and is built to enable passive monitoring of hundreds of thousands of metrics. It is designed to be used wherever here is a large quantity of high- resolution time series, which needs constant monitoring . After Skyline detects an anomalous metric, it surfaces the entries time series to the web app, where the anomaly can be viewed and acted upon.



4.Google Rapid Response

Google Rapid Response(GRP)bas it is more commonly called, is Google’s remote live forensics for incident response. GRR consists of an agent( client) that can be deployed to a large system, and serve infrastructure that can manage and talk to the agent. It also has cross-platform support for Linux, Mac OS X and windows clients. One of the most important features includes live remote memory analysis using open source memory drivers for windows Mac OS X and Linux, and the Rekall memory analysis framework







5.OSSEC

The OSSEC is HIDS or hot based intrusion detection system. We can easy to setup and configure.

OSSEC is an open source host-based intrusion detection system which has good features like log analysis, file integrity checking, policy monitoring, rootkit detection, realtime alerting and active response.

It runs on most operating systems, including Linux, Mac OS, Solaris, HP-UX, AIX and windows







6.Scumblr and Sketchy

Scumblr is a web based application that allows users to perform periodic searches and take actions based on identified results. It also searches by using plugins called search providers or APIs, Each search provider knows how to perform a search via certain site or API( google, Bing, twitter etc). Searches can be configured from within Scumblr based on the options made available by the search provider.







7.RAPPOR

RAPPOR is a novel privacy technology that allows broad demongraphic statistics about populations to be inferred while preserving the privacy of individual users. This is developed by Google.



8.OpenVAS

OpenVAS is a framework of several services and tools offering a comprehensive and powerful vulnerability scanning and vulnerability management solutions.







9.OpenSSH

OpenSSH is a free version of the SSH connectivity tools that technical users of the Internet rely on.
Users of telnet, rlogin and ftp may not realize that their password is transmitted across the Internet unencrypted, but it is. OpenSSH encrypts all traffic ( including passwords) to effectively eliminate eavesdropping, connection hijacking and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions.







10.MIDAS
MIDAS is a framework for developing a Mac Intrusion Detection Analysis System, based on work and collaborative discussions between the Etsy and Facebook security teams. This repository provides a modular framework and a number of helper utilities, as well as an example module for detecting modifications to common OS X persistence mechanisms.



As can be seen, there are a lot of tools available in the open source community that are driven in collaboration with many big innovators. In spite of this, the security considerations listed below need to be kept in mind as the world moves towards loT:

  • Always use a firewall and make sure it is ‘Enabled’
  • Always use an antivirus
  • Always use the updated Software



  • Be aware of spam/phishing scams
  • Never reuse your password on the web

Responsive WordPress Game Theme

GamePlanet – Free WordPress Game Theme

Update your daily reviews of games with this free wordpress game theme developed by flexithemes.




 

 

 

Hide the row data on click – jQuery

Hi all,
Welcome to jQuery application development. The jQuery is very simple and easy can understand. The jquery is lightweight library.
jQuery is one of the most useful and important javascript framework. It’s helps you, your code support cross browser. The main advantage is cross browser compatible.




We can develope many application using jquery. Here I describe how to remove or hide the row data on clicking using jquery in PHP or HTML.

We can hide the row data on clicking in jquery . Its more help for removing the row data in PHP using jquery. And also we can add new row in jquery upto the limit or infinity.

Source Code








123 123




From the above code: I describe how to hide the table row using ID on click. Its very easy method.
The “hide_template” is the row id and “hide_row” is a button or image id. On image clicking hide the row using jquery.