Minggu, 21 Oktober 2012
Rabu, 10 Oktober 2012
Allow access to one directory with htaccess
How to Allow access one directory with htaccess
RewriteCond %{REQUEST_URI} !/folderName
Sabtu, 11 Agustus 2012
Anime Festival Asia (Indonesia) Presents Final Artist Line-Up for its Anisong Concert
![]() |
AFAID - Anime Festival Asia Indonesia 2012 |
Anime Festival Asia (AFA) celebrates its 5th anniversary this year. Since its birth in Singapore, this is the first year it expands to other Southeast Asia countries. Having hosted one in Kuala Lumpur (Malaysia) just earlier this year, it was announced that Jakarta (Indonesia) is next in September, followed by Singapore in November.
The final line-up is just announced for AFA Indonesia 2012's Super Anisong Stage in Jakarta. Don't miss the biggest and most electrifying line-up of J-Pop artistes ever to hit the shores of Indonesia! All details are given in the picture as follow by the AFA organisers:
![]() |
AFAID 2012 schedule |
Selasa, 03 Juli 2012
Desks of Famous Manga/Anime Creators
Desks of Famous Manga/Anime Creators
Meja Kerja Para Pembuat Manga atau Anime yang Terkenal
3 Anime Jepang yang sangat populer saat ini yaitu Naruto, One Piece dan Bleach dibuat oleh para mangaka terkenal yaitu :
- Tite Kubo - Creator of Bleach
- Masashi Kishimoto - Creator of Naruto
- Eiichiro Oda - Creator of One Piece
Tapi seperti apa meja kerja para mangaka tersebut berikut tiga foto meja kerja mereka :
Tite Kubo - Creator of Bleach
Masashi Kishimoto - Creator of Naruto
Eiichiro Oda - Creator of One Piece
Minggu, 03 Juni 2012
Can't Running Microsoft Office Powerpoint with Wine on Linux
Can’t Running Microsoft Office Powerpoint on Wine
After i do installation Microsoft office 2007 with Wine on my Linux Ubuntu, all looks very good, but when i running Powerpoint it can't.
and i do it for fix it:
After i do installation Microsoft office 2007 with Wine on my Linux Ubuntu, all looks very good, but when i running Powerpoint it can't.
and i do it for fix it:
- open Wine configuration ” winecfg “
- Make sure that the Windows Version is set to Windows XP (Applications Tab).
- In the Libraries section, you need to add two overrides: “riched20” and “usp10”. To do this, simply type the the names (no quotes) into the dropdown-looking textbox, and click “Add”. Repeat this for both of the overrides, and you are done!
- do it : ” - wget http://www.kegel.com/wine/winetricks” ”- chmod +x winetricks”
- Run (and change prefix if need be): “./winetricks vcrun2005”
How To Install TuxCut on Linux Ubuntu
TuxCut is one of linux application. it can use for cutting intenet access on your network like netcut in windows..
Now i will install TuxCut on Linux Ubuntu 10.10
How to Install :
1. Download TuxCut
2. Install arp-scan, dsniff, arptables
- sudo apt-get install arp-scan
- sudo apt-get install dsniff
- sudo apt-get install arptables
3. Install TuxCut
sudo dpkg -i TuxCut-3.2_all.deb
4. Run TuxCut
sudo TuxCut
// If u have Problem when instalation process
tryng to fix with
sudo apt-get install -f
for update your system
Rabu, 22 Februari 2012
How to POST data with cURL PHP
<?php
$url = 'http://api.myurl.com/mm/status/0/'
$data = 'name=me&address=mystreeet&phone=1234';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, null);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
Senin, 19 Desember 2011
How To Create Array to XML with PHP
How to Create Array to XML with PHP
Extensible Markup Language (XML) is a markup language which defines a set of rules for encoding documents in a format which is both human-readable and machine-readable. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all open standards.
Extensible Markup Language (XML) is a markup language which defines a set of rules for encoding documents in a format which is both human-readable and machine-readable. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all open standards.
<?php
$data = array(
'name' => array(
'first' => 'Randy',
'last' => 'Septian'
),
'phone' => array(
'personal' => array(
'mobile' => '085687xxxxx',
'home' => '0217788xxxx'
),
'office' => array(
'fax' => '0217788xxxx'
)
),
'gender' => 'male'
);
$xml = new XmlWriter();
$xml->openMemory();
$xml->startDocument('1.0', 'UTF-8');
$xml->startElement('root');
function write(XMLWriter $xml, $data){
foreach($data as $key => $value){
if(is_array($value)){
$xml->startElement($key);
write($xml, $value);
$xml->endElement();
continue;
}
$xml->writeElement($key, $value);
}
}
write($xml, $data);
$xml->endElement();
echo $xml->outputMemory(true);
?>
Minggu, 11 Desember 2011
Get Date Yesterday in PHP
How to get date of yesterday in php ??
$yesterday = date("Y-m-d",strtotime("-1 day"));echo $yesterday;
Selasa, 06 Desember 2011
Mami Kamada performe di Lagu Pembuka "Shakugan no Shana III"
Mami Kawada dikonfirmasi di akun Twitter-nya hari ini bahwa dia akan melakukan pembukaan baru tema untuk Shakugan no Shana III (Final)anime.
Single baru, berjudul "serment" (bahasa Perancis untuk "sumpah"), akan dijual 1 Februari. Sebelumnya, Kawada telah melakukan beberapa tema lagu untuk dua seri anime sebelumnya dan pro.
Shakugan no Shana Yuji Sakai berikut, seorang anak muda sekolah tinggi yang menjadi terlibat dalam perang antara kekuatan keseimbangan dan ketidakseimbangan dalam keberadaan. Dia segera berteman seorang gadis muda bernama Shana yang berjuang untuk menyeimbangkan kekuatan.
Kamis, 24 November 2011
How To Insert and View Vietnam Font To Mysql And PHP
Later I 've got problem with Vietnam Font when I insert Vietnam font on my web, can't save on Mysql, then i change colation with utf8_general_ci
ALTER TABLE `table-name` CHANGE `table-name`. `field_name` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL
Jumat, 18 November 2011
PHP Error Logging Reporting Handler
PHP Error, Logging, Reporting and Handler
1. error_get_last()
example:
1. error_get_last()
example:
echo $testing;print_r(error_get_last());?>Output :
Array([type] => 8[message] => Undefined variable: testing[file] => C:\webfolder\test.php[line] => 2)
2. error_log(error,type,destination,headers)
Parameter | Description |
---|---|
error | Required. The error message to log |
type | Optional. Specifies the error log type. Possible log types:
|
destination | Optional. Specifies where to send the error message. The value of this parameter depends on the value of the "type" parameter |
headers | Optional. Only used if the "type" parameter is "1". Specifies additional headers, like From, Cc, and Bcc. The additional headers should be separated with a CRLF (\r\n).Note: When sending an email, it must contain a From header. This can be set with this parameter or in the php.ini file. |
example:
$test=2;
if ($test>1){error_log("A custom error has been triggered",1,"someone@example.com","From: webmaster@example.com");}?>
Output:
A custom error has been triggered
3. error_reporting(report_level)
Value | Constant | Description |
---|---|---|
1 | E_ERROR | Fatal run-time errors. Errors that can not be recovered from. Execution of the script is halted |
2 | E_WARNING | Non-fatal run-time errors. Execution of the script is not halted |
4 | E_PARSE | Compile-time parse errors. Parse errors should only be generated by the parser |
8 | E_NOTICE | Run-time notices. The script found something that might be an error, but could also happen when running a script normally |
16 | E_CORE_ERROR | Fatal errors at PHP startup. This is like an E_ERROR in the PHP core |
32 | E_CORE_WARNING | Non-fatal errors at PHP startup. This is like an E_WARNING in the PHP core |
64 | E_COMPILE_ERROR | Fatal compile-time errors. This is like an E_ERROR generated by the Zend Scripting Engine |
128 | E_COMPILE_WARNING | Non-fatal compile-time errors. This is like an E_WARNING generated by the Zend Scripting Engine |
256 | E_USER_ERROR | Fatal user-generated error. This is like an E_ERROR set by the programmer using the PHP function trigger_error() |
512 | E_USER_WARNING | Non-fatal user-generated warning. This is like an E_WARNING set by the programmer using the PHP function trigger_error() |
1024 | E_USER_NOTICE | User-generated notice. This is like an E_NOTICE set by the programmer using the PHP function trigger_error() |
2048 | E_STRICT | Run-time notices. PHP suggest changes to your code to help interoperability and compatibility of the code |
4096 | E_RECOVERABLE_ERROR | Catchable fatal error. This is like an E_ERROR but can be caught by a user defined handle (see also set_error_handler()) |
8191 | E_ALL | All errors and warnings, except level E_STRICT (E_STRICT will be part of E_ALL as of PHP 6.0) |
example:
//Disable error reportingerror_reporting(0);
//Report runtime errorserror_reporting(E_ERROR | E_WARNING | E_PARSE);
//Report all errorserror_reporting(E_ALL);?>
4. restore_error_handler()
example:
//custom error handler functionfunction customError($errno, $errstr, $errfile, $errline) { echo "Custom error: [$errno] $errstr
"; echo " Error on line $errline in $errfile
"; }
//set user-defined error handlerset_error_handler("customError");
$test=2;
//trigger errorif ($test>1) { trigger_error("A custom error has been triggered"); }
//restore built-in error handlerrestore_error_handler();
//trigger error againif ($test>1) { trigger_error("A custom error has been triggered"); }?>
Output
Custom error: [1024] A custom error has been triggeredError on line 14 in C:\webfolder\test.php
Notice: A custom error has been triggered in C:\webfolder\test.php on line 21
Senin, 14 November 2011
Useragent Addon for Browser Firefox
Useragent Addon for Browser Firefox
If u want check for view of your web or wap on some device or other browser u can using some addon in Firefox like User Agent Switcher or UAControl.
User Agent SwitcherThe User Agent Switcher extension adds a menu and a toolbar button to switch the user agent of a browser.install addon user agent switcher for firefox hereDownload xml device list here
UAControllerUser agent switcher addon changes the user agent globally (for every site). If you want to just change the user agent on a site-by-site basis, install the UA Control addoninstall addon user agent switcher for firefox here
Rabu, 09 November 2011
How to Disappear Home Button in Blogspot
How to Disappear Home Button in Blogspot
Cara Menghilangkan Tulisan Home/Beranda di Blogspot
Please folow the instruction bellow :
1. Log In to your blogger account
2. select layout design then Edit HTML
3. Do not forget to download the full template first, in case there is an error
4. check Expand Template Widget
5. Search Code bellow :
2. select layout design then Edit HTML
3. Do not forget to download the full template first, in case there is an error
4. check Expand Template Widget
5. Search Code bellow :
to make easy push Ctrl+F then entring thas code and ENTER.
6. when u found it delete and save
7. Done
7. Done
---------------------------------------------------------------------------------------------------------
Silahkan ikuti petunjuk di bawah ini :
1. Seperti biasa Log In dulu ke akun blog
2. Pilih Rancangan lalu pilih Edit HTML
3. Jangan lupa download template lengkap dahulu, berjaga-jaga bila ada kesalahan
4. Centang Expand Template Widget
5. Carilah Kode di bawah ini :
2. Pilih Rancangan lalu pilih Edit HTML
3. Jangan lupa download template lengkap dahulu, berjaga-jaga bila ada kesalahan
4. Centang Expand Template Widget
5. Carilah Kode di bawah ini :
Untuk memudahkan pencarian Tekan Ctrl+F lalu masukkan kode di atas dan tekan ENTER.
6. Setelah ketemu tinggal hapus kodenya. lalu klik Simpan Template
7. Selesai
7. Selesai
Sabtu, 05 November 2011
Where IDM Stores Download Temporary Files
Where IDM Stores Download Temporary Files ??
Im Using IDM for download files, and sometime when my download progres only few minute and.. thats stoped mybe bcause internet connection or download server and it can't resume, thats so bad :(
and i don't want lose parts that have been downloaded
if u using windows 7 u can find your download temp files on :
Im Using IDM for download files, and sometime when my download progres only few minute and.. thats stoped mybe bcause internet connection or download server and it can't resume, thats so bad :(
and i don't want lose parts that have been downloaded
if u using windows 7 u can find your download temp files on :
C:\Users\AppData\Roaming\IDM\DwnlData
Jumat, 04 November 2011
Case Studies on PHP Website Security from XSS Attack and Sql Injection
XSS (Cross Side Scripting) is a way to enter tag/script HTML (injection) in to website for disrupt thats website.
Example attack with XSS: entered HTML or Javascript Code in some form, such like Comment Form. entered comment like this
if thats website don't have XSS filtering, when the comment appear, the alert script will working.
In PHP there are so many function, where we can use for xss attack filtering, and we can combine to make own xss filtering function
SQL Injection is a technic for manipulation sql command ..
Example Sql Injection in login form with " 'OR 1=1;// " , thats logic will like this
the logic is true, and whos ever can enter, ok lets make anti sql injection with PHP.
Example attack with XSS: entered HTML or Javascript Code in some form, such like Comment Form. entered comment like this
I want to enter comment with <script>alert('this xss attack'); </scipt>
if thats website don't have XSS filtering, when the comment appear, the alert script will working.
In PHP there are so many function, where we can use for xss attack filtering, and we can combine to make own xss filtering function
function xss_filtering($text) {
$f = stripslashes (strip_tags (htmlspecialchars ($text, ENT_QUOTES)));
return $f;
}
$text_comment = xss_filtering($_POST['comment']);
Example Sql Injection in login form with " 'OR 1=1;// " , thats logic will like this
SELECT * FROM user_table WHERE username=' ' OR 1=1;// ' AND password ='anything';
the logic is true, and whos ever can enter, ok lets make anti sql injection with PHP.
function sql_injection_filtering($data){
$filter = mysql_real_escape_string($data);
return $filter;
}
$username = sql_injection_filtering($_POST['username']);
$password = sql_injection_filtering($_POST['password']);
if (!ctype_alnum($username) OR !ctype_alnum($password)){
echo "Only alpha numeric";
} else {
echo "Login Succes";
}
Selasa, 01 November 2011
Cara Cek Pulsa Operator Indonesia
Cara Cek Pulsa
Berikut ini nomor untuk cek pulsa untuk masing-masing operator.
Simpati (0812, 0813, 0811)
Cek pulsa *888#
As (0852, 0853)
Cek pulsa *888#
Mentari (0815, 0816, 0858)
Cek Pulsa *555#
Paket SMS, GPRS *555*1#
Im3 (0856, 0857)
Cek Pulsa *388#
Paket SMS, GPRS *388*1#
XL (0817, 0818, 0819, 0859, 0878)
Cek Pulsa *123#
Three (0896, 0897, 0898, 0899)
Cek pulsa *111#
Axis (0831, 0838)
Cek Pulsa *888#
Fren (0885, 0886, 0887, 0888)
Cek Pulsa 999
Smart (0881, 0882, 0883, 0884)
Cek Pulsa *999*
Flexi
Cek Pulsa *99#
Star One
Cek Pulsa *555#
Esia
Cek Pulsa *955
Hepi
Cek Pulsa 999
Cek pulsa *888#
As (0852, 0853)
Cek pulsa *888#
Mentari (0815, 0816, 0858)
Cek Pulsa *555#
Paket SMS, GPRS *555*1#
Im3 (0856, 0857)
Cek Pulsa *388#
Paket SMS, GPRS *388*1#
XL (0817, 0818, 0819, 0859, 0878)
Cek Pulsa *123#
Three (0896, 0897, 0898, 0899)
Cek pulsa *111#
Axis (0831, 0838)
Cek Pulsa *888#
Fren (0885, 0886, 0887, 0888)
Cek Pulsa 999
Smart (0881, 0882, 0883, 0884)
Cek Pulsa *999*
Flexi
Cek Pulsa *99#
Star One
Cek Pulsa *555#
Esia
Cek Pulsa *955
Hepi
Cek Pulsa 999
Minggu, 09 Oktober 2011
Disable / Enable Flashdrive on Windows 7
How to Disable or Enable Flashdrive or Flashdisk on Windows 7
Start >> Control Panel >> Hardware and Sound
Click Device Manager
Then Click Right on USB Mass Strorage Device and Click Disable / Enable
Kamis, 06 Oktober 2011
How to install PHP PCNTL
How to install PHP-PCNTL
Create directory to your home folder or wherever you want
Ex.
me@ubuntu:# mkdir /home/me/php
Navigate to that directory.
me@ubuntu:# cd /home/me/php
Download source.
Issue command as root.
me@ubuntu:/home/me/php# sudo apt-get source php5
me@ubuntu:/home/me/php# cd php5(Release Version)/ext/pcntl
me@ubuntu:/home/me/php/php5(version)/ext/pcntl# sudo phpize
me@ubuntu:/home/me/php/php5(version)/ext/pcntl# sudo ./configure
me@ubuntu:/home/me/php/php5(version)/ext/pcntl# sudo make
me@ubuntu:/home/me/php/php5(version)/ext/pcntl# sudo make install
Copy pcntl.so to /usr/lib/php5/200***(your version)/
Ex.
me@ubuntu:/home/me/php/php5(release_version)/ext/pcntl# cp /modules/pcntl.so /usr/lib/php5/200***(your version)/
Plus:
me@ubuntu:# echo "extension=pcntl.so" > /etc/php5/conf.d/pcntl.ini
If pcntl.ini doesn't exist, create it and issue the command written above.
Manual PCNTL
Langganan:
Postingan (Atom)