Posts

Quantum Internet Benefits

Image
  The quantum internet is a network of quantum computers that are connected together using quantum communication. It has the potential to revolutionize many industries, including: Secure communications: The quantum internet would be inherently secure, as it would be impossible to eavesdrop on quantum communications without being detected. This could be used for applications such as secure financial transactions, government communications, and military applications. Quantum computing: The quantum internet would allow quantum computers to be connected together, which would allow them to solve problems that are currently impossible for classical computers. This could be used for applications such as drug discovery, financial modeling, artificial intelligence, and materials science. Quantum sensors: The quantum internet could be used to connect quantum sensors together, which would allow them to create a global network of sensors that could be used to monitor the environment, detect earthq

C# Windows Application Data Form sample Module: Save and Retrieve Data using MS SQL database

Image
Methods Used: 1. Created a database as NameDB and Database table as namedata as follows. --table for saving retrieving datas create table namedata (  ID int identity,  Firstname nvarchar(500),  Secondname nvarchar(500),  Fullname nvarchar(500) ) --get  query result select * from namedata 2. Create a  stored procedure for saving data -- creating stored procedure for saving data create proc nameprocedure  @Firstname as nvarchar(500), @Secondname as nvarchar(500), @Fullname as nvarchar(500) as begin   SET NOCOUNT ON; Insert into  namedata(Firstname,Secondname,Fullname) values(@Firstname,@Secondname,@Fullname) end -- execute strored procedure exec nameprocedure 3. Windows Application design for save and Retrieve data form set formborderstyle as none 4. App.config settings to Connect database <?xml version="1.0"?> <configuration>   <configSections>   </c

Java Swing Full Screen window Application without Maximize, Minimize, Exit Buttons

Image
Code For FullScreen Java Swing Desktop Application package fullscreen; import java.awt.Toolkit; import javax.swing.JFrame; public class FullScreen extends JFrame { /** * full screen code using Java Swing component JFrame */ static JFrame f= new FullScreen(); public FullScreen() { setUndecorated(true); //removing Max, min, Exit buttons setSize(Toolkit.getDefaultToolkit().getScreenSize()); //set window size as full screen setVisible(true); } public static void main(String[] args) { // no code here } } Output Screen 

Getting Distance and Traveling Time (Bus Mode) Details from Google Maps in ASP.NET C# using Google Maps API XML & XPath Webservice

Image
Description: 1. In Design View Coding, add the Javascript Code in Head section to make an integration with Google Maps API Script.     <script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"         type="text/javascript"></script> 2. Add the Source and Destination functions inside script tags, which is indicating the locations function Source() {             try {                 var input = document.getElementById('TextBox1');                 var autocomplete = new google.maps.places.Autocomplete(input);                 autocomplete.setTypes('changetype-geocode');             }             catch (err) {                 // exception catching here             }         }                  function Destination() {             try {                 var input = document.getElementById('TextBox2');                 var autocomplete = new google.maps.plac

Show your Current Location in Google Maps using ASP.NET C# website and Google Maps API

Image
Descriptions: Add this script tag inside <Head> section " <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyByJmQq7PkPaznZUFsH7AesFNUz82U8iOc&sensor=false"> </script> " Inside this Script add your own Key value  [ key=AIzaSyByJmQq7PkPaznZUFsH7AesFNUz82U8iOc]   from Google Code  https://code.google.com/apis/console/ 1. Getting User Location function in Javascript coding        function success(position) {         var latitude = position.coords.latitude;         var longitude = position.coords.longitude;         var city = position.coords.locality;         var myLatlng = new google.maps.LatLng(latitude, longitude);         var myOptions = {             center: myLatlng,             zoom: 12,             mapTypeId: google.maps.MapTypeId.SATELLITE         };                2. Setting Marker in Google Maps       var map = new google.maps.Map(document.getElementById(&

Auto Calculation in Textbox textchanged event in ASP.NET C#

Image
Screen Shot Coding 1. Design Coding <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Sample Text Change Event for Auto-Calculations</title> </head> <body> <form id="form1" runat="server"> <h2> Auto Calculations </h2> <div align="center" style="background-color: #C0C0C0" > <asp:TextBox ID="TextBox1" AutoPostBack="true" runat="server" ></asp:TextBox><br /><br />