Categories
Performance Testing

Node JS and the website performance

Node JS

Recently I got opportunity to test node server application web performance.
I really wonder how fast it is when compared to typical JS or PHP applications. I noticed that CPU and memory utilization for node server was very low and efficient . In an enterprise application, that I worked on, Max CPU utilization for Node web server was 0-0.5% and Memory utilization was between 0% and 0.2%. When the client accessed the website through browser , the application made user to feel light and average page load time was between less than a second to max of ~5 seconds.

NodeJs

What makes Node JS fast?

One is that it uses Google’s V8 Java script Engine. V8 is famous for its speed when
compared to other versions of javascript engines.
Another reason is connection handling mechanismin node js. Most web servers make a new thread for
each incoming request , which means that to process 100 requests,100 threads will be created and CPU will start falling-out. In case of node server, it uses evented framework, node js uses single thread for 100 incoming requests and it ignores the connection no longer needed and results in saving CPU time. Hence CPU stays free and focused handling web site traffic
efficiently.

Node JS documentation is available in http://nodejs.org/

http://howtonode.org/ is a community blog which has many writers and followers.

Categories
Android technews

Waze intergrated with Google Maps

Users of Google Maps for Mobile will now benefit from real time incident reports from Waze users. This means when Wazers report accidents, construction, road closures and more on Waze, the updates will also appear on the Google Maps app for Android and iOS in Argentina, Brazil, Chile, Colombia, Ecuador, France, Germany, Mexico, Panama, Peru, Switzerland, UK and the US.

The Waze community will also benefit from two new features. First, the Android and iOS versions of the app have been updated with Google Search. Wazers will now have access to even more search results when navigating. Google Search joins other search providers making it easy to find favorite businesses and any local address.

In addition, after a successful beta test, the Waze Map Editor now includes Google Street View and satellite imagery to build out the map and make it easier to correct map errors reported by the community. For more information, visit the Waze blog.

 

Source:  Google Maps Blog

Categories
Android technews

After Google, CyanogenMod unveils android device finder

Google’s recently release Android device tracker, allows to locate your android device, give a ring and erase the contents of your phone from a web interface. According to a some groups in case of a hack to the severs may leave almost all users of android device manager traceable.

CyanogenMod_Account
Image courtsey@ androidandme

CyanogenMod’s upcoming service is a bit different. Instead of sending the information through the server, your browser instead sends a public key. The phone authenticates the public key and sends an encrypted key back. The server cannot decrypt this key; only the browser can. This establishes a secure connection that cannot be decrypted on the server side, even if someone manages to get hold of that data. Using this connection, you can track or wipe your device.

The service is not out yet, but will be eventually. The source code has been fully published, and the CyanogenMod devs encourage people to check the security and safety of the service.

Categories
Linux

is there an Office communicator for Linux?

Most Linux users come across a question “is there an office Communicator for Linux?”

And the answer is “Yes, We have PIDGIN”

logo.pidginFor Linux users Pidgin (IM Client) provides access to the Lync functionality and therefore serves the purpose, even though we don’t have features like audio/video calls and sharing.

For making Pidgin to work with the latest Ubuntu Release of 13.04, follow the below steps

1. Install using:

$sudo apt-get install pidgin pidgin-sipe

2. Run Pidgin and click on Add button

3. Select “Office Communicator” from the protocol list. Fill out the fields as necessary:

Username: yourname@company.com

Login: yourname@company.com

Password: Your Lync password

4. Once authenticated with the server, we should be able to see out Contacts.

Categories
technews

How to find our Lost android phone with Android Device Manager

Have you ever lost your phone in between the couch cushions or forgot it in a restaurant? Or maybe searching for your phone before you rush out the door is part of your morning routine? Let the new Android Device Manager help you out! It’s one of a few simple features you can use to keep your device—and the data you store inside—safe and secure.

ADM

Read more @ officialandroid

Categories
technews

Why i’m not able to access some ports in firefox?

header-firefoxMany Firefox users would have come across errors like “This address uses a network port which is normally used for purposes other than Web browsing. Firefox has cancelled the request for your protection.

Here is the solution for the above issue.

  • open firefox
  • Type “about:config” in the address bar
  • Right click anywhere on the screen & click new > string
  • Enter preference name as: network.security.ports.banned.override
  • Enter string value as: 87(can be any port number which you want to access)

That’s it. You are done.

Categories
technews

Free Amazon Web Services (AWS)

awsAWS is providing 12 month free usage tier, according to AWS website, The Free Usage Tier can be used for anything you want to run in the cloud: launch new applications, test existing applications in the cloud, or simply gain hands-on experience with AWS.

Details on AWS Free Usage Tier (Per Month):

