Posts

Showing posts with the label Hack

Using Pandora or Google's Music outside U.S.

If you're in Germany, UK, Austria, Australia, France, Italy, Russia, Japan, Spain or wherever except the United States,  you can't use services like Pandora  or the newly launched  Music (Beta) service from Google . Also some YouTube content might be blocked in your country.   If you are eligible  to access these services and all those YouTube videos, you could try  Tor .  Specifying an  US located server in the  torrc configuration file  as the  ExitNode  and setting  localhost:8118  in your  browser as your proxy for HTTP and HTTPS , will enable you to access all those services. You can find an US located server using Tor's resp. Vidalia's " View the Network"  button.

Remove Posterous badge/slider/panel/label from your blog

Just insert... #posterous_required_header { display: none; } ...between  <style>  and  </style>  of your theme.

How to escape single quotes in XSLT

...well, as much as I have figured out, there is no clean built-in solution for escaping single quotes (') in XSLT . You need this if you e.g. want to generate JavaScript function calls within the generated XML file. So I have found a workaround resp. a not really nice hack to solve this problem as you can see in the following: <xsl:variable name=" apos "> ' </xsl:variable> <xsl:value-of select="concat('javaScript_Function_With_String_Parameter (', $apos ,., $apos ,')')"/> In this way you can generate the JavaScript function call "javaScript_Function_With_String_Parameter( ' currentValue ' )".