Category: Operating system


ASP.NET COUNTDOWN TIMER . .


Paste the following code in header  . .

<div id=”timelabel”></div>

<script type=”text/javascript”>

var leave = <%=seconds %>;
CounterTimer();

var interv=setInterval(CounterTimer,1000);
function CounterTimer()

{

var day = Math.floor(leave / ( 60 * 60 * 24))

var hour = Math.floor(leave / 3600) – (day * 24)

var minute = Math.floor(leave / 60) – (day * 24 *60) – (hour * 60)

var second = Math.floor(leave) – (day * 24 *60*60) – (hour * 60 * 60) – (minute*60)
hour=hour<10 ? “0″ + hour : hour;

minute=minute<10 ? “0″ + minute : minute;

second=second<10 ? “0″ + second : second;
var remain=day + ” days   “+hour + “:”+minute+”:”+second;

leave=leave-1;
document.getElementById(“timelabel”).innerText=remain;
}

</script>

</body>

</html>

————————

Code Behind . . .

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.IO;
namespace tests{
public partial class _Default : System.Web.UI.Page

{

public double seconds;

protected void Page_Load(object sender, EventArgs e)

{

seconds = (GetEndTime() – GetStartTime()).TotalSeconds;

}

private DateTime GetStartTime()

{            return DateTime.Now;        }

private DateTime GetEndTime()        {            return new DateTime(2011, 8, 23, 8, 10, 0);        }

}

}

Thank you . .

Advertisements

DateTime Formats . . (.NET)


DateTime.Now; 3/14/2011 12:45:24 AM
DateTime.Now.ToString(); 3/14/2011 12:45:24 AM
DateTime.Now.ToShortTimeString() 12:45 AM
DateTime.Now.ToShortDateString() 3/14/2011
DateTime.Now.ToLongTimeString() 12:45:24 AM
DateTime.Now.ToLongDateString() Monday, March 14, 2011

DateTime.Now.ToString(“d”) 3/14/2011
DateTime.Now.ToString(“D”) Monday, March 14, 2011
DateTime.Now.ToString(“f”) Monday, March 14, 2011 12:45 AM
DateTime.Now.ToString(“F”) Monday, March 14, 2011 12:45:24 AM
DateTime.Now.ToString(“g”) 3/14/2011 12:45 AM
DateTime.Now.ToString(“G”) 3/14/2011 12:45:24 AM
DateTime.Now.ToString(“m”) March 14
DateTime.Now.ToString(“r”) Mon, 14 Mar 2011 00:45:24 GMT
DateTime.Now.ToString(“s”) 2011-03-14T00:45:24
DateTime.Now.ToString(“t”) 12:45 AM
DateTime.Now.ToString(“T”) 12:45:24 AM
DateTime.Now.ToString(“u”) 2011-03-14 00:45:24Z
DateTime.Now.ToString(“U”) Monday, March 14, 2011 5:45:24 AM
DateTime.Now.ToString(“y”) March, 2011
DateTime.Now.ToString(“dddd, MMMM dd yyyy”) Monday, March 14 2011
DateTime.Now.ToString(“ddd, MMM d “‘”yy”) Mon, Mar 14 ’11
DateTime.Now.ToString(“dddd, MMMM dd”) Monday, March 14
DateTime.Now.ToString(“M/yy”) 3/11
DateTime.Now.ToString(“dd-MM-yy”) 14-03-11

Thank you . .


You might have seen floating content of web sites which is always visible on the page even if you scroll it. This is easy achieve thing by using just CSS. However there is also JavaScript alternative for this but the CSS one is smoother and faster as this doesn’t includes any run time calculation. The below step by step process will guide to how to add a always visible div on web page.

<style type=”text/css”>

<!–.visibleDiv

{    position: fixed;}

//–>

</style>
<style type=”text/css”>

<!–/*For top left*/

.visibleDiv

{    top: 10px;    left: 10px;}
/*For top right*/

.visibleDiv{    top: 10px;    right: 10px;}
/*For bottom left*/

.visibleDiv{    left: 10px;    bottom: 10px;}
/*For bottom right*/

.visibleDiv

{    bottom: 10px;

right: 10px;

}

//–>

</style>

 

Thank you . .


1. The only things that you can pass between web sites are string values.

2. The other web site has to give you the names of the values that they will accept.

3. This passes values to PayPal.
1. Add each hidden variable needed as follows:

<input type=”hidden” id=”OrderID” runat=”server”>
2. The button that will submit values to the external site:

