Navigation

Search

Categories

On this page

Sharepoint - Current Date
Shock and Awe of MS Windows
Have at thee spyware!

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 120
This Year: 1
This Month: 0
This Week: 0
Comments: 40

Sign In
Pick a theme:

# Tuesday, May 09, 2006
Tuesday, May 09, 2006 9:20:34 AM (Mountain Daylight Time, UTC-06:00) ( Code )

I realized I haven't blogged in 5 months. How pathetic is that.

Here's some quick coding goodness. This will insert the current date formatted per the user's Locale into the div. One of them is IE specific, the other is a more standards-happy way of doing it. As always, code should be valid XHTML!

<div id="CurrentDate"></div>
<hr />
<div id="CurrentDate2"></div>

<script type="text/vbscript" language="vbscript">
<!--
<![CDATA[
    Document.all("CurrentDate").innerText = FormatDateTime(Now(),1)
]]>
//-->
</script>

<script type="text/javascript" language="javascript">
<!--
<![CDATA[
    var now = new Date();
    now.getDate();
    document.getElementById("CurrentDate2").innerText = now.toLocaleDateString();

]]>
//-->
</script>

Comments [1] | | # 
# Tuesday, December 13, 2005
Tuesday, December 13, 2005 11:32:45 AM (Mountain Standard Time, UTC-07:00) ( )

I'm not sure how many years I've been using MS Windows now.
'm not even sure how long this has been a feature. The point is, someone at MS needs credit for thinking this one up.

Here's the scenario I'm dealing with. I'm copying some js code from Internet Explorer and an error message comes up like so.

MSGBOXERROR

I think I pressed CTRL + C at the right time, because this came out of my clipboard, instead of the expected javascript from the page.

---------------------------
Error
---------------------------
A Runtime Error has occurred.
Do you wish to Debug?

Line: 955
Error: Could not get the overflow property. Invalid argument.
---------------------------
Yes   No   
---------------------------

I'm amused by simple things in life. That just happens to be darn handy.

Comments [0] | | # 
# Thursday, November 03, 2005
Thursday, November 03, 2005 9:43:51 AM (Mountain Standard Time, UTC-07:00) ( )

I am really digging embarrasd by Microsoft's new line of Joan of Arcadia Spyware advertisements. I can just see her saying "I am here to set the peasants who run their computer with Admin user accounts free from the horiffic evils of Spyware!" "Have at the evil spyware!"

Does Anyone else think that Microsoft should be push the concept of not allowing a Luser to run with membership to the Administrator group for daily activities RIGHT NOW!? I'm sure glad that Windows Vista decided to have this great feature.


User Account Protection

Windows Vista User Account Protection bridges the gap between user and administrative privileges by allowing you to run applications under a standard user account. When you need to perform an administrative task, such as install software or drivers, Windows Vista prompts you to confirm your intentions or to provide your credentials.

For example, if you're on the road and download a game that is really a Trojan horse, Windows Vista prevents the game from performing malicious tasks because you lack sufficient privileges to install it. When you need to install a printer driver for the hotel printer, Windows Vista prompts you to verify that you really want to install the printer.

This protection, combined with the new protected mode features in Internet Explorer, reduces the impact of viruses, spyware, and other types of malicious software (collectively known as "malware").

Quote from http://www.microsoft.com/windowsvista/security.mspx


Props to the guys on Vista team. Finger of shame to the guys on the Anti-Spyware team! Come on people. Lets train our users how to use computers effectively and responsibly. Software that babysits people only shames programmers and the users.

Comments [0] | | #