Wednesday, June 15, 2011

List of banned sites in Malaysia - June 2011

Well, well, well.
Looks like Malaysia is moving backwards and trying to fight a losing battle against file piracy, as the GAMEN resorts to blocking popular sites such as:
Ware z bb,Pir ate bay,Mo vi e2k,Me g aupl oad,M ega v ideo,Pu tloc ker,Depo si tfi les,Fi les erve,F il es tu be,D uck lo ad

But.. wait a minute!
The Government is only making service providers implement the block by DNS!!
So how now??!!!

You have 3 ways to get your way around.
1, Make a DNS lookup online and get the IP address. Type it directly into your browser.

2, Change your DNS server. I like Google's Public DNS (8.8.8.8 and 8.8.4.4!) If you don't know how to change, read the instructions.

3, Use a proxy server to access sites. Where to get the sites? Again, google is your best friend.

Happy bypassing!

Friday, June 3, 2011

Silkroad Eprise: Publish page using C# Powercode

using System;
using System.Web;
using DotNetScriptEngines;
using System.Data;
using System.Data.SqlClient;

namespace Custom.EprisePublishPage{
class Publish {

// The 'main' entry point must exist.
public static void Main(String[] args){
EpsClient eps = new EpsClient(args[0]);
String objectId = "183880"; // the page object ID "<$client.URL.ObjectID>";
try
{

EpsEditPage pageToPublish = eps.GetEditPage(objectId);
pageToPublish.Save();
pageToPublish.SubmitForApproval("Some Comments here");
pageToPublish.Publish("Some Comments here");

}
catch (Exception ex)
{
eps.Write(ex.ToString());
}
}
}
}

Thursday, June 2, 2011

C# Accessing a MasterPage's variables

Place this block of code in Page_Load()

((myMaster)this.Master).strPageTitle = "Some String";

myMaster being the name of the MasterPage class.
Related Posts Plugin for WordPress, Blogger...