web stats analysis

Archive for August 23rd, 2013

How to line break between two lines in MessageBox.Show?

How to insert an enter between lines into a MessageBox.Show?

How to line break using MessageBox.Show?

I have Simple solution is below:

You just add \n between two line.

MessageBox.Show(“Good\nMorning”);

Output like this.

Good
Morning

Your problem has been solved.

How to create a pop-up wordpress email contact form?

To create a pop-up wordpress email contact form.

Create pop-up wordpress email contact form.

If you want to create it then follow below steps:

Step:1-Download Contact Form 7 and the Easy FancyBox plugins.
Step:2-For download Contact Form 7 Click here.
Step:3-For download Easy FancyBox Click here.
Step:4-Install both plugin and active.
Step:5-We will use the example email form already created in Contact Form 7.The Contact Form administration page displays the code you must cut and paste into your WordPress editor to generate the form.
Step:6-Create a new page in wordpress.include email form.
Step:7-Then you have to paste the code contained in brackets from the contact form 7 administration page into your page.
Step:8-You paste the code where you want to appears like click below.
Now your wordpress form display on a page in your site.Now,instead of being embedded in the page,if you want it to pop-up and overlay the page when a visitor clicks a link.That is where the Easy FancyBox plugin comes in.You can make any page element appear in a pop-up window with Easy FancyBox.Edit new page, click the HTML tab, and add the following code.


<a href="#contact_form_pop">Contact Us</a>

<div style="display:none">
<div id="contact_form_pop">
<?php echo do_shortcode(' [contact-form 1 "Contact form 1"] '); ?>
</div>
</div>
Now have a link that launches your WordPress form in a pop-up window.You will probably want to do some CSS styling of the email form to ensure that the height and width are correct and that error messages are contain within the pop-up, but this should be enough to get you started.

How to copy local text file to remote desktop?

Copy local text file to remote desktop.

You just impliment below code.



ExecuteCommand("Copy " & Directory.GetCurrentDirectory & "\Output\Files.txt \\myservername\C$\Files.txt")

' ...

Public Sub ExecuteCommand(ByVal Command As String)
Dim ProcessInfo As ProcessStartInfo
Dim Process As Process
ProcessInfo = New ProcessStartInfo("cmd.exe", "/K " & Command)
ProcessInfo.CreateNoWindow = True
ProcessInfo.UseShellExecute = True
Process = Process.Start(ProcessInfo)
' You might want to wait for the copy operation to actually finish.
Process.WaitForExit()
' You might want to check the success of the operation looking at
' Process.ExitCode, which should be 0 when all is good (in this case).
Process.Dispose()
End Sub

Finally, you could have just used File.Copy instead

File.Copy(Directory.GetCurrentDirectory & “\Output\Files.txt”,
“\\myservername\C$\Files.txt”)

How to use Module Pattern in javascript?

Module Pattern in javascript.

Description of javascript module pattern

Modules are an integral part of any robust application’s architecture and typically help in keeping the units of code for a project both cleanly separated and organized. The module pattern is a common JavaScript coding pattern.If you want to understand Module Pattern you should have knowledge about the Closure principle of JavaScript.

Description about closure:

Closures are define through which inner functions can refer to variables present in their outer enclosing function after their parent functions have already terminated.

Here example for closure:


// Below function generates a new function for adding numbers

function generate(number) {

// Return a simple function for adding two numbers

// with the first number borrowed from the generator

return function (toAdd) {

return number + toAdd
};
}

// addFive now contains a function that takes one argument,

// adds five to it, and returns the resulting number

var five_add = generate(5);

// We can see here that the result of the six_add function is 9,

// when passed an argument of 4

alert(five_add(4) == 9);   // Which return true

Example of Module Pattern


var Module_Employee = (function () {
var List_employee = [];
return {
add: function (employee) {
List_employee.push(employee);
},
getAll: function () {
return List_employee;
},
Count: function () {
return List_employee.length;
}
};
})();
We can use our Module_Employee in below way.

Module_Employee.add({ Id: '01', Name: 'Emon Khan', Designation: 'Software Engineer' });
Module_Employee.add({ Id: '02', Name:'Khairul Islam', Designation: 'Senior Software Engineer'});
Module_Employee.getAll();

We could not complete your iTunes Store request. An unknown error occurred (-9808).

Error:We could not complete your iTunes Store request. An unknown error occurred (-9808). There was an error in the iTunes Store. Please try again later.”

iTunes Store: “An unknown error occurred (-9808)”

Apple iTunes Results for “Not complete store request”

I try and get solution is like below:

When you try to connect to the iTunes Store you may receive the alert message “We could not complete your iTunes Store request. An unknown error occurred (-9808). There was an error in the iTunes Store. Please try again later.”

Follow below steps:

Step:1-Go to start -> control panel -> internet option.

Note:-If you are using Windows Vista you may need to select Classic View on the left before you
can see Internet Options.
Note:-If you are using WIndows 7 you may need to change “View by” to either Large icons or
Small icons before you can see Internet Options.
Step:2-Click the Advanced tab.
Step:3-In the Settings box, scroll down to the Security section.
It’s like a below.

Step:4-Deselect the option to “Check for server certificate revocation (requires restart).”
Step:5-Select the options for “SSL 3.0″ and “TLS 1.0.”.
Step:6-Apply the changes and restart your computer.