A blog containing handy links, How-to-do's of the technical stuff, both basic and advanced I learn at my job or otherwise.
Sunday, December 7, 2014
Solaris Tunable Parameters
Solaris Tunable Parameters Reference Manual
Tuning your TCP stack on Solaris
Sun service tip sheet for TCP/IP - This is a pretty useful compilation..
Tuning your TCP stack on Solaris
Sun service tip sheet for TCP/IP - This is a pretty useful compilation..
Memory Analyser Tools
10 Tips for using the Eclipse Memory Analyzer
Creating Tomcat heap dumps on Windows
Automated Heap Dump Analysis: Finding Memory Leaks with One Click
MAT Download Link
Debugging from dumps - developerWorks article
IBM SDK Heap Dump HttpSession footsprint analysis
GC overhead limit exceeded - Java heap analysis
Friday, December 5, 2014
Thread Dump Analysis
1) Thread Dump Analysis for IBM JVM - Part 1
I came across a good video which explains how to make sense of the java core text file.
Give it a watch or two and it will make sense.
Thread Dump Analysis for IBM JVM - Part 1
2) How to Analyze Java Thread Dumps - DZone article
Below is a pretty detailed article on analysing thread dumps - the HOW Tos..
3) Thread dump analysis - javaeesupportpatterns
Quite enjoy the coverage of this article. Take a look here.
4) Webcast replay: Analysis of hangs, deadlocks, and resource contention or monitor bottlenecks using IBM Thread and Monitor Dump Analyzer for Java Technology .
Find the link here.
5) Diagnose java resource starvation
6) Using a java dump
7)How to diagnose starvation issue using IBM Thread and Monitor Dump Analyzer for Java Technology
Take a look at the ppt here.
I came across a good video which explains how to make sense of the java core text file.
Give it a watch or two and it will make sense.
Thread Dump Analysis for IBM JVM - Part 1
2) How to Analyze Java Thread Dumps - DZone article
Below is a pretty detailed article on analysing thread dumps - the HOW Tos..
3) Thread dump analysis - javaeesupportpatterns
Quite enjoy the coverage of this article. Take a look here.
4) Webcast replay: Analysis of hangs, deadlocks, and resource contention or monitor bottlenecks using IBM Thread and Monitor Dump Analyzer for Java Technology .
Find the link here.
5) Diagnose java resource starvation
6) Using a java dump
7)How to diagnose starvation issue using IBM Thread and Monitor Dump Analyzer for Java Technology
Take a look at the ppt here.
Friday, November 28, 2014
Release guides download link - IBM Unica
Use the link below to download the release guides for EMM Marketing platform.
Release guides for EMM marketing platform
Release guides for EMM Campaign
IBM Campaign Fix Pack 9.1.0.2
Fix Pack Links
8.6.0-UC-FP05-ReadMe.txt
8.6.0-UC-FP04_
8.6.0-UC-FP06-ReadMe
8.6.0-UC-FP07-ReadMe.txt
8.6.0-UC-FP08-ReadMe.txt
Fix Pack downloads
Release guides for EMM marketing platform
Release guides for EMM Campaign
IBM Campaign Fix Pack 9.1.0.2
Fix Pack Links
8.6.0-UC-FP05-ReadMe.txt
8.6.0-UC-FP04_
8.6.0-UC-FP06-ReadMe
8.6.0-UC-FP07-ReadMe.txt
8.6.0-UC-FP08-ReadMe.txt
Fix Pack downloads
Wednesday, November 26, 2014
Understanding Offer Import from IBM Campaign into IBM MarketingOperations
Follow the link below to understand the motivation and technical details about this feature.
Dev Works - Offer Import from IBM Campaign into IBM Mktg Operations
Dev Works - Offer Import from IBM Campaign into IBM Mktg Operations
Thursday, October 30, 2014
Organizing Evernote for maximum efficiency!
Follow the link below to understand how we can organize Evernote for maximum efficiency!
Organising Evernote for maximum efficiency!
Organising Evernote for maximum efficiency!
Interesting java projects to contribute to and learn!
Follow the link (from Joe's blog) below for the some interesting java projects to contribute to and learn!
Interesting java proects
Wednesday, October 8, 2014
Getting started with Android Wear
A good article on dzone
http://blogs.shephertz.com/2014/07/24/android-wear-getting-started/
And some really good youtube videos!
https://www.youtube.com/playlist?list=PLWz5rJ2EKKc-kIrPiq098QH9dOle-fLef
http://blogs.shephertz.com/2014/07/24/android-wear-getting-started/
And some really good youtube videos!
https://www.youtube.com/playlist?list=PLWz5rJ2EKKc-kIrPiq098QH9dOle-fLef
Using the Eclipse Copyright Tool
A useful link explaining the addition and usage of the copyright plugin for Eclipse IDE. Used commonly in release engineering processes.
https://wiki.eclipse.org/Development_Resources/How_to_Use_Eclipse_Copyright_Tool
https://wiki.eclipse.org/Development_Resources/How_to_Use_Eclipse_Copyright_Tool
IBM Campaign Documentation
IBM Campaign documentation available on the web here :
http://www-01.ibm.com/support/docview.wss?uid=swg27024998
IBM Campaign 9.1 Admin guide
http://www-01.ibm.com/support/docview.wss?uid=swg27039987&aid=1
http://www-01.ibm.com/support/docview.wss?uid=swg27024998
IBM Campaign 9.1 Admin guide
http://www-01.ibm.com/support/docview.wss?uid=swg27039987&aid=1
IBM Watson Solutions - Building Cognitive apps
The official Youtube page
https://www.youtube.com/user/IBMWatsonSolutions
IBM Watson Analytics
http://www.pcworld.com/article/2684532/ibm-watson-analytics-preps-the-data-so-you-dont-have-to.html
https://www.youtube.com/user/IBMWatsonSolutions
IBM Watson Analytics
http://www.pcworld.com/article/2684532/ibm-watson-analytics-preps-the-data-so-you-dont-have-to.html
Tuesday, October 7, 2014
SQL0437W Performance for this complex query may be sub-optimal
Follow the links below to find out about what causes it and how it can be resolved.
http://www-01.ibm.com/support/docview.wss?uid=swg21354421
http://www-01.ibm.com/support/docview.wss?uid=swg1IY93789
http://www-01.ibm.com/support/docview.wss?uid=swg21354421
http://www-01.ibm.com/support/docview.wss?uid=swg1IY93789
Thursday, September 11, 2014
Fun with Cygwin
1 ) How to navigate to a directory in C:\ with cygwin?
cd /cygdrive/c
2) Exporting Variables
eg : >export REPORTS=/opt/qa/opt91x/
>echo $REPORTS
>cd $REPORTS
Starting Campaign on different OSes
A quick and handy reference to start Campaign on different Operating systems.
Unix systems.
On AIX, use bash. ksh does not work well for some reason.
Unix and Weblogic :
Starting WebLogic :
root@sol06:/data/Webserver/Weblogic12c/user_projects/domains/optimize_911x/bin# . setDomainEnv.sh
root@sol06:/data/Webserver/Weblogic12c/user_projects/domains/optimize_911x# ./startWebLogic.sh &
Starting Campaign
root@sol06:/opt/qa/Unica/opt91x/Campaign/bin# . setenv.sh
root@sol06:/opt/qa/Unica/opt91x/Campaign/bin# ./rc.unica_ac start &
Campaign on AIX and WAS
Websphere :
1) Stopping a server
</opt/IBM/WebSphere/AppServer/profiles/9103/bin>
bash-3.2# ./stopServer.sh server1
2)Starting a server
bash-3.2# ./startServer.sh server1
Starting the Campaign server on AIX
bash-3.2# . setenv.sh
bash-3.2# ./rc.unica_ac start
Unix systems.
On AIX, use bash. ksh does not work well for some reason.
Unix and Weblogic :
Starting WebLogic :
root@sol06:/data/Webserver/Weblogic12c/user_projects/domains/optimize_911x/bin# . setDomainEnv.sh
root@sol06:/data/Webserver/Weblogic12c/user_projects/domains/optimize_911x# ./startWebLogic.sh &
Starting Campaign
root@sol06:/opt/qa/Unica/opt91x/Campaign/bin# . setenv.sh
root@sol06:/opt/qa/Unica/opt91x/Campaign/bin# ./rc.unica_ac start &
Campaign on AIX and WAS
Websphere :
1) Stopping a server
</opt/IBM/WebSphere/AppServer/profiles/9103/bin>
bash-3.2# ./stopServer.sh server1
2)Starting a server
bash-3.2# ./startServer.sh server1
Starting the Campaign server on AIX
bash-3.2# . setenv.sh
bash-3.2# ./rc.unica_ac start
Tuesday, September 9, 2014
Trouble-shooting connecting to the SQL Server
Thursday, September 4, 2014
Invest in PPF Online through NetBanking
Watch this detailed Youtube video which shows you how to invest in PPF online through Net Banking.
https://www.youtube.com/watch?v=VHaBLQgM_oM
PPF from Post Office
http://www.indiapost.gov.in/ppf.aspx
https://www.youtube.com/watch?v=VHaBLQgM_oM
PPF from Post Office
http://www.indiapost.gov.in/ppf.aspx
Tuesday, September 2, 2014
Morris.js Charting Library
A "very" simple javascript library to get line charts, bar charts, donut charts and area charts.
http://morrisjs.github.io/morris.js/
Interactive Donut Chart
http://jsbin.com/ukaxod/144/embed?javascript,live
http://morrisjs.github.io/morris.js/
Interactive Donut Chart
http://jsbin.com/ukaxod/144/embed?javascript,live
Wednesday, August 27, 2014
Networking commands - flushdns
Flushdns - Fire this command when you want to clear the DNS cache.
At times, when a machine is not reachable/pingable, fire the following command.
C:\Users\Administrator>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
At times, when a machine is not reachable/pingable, fire the following command.
C:\Users\Administrator>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
Monday, August 25, 2014
Quick and easy introduction to Vi
Read this tutorial to get a useful, quick and a practical introduction to Vi!
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Editors/ViIntro.html
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Editors/ViIntro.html
Sunday, August 24, 2014
Destination Host Unreachable Error
Two things you could do :
1) On a windows machine go to C:\Windows\System32\drivers\etc\notepad hosts
(You would have to run this with admin rights )
Make sure you remove any prior mapping of your host file.
Try pinging the machine again.
2) On a command prompt, type
1) On a windows machine go to C:\Windows\System32\drivers\etc\notepad hosts
(You would have to run this with admin rights )
Make sure you remove any prior mapping of your host file.
Try pinging the machine again.
2) On a command prompt, type
arp -aFor a list of the currently available/reachable Ip's. See if the IP you are trying to ping is listed there.For additional information, follow the stack overflow link here.http://superuser.com/questions/453933/pinging-a-machine-on-my-local-network-gets-an-unreachable-response-from-my-own Thursday, August 21, 2014
Boot-strappe(d)! - Learning Bootstrap
1. The tutorial
http://www.tutorialspoint.com/bootstrap/bootstrap_grid_system.htm
2.1 A good explanation on Bootstrap-3 Grid.
The tutorial also covers offset, push and pull
http://www.zeninvader.com/css/bootstrap-3-grid-system-explained
2.2 View a live page with examples here.
http://www.zeninvader.com//downloads/examples/bootstrap1/index.html#ex2
http://www.tutorialspoint.com/bootstrap/bootstrap_grid_system.htm
2.1 A good explanation on Bootstrap-3 Grid.
The tutorial also covers offset, push and pull
http://www.zeninvader.com/css/bootstrap-3-grid-system-explained
2.2 View a live page with examples here.
http://www.zeninvader.com//downloads/examples/bootstrap1/index.html#ex2
Wednesday, August 20, 2014
Font-Awesome! Popular icons on the web available as fonts..
The link below is a good tutorial on the available icons in Font-Awesome!
http://www.caritorsolutions.com/blog/162-how-to-use-font-awesome-icons
Font-awesome Data Attributes
http://codepen.io/kishorwalke/pen/iEevw
http://www.caritorsolutions.com/blog/162-how-to-use-font-awesome-icons
Font-awesome Data Attributes
http://codepen.io/kishorwalke/pen/iEevw
Tuesday, August 19, 2014
Importing a CSV file into database with SQL Server Mgmt Studio
Follow the link below to know how!
https://support.discountasp.net/KB/a1179/importing-csv-file-into-your-database-with-sql-server.aspx
And refer to the screen shots here.
https://support.discountasp.net/KB/a1179/importing-csv-file-into-your-database-with-sql-server.aspx
And refer to the screen shots here.
Hibernat-ing!
Eclipse Install and Setup for Hibernate
http://kaanmutlu.wordpress.com/2011/07/30/hibernate-installationsetup-on-eclipse-ide/
Follow the link below for a sample Hibernate application using JPA (annotations) and XML.
http://kaanmutlu.wordpress.com/2011/07/30/sample-hibernate-application/
http://kaanmutlu.wordpress.com/2011/07/30/hibernate-installationsetup-on-eclipse-ide/
Follow the link below for a sample Hibernate application using JPA (annotations) and XML.
http://kaanmutlu.wordpress.com/2011/07/30/sample-hibernate-application/
Awesome JDBC Usage with Design Patterns
1) Follow the link below for a well written example on JDBC Singleton Connectivity.
http://theopentutorials.com/tutorials/java/jdbc/jdbc-examples-introduction/#Singleton_design_pattern
2) A simple JDBC Application
http://www.tutorialspoint.com/jdbc/jdbc-sample-code.htm
http://theopentutorials.com/tutorials/java/jdbc/jdbc-examples-introduction/#Singleton_design_pattern
2) A simple JDBC Application
http://www.tutorialspoint.com/jdbc/jdbc-sample-code.htm
Build an Android App on BlueMix
Follow the link below to learn how to develop and deploy an android app on BlueMix!
https://www.ng.bluemix.net/docs/BuildingMobile.jsp
https://www.ng.bluemix.net/docs/BuildingMobile.jsp
Sunday, August 17, 2014
Geo-Json external data
Getting geo-json data for India
https://groups.google.com/forum/#!topic/datameet/dZ96g7ngWAg
India_adm zip file download
http://www.filefactory.com/file/61su34uudcjz/n/IND_adm_zip
Geo-Names Dump
http://download.geonames.org/export/dump/
http://stackoverflow.com/questions/20322613/where-can-i-get-the-geojson-file-for-india-and-not-separate-files-for-each-stat
https://groups.google.com/forum/#!topic/datameet/dZ96g7ngWAg
India_adm zip file download
http://www.filefactory.com/file/61su34uudcjz/n/IND_adm_zip
Geo-Names Dump
http://download.geonames.org/export/dump/
http://stackoverflow.com/questions/20322613/where-can-i-get-the-geojson-file-for-india-and-not-separate-files-for-each-stat
Loading external data into d3
Quick video that explains how to load external data eg: json into D3
https://www.youtube.com/watch?v=2S1AbEWX85oDifference between Datum and Data in D3
Follow the link below for a Stack Overflow Discussion
http://stackoverflow.com/questions/13728402/what-is-the-difference-d3-datum-vs-data
http://stackoverflow.com/questions/13728402/what-is-the-difference-d3-datum-vs-data
Add an image to D3
Follow the discussion below for an idea about how one can add images to D3.
http://stackoverflow.com/questions/19202450/adding-an-image-within-a-circle-object-in-d3-javascript
https://groups.google.com/forum/#!topic/d3-js/fL8_1BLrCyo
http://stackoverflow.com/questions/19202450/adding-an-image-within-a-circle-object-in-d3-javascript/19204833#19204833
Adding image to D3 - A good tutorial
http://apike.ca/prog_svg_images.html
http://stackoverflow.com/questions/19202450/adding-an-image-within-a-circle-object-in-d3-javascript
https://groups.google.com/forum/#!topic/d3-js/fL8_1BLrCyo
http://stackoverflow.com/questions/19202450/adding-an-image-within-a-circle-object-in-d3-javascript/19204833#19204833
Adding image to D3 - A good tutorial
http://apike.ca/prog_svg_images.html
D3 Json Download Links
Here's the link to download the json's in the d3 examples.
http://static.cybercommons.org/js/d3/examples/data/
http://static.cybercommons.org/js/d3/examples/data/
D3 visualization for CodeFlower
Here's the link to the D3 Code Flower Visualization
http://redotheweb.com/CodeFlower/
http://redotheweb.com/CodeFlower/
MAMP Server
Here's the link to download the MAMP Server.
http://www.mamp.info/en/downloads/
http://www.mamp.info/en/downloads/
SVG Primer
A detailed document on SVG standards for today's brwsers from w3c.
http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html
http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html
Access a DB from a Java Application
Follow the steps below to see how to access a DB from a Java web application
https://www.ng.bluemix.net/docs/#services/SQLDB/index.html#sqldb_002
https://www.ng.bluemix.net/docs/#services/SQLDB/index.html#sqldb_002
Creating apps with Java Web Starter
Follow the tutorial below to find how to create an app with Java Web starter
https://www.ng.bluemix.net/docs/#starters/javawebstarter/index.html#javawebstarter
https://www.ng.bluemix.net/docs/#starters/javawebstarter/index.html#javawebstarter
Installing the cf Command Line Interface
Follow the link below for easy steps on each OS.
http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html
http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html
Deploying on BlueMix using Eclipse
1) Download and Install Eclipse Kepler
2) Eclipse Market Place -> Download Blue Mix plugins from here
http://marketplace.eclipse.org/content/ibm-codename-bluemix-eclipse-kepler#.U7ZcfBDCe6M
Choose the following options :
3) Video explaining how to deploy to BlueMix using Eclipse
https://www.youtube.com/watch?v=Ro0CSPeoFoY
4) Setting up Eclipse, Git and RTC Desktop to access DevOps services
https://hub.jazz.net/tutorials/clients
5) Using Eclipse to deploy an application to BlueMix
https://www.ibm.com/developerworks/community/blogs/msardana/entry/exploring_bluemix_exploring_bluemix_using_eclipse_to_deploy_your_application_to_bluemix?lang=en
6)Developing IBM Bluemix applications in Java with Eclipse and DevOps Services
https://hub.jazz.net/tutorials/jazzrtc
2) Eclipse Market Place -> Download Blue Mix plugins from here
http://marketplace.eclipse.org/content/ibm-codename-bluemix-eclipse-kepler#.U7ZcfBDCe6M
Choose the following options :
3) Video explaining how to deploy to BlueMix using Eclipse
https://www.youtube.com/watch?v=Ro0CSPeoFoY
4) Setting up Eclipse, Git and RTC Desktop to access DevOps services
https://hub.jazz.net/tutorials/clients
5) Using Eclipse to deploy an application to BlueMix
https://www.ibm.com/developerworks/community/blogs/msardana/entry/exploring_bluemix_exploring_bluemix_using_eclipse_to_deploy_your_application_to_bluemix?lang=en
6)Developing IBM Bluemix applications in Java with Eclipse and DevOps Services
https://hub.jazz.net/tutorials/jazzrtc
D3Js maps!
An example covering a demo json and mouse over on each of the states.
http://techslides.com/responsive-d3-map-with-zoom-and-pan-limits/http://techslides.com/responsive-d3-map-with-zoom-and-pan-limits/
Lets make a map with Mike
http://bost.ocks.org/mike/map/
A good video Tutorial on the same
http://www.youtube.com/watch?v=lJgEx_yb4u0
Adding India Map in D3
http://bl.ocks.org/JohnCoogan/1531818#zcolorbrewer.css
http://stackoverflow.com/questions/18425440/displaying-map-using-d3-js-and-geojson
A simple D3Js map explained.
http://www.d3noob.org/2013/03/a-simple-d3js-map-explained.html
D3 Map of India on Mac
http://www.knowstack.com/d3-map-of-india/
http://techslides.com/responsive-d3-map-with-zoom-and-pan-limits/http://techslides.com/responsive-d3-map-with-zoom-and-pan-limits/
Lets make a map with Mike
http://bost.ocks.org/mike/map/
A good video Tutorial on the same
http://www.youtube.com/watch?v=lJgEx_yb4u0
Adding India Map in D3
http://bl.ocks.org/JohnCoogan/1531818#zcolorbrewer.css
http://stackoverflow.com/questions/18425440/displaying-map-using-d3-js-and-geojson
A simple D3Js map explained.
http://www.d3noob.org/2013/03/a-simple-d3js-map-explained.html
D3 Map of India on Mac
http://www.knowstack.com/d3-map-of-india/
Friday, August 15, 2014
D3 Quick Learning Links
Detailed d3.js tutorial.
http://alignedleft.com/tutorials/d3/adding-elements
Download the latest version of d3.js here
https://github.com/mbostock/d3/releases
D3 API Reference
https://github.com/mbostock/d3/wiki/API-Reference
Wednesday, August 13, 2014
BlueMix Trouble Shooting Links
1. General BlueMix TroubleShooting
https://cloudoe.support.ibmcloud.com/link/portal/5377/31036/Article/19069/General-Bluemix-issues-troubleshooting#visited
2. SQL DB instance docs
http://www.ng.bluemix.net/docs/#services/SQLDB/index.html#sqldb_006
https://cloudoe.support.ibmcloud.com/link/portal/5377/31036/Article/19069/General-Bluemix-issues-troubleshooting#visited
2. SQL DB instance docs
http://www.ng.bluemix.net/docs/#services/SQLDB/index.html#sqldb_006
Orient DB
Orient DB Documentation Source
https://github.com/orientechnologies/orientdb/wiki
OreintDB Quick Start
https://github.com/orientechnologies/orientdb/wiki/Quick-Start
OrientDB Java Tutorial Introduction
https://github.com/orientechnologies/orientdb/wiki/Java-Tutorial:-Introduction
https://github.com/orientechnologies/orientdb/wiki
OreintDB Quick Start
https://github.com/orientechnologies/orientdb/wiki/Quick-Start
OrientDB Java Tutorial Introduction
https://github.com/orientechnologies/orientdb/wiki/Java-Tutorial:-Introduction
D3JS - Data Driven!
The complete gallery
https://github.com/mbostock/d3/wiki/Gallery
http://bl.ocks.org/mbostock
D3-Dateline - demodata.json
https://github.com/pbinkley/D3-dateline/blob/master/demodata.json
Use de-tip to add a tooltip to a bar chart
http://bl.ocks.org/Caged/6476579
D3 - Source code
A Javascript visualization library for HTML and SVG
https://github.com/mbostock/d3
https://github.com/mbostock/d3/wiki/Gallery
http://bl.ocks.org/mbostock
D3-Dateline - demodata.json
https://github.com/pbinkley/D3-dateline/blob/master/demodata.json
Use de-tip to add a tooltip to a bar chart
http://bl.ocks.org/Caged/6476579
D3 - Source code
A Javascript visualization library for HTML and SVG
https://github.com/mbostock/d3
Execute BASH Online
Online Compiler to execute Bash
http://www.compileonline.com/execute_bash_online.php
http://www.compileonline.com/execute_bash_online.php
Tuesday, August 12, 2014
Android Development
Client-server development
1. Simple Client Server communication in android
http://osamashabrez.com/simple-client-server-communication-in-android/
2. Client-server communication in android via json
http://osamashabrez.com/client-server-communication-android-json/
1. Simple Client Server communication in android
http://osamashabrez.com/simple-client-server-communication-in-android/
2. Client-server communication in android via json
http://osamashabrez.com/client-server-communication-android-json/
Monday, August 11, 2014
vi
How to exit from vi ?
http://www.linuxquestions.org/questions/linux-general-1/how-to-exit-vi-19794/
http://www.linuxquestions.org/questions/linux-general-1/how-to-exit-vi-19794/
DBX Commands
The following snippets are as per the Oracle docs.
http://docs.oracle.com/cd/E19422-01/819-3683/command_ref.html#52675
1. source - The source command executes commands from a given file. It is valid only in native mode.
2. where - The where command prints the call stack.
http://docs.oracle.com/cd/E19422-01/819-3683/command_ref.html#52675
1. source - The source command executes commands from a given file. It is valid only in native mode.
Syntax
2. where - The where command prints the call stack.
Native Mode Syntax
where
|
|
Any of the above forms may be followed by a thread or LWP ID to obtain the traceback for the specified entity.
Java Mode Syntax
3. cont Command
The cont
command causes the process to continue execution. It has identical
syntax and identical functionality in native mode and Java mode.
Syntax
4. detach Command
Native Mode Syntax
|
Detach dbx from the target and leave the process in a stopped state. This option allows temporary application of other /proc-based debugging tools that might be blocked due to exclusive access. For an example, see Detaching dbx From a Process.
|
DBX Debugger
1. DBX How-to Guide
http://www-rohan.sdsu.edu/doc/dbx.html
2. A complete list of the dbx commands.
http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm
3. Debugging a program with dbx - the complete guide
http://docs.oracle.com/cd/E19422-01/819-3683/index.html
4. Command Reference
http://docs.oracle.com/cd/E19422-01/819-3683/command_ref.html#52675
http://docs.oracle.com/cd/E19205-01/819-5257/blawp/index.html
5. DBX Debugger
http://en.wikipedia.org/wiki/Dbx_%28debugger%29
6. DBX Commands
http://dailytechlearning.blogspot.in/2014/08/dbx-commands.html
http://www-rohan.sdsu.edu/doc/dbx.html
2. A complete list of the dbx commands.
http://web.utk.edu/~prdaves/Computerhelp/dbx_commands.htm
3. Debugging a program with dbx - the complete guide
http://docs.oracle.com/cd/E19422-01/819-3683/index.html
4. Command Reference
http://docs.oracle.com/cd/E19422-01/819-3683/command_ref.html#52675
http://docs.oracle.com/cd/E19205-01/819-5257/blawp/index.html
5. DBX Debugger
http://en.wikipedia.org/wiki/Dbx_%28debugger%29
6. DBX Commands
http://dailytechlearning.blogspot.in/2014/08/dbx-commands.html
Watchdog Utilities in Unix
1. Supervisor
http://supervisord.org/index.html
2. Why does SIGUSR1 cause a process to be terminated ?
http://unix.stackexchange.com/questions/38589/why-does-sigusr1-cause-process-to-be-terminated
http://supervisord.org/index.html
2. Why does SIGUSR1 cause a process to be terminated ?
http://unix.stackexchange.com/questions/38589/why-does-sigusr1-cause-process-to-be-terminated
Loops and others in scripting
1. Returning a value from a function in shell script
http://stackoverflow.com/questions/8742783/returning-value-from-called-function-in-shell-script
2. If condition variables.
21. Test conditions in an If loop provided by the shell.
2.2 If-else Tutorial
http://www.dreamsyssoft.com/unix-shell-scripting/ifelse-tutorial.php
http://stackoverflow.com/questions/8742783/returning-value-from-called-function-in-shell-script
2. If condition variables.
21. Test conditions in an If loop provided by the shell.
The tests below are test conditions provided by the shell: -b file = True if the file exists and is block special file. -c file = True if the file exists and is character special file. -d file = True if the file exists and is a directory. -e file = True if the file exists. -f file = True if the file exists and is a regular file -g file = True if the file exists and the set-group-id bit is set. -k file = True if the files' "sticky" bit is set. -L file = True if the file exists and is a symbolic link. -p file = True if the file exists and is a named pipe. -r file = True if the file exists and is readable. -s file = True if the file exists and its size is greater than zero. -s file = True if the file exists and is a socket. -t fd = True if the file descriptor is opened on a terminal. -u file = True if the file exists and its set-user-id bit is set. -w file = True if the file exists and is writable. -x file = True if the file exists and is executable. -O file = True if the file exists and is owned by the effective user id. -G file = True if the file exists and is owned by the effective group id. file1 –nt file2 = True if file1 is newer, by modification date, than file2. file1 ot file2 = True if file1 is older than file2. file1 ef file2 = True if file1 and file2 have the same device and inode numbers. -z string = True if the length of the string is 0. -n string = True if the length of the string is non-zero. string1 = string2 = True if the strings are equal. string1 != string2 = True if the strings are not equal. !expr = True if the expr evaluates to false. expr1 –a expr2 = True if both expr1 and expr2 are true. expr1 –o expr2 = True is either expr1 or expr2 is true.http://www.unix.com/shell-programming-and-scripting/81862-how-check-if-file-exists-using-if-statement.html
2.2 If-else Tutorial
http://www.dreamsyssoft.com/unix-shell-scripting/ifelse-tutorial.php
Signals and Traps
Termination Signals :
http://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html
1. Sighup
http://stackoverflow.com/questions/13337701/what-can-cause-sighup-to-be-generated
2. SIGABRT
http://en.wikipedia.org/wiki/Unix_signal
3. C and CPP Unix Signal Programming Tutorial
http://www.tutorialized.com/view/tutorial/Unix-Signals-Programming/42401
4. Signals and Traps
Excellent tutorial explaining it all.
http://www.tutorialspoint.com/unix/unix-signals-traps.htm
http://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html
1. Sighup
http://stackoverflow.com/questions/13337701/what-can-cause-sighup-to-be-generated
2. SIGABRT
http://en.wikipedia.org/wiki/Unix_signal
3. C and CPP Unix Signal Programming Tutorial
http://www.tutorialized.com/view/tutorial/Unix-Signals-Programming/42401
4. Signals and Traps
Excellent tutorial explaining it all.
http://www.tutorialspoint.com/unix/unix-signals-traps.htm
Sunday, August 10, 2014
AWK
1. The AWK Tutorial
http://www.grymoire.com/Unix/Awk.html
2. FS : The input field separator variable
Example Usage :
The following script is used to find the major and the minor version of the release kernel.
Be sure to take a look at the example in the tutorial here. Crisp explanation.
http://www.grymoire.com/Unix/Awk.html#uh-17
http://www.grymoire.com/Unix/Awk.html
2. FS : The input field separator variable
Example Usage :
The following script is used to find the major and the minor version of the release kernel.
-bash-4.1$ uname -r
1.7.17(0.262/5/3)
-bash-4.1$ uname -r | awk ' BEGIN { FS="[ , .]"} {print $1 }'3. NF - Number of Fields
1
-bash-4.1$ uname -r | awk ' BEGIN { FS="[ , .]"} {print $2 }'
7
-bash-4.1$ uname -r | awk ' BEGIN { FS="[ , .]"} {print $3 }'
17(0
-bash-4.1$ uname -r | awk ' BEGIN { FS="[ , .]"} {print $4 }'
262/5/3)
Be sure to take a look at the example in the tutorial here. Crisp explanation.
http://www.grymoire.com/Unix/Awk.html#uh-17
Unix special variables
Unix Special Variables -
http://www.tutorialspoint.com/unix/unix-special-variables.htm
A complete list with examples :
http://teaching.idallen.com/dat2330/04f/notes/shell_variables.txt
http://www.tutorialspoint.com/unix/unix-special-variables.htm
A complete list with examples :
http://teaching.idallen.com/dat2330/04f/notes/shell_variables.txt
NSD - Notes System Diagnostic
NSD - Notes System Diagnostic
http://www-01.ibm.com/support/docview.wss?uid=swg21100917
Probably the best doc on NSD so far!
NSD - A practical guide overview
http://www-01.ibm.com/support/docview.wss?uid=swg21100917
Probably the best doc on NSD so far!
NSD - A practical guide overview
Saturday, August 9, 2014
Shell Commands
1. Aliases - Update these values in .bash_profile file
Syntax : type command
Example :
3. bashrc - appropriate place to store functions and aliases. To read about syntax etc see here.
4. typeset
http://www.unix.com/unix-for-dummies-questions-and-answers/32178-typeset-ksh.html
5. tr - Used to replace/remove certain characters
http://en.wikipedia.org/wiki/Tr_%28Unix%29
6. uname - returns certain system information
http://en.wikipedia.org/wiki/Uname
(Taken from man )
SYNOPSIS
uname [OPTION]...
DESCRIPTION
Print certain system information. With no OPTION, same as -s.
-a, --all
print all information, in the following order, except omit -p
and -i if unknown:
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type or "unknown"
-i, --hardware-platform
print the hardware platform or "unknown"
-o, --operating-system
print the operating system
--help display this help and exit
--version
output version information and exit
Example demonstrating usage of tr and uname :
http://www.cyberciti.biz/faq/linux-unix-shell-export-command/
8. which - Used to locate the executable for a command.
http://www.computerhope.com/unix/uwhich.htm
Example usage :
http://www.computerhope.com/unix/uwhich.htm
Example usage :
http://www.computerhope.com/unix/uenv.htm
11. id - Print real and effective ID's and GUIDs
http://linux.about.com/library/cmd/blcmdl1_id.htm
Example usage :
http://www.grymoire.com/unix/sed.html
13. pmap - Memory utilization of a process
http://www.tutorialspoint.com/unix_commands/pmap.htm
http://www.cyberciti.biz/tips/howto-find-memory-used-by-program.html
14. svmon - AIX specific parameter that captures and analyses a snapshot of virtual memory.
http://ps-2.kev009.com/tl/techlib/manuals/adoclib/cmds/aixcmds5/svmon.htm
View an output screenshot here :
http://publib.boulder.ibm.com/infocenter/realtime/v2r0/index.jsp?topic=%2Fcom.ibm.softrt.aix32.doc%2Fdiag%2Fproblem_determination%2Faix_cmd_svmon.html
15. iconv - An API used to convert between different standard encodings
http://en.wikipedia.org/wiki/Iconv
16. who - Shows the currently logged in user
(Taken from man)
SYNOPSIS
who [OPTION]... [ FILE | ARG1 ARG2 ]
DESCRIPTION
Print information about users who are currently logged in.
-a, --all
same as -b -d --login -p -r -t -T -u
-b, --boot
time of last system boot
-d, --dead
print dead processes
-H, --heading
print line of column headings
17. $$ - The process id of the current shell. Used when creating unique temporary file names.
Example usage :
-bash-4.1$ ps -f
UID PID PPID TTY STIME COMMAND
Administ 3768 3916 pty0 Aug 10 /usr/bin/bash
Administ 12776 3768 pty0 07:16:48 /usr/bin/ps
Administ 3916 1 ? Aug 10 /usr/bin/mintty
19. pid - Process id
20. ppid - Parent process id
21. pstree - A program showing the relationship of all processes in a tree like manner.
22. htop - Simpler process management and a better UI.
http://delightlylinux.wordpress.com/2012/06/25/what-is-pid-and-ppid/
23. Use of single quote (') - To treat it as a command.
Example usage :
24. Find the launching command for a particular PID.
-bash-4.1$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
7064 3768 7064 8664 pty0 500 07:19:06 /usr/bin/ps
3768 3916 3768 1492 pty0 500 08:14:12 /usr/bin/bash
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
-bash-4.1$ ps -p 3916
PID PPID PGID WINPID TTY UID STIME COMMAND
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
(Strips off the header)
-bash-4.1$ ps -p 3916 | grep -i -v COMM
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
25. lslpp - Lists installed software products
Watch a detailed video here explaining details and usage.
https://www.youtube.com/watch?v=-9oJkRVFvTM
Read here for the text corresponding to the above video.
http://ps-2.kev009.com/tl/techlib/manuals/adoclib/cmds/aixcmds3/lslpp.htm#E088D37887joyc
A complete description of the commands.
http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds3/lslpp.htm?lang=en
26. /etc/issue - Used to customize your Unix Logon
http://www.linuxfromscratch.org/blfs/view/5.1/postlfs/logon.html
27. egrep - Extended Global regular Expressions
Make sure you go through the examples listed here to get a good feel about egrep.
Also it can be used using grep -E (see man)
http://www.cs.columbia.edu/~tal/3261/fall07/handout/egrep_mini-tutorial.htm
28. GDB/pstack and gstack
gdb - GNU Debugger
http://www.gnu.org/software/gdb/
pstack/gstack - Linux executable
It prints a stack trace of running processes
http://www.linuxcommand.org/man_pages/pstack1.html
http://linux.die.net/man/1/gstack
29. lsof - List open files
http://en.wikipedia.org/wiki/Lsof
30. declare - declare a variable as array, read-only, number only etc
http://www.linuxjournal.com/content/bash-declare-statement
31. kill - To kill a process
http://www.songsinhispresence.com/cdinfo.html#taken%20link
32. shift - This command takes one argument, a number. The positional parameters are shifted to the left by this number.
Read the link below for a good example on the same.
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_07.html
33. sleep - Sleep is used to delay for a particular amount of time.
http://www.computerhope.com/unix/usleep.htm
34. pgrep - It searches for all the named processes that can be specified as extended regular expression patterns, and—by default—returns their process ID. Alternatives include pidof (finds process ID given a program name) and ps.
http://en.wikipedia.org/wiki/Pgrep
http://linux.die.net/man/1/pgrep
35. cut - Print selected parts of lines from each FILE to standard output.
http://www.thegeekstuff.com/2013/06/cut-command-examples/
http://www.folkstalk.com/2012/02/cut-command-in-unix-linux-examples.html
36. grep - searches the named input FILEs (or standard input if no files are
named, or if a single hyphen-minus (-) is given as file name) for lines
containing a match to the given PATTERN. By default, grep prints the
matching lines.
-e PATTERN, --regexp=PATTERN
Use PATTERN as the pattern. This can be used to specify
multiple search patterns, or to protect a pattern beginning with
a hyphen (-). (-e is specified by POSIX.)
-f FILE, --file=FILE
Obtain patterns from FILE, one per line. The empty file
contains zero patterns, and therefore matches nothing. (-f is
specified by POSIX.)
-i, --ignore-case
Ignore case distinctions in both the PATTERN and the input
files. (-i is specified by POSIX.)
-l, --files-with-matches
Suppress normal output; instead print the name of each input
file from which output would normally have been printed. The
scanning will stop on the first match. (-l is specified by
POSIX.)
37. set - used to define and determine values of the system environment.
-m :
Background jobs will run in a separate process group and a line will print upon completion. The exit status of background jobs is reported in a completion message. On systems with job control, this flag is turned on automatically for interactive shells.
http://www.computerhope.com/unix/uset.htm
http://linux.about.com/library/cmd/blcmdln_set.htm
38. stty - Change and print terminal line settings
http://unixhelp.ed.ac.uk/CGI/man-cgi?stty
39. compress - compacts the files so that it will become smaller.
http://www.computerhope.com/unix/ucompres.htm
40. tput - Utilizes the terminal capabilities
http://en.wikipedia.org/wiki/Tput
Example : alias l='ls -l'
.bash_profile file is a shell script that is executed each time you log in
2. type - Used to determine whether the command is an executable, an alias or a function.
Syntax : type command
Example :
Input :
function today {
echo "print data"
}
>type today
echo "print data"
}
>type today
output
today is a function
today ()
{
echo "print data"
}
3. bashrc - appropriate place to store functions and aliases. To read about syntax etc see here.
4. typeset
http://www.unix.com/unix-for-dummies-questions-and-answers/32178-typeset-ksh.html
5. tr - Used to replace/remove certain characters
http://en.wikipedia.org/wiki/Tr_%28Unix%29
6. uname - returns certain system information
http://en.wikipedia.org/wiki/Uname
(Taken from man )
SYNOPSIS
uname [OPTION]...
DESCRIPTION
Print certain system information. With no OPTION, same as -s.
-a, --all
print all information, in the following order, except omit -p
and -i if unknown:
-s, --kernel-name
print the kernel name
-n, --nodename
print the network node hostname
-r, --kernel-release
print the kernel release
-v, --kernel-version
print the kernel version
-m, --machine
print the machine hardware name
-p, --processor
print the processor type or "unknown"
-i, --hardware-platform
print the hardware platform or "unknown"
-o, --operating-system
print the operating system
--help display this help and exit
--version
output version information and exit
Example demonstrating usage of tr and uname :
7. Export - In a way, used to make variables global-bash-4.1$ uname -s | tr -d /
CYGWIN_NT-6.1-WOW64
-bash-4.1$ uname -s | tr -d C
YGWIN_NT-6.1-WOW64
-bash-4.1$
http://www.cyberciti.biz/faq/linux-unix-shell-export-command/
8. which - Used to locate the executable for a command.
http://www.computerhope.com/unix/uwhich.htm
Example usage :
/usr/bin/cat9. whereis - Locates the binary, source and manual page files for a command.
-bash-4.1$ which -p cat
http://www.computerhope.com/unix/uwhich.htm
Example usage :
-bash-4.1$ whereis cat10.env - used to print the env variables or to set certain values temporarily.
cat: /bin/cat.exe /usr/bin/cat.exe /usr/share/man/man1/cat.1.gz
http://www.computerhope.com/unix/uenv.htm
11. id - Print real and effective ID's and GUIDs
http://linux.about.com/library/cmd/blcmdl1_id.htm
Example usage :
-bash-4.1$ id12. sed
uid=500(Administrator) gid=513(None) groups=513(None),545(Users)
-bash-4.1$ id -n
http://www.grymoire.com/unix/sed.html
13. pmap - Memory utilization of a process
http://www.tutorialspoint.com/unix_commands/pmap.htm
http://www.cyberciti.biz/tips/howto-find-memory-used-by-program.html
14. svmon - AIX specific parameter that captures and analyses a snapshot of virtual memory.
http://ps-2.kev009.com/tl/techlib/manuals/adoclib/cmds/aixcmds5/svmon.htm
View an output screenshot here :
http://publib.boulder.ibm.com/infocenter/realtime/v2r0/index.jsp?topic=%2Fcom.ibm.softrt.aix32.doc%2Fdiag%2Fproblem_determination%2Faix_cmd_svmon.html
15. iconv - An API used to convert between different standard encodings
http://en.wikipedia.org/wiki/Iconv
16. who - Shows the currently logged in user
(Taken from man)
SYNOPSIS
who [OPTION]... [ FILE | ARG1 ARG2 ]
DESCRIPTION
Print information about users who are currently logged in.
-a, --all
same as -b -d --login -p -r -t -T -u
-b, --boot
time of last system boot
-d, --dead
print dead processes
-H, --heading
print line of column headings
17. $$ - The process id of the current shell. Used when creating unique temporary file names.
Example usage :
-bash-4.1$ echo $$18. mktemp - The secure way of creating temporary files
3768
tempfoo=`basename $0`
TMPFILE=`mktemp -t ${tempfoo}` || exit 1
echo "program output" >> $TMPFILE
-t is now deprecated. UseUsemktemp ${tempfoo}.XXXXXX
Read below for a discussion on mktemp against $$ for creating temporarily files.
http://stackoverflow.com/questions/78493/what-does-mean-in-the-shell
18. ps - Reports process status(Taken from man) OPTIONS
-a, --all
show processes of all users
-e, --everyone
show processes of all users
-f, --full
show process uids, ppids
-h, --help
output usage information and exit
-l, --long
show process uids, ppids, pgids, winpids ps -W : Shows windows as well as cygwin processes
ps -p p_id : Details of a specific processExample of ps -f:-bash-4.1$ ps -f
UID PID PPID TTY STIME COMMAND
Administ 3768 3916 pty0 Aug 10 /usr/bin/bash
Administ 12776 3768 pty0 07:16:48 /usr/bin/ps
Administ 3916 1 ? Aug 10 /usr/bin/mintty
19. pid - Process id
20. ppid - Parent process id
21. pstree - A program showing the relationship of all processes in a tree like manner.
22. htop - Simpler process management and a better UI.
http://delightlylinux.wordpress.com/2012/06/25/what-is-pid-and-ppid/
23. Use of single quote (') - To treat it as a command.
Example usage :
Without quotes :
-bash-4.1$ v=ps -a
-bash: -a: command not found
With quotes
-bash-4.1$ v='ps -a'
-bash-4.1$ $v
PID PPID PGID WINPID TTY UID STIME COMMAND
7368 3768 7368 3672 pty0 500 07:16:49 /usr/bin/ps
3768 3916 3768 1492 pty0 500 08:14:12 /usr/bin/bash
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
24. Find the launching command for a particular PID.
-bash-4.1$ ps -a
PID PPID PGID WINPID TTY UID STIME COMMAND
7064 3768 7064 8664 pty0 500 07:19:06 /usr/bin/ps
3768 3916 3768 1492 pty0 500 08:14:12 /usr/bin/bash
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
-bash-4.1$ ps -p 3916
PID PPID PGID WINPID TTY UID STIME COMMAND
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
(Strips off the header)
-bash-4.1$ ps -p 3916 | grep -i -v COMM
3916 1 3916 3916 ? 500 08:14:12 /usr/bin/mintty
25. lslpp - Lists installed software products
Watch a detailed video here explaining details and usage.
https://www.youtube.com/watch?v=-9oJkRVFvTM
Read here for the text corresponding to the above video.
http://ps-2.kev009.com/tl/techlib/manuals/adoclib/cmds/aixcmds3/lslpp.htm#E088D37887joyc
A complete description of the commands.
http://www-01.ibm.com/support/knowledgecenter/ssw_aix_61/com.ibm.aix.cmds3/lslpp.htm?lang=en
26. /etc/issue - Used to customize your Unix Logon
http://www.linuxfromscratch.org/blfs/view/5.1/postlfs/logon.html
27. egrep - Extended Global regular Expressions
Make sure you go through the examples listed here to get a good feel about egrep.
Also it can be used using grep -E (see man)
http://www.cs.columbia.edu/~tal/3261/fall07/handout/egrep_mini-tutorial.htm
28. GDB/pstack and gstack
gdb - GNU Debugger
http://www.gnu.org/software/gdb/
pstack/gstack - Linux executable
It prints a stack trace of running processes
http://www.linuxcommand.org/man_pages/pstack1.html
http://linux.die.net/man/1/gstack
29. lsof - List open files
http://en.wikipedia.org/wiki/Lsof
30. declare - declare a variable as array, read-only, number only etc
http://www.linuxjournal.com/content/bash-declare-statement
31. kill - To kill a process
http://www.songsinhispresence.com/cdinfo.html#taken%20link
32. shift - This command takes one argument, a number. The positional parameters are shifted to the left by this number.
Read the link below for a good example on the same.
http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_07.html
33. sleep - Sleep is used to delay for a particular amount of time.
http://www.computerhope.com/unix/usleep.htm
34. pgrep - It searches for all the named processes that can be specified as extended regular expression patterns, and—by default—returns their process ID. Alternatives include pidof (finds process ID given a program name) and ps.
http://en.wikipedia.org/wiki/Pgrep
http://linux.die.net/man/1/pgrep
35. cut - Print selected parts of lines from each FILE to standard output.
http://www.thegeekstuff.com/2013/06/cut-command-examples/
http://www.folkstalk.com/2012/02/cut-command-in-unix-linux-examples.html
36. grep - searches the named input FILEs (or standard input if no files are
named, or if a single hyphen-minus (-) is given as file name) for lines
containing a match to the given PATTERN. By default, grep prints the
matching lines.
-e PATTERN, --regexp=PATTERN
Use PATTERN as the pattern. This can be used to specify
multiple search patterns, or to protect a pattern beginning with
a hyphen (-). (-e is specified by POSIX.)
-f FILE, --file=FILE
Obtain patterns from FILE, one per line. The empty file
contains zero patterns, and therefore matches nothing. (-f is
specified by POSIX.)
-i, --ignore-case
Ignore case distinctions in both the PATTERN and the input
files. (-i is specified by POSIX.)
-l, --files-with-matches
Suppress normal output; instead print the name of each input
file from which output would normally have been printed. The
scanning will stop on the first match. (-l is specified by
POSIX.)
37. set - used to define and determine values of the system environment.
-m :
Background jobs will run in a separate process group and a line will print upon completion. The exit status of background jobs is reported in a completion message. On systems with job control, this flag is turned on automatically for interactive shells.
http://www.computerhope.com/unix/uset.htm
http://linux.about.com/library/cmd/blcmdln_set.htm
38. stty - Change and print terminal line settings
http://unixhelp.ed.ac.uk/CGI/man-cgi?stty
-a, --all
print all current settings in human-readable form
-g, --save
print all current settings in a stty-readable form
-F, --file=DEVICE
open and use the specified DEVICE instead of stdin
39. compress - compacts the files so that it will become smaller.
http://www.computerhope.com/unix/ucompres.htm
40. tput - Utilizes the terminal capabilities
http://en.wikipedia.org/wiki/Tput
Shell Scripting - Learning the commands and looping structures.
Online Bash Editor
Execute shell script on the Web!
http://www.compileonline.com/execute_bash_online.php
Loops
1. For Loop
http://www.cyberciti.biz/faq/bash-for-loop/
Execute shell script on the Web!
http://www.compileonline.com/execute_bash_online.php
Loops
1. For Loop
http://www.cyberciti.biz/faq/bash-for-loop/
Friday, August 8, 2014
Shell Scripting
Introduction : The first shell script . A brief intro about the need of Shell.
http://www.linfo.org/create_shell_1.html
Types of Shells : Here's a quick look at the different types of Shells.
1) ksh - Korn shell
Explore Ksh scripting below.
http://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html
http://www.linfo.org/create_shell_1.html
Types of Shells : Here's a quick look at the different types of Shells.
1) ksh - Korn shell
Explore Ksh scripting below.
http://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html
Unix - A broad overview
1) Chmod examples for beginners
http://www.thegeekstuff.com/2010/06/chmod-command-examples/
2) 7 Chmod Command Examples for Beginners
http://www.thegeekstuff.com/2010/06/chmod-command-examples/
http://www.thegeekstuff.com/2010/06/chmod-command-examples/
2) 7 Chmod Command Examples for Beginners
http://www.thegeekstuff.com/2010/06/chmod-command-examples/
Tuesday, July 15, 2014
Count and distinct over multiple columns..
1) http://stackoverflow.com/questions/18715798/count-multiple-columns-sql
This is the final format of the query :
SELECT COUNT(*) FROM mytable GROUP BY id, name, address
2) COUNT() in SQL Server accepts the following syntax :COUNT(*)
COUNT(colName)
COUNT(DISTINCT colName)
Good link to read is below
http://stackoverflow.com/questions/18968963/select-countdistinct-error-on-multiple-columns
3) Count(DISTINCT) in multiple columns in SQL Server 2008
http://stackoverflow.com/questions/11920317/countdistinct-in-multiple-columns-in-sql-server-2008
SELECT COUNT(*) FROM (SELECT DISTINCT Column1, Column2 FROM Table) A
4) Counting over distinct columns
http://stackoverflow.com/questions/1471250/counting-distinct-over-multiple-columns
Friday, July 11, 2014
Thursday, July 10, 2014
Adding a Runtime on BlueMix
Choosing your own runtime on BlueMix
http://ryanjbaxter.com/2014/04/03/you-choose-the-runtime-on-bluemix/
CloudFoundry Buildpacks
https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks
http://ryanjbaxter.com/2014/04/03/you-choose-the-runtime-on-bluemix/
CloudFoundry Buildpacks
https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks
IBM Operational Decision Manager
Some pretty useful life hacks!
Read on for some pretty useful life hacks.
http://aplus.com/a/22-amazing-life-hacks
Tips while travelling
http://news.distractify.com/dark/trivial-facts/24-travel-tips-that-will-change-your-life-forever/?v=1
http://aplus.com/a/22-amazing-life-hacks
Tips while travelling
http://news.distractify.com/dark/trivial-facts/24-travel-tips-that-will-change-your-life-forever/?v=1
Tuesday, July 8, 2014
dW QnA on IBM devWorks
All BlueMix questions matching 'eclipse'
https://developer.ibm.com/answers/search/?csrfmiddlewaretoken=e222b89f845898046d1ca3700a2e02f5&q=eclipse&t=question&community=bluemix&x=0&y=0
How to fix errors after importing sample BueMix app into Eclipse
https://developer.ibm.com/answers/questions/8565/how-to-fix-errors-after-importing-sample-buemix-app-into-eclipse/?community=bluemix
Using IBM Eclipse Tools for Bluemix
https://developer.ibm.com/answers/questions/18050/using-ibm-eclipse-tools-for-bluemix/?community=bluemix
Deploying app to Bluemix using the liberty builpack and BlueMix for Eclipse tools
https://developer.ibm.com/answers/questions/13263/deploying-app-to-bluemix-using-the-liberty-builpack-and-bluemix-for-eclipse-tools/?community=bluemix
Creating new Bluemix server in Eclipse Kepler
https://developer.ibm.com/answers/questions/18344/creating-new-bluemix-server-in-eclipse-kepler/?community=bluemix
https://developer.ibm.com/answers/search/?csrfmiddlewaretoken=e222b89f845898046d1ca3700a2e02f5&q=eclipse&t=question&community=bluemix&x=0&y=0
How to fix errors after importing sample BueMix app into Eclipse
https://developer.ibm.com/answers/questions/8565/how-to-fix-errors-after-importing-sample-buemix-app-into-eclipse/?community=bluemix
Using IBM Eclipse Tools for Bluemix
https://developer.ibm.com/answers/questions/18050/using-ibm-eclipse-tools-for-bluemix/?community=bluemix
Deploying app to Bluemix using the liberty builpack and BlueMix for Eclipse tools
https://developer.ibm.com/answers/questions/13263/deploying-app-to-bluemix-using-the-liberty-builpack-and-bluemix-for-eclipse-tools/?community=bluemix
Creating new Bluemix server in Eclipse Kepler
https://developer.ibm.com/answers/questions/18344/creating-new-bluemix-server-in-eclipse-kepler/?community=bluemix
Friday, July 4, 2014
Watson and BlueMix
Natural Language QA system with Watson and Blue Mix
http://www.ibm.com/developerworks/cloud/library/cl-watson-films-bluemix-app/
Partner applications powered by Watson
https://developer.ibm.com/watson/docs/ibm-watson-ecosystem/use-cases/partner-applications-powered-watson/
5 Steps to a powered by Watson application
https://developer.ibm.com/watson/docs/5-steps-powered-watson-application/
What is the Watson Eco-system ?
https://developer.ibm.com/watson/
Examples with the Q n A REST Service?
https://developer.ibm.com/watson/docs/developing-watson-apis/examples-qapi/
http://www.ibm.com/developerworks/cloud/library/cl-watson-films-bluemix-app/
Partner applications powered by Watson
https://developer.ibm.com/watson/docs/ibm-watson-ecosystem/use-cases/partner-applications-powered-watson/
5 Steps to a powered by Watson application
https://developer.ibm.com/watson/docs/5-steps-powered-watson-application/
What is the Watson Eco-system ?
https://developer.ibm.com/watson/
Examples with the Q n A REST Service?
https://developer.ibm.com/watson/docs/developing-watson-apis/examples-qapi/
Thursday, July 3, 2014
Awesome TED Talks Gardening Related
How to grow your own fresh air! By Kamal Meattle
http://www.ted.com/talks/kamal_meattle_on_how_to_grow_your_own_fresh_air
Janine Benyus - Biomimicry's surprising lessons from nature's engineers
http://www.ted.com/talks/janine_benyus_shares_nature_s_designs
Gardening from Stumble Upon
http://www.stumbleupon.com/interest/gardening?_nospa=true
http://www.ted.com/talks/kamal_meattle_on_how_to_grow_your_own_fresh_air
Janine Benyus - Biomimicry's surprising lessons from nature's engineers
http://www.ted.com/talks/janine_benyus_shares_nature_s_designs
Gardening from Stumble Upon
http://www.stumbleupon.com/interest/gardening?_nospa=true
Wednesday, July 2, 2014
Blue Mix Developed Projects
BlueMix Instance URL
https://ace.stage1.ng.bluemix.net/?ssoLogout=true
Omkar Nimbalkar on BlueMix
https://www.youtube.com/watch?v=2LKOwZtW5ao#t=76?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Hotel Application using the Rules service
Analytics Service on BlueMix
http://www.ibm.com/developerworks/library/bd-ruby-bluacceleration-app/index.html?ca=drs-
Getting started with IBM Gamification for BlueMix!
IBM Gamification for Blue Mix
Git Hub Getting started
Getting started with Git Hub
Git Hub for Windows
Git Hub for Windows Setup
Bus Simulator Project
Bus Simulator Demo Live Link
Build and Deploy a REST API on IBM Blue Mix with PHP and MySQL
build-and-deploy-a-rest-api-on-ibm-bluemix-with-php-and-mysql/
Building a Web App
Steps to build a web app
Sentiment Analysis App
Sentiment Analysis App
Automate Famo.us mobile apps with Cloudant on Bluemix
http://www.ibm.com/developerworks/cloud/library/cl-bluemix-famous-mobile/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Animate Images in a node.js web app
http://www.ibm.com/developerworks/cloud/library/cl-animate-images-app/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Image Rotator Source Code
https://hub.jazz.net/project/nathviswa/ImageRotator/overview#https://hub.jazz.net/project/nathviswa/ImageRotator/nathviswa%2520%257C%2520ImageRotator/_V1xiYAAwEeSgjb7zPlBjjw/_V2LyEAAwEeSgjb7zPlBjjw/index.ejs
My Image Rotator Source Code
https://hub.jazz.net/project/sonia14/MyImageAnimator/settings/options
Do it yourself: Build a remote surveillance app using Bluemix, Cloudant, and Raspberry Pi
http://www.ibm.com/developerworks/library/ba-remoteservpi-app/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Build a time-control app using iBeacons and the IBM MobileData service
http://www.ibm.com/developerworks/mobile/library/mo-bluemix-ibeacons/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Dev Ops Repository Links
env-javaweb
REST Products API
Calorie Counter Demo App
https://ace.stage1.ng.bluemix.net/?ssoLogout=true
Omkar Nimbalkar on BlueMix
https://www.youtube.com/watch?v=2LKOwZtW5ao#t=76?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Hotel Application using the Rules service
Analytics Service on BlueMix
http://www.ibm.com/developerworks/library/bd-ruby-bluacceleration-app/index.html?ca=drs-
Getting started with IBM Gamification for BlueMix!
IBM Gamification for Blue Mix
Git Hub Getting started
Getting started with Git Hub
Git Hub for Windows
Git Hub for Windows Setup
Bus Simulator Project
Bus Simulator Demo Live Link
Build and Deploy a REST API on IBM Blue Mix with PHP and MySQL
build-and-deploy-a-rest-api-on-ibm-bluemix-with-php-and-mysql/
Building a Web App
Steps to build a web app
Sentiment Analysis App
Sentiment Analysis App
Automate Famo.us mobile apps with Cloudant on Bluemix
http://www.ibm.com/developerworks/cloud/library/cl-bluemix-famous-mobile/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Animate Images in a node.js web app
http://www.ibm.com/developerworks/cloud/library/cl-animate-images-app/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Image Rotator Source Code
https://hub.jazz.net/project/nathviswa/ImageRotator/overview#https://hub.jazz.net/project/nathviswa/ImageRotator/nathviswa%2520%257C%2520ImageRotator/_V1xiYAAwEeSgjb7zPlBjjw/_V2LyEAAwEeSgjb7zPlBjjw/index.ejs
My Image Rotator Source Code
https://hub.jazz.net/project/sonia14/MyImageAnimator/settings/options
Do it yourself: Build a remote surveillance app using Bluemix, Cloudant, and Raspberry Pi
http://www.ibm.com/developerworks/library/ba-remoteservpi-app/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Build a time-control app using iBeacons and the IBM MobileData service
http://www.ibm.com/developerworks/mobile/library/mo-bluemix-ibeacons/index.html?ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Dev Ops Repository Links
env-javaweb
REST Products API
Calorie Counter Demo App
Initial Days with Git Hub
This article talks about how we can fork a repository on Git Hub.
Fork a Git Hub Repository
Getting started with the Spoon/Knife project on GitHub
Spoon-Knife Sample Project
Fork a Git Hub Repository
Getting started with the Spoon/Knife project on GitHub
Spoon-Knife Sample Project
Monday, June 30, 2014
Custom Sorting in a Dojo Grid using ItemFileRead/Write store
First understand the below example to see how to plug a grid to a store.
Then to sort alphabetically, based on locale use the code below
queryGrid.setStore(new dojo.data.ItemFileReadStore(response[responseResult]));
setCustomSort(queryGrid.store);
Define the sort function as below :
function setCustomSort(store){
if(!store.comparatorMap){
store.comparatorMap = {};
}
store.comparatorMap["name"] = function (a, b) {
return a.localeCompare(b);
}
For custom sort by date, refer the link below.
http://stackoverflow.com/questions/3967214/dojox-grid-datagrid-custom-sort-method
Saturday, June 28, 2014
Adding N-Relate to your blog posts!
Want to know how to add the "You-may-also-like" option to your blog? Read on..
Friday, June 27, 2014
Thursday, June 26, 2014
Piecing Together Blue-Mix
Download CF CLI (Cloud Foundry Command Line Interface) from here!
https://github.com/cloudfoundry/cli/releases
Installing the CF CLI.. Checking if you've set it up successfully
http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html
Logging into BlueMix through CF CLI
Super easy ! Just follow the steps mentioned here :
https://www.stage1.ng.bluemix.net/docs/#starters/BuildingWeb.html#login_bluemix

On successful completion :

Understanding the Blue Mix UI : Watch this video to quickly understand what Blue Mix is capable of!
http://www.youtube.com/watch?v=i_-exOUGmyw&ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
https://github.com/cloudfoundry/cli/releases
Installing the CF CLI.. Checking if you've set it up successfully
http://docs.cloudfoundry.org/devguide/installcf/install-go-cli.html
Logging into BlueMix through CF CLI
Super easy ! Just follow the steps mentioned here :
https://www.stage1.ng.bluemix.net/docs/#starters/BuildingWeb.html#login_bluemix
On successful completion :
Understanding the Blue Mix UI : Watch this video to quickly understand what Blue Mix is capable of!
http://www.youtube.com/watch?v=i_-exOUGmyw&ce=ism0070&ct=is&cmp=ibmsocial&cm=h&cr=crossbrand&ccy=us
Subscribe to:
Posts (Atom)
