Help Spread IE6 Update

January 14, 2010 9:30 pm

Help kill Internet Explorer 6
IE6 is like an illness that just won’t go away, but we have the medicine.

IE6 Update looks like IE’s Information Bar, but instead of offering your visitors an ActiveX plugin, it offers a browser update.

via IE6 Update.

In my current position I do a lot of UI and frontend work.  Probably the toughest thing I do is try to support IE6.  We’re a large corporation and the software is used by other large corporations, meaning IE6 is a must.  It’s our default browser on all machines (Not that I ever use it though..), and is required for a lot of legacy systems.

Here are the top reasons I HATE IE6

  1. The box model is incorrect (requiring CSS hacks *,_, …you know the drill) This is my biggest complaint, I waste so much time trying to get things to work correctly in IE6, its so frustrating…
  2. There are no debugging tools (The web accessibility toolbar is crap for debugging and I can only do so much with Firebug Lite)
  3. It is ridiculously slow!
  4. Transparent PNG problem (well some work, but they have to be saved a certain way)

Display Environmental and Configuration Variables in .Net (C#)

9:10 pm

Here is a little script to display a bunch of environmental and configuration variables in .Net. They are formatted terribly but I’ll fix that eventually:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
protected void Page_Load(object sender, EventArgs e)
       {
           IDictionary variables = Environment.GetEnvironmentVariables();
           string[] drives = Environment.GetLogicalDrives();
           Response.Write("<strong>Environmentals</strong> <br>");
           foreach (DictionaryEntry var in variables)
           {
               Response.Write(var.Key + "~" + var.Value + "<br>");
           }
           Response.Write("<strong>Drives</strong> <br>");
           foreach (string drive in drives)
           {
               Response.Write(drive + "<br>");
           }
           Response.Write("<strong>AppSettings</strong> <br>");
           foreach (DictionaryEntry setting in ConfigurationManager.AppSettings)
           {
               Response.Write(setting.Key + "~" + setting.Value + "<br>");
           }
           Response.Write("<strong>ConnectionStrings</strong> <br>");
           foreach (ConnectionStringSettings setting in ConfigurationManager.ConnectionStrings)
           {
               Response.Write(setting.Name + "~" + setting.ConnectionString + "<br>");
           }
       }

Displaying eBay’s JSON (JSONP) API in a jqGride

December 23, 2009 11:11 am

Ever decide you really hate creating proxy pages to get around cross site ajax?  Me too…  Good thing JSONP is around!  Here is an example I threw together to display eBay items directly from eBay!  (You need your own API key, which is free) This doesn’t include paging, I guess that’ll probably be an addition later. Have to check how flexible the jqGrid is…

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<script type="text/javascript">
$(document).ready(function(){
	  jQuery("#list").jqGrid({
	    url:'example.php',
	    datatype: 'xml',
	    mtype: 'GET',
	    colNames:['Inv No','Title'],
	    colModel :[ 
	      {name:'ItemID', index:'ItemID', width:100},
	      {name:'Title', index:'Title', width:400}
	    ],
	    pager: '#pager',
	    rowNum:10,
	    rowList:[10,20,30],
	    sortname: 'invid',
	    sortorder: 'desc',
	    viewrecords: true,
	    caption: 'My first grid'
	  }); 
 
	$.ajax({
	   url: "http://open.api.ebay.com/shopping?callname=FindItems&responseencoding=JSON&appid=__YOUR API KEY HERE__&siteid=0&version=517&QueryKeywords=Rutgers&MaxEntries=50&callback=true",
	   dataType: "jsonp",
	   async: false,
	   jsonp: "_cb_FindItems",
	   processData: false,
	 });
 
});
function _cb_FindItems(array)
{
	array = array.Item;
	//Load jqGrid
	for(var i=0;i<array.length;i++){
		jQuery("#list").addRowData(i, array[i]);
	}
}
</script>

DuBYE?

December 5, 2009 1:58 pm

I’ve been reading about the financial situation in Dubai lately and it really is the epitome of the housing bubble.  The city has been decimated by the global financial crisis and is having difficulty staying current on its financial obligations.  The more I’ve read it seems that the city is mostly smoke and mirrors anyway.  With the decline in property value, many homeowners have seen their investment’s value decline on a magnitude much greater than in the US (maybe not more than Detroit), and it has put their mortgage payments out of reach.

There are many stories about expats going to jail for failing to repay debts; in Dubai defaulting on a loan is a criminal offense.  The city’s infrastructure is falling apart and unable to meet current demands, which has led to tourist illness from untreated sewage.  The worst thing I read was about enslaved construction workers, when they arrive their passports are taken away, they are forced to live in squalor and are rarely paid.  Its certainly a mess over there, but it really is the business center of the Middle East; and that is an increasingly important region.

Show me more… »

Fun With JavaScript

1:08 pm

A coworker shared this with me yesterday.  I though it was pretty neat, the best page I found was Google News.  (It doesn’t work in Chrome, so use Firefox)

1) Open any website which contains images

2) Copy below given code and paste on the  Address bar of the same browser window and press enter …………

3) All images will be floating randomly……

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval(‘A()’,5); void(0)

Show me more… »

Get Adobe Flash player