- open the /etc/network/interfaces file.
- auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1 - sudo /etc/init.d/networking restart
- Add DNS in /etc/resource
Thursday, August 27, 2009
Configure Static IP In Ubuntu Server
Wednesday, August 19, 2009
Mount NTFS share folder on Ubuntu
Sunday, August 16, 2009
Solution untuk masalah duplicate data dalam table
- sort by tarikh atau lain
- select distinct table tersebut jadikan as A
- select top 1 table tersebut dan sortkan by tarikh, jadikan as B
- select A.*/B.* from A left outer join B on A.id=B.id*
Tuesday, August 4, 2009
Masalah Precision Dalam ETL untuk Oracle OLE
1) Cast column to NUMBER(precision, scale) in Oracle select (eg. select CAST(columnName as NUMBER(10, 3)) as columName from ..
2) Cast to string in Oracle select (eg. select TO_CHAR(columnName) as columName from ..
Monday, July 20, 2009
Thursday, July 16, 2009
Tuesday, July 14, 2009
Login through ssh using no password
- a@A:~> ssh-keygen -t rsa local pc
- cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys' local pc
Sunday, July 12, 2009
Friday, July 10, 2009
PHP + Oracle
- Uncomment the line: extension=php_oci8.dll
$db = “(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.34)(PORT = 1521)))(CONNECT_DATA=(SID=orcl)))” ;
if ($c=OCILogon(”system”, “your database password“, $db)) {
echo “Successfully connected to Oracle.\n”;
OCILogoff($c);
} else {
$err = OCIError();
echo “Connection failed.” . $err[text];
}
?>
Sunday, July 5, 2009
SCP then gzip file
- scp remote/dir /locadir | gzip -f
tar cvf - . | gzip -c -1 | ssh user@host cat ">" remotefile.gz
Friday, July 3, 2009
Monday, June 22, 2009
Data Source Untuk Excel 2007
In Business Intelligence Development Studio, open the package.
In the Connections Managers area, right-click anywhere in the area, and then select New OLE DB Connection.
In the Configure OLE DB Connection Manager dialog box, click New.
In the Connection Manager dialog box, for Provider, select Microsoft Office 12.0 Access Database Engine OLE DB.
Note:
To connect to a data source that uses Excel 2007, you cannot select Microsoft Jet 4.0 OLE DB Provider for the Data Source. On the Connection tab of the Connection Manager dialog box, for Server or file name, type or paste the complete path and file name.
On the All tab of the Connection Manager dialog box, for Extended Properties, enter one of the following values based on the file format of the Excel 2007 file:
- Enter Excel 12.0 Xml for the default file format that uses the .xslx file name extension.
—or— - Enter Excel 12.0 for the non-default binary file format that uses the .xslb file name extension.
Note:
When you import from Excel 2007, you can specify either Excel 12.0 or Excel 12.0 Xml because the driver infers the correct format from the input file. However, when you export to Excel 2007, you have to specify the Excel file format that corresponds to the file name extension that you have given the output file. - Enter Excel 12.0 Xml for the default file format that uses the .xslx file name extension.
Thursday, June 18, 2009
Script untuk update row guna OLE DB Command
- UPDATE Client SET AddressID = ? WHERE (ClientID = ?)
- hit the Refresh button, and then you can map the parameters to variables on the Column Mapping tab
Thursday, June 11, 2009
Error untuk remote desktop
- On the client, navigate to the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing.
- Click MSLicensing.
- On the Registry menu, click Export Registry File.
- In the File name box, type mslicensingbackup, and then click Save.
- If you need to restore this registry key in the future, double-click mslicensingbackup.reg.
- On the Edit menu, click Delete, and then click Yes to confirm the deletion of the MSLicensing registry subkey.
- Close Registry Editor, and then restart the computer.
SQL untuk mark duplicate row
Select *,
rank() over (Partition by Code, description order by TieBreakerColumn desc, SurrogateKey) MyRank
from SourceWithDuplicates
Monday, June 8, 2009
Count Intake 20091
- Jun 1st 2009 : 48531
- Jun 2nd 2009 : 48589
- Jun 3rd 2009 : 48807
- Jun 8th 2009 : 50074
- jun 9th 2009 : 49402
To register MSXML 6.0.
- From the Start menu, click Run.
- Enter the following command:. regsvr32 %windir%\system32\msxml6.dll.
URLS untuk Application Windows yang peting
Condition Untuk Expression Dalam Derive Column
[columnname] == "padanan"? "Benar":"Salah"
Untuk Integer
[colunmname] < 350.00 ? ListPrice * .2 : ListPrice * .1