Showing posts with label Others. Show all posts
Showing posts with label Others. Show all posts
Wednesday, May 10, 2006
Monday, April 24, 2006
Windows XP : To find services associated to OS process
Was finding a lot of svchost.exe process getting lauched. To find out the services for each of the scvhost process, following command was helpful.
D:\>tasklist /svc
Image Name PID Services
========================= ====== =============================================
System Idle Process 0 N/A
System 4 N/A
smss.exe 820 N/A
csrss.exe 892 N/A
winlogon.exe 920 N/A
services.exe 976 Eventlog, PlugPlay
lsass.exe 988 Netlogon, PolicyAgent, ProtectedStorage,
SamSs
svchost.exe 1152 DcomLaunch, TermService
svchost.exe 1240 RpcSs
svchost.exe 1376 AudioSrv, CryptSvc, Dhcp, dmserver, ERSvc,
EventSystem, helpsvc, HidServ, lanmanserver,
lanmanworkstation, Messenger, Netman, Nla,
Schedule, seclogon, SENS, SharedAccess,
ShellHWDetection, Themes, TrkWks, W32Time,
winmgmt, wuauserv, WZCSVC
svchost.exe 1428 Dnscache
svchost.exe 1616 LmHosts, RemoteRegistry, SSDPSRV, WebClient
spoolsv.exe 1784 Spooler
D:\>tasklist /svc
Image Name PID Services
========================= ====== =============================================
System Idle Process 0 N/A
System 4 N/A
smss.exe 820 N/A
csrss.exe 892 N/A
winlogon.exe 920 N/A
services.exe 976 Eventlog, PlugPlay
lsass.exe 988 Netlogon, PolicyAgent, ProtectedStorage,
SamSs
svchost.exe 1152 DcomLaunch, TermService
svchost.exe 1240 RpcSs
svchost.exe 1376 AudioSrv, CryptSvc, Dhcp, dmserver, ERSvc,
EventSystem, helpsvc, HidServ, lanmanserver,
lanmanworkstation, Messenger, Netman, Nla,
Schedule, seclogon, SENS, SharedAccess,
ShellHWDetection, Themes, TrkWks, W32Time,
winmgmt, wuauserv, WZCSVC
svchost.exe 1428 Dnscache
svchost.exe 1616 LmHosts, RemoteRegistry, SSDPSRV, WebClient
spoolsv.exe 1784 Spooler
Wednesday, March 01, 2006
.Net Framework
Was feeling lazy to work today. Hence, looked at .net framework programming......Some highlights of points learnt for future reference
1. .Net currently supports around 20 languages to be compiled into IL(Intermediate Language) format.
2. For shift from J2EE to dot net, c# can be a better option.
3. A simple helloworld C# code is:
class App{
public static void Main(){
System.Console.WriteLine("Hello World!");
}
}
4. To compile the above code, type "csc filename.cs". This generates the filename.exe. (for vb, use vbc and for javascript, jsc)
5. Hierarchy : Managed Executable -> CLR(JIT compilation) -> OS
6. CLR is similar to the other execution engine like JVM for J2EE. The CLR supplies memory management, type safety, code verifiability, thread management and security.
7. Important points are
8. CIL(Common IL) is the high level assembly language includes instructions for advanced programming concepts as instantiating objects or calling virtual functions.
9. The CLR translates these and every other IL instruction into a native machine language instruction at runtime, and then executes the code natively.
10. Metadata describes class definitions, method signatures, parameter types and return values.
11. The exe generated out of compiling the managed code contains the metadata and the IL. We can use the IL disassemebler(ILDASM) to view the structure of the managed exe.
12. At runtime, this exe is JIT compiled by the CLR and converted into the machine language instructions.
13. Some of the benchmarck results shows dot net executed code is 2-3 times faster than the J2EE...
JIT COMPILATION
The first time that a managed executable references a class or type (such as a structure, interface, enumerated type or primitive type) the system must load the code module or managed module that implements the type. At the point of loading, the JIT compiler creates method stubs in native machine language for every member method in the newly loaded class. These stubs include nothing but a jump into a special function in the JIT compiler.
Once the stub functions are created, the system fixes up any method calls in the referencing code to point to the new stub functions. At this time no JIT compilation of the type's code has occurred. However, if a managed application references a managed type, it is likely to call methods on this type (in fact it is almost inevitable).
When one of the stub functions is called the stub causes execution to jump into the JIT compiler. The JIT compiler looks up the source code (IL and metadata) in the associated managed module, and builds native machine code for the function on the fly. Then, it replaces the stub function with a jump to the newly JIT compiled function. The next time this same method is called in source code, it will be executed full speed without any need for compilation or extra steps.
The good thing about this approach is that the system never wastes time JIT compiling methods that won't be called by this run of your application.
1. .Net currently supports around 20 languages to be compiled into IL(Intermediate Language) format.
2. For shift from J2EE to dot net, c# can be a better option.
3. A simple helloworld C# code is:
class App{
public static void Main(){
System.Console.WriteLine("Hello World!");
}
}
4. To compile the above code, type "csc filename.cs". This generates the filename.exe. (for vb, use vbc and for javascript, jsc)
5. Hierarchy : Managed Executable -> CLR(JIT compilation) -> OS
6. CLR is similar to the other execution engine like JVM for J2EE. The CLR supplies memory management, type safety, code verifiability, thread management and security.
7. Important points are
- Managed Code is never interpreted
- Managed code doesn't run in virtual machine.
8. CIL(Common IL) is the high level assembly language includes instructions for advanced programming concepts as instantiating objects or calling virtual functions.
9. The CLR translates these and every other IL instruction into a native machine language instruction at runtime, and then executes the code natively.
10. Metadata describes class definitions, method signatures, parameter types and return values.
11. The exe generated out of compiling the managed code contains the metadata and the IL. We can use the IL disassemebler(ILDASM) to view the structure of the managed exe.
12. At runtime, this exe is JIT compiled by the CLR and converted into the machine language instructions.
13. Some of the benchmarck results shows dot net executed code is 2-3 times faster than the J2EE...
JIT COMPILATION
The first time that a managed executable references a class or type (such as a structure, interface, enumerated type or primitive type) the system must load the code module or managed module that implements the type. At the point of loading, the JIT compiler creates method stubs in native machine language for every member method in the newly loaded class. These stubs include nothing but a jump into a special function in the JIT compiler.
Once the stub functions are created, the system fixes up any method calls in the referencing code to point to the new stub functions. At this time no JIT compilation of the type's code has occurred. However, if a managed application references a managed type, it is likely to call methods on this type (in fact it is almost inevitable).
When one of the stub functions is called the stub causes execution to jump into the JIT compiler. The JIT compiler looks up the source code (IL and metadata) in the associated managed module, and builds native machine code for the function on the fly. Then, it replaces the stub function with a jump to the newly JIT compiled function. The next time this same method is called in source code, it will be executed full speed without any need for compilation or extra steps.
The good thing about this approach is that the system never wastes time JIT compiling methods that won't be called by this run of your application.
Saturday, November 19, 2005
Multi-Boot Linux with Windows XP
Installed Fedora and Ubuntu with windows XP. Steps to be taken:
1. Boot from linux CD in CD-Rom
2. During partition, select 'Advanced' checkbox in case of Fedora. In case of Ubuntu use the Guided partitioning option.
3. These install GRUB loaded by default in MBR. But, better option I feel(and did) is to install the GRUB loader in the boot partition of the linux itself and take a copy of the boot part using tool like bootpart and add it to the boot.ini of the windows.
Issues in installing Ubuntu:
- Installation of ubuntu is in two parts. First base image is installed and then additional packages are installed. After the base images were installed, it made the linux partition as "Active" partition. Thus, it is always going to be the GRUB loader which will load the OS. In order to change it back to the windows loader, need to make the windows partition as "Active". One issue I encountered was that after making the windows partition as active and rebooting the system, the other windows partition became hidden. Setting this partition to "UnHide" using partition manager also didn't solve the problem of unhiding this partition. To solve this problem, the GNU "parted" tool of linux came to my help. Using this, I set the windows partition to unhide. Then did a reboot. Now my windows partition became unhidden. GNU parted helped me to solve this issue which even partition magic cannot fix.
1. Boot from linux CD in CD-Rom
2. During partition, select 'Advanced' checkbox in case of Fedora. In case of Ubuntu use the Guided partitioning option.
3. These install GRUB loaded by default in MBR. But, better option I feel(and did) is to install the GRUB loader in the boot partition of the linux itself and take a copy of the boot part using tool like bootpart and add it to the boot.ini of the windows.
Issues in installing Ubuntu:
- Installation of ubuntu is in two parts. First base image is installed and then additional packages are installed. After the base images were installed, it made the linux partition as "Active" partition. Thus, it is always going to be the GRUB loader which will load the OS. In order to change it back to the windows loader, need to make the windows partition as "Active". One issue I encountered was that after making the windows partition as active and rebooting the system, the other windows partition became hidden. Setting this partition to "UnHide" using partition manager also didn't solve the problem of unhiding this partition. To solve this problem, the GNU "parted" tool of linux came to my help. Using this, I set the windows partition to unhide. Then did a reboot. Now my windows partition became unhidden. GNU parted helped me to solve this issue which even partition magic cannot fix.
Saturday, September 17, 2005
Stock Market Learnings
Technical Analysis
1. Bar Chart
A single vertical line with opening price on the left side and the closing price on the right side. The advantage of using a bar chart over a straight line graph is that it shows the high, low, open and close for each particular day.
2. CandleStick Charting
A vertical line with a cylindrical body. Body is black or red if stock closed lower. Body is white or green if stock closed higher.
Patterns :
3. Point and Figure Chart
Mainly for intraday charting.
increases are represented by a rising stack of "X"s, while decreases are represented by a declining stack of "O"s.
4. Moving Average Chart
Average value of price over a period of time. 50 day average chart->average of 50 days closing price. The most commonly used moving averages are of 20, 30, 50, 100 and 200 days.Typically, when a stock price moves below its moving average it is a bad sign because the stock is moving on a negative trend. The opposite is true for stocks that exceed their moving average - in this case, hold on for the ride.
5. The Relative Strength Index
RSI = 100 - [100/(1 + RS)]
where:
RS = (Avg. of n-day up closes)/(Avg. of n-day down closes)
n= days (most analysts use 9 - 15 day RSI)
At around 70, stock is overbought. Better to sell at this point. In a bullish market, wait till 80
At around 30, stock is oversold. Better to buy at this point. In a bearish market, wait till 20
6. The Money Flow Index
Average price for the day:
Average Price = (Day High + Day Low + Close ) / 3
Now we need the Money Flow:
Money Flow = Average Price x Day's Volume
If the price was up in a particular day, this is considered to be "positive money flow". If the price closed down, it is considered to be "negative money flow".
Money Flow Ratio = (Positive Money Flow ) / (Negative Money Flow)
Other Methods
1. Bar Chart
A single vertical line with opening price on the left side and the closing price on the right side. The advantage of using a bar chart over a straight line graph is that it shows the high, low, open and close for each particular day.
2. CandleStick Charting
A vertical line with a cylindrical body. Body is black or red if stock closed lower. Body is white or green if stock closed higher.
Patterns :
- Bullish : cylindrical equispaced between low and high,
- Bearish : cylindrical portion more at the bottom of the line.
- Hammer : small cylindrical portion at the top of the line : indicate the reveral in downtrend is in the works
- Star : a single horizontal line at the center of a vertical line - stock going to change its course
3. Point and Figure Chart
Mainly for intraday charting.
increases are represented by a rising stack of "X"s, while decreases are represented by a declining stack of "O"s.
4. Moving Average Chart
Average value of price over a period of time. 50 day average chart->average of 50 days closing price. The most commonly used moving averages are of 20, 30, 50, 100 and 200 days.Typically, when a stock price moves below its moving average it is a bad sign because the stock is moving on a negative trend. The opposite is true for stocks that exceed their moving average - in this case, hold on for the ride.
5. The Relative Strength Index
RSI = 100 - [100/(1 + RS)]
where:
RS = (Avg. of n-day up closes)/(Avg. of n-day down closes)
n= days (most analysts use 9 - 15 day RSI)
At around 70, stock is overbought. Better to sell at this point. In a bullish market, wait till 80
At around 30, stock is oversold. Better to buy at this point. In a bearish market, wait till 20
6. The Money Flow Index
Average price for the day:
Average Price = (Day High + Day Low + Close ) / 3
Now we need the Money Flow:
Money Flow = Average Price x Day's Volume
If the price was up in a particular day, this is considered to be "positive money flow". If the price closed down, it is considered to be "negative money flow".
Money Flow Ratio = (Positive Money Flow ) / (Negative Money Flow)
Other Methods
- Support and Resistance
- Bollinger Bands
Thursday, June 23, 2005
Raaga Player not working after RealPlayer 10.5 Upgrade
After upgrading to real player 10, cannot play songs from raaga.com. This was due to the firewall issue. Did the following things to make it work again.
1. Uninstalled the real player 10 and installed the real player 8
2. Set the RNSP setting and PNA setting in the Transport tab of preferences to "Use HTTP only".
3. Now it works.(The step.2 done in real player 10 still doesn't allow to play songs..don't know yy)
Note: For my laptop, even realplayer 8 had some problem. So, installed realoneplayer version 2(realplayer20) and did the above settings. It worked.
1. Uninstalled the real player 10 and installed the real player 8
2. Set the RNSP setting and PNA setting in the Transport tab of preferences to "Use HTTP only".
3. Now it works.(The step.2 done in real player 10 still doesn't allow to play songs..don't know yy)
Note: For my laptop, even realplayer 8 had some problem. So, installed realoneplayer version 2(realplayer20) and did the above settings. It worked.
Sunday, May 22, 2005
Personalizing google home page
check this link http://www.google.com/ig to start personalizing your own Google home page.
Sunday, April 10, 2005
Wednesday, April 06, 2005
Graphics Tutorial - SDL
Some of the tips to successfully compile and link the projects in the tutorial GFX with SDL
1. Change the directory in Project workspace file
2. Add libmingw32.a, libsdlmain.a and libsdl.a in the linker options.
3. libsdlmain.a should be added before libsdl.a
4. inlcude <iostream.h> and <string.h>
1. Change the directory in Project workspace file
2. Add libmingw32.a, libsdlmain.a and libsdl.a in the linker options.
3. libsdlmain.a should be added before libsdl.a
4. inlcude <iostream.h> and <string.h>
Subscribe to:
Posts (Atom)