<input type=”button” onclick=”javascript: submitToPayPal(‘http://www.paypal.com/cgi-bin/webscr’);” value=”Submit to PayPal” >
3. Add the necessary JavaScript to the page:

<script type=”text/javascript”><!–function submitToPayPal(formAction){ var formElementsArray = document.getElementsByTagName(‘FORM’);   if ( formElementsArray != null )  {   var formElement = formElementsArray[0];
document.getElementById(‘__EVENTTARGET’).value = ‘ ‘;  document.getElementById(‘__EVENTARGUMENT’).value = ‘ ‘;  document.getElementById(‘__VIEWSTATE’).name = ‘NOVIEWSTATE’;
formElement.action = formAction;  formElement.submit();  }}// –>

 

</script>

Warm regards. .

Sameer

 


Why should i give my build to google or microsoft in the name of cloud or whatever . .

I am going against cloud . . . .

Google is having my ( gmail ) username and password thats much they have . . .

http://www.pcworld.com/article/187875/will_cloud_computing_kill_privacy.html

See the video where CEO of google . . . .. .. . “only the guilty have anything to hide”.

Thank you . . .


http://mashable.com/2011/02/09/advances-digital-entertainment/

Thank you . .


Rule number one : don’t screw around with the browser of your enduser. Say that you were able to filter out the print menu item. What about the keyboard combination ctrl + P? You could override that again with some javascript but that only leaves the enduser clueless as you’re overriding standard functionality and that’s a big nono.

Besides that, you’re using javascript. That can be turned off by an enduser and then your clipboard erasing script also doesn’t work anymore. Poof and there goes your protection level.

try it . .

Thank you


for firefox try as below:

 

    • 1

      Make sure the new media player is installed on your computer. Popular media players include Real Player, QuickTime, Windows Media Player and WinAmp.

    • 2

      Open Mozilla Firefox and click “Tools” and then “Options” on the main menu.

    • 3

      Click the “Applications” tab. Scroll down on the list of file types until you find all of your media file types, including playlists, audio and videos.

    • 4

      Select the “Action” column box next to each of your media file types. You will see a drop-down box.

    • 5

      Change your default media player for each file type by clicking “Use other.” Choose “Always Ask” from the list if you want the browser to ask you every time which media player you want to use, or choose “Save File” if you want to automatically save the file to your computer instead of opening it.

    • 6

      Press “OK” to close the dialog box. Close and restart your browser to activate the new settings. Click on a song or video file in your browser to make sure it recognizes your choice from Step 4 and opens the file in your new default media player.

Thank you . .


Google TV coming to a pocket near you

Last year it was revealed that ARM Holdings was in talks with Google to bring Google TV support to ARM’s chipsets. The first version of Google TV was designed to only work on Intel’s x86 chips, but a fully compatible ARM version should be available this year, according to a report by the ARM-obsessed Charbax of ARMdevices.net.

Tudor Brown, president of Arm, said last year that their latest processors are cheaper and require less power than Intel’s Atom processor. “If Google TV is to be mainstream, it must be built on a lower power system, …on lower cost technology.”

If Google TV support is coming to ARM processors, then you should expect to see someone place it on a smartphone. Any device using a CPU based on ARM’s dual-core Cortex-A9s should have enough horse power to make it work. We have seen some Tegra 2-powered devices like the LG Optimus 2X that support full 1080p output, so the next generation of mobile computers should have no problems running Google TV.

Google was supposed to show off the latest version of Google TV at this year’s CES, but it was reported by the New York Times that Google asked their partners to delay the product launches so they could refine the software.

We can’t say for sure which refinements Google is working on, but it makes sense that they would want to bring the TV experience to the mobile devices that are powerful enough to deliver an enjoyable experience. Motorola recently showed us with the Atrix 4G that a single mobile device could power a laptop, desktop, and TV and I believe that is the direction Google will take Android.

How long do you think it will take before Google TV comes pre-loaded on a high-end smartphone?

Sameer Kulkarni

 


Ever seen an Operating System in a web browser, your answer might be no ! Then why not have a look at this one – this is one of the first operating system you would have ever seen before – Online virtual operating system – which has been rolled out by windows4all.com, and developed by using Microsoft Silverlight.

When you browse to windows4all.com, it will request us to install Sliverlight on to desktop, if you have already installed the same on to your desktop, then you will be directly redirected to the Operating System i.e. Windows Vista , if you are installing Silverlight for the first time, it will request you to restart the Browser. After installing, just browse to windows4all.com.

You can view Virtual Operating System right in your respective browser, it has a start button (like Windows Vista and older versions), File Explorer (Like Windows Explorer), a Media Player, a Notepad, RSS reader, Paint application, Games like Chess, Solitaire, Spider, Tic-tac-toe, and many more… The most interesting part is that you can also play .wmv and .wma media files in Media Player directly from Local Drive, i.e. from your Hard Drive.

This virtual operating system also supports installation of programs, but the respective program should be developed in Silverlight and be available on Internet or local file system. This online virtual operating system is in alpha stage now ! And will get more features added in future

%d bloggers like this: