Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1651.

Solve : Using cURL to connect to IRC in PHP?

Answer»

I don't have the option of using fsockopen at my host, so I am wondering if there is a way to use cURL instead to connect and talk to an IRC server.

I can connect perfectly fine using this code :

Code: [Select]$url = 'irc.freenode.net';
$ch = curl_init();
$timeout = 10;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_PORT, 6667);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
$OUTPUT = @curl_exec($ch);
echo '<pre>';
print_r(curl_getinfo($ch));
print_r($output);
echo '</pre>';
echo "\n\ncURL ERROR number:" .curl_errno($ch);
echo "\n\ncURL error:" . curl_error($ch);
curl_close($ch);
That's as far as I can get. I can't work out how to send commands such as WHO, LIST ect to the server and then get the response.

Can anyone SHED some light please ? Is it even possible ?I don't think it would work. SIMPLY because cURL with close the connection as soon as the script ends, and you want it to stay alive until you want to log out. I don't need to maintain a connection. All I need to do is connect, get a list of people in the room and then leave.

Thanks for the reply Looks like I stumped the experts then No, you just stumped the IRC and PHP developers. Hmm read 187 times....I guess it can't be done.

1652.

Solve : Java program not looping as intended.?

Answer»

Note:

I want a nice hint. Please DO NOT just tell me what to put. Yes, this is for a class.

My teachers (intelligible) advice was "There is garbage in the buffer. Read another line before reading the employee name." Which I can make no sense from.

I have a java program I am trying to repeat while a CERTAIN condition is true.

There are three sections.

First, it prompts for a name. If the name is "Stop" the program quits. If not, it continues.

Next, it prompts for pay rate and hours worked. If number is negative, it prompts for positive number.


It is supposed to repeat all three sections until the Name is "Stop". HOWEVER, it skips the name entry section when repeating.

Can someone give me a hint or advice as to where to look for the error? I am still trying to learn.

Thanks!

[recovering disk space, attachment deleted by admin]Writing out the flow of how this will all work as a flow chart before programming it will make it easier, you can then ADD comments within your program and note them on your flow chart on paper. You then program it up and when something goes wrong instead of looking at raw code, you will have a map of what should be happening with comments in the code to relate to each piece of this. This is extremely beneficial later on when working with much larger projects than this.

Having all inputs contained within a loop with a counter would be my advice. After all input has been entered. You test for stop. If stop is found it ends program. If stop is not entered and other information is input, then you increment the counter++ to break out of the input information while loop. My guess is that you will want NESTED loops which allow for you you pass the user in and out of loops for additional entries etc vs having to run the program again from scratch to be able to enter the next info. To get back into the nested while loop you can have an IF statement that changes the value of this counter back to say 0 in which 1 is the exit for the loop, forcing the value from 1 back to 0 will cause for you to be able to enter the next entry of info.

Tricky trying to explain this without just posting a code example that is more straight forward, but I think you will figure it out from what I am sharing for info.

As far as garbage in the buffer. This is corrected by reinitializing the variables back to null or some other value so that there is no possibility that information ( garbage ) can be inherrited into another portion of your program. As far as the employee name comment, I cant make sense of what the teacher was getting at, other than the employee name entry would be the perfect location to test the input string for "stop".Quote

My teachers (intelligible) advice was "There is garbage in the buffer. Read another line before reading the employee name." Which I can make no sense from.
Interestingly, their solution to read another line is correct, though they do poorly at explaining why. There isn't really "Garbage" in the buffer. What is happening is that nextFloat() and similar functions don't read passed the next carriage return, so they 'leave it' in the input buffer. So when you enter the number of hours worked that Carriage return is still there; nextLine() will have input to read right away.

You can either call nextLine() immediately after reading via nextFloat() each time to swallow the carriage return or use nextLine() to read in a string for the numeric inputs and use Float.parseFloat() to TRY to convert them. The latter will require exception handling so the former would probably be easier for this instance.


Thank you both very much.

I got the program to start repeating correctly thanks to you guys, and I understand much better now!

YAY!

Thanks again!
1653.

Solve : Flash and xml?

Answer»

i have this CODE

Code: [Select]var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();


xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest("mani-admin.xml"));


function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseBooks(xmlData);
}

function ParseBooks(bookInput:XML):void {
trace("XML Output");
trace("------------------------");

var authorList:XMLList = bookInput.item.text();
mani.text = "";
for each (var authorElement:XML in authorList) {
trace(authorElement);

mani.text += authorElement + "\n";
}
}
and it loads an xml file into flash and PRODUCES the results on screen

i am slightly confused as to how i would adapt it for two more xml files

any suggestions would be great i am using AS3 btw and the two other xml files i want to include are called sourcemod.xml and match-configs.xml

the xml used in that code is

Code: [Select]<?xml version="1.0" ENCODING="UTF-8" ?>
<downloads>
<item>New Text Document - Copy (2) - Copy.txt</item>
<item>New Text Document - Copy (2).txt</item>
<item>New Text Document - Copy (3).txt</item>
<item>New Text Document - Copy - Copy.txt</item>
<item>New Text Document - Copy.txt</item>
<item>New Text Document.txt</item>
</downloads>

ignore the fact its multiple text files as i am only testing the script

1654.

Solve : Perl help "permission denied" when reading files from directory.?

Answer»

I'm getting a "permission denied" error from the local computer,(WinXp), when I try reading files to upload to my FTP server.
This happens whether its a single FILE or reading multiple files from a directory.
Also tried with passive on or off.

Reading from directory error:
"Cannot open Local file C:\Documents and Settings\user\Folder1\Folder2\file: Permission denied"



Code: [Select]use File::HomeDir;
use NET::FTP;


$PATH=home()."\\My Documents\\My Pictures";

my $server = "FTP.server.net";
my $username = "usr";
my $pass = "pass";

print "Connecting to $server..";

# Set up connection
$ftp = Net::FTP->new( $server, Passive => 0, Debug => 3 ) or die [emailprotected];
print "..authenticating..";

# Log in...
$ftp->login( $username, $pass ) or die $ftp->message;
print "..done!\n";

print $ftp->pwd (), "\n";
$ftp->cwd('/ftp') or die $ftp->message;
print $ftp->pwd (), "\n";

# set mode to binary
$ftp->binary();

# read local directory to upload files
opendir(DIR, "$path");
my @files = readdir(DIR);
foreach my $file (@files)
{
if (not -d $file)
{


$ftp->put("$path\\$file") or die " Upload error, quiting..";
}
}
$ftp->quit();

Single file code give a "permission denied" error.

Code: [Select]use Net::FTP;
use File::HomeDir;

my $server = "ftp.server.net";
my $username = "user";
my $pass = "pass";


$path=home()."\\My Documents\\My Pictures";

print "Connecting to $server..";

# Set up connection
$ftp = Net::FTP->new( $server, Passive => 1, Debug => 1 ) or die [emailprotected];
print "..authenticating..";

# Log in...
$ftp->login( $username, $pass ) or die $ftp->message;
print "..done!\n";

print $ftp->pwd (), "\n";
$ftp->cwd('/') or die $ftp->message;
print $ftp->pwd (), "\n";

# Upload file

$ftp->binary();
$ftp->put("$path\\File.txt");
$ftp->quit();Ok I figured it out, it was the "or die" part of my code.

When ever it came to a folder the script would quit giving me the "Permissions error".

Removing the 'or die" part seems to solve this. Actually changing it to 'warn' is probably better.

Now if I can figure out how to upload folders recursively that would be great.

1655.

Solve : Need help with program language C (Using Arduino)?

Answer»

I want to make a password security system with the help of buttons on my arduino. We NEED to use 3 buttons and the password should have 4 numbers in it. If you get the code right it should light up the green light if you get it wrong it should light up the red one

I am having problems with making strings. My original idea was to make a string which contains the password ( 1231) and another string that doesnt have a VALUE. But if you press on the first button its goes unusedstring = unusedstring + 1 if you press the second button it goes unusedstring = unusedstring + 2 and if you press the third it goes unusedstring = unusedstring +3.

And if the length of unusedstring eqauls 4.
Then it should check if the unusedstring and the password are similar.
And if unusedstring is 1231 then it should light up the green one
If it got it wrong it should light up the red one. And after it does one of these 2 things it should RESET the unusedstring. So that people can try to guess the code again.



Also, just 1 guy in my class has this one, but his doesnt contains strings. He says it actualy harder to use string

MY CODE SO FAR
_______________________________________ _______________________________________ _____________________________


const int buttonPin1 = 2;
const int buttonPin2 = 3;
const int buttonPin3 = 4;
const int ledPinRood = 6;
const int ledPinGroen = 7;

String GoedeCode = String("1233");
String AntwoordCode = String("");
String IngevuldeCode;
int buttonState1;
int buttonState2;
int buttonState3;
int lastButtonState1 = LOW;
int lastButtonState2 = LOW;
int lastButtonState3 = LOW;



long lastDebounceTime = 0;
long debounceDelay = 50;


void setup()
{
pinMode(buttonPin1, INPUT);
pinMode(buttonPin2, INPUT);
pinMode(buttonPin3, INPUT);
pinMode(ledPinRood, OUTPUT);
pinMode(ledPinGroen, OUTPUT);

}

void loop()
{

int reading1 = digitalRead(buttonPin1);
int reading2 = digitalRead(buttonPin2);
int reading3 = digitalRead(buttonPin3);


if (reading1 != lastButtonState1 || reading2 != lastButtonState2 || reading3 != lastButtonState3)
{
if (reading1 != buttonState1)
{
buttonState1 = reading1;
if (buttonState1 == HIGH)
{
IngevuldeCode = AntwoordCode + 1;
AntwoordCode = IngevuldeCode;
}
}

if (reading2 != lastButtonState2)
{
buttonState2 = reading2;
if (buttonState2 ==HIGH)
{
IngevuldeCode = AntwoordCode + 2;
AntwoordCode = IngevuldeCode;
}
}

if (reading3 != lastButtonState3)
{
buttonState3 = reading3;
if (buttonState3 ==HIGH)
{
IngevuldeCode = AntwoordCode + 3;
AntwoordCode = IngevuldeCode;
}
}

}
}


if (IngevuldeCode.length() == 4)
{
if (IngevuldeCode == GoedeCode)
{
digitalWrite(ledPinGroen, HIGH);
delay(3000);
digitalWrite(ledPinGroen, LOW);
IngevuldeCode = "";
AntwoordCode = "";
}
else
{
digitalWrite(ledPinRood, HIGH);
delay(500);
digitalWrite(ledPinRood, LOW);
delay(500);
digitalWrite(ledPinRood, HIGH);
delay(500);
digitalWrite(ledPinRood, LOW);
delay(500);
digitalWrite(ledPinRood, HIGH);
delay(500);
digitalWrite(ledPinRood, LOW);
IngevuldeCode = "";
AntwoordCode = "";
}

}


}




If you got any question, ask me.


1656.

Solve : Java program to pass input from textfield to a process?

Answer»

I am trying to write a java program to act as an interface for PocketMine.
I can only get input to be passed to the program when it is run.
Im sorry for the lack of comments.
I've only used it on linux so it is not setup to WORK with windows paths.
The coding is pretty terrible it was GOING to be just PROOF of concept, but I am now rather FRUSTRATED that I can not pass input to the process.
I just took my eclipse project and put it into a zip file.

[recovering disk space, attachment deleted by admin]

1657.

Solve : W7 Run Xcopy as administor?

Answer»

Why are you moving a .BMP into the SYSTEM folder? I can't find any in mine.Code: [Select]runas /USER:%COMPUTERNAME%\ADMINISTRATOR cmd /c xcopy "File.txt" "C:\windows\system32"

1658.

Solve : Perl FTP problem Can't list files?

Answer»

I'm getting a "Bad file descriptor" error when I try and LIST the files on my FTP server.
Server is *nix, trying to connect on my WinXP box
I can connect and login just won't list any files.
Tried 'ls' as well as 'dir' with same result.

Code: [Select]my $host="FTP.server.net";
my $DIRECTORY="/";

$ftp=Net::FTP->new($host,Debug=> 1,Passive=> 1,Timeout=>240) or $newerr=1;
PUSH @ERRORS, "Can't ftp to $host: $!\n" if $newerr;
myerr() if $newerr;
print "Connected\n";

$ftp->login("user","PASS") or $newerr=1;
print "Getting file list";
push @ERRORS, "Can't login to $host: $!\n" if $newerr;
$ftp->quit if $newerr;
myerr() if $newerr;
print "Logged in\n";

$ftp->cwd($directory) or $newerr=1;
push @ERRORS, "Can't cd $!\n" if $newerr;
myerr() if $newerr;
$ftp->quit if $newerr;


@files=$ftp->dir or $newerr=1;
push @ERRORS, "Can't get file list $!\n" if $newerr;
myerr() if $newerr;
print "Got file list\n";
foreach(@files) {
print "$_\n";
}
$ftp->quit;


sub myerr {
print "Error: \n";
print @ERRORS;
exit 0;
}

1659.

Solve : Perl help with chdir in WinXp?

Answer»

In C, you can use '%usrename%' when changing directories.
Like this:
Code: [Select]$path = "C:\\documents\\%username%\\dir1\\dir2";
Does Perl have something like that??
I want to be able to change directories with out having to type code for every USER name.
use the $ENV hashtable...

Code: [Select]$path = "C:\\documents\\".$ENV{USERNAME}."\\dir1\\dir2";


or, you could use USERPROFILE instead, which will WORK more readily across windows versions.



Code: [Select]$path= $ENV{USERPROFILE}."\\dir1\\dir2";

Or, you could make a more generic cross platform SOLUTION by using FILE::HOMEDIR, and DUMP environment variables altogether...

Code: [Select]use File::HomeDir;
$path=home()."\\dir1\\dir2";

Quote from: BC_Programmer on July 29, 2010, 10:40:16 PM

use the $ENV hashtable...

Code: [Select]$path = "C:\\documents\\".$ENV{USERNAME}."\\dir1\\dir2";


or, you could use USERPROFILE instead, which will work more readily across windows versions.



Code: [Select]$path= $ENV{USERPROFILE}."\\dir1\\dir2";

Or, you could make a more generic cross platform solution by using FILE::HOMEDIR, and dump environment variables altogether...

Code: [Select]use File::HomeDir;
$path=home()."\\dir1\\dir2";



Thanks BC_, thats just what I needed.

I REALLY like the last one:
Code: [Select]use File::HomeDir;


$path=home()."\\dir1\\dir2";
1660.

Solve : AutoHotkey GUI?

Answer»

I'm just wondering how to get variables from GUI elements. I tried ADDING vFkey before the coordinates for a dropdown box, but that makes the location of the dropbox change (I need it where it is). Here is the code for the creation of all my elements.

Gui, Add, Radio, x0 y0 w60 h20 , On
Gui, Add, Radio, x0 y20 w60 h20 , Off
Gui, Add, Text, x60 y0 w80 h40 , Choose the HOTKEY for the item to be used.
Gui, Add, BUTTON, x140 y20 w80 h20 , Apply
Gui, Add, DropDownList, x140 y0 w80 h60 , F1||F2|F3|F4|F5|F6|F7|F8|F9|F10
Gui, Show, x1052 y2 h42 w222, Auto-Healer By Raidue

If you would PLEASE show where the variable names go for the radio buttons and the DropDownList, that would be greatly appreciated.I really, really THINK that you would get better results on an Autohotkey forum. I have used AutoIt which is better, and there are forums dedicated to both. The Autoit forum has a fearsome admin who gives out bans with hesitation. Quote from: Salmon Trout on July 28, 2010, 01:09:33 PM

I really, really think that you would get better results on an Autohotkey forum. I have used AutoIt which is better, and there are forums dedicated to both. The Autoit forum has a fearsome admin who gives out bans with hesitation.
I'll check the AHK forum then!
1661.

Solve : SQL Server Trigger?

Answer»

I need to create a Trigger for when a ROW is updated to automatically SET the UPDATER and udate_date to the current user and the current date respectively, but I am having trouble doing this. The following is what I currently have:

