Microsoft Archives

Code to Display on Console in Windows Phone

The following codes will help you to display various contents in the console.

Display a simple text in the console :

 

Display an integer in the console :

 

Display a combination of string and integer in the console :

int myNumber = 5; // Consider an integer object

Console.WriteLine("My Number is "+myNumber+".");  // This is to display a combination of string and integer in the console.

Output : My Number is 5.        // This will be the output

Incoming search terms:

  • Microsoft|Web eCommerce iOS Android ArduinoandSEO

Turn OFF Windows Update through REGISTRY edit

If you want to disable your Windows Update service and you cannot do it through the Windows Update options then you need to move through the System Registry to disable it. Follow the steps listed below.
  1. Start regedit.exe on the machine where you want to disable Windows Update.
  2. Go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer.
  3. From the Edit menu, select New, DWORD value.
  4. Enter a name of NoWindowsUpdate, and press Enter.
  5. Double-click NoWindowsUpdate, and set it to 1.
  6. Close regedit.

At times you can’t delete some files from your system or you may be under virus attack, or can’t access your files after booting. Here you need to boot up in the Safe Mode.

You have three  options,

1. Safe Mode

2. Safe Mode with Networking

3. Safe Mode with Command Prompt

The safe Mode with Command Prompt is the most powerful Safe Mode since it loads only the very basic drivers and system files for the working of your system. You will have full access to your files in the system.

If you select this option then you will end up booting DOS. Now you need to type “explorer” in the DOS command Line. Now the Windows Explorer will load and you may do the Rescue or backup actions….

If you are a victim of some virus attack and you lost your task bar, the there is a method to re-enable your task bar. You need to open the Group Policy edit.

Type GPEDIT (or GPEDIT.MSC) in RUN and press enter.

You can see “Computer Configuration” and “User Configuration”.

Expand User Configuration, then Administrative Templates and then the System.

Click on the “Ctrl+Alt+Del” Options.

On  the right panel click on the “Remove Task Manager”. Open it and Set it to “Disabled”.

If you’re trying to remove a program and can not find it in the StartUp folder (usually C:\WINDOWS\Start Menu\Programs\StartUp), then you need to remove it through System Registry.

Open the Registry by typing “regedit” in the RUN (from START or window key + R).

you will see

1. HKEY_CLASSES_ROOT

2. HKEY_CURRENT_USER

3. HKEY_LOCAL_MACHINE

4. HKEY USERS

5. HKEY CURRENT_CONFIG

Move to [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run].

You can find all the KEYS of all startup programs there. Delete the unwanted keys. And now you can start your Windows OS without loading the undesired applications and services.

 

NOTE: instead of permanently removing the startup keys, you can disable its startup by taking the MSCONFIG (type MSCONGIF in RUN) and unchecking the unwanted  apps checkbox.

32 core CPUs

Intel has been very good about sticking to its road map. A six-core CPU based on the Itanium design should be out imminently, when Intel then shifts focus to a brand-new architecture called Nehalem, to be marketed as Core i7. Core i7 will feature up to eight cores, with eight-core systems available in 2009 or 2010. An eight-core AMD project called Montreal is reportedly on tap for 2009.Intel will roll out 32-nanometer processors (down from today’s 45nm chips) in 2009.

After that, the timeline gets fuzzy. Intel reportedly canceled a 32-core project called Keifer, slated for 2010, possibly because of its complexity . That many cores requires a new way of dealing with memory; apparently you can’t have 32 brains pulling out of one central pool of RAM. But we still expect cores to proliferate when the kinks are ironed out: 16 cores by 2011 or 2012 is plausible (when transistors are predicted to drop again in size to 22nm), with 32 cores by 2013 or 2014 easily within reach. Intel says “hundreds” of cores may come even farther down the line.

In Windows OS, if you cannot access or modify GPT disk, you can convert a GPT disk to MBR by DiskPart. But doing so will remove all data and partition structures in the disk.

First Confirm that the Drive is detected and visible in Device Manger and Disk Management.

1. Open Command Prompt as an Administrator (click Start–> Run, type in “cmd” in textbox, and hit “OK”)

2. Enter “DiskPart” and hit enter.
Now the Dos prompt will change to “DISKPART>”

3. Enter “list disk” and hit enter.
This will list all disks attached to the machine. Cross check with the size and name of the disk.

4. Select the desired disk using the “select” command. This will fix the focus to the specified disk.
For example “select disk 0″.

5. Now erase the entire drive using the “clean” command.
Warning: This command will erase all data on the selected disk, backup your data first.

6. Enter Exit and close command-prompt.

7. Open Disk management. (click Start–> Control Panel–> Administrative Tools –>Computer Management–>Disk Management)

8. Right-Click on the drive and click Initialise Drive.

9. Now you can format the drive as you desrve. Right-Click and select format.

Incoming search terms:

  • gpt partition for imac
  • gpt protective partition mac
  • windows 8 disk management gpt protective partition

To add code inside word 2003 or older:

  1. Click insert–> object
  2. choose “Microsoft word Document” from the list: it will open a new embedded word document
  3. copy past your code from Visual Studio / Eclipse / editor inside this embedded word page
  4. save and close

 

To add code inside word 2007:

  1. go to “insert” tab, click “object” button (it’s on the right)
  2. choose “openDocument Text”: it will open a new embedded word document
  3. copy past your code from Visual Studio / Eclipse inside this embedded word page
  4. save and close

Here are the advantages of this method:

  • the code keeps its original layout and colors
  • the code is separated from the rest of the document, as if it was a picture or a chart
  • spelling errors won’t be highlighted in the code
  • The result looks very nice.

And it takes only few seconds.

 

For OpenOffice there is a more simple way using an addon..
Code Formatter
Colorize C++, C#, Perl, Python, Java, StarBasic, and XML can be color coded for a better appearance.

StarBasic is formatted like the OOo IDE. Java colors mimic those in Eclipse.

Download it from here…
http://extensions.services.openoffice.org/project/CodeFormatter

Incoming search terms:

  • copy arduino code to word
  • java code to insert a word document into a word document
  • java code in openoffice einfügen
  • insert xml code word
  • insert visual studio code in word
  • insert opendocument text word
  • insert object opendocument mac ms word
  • insert java code in word document
  • insert code to word
  • insert code java into openoffice

Serious flaw in Internet Explorer browser

Microsoft has warned about a flaw on the Internet Explorer browser that could allow hackers to take control of unprotected computers.

The bug allows hackers to inject malware onto any system if they manage to trick users into visiting booby-trapped websites. Anyone with Internet Explorer (IE) 6 to 8 is potentially affected.

The code to exploit the bug has already been published. The computer giant said there was no evidence it was being used yet by criminals but they were “investigating” and working on a permanent fix, reports the Daily Mail.

The bug targets how the browser manages a computer’s memory when it is processing Cascade Style Sheets — which are design instructions that determine how most web pages look.

Hackers can inject their own code into the stream of instructions and in this way hijack the PC.

Although Microsoft has improved how memory management is protected, it does not work when some older parts of Windows are called on.

The bug first came to light on the seclists.org full disclosure mailing list earlier this month.

USDA Moves to the Microsoft Cloud:

The United States Department of Agriculture (USDA) announced that it is on the verge of going live with a commercial cloud service offering for its Enterprise Messaging Service (EMS), which includes e-mail, webconferencing, document collaboration and instant messaging. USDA will become the first Cabinet-level agency to move its e-mail and collaboration applications to the cloud, a rapidly growing form of computing involving flexible, scalable services delivered over the Internet. Read the rest of this entry

Page 1 of 212