Static FBML CSS: Internet Explorer (all versions) and other browser

With Internet Explorer you have only two options in applying CSS styles to your Static FBML application tab:

  • Calling an external stylesheet using, for example:
    <link href=”http://yoursite.com/styles/layout.css” rel=”stylesheet” type=”text/css” />
    Of course, you need to upload the CSS file to your server (or some Web-accessible server). NOTE: Add this string to the end of your external stylesheet call to force Facebook to refresh the version it has cached (example): <link href=”http://yoursite.com/styles/layout.css?v=10.0” rel=”stylesheet” type=”text/css” />
  • Putting the CSS styles inside the HTML mark-up, i.e. inlining the styles, for example:
    <div style=”font-size:14px; margin:0 auto;”>

Although inlining the styles has appeared to always work with Static FBML application-tab pages, using calls to an external stylesheet seems to be only recently supported. I tested our HyperArts Static FBML Page, calling an external stylesheet, and it’s working fine. (If anyone does notice an issue, please let me know!)

The option that <em>doesn’t</em> work with Internet Explorer is using the style tag to embed your CSS rules:

 

<style type=”text/css”>
.some-class { margin:0; font-size:14px; }
#some-id { margin:0; font-size:14px; }
</style>

 

Although the above works in most other browsers, Internet Explorer ignores the contents of that tag.

If at all possible, you should choose the option to call an external stylesheet. You have much greater flexibility in applying — and making changes to — your CSS using a stand-alone stylesheet.

Read more: http://www.hyperarts.com/blog/category/web-coding-html-css-javascript/#ixzz0dYqppB5E

Clone Java objects

Since objects in Java are manipulated through reference variables, there is no direct way to copy an object. Classes that want copying functionality must implement clone() method to do so. This guide shows how to make a Java class Cloneable and perform a cloning.

A class to be cloned:

class Person {
    private String firstName;
    private String lastName;

    private Person assistant;

    public Person(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public void setAssistant(Person assistant) {
        this.assistant = assistant;
    }
	
	public Person getAssistant() {
		return assistant;
	}
}

Todos:

  • implementing the Cloneable interface
  • make Object clone() method public (by overriding the protected method)
  • call the clone method defined in Object base class (to create a shallow copy of the object)
  • deep copy (clone) all mutable objects in case a reference copy is not enough

Our cloneable class:

class Person implements Cloneable {
    private String firstName;
    private String lastName;

    private Person assistant;

    public Person(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }

    public void setAssistant(Person assistant) {
        this.assistant = assistant;
    }

    public Person getAssistant() {
        return assistant;
    }

    public Object clone() throws CloneNotSupportedException {
        Person cloned = (Person) super.clone();

        /*
              If we don't do anything else, the cloned person 
			  will refer to the to the same assistant object 
			  as the original person.

              In this example we want to avoid that
			  and make a deep copy of the assistant object as well.
          */
        if (this.assistant != null)
            cloned.assistant = (Person) this.assistant.clone();
        return cloned;
    }
}

How to clone:

public class Test {
    public static void main(String[] args) {
        try {
            Person john = new Person("John", "Doe");
            Person bob = new Person("Bob", "Gombocki");
            john.setAssistant(bob);
            Person johnsClone = (Person) john.clone();
            System.out.println("John is cloned: " + (john != johnsClone));
            System.out.println("John's assistant, Bob is cloned: " + (john.getAssistant() != johnsClone.getAssistant()));
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}

Default Vista for XP

 

Hey, have you ever wanted your XP to look more like vista with out installing a theme pack or a shell addon / extension? well you can, I’ve been working on my own type of explorer for a few days now and my god it get a bit boring but least you can say its worth it because you can import your default .BMP’s (bit maps) in to the DLL’s and don’t forget to compile. There is I simplified version shown here at AskVG.com click this link and you’ll find some inspiration to improve you system and here’s another one Icon list that will tell you more about theShell32 .DLL so that’s the best bet if if you windows to be a bit better with out giving in to Bill Gates HA HA or you can wait till I’ve finish this one! Also there’s BlackBox which isn’t a shell but a explorer and engine, that’s the best one for all platforms including mac, you can find it though Shell City, BlackBox is great and well worth having if you want to learn more about skinning. If you just want a bit of code for your project and some more projects to join in on then there’s more on CodeDump.org and SourceForge.net and I’ve made an easy way of finding what you want when your surfing the net for torrents, new film releases, codes, cracks, keygens, and games as well as much more and it’s called Hackers. I’m planing to put it on my home page just as soon as I get my forums sorted in order to host the second page, I would it with Google’s API but live spaces don’t support some of their features, well there the link to Hackers home page and I hope it help you guys find what ya looking for.

Later TC

Switchless Installers

BDV-991362-BDV

Ryan VM Addon’s, switchless installers, don’t ya just love em? well I don’t know about you but I find them wonderful to download, but when you want to make your own you just want to be lazy. AutoIT is great to start with but you could do with a more advanced script like C++, so that’s where WPI comes in this is a great tool if all you want is a quick install of additional programs on your new OS (Operation System). WPI is a CAB tool, Reg to INF,multiple programing languages,  portable install wizard with many more additional functions.  Give it a go and if you com up with any more good ideas let me know, I’m sure that out there is some great ideas about Linux installations. I would like to know if there are any comments on SLAX!!! Same as Ryan but for Linux and mainly for portable versions, Check it out!

 
online advertising

Deployment

I’ve been looking at some new software for deploying applications, though the depth of the extent out there! its crazy to think there to be one for everyone! Any how I was in the middle of changing the default config.XML file of Office 07 to create an unattended install (and yes the old /admin tools (Office custom Install Wizard) are now on the disk , so you don’t have to download them any more), you can still use them though out the Microsoft Office applications and you can find a copy of them in my Sky Drive Public folder. Along the way I found this great Package studio called "Wise" which lets you not only deploy App’s but all kinds of software in clouding OS’s and is suitable for small businesses managing 500 terminals, I’ve only managed to get my hands on the version 5.50 because of the high amount of frauds and viruses out there and is also available in my Sky Drive Public folders. Wise Studio is allot like Microsoft Visual Studio but uses high end management consoles that require console security policies, If you want to know any thing further about integrating Office of parts of these to the unattended installs of windows drop me a line or just pop over to the MSFN forums  and there is thousands to explore and excite you, best of luck .

Deploying Office 07 /admin tools with

Customisation tool                                              Wise Deployment Studio 5.50

Intergarating OS

There are a number of important things in the world today and while
Windows XP does have a lot of interesting stuff to it, there are
certainly other things that it could benefit from having as well.  For
example, there are a number of different things that can be
incorporated into the Windows XP install CD through the use of this
addon pack.  It was a pack created by Ryan VanderMeulen and it includes
a number of useful addons that people interested in getting additional
functionality out of Windows XP might want to take a close look at.

Some of these include:

  • Shell extensions for the copy to and move to functions that are available in file manipulation;
  • HashTab 1.9; a specific program that increases the functionality of Windows XP;
  • Microsoft Calculator Plus 1.0; a replacement for the calculator
    file that normally comes with Windows XP and an upgrade in terms of
    what you can actually do with the calculator itself;
  • MS HighMAT CD Writing wizard;
  • MS Make Cab;
  • An extension to the font properties and the OpenType fonts that come already with Windows XP;
  • A remote desktop client; something that is lacking in the original Windows XP install.