Code: [Select]CREATE TRIGGER update_projects
ON PROJECTS
FOR update
AS
UPDATE projects
SET updater = SUBSTRING(SUSER_NAME(), 5, LEN(SUSER_NAME()) - 4),
udate_date = GETDATE()
WHERE projects.id_num = inserted.id_num
But SQL Server tells me:

Msg 4104, Level 16, State 1, Procedure update_projects, Line 5
The multi-part identifier "inserted.id_num" could not be bound.

How can I make this trigger work properly?Problem solved.
I really HATE SQL.

Code: [Select]CREATE TRIGGER update_projects
ON projects
AFTER update
AS
IF NOT UPDATE(updater) OR NOT UPDATE(update_date)
UPDATE projects
SET updater = SUBSTRING(SUSER_NAME(), 5, LEN(SUSER_NAME()) - 4),
update_date = GETDATE()
WHERE id_num IN (SELECT id_num FROM inserted)

1662.

Solve : Joomla Coding?

Answer»

Hi All newbie to HTML CODING here so need some help. I am teaching myself some basic coding to set up a basic input screen to assist in data collection in cottage industry bushiness IE very very SMALL ( Just 2 people) I am trying to write a code to add 3 input vales TOGETHER and average the result ( to 3 decimal places).

So far I have got


Unforntualy it will not work....any advice on what i am doing wrong ?

1663.

Solve : Help needed for a batch file please?

Answer»

Hi guys,

Im trying to add a line of code into a .txt file using a batch file, but want to add it ad a certain point.

The .txt file is called 'test.txt' and located on my DESKTOP and the contents of the .txt file are -

this is line 1
this is line 2
this is line 3

My code as present is -

@ECHO OFF
start notepad "C:\Users\xxx\Desktop\test.txt"
echo. >>"C:\Users\xxx\Desktop\test.txt"
echo ADDED text>>"C:\Users\xxx\Desktop\test.txt"
TASKKILL /F /IM notepad.exe

This batch file opens the file and changes it to -



this is line 1
this is line 2
this is line 3

added text



And then closes it.

I want to put the "added text" after "this is line 2" so it shows -



this is line 1
this is line 2
added text
this is line 3



Can anybody help me please?Notepad is not scriptable using batch language. You could use VBScript or Powershell which WOULD make quick work of this TASK. In batch you need to script the file contents. This little snippet is specific to your situation, but it works:

Code: [Select]@echo off
setlocal enabledelayedexpansion

for /f "delims=" %%i in (C:\Users\xxx\Desktop\test.txt) do (
set /a COUNT=!count!+1
if !count! GEQ 3 goto next
echo %%i >> C:\Users\xxx\Desktop\test.new
)

:next
echo This is Added Text >> C:\Users\xxx\Desktop\test.new
for /f "skip=2 delims=" %%i in (C:\Users\xxx\Desktop\test.txt) do (
echo %%i >> C:\Users\xxx\Desktop\test.new
)

Your Win7 machine comes installed with better tools than batch (Powershell and VBScript among them). Have you considered using any of them?

Good luck. Make sure you always initialize your variables. You could just simplify this a bit as well.

Code: [Select]@echo off
setlocal enabledelayedexpansion

set count=0
for /f "delims=" %%i in (C:\Users\xxx\Desktop\test.txt) do (
set /a count=!count!+1
if !count! NEQ 3 (
echo %%i >> C:\Users\xxx\Desktop\test.new
) else (
echo ADDED TEXT HERE >> C:\Users\xxx\Desktop\test.new
)
)

1664.

Solve : VSPVBA.exe for netmanage 3270 emulator?

Answer»

Greetings all. At work we use a 3270 emulator that comes with a VBA script player called VSPVBA.exe. I am wondering if anyone has heard of it, and if so, if anyone knows of a way to run it from a command prompt and have it execute a vba file passed in the command, rather than it opening a "OPEN Script File" dialog at which point I have to navigate to the VBA file I want to run. I know this is probably grabbing at straws, but I SURE would appreciate any help. We all use Windows 7 32 bit. Thank you.

GregWhat happens if at command prompt you enter the following?

VSPVBA.exe file_to_open.extension

The script file needs to reside in the root of where VSPVBA.exe is for this example. Replace file_to_open.extension
with the script to launch.

BTW: I havent used this VSPVBA before, but this method works for other applications and may work for this as well.

In other applications it will launch the EXE and load the file associated with the launch INSTRUCTION if the EXE supports explicit execution of supported script files etc. ALSO if there are any spaces in the name of the files you sometimes have to bind the filename or PATH to file with " " such as VSPVBA.exe "file to open.extension"Thank you Dave for the assist. I managed to find a list of command line switches and found -s works. So, my command would be
c:\netmanag.32\vspvba.exe -s filename.vba

This works like a charm.

GregGood to hear it worked with -s switch added in.

1665.

Solve : C# Thread safe bitmaps in timer?

Answer»

Hi. I'm guessing BC programmer can help me with this

I'm working on a simple game engine in C# using GDI. I've just gotten it to the point where I should be able to load an object in and have it move around the screen. I've added my animation code to a timer callback, and now it won't compile because I guess the bitmap and graphics objects are not thread safe. Could you help? I'm pretty new to multithreading. I think I need to lockbits or something, but I don't actually need to modify the bitmaps from inside the timer, just render them. Maybe you'll know a better way to structure this?

Here is the code to test the engine:
Quote

engine = new GameEngine();

Bitmap[] spr1 = new Bitmap[1];
spr1[0] = new Bitmap("Kit2.bmp");

GameEngine.Sprite1D goodly = new GameEngine.Sprite1D(spr1, 10, 10);
goodly.Animated = false;
goodly.MoveSprite(100, 100, 100);
engine.theSprites1D.Add(goodly);

Here is the engine code:
Quote
class GameEngine
{
public Bitmap screenBuff = new Bitmap(320, 200);
private Graphics g;
private Timer mainTimer;

private Bitmap background = new Bitmap("thing.bmp");

public PointF pointZeroF = new PointF(0, 0);
public Point pointZero = new Point(0, 0);

public class Sprite1D
{
public string NAME = String.Empty;
public Point POSITION = new Point(0, 0);
public int Frame = 0;
public int aniTickCount = 0;
public int movTickCount = 0;
public bool Animated = true;
public bool Enabled = true;
public int MovementSpeed = 0;
public int AnimationSpeed = 0;
public Point newPosition = new Point(0, 0);
public Bitmap[] image;

public Sprite1D(Bitmap[] img, int X, int Y)
{
image = img;
Position = new Point(X, Y);
}

public void MoveSprite(int newX, int newY, int speed)
{
newPosition = new Point(newX, newY);
MovementSpeed = speed;
}

public void SetPosition(int newX, int newY)
{
Position = new Point(newX, newY);
}
}

public class Sprite4D : Sprite1D
{
public int direction = 0;
public Bitmap[] imgRight;
public Bitmap[] imgLeft;
public Bitmap[] imgUp;
public Bitmap[] imgDown;

public Sprite4D(Bitmap[] img, int X, int Y)
: base(img, X, Y)
{

}
}

public List<Sprite1D> theSprites1D = new List<Sprite1D>();
public List<Sprite4D> theSprites4D = new List<Sprite4D>();

public GameEngine()
{
g = Graphics.FromImage(screenBuff);
mainTimer = new Timer();
mainTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
mainTimer.Interval = 10;
mainTimer.Enabled = true;
}

private static void OnTimedEvent(object source, ElapsedEventArgs e)
{
//first render background image
g.DrawImageUnscaled(background, pointZero);

//loop through all sprites
foreach (Sprite1D sprite in theSprites1D)
{
if (sprite.Enabled)
{
//animate the sprite
if (sprite.Animated)
{
if (sprite.aniTickCount == sprite.AnimationSpeed)
{
if (sprite.Frame < sprite.image.Length)
sprite.Frame++;
else
sprite.Frame = 0;

sprite.aniTickCount = 0;
}

sprite.aniTickCount++;
if (sprite.aniTickCount > 500)
sprite.aniTickCount = 0;
}

//move the sprite
if (sprite.newPosition != pointZero && sprite.MovementSpeed > 0)
{
if (sprite.movTickCount == sprite.MovementSpeed)
{
if (sprite.Position.X > sprite.newPosition.X)
sprite.Position.X--;
else
sprite.Position.X++;

if (sprite.Position.Y > sprite.newPosition.Y)
sprite.Position.Y--;
else
sprite.Position.Y++;

sprite.movTickCount = 0;
}

sprite.movTickCount++;
if (sprite.movTickCount > 500)
sprite.movTickCount = 0;
}

g.DrawImageUnscaled(sprite.image[sprite.Frame], sprite.Position);
}
}
}
}
Until BC shows up, you may want to read t his over:
http://stackoverflow.com/questions/11623039/how-to-make-objects-threadsafe-on-c
Also:
http://stackoverflow.com/questions/17975884/c-sharp-variable-thread-safety
More:
http://stackoverflow.com/questions/22229702/threadsafe-over-bitmap-in-c-sharp
Quote
Any public static (SHARED in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
I don't understand why it wouldn't be able to compile. Threading problems such as this usually result in an InvalidOperationException at run-time.

Quote
now it won't compile because I guess the bitmap and graphics objects are not thread safe
If it doesn't compile, it emits compile errors. Those would be useful to know.

At any rate, you shouldn't be drawing in the timer procedure anyway.

My game's 2-D "engine" loaded all bitmap assets at startup. the Bitmap constructor accepting a filename is unreliable, for what it's worth- to load Image data I used what is found here:

Basically, instead of using the file, it read the entire file into a Memory Stream, and then used Image.FromStream().

It didn't use Bitmaps for assets, since they did not need to be changed.

The actual game logic was in a separate thread. Which can be seen here (side note, If I was writing it now I would probably use an interface-based approach to "gamestates" rather than simply using an enum and a large switch statement). The separate Thread does absolutely no drawing- it simply performs the game logic. However, each frame it will also attempt to invoke a repaint:

Code: [Select]PicGame.Invoke((MethodInvoker)(() =>
{
PicGame.Invalidate();
PicGame.Update();
}));
The Invoke is required because the GameProc() thread is not on the UI thread. only the UI thread can call the methods of Win Forms controls (otherwise, we get the aforementioned InvalidOperationException- "Cross-thread operation not valid" or something to that effect). In this case it simply invalidates the PictureBox being used to display the game and forces it to Update. In turn, this will cause the Picturebox's Paint event to be called- it get's called on the UI thread. Both the gameproc as well as the drawing routine however lock on certain things to prevent them both from accessing things simultaneously, which could cause problems. It paints to a backbuffer and then that backbuffer get's drawn to the Graphics object provided to the event (e.Graphics).

I would never use a Timer for this sort of thing, since Timers are EXCEEDINGLY unreliable. I base this on having used Timers before, and finding them to be unreliable. This holds especially true if you are using the System.Windows.Forms.Timer.


Quote
I don't understand why it wouldn't be able to compile. Threading problems such as this usually result in an InvalidOperationException at run-time.

You are correct. I was being inaccurate. What I meant to say was it has a run-time error with a message like you described.

I see what your saying, but I don't understand why your game doesn't just run at full CPU speed if you're not using a timer to update your frames. Could you explain to me how I should do this instead of using a timer? If you know of any examples of rendering bitmaps using GDI at a specific speed, that would be useful. I'll take a look at the code for your game when I have some time.Quote from: Linux711 on May 12, 2014, 10:08:09 PM
I see what your saying, but I don't understand why your game doesn't just run at full CPU speed if you're not using a timer to update your frames.
It does run at full CPU speed. That is the entire point of not using Timers. The game logic runs as fast as it POSSIBLY can, if it goes faster than the desired framerate it will interpolate; if slower, than it will move objects faster. Whether the game receives CPU cycles is up to the Thread scheduler.

Quote
Could you explain to me how I should do this instead of using a timer? If you know of any examples of rendering bitmaps using GDI at a specific speed, that would be useful. I'll take a look at the code for your game when I have some time.
Referring back to my game (I opened it for the first time in maybe a year and a half now...). Basically it tracks the FPS and if it's below 30 all movement and changes will be scaled appropriately; at 15fps for example an object will move faster each tick in order to keep up with what would be a normal rate. This prevents objects from actually moving slower, with the side effect of causing jerky motion (which also screws with other stuff such as hittesting, but that's another topic).

A Timer is designed for- as it says on the tin- something you want to happen at a repeating rate. But more importantly no Timer implementation is particular stringent about that actual rate. It takes your 100ms as a guideline, not a rule.
Additionally, using a Timer introduces idle time, which is what you want to avoid. It should run as fast as possible to make the experience as smooth as possible.
1666.

Solve : [help needed] Error in batch to check md5 and patch with xdelta or bsdiff?

Answer»

I've made a batch file and using few tricks I've made it work quite well but didn't realized that script will generate quite long command and many variables to work with, which generates error.

The error which sometime appears!
not ENOUGH storage is available to process this command.

Code: [Select]@echo off
set oldfiledir=E:\patch\12
set newfiledir=E:\patch\15
set patcheddir=%~dp0
IF %patcheddir:~-1%==\ SET patcheddir=%patcheddir:~0,-1%
@pause >nul
for /F %%B in ('dir "%newfiledir%\*" /A:-D /S /B') do for /F %%A in ('dir "%oldfiledir%\*" /A:-D /S /B') do (
IF NOT EXIST "%patcheddir%\patched%%~pA" md "%patcheddir%\patched%%~pA"
IF "%%~nxB" == "%%~nxA" For /F %%D in ('md5sums -u "%%B"') do for /F %%C in ('md5sums -u "%%A"') do (
IF NOT "%%D" == "%%C" bsdiff "%%A" "%%B" "%patcheddir%\patched%%~pnxA.bsdfp" )
)
ECHO Complete! Press any key to exit!
@pause >nul
What the batch is doing.

It TAKES files from 2 folders, e:\patch\12 with old files and then e:\patch\15 new files.
Then compare the files from first dir by name and extension to the file from second dir to check if file name and extension matches. After that md5sums does same check, but only checks the files that matches by name and extension, so we to be sure we are checking data1.dll with newer data1.dll and not with data2.dll, if the md5 of data1.dll does not match with the md5 of the newer data1.dll then use bsdiff to create the patch and put that patch into a new directory.

Now how i can do that script working?

The echo bellow is from the same script without showing the error, but probably on bigger files it does showing error. I receive the said error only on files that are quite yuge on file size.
Code: [Select]E:\patch>(
IF NOT EXIST "E:\patch\patched\patch\12\Dll\" md "E:\patch\patched\patch\12\Dll\"
IF "data1.dll" == "data1.dll" For /F %D in ('md5sums -u "E:\patch\15\Dll\data1.dll"')
do for /F %C in ('md5sums -u "E:\patch\12\Dll\data1.dll"')
do (IF NOT "%D" == "%C"
bsdiff "E:\patch\12\Dll\data1.dll" "E:\patch\15\Dll\data1.dll" "E:\patch\patched\patch\12\Dll\data1.dll.bsdfp" )
)

E:\patch>for /F %C in ('md5sums -u "E:\patch\12\Dll\data1.dll"')
do (IF NOT "6fc61964424ed6353b0b2c07c6863c20" == "%C"
bsdiff "E:\patch\12\Dll\data1.dll" "E:\patch\15\Dll\data1.dlll" "E:\patch\patched\patch\12\Dll\data1.dll.bsdfp" )

E:\patch>(IF NOT "6fc61964424ed6353b0b2c07c6863c20" == "6fc61964424ed6353b0b2c07c6863c20"
bsdiff "E:\patch\12\Dll\data1.dll" "E:\patch\15\Dll\data1.dll" "E:\patch\patched\patch\12\Dll\data1.dll.bsdfp" )
If you want to test with xdelta
replace IF NOT "%%D" == "%%C" bsdiff
with IF NOT "%%D" == "%%C" xdelta3-3.0.8.x86-32 -9 -S djw -e -vfs
and it will work with xdelta the same way as bsdiff too.

bsdiff for WIN32 http://sites.inka.de/tesla/others.html
xdelta https://code.google.com/p/xdelta/
md5 for win32 http://www.pc-tools.net/win32/md5sums/

