Selasa, 01 Januari 2019

CARA MENAMPILKAN GAMBAR THUMBNAILS

Bukan Control Panel -> Folder Option -> Always show icons, never thumbnails ( Uncek )

Sabtu, 08 Desember 2018

turn off and Turn On monitor

#include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Turns the monitor off SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2); // Higher number is longer monitor off. Sleep(10000); // Turns monitor on SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1); return 0; }

Kamis, 09 Agustus 2018

Text editor Freeware yang dapat digunakan untuk membuka file berukuran besar EditPadLite7.exe

Sabtu, 07 April 2018

PL SQL 1

SET SERVEROUTPUT ON; begin DBMS_OUTPUT.PUT_LINE('HELLO ORACLE'); end;

Pada kondisi normal Icon Recycle bin tidak muncul pada windows 8. salah satu cara untuk menampilkan recycle bin pada windows 8 ialah dengan cara berikut. Klik kanan Buat Folder baru buat folder baru dengan nama folder berikut -> Recycle bin.{645FF040-5081-101B-9F08-00AA002F954E}

Minggu, 26 November 2017

Sas Beep

data _null_; call sound(523,2000); run;

Rabu, 01 Februari 2017

Sas Export Fix Length

data _null_; set libTrx.manipulasi; file "d:\FixLength.txt"; put @1 SysDate DDMMYY10. @10 RptDate DDMMYY10. ; run;

Sabtu, 16 Juli 2016

Copy All File From VBS

xcopy "C:\BUFFER\Copy" "C:\VBA\hasil" /s /i save file as CopyFile.vbs parameter /i copy all file in folder parameter /s copy all file in subfolder

Sabtu, 19 Maret 2016

Sas Example

Example 1: Executing Operating System Commands Conditionally If you want to execute operating system commands conditionally, use the CALL SYSTEM routine: options noxwait; data _null_; input flag $ name $8.; if upcase(flag)='Y' then do; command='md c:\'||name; call system(command); end; cards; Y mydir Y junk2 N mydir2 Y xyz ; This example uses the value of the variable FLAG to conditionally create directories. After the DATA step executes, three directories have been created: C:\MYDIR, C:\JUNK2, and C:\XYZ. The directory C:\MYDIR2 is not created because the value of FLAG for that observation is not Y . The X command is a global SAS statement. Therefore, it is important to realize that you cannot conditionally execute the X command. For example, if you submit the following code, the X statement is executed: data _null_; answer='n'; if upcase(answer)='y' then do; x 'md c:\extra'; end; run; In this case, the directory C:\EXTRA is created regardless of whether the value of ANSWER is equal to 'n' or 'y' .

Rabu, 03 Agustus 2011

List File

import java.io.File;

public class DirectoryReader {

static int spc_count=-1;

static void Process(File aFile) {
spc_count
++;
String spcs = "";
for (int i = 0; i < spc_count; i++)
spcs
+= " ";
if(aFile.isFile())
System.out.println(spcs + "[FILE] " + aFile.getName());
else if (aFile.isDirectory()) {
System.out.println(spcs + "[DIR] " + aFile.getName());
File[] listOfFiles = aFile.listFiles();
if(listOfFiles!=null) {
for (int i = 0; i < listOfFiles.length; i++)
Process(listOfFiles[i]);
} else {
System.out.println(spcs + " [ACCESS DENIED]");
}
}
spc_count
--;
}

public static void main(String[] args) {
String nam = "D:/";
File aFile = new File(nam);
Process(aFile);
}

}

Minggu, 31 Juli 2011

Java DBF Library

http://sarovar.org/docman/view.php/32/23/javadbf-tutorial.html


XbaseJ

Csharp Read Text File

StreamReader StreamReader = new StreamReader(op.FileName);
while ( StreamReader.Peek()>=0 ){
MessageBox.Show(StreamReader.ReadLine());
}

Sabtu, 30 Juli 2011

PDF iTEXT iNSERT iMAGE

Image image1 = Image.getInstance("images.jpg");
document.add(image1);

Senin, 25 Juli 2011

PDFBox
String path = "/Users/daniel/Temp/mypdf.pdf";
PDFTextStripper stripper = new PDFTextStripper();
PDDocument pdDoc = PDDocument.load(path);
StringWriter writer = new StringWriter();
stripper.writeText(pdDoc, writer);
System.out.println(writer.toString());

iText
String path = "/Users/daniel/Temp/mypdf.pdf";
PdfReader reader = new PdfReader(path);
int numberOfPages = reader.getNumberOfPages();
PdfTextExtractor extractor = new PdfTextExtractor(reader);
for (int i = 0;i System.out.println(extractor.getTextFromPage(i+1));
}

Sabtu, 25 Desember 2010

Secreat File

c:\>copy /b 123.jpg+123.rar gabung.jpg

Rabu, 10 November 2010

in php we usualy use $_GET['variable_name']


but in joomla 15 we user

JRequest::getVar('parametername');


to get parameter from form with action get

Selasa, 09 November 2010

Simple modul Joomla 15

defined('_JEXEC') or die('Restricted access');

$items = $params->get('items', 1);
$db =& JFactory::getDBO();
$query = "SELECT id, title, author, synopsis FROM #__books WHERE published = '1' ORDER BY id DESC";
$db->setQuery( $query, 0 , $items ); // hanya mencetak sebuah record yang ada
$rows = $db->loadObjectList();
foreach($rows as $row)
{
echo 'id.'&task=view&title='.$row->title).'">'.$row->title.'';
echo '('.$row->author.')
';
echo substr($row->synopsis,0,25).'...
';
}

Minggu, 24 Oktober 2010

MethodParameter

class MethodParameter
{
/*
static int num1 =3;
static int num2 =5;
*/
static int answer =0;

public static void main(String[] args)
{
int result = yes(4,7);
System.out.println(result);
}

private static int yes(int num1,int num2)
{
answer = num1+num2;
return answer;
}
};

Java Method Jumlah

class Jumlah
{
static int num1 = 8;
static int num2 = 7;
static int answer = 0;
public static void main(String[] args)
{
System.out.println(jumlah());
}

private static int jumlah()
{
answer = num1 + num2;
return answer;
}

}