The Way To Calculate PHP Script’s Memory Usage

Have you ever wanted to know how much memory one of your PHP scripts uses when it runs? You might want this information if your script has a memory leak or takes a long time to execute. If that’s the case then there’s a great built-in function called memory_get_usage, which will display the exact amount of memory being used by your script. This function is really simple to use and will show you the amount of memory, in bytes, being allocated to the script. [Read more...]

google to launch lower-end Nexus One in India

Google’s highly anticipated smart phone, Nexus One, is already being sold many different locations around the world. But what really comes as a big surprise is that Google is planning to launch a ‘scaled down’ version of Nexus One in India which will have fewer features compared to original Nexus One.
Although there is no word about the pricing as Google is trying to target a bigger mobile phone Market in India which is dominated by Nokia and Blackberry. However, according to some sources, the price will be much lower than the original one.

The original Nexus One features 5 megapixel camera with auto focus and LED flash, 3.7 inch AMOLED touch screen, 512MB Flash along with a 4GB microSD slot, video recording at 20 frames per second and numerous Google services such as Gmail, Google Search etc.

For all that’s in the air for now, a report suggests that the new Nexus One for India will have a 3.7 inch AMOLED touch screen and Snapdragon processor but with a downgraded memory and Camera. Now, let’s wait and watch if Google really makes a hit on this one.

Free Hosting Unlimited Transfer


Free Hosting

Free host, free php hosting services. 3GB disk space, Unlimited bandwidth, Mysql Support.
There are no hidden costs, Free for life.

Free Host Features Part 1
Free Hosting (Linux)
8 cpus, 8GB Memory,
Port speed: 1000 Mbps
Price $0.00
Disk Space 3000 MB
Bandwidth Unlimited
Host your own domain Yes
Free subdomain you.200u.com you.201w.com Yes
Parked Domains Unlimited
Add-on Domains Unlimited
Sub-domains Unlimited
E-mail Addresses 10
FTP Accounts 10
MySQL Databases Unlimited
Control Panel see demo cPanel
Autoinstaller (Softaculous) 100 scripts | List All
Multiple Package Per Account Unlimited
Allow Your Advertisement Yes

What are wmpnscfg.exe and wmpnetwk.exe and Why Are They Running?

So you’ve been going through Task Manager trying to figure out why so many services are running when you notice there’s two items for Windows Media Player in the list… but you don’t even use Media Player. What’s up with that?

It’s not like the processes take a lot of memory… I just get irritated when there’s a process that restarts for no good reason. You disable it, and then somehow it’s back. Annoying!

image

What Is This Service Anyway?

Windows Media Player 11 can share media between different computers on the same network, and can even share media with the XBox 360 as well. For this to work, there’s a network sharing service that shares the library even if Media Player isn’t open. It’s really a great system if you use it.

Both of these processes are part of the Windows Media Player Sharing system, so if you use those features you should not disable it.

Disabling Media Sharing in Media Player

The best way to remove these services is to just use the configuration panel… that way they don’t come back the next time Media Player gets opened, accidentally or otherwise.

Open up Windows Media Player, and then click on the little arrow under “Library” and choose the “Media Sharing” option from the menu.

image

If you are using a custom theme, or otherwise can’t get to that menu, you can also open the Options panel, choose the Library tab, and then click on “Configure Sharing”

image

Either one of the above will bring you to the Media Sharing dialog. Uncheck both of the boxes that you see here.

Note: If they are unchecked, you should check them, click apply, and then uncheck them and click OK… basically to reset the settings.

image

Once you hit the OK button, you’ll be prompted with an extremely important dialog… do you want to turn sharing off for everybody? Yes!

image

This will actually turn off the service, and remove the startup entry for wmpnscfg.exe. (Note that you’ll have to kill that process manually the first time, or log off and back on)

At this point you should be able to use your computer without either of those two processes running. If you continue to have problems getting rid of them, you can read down further for more troubleshooting steps.

Disabling Media Player Network Sharing Service in Services

You shouldn’t actually need to do this part, as using the configuration instructions above should work… but if you are having problems getting rid of it, here’s where you need to go.

Open up Services from Control Panel, or type services.msc into the start menu search/run box. Find the service in the list:

image

Open it up by double-clicking on it, and then change the service to Disabled.

image

One note here… If you try to re-enable Media Sharing in Media Player, it will ignore the fact that it’s disabled. This is why you need to make the configuration change there as well.

Alternative Methods using Regedit

If you are still having issues, you can do some further checking to make sure that the two services won’t be re-enabled again. Open up regedit.exe through the start menu search or run box, and then browse down to the following key:

HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences\HME

image

There should be a DWORD value on the right-hand side named DisableDiscovery which you can set to a value of 2 (setting it to 1 also worked for me). Just make sure that it’s not set to 0.

To make sure that the wmpnscfg.exe is turned off, you can browse down to the following key in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

image

This is where Windows turns that application on… if there’s an item for it in this list, then delete it.

What is jusched.exe And Why Is It Running?

If you’ve looked in Task Manager and wondered what on earth the jusched.exe process is and if you can turn it off, then you are in luck. This process is the Java Update scheduler, which is a process that wastes memory all the time just to check once a month whether there are new updates to Java.

There’s a scheduled tasks feature built into Windows for this type of thing… the java update scheduler is obviously not being used for critical updates since it’s only scheduled to check once each month. Since I simply can’t understand why the process needs to waste my memory, it has to go.

image

What you’ll need to do is open up Control Panel, and then if you are in XP you can click on the Java icon, or in Vista you can click on Additional Options, and then click on Java.

Once you have the Java Control Panel open, select the Update tab, and then uncheck the box for “Check for Updates Automatically”

image

You’ll receive a warning message stating that if somebody finds a security hole in Java that it will take up to a month before you are protected from it:

image

Does anybody else think that the sentence should read “the fastest and most secure Java” instead of the way it’s worded?

After you click the Never Check button above, you’ll probably receive this error message if you are in Windows Vista, stating that it also hasn’t been properly certified to work with Vista in the first place. Just click that it works correctly.

image

That does make me wonder… I guess we’ll miss the update that fixes the problem with the control panel… or will we? What you can do instead is schedule a task to run monthly using the built-in Task scheduler. If you don’t care about updates to Java, then disregard the next part.

Schedule Java Update Check (Optional)

Just type in Task Scheduler into the start menu search box to open the task scheduler, and then click on Create Basic Task.

image

Follow the wizard along to pick a month and date, and then when you get to the “Start a Program” screen, use this as the path, adjusting if you are running a different version of Java. The key thing is that you run the jucheck.exe in your Java directory.

“C:\Program Files\Java\jre1.6.0_01\bin\jucheck.exe”

image

Now when the scheduled task runs once a month, or whenever you schedule it, you’ll get this dialog if there is a new version, or another dialog stating there are no updates to Java.

image

It’s actually somewhat ironic that there’s an update to Java on the day that I write this article…