I prefer bsdiff because it does not shows additional output and compression is much BETTER on patches.
If anyone can provide a gui which to do that for bsdiff it would be nice, i found a gui for xdelta but is written in net and it doesn't work on x64 bit so tried to write a batch for it instead, any help is appreciated. Thank you in advance!BUMP it is working, the error probably were coming out of bsdiff running out of memory, with xdelta i got all the files executed and checked.

Still i have a new problem, names with spaces are skipped, someone can help me out to find out why names with spaces not works well?
Also somehow script managed to patch 3 times one readme.txt, because it loops all files and compares the ones from first path to ones with second path, %%~nxA == %%~nxB thats why if see a file with duplicate name in several directories and find out that md5 it does not matches, then will make a patch. Which is a bug, still source directory can't be the same as output directory, otherwise if i set %%A == %%B will never make the patch, because input never matches the output. Solution?

Both scripts bellow working! ^^

Code: [Select]@echo off
set oldfiledir=E:\patch\old
set newfiledir=E:\patch\new
set patcheddir=%~dp0
IF %patcheddir:~-1%==\ SET patcheddir=%patcheddir:~0,-1%
IF EXIST newfiles.md5 del /F /Q newfiles.md5
IF EXIST oldfiles.md5 del /F /Q oldfiles.md5
for /F %%B in ('dir "%newfiledir%\*" /A:-D /S /B') DO for /F %%A in ('dir "%oldfiledir%\*" /A:-D /S /B') DO IF "%%~nxB"=="%%~nxA" (
IF NOT EXIST "%patcheddir%\patched%%~pA" md "%patcheddir%\patched%%~pA"
For /F "eol=* tokens=1 delims=*" %%D in ('md5sums -u "%%B"') DO For /F "eol=* tokens=1 delims=*" %%C in ('md5sums -u "%%A"') DO IF NOT "%%D"=="%%C" (
xdelta3 -0 -e -vfs "%%A" "%%B" "%patcheddir%\patched%%~pnxA.pxdelta"
ECHO.
ECHO %%~nxA *%%~nxB
ECHO %%D*%%B>>newfiles.md5
ECHO %%C*%%A>>oldfiles.md5
)
)
set oldfiledir=
set newfiledir=
set patcheddir=
ECHO Complete... press any key to quit!
@pause >nul
exit
Code: [Select]@echo off
set oldfiledir=E:\patch\old
set newfiledir=E:\patch\new
set patcheddir=%~dp0
IF %patcheddir:~-1%==\ SET patcheddir=%patcheddir:~0,-1%
IF EXIST newfiles.md5 del /F /Q newfiles.md5
IF EXIST oldfiles.md5 del /F /Q oldfiles.md5
for /F %%B in ('dir "%newfiledir%\*" /A:-D /S /B') do for /F %%A in ('dir "%oldfiledir%\*" /A:-D /S /B') do (
IF NOT EXIST "%patcheddir%\patched%%~pA" md "%patcheddir%\patched%%~pA"
IF "%%~nxB" == "%%~nxA" For /F %%D in ('md5sums -u "%%B"') do for /F %%C in ('md5sums -u "%%A"') do (
IF NOT "%%D" == "%%C" xdelta3 -0 -e -vfs "%%A" "%%B" "%patcheddir%\patched%%~pnxA.pxdelta"
ECHO.
ECHO %%~nxA *%%~nxB
ECHO %%D *%%B>>newfiles.md5
ECHO %%C *%%A>>oldfiles.md5
)
)
set oldfiledir=
set newfiledir=
set patcheddir=
ECHO Complete... press any key to quit!
@pause >nul
exit

1667.

Solve : Find and then run executable via batch file??

Answer»

I am trying to build computers, and I am writing a batch file to remove the junk.

I have found one application that doesn't seem to have an uninstaller string in the registry, but I've found that this will uninstall it without prompting:

"C:\SWSETUP\APP\PreReq1\HP\HPSupportAssist\7.2.23.56\src\UninstallHPSA.exe" /S

Is there a way to find this program and run it if the folder changes? I don't MIND including a few CYGWIN utilities, even bash, with my script, if they'll help.
You can use IF EXIST in a batch file to test to see if the file exists, and if it does to then run this script. It can be added to STARTUP folder of system that TESTS upon everytime the system is turned on or logged into with users who have this added to startup, or you can add it as an after hours scheduled task to perform this uninstall unattended if it exists.

http://stackoverflow.com/questions/4340350/how-to-check-if-a-file-exists-from-inside-a-batch-file

So yours would be something like this, where you would place the file to be detected as a POSITIVE for confirmation of installation into the "insert file name here" which would have to be brought to the directory containing the file to check for, for it to know where it is :

Code: [Select]if exist {insert file name here} (
rem file exists
START "C:\SWSETUP\APP\PreReq1\HP\HPSupportAssist\7.2.23.56\src\UninstallHPSA.exe" /S


) else (
rem file doesn't exist - do nothing
)

1668.

Solve : Classic ASP: error '800a000d' Type mismatch?

Answer»

Hello

I have a SIMPLE log-in form with four fields and the server gives me the FOLLOWING error:

Quote

Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "maria"]'

/schoolsReg/Login.asp, line 23

'maria' refers to my chosen password.

Line 23 is this: if username = "" or password or fullname or strEmail = "" then

strEmail corresponds to the email column in my MS Access 2003 database.

The rest of my CODE looks like this:

Code: [Select]<%
username = ""
password = ""
ErrorMessage = ""
strEmail = ""
fullname = ""

if request.form <> "" then
username = Request.Form("username")
password = Request.Form("password")
fullname = Request.Form("fullname")
strEmail = Request.Form("strEmail")

if username = "" or password or fullname or strEmail = "" then [color=red]<---- where the error occurs[/color]

ErrorMessage = "You must specify a username, password, your full name and email address."
else
set conn = Server.CreateObject("ADODB.Connection")

conn.Provider = "Microsoft.Jet.OLEDB.4.0"
conn.Open("E:\myDatabase.mdb")

set rs = Server.CreateObject("ADODB.recordset")

rs.Open "Select * FROM Users WHERE strEmail = '" & username & "'" & fullname & "'", conn

if rs.EOF = false then
if rs.fields("password") = password then
Response.Redirect("Default.asp")
end if
end if
ErrorMessage = "Login failed"
end if
end if

if ErrorMessage <> "" then
response.write("<p>" & ErrorMessage & "</p>")
response.write("<p>Please correct the errors and TRY again.</p>")
end if
%>

<h1>Login</h1>
<form method="post" action="">
<fieldset>
<legend>Log In to Your Account</legend>
<ol>
<li>
<label>Username:</label>
<input type="text" id="username" name="username" />
</li>
<li>
<label>Password:</label>
<input type="password" id="password" name="password" />
</li>

<li>
<label>Full name:</label>
<input type="text" id="fullname" name="fullname" />
</li>

<li>
<label>Email:</label>
<input type="text" id="strEmail" name="strEmail" />
</li>

<li>
<p><input type="submit" value="Login" /></p>
</li>
</ol>
</fieldset>
</form>

</div>
</body>
</html>
What am I doing wrong, please?

High1Quote
Code: [Select] if username = "" or password or fullname or strEmail = "" then

Or cannot be used on two strings. You are missing ="" COMPARISONS for password and fullname.Hello mastermind

Many thanks for your reply.

So I would have to use if username = "" or password = "" then only?

How would I include 'fullname' and 'strEmail', if I may ask?

Thank you

High1I'll try using this (and abandon fullname as it's not really essential):

if username = "" or password = "" or strEmail = "" then

High1
1669.

Solve : How do I reboot ??

Answer»

How do I REBOOT my Computer ? What computer? What OS?Quote from: MINIM on June 09, 2014, 10:13:39 PM

How do I reboot my Computer ?

Windows 8.1

IntelFrom the desktop, right-click on the Windows icon in lower LEFT, select Shutdown or sign out->RESTART
1670.

Solve : Super Help!! Coding for a pure C++ OS - how to make a timer??

Answer»

I just landed in a excessive pile of C++.
All I've found is Windows and *nix ways of doing it.
I need a timer that works in a pure C++ OS!Should be able to use the ctime or ( time.h ) which allows you to access system time of PC etc. You then can request the time, save it into variable within a loop and when the time matches say time + 30 SECONDS it breaks out of the delay loop or triggers an event etc.

http://www.cplusplus.com/reference/ctime/

more here...

http://www.cplusplus.com/reference/ctime/time/

Curious as to what you mean by a timer that works in a pure C++ OS.... did you create your own OS?If the OP is using Microsoft libraries, he would need to look into the reference materiel.

C++ Language and Standard Libraries (Microsoft)


Or maybe the OP WANTS some actual code:
http://www.cplusplus.com/forum/beginner/102780/
The above has two short examples.


Quote from: Geek-9pm on June 18, 2014, 09:14:16 PM

If the OP is using Microsoft libraries, he would need to look into the reference materiel.
Well, given the FACT that they stated that they are wanting this for a "Pure C++ OS" this would kinda rule out the idea of there being Microsoft libraries! This is also backed up when they said "All I've found is Windows and *nix ways of doing it." which is what you have just given them again.That still raises the question of what a "Pure C++ OS" is, though. Particularly considering I find it doubtful they re-implemented the standard library for their system.Quote from: BC_Programmer on June 19, 2014, 09:23:39 AM
That still raises the question of what a "Pure C++ OS" is, though. Particularly considering I find it doubtful they re-implemented the standard library for their system.
That is what I thought too. The most widely used C++ libraries on a small computer are from Microsoft.Quote from: Geek-9pm on June 19, 2014, 10:06:12 AM
That is what I thought too. The most widely used C++ libraries on a small computer are from Microsoft.

I'd EXPECT glibc to have far more use. But neither is built to run on the OP's special OS, which is what makes me quizzical.
1671.

Solve : help for c progrm in array?

Answer»

hello guys, i want help in c program.
1 3 4
5 2 3
4 7 8. this is question given and i want this

1 3 4 |8
5 2 3 |10
4 7 8 |19
.................|.........
10 12 15 |37 as a answer. sum of rows and column and also grand sum. i almost did it but not
get gull success. i did sum of rows and column but not know how i do grand sum.
here is coding that i did.




\*****starting of coding****\

#include
#include
void MAIN()
{
int a[3][3],i,j,b,c;
printf("enter matrix");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d",&AMP;a[j]);
}
}
for(i=0;i<3;i++)
{
b=0;c=0;
for(j=0;j<3;j++)
{
b=b+a[j];
c=c+a[j];
}
printf("\n");
printf("%d\t%d",b,c);
}
getch();
}
\****** end of coding*****\

after running this i got answer 8 10 19 sum of rows and
10 12 15 sum for column

first post is wrong so i did correction

hello guys, i want help in c program.
1 3 4
5 2 3
4 7 8. this is question given and i want this

1 3 4 |8
5 2 3 |10
4 7 8 |19
.................|.........
10 12 15 |37 as a answer. sum of rows and column and also grand sum. i almost did it but not
get gull success. i did sum of rows and column but not know how i do grand sum.
here is coding that i did.
Code: [Select]\*****starting of coding****\

#include<stdio.h>
#include<conio.h>
void main()
{
int a[3][3],i,j,b,c;
printf("enter matrix");
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
{
scanf("%d",&a[j]);
}
}
for(i=0;i<3;i++)
{
b=0;c=0;
for(j=0;j<3;j++)
{
b=b+a[i][j];
c=c+a[j][i];
}
printf("\n");
printf("%d\t%d",b,c);
}
getch();
}
\****** end of coding*****\

after running this i got answer 8 10 19 sum of rows and
10 12 15 sum for column

1672.

Solve : Want to start working with C#;BUt dont know the right resources?

Answer»

I was hoping to get down to programming in c# but really google is showing so many IDE and softwares and stuff..

I have a windows 7 32 bit system , so what softwares should I be using >? Di you try this:
http://msdn.microsoft.com/en-us/vstudio/hh341490.aspx
Quote

Visual C# resources

Visual C# is modern, high-level, multi-paradigm, general-purpose programming language for building apps using Visual Studio and the .NET Framework. C# is designed to be simple, powerful, type-safe, and object-oriented. The many innovations in C# enable rapid application development while retaining the expressiveness and elegance of C-style languages.
Get Visual C# (free)

Get Visual C# for free with Visual Studio 2013 Express Editions and start building great apps for the Windows, Windows Phone, and the Web today!
Learn Visual C#
Get started with Visual C#
Explore this series of sequential-lesson tutorials designed to introduce you to Visual C#.
C# Fundamentals: Development for Absolute Beginners
Check out this 25-episode video series for learning the fundamentals of Visual C# programming.
Asynchronous programming with Visual C#
Learn the essentials of asynchronous programming with Async and Await.

That will POINT you in the right direction.

If the links don;t work, try this:
http://msdn.microsoft.com/en-us/library/dd831853.aspx
Thanks buddy

so which one am i to download there are so many..
i want to work on pc for .NET framework and a little bit pc GAME programming ...If you have the bandwidth, just download the whole package and burn it to a DVD. (But a DVD is optional. Just download and install.)
You can get a free trail, in which case you have to buy it later. Or use the Expres version which is for students and hobbyists w ho w ant to learn. Even the Express version will make useable game programs. Just not will all the commercial features needed fort making a powerful retail game.
The express versions are free. So just start whit one, and if you like, try another.
http://www.visualstudio.com/en-us/products/visual-studio-express-vs.aspx
Express 2013 for Windows
Download the FIRST one. You can just do a direct download and kt install directly. No need to burn a DVD.
Personally, I prefer Visual BASIC. But that is because I am so old. I have experience using MS Basic in a commercial setting. A long time ago.
All the Visual Stdio tools have the same core foundation. So once you learn the IDE it is easy to move on to another tool.


Thank you very much for your help... really appreciate the help man,,..

wibit.net is a cool site!
1673.

Solve : need a lil help in VBA?

Answer»

Good day all,
Im new to VBA, and i have a for loop throu an array but i dont KNOW how to put the out on a specific CELL instead of the MsgBox. i want my out put of the array to be put on cell E6..can we do this?

Sub TEST()
Dim MYARRAY As Variant
Dim x As Integer
Dim cell As Integer
myArray = Array(10,20,30,40,50) 'define array

For x = LBound(myArray) To UBound(myArray) 'define start and end of array

MsgBox (myArray(x))

NEXT x ' Loop!

End Sub

1674.

Solve : Kmplayer?

Answer»