Elastic Compute Cloud (EC2)

  • 750 hours of Amazon EC2 Linux/UNIX or RHEL Micro Instance usage (613 MB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*
  • 750 hours of Amazon EC2 Microsoft Windows Server Micro Instance usage (613 MB of memory and 32-bit and 64-bit platform support) – enough hours to run continuously each month*
  • 750 hours of an Elastic Load Balancer plus 15 GB data processing*
  • 30 GB of Amazon Elastic Block Storage, plus 2 million I/Os and 1 GB of snapshot storage*

Simple Storage Service (S3)

  • 5 GB of Amazon S3 standard storage, 20,000 Get Requests, and 2,000 Put Requests*

DynamoDB

  • 100 MB of storage, 5 units of write capacity, and 10 units of read capacity for Amazon DynamoDB.**

Relational Database Service (RDS)

  • 750 hours of Amazon RDS Single-AZ Micro DB Instances, for running MySQL, Oracle BYOL or SQL Server (running SQL Server Express Edition) – enough hours to run a DB Instance continuously each month*
  • 20 GB of database storage
  • 10 million I/Os
  • 20 GB of backup storage for your automated database backups and any user-initiated DB Snapshots

Simple Workflow (SWF)

  • 1,000 Amazon SWF workflow executions can be initiated for free. A total of 10,000 activity tasks, signals, timers and markers, and 30,000 workflow-days can also be used for free**

Simple Queue Service (SQS) and Simple Notification Service (SNS)

Amazon Elastic Transcoder

  • 20 minutes of SD transcoding or 10 minutes of HD transcoding**

CloudWatch

Data Transfer

  • 15 GB of bandwidth out aggregated across all AWS services*

Data Pipeline

  • 3 low frequency preconditions running on AWS per month*
  • 5 low frequency activities running on AWS per month*

ElastiCache

  • 750 hours of Amazon ElastiCache – enough hours to run a Cache Node continuously each month.*

For more on terms and conditions check  here

Categories
Windows

How to Set MaxPageSize in Active Directory

Certain LDAP clients can only receive the first 1,000 results when they make an LDAP query to Active Directory, when more results exist that satisfy the query scope.  If there are 1,200 results to be returned, the client will receive the “Size Limit Exceeded” error when the paging control is not used.

Microsoft lists MaxPageSize as:

MaxPageSize – This value controls the maximum number of objects that are returned in a single search result, independent of how large each returned object is. To perform a search where the result might exceed this number of objects, the client must specify the paged search control. This is to group the returned results in groups that are no larger than the MaxPageSizevalue. To summarize, MaxPageSize controls the number of objects that are returned in a single search result.

Default value: 1,000

Here are the steps for showing and changing the default MaxPageSize in AD.

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:Documents and Settingsusername>ntdsutil
ntdsutil: ldap policies
ldap policy: connections
server connections: connect to server <yourservername>
Binding to <yourservername> ...
Connected to <yourservername> using credentials of locally logged on user.
server connections: q
ldap policy: show values

Policy                          Current(New)

MaxPoolThreads                  4
MaxDatagramRecv                 1024
MaxReceiveBuffer                10485760
InitRecvTimeout                 120
MaxConnections                  5000
MaxConnIdleTime                 900
MaxPageSize                     1000
MaxQueryDuration                120
MaxTempTableSize                10000
MaxResultSetSize                262144
MaxNotificationPerConn          5
MaxValRange                     0

ldap policy: set maxpagesize to 7000
ldap policy: commit changes
ldap policy: q
ntdsutil: q

 

No Restart is required for this settings change

maxpagesize

Categories
Windows

How to edit the password policy on Windows Server 2008 R2 or Windows 2012

It’s not possible directly to edit the password policies in AD setup both in Windows 2008 and 2012 environment. Before doing the changes have a look into the current settings, and backup if necessary. To check the currents settings, type ‘gpedit.msc’ in command prompt and then navigate to  ‘Computer SettingsWindows SettingsSecurity SettingsAccount PoliciesPassword Policy’ section.

localsecpolicyMost of the times the settings will be greyed out (disabled), if it’s greydout here how we can change it.

  1. Go to a command prompt
  2. Type ‘secedit /export /cfg c:local.cfg‘ and hit enter
  3. Using notepad, edit c:local.cfg (keep a backup if required)
  4. Look for the line which you want to edit. For eg. “PasswordComplexity = 1” and change it to “PasswordComplexity = 0”
  5. Save the file
  6. At a command prompt type ‘secedit /configure /db %windir%securitylocal.sdb /cfg c:local.cfg /areas SECURITYPOLICY

This will apply the new settings and refreshing the gpedit.msc should reflect the new settings
Set your new less complex password!