How do you grep a process? And what is grep? grep is actually a function to "grab" the process of a specific name in unix. It helps you to identify which process is actually running on background.
/usr/ucb/ps -auxww | grep -i qm | grep -i GTSD25QM
-i = ignore letter case
Enjoy.
2014/04/15
What is sp_lock & sp_who (SQL)
sp_lock (Reports information about processes that currently hold locks.)
sp_who (Run sp_who to get the spid of the locking process.)
sp_who (Run sp_who to get the spid of the locking process.)
2014/04/12
How to set thousands separator in Java?
The following will work:
ENJOY!int no = 124750; String str = String.format("%,d", no);
How to convert from int to String? (Java)
Integer.toString(i) or String.valueOf(i) will work.
Enjoy!
How do you pause in android (Java)?
First you have to create a Handler();, then you have to use the postDelayed function to pause the code.
public class MyActivity extends Activity {
private Handler mHandler = new Handler();
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mHandler.postDelayed(new Runnable() {
public void run() {
doStuff();
}
}, 5000);
}
private void doStuff() {
System.out.println("Hellow World After 5 seconds!");
}
}
2010/06/10
Enabling xp_cmdshell in SQL Server
EXEC master.dbo.sp_configure 'show advanced options', 1
RECONFIGURE
EXEC master.dbo.sp_configure 'xp_cmdshell', 1
RECONFIGURE
Subscribe to:
Posts (Atom)