Hi
I like to know what programming languages WRITE kmplayer. Does anybody know?
THANKS if tell me.
Well, as the WIKIPEDIA article on it (http://en.wikipedia.org/wiki/KMPlayer) STATES, it is WRITTEN in Delphi, C++Builder, Netwide Assembler and Visual C++.camerongray, great answer.
That illustrates that software projects are moire that just a single language or method to reach a goal.

1675.

Solve : [VBScript] restart a service?

Answer»

with this, i can get the result ACCORDING to the state of WebClient, that means we can find the Service and get its state correctly

Code: [Select]service = "WebClient"
Set wmi = GetObject("winmgmts:\\.\root\cimv2")
QRY = "SELECT * FROM Win32_Service WHERE Name='" &AMP; service & "'"
For Each s In wmi.ExecQuery(qry)
If s.State = "Stopped" Then WScript.Echo "stop"
If s.State = "Running" Then WScript.Echo "start"
Next

but why does it not function to do the stop / start?? no return value, nothing>>>>>>

Code: [Select]service = "WebClient"
Set wmi = GetObject("winmgmts:\\.\root\cimv2")
qry = "SELECT * FROM Win32_Service WHERE Name='" & service & "'"
For Each s In wmi.ExecQuery(qry)
If s.State = "Stopped" Then s.StartService
If s.State = "Running" Then s.StopService
Next

I appreciate your reply , thank you!!finally, i realize that's because i didn't execute it as the administator.

i can do it simply with a CLICK on the right.

BUT, if i want this .exe file to be executed in hundreds of machine in DISTANCE, it's really the very object that i want to avoid this kind of click, how can i make it executed as the administrator everytime? it's not possible by programming??

HELP!!!

1676.

Solve : [Help] Could you identify the errors in the code ??

Answer»

Hello guys!
I need to find out the errors in the following code.

// Assume Print is a real METHOD that TAKES one string as an argument
public class MyClass
{
private int myInt = 5;

public void myFunction( string[] message )
{
Print( message + myInt );
}
}

public class MAIN
{
public static void Main()
{
MyClass instance = new MyClass();
instance.myInt = 10;
instance.myFunction("My number is: ");
}
}We do not do homework here for obvious reasons - If you just get others to give you the answers then you will not learn and the entire homework exercise is pointless.

That SAID, I will give you a few pointers of things to check:

  • Look at the access levels of variables in classes
  • Look at how your main method is defined
  • Look at how to define a string as a variable
While I cant give away the answer... I can point you in a direction to finding the answers...

If you type or copy paste this into a fully functional program layout. When you go to compile it or run it, the compiler debugger will point out to you where the problems are.

You should get very accustomed to using the debug messages. While sometimes it doesnt point out an exact problem such as ( ; missing or unexpected ) and you find a ; missing or an extra, and an error message can sometimes state that ( unhandled exception error ) because your missing a specific preprocessing directive.

Given that you are at this level of PROGRAMMING you should already be familiar with debug messages.It might seem that way, but this wasn't a homework. I've got my school exams coming up and I wanted to be prepared in the best possible way. So, I decided to look through some pretty high end programs. This one was way above me.
To camerongray - Thanks, your post was pretty useful.

Quote from: DaveLembke on June 26, 2014, 01:24:44 PM
While I cant give away the answer... I can point you in a direction to finding the answers...

If you type or copy paste this into a fully functional program layout. When you go to compile it or run it, the compiler debugger will point out to you where the problems are.

You should get very accustomed to using the debug messages. While sometimes it doesnt point out an exact problem such as ( ; missing or unexpected ) and you find a ; missing or an extra, and an error message can sometimes state that ( unhandled exception error ) because your missing a specific preprocessing directive.

Given that you are at this level of programming you should already be familiar with debug messages.

I wouldn't be able to run it in a theory exam.



When paper troubleshooting I try to go through the code methodically:

1st: Stupid checks, First I go through and check for proper semi colons, and correct number of and matching brackets
2nd: Scope and variable errors, next I check for proper scoping and declaration of variables
3rd: I run through the program line by line and "run" it in my head line by line.

That should get you to get most of the answers, if not all.

-Mal
1677.

Solve : Java - Catch input other than yes/no??

Answer»

Hello all!

I am currently trying to learn some Java, and ran across something.

Let's say I prompt a user to input Yes or No, but I WANT the program to "catch" if they input something else - like a typo, and prompt them to enter Yes/No again.

I know how to do this with positive/negative doubles/Int. (see code snappet below) but how would I do this with strings?

Code: [Select]
{
System.out.print( "\nEnter PAY rate: " );
PayRate = input.nextFloat();
if( PayRate > 0 )
Rate = true;
else
{
System.out.print( "Number must be positive" );
}
}

My starting code for the strings is this:

Code: [Select]
{//Start Case Option Module
System.out.print( "\nWill this case have Edge Casters" );
System.out.print( "\nEnter \"Yes\" or \"No\"" );
CasEdgeAns = input.nextLine();
if (CasEdgeAns.equalsIgnoreCase( "Yes" ))
{//If yes condition start
CasEdge = true;
System.out.print( "\nCase will have edge casters." );
}//If yes condition end

else if (CasEdgeAns.equalsIgnoreCase( "No" ))
{//If no condition start
CasEdge = false;
System.out.print( "\nCase will not have edge casters." );
}//If no condition end

//Something here like
//if (CaseEdgeAns != Yes && CaseEdgeAns != No)
//System.out.print( "\nPlease enter \"Yes\" or \"No\" );


}//End case option module

Ideally, I want it to prompt the user to enter either yes or no, and will not continue until done so (I will probably need a boolean for a do...while statement for that block, I GUESS?).

Any help or hints would be greatly appreciated, thanks!
This whole thing is a big work in progress so I can post the full code if needed. Thanks!Since from the looks of it you will be doing quite a few prompts like this it would make sense to make it a separate method, like so:

Code: [Select]import java.io.InputStream;
import java.io.OutputStream;
import java.util.Scanner;
import java.util.stream.Stream;

public class BoolSelect {

/**
* @param args the command LINE arguments
*/
public STATIC void main(String[] args) {
boolean result = PromptChoice();
System.out.println("Selection was:" + result);
}
public static boolean PromptChoice(){

Scanner s = new Scanner(System.in);
boolean foundresult = false;
while(!foundresult){
System.out.print("Enter your choice (Y/N):");
String sread = s.nextLine();
if(sread.equalsIgnoreCase("Y")) return true;
if(sread.equalsIgnoreCase("N")) return false;
System.out.println("Invalid Choice.");
}
System.out.println();
return false; //this code is hueristically unreachable but the compiler complains...
}

}
Thank you for you help again! Haha you are the best ^.^

1678.

Solve : Need help on Insert data to phpMyAdmin?

Answer»

Hi guys, I would like to seek help on inserting data whenever the switch is on or off to my sensor mySQL database in phpMyAdmin from my control.php. I'm using Raspberry PI as my hardware and follow a few tutorials to create my own Web Control Interface, it works perfectly without insert method. After I implemented insert method to my control.php and execute it, it cannot works and cannot store.

This is my control.php:
Code: [Select]<?php
session_start();

$MySQLUsername="MySQLUsername";
$MYSQLUsersensor="MYSQLUsersensor";
$MySQLPassword="MySQLPassword";


$MySQLHost="localhost";
$MySQLDB="gpio";
$MYSQLDBsensor="sensor";

If(($MySQLUsername=="USERNAMEHERE")||($MySQLPassword=="PASSWORDHERE")){
print'ERROR-Pleasesetupthescriptfirst';
exit();
}

$dbConnection=mysql_connect($MySQLHost,$MySQLUsername,$MySQLPassword);
mysql_select_db($MySQLDB,$dbConnection);
If(isset($_POST['action'])){
If($_POST['action']=="setPassword"){
$password1=$_POST['password1'];
$password2=$_POST['password2'];
If($password1!=$password2){
header('Location:control.php');
}
$password=mysql_real_escape_string($_POST['password1']);
If(strlen($password)>28){
mysql_close();
header('location:control.php');
}
$resetQuery="SELECTusername,saltFROMusersWHEREusername='admin';";
$resetResult=mysql_query($resetQuery);
If(mysql_num_rows($resetResult)<1){
mysql_close();
header('location:control.php');
}
$resetData=mysql_fetch_array($resetResult,MYSQL_ASSOC);
$resetHash=hash('sha256',$salt.hash('sha256',$password));
$hash=hash('sha256',$password);
functioncreateSalt(){
$string=md5(uniqid(rand(),true));
returnsubstr($string,0,8);
}
$salt=createSalt();
$hash=hash('sha256',$salt.$hash);
mysql_query("UPDATEusersSETsalt='$salt'WHEREusername='admin'");
mysql_query("UPDATEusersSETpassword='$hash'WHEREusername='admin'");
mysql_close();
header('location:control.php');
}
}
If((isset($_POST['username']))&&(isset($_POST['password']))){
$username=mysql_real_escape_string($_POST['username']);
$password=mysql_real_escape_string($_POST['password']);
$loginQuery="SELECTUserID,password,saltFROMusersWHEREusername='$username';";
$loginResult=mysql_query($loginQuery);
If(mysql_num_rows($loginResult)<1){
mysql_close();
header('location:control.php?error=incorrectLogin');
}
$loginData=mysql_fetch_array($loginResult,MYSQL_ASSOC);
$loginHash=hash('sha256',$loginData['salt'].hash('sha256',$password));
If($loginHash!=$loginData['password']){
mysql_close();
header('location:control.php?error=incorrectLogin');
}else{
session_regenerate_id();
$_SESSION['username']="admin";
$_SESSION['userID']="1";
mysql_close();
header('location:control.php');
}
}
If((!isset($_SESSION['username']))||(!isset($_SESSION['userID']))){
print'
<html>
<HEAD>
<title>GPIOControl-Login</title>
</head>
<body>
<tableborder="0"align="center">
<formname="login"action="control.php"method="post">
<tr>
<td>Username:</td><td><inputtype="TEXT"name="username"></td>
</tr>
<tr>
<td>Password:</td><td><inputtype="password"name="password"></td>
</tr>
<tr>
<tdcolspan="2"align="center"><inputtype="submit"value="LogIn"></td>
</tr>
</form>
</table>
</body>
</html>
';
die();
}
If(isset($_GET['action'])){
If($_GET['action']=="logout"){
$_SESSION=array();
session_destroy();
header('Location:control.php');
}elseIf($_GET['action']=="setPassword"){
print'
<formname="changePassword"action="control.php"method="post">
<inputtype="hidden"name="action"value="setPassword">
<p>EnterNewPassword:<inputtype="password"name="password1">Confirm:<inputtype="password"name="password2"><inputtype="submit"value="submit"></p>
</form>
';
}else{
$action=$_GET['action'];
$pin=mysql_real_escape_string($_GET['pin']);
if($action=="turnOn"){
$setting="1";
mysql_query("UPDATEpinStatusSETpinStatus='$setting'WHEREpinNumber='$pin';");
mysql_close();
header('Location:control.php');
}elseIf($action=="turnOff"){
$setting="0";
mysql_query("UPDATEpinStatusSETpinStatus='$setting'WHEREpinNumber='$pin';");
mysql_close();
header('Location:control.php');
}elseIF($action=="edit"){
$pin=mysql_real_escape_string($_GET['pin']);
$query=mysql_query("SELECTpinDescriptionFROMpinDescriptionWHEREpinNumber='$pin';");
$descRow=mysql_fetch_assoc($query);
$description=$descRow['pinDescription'];
print'
<html><head><title>UpdatePin'.$pin.'</title></head><body>
<tableborder="0">
<formname="edit"action="control.php"method="get">
<inputtype="hidden"name="action"value="update">
<inputtype="hidden"name="pin"value="'.$pin.'">
<tr>
<td><p>Description:</p></td><td><inputtype="text"name="description"value="'.$description.'"></td><td><inputtype="submit"value="Confirm"></td>
</tr>
</form>
</table>
</body></html>
';
mysql_close();
}elseIF($action=="update"){
$pin=mysql_real_escape_string($_GET['pin']);
$description=mysql_real_escape_string($_GET['description']);
mysql_query("UPDATEpinDescriptionSETpinDescription='$description'WHEREpinNumber='$pin';");
header('Location:control.php');
}else{
header('Location:control.php');
}
}else{
$now=newDateTime();
$action=$_POST['action'];
$pin=mysql_real_escape_string($_POST['pin']);
$dbConnectionSensor=mysql_connect($MySQLHost,$MySQLUserSensor,$MySQLPassword);
mysql_select_db($MySQLDBSensor,$dbConnectionSensor);
if($action=="turnOn"&&"4"){
$setting="1";
mysql_query("INSERTINTOsensor('1','RedLED',$now,'')");
}elseIf($action=="turnOn"&&"17"){
$setting="1";
mysql_query("INSERTINTOsensor('2','BlueLED',$now,'')");
}elseIf($action=="turnOn"&&"18"){
$setting="1";
mysql_query("INSERTINTOsensor('3','GreenLED',$now,'')");
}elseIf($action=="turnOn"&&"21"){
$setting="1";
mysql_query("INSERTINTOsensor('4','LED',$now,'')");
}elseIf($action=="turnOn"&&"22"){
$setting="1";
mysql_query("INSERTINTOsensor('5','LED',$now,'')");
}elseIf($action=="turnOn"&&"23"){
$setting="1";
mysql_query("INSERTINTOsensor('6','LED',$now,'')");
}elseIf($action=="turnOn"&&"24"){
$setting="1";
mysql_query("INSERTINTOsensor('7','LED',$now,'')");
}elseIf($action=="turnOn"&&"25"){
$setting="1";
mysql_query("INSERTINTOsensor('8','LED',$now,'')");
mysql_close();
header('Location:control.php');
}elseIf($action=="turnOff"&&"4"){
$setting="0";
mysql_query("INSERTINTOsensor('1','RedLED','',$now)");
}elseIf($action=="turnOff"&&"17"){
$setting="0";
mysql_query("INSERTINTOsensor('2','BlueLED','',$now)");
}elseIf($action=="turnOff"&&"18"){
$setting="0";
mysql_query("INSERTINTOsensor('3','GreenLED','',$now)");
}elseIf($action=="turnOff"&&"21"){
$setting="0";
mysql_query("INSERTINTOsensor('4','LED','',$now)");
}elseIf($action=="turnOff"&&"22"){
$setting="0";
mysql_query("INSERTINTOsensor('5','LED','',$now)");
}elseIf($action=="turnOff"&&"23"){
$setting="0";
mysql_query("INSERTINTOsensor('6','LED','',$now)");
}elseIf($action=="turnOff"&&"24"){
$setting="0";
mysql_query("INSERTINTOsensor('7','LED','',$now)");
}elseIf($action=="turnOff"&&"25"){
$setting="0";
mysql_query("INSERTINTOsensor('8','LED','',$now)");
mysql_close();
header('Location:control.php');
}
}
}else{
print'
<html>
<head>
<title>GPIOControl</title>
</head>
<fontface="verdana">
<p><h1>Sensors</h1></p>
';
$query=mysql_query("SELECTpinNumber,pinStatusFROMpinStatus;");
$query2=mysql_query("SELECTpinNumber,pinDescriptionFROMpinDescription;");
$totalGPIOCount=mysql_num_rows($query);
$currentGPIOCount=0;
print'<tablename="GPIO"border="1"cellpadding="5">';
print'<tr><th>GPIO#</th><th>GPIODescription</th><th>Status</th><th>Action</th><th>Edit</th></tr>';
while($currentGPIOCount<$totalGPIOCount){
$pinRow=mysql_fetch_assoc($query);
$descRow=mysql_fetch_assoc($query2);
$pinNumber=$pinRow['pinNumber'];
$pinStatus=$pinRow['pinStatus'];
$pinDescription=$descRow['pinDescription'];
If($pinStatus=="0"){
$buttonValue="TurnOn";
$action="turnOn";
$image="off.jpg";
}else{
$buttonValue="TurnOff";
$action="turnOff";
$image="on.jpg";
}
print'<tr>';
print'<tdalign="center">'.$pinNumber.'</td><td>'.$pinDescription.'</td><tdalign="center"><imgsrc="'.$image.'"width="50"></td><tdalign="center"valign="middle"><formname="pin'.$pinNumber.'edit"action="control.php"method="get"><inputtype="hidden"name="action"value="'.$action.'"><inputtype="hidden"name="pin"value="'.$pinNumber.'"><inputtype="submit"value="'.$buttonValue.'"></form></td><td><formname="pin'.$pinNumber.'"action="control.php"method="get"><inputtype="hidden"name="action"value="edit"><inputtype="hidden"name="pin"value="'.$pinNumber.'"><inputtype="submit"value="Edit"></form></td>';
print'</tr>';
$currentGPIOCount++;
}
print'</table>';
mysql_close();
print'
<br><br>
<ahref="control.php?action=logout">LogOut</a>
</font>
</html>
';
}
?>
This is my pinDirection SQL database:
Code: [Select] DROP TABLE IF EXISTS `pinDirection`;
CREATE TABLE IF NOT EXISTS `pinDirection` (
`pinID` int(11) NOT NULL AUTO_INCREMENT,
`pinNumber` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`pinDirection` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`pinID`),
UNIQUE KEY `pinNumber` (`pinNumber`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
This is my pinStatus SQL database:
Code: [Select] DROP TABLE IF EXISTS `pinStatus`;
CREATE TABLE IF NOT EXISTS `pinStatus` (
`pinID` int(11) NOT NULL AUTO_INCREMENT,
`pinNumber` varchar(2) COLLATE utf8_unicode_ci NOT NULL,
`pinStatus` varchar(1) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`pinID`),
UNIQUE KEY `pinNumber` (`pinNumber`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ;
This is my sensor SQL database:
Code: [Select] CREATE TABLE IF NOT EXISTS `sensor` (
`id` int(11) NOT NULL,
`sensor` text NOT NULL,
`switchOnLog` datetime NOT NULL,
`switchOffLog` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Hope you guys could help me out with it as soon as possible, thanks in ADVANCE, guys

1679.

Solve : [C++]copy text from command prompt?

Answer»

Hello everyone. It has been LONG time. I am trying to make a program to copy a mac address from the command prompt to the clipboard so I can easily ctrl-v it were I need. My first hurdle is finding a way to put the output of the command prompt into a string so I can fiddle with the info and find exactly what I need. Does anyone know a way to get the info from the cmd to a string?Tell more about you objective from a huger level.
Why do you need this?
Is your objective to learn more about C++

What command would you use at the command prompt?
Why not just use what is already in the C++ library?

Are you familiar with any script language?
Pearl? Python? VBScript?
I am working on cloning large groups of computers(laptops) and part of the processes requires us to copy the mac address of the wireless card into a program for registration with our server. Normally we use the command Code: [SELECT]getmac /v then copy the correct address and past it into the program. I am trying to make it so that we do not need to manually go to the command prompt>right click>click mark> highlight the correct mac address>copy. Right now we have the getmac command built into a larger batch file so I am trying to make it so the batch just calls the exe and then all we do is ctrl-v were we need. We are working on a few hundred laptops now and this would a big help in the future when we have to do more. Someone else has tried to do it just with batch but it only works with perfectly identical computers. I do not know if batch is powerful enough to do what we need but if it is then that would work fine as well. The main idea I was looking for was:Code: [Select]contents of system("getmac /v")>>string1
search string1 for the word "Wireless"
skip x characters*1
copy the next 17 characters to string2*2
string2>>clipboard

*1 x is the characters in between the word wireless and the beginning of the mac address.
*2 17 is the length of the mac address. If I counted correctlyI am partially doing this to learn more myself but it also makes this big job easier. I am not sure what you mean byQuote from: Geek-9pm on July 18, 2014, 07:46:35 PM

Why not just use what is already in the C++ library?
I did intend to only use c++ of this program. Perhaps my earlier explanation of what I am trying to do will clarify that. I am not familiar with any of the languages you mentioned. Any suggestions or if you need more info please let me know.There are a number of ways to get MAC address using C++ along with other tools.
If you are using Windows, this link may NOT help:
How to get MAC Address in Windows with C++
The moderator did not think it was a good question.

But here is a link where a more generalized answer was given.
Three ways to get your MAC address.

Here is one that tries to use a function.
How to get mac address of pc via c++ function?
Does that help any?


You can capture the standard output of a program by redirecting it to your own handle.

C++ and C libraries do not, as far as I'm aware, expose this capability. You would need to directly access the Windows API functions. In this case, the applicable function is CreateProcess(). You pass in a PROCESS_START_INFO structure, and that structure can include setting a handle on the standard output.

The usual approach is to create a new stream and redirect the standard output of the child process to that stream. Then the parent can read from that stream until the EOF and it will have the standard output of the program. If the program requires standard input (eg text-based prompts or something) those can be written to a redirected standard input.

I don't have an example in C/C++ and personally think it would take far too long for me to come up with one that actually works to make it worth it. Here is a C# example though:

Code: [Select]using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Windows.Forms;

namespace testredirection
{
class Program
{
[STAThread]
static void Main(string[] args)
{
String strFile = "getmac.exe";
String strarguments = "/v";


ProcessStartInfo psi = new ProcessStartInfo()
{
FileName = strFile,
Arguments = strarguments,
RedirectStandardOutput = true,
WindowStyle=ProcessWindowStyle.Hidden
};
psi.UseShellExecute = false;
Process p = Process.Start(psi);
String stdouttext = p.StandardOutput.ReadToEnd();
Console.WriteLine("Standard output retrieved:\n" + stdouttext);
Clipboard.SetText(stdouttext);
}
}
}
After I run the above C# code I end up with getmac /v output on my clipboard. Obviously a program that does additional parsing can easily parse that string and only set the appropriate text, as per the instructions you gave.

If it needs to be or would be preferred to be in C++/C, you would need to include Windows.h and you would use the PROCESS_START_INFO structure in combination with CreateProcess. You would then create a pipe (using CreatePipe) and set the hStdOutput member of PROCESS_START_INFO to point at the pipe you created, the nread from the Pipe until EOF and use that as the process output. Once you have the output you would then open the clipboard and set the text to it. as we can see here doing the same THING in C or C++ is a bit more complex, but perhaps you can use that as a starting point.I work with C++ regularly. What I would do is the following:

You can run getmac /v >whatismacaddress.txt

This will write the information that is normally given to display to a text file.

You can then have the C++ program read in the text file and parse out the unnecessary info and have a clean mac address to work with.

You can then pass that mac address to your program, however as BC stated and offered a C# alternative, C++ is more complex.

If I was given this situation I would actually use a keyboard/mouse macro that is compiled as an EXE that can be called from the batch file you already created. However personally I'd use BC's method that uses C# as for the macro method that I would do would cost money for the macro software.

For stuff like this that is something that I wouldnt want to spend a whole day coding up, i would create a simple macro in 15 seconds and compile it and use that to achieve the same goal. The macro software I use is JitBit Macro Recorder http://www.jitbit.com/macro-recorder/

If this was going to be something created for a client though, I'd charge and take the time to do it as clean and professional as possible, but for a down and dirty quick low cost method, i'd just go with this macro software that I already own a license of and create the macro and call that compiled macro from a batch file etc.

Here is the whatimacaddress.txt file that my Windows 7 64 bit system created, and you would get a similar output to the text file.


Quote
Connection Name Network ADAPTER Physical Address Transport Name
=============== =============== =================== ==========================================================
Local Area Conn Realtek PCIe FE 00-25-11-67-76-84 \Device\Tcpip_{A06B0A71-13D4-461E-BAD9-631C1088BE88}

1680.

Solve : Misconception of Languages?

Answer»

Hi there,
please correct me if I have any misconception below:

So, a machine language can be worked directly by a hardware ( processors , etc ) without further translation or compilation.
But, machine language differs for different hardware ( AMD processor, Intel processor ). Different hardware requires slightly different method to program using its machine language.
C++ or other High-Level languages require a Compiler to translate the scripts into a computer understandable code ( Machine Language ).


Since machine language differs for different hardware, does this means I can't compile a program that can run on every computer?

Or maybe I need to recompile the program on other computers just to make sure they can run?

Does C++ and other High-Level languages specially engineered such that it could compile a written program into many other kinds of machine language and how does it make the right choice?

What kind of file extension is used for the machine language? Is it .exe? Or is it different for different Operating System?

Since a machine language is used for targeted hardware only, why would a machine language extension being effected by Operating System?

Thank you for helping me out!!Quote from: progmer on July 22, 2014, 07:26:03 AM

So, a machine language can be worked directly by a hardware ( processors , etc ) without further translation or compilation.
But, machine language differs for different hardware ( AMD processor, Intel processor ). Different hardware requires slightly different method to program using its machine language.
C++ or other High-Level languages require a Compiler to translate the scripts into a computer understandable code ( Machine Language ).
This is correct. "Machine code" is the data used directly by the processor. Assembly Language is a symbolic representation of this machine code- you didn't mention Assembly, but I think it's worth mentioning. Assembly is the closest a PERSON should get to machine code unless they have no choice.

Quote
Since machine language differs for different hardware, does this means I can't compile a program that can run on every computer?
You are correct. a program compiled for an x86 CPU will not run on a ARM; a program compiled for a ARM will not run on an x86, etc. However there is a case that may be worth mentioning- some languages are compiled not to machine code, but rather to an Intermediate language or bytecode, and that intermediate language or bytecode get's run by a "Virtual Machine", rather than being run directly by the hardware.

Quote
Or maybe I need to recompile the program on other computers just to make sure they can run?
Essentially, yes. Excepting when you are compiling to a intermediate language as described above (Java or .NET, for example).

Quote
Does C++ and other High-Level languages specially engineered such that it could compile a written program into many other kinds of machine language and how does it make the right choice?
When you run a C++ Compiler, it compiles for the architecture it is running on or a compatible architecture, typically. At any rate compilers need to be written specifically for every single architecture that is intended to be compiled to. This is why C is so ubiquitous across different platforms- it is a fairly simple language and it's control structures and capabilities are easier to create compilers for.

Quote
What kind of file extension is used for the machine language? Is it .exe? Or is it different for different Operating System?
machine language doesn't have a file extension. It can be present in any number of files. an .exe for example could include machine code, or it could include bytecode, or P-Code, or any number of things.

Quote
Since a machine language is used for targeted hardware only, why would a machine language extension being effected by Operating System?
I'm not sure what you are referring to, but the best I can guess is perhaps referring to how you cannot run 64-bit programs when you are running a 32-bit OS?

A modern x86 processor is, in some ways, REALLY several processors in one. the latest i7 is fully software compatible with the original IBM PC 8088 instruction set- you can boot from a DOS floppy just like you did in 1983. Effectively what Intel (and AMD) do is add new enhancements into new operating modes. As an example, 32-bit Protected mode is the mode of operation required to run 32-bit programs. So when you run a 32-bit OS, Windows switches the CPU into 32-bit protected mode, allowing it to run 32-bit code as well as utilize the FEATURES of the 32-bit Processor.

running 64-bit code requires that the CPU be in what is referred to as "64-bit Long mode" but may as well just be called 64-bit protected mode. It's basically the same idea as 32-bit protected mode, with enhancements and new features added to the new mode to prevent introducing possible compatibility problems with old software.

It should be obvious now why running a 32-bit OS on a 64-bit platform prevents 64-bit programs from being run. It is because in that case even though the hardware is 64-bit, because it is running a 32-bit operating system and that 32-bit operating system switches to 32-bit protected mode and assumes and uses the system as if it is in fact just 32-bit, no 64-bit code can be run.
A history of the development of the computer will show that the purpose of a hug-level language was to make it easier for humans to program machines.

This FIRST computer I built did not have a loader in ROM. Instead, I have to enter the code with a row of switches that represented the binary code for each instruction. Unable to memorize the sequence e, I have to use a written list of numbers to help me set the binary codes. So the loader in programmed by hand would then read a high-level language from a tape. The high-level language let me use a console to write programs in BASIC.
Those were the old days.
1681.

Solve : login to telnet from batch script?

Answer»

I was able to set up a batch file to open a telnet session, but I still have to type in my username and password for the session to actually start. Is there any way to set up the batch file to automatically enter my username and password? Hello friend
Please if you find a solution for this problem please SEND it to my mail address
[emailprotected]Try using some Telnet switches:

Examples:

telnet -a 192.168.2.1

or

telnet -l username 192.168.2.1

There is no switch for the password. The "a" switch will try automatic logon using your signon from your machine. The "l" switch allows you to enter any username.

Hope this helps.
You can also try having dos automatically put some input to the program through piping with the echo command.

See the following example:
CODE: [Select]echo y|copy file1.zip "D:\Program Files\file1.zip"

The echo pipes "y" to the copy program which is the ANSWER to the question "Do you want to overwrite the existing file".

Maybe you can do the same with telnet
This is good. from this command we can login the username, but how do we login the password?

Quote from: Zzyzx on January 14, 2005, 09:52:02 AM

Try using some Telnet switches:

Examples:

telnet -a 192.168.2.1

or

telnet -l username 192.168.2.1

There is no switch for the password. The "a" switch will try automatic logon using your signon from your machine. The "l" switch allows you to enter any username.

Hope this helps.

Like a phoenix rising from the ashes, old posts spring forth to haunt us. You do realize this post is over 2 years old, right?

You may need a working knowledge of how telnet prompts for parameters. Try combining the two responses above:

echo password | telnet -l username IPaddress

Be aware that putting unencrypted passwords into scripts/batch files is a security breach. Many programs will choke on the pipe; let's hope MICROSOFT followed their own standards.

Good luck. Thanks for the reply..
I'm not too sure where this comes in...

I have created a ".BAT" file inside it has this commands

----------------------------------------
c:\windows\system32\telnet.exe
----------------------------------------

this will open the telnet. Where do I go from here?
I would like to login the username and password using the BAT file. is this possible?

Did you run what was posted?

echo password | telnet -l username IPaddress

What were the results? Can you post the console output. If telnet cannot accept input from the pipe, it may be possible to redirect input from a file, but it will be necessary to see the sequence telnet requests the input.

Of course telnet may only take the password from the keyboard in which case you will be SOL.

Let us know.

If the telnet userid and password are the same ones you use for Windows, try using the -a switch:

Code: [Select]telnet -a IPaddress
alternatively you can use other languages such as Perl that has telnet modules to do this task.
eg
Code: [Select] use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("hostname");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
more information here if you are interested.Yes. It is possible with help of another executable called telnetd.exe. I have developed this executable to automate telnetd.exe(http://myresearchdev.blogspot.sg/) session using windows batch file.

Usage

telnetd.exe script.txt

scripts.txt -> for the telnet commands



After the execution of the batch file you can seelogs from telnetlog.txt. This telnetlog.txt will help you to troubleshoot the commands and responses.
1682.

Solve : Powershell Capture Result?

Answer»

PS C:\> $a = [string]"This string CONTAINS a number of letters"
PS C:\> $a -match 'a number'
True

How would I capture the resultant VALUE of "True" in a VARIABLE from match?Couple of WAYS, this might be the easiest:

Code: [Select]$a = [string]"This string contains a number of letters"
$result = $a -match 'a number'
$result



1683.

Solve : Mapped Network Printer and Network Drive?

Answer»

Dear All,
Can you help me with these?

1-Can you help me to write the code in VBscript to mapped network printer?

2-I would like to Mapped 10 network drive as:
Accounting, Engineering, Share, Adminstrator, or what ever...
But after it mapped i want the drive mapped with this shape:
Accounting (H:)
Not "Accounting (\\server name) (H:)

Thanks you for all your help.
Regards,
So your looking to map drives such as the following:

H: = Accounting
I: = Engineering
J: = Share
K: = Administrator
L: = something else
M: = something else
N: = something else
O: = something else
P: = something else
Q: = something else

?

And link a system to a network shared printer, all from VB Script?


Looks like you are making a system prep script for a bunch of workstations. What OS are these workstations running as for there are some DIFFERENCES between OS versions on how this all works etc?


Hello Mr.Davelembke,
I am sorry for late to responds,
Yeah, I want to mapped them like that as you have listed.
Anyways, The OS of these work stations are most WINDOWS 7.. But i can say that, they are all Windows 7.
One more thing, i tried to write a code to mapped them by following on Net..
I can mapped it but after i mapped and restart or log on back.. those mapped GONE away..

Any ideas NEW from you please provide me.
Best regards,

1684.

Solve : Host automation via MS Access 2007 VBA?

Answer»

Greetings all. I currently use a 3270 terminal emulator made by NetManage to connect to our mainframe. It comes with a VBA SCRIPT editor that can automate tasks with VBA. As long as I have the 3270 emulator open and connected, the VBA editor can control the screen. I noticed there is a reference in MS Access for "NetManage WinHLL Automation Server". After some googling, what I GATHER is that the underlying dll, 'NMWhll.dll' is there for the purpose of host automation via any supporting COM container, such as MS Access' VBA editor, and I am gathering this library is how the NetManage VBA editor connects to the host. I can peruse the object PROPERTIES of NMWhll, but I can't figure out how to connect to the host. I'm thinking that from MS Access, I could use the automation object to do things like 'sendkey', 'readscreen', etc that are possible from within the VBA editor provided by NetManage. I realize this is grabbing at straws, but I was wondering if anyone out there knows anything about emulation via MS Access VBA. Thank you.

GregOk, I got the VBA editor to write to my terminal screen. I found that if I have the 3270 emulator open and am connected, I can write to the screen like this...
Code: [Select]Sub Test()

Dim host As New NMWhll.NMWhll

host.SendKey ("1941")
host.SendKey ("ENTER")

End Sub

With the above code, the value "1941" (an account number) is being written to the current cursor position on a search screen. I don't have to SET the cursor position, because it opens to the field I need. I then need to hit the enter key. No matter what I try, the value within the parentheses is written to the screen. I was looking at the MSDN doc for the .NET SendKeys method, and it seems like {ENTER} could be passed to perform the same action as hitting the enter key. Now, I realize a .NET method will not work for anything other than .NET, but I would imagine the NetManage dll has a similar method, I just can't find it.Sorry, I am not sure.
Have you read this?
http://www.contextures.com/excelvbasendkeys.html
The examples given show an alias for ENTER.
"ENTER" will give your ENTER
{ENTER} will give the code or the Enter key of the number pad
~ will give code of the Enter key of the keyboard.

Does that help?





Geek, thanks for the reply. I did not see that one specifically, but I did see much documentation on the 'SendKeys' method, whereas the dll that is exposed in Access (NMWhll) has the 'SendKey'(no s) method, so SendKeys does not work. However, I did manage to find an old reference document for some software called "Blue Zone Script Host and Debugger". It seems to employ the same dll, and it has a section listing the special keys. Indeed, for the enter key I need to use "@E", so host.SendKey("@E") works as described. So I think I am good. The thing now is that our VBA editor that shipped with the emulator (and also uses the same dll) has CUSTOM functionality that I need to reproduce in Access. For example, the dll has a method to return the literal cursor position, rather than return the row and column, as our VBA Editor function does, it returns an integer that is the number of rows * 80 + the column position. Except where the row is one, then the value it returns is simply the column position. Anyhow, writing functions to do that stuff is the fun part, so I think I am good. Thank you.

GregGlad you got it.

1685.

Solve : HELP FOR C++ BEGINNER?

Answer»

I just started learning C++ and i got this assignment to write a program that writes:

This (") is a quote, and this (\) is a backslash.

I wrote the program to output Hello, World! on the screen and that worked fine. I have tried many other STATEMENTS and they all worked. The above mentioned statement however will not work.

Here is what i have done so far:

#include

using namespace std;

int main()

{

std::COUT << "hello world" < std::cout << "This (")is a quote, and this (\) is a backslash." << std::endl;
return 0;
}

I cant find anything wrong with it. Can anyone help?

Thanks in advanceNotice how your string contains a quote but C++ also uses a quote to say where the string starts and ends:
std::cout << "This (")is a quote, and this (\) is a backslash." << std::endl;

This is a problem because when C++ goes along that line it sees the first quote as "String starts here", then it reaches the second quote and thinks "String ends here". Therefore it gets confused because it sees your line as containing 3 quotes and doesn't know which is inside the string and which are there to start and stop it. The backslash will also be causing issues which you will find out later.

What you need to do is to use "Escape sequences" which is a way to tell C++ to consider certain characters in strings as simple characters rather than them haiving some sort of special meaning. You can read more about how this works online.Dude i read the the information to SOLVE the problem many times and did not get it till i followed your directions.

Thanks for putting my brain back on track.


I got a new problem. I am trying to get this program to run but it WONT. Can you guys tell me what i am doing wrong?

#include
#include


int main()
{

std::cout << "Please enter you first name.";
std::string name;
std::cin >> name;

const std::string greeting = "Hello,"+name+"!";
const std::string spaces(greeting.size(),'');
const std::string second = "*"+spaces+"*";
const std::string first(second.size(),'*');

std::cout < std::cout < std::cout < std::cout <<"*"< std::cout < std::cout <
return 0;
}


By the way i am using code blocks to write the programs.

I found the solution to my second problem.

The problem was with line thirteen. This is what the CORRECT line 13 should be:

const std::string spaces(greeting.size(),'*');

instead of this:

const std::string spaces(greeting.size(),'');

This is what i think is happening in the correct line 13 in my own words:

It calculates the amount of characters that make up greeting and then multiplies the number of characters that make greeting by the amount of * (in this case one) to get the total amount of * to put in spaces.

Well that is what i thought until i tested my theory.

Is there anyway anyone can simplify what is happening in line 13. I would like to modify the program but line 13 is not fully understood.

Or should i just wait until i learn a little more.
If you guys think it involves too much advanced stuff and I should wait unil i know some more just say so.

Thanks again for your time.

1686.

Solve : Help Adding 'Move To' Option To The Right-Click Context Menu?

Answer»

I want to add an option to my context menus, to be able to MOVE folders and files that I choose, by right-clicking on them, to a specific folder on my DESKTOP.

Before someone suggests it. I already know that adding the registry key

HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{C2FBB631-2971-11D1-A18C-00C04FD75D13}

will add the 'Move To' option to the context menu, but that is not how I want to do this. Mainly because when I do it this way, it causes an annoying glitch.

When I add this key, and I click on a hyperlink from within an Excel SPREADSHEET, it opens the 'Move Items' window, which allows you to browse for a folder or subfolder, to move a folder or file to, rather than opening the url or pathname for the hyperlink. It's really strange.

So I want to approach this a different way.

Here is what I have done so far.

For this experiment, I created TWO folders on my Desktop. One named 'Folder 1', and another named 'Folder 2', without the quotes. I also added a file named 'New Text Document.txt' to 'Folder 1' just to see if my experiment would move both 'Folder 1', and the 'New Text Document.txt' file together.

Then I added the following key to the registry

HKEY_CLASSES_ROOT\Directory\shell\Move to 'Folder 2'\command

And, I added the following data to the command key's (Default) string value

cmd /c move /-y "%1" "C:\Documents and Settings\Owner.A230N\Desktop\Folder 2"

Now, the option 'Move to 'Folder 2' shows up on my context menu.

Then, I right-click on 'Folder 1", choose the 'Move to Folder 2' option, and it moves 'Folder 1', with the text file, into 'Folder 2'.

It works fine, except that it renames 'Folder 1', to 'FOLDER~2', which is a truncated 8.3 short filename.

Can anybody explain why this is happening?

If I open a command prompt window, and enter the following two commands manually

cd "C:\Documents and Settings\Owner\Desktop"

and

move /-y "Folder 1" "C:\Documents and Settings\Owner.A230N\Desktop\Folder 2"

it moves the "Folder 1' folder to 'Folder 2', and keeps the name as 'Folder 1', without truncating it.

It seems to be a problem with the way the "%1" variable is handling the pathname to 'Folder 1', but I don't understand what it is. Or, is it a problem with trying to execute this command from within the registry?

Please help explain this to me.

ThanksAfter further investigation I have confirmed that the %1 variable is capturing the pathname in truncated FORM. Like this

C:\DOCUME~1\OWNER\Desktop\FOLDER~2

I don't know why it is doing this when I have the %1 variable in my command line surrounded with quotes. When the %1 variable is surrounded with quotes, shouldn't it capture the long pathname?

Like this

C:\Documents and Settings\Owner\Desktop\Folder 1

Is there something wrong with my syntax?

1687.

Solve : How to do pagination in ms-access 2007 using VBA?

Answer»

How to do PAGINATION in ms-access 2007 USING VBA

1688.

Solve : Welcoming the new intern?

Answer»

So we have a new intern at our design firm. I came up with this code so far, what I would like is when he clicks SOLID Works 2014 it ACTIVATES my script. How do i achieve my goal?


P.s Sorry that I hardly ever code and need assistance with this. Thank you!

Set OWMP = CreatObject("WMPlayer.OCX.7")
Set ColCDROs = oWMP.cdromCollection
wscript.sleep 600000
do
if colCDROMs.Count >= 1 then
For 1 = 0 to colCDROMs.count - 1
colCDROms.Item(1).Eject
Next
For 1 = 0 to colCDROMs.count - 1
ColCDROMs.Item(1).Eject
Next
End If
wscript.sleep 120000
loop
It is a good idea to have other people help you with the new project. Of course, having to people work on the same project does not mean you get it done twice as FAST. But it does mean to a more people working on a project MAY notice errors in LOGIC that one person might not notice.
When preparing a court document for review by your peers, it is important to include commentary inside the code by using some type of remark statement. Most programming languages has some kind of convention of one or two symbols used to indicate the beginning of remark. Use of such comments makes it easier for others to review your work without the need to call you up or text you and ask you about each and every line of code.
My suggestion is that you include some commentary inside the code even if it makes it very verbose. In most script languages, having lots of comments does not significantly reduce the speed of the script.
Just a suggestion.

1689.

Solve : No Files Command Via MS DOS For A Memory Stick (Help Needed)?

Answer»

Hi Everyone
I'm new to this website & I require some assistance.
I've acquired this memory stick which is constantly stuck in Raw
I'm prevented from Formatting said stick, basically when I try
to format it, it gets up to 100% format complete but it keeps
coming back with an error message stating after each individual
format which I've carried out stating that said format can not be
completed I've tried all options via my PC Software which is
Windows XP to rectify said problem via various options all to no
avail so I then tried to format said raw stick via MS DOS Commands
via the Help list of commands in C: Drive with said Memory Stick
attached to E: Drive so when I type for example Format E: it comes
back with a message stating that said device is Raw & has no files
within said stick when I hit enter again under Format E: is ask's for
a /FS which I gather means File Switch however when I quiz said
command further like Format E: /FS NTFS or Format E: /FS FAT32
It does not recognize /FS or NTFS or FAT32 which is baffling considering
said Memory Stick's Drive/Space is set in Raw
I have basically went through every DOS Command under Help &
It recognizes Format/Convert/CHKDSK (Check Disk) but it keeps
coming back with the same info that said Disk (Memory Stick) is
Set @ Raw & It Has No Files under the Format E: it ALSO keeps
asking for a /FS but as mentioned it does not recognize FAT32
Or NTFS as options. I've even tried to create Files like
E: COPY FILE1.EXE No Joy Or E: XCOPY FILE1.EXE FILE2.EXE
No Joy in trying to create files on said disk in E: Drive (Memory Stick)
or E: *. FILE1.EXE (Nope) & So on & So on.
The bottom line here is MS DOS Syntex Command Lines have to be
exactly precise, or they do not work @ all.
I learnt this doing an old MS DOS Course @ Night Time College
over ten years ago but over the course of time one tends to
forget these MS DOS Commands & I lost my Study & Notes
Books due to a past rushed moving from one home address to
another due to a family member passing on & having to vacate
a property promptly which meant said study material got disregarded
thrown away without my prior knowledge BUMMER also due to
BUILT in PC Microsoft Software nowadays for example MS DOS
Commands are very rarely used however I't would be much
appreciated if their is any MS DOS Command Programmers out
there who can give me some pointers/directions as regards
to precise syntex command lines which I can try to Format
this Memory Stick which I have & take said disk out of the
Raw Mode (No Files) which it's stuck in @ present.
Sincerely, JJM1920 Generally flash sticks ( pen drive, usb thumb drive ) that can not be formatted are either originally protected such as a 1 time flash or defective.

What capacity is this stick?Said Stick Is 127 G.B. (Giga-Bite) Where did you get this 128 GB flash stick?
Also In MS DOS Mode It does recognize Format E:
For example the port/drive the said stick is connected too
but as mentioned it keeps asking for a format to switch ( /F.S.)
said disk capacity into which is set in Raw Mode however
when I type for example Format E: /FS NTFS or Format E:
/FS FAT 32 it does not recognize /FS or NTFS or FAT 32
But as mentioned it does recognize that said stick can
be Formated providing the Syntex Command Code is
precise & it does recognize that said drive does not
have any Files associated with it @ present it also recognizes
MS DOS commands like "CHKDSK (Check Disk) & Convert
but as mentioned it keeps requesting Files to switch it
too. Off of Ebay UKAny Suggestions SALMON TroutQuote from: JJM1920 on August 18, 2014, 03:58:52 PM

Any Suggestions Salmon Trout

If is newly purchased and does not work it could be a fake. Often very large size flash sticks at tempting prices on eBay are fakes or manufacturing rejects. Alternatively it could be genuine but defective.


Thanks for your response Salmon Trout yeah the said stick is certainly defective for example
when I type the following syntax line in MS DOS which is:-FORMAT E: /FS:NTFS /Q
It comes back with a response stating it can't carry out the second NTFS format because
the that said part is Un-write-able which is annoying also I'm having problems finding my
PC's Recovery Council because I READ on the Microsoft Website that if I can get my MS DOS
into Recovery Council Mode there is a command named 'Boot-Fix' which might rectify said
problem on said stick. When I plug said stick in my PC recognizes it, it states that said
disk/stick is @ present is in Raw Mode it states it's 125 GB in size yet the Pie Chart in
Properties shows that said Pie Chart is full up (All Blue) instead of being Free (Pink Color)
& as mentioned before it has no Files whatsoever @ present associated with it.
So it's certainly a defective drive. There is a Windows utility called Chkflsh which I use to test flash drives

http://mikelab.kiev.ua/index_en.php?page=PROGRAMS/chkflsh_en

Thanks for the Info Salmon Trout
I've checked out that Link you mentioned & downloaded
Check Flash Version 1.6 I'll let you know in due course how
I get on with running the said utility program.
Hopefully it will eradicate the flaw which it was stuck in
& I will be able to retrieve the defective drive.
It also takes a few hours to run so I will leave another
comment over the next few days
Once again thank you very much for your very valuable help
& As mentioned I'll leave a response over the next few
days until then I hope you have a pleasant week ahead
Sincerely JJM1920 :-) :-) Quote from: JJM1920 on August 25, 2014, 06:21:41 AM
Hopefully it will eradicate the flaw which it was stuck in

As far as I know, Check Flash just does what its name suggests: it checks flash drives and tells you if they are working or not. I do not think it can fix broken or fake drives.
1690.

Solve : Moving a object in Java for Android?

Answer»

I'm developing a SMALL Android app and I've encountered such a problem. I WANT to move a object across the screen in a particular amount of time (1 second), regardless of the screen size or density. I TRIED moving the object with DPI, but I don't get the same result on different SCREENS

1691.

Solve : help w/procedure?

Answer»

I'm coding up a billing doc. If an ACCOUNT# owes for several purchases this month,
I want to print one PAGE (consolidate MULTIPLE invoices) per account number?
What is the most effective way to approach this (PHP)? a way to compare acct#.We are going to need a lot more information such as how the rest of the APPLICATION is built along with how the data is STORED.

1692.

Solve : Excel VB script to change sheet over certain period?

Answer»

Hello,

PLEASE i want to DISPLAY different information in different excel sheets and project it on a dashboard.
Can someone help me with a VB script to automatically switch sheets over a set period of time.

For example: Excel workbook contains 5 sheets; sheet1, sheet2, sheet3, sheet4 & sheet5.
The code will automatically switch from sheet1 to sheet2 after 30 seconds.

If an addin or a software can assist me with this situation i will be glad.

Counting on you all!

Thanks.

Here's something basic that will cycle thru 5 sheets, displaying each sheet for 30 seconds.

Code: [Select]Public RunWhen As Double
Public Const cRunIntervalSeconds = 30 ' 30 seconds
Public Const cRunWhat = "SwitchSheet" ' the name of the sub to call

Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds) ' Current time + INTERVAL
Application.OnTime EarliestTime:=RunWhen, Procedure:=cRunWhat, Schedule:=True
END Sub

Sub SwitchSheet()
Dim SheetNum As Integer
SheetNum = Sheets(ActiveSheet.Name).Index ' current sheet number
If SheetNum &LT;= 4 Then ' set value to 1 less than max sheets to cycle thru
SheetNum = SheetNum + 1 ' increment to next sheet
Else
SheetNum = 1
End If
Worksheets(SheetNum).Activate ' activate next sheet
StartTimer ' start timer for next cycle
End Sub

1693.

Solve : Assembly language Loop (Debug.com)?

Answer»

You could use cx, requjiires more PUSH and pop.
Register dh has the char the user input. The CURRENT version sets the error code to this value. This count be used as a counter instead.
You must assume int 21 alters any registers. So you must save the register with a push and later pop. The PROGRAM already SAVES the dx register pair.
See if you can modify the program to use DL as a counter. Or use cx if you wish.

1694.

Solve : Maybe this is right?

Answer»

To start If I am in the wrong place I am sorry..I will keep short if for some reason you want me else where..For about three years I have had a problem that know one will look past face value..So I have been noseing around in PLACES probobly should not have been.. My experiance on a computer is what I have learned in this quest.. Three diffrent computers and installs of windows more times then I can count.. I loose authority I can not access programs after a while graphics and desktop BACKGROUND change can not get proper use out of audio.. Just to name a few.. Did a complete supposeabley clean a couple days ago..I uunderstand windows.old. I do not understand $inplace~tr or $windows~Q..I ran accross a "SI" file sometimes plural attached to a recyclebin..If I could open would be empty..One day I thought i would try something new.. I was useing a Maxthon cloud browser. I dragged the file into browser found a complete system,,I think comple with templetesscripts mannyy manny things all those files that when you run a program to scan for degraded reg entries .. Will always show but when you try and clean they cant FIND..I have tryed antivirus sites and forums..Bleeping computer ,windows 7 forum to many to name.. Trying to get UVK ultra virus killer to look at things but like everywhere else know one will look pasr saying thats a legit program.. My therory is what ever it is call started as maybe a trojan now is using legitimate programs like system restore windows update maintenance programs imui files netframework.. and rewriteing or adding to use triggers to install very fast do ther thing then with another trigger UNINSTALL very quick..I dont understand all this tohkens for authoriyu.. But I would think that a microsoft certifacate would be up to date.. I would like to thank anyone that has read threw to this point.. Any help would be very much appreciated.. Again Thankyou. Bill I will attach a log file from a service that uvk offers that I did not install or setup I use portable

=========================== UVK - Ultra Virus Killer log ===========================

System Info:

UVK - Ultra Virus Killer version: 6.6.2.0
Windows version: Microsoft windows 7 X64 Build 7601 Service Pack 1
I.E. Version: 8.00.7600.16385 (win7_rtm.090713-1255)
Time & date: 17:17 10/09/2014
System drive: C: 853.1 GB free of 931.4 GB.



HKCR\NCH.Switch.ape\Shell\open

2014/09/12 00:19:08 Registry entry successfully deleted:
HKCR\NCH.Switch.ape\DefaultIcon

2014/09/12 00:19:08 Registry entry successfully deleted:
HKCR\NCH.Switch.asf\Shell\open

2014/09/12 00:19:08 Registry entry successfully deleted:
HKCR\NCH.Switch.asf\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.au\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.au\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.avi\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.avi\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.caf\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.caf\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.caf\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.cda\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.cda\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dart\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dart\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dart\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dct\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dct\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dct\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.ds2\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.ds2\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.ds2\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dss\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dss\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dss\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dvf\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dvf\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dvf\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dvs\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dvs\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.dvs\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.flac\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.flac\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.flv\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.flv\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.gsm\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.gsm\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.gsm\DefaultIcon

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.m4a\Shell\open

2014/09/12 00:19:09 Registry entry successfully deleted:
HKCR\NCH.Switch.m4a\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mid\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mid\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mkv\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mkv\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mod\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mod\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.moh\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.moh\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.moh\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mov\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mov\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mp2\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mp2\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mp3\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mp3\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpc\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpc\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpeg\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpeg\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpg\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpg\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpga\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpga\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.mpga\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.msv\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.msv\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.msv\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.oga\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.oga\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.oga\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.ogg\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.ogg\DefaultIcon

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.qcp\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.qcp\Shell\open

2014/09/12 00:19:10 Registry entry successfully deleted:
HKCR\NCH.Switch.qcp\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.ra\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.ra\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.ra\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.ram\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.ram\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.ram\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.raw\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.raw\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.raw\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rcd\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rcd\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rcd\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rec\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rec\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rec\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rm\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rm\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rmj\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rmj\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.rmj\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.shn\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.shn\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.shn\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.smf\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.smf\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.smf\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.spx\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.spx\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.spx\DefaultIcon

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.voc\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.voc\Shell\open

2014/09/12 00:19:11 Registry entry successfully deleted:
HKCR\NCH.Switch.voc\DefaultIcon

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.vox\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.vox\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.vox\DefaultIcon

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wav\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wav\DefaultIcon

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wma\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wma\DefaultIcon

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wmv\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wmv\DefaultIcon

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wv\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wv\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\NCH.Switch.wv\DefaultIcon

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\neffile\Shell\NCHconvertimage

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\PhotoViewer.FileAssoc.Bitmap\Shell\NCHconvertimage

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\PhotoViewer.FileAssoc.Png\Shell\NCHconvertimage

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\PhotoViewer.FileAssoc.Tiff\Shell\NCHconvertimage

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\spjfile\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\vpjfile\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\Windows.IsoFile\Shell\open

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.3GP\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.AIFF\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.ASF\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.AU\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.M4A\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MIDI\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MOV\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:12 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MP3\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MPEG\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WAV\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WMA\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WMV\Shell\Convert with Switch Sound File Converter

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\NCH.VideoPad.vpj\Shell\open

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\NCH.VideoPad.vpj\DefaultIcon

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\7zfile\Shell\NCHextract

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\CABFolder\Shell\NCHextract

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\docfile\Shell\NCHconvertdoc

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\docxfile\Shell\NCHconvertdoc

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\gzfile\Shell\NCHextract

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\Max3.Association.HTML\Shell\NCHconvertdoc

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\MediaMonkey.AVIFile\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:13 Registry entry successfully deleted:
HKCR\MediaMonkey.DIVXFile\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\MediaMonkey.FLVFile\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\MediaMonkey.MKVFile\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\MediaMonkey.RMFile\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\MediaMonkey.VOBFile\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.3gp\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.3gp\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.asf\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.asf\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.avi\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.avi\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.divx\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.divx\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.dv\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.dv\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.dv\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.flv\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.flv\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.m4v\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.m4v\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mkv\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mkv\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mod\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mod\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mov\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mov\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mp4\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mp4\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mpe\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mpe\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mpeg\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mpeg\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mpg\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mpg\DefaultIcon

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mts\Shell\open

2014/09/12 00:19:14 Registry entry successfully deleted:
HKCR\NCH.Prism.mts\DefaultIcon

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.rm\Shell\open

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.rm\DefaultIcon

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.swf\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.swf\Shell\open

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.swf\DefaultIcon

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.vob\Shell\open

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.vob\DefaultIcon

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.wmv\Shell\open

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\NCH.Prism.wmv\DefaultIcon

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\odtfile\Shell\NCHconvertdoc

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\pdffile\Shell\NCHconvertdoc

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\rarfile\Shell\NCHextract

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\rtffile\Shell\NCHconvertdoc

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\tar.gzfile\Shell\NCHextract

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\tarfile\Shell\NCHextract

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\Windows.IsoFile\Shell\NCHextract

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.3GP\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.ASF\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.M2TS\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MOV\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MP4\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MPEG\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WMV\Shell\Convert with Prism Video File Converter

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\wpdfile\Shell\NCHconvertdoc

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\wpfile\Shell\NCHconvertdoc

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\Directory\Shell\Create slideshow with PhotoStage Slideshow Producer

2014/09/12 00:19:15 Registry entry successfully deleted:
HKCR\MediaMonkey.AVIFile\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.DIVXFile\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.VOBFile\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.XVIDFile\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\mpeg2file\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\NCH.PhotoStage.spj\Shell\open

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\NCH.PhotoStage.spj\DefaultIcon

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\NCH.PhotoStage.ssb\Shell\open

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\NCH.PhotoStage.ssb\DefaultIcon

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\NCH.PhotoStage.ssp\Shell\open

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\NCH.PhotoStage.ssp\DefaultIcon

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\SystemFileAssociations\Shell\Create slideshow with PhotoStage Slideshow Producer

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.ASF\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MOV\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MP4\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MPEG\Shell\NCHeditvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.AACFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.APEFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.AVIFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.AVIFile\Shell\NCHconvertvideo

2014/09/12 00:19:16 Registry entry successfully deleted:
HKCR\MediaMonkey.CDAFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.DIVXFile\Shell\NCHconvertvideo

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.FLACFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.FLVFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.MKVFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.MPCFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.OGGFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.RMFile\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.VOBFile\Shell\NCHconvertvideo

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\MediaMonkey.XVIDFile\Shell\NCHconvertvideo

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\mpeg2file\Shell\NCHconvertvideo

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.act\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.amr\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.caf\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.dart\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.dct\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.ds2\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.dss\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.dvf\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.dvs\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.gsm\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.moh\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.mpga\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:17 Registry entry successfully deleted:
HKCR\NCH.Switch.msv\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.oga\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.qcp\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.ra\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.ram\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.raw\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.rcd\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.rec\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.rmj\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.shn\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.smf\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.spx\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.voc\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.vox\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.Switch.wv\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.3gp\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.3gp\DefaultIcon

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aac\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aac\DefaultIcon

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.act\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.act\DefaultIcon

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aif\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aif\DefaultIcon

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aifc\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aifc\DefaultIcon

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aiff\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.aiff\DefaultIcon

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.amr\Shell\open

2014/09/12 00:19:18 Registry entry successfully deleted:
HKCR\NCH.WavePad.amr\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.ape\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.ape\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.asf\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.asf\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.au\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.au\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.avi\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.avi\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.caf\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.caf\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.cda\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.cda\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dart\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dart\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dct\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dct\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.ds2\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.ds2\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dss\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dss\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dvf\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dvf\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dvs\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.dvs\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.flac\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.flac\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.flv\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.flv\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.gsm\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.gsm\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.m4a\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.m4a\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.mid\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.mid\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.mkv\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.mkv\DefaultIcon

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.mod\Shell\open

2014/09/12 00:19:19 Registry entry successfully deleted:
HKCR\NCH.WavePad.mod\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.moh\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.moh\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mov\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mov\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mp2\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mp2\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mp3\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mp3\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpc\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpc\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpeg\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpeg\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpg\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpg\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpga\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.mpga\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.msv\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.msv\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.oga\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.oga\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.ogg\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.ogg\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.qcp\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.qcp\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.ra\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.ra\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.ram\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.ram\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.raw\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.raw\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rcd\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rcd\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rec\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rec\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rm\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rm\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rmj\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.rmj\DefaultIcon

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.sd2\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.sd2\Shell\open

2014/09/12 00:19:20 Registry entry successfully deleted:
HKCR\NCH.WavePad.sd2\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.shn\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.shn\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.smf\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.smf\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.spx\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.spx\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.voc\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.voc\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.vox\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.vox\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wav\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wav\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wma\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wma\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wmv\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wmv\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wpp\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wpp\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wpp\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wv\Shell\open

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\NCH.WavePad.wv\DefaultIcon

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.3GP\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.AIFF\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.ASF\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.ASF\Shell\NCHconvertvideo

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.AU\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.M4A\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MIDI\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MOV\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:21 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MOV\Shell\NCHconvertvideo

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MP3\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MP4\Shell\NCHconvertvideo

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MPEG\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.MPEG\Shell\NCHconvertvideo

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WAV\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WMA\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\WMP11.AssocFile.WMV\Shell\Edit with WavePad Sound Editor

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\giffile\Shell\Edit with PhotoPad

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\jpegfile\Shell\Edit with PhotoPad

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\MediaMonkey.AACFile\Shell\NCHeditsound

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\MediaMonkey.OGGFile\Shell\NCHeditsound

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.arw\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.arw\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.bmp\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.bmp\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.cr2\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.cr2\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.crw\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.crw\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.dcr\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.dcr\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.dng\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.dng\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.erf\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.erf\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.gif\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.gif\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.jp2\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.jp2\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.jpeg\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.jpeg\DefaultIcon

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.jpg\Shell\open

2014/09/12 00:19:22 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.jpg\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.kdc\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.kdc\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.mef\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.mef\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.mos\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.mos\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.mrw\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.mrw\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.nef\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.nef\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.nrw\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.nrw\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.orf\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.orf\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pbm\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pbm\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pcx\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pcx\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pef\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pef\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pgf\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pgf\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pgm\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.pgm\DefaultIcon

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NCH.PhotoPad.png\Shell\open

2014/09/12 00:19:23 Registry entry successfully deleted:
HKCR\NWith due respect for your experience and observation, it would appear you are missing something. The problem is much worse than you imagine.

You may wish to go over to the virus forum and read the instructions there and post the results of doing the scans they recommend. At the present time, the removal of malware is more of an art than an exact science. This is because the people who make malware are criminals and criminals don't stick to the rules.

In fact, there is evidence that the evil attack is well organized, even by political governments of this world. Once you understand that, you can see that it is never an easy job to REMOVE all malicious elements from your computer.
Here is a significant quotation:
Quote

http://en.wikipedia.org/wiki/Malware

On March 29, 2010, Symantec Corporation named Shaoxing, China, as the world's malware capital.[24] A 2011 study from the University of California, Berkeley, and the Madrid Institute for Advanced Studies published an article in Software Development Technologies, examining how entrepreneurial hackers are helping enable the spread of malware by offering access to computers for a price. Microsoft reported in May 2011 that one in every 14 downloads from the Internet may now contain malware code. Social media, and Facebook in particular, are seeing a rise in the number of tactics used to spread malware to computers.[25]
And that is only part of the story.
I would really like to thank you for takeing the time to respond.. I was checking to see maybe this was the way to go about it.. Like I said about the other forums and malware techs.. There advisewas to go to folder options and make it so I could not see the stuff. I hope yours is diffrent three years you are the first to say I MAY have a problem..I can not remember the authors name. But in the sixties he wrote "This country would be taken over,Without a shot being fired".. Again thankyou.. If you ever get bohred.. and want to see a well thought out plan that I think was used by the indians.. Apache I beleive
1695.

Solve : Visual Studio 2013 - cannot find specific file?

Answer»

Hello there,

Sorry if this post has once been POSTED (I couldn't find a related one).

I am new to Visual studio 2013, and I have been trying out the basics of Object Oriented Programming in C++ for class and object. I tried to run my code on VS, building was success, but when it comes to debugging, it says the system cannot find the file specified, ie project.exe. here's my code that I tried from a book:

// program declares a class Point for var x & y

#include

class Point
{
private:
int x,y; //point coordinate
public:
void setX(int val);
void setY(int val);
int getX();
}; // class Point

void Point::setX(int val)
{x=val;};

void Point::setY(int val)
{y=val;};

void Point::getX()
{return x;};

void Point::getY()
{return y;};


//this serves as driver (main) for class Point
//initiates the class Point and CALL methods from class Point

int main()
{

//create a new instance of a class Point
Point apoint;
int x,y;

cout<<"Type a nunmber for x:";
cin>> x;
cout<<"Type a number for y:";
cin>> y;

//invoke methods
apoint.setX(x);
apoint.setY(y);

//display output via methods getX & getY

cout<<"\n The numbers from the Point object are x = "<cout<<"\n y = "<
return 0;
}

What could be the problem? Once in a while I also encounter this problem when I tried out C codes. Is there any setting in VS that I should change? Or anything that I should include in my code?

Thank you so much!! This i only a generalized response.
MS Visual Studio programs often have two objectives that are mutually elusive.
One is to produce code ready for real-time debugging.
The other is to create lean code for distribution to end-users.
In other words, the debug features add to the payload.

Check you documentation about how to prepare code for debugging.
http://msdn.microsoft.com/en-us/library/sc65sadd.aspx
Debugging in Visual Studio
Quote

...
Debug Settings and Preparation

Covers the Project Property settings and setup you must perform to create a debug build for your project. Also covers setup for remote debugging, debugging Code Center Premium source, debugging a partial-trust application, and debugging a high-performance cluster application.
...
Please read over the ARTICLE above and come back here. I will not be able to help you personally, but somebody else will.




Quote from: HitsugayaHisagi on September 24, 2014, 09:54:48 AM
building was success
Not if it was the code you provided.

-getX() is declared as returning an int in the class definition, but your implementation has it defined as returning void.
-you define an implementation for getY(), but the class has no definition.
-Both the implementation getY/GetY methods have no return value, but you are trying to return values.
-you reference cout and cin, but they are out of scope because you do not specify the std:: namespace either when you use them or in a "using namespace" statement.
-the "#include" should be #include, because according to the C++ specifications standard C++ library header files do not have a .h file extension.

I got it to compile by fixing these errors (fixing the getX() and getY() implementations, adding the getY() method to the class definition, adding "using namespace std;" after the includes, and changing iostream.h to iostream.



Thank you so much for replying!

I did some fixing on the program, but the problem is still there. Saying that... unable to start program, system cannot find specific file.

Here's the edited one.

//this serves as driver (main) for class Point
//initiates the class Point and call methods from class Point

#include

using namespace std;

int main()
{

//create a new instance of a class Point
Point apoint;
int x,y;

cout<<"Type a nunmber for x:";
cin>> x;
cout<<"Type a number for y:";
cin>> y;

//invoke methods
apoint.setX(x);
apoint.setY(y);

//display output via methods getX & getY

cout<<"\n The numbers from the Point object are x = "<cout<<"\n y = "<
return 0;
}



// program declares a class Point for var x & y

class Point
{
private:
int x,y; //point coordinate
public:
void setX(int val);
void setY(int val);
int getX();
int getY();
}; // class Point

void Point::setX(int val)
{x=val;};

void Point::setY(int val)
{y=val;};

int Point::getX()
{return x;};

int Point::getY()
{return y;};


No building error. No warning. I did ask my friends about this problem too, but they weren't sure either. Some one suggested it could be the setting problem. Any suggestions on it? Or is it still the coding?

Thank you again!! That doesn't build either.

Code: [Select]Error 1 error C2065: 'Point' : undeclared IDENTIFIER testpoint.cpp 15 1 testPoint
Error 2 error C2146: syntax error : missing ';' before identifier 'apoint' testpoint.cpp 15 1 testPoint
Error 3 error C2065: 'apoint' : undeclared identifier testpoint.cpp 15 1 testPoint
Error 4 error C2065: 'apoint' : undeclared identifier testpoint.cpp 24 1 testPoint
Error 5 error C2228: left of '.setX' must have class/struct/union testpoint.cpp 24 1 testPoint
Error 6 error C2065: 'apoint' : undeclared identifier testpoint.cpp 25 1 testPoint
Error 7 error C2228: left of '.setY' must have class/struct/union testpoint.cpp 25 1 testPoint
Error 8 error C2065: 'apoint' : undeclared identifier testpoint.cpp 29 1 testPoint
Error 9 error C2228: left of '.getX' must have class/struct/union testpoint.cpp 29 1 testPoint
Error 10 error C2065: 'apoint' : undeclared identifier testpoint.cpp 30 1 testPoint
Error 11 error C2228: left of '.getY' must have class/struct/union testpoint.cpp 30 1 testPoint
The Point class is declared AFTER you are using it. That doesn't work.

If I move the class definition such that it appears before the main ROUTINE it works.
1696.

Solve : Found a bug in the ShuntingYard function(with functions)!?

Answer»

Hi everyone ,
Found out while implementing the Shunting Yard algorithm in VB that functions with argument separators can be used wrong:

This line of pseudo-code for example is accepted by this algorithm but it's not the wright way to use parenthesis right?

functionName((2000,)500)

more info about the algorithm:
http://en.wikipedia.org/wiki/Shunting-yard_algorithm

does anyone know a simple way to solve this bug?
Thanks in advance
TomA lot of views but no reply,
Did i say something wrong? or is this question placed in the wrong section of the forum?
Going to upload the code anyway for those who maybe are interested.. maybe i did something wrong in the code?

(its in vbscript btw)

Code: [Select]input = split("function ( 1 ( , 2 ) )")
msgbox shuntingyard(input)

function shuntingyard(input)

Queue = array()
Stack = array()

for Counter = 0 to ubound(input)
select case input(Counter)
case "("
call push(input(Counter), Stack)

case ")"
do while not(peek(Stack) = "(")
if stackisempty(Stack) then MsgBox"can't find a matching ""(""."
call push(pop(Stack), Queue)
loop
discard = pop(Stack)

case "+","-","*","/","%","^"
operator_a = input(Counter)
do while isOperator(peek(Stack))
operator_b = peek(Stack)
if (associativity(operator_b) = "left" and precedence(operator_a) = precedence(operator_b)) or (precedence(operator_a) &LT; precedence(operator_b)) then
call push(pop(Stack), Queue)
else
exit do
END if
loop
call push(operator_a, Stack)

case "function"
call push(input(Counter), Stack)

case ","'function seperator
'until the token at the top of the stack is a left parenthesis,
'pop operators off the stack onto the output queue.
'if no left parentheses are encountered,
'either the separator was MISPLACED or parentheses were mismatched.
do while not(peek(Stack) = "(")
if stackisempty(Stack) then MsgBox"can't find a matching ""("" for a function."
call push(pop(Stack), Queue)
loop

case else'"number"
call push(input(Counter), Queue)

end select
next

for itemcount = 0 to ubound(Stack)
if peek(Stack) = "(" then MsgBox"can't find a matching "")""."
call push(pop(Stack), Queue)
next

shuntingyard = join(Queue," ")
end function

function isoperator(item)
isoperator = len(item) = 1 and instr("+-*/%^",item)
end function
set precedence = createobject("scripting.dictionary")
with precedence
.add "^",10'[right]
.add "*",8
.add "/",8
.add "%",8
.add "+",7
.add "-",7
end with
function associativity(assoc)
select case lcase(assoc)
case "^","\"
associativity = "right"
case else
associativity = "left"
end select
end function

SUB PUSH(ITEM,BYREF STACK)
IF UBOUND(STACK) > -1 THEN
REDIM PRESERVE STACK(UBOUND(STACK) + 1)
STACK(UBOUND(STACK)) = ITEM
ELSE
STACK = ARRAY(ITEM)
END IF
END SUB
FUNCTION POP(STACK)
IF UBOUND(STACK) > -1 THEN
POP = STACK(UBOUND(STACK))
REDIM PRESERVE STACK(UBOUND(STACK) - 1)
END IF
END FUNCTION
FUNCTION STACKISEMPTY(STACK)
IF UBOUND(STACK) > -1 THEN
STACKISEMPTY = FALSE
ELSE
STACKISEMPTY = TRUE
END IF
END FUNCTION
FUNCTION PEEK(STACK)
IF UBOUND(STACK) > -1 THEN
PEEK = STACK(UBOUND(STACK))
END IF
END FUNCTION
At the comma it finds a ( immediately so never executes the loop body.

it also throws a subscript out of range error when POP() is called and the array only has ONE item. In this case the exception occurs when only "function" is left on the stack. It occurs while draining said stack in the "for itemcount..." loop.BC_Programmer,
thanks for the reply

Quote

"At the comma it finds a ( immediately so never executes the loop body."

so is this my mistake or did i followed the example from Wikipedia right?:

Quote
If the token is a right parenthesis:
Until the token at the top of the stack is a left parenthesis, pop operators off the stack onto the output queue.
Pop the left parenthesis from the stack, but not onto the output queue.
If the token at the top of the stack is a function token, pop it onto the output queue.
If the stack runs out without finding a left parenthesis, then there are mismatched parentheses.

Quote
it also throws a subscript out of range error when POP() is called and the array only has one item.

tried it with just one item and it works fine here:
input = split("function")
1697.

Solve : visual basic script out of bounds?

Answer»

So I'm attempting to LOOP through a text file in vbs. The problem seems to be occurring when I'm grabbing the line of text. If someone more versed in visual basic could help me spot the error, it would be much appreciated.

Note: the file 'planets' is a text file with no extension. And %wvec_lim%=2

Code: [Select]' grav "%cd%\planets" %pos_x% %pos_y% %pos_z% "%cd%" %wvec_lim%
'
' Applies gravity for each planet withing range. Uses wvec_lim variable
' from files settings to determine range. if dis/grav < wvrc_lim then
' gravity is applied. Value of grav is taken from file settings as well.

dim file,x,y,z,working_x,working_y,working_z,fso,arrline,dis,WVEC,vec_x,vec_y,vec_z,x1,y1,z1,grav,wvec_lim,planets,listFile,NAME

file=Wscript.Arguments(0)
x=Wscript.Arguments(1)
y=Wscript.Arguments(2)
z=Wscript.Arguments(3)
cd1=Wscript.Arguments(4)
wvec_lim=CSng(Wscript.Arguments(5))
vec_x=0
vec_y=0
vec_z=0

wscript.echo "|"&file

' Loop through planets list
Set fso = CreateObject("Scripting.FileSystemObject")
Set listFile = fso.OpenTextFile(file)
do while not listFile.AtEndOfStream
line = listFile.ReadLine()

wscript.echo "|"&line

' setup variables
arrline=Split(line,",")
working_x=arrline(0)
working_y=arrline(1)
working_z=arrline(2)
name=arrline(3)
grav=arrline(5)

' Ignore all planets with 0 gravity
' These are comments in the file
If grav <> 0 Then

'find distance
dis=Sqr((x-working_x)*(x-working_x)+(y-working_y)*(y-working_y)+(z-working_z)*(z-working_z))
wvec=dis/grav


'determine adding
If wvec < wvec_lim Then

' Find Vector length
x1=round(((working_x-x)/dis/grav),2)
y1=round(((working_y-y)/dis/grav),2)
z1=round(((working_z-z)/dis/grav),2)

' Display Data
Wscript.echo name
Wscript.echo "wvec=" & round(wvec,2)
Wscript.echo "x1="&x1
Wscript.echo "y1="&y1
Wscript.echo "z1="&z1

' Add vector length to sum
vec_x=vec_x+x1
vec_y=vec_y+y1
vec_z=vec_z+z1

End If
End If
Loop

' Make corrections on possition
x=x+vec_x
y=y+vec_y
z=z+vec_z

' Write to Files
set objFSO=CreateObject("Scripting.FileSystemObject")
outFile=cd & "pos_x"
Set objFile = objFSO.CreateTextFile(outFile,True)
objFile.Write x & vbCrLf
objFile.Close

outFile=cd & "pos_y"
Set objFile = objFSO.CreateTextFile(outFile,True)
objFile.Write y & vbCrLf
objFile.Close

outFile=cd & "pos_z"
Set objFile = objFSO.CreateTextFile(outFile,True)
objFile.Write z & vbCrLf
objFile.Close
Code: (planets) [Select]
0,0,0,0,0,0,0,0, How to READ: x,y,z,name,danger,grav
0,0,0,0,0,0,0,0, danger 0=can't land, 1=can safely land, 2=crash
0,0,0,0,0,0,0,0, smaller the grav the harder the pull
0,0,0,0,0,0,0,0, 1 pt ~ 100,000 miles


0,0,0,0,0,0,0,0, Sol System
390000,470000,-38000,Sol,2,1
390000,470360,-37900,Mercury,1,50
390600,470070,-38100,Venus,1,30
390629,469700,-38070,Earth,1,10
388584,470000,-38030,Mars,1,10
394000,470836,-37970,Jupiter,0,5
381118,469990,-38000,Saturn,0,7
372136,469900,-37920,Uranus,0,20
390000,442012,-38000,Neptune,0,20
426662,470000,-40000,Pluto,1,100


0,0,0,0,0,0,0,0, Other planets
10,10,10,Abron,1,10
Code: (output) [Select]|T:\space\bin\planets
|

T:\space\bin\grav.vbs(31, 2) Microsoft VBScript runtime error: Subscript out of
range: '[number: 0]'

T:\space\bin\chkcrsh.vbs(29, 5) Microsoft VBScript runtime error: Subscript out
of range: '[number: 0]'
I have narrowed it down to these lines:
Set fso = CreateObject("Scripting.FileSystemObject")
Set listFile = fso.OpenTextFile(file)
do while not listFile.AtEndOfStream
line = listFile.ReadLine()
Somehow line is not getting setThe planets file has empty lines. They have no "," so Split returns an empty array. Attempting to index an empty array results in a Subscript out of range error on line 31. You can wrap the logic in the loop after splitting the string in an If so it is only processed if the line has elements. Or you could do the sme and test that the line isn't blank.
Thank you so much! I thought I had tried that before, but I had forgotten to remove the first line (which was blank). It works now.

1698.

Solve : Command Prompt script to transfer files from Win 7 to Win XP?

Answer»

Code: [Select]dir c:\data -r | ? {!($_.psiscontainer) -AND $_.lastwritetime -gt (get-date).date} |

% {Copy-Item -path $_.fullname -destination \\hyperv1\shared\backup}
Hello,

I have the above script which is supposed to transfer files I have been working on over, say, the last 24 hours from a Win 7 PC to a Win XP PC with which it is networked in a Homegroup - both are wireless and use the same router.
This will SAVE me from having to copy and paste each and every file I use in Win 7 in a day to my XP PC.

If I wanted to transfer, say, a Visual Studio project, WebSite2, which is here:

C:\Users\Steve\Documents\Visual Studio 2013\WebSites\WebSite2 to a shared folder on my XP PC, how would I customise the script above to copy and paste the RELEVANT files from Win 7 to Win XP, and would I type in that script daily in Command Prompt to perform the task?

Thanks.

High1Somebody else will help with your script.

I stopped using batch files a long time ago. There are some many utilities out there already do almost anything you can think of. Almost.
I keep my PROJECTS in their own folders or partitions. If I need update my other PC, I use a tool called Sync Toy. It is free from Microsoft and needs .NET framework. First time you use it requires a little work. After that, it does areal quick job of updated either one-way or two-way from and to both PCs. It only does what is needed. Errors do not FREEZE it.


Thanks for that, Geek.

I'll take a look at the link you kindly posted.

High1Oh Oh,
I forgot the link.
Here it is:
http://www.microsoft.com/en-us/download/details.aspx?id=15155Thanks, Geek

I have downloaded it now and will explore!

Regards

High1Quote from: Geek-9pm on September 12, 2014, 05:01:46 PM

Somebody else will help with your script.

I stopped using batch files a long time ago
Umm. Do you not RECOGNIZE that as PowerShell code? Yes, I bought a book on Power Shell. Maybe I will read it when there is something that I can not do with stuff that is already in a figurative box.
1699.

Solve : Can someone please help explain this javascript function in your own words??

Answer» http://jsbin.com/ruzurorokofu/1/edit

If anyone could be a great help and help me understand what this javascript function is trying to accomplish?
Any brief explanation would be great

Code: [Select]/* Engagement Score */

s.eVar5=s.engagementScore('event31','s.pageName|products|1>s.events|event6|1>s.eVar3|competitiveMatrix.pdf|1>s.pageName|webLeadsForm:complete|1>s.events|purchase|1>s.events|event4|1>s.events|scView|1');

/* Engagement Score Tracking */

s.engagementScore = new Function("e","l","c","");

var A,B,C,D,E,F,G,H,I,J;

I=J='';
A=s.split(l,'>');
B=A.length;
E=c?c:'s_ES';

//D=value of cookie with name 'E'

D=s.c_r(E);

if(!D){
for(C=0;C&LT;B;C++){
D=D+'0,';
}
}

D=s.split(D,',');

for(C=0;C<B;C++){

F=s.split(A[C],'|');
G=eval(F[0]);

if(D[C]==1){
I=I+'1,';
} else if(G!=undefined){

if(G.indexOf(F[1])>-1&&D[C]!=1){

s.events=s.apl(s.events,e,',',2);
s.products=s.apl(s.products,';;;;'+e+'='+F[2],',',2);
I=I+'1,';
J='+'+F[2];

} else {
I=I+'0,';
}
} else{
I=I+'0,';
}
}
s.c_w(E,I,0);
return J;

s.split=new Function("l","d",""+"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"+"++]=l.substring(0,i);l=l.substring(i+d.length);}return a");We are going to need more CONTEXT about what you are trying to do but to me that file looks like it's for Adobe Analytics/Sitecatalyst/Omniture based on the name of some of the variables used.camerongray,

It is for SiteCatalyst , which is supposed to track engagement score.
Seeing the different variables:
pageName|Products, eVar3(matrix.pdf), webleads form COMPLETION page and purchase.

What is the newFunction constructor doing with the variables?

Is it adding a score value? or is it just seeing if you made a purchase, see if you also engaged with the form completion page, .pdf, or other products?

I just need to verify if I am sort of reading this correctly.

Not needing a solution, but more what the function is doing to get the engagementScore.Here is some info on the score weights etc: http://blogs.adobe.com/digitalmarketing/analytics/summit-topic-1-visitor-scoring-in-sitecatalyst/
1700.

Solve : mysql Command line client help?

Answer»

Hello
I just WANTED to know how to CREATE user accounts in 'mysql COMMAND LINE client' and login with them.
I have SEEN many tutorials on the internet about this but only a few concerned with command line client.
Any help will be appreciated.
CheersThe command line client is just a frontend to the SQL server, you don't add users to the client, you just add them to the database server.

For this you would use an CREATE USER... query to create the user on the database server and then an appropriate GRANT... query to give the user sufficient access rights.

This user can then login to the SQL server through the command line client or through any other means of connecting to